Re: [Pythonmac-SIG] poll() on OSX 10.3.9 with python2.5b2

2006-07-31 Thread Dethe Elza
Norman Khine wrote:
 Hello,
 I need to use the 'select' module in python, but get an error on the:
 
 Python 2.5b2 (r25b2:50512, Jul 31 2006, 15:01:51)
 [GCC 3.3 20030304 (Apple Computer, Inc. build 1640)] on darwin
 Type help, copyright, credits or license for more information.
 
 import select
 dir(select)
   
 ['__doc__', '__file__', '__name__', 'error', 'select']
 

Hi Norman,

Did you build your own python or use a pre-built one?

It works for me on both 2.4.3 and 2.5b2, unless I'm missing something in 
what you're asking:

Python 2.4.3 Universal on Intel:
$ python -c import select;print dir(select)
['POLLERR', 'POLLHUP', 'POLLIN', 'POLLNVAL', 'POLLOUT', 'POLLPRI', 
'POLLRDBAND', 'POLLRDNORM', 'POLLWRBAND', 'POLLWRNORM', '__doc__', 
'__file__', '__name__', 'error', 'poll', 'select']

Python 2.5b2 Universal on Intel:
$ python -c import select; print dir(select)
['POLLERR', 'POLLHUP', 'POLLIN', 'POLLNVAL', 'POLLOUT', 'POLLPRI', 
'POLLRDBAND', 'POLLRDNORM', 'POLLWRBAND', 'POLLWRNORM', '__doc__', 
'__file__', '__name__', 'error', 'poll', 'select']


--Dethe

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] poll() on OSX 10.3.9 with python2.5b2

2006-07-31 Thread Bob Ippolito

On Jul 31, 2006, at 10:18 AM, Dethe Elza wrote:

 Norman Khine wrote:
 Hello,
 I need to use the 'select' module in python, but get an error on the:

 Python 2.5b2 (r25b2:50512, Jul 31 2006, 15:01:51)
 [GCC 3.3 20030304 (Apple Computer, Inc. build 1640)] on darwin
 Type help, copyright, credits or license for more  
 information.

 import select
 dir(select)

 ['__doc__', '__file__', '__name__', 'error', 'select']


 Hi Norman,

 Did you build your own python or use a pre-built one?

 It works for me on both 2.4.3 and 2.5b2, unless I'm missing  
 something in
 what you're asking:

 Python 2.4.3 Universal on Intel:
 $ python -c import select;print dir(select)
 ['POLLERR', 'POLLHUP', 'POLLIN', 'POLLNVAL', 'POLLOUT', 'POLLPRI',
 'POLLRDBAND', 'POLLRDNORM', 'POLLWRBAND', 'POLLWRNORM', '__doc__',
 '__file__', '__name__', 'error', 'poll', 'select']

 Python 2.5b2 Universal on Intel:
 $ python -c import select; print dir(select)
 ['POLLERR', 'POLLHUP', 'POLLIN', 'POLLNVAL', 'POLLOUT', 'POLLPRI',
 'POLLRDBAND', 'POLLRDNORM', 'POLLWRBAND', 'POLLWRNORM', '__doc__',
 '__file__', '__name__', 'error', 'poll', 'select']

Python pre-2.5 detects for the correctness of poll() at configure time.
Python 2.5+ detects for the correctness of poll() at import time.

It doesn't matter if you built it yourself or not, all that matters  
is that your poll() syscall works correctly. This should be the case  
on 10.4.

-bob

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Getting Started Problem

2006-07-31 Thread Dan Shafer
Been away from Python for a while, welcoming myself back home, but running into a config or misunderstanding problem.OS X 10.4.7, Python 2.3.5, downloaded MacPython 2.3 yesterday. Double-clicking on PythonIDE brings up a splasher which disappears and nothing appears to be running.
IDLE runs fine. Launching PythonLauncher shows a setting that appears to point at /usr/bin/pythonw, which is a valid directory and which, when entered in a Terminal, launches Pythonw 2.3.5.So what am I not understanding?
Dan
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Getting Started Problem

2006-07-31 Thread Bob Ippolito

On Jul 31, 2006, at 3:01 PM, Dan Shafer wrote:

 Been away from Python for a while, welcoming myself back home, but  
 running into a config or misunderstanding problem.

 OS X 10.4.7, Python 2.3.5, downloaded MacPython 2.3 yesterday.  
 Double-clicking on PythonIDE brings up a splasher which disappears  
 and nothing appears to be running.

 IDLE runs fine. Launching PythonLauncher shows a setting that  
 appears to point at /usr/bin/pythonw, which is a valid directory  
 and which, when entered in a Terminal, launches Pythonw 2.3.5.

 So what am I not understanding?

Sounds like you may be using an Intel machine. Python IDE doesn't  
work on Intel and it never will. It's officially dead.

Download Universal Python 2.4 and use the IDLE it comes with. The  
Python 2.3.5 that ships with OS X 10.4 has a host of (mostly endian  
related) bugs on Intel and isn't suitable for any Mac-specific work.  
These bugs are not present in Universal Python 2.4, or Python 2.5  
(which is currently in beta).

-bob

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] PythonLauncher replacement for Python 2.4.x universal builds?

2006-07-31 Thread Kevin Altis
I'm thinking about finally moving over to the universal Python 2.4.x  
build on my Intel duo iMac rather than using the Python 2.3.5 and  
wxPython that it shipped with. One concern I have though is a  
replacement for PythonLauncher which I still use regularly to  
launch .py and .pyw wxPython and PythonCard programs from the Finder.  
Creating standalones of these applications with py2app is not my  
goal,  nor would it be an adequate workaround as the programs can  
change frequently and rebuilding a standalone would be an  
unacceptable overhead. Having to run the scripts from the Terminal  
all the time would be a pain.

Currently, I can choose to edit the files or run them simply by  
choosing a different editor or PythonLauncher via the Open With menu  
item which works just as well for aliases to the files. If its  
possible to make something equivalent to PythonLauncher that would  
basically work the same way that would be acceptable.

Thanks in advance for a pointer to an updated PythonLauncher or  
workaround!

ka
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] PythonLauncher replacement for Python 2.4.x universal builds?

2006-07-31 Thread Bob Ippolito

On Jul 31, 2006, at 3:42 PM, Kevin Altis wrote:

 I'm thinking about finally moving over to the universal Python 2.4.x
 build on my Intel duo iMac rather than using the Python 2.3.5 and
 wxPython that it shipped with. One concern I have though is a
 replacement for PythonLauncher which I still use regularly to
 launch .py and .pyw wxPython and PythonCard programs from the Finder.
 Creating standalones of these applications with py2app is not my
 goal,  nor would it be an adequate workaround as the programs can
 change frequently and rebuilding a standalone would be an
 unacceptable overhead. Having to run the scripts from the Terminal
 all the time would be a pain.

Alias bundles remove the pain of rebuilding for frequently changing  
scripts. Not that big of a deal to make one.

py2applet -A someapp.py
open someapp.app

http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html

 Currently, I can choose to edit the files or run them simply by
 choosing a different editor or PythonLauncher via the Open With menu
 item which works just as well for aliases to the files. If its
 possible to make something equivalent to PythonLauncher that would
 basically work the same way that would be acceptable.

 Thanks in advance for a pointer to an updated PythonLauncher or
 workaround!

A copy of PythonLauncher always ships with the installer.
/Applications/MacPython 2.4/PythonLauncher.app

-bob

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig