GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-150932: Add a partial-line-marker on Apple system logger and optimize the iOS testbed runner by timrid · Pull Request #150983 · python/cpython

Conversation

@timrid

@timrid timrid commented Jun 5, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

This adds a marker for partial lines on the Apple system logger, so that a cooperating log reader (like the iOS testbed runner) can re-join them instead of rendering each flush as a separate line in the Apple system log.

Additionally, this optimizes the iOS testbed runner by:

  • Joining partial lines marked by the system log, so that they are rendered as a single line in the testbed output.
  • Restoring control characters (e.g. ANSI color escapes) escaped by the system log.

Fixes #150932


To test this, I used this test script and ran it in an iOS testbed:

# Test colors ###################################
colors = {
    "red":     "\033[31m",
    "green":   "\033[32m",
    "yellow":  "\033[33m",
    "blue":    "\033[34m",
    "magenta": "\033[35m",
    "cyan":    "\033[36m",
    "white":   "\033[37m",
}
reset = "\033[0m"

for name, code in colors.items():
    print(f"{code}Hello in {name}!{reset}")

# Test newline handling #########################
print("This should be ", end="", flush=True)
print("in one line.")

print("This should al", end="", flush=True)
print("so be in one", end="", flush=True)
print(" line.")

print("This are \n two lines.")

# Test live output ##############################
import time
for i in range(10):
    print(".", end="")
    time.sleep(1)
  • Issue: Strange new line behavior and missing color in the iOS testbed logs #150932

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@timrid
Add a partial-line-marker on Apple system logger and optimize the iOS…
8cc0340
… testbed runner
@timrid
timrid requested a review from freakboy3742 as a code owner June 5, 2026 19:51
@bedevere-app bedevere-app Bot added the awaiting review label Jun 5, 2026
@bedevere-app

bedevere-app Bot commented Jun 5, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot mentioned this pull request Jun 5, 2026
Strange new line behavior and missing color in the iOS testbed logs #150932
Open
@blurb-it
📜🤖 Added by blurb_it.
9eeb3be
@freakboy3742

freakboy3742 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Thanks for the PR; however, I'm going to close this on the basis that the discussion on the underlying ticket hasn't yet concluded that either of these ideas are desirable.

Of the two, the ANSI reversal is a firm "no" from me. I'm not yet convinced the line-end thing is worthwhile either; but if I am convinced, it will need to be extracted from the ANSI reversal stuff, so a clean PR would make sense.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@freakboy3742 freakboy3742 closed this Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@freakboy3742 freakboy3742 Awaiting requested review from freakboy3742 freakboy3742 is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

awaiting review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Strange new line behavior and missing color in the iOS testbed logs

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@timrid @freakboy3742
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.