• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PBXOutput=ReplaceSelection question [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PBXOutput=ReplaceSelection question [SOLVED]


  • Subject: Re: PBXOutput=ReplaceSelection question [SOLVED]
  • From: Prachi Gauriar <email@hidden>
  • Date: Mon, 10 Apr 2006 18:34:27 -0400

On Apr 10, 2006, at 11:44 AM, Cem Karan wrote:

Bingo. Turns out that Python (at least, the version XCode is using, which may not be what it shipped with b/c I installed a newer version) has a bug in it. The last statement in my script "print outputString," should print the line without adding a newline to the end, but it turns out that it IS adding in the newline regardless. The fix (for any python people out there) is to do "sys.stdout.write(outputString)".

This isn't a bug. If sys.stdout.softspace is set to True (which it is by default), Python will automatically write a newline on exit. If you want to change that:


import sys

...

sys.stdout.softspace = False

...

-Prachi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: PBXOutput=ReplaceSelection question (From: James Bucanek <email@hidden>)
 >Re: PBXOutput=ReplaceSelection question [SOLVED] (From: Cem Karan <email@hidden>)

  • Prev by Date: Re: Distributed build Issues
  • Next by Date: Re: Can Xcode play a sound when build complete?
  • Previous by thread: Re: PBXOutput=ReplaceSelection question [SOLVED]
  • Next by thread: Re: Ref Lib Dev Docs broken - now fixed
  • Index(es):
    • Date
    • Thread