Re: [Pythonmac-SIG] [OT] To upgrade Mac OSX or not?

2005-03-03 Thread Skip Montanaro
>> Thanks. I'll have to check to see if that will work for my laptop. >> I have plenty of other stuff on my plate though, so this particular >> issue has sort of moved to the back burner... Bob> If it runs 10.2, it'll run 10.3. You'll probably notice better Bob> performance,

Re: [Pythonmac-SIG] [OT] To upgrade Mac OSX or not?

2005-03-03 Thread Bob Ippolito
On Mar 3, 2005, at 11:08 PM, Skip Montanaro wrote: Thomas> I don't know where to find the release dates for different Mac Thomas> OS X revs, but Other World Computing is offering Panther for Thomas> $49: Thomas> http://eshop.macsales.com/shop/specials/ Thanks. I'll have to check

Re: [Pythonmac-SIG] [OT] To upgrade Mac OSX or not?

2005-03-03 Thread Skip Montanaro
Thomas> I don't know where to find the release dates for different Mac Thomas> OS X revs, but Other World Computing is offering Panther for Thomas> $49: Thomas> http://eshop.macsales.com/shop/specials/ Thanks. I'll have to check to see if that will work for my laptop. I have pl

Re: [Pythonmac-SIG] [OT] To upgrade Mac OSX or not?

2005-03-03 Thread Thomas Juntunen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/26/05, Skip Montanaro imposed order on a stream of electrons to say: > >Bob> It wouldn't be the worst thing in the world to buy 10.3 now, >Bob> because 10.4 is definitely more than a few weeks away, but you >Bob> certainly wouldn't b

Re: [Pythonmac-SIG] Re: Getting stdin using TextWrangler or BBEdit, but not MacPython

2005-03-03 Thread Charles Hartman
(Tried to answer before but it didn't go through) It works fine in TextWrangler if you choose (from TW's Run submenu) Run in Terminal; you're still doing your work in TW, just using Terminal for i/o. Charles Hartman Professor of English, Poet in Residence http://cherry.conncoll.edu/cohar http://

[Pythonmac-SIG] Re: Getting stdin using TextWrangler or BBEdit, but not MacPython

2005-03-03 Thread Louis Pecora
Bob Ippolito wrote: I don't know a damn thing about TextWrangler, but this works with any Python that has a working stdin: while True: text = raw_input("Input 2 ints and a float: ") try: i1, i2, f1 = [t(v) for (t, v) in zip((int, int, float), text.split())] except ValueError,

[Pythonmac-SIG] Re: Getting stdin using TextWrangler or BBEdit, but not MacPython

2005-03-03 Thread Louis Pecora
Bob Ippolito wrote: I don't know a damn thing about TextWrangler, but this works with any Python that has a working stdin: while True: text = raw_input("Input 2 ints and a float: ") try: i1, i2, f1 = [t(v) for (t, v) in zip((int, int, float), text.split())] except ValueError,

[Pythonmac-SIG] Re: Getting stdin using TextWrangler or BBEdit, but not MacPython

2005-03-03 Thread Louis Pecora
Charles Hartman wrote: In TextWrangler something like this while 1: c = raw_input() if c == 'quit': break print c works fine, if you choose Run in Terminal or Run with Debugger. If you try to choose Output to New Window, it just quits immediately. But

Re: Getting stdin using TextWrangler or BBEdit, but not MacPython (was: [Pythonmac-SIG] One IDE can find sys._buf, the other can't. What's going on?)

2005-03-03 Thread Bob Ippolito
On Mar 3, 2005, at 16:57, Louis Pecora wrote: Bob Ippolito wrote: As far as this code goes, you might be able to just get away with it if you do: # check for MacPython IDE if hasattr(sys.stdout, '_buf'): sys.stdout._buf = ... You're right this is a test that would shut off the _buf part of th

Getting stdin using TextWrangler or BBEdit, but not MacPython (was: [Pythonmac-SIG] One IDE can find sys._buf, the other can't. What's going on?)

2005-03-03 Thread Louis Pecora
Bob Ippolito wrote: As far as this code goes, you might be able to just get away with it if you do: # check for MacPython IDE if hasattr(sys.stdout, '_buf'): sys.stdout._buf = ... You're right this is a test that would shut off the _buf part of the code if I were not using MacPython. It re

Re: broken modules (was: Re: [Pythonmac-SIG] CFURL Pain)

2005-03-03 Thread Bob Ippolito
On Mar 3, 2005, at 15:31, Martina Oefelein wrote: Hi Bob: Very few people care that undocumented modules don't work correctly. You have to look pretty hard to even notice their existence in the first place. I've never heard of a broken undocumented standard library module becoming a deal-break

Re: broken modules (was: Re: [Pythonmac-SIG] CFURL Pain)

2005-03-03 Thread Martina Oefelein
Hi Bob: Very few people care that undocumented modules don't work correctly. You have to look pretty hard to even notice their existence in the first place. I've never heard of a broken undocumented standard library module becoming a deal-breaker for someone new to Python. Looking at the Globa

Re: [Pythonmac-SIG] One IDE can find sys._buf, the other can't. What's going on?

2005-03-03 Thread Bob Ippolito
On Mar 3, 2005, at 14:04, Louis Pecora wrote: I ran some test code in the MacPython IDE and then from BBEdit (should be same as TextWrangle that some of you use). It runs in the Mac IDE, but I get this error in BBEdit: File "Drive:Users:louispecora:Code:python:general:general.py"; Line 132: A

[Pythonmac-SIG] One IDE can find sys._buf, the other can't. What's going on?

2005-03-03 Thread Louis Pecora
I ran some test code in the MacPython IDE and then from BBEdit (should be same as TextWrangle that some of you use). It runs in the Mac IDE, but I get this error in BBEdit: File "Drive:Users:louispecora:Code:python:general:general.py"; Line 132: AttributeError: 'file' object has no attribute

Re: [Pythonmac-SIG] CFURL Pain

2005-03-03 Thread Paul Berkowitz
On 3/3/05 7:31 AM, "has" <[EMAIL PROTECTED]> wrote: > Paul Berkowitz wrote: > >> The type 'alias' for the Save command in the Standard Suite is a long, >> longstanding bug in AppleScript. > > Replacing (as of 10.3) a previous long, longstanding implementation > bug where it was specified as a P

Re: [Pythonmac-SIG] CFURL Pain

2005-03-03 Thread has
Paul Berkowitz wrote: The type 'alias' for the Save command in the Standard Suite is a long, longstanding bug in AppleScript. Replacing (as of 10.3) a previous long, longstanding implementation bug where it was specified as a POSIX path string. :p I take it 'alias' is just a documentation error

Re: OSA.so (was: Re: [Pythonmac-SIG] CFURL Pain)

2005-03-03 Thread has
Donovan Preston wrote: > No, I wanted a Python OSA component. Different thing. The only person > I know was asking for an OSA wrapper was Donovan, and he went off to > work on Nevow yonks ago and AFAIK never did anything with it. I wanted an OSA module so that it would be possible to write a Pyt

[Pythonmac-SIG] Re: repackaging MacPython (was: Re: broken modules)

2005-03-03 Thread has
Bob wrote: If you named it carbon, it would definitely be the cause of headaches and confusion due to the default case insensitivity of HFS+ and the similarity to the existing namespace. 'lo-carb'? :) I wasn't exactly putting any thought into it; nit-picky details really aren't important here. T

[Pythonmac-SIG] Using PIL/Compiling/_imagingtk

2005-03-03 Thread Colby Gutierrez-Kraybill
Howdie, I'm attempting to use the Python Imaging Library on a mac os x (panther 10.3.8) box with the standard python install, along with the macpython addons and the tcltkaqua packages. I first installed the macpython addons (http://ftp.cwi.nl/jack/python/mac/MacPython-Panther-2.3-2.dmg) for 10.3

Re: [Pythonmac-SIG] Using PIL/Compiling/_imagingtk

2005-03-03 Thread Bob Ippolito
On Mar 1, 2005, at 6:51 PM, Colby Gutierrez-Kraybill wrote: I'm attempting to use the Python Imaging Library on a mac os x (panther 10.3.8) box with the standard python install, along with the macpython addons and the tcltkaqua packages. The package manager repository at undefined.org is unmaintain