Re: Do other Python GUI toolkits require this?
On 18/04/07, Kevin Walzer [EMAIL PROTECTED] wrote: James Stroud wrote: This appears more or less unique to Objective C. It looks that with PyObjC, you have to interact with the Objective C runtime to manage memory. This is not required, thankfully, with any other GUI tookits I've seen. I think the main difference is that PyObjC is not a GUI toolkit per se, but is simply a means to make the Objective C runtime (and hence Cocoa) available via a python layer. James That's kind of what I thought. Memory management? In Python? *shudder* I'm wondering if this might go away with the arrival of garbage collection in ObjectiveC? Michael -- http://mail.python.org/mailman/listinfo/python-list
Re: What is your favorite Python web framework?
On 18 Jul 2005, at 10:29, Cyril Bazin wrote: Hello, I never used a web framework using Python modules, but I think cheetah, Karrigel and CherryPy are not good since they allow user to play with the HTML code. IMO, it's not pythonic but phpythonic. Well, pretty much anything would allow that, it is more a matter of how much they encourage it ;) I find the cherrypy + HTML Template combination pretty resistant to excessive HTML in the Python, or Python in the HTML. One day when I get some time I'll have a look at Django, though I must say the templating language looked less nice than the rest of it on first glance, it says you don't have to use it though... Michael -- http://mail.python.org/mailman/listinfo/python-list
Re: mxDateTime on Mac: Fatal Python Error
On Mon, Mar 07, 2005 at 11:51:20PM +0100, M.-A. Lemburg wrote: [EMAIL PROTECTED] wrote: I'm trying to get mxDateTime working on a Mac so that I can use pyscopg and cx_Oracle. The Egenix base package builds and installs quite happily, but then when I try to import it I get import mx.DateTime Fatal Python error: Interpreter not initialized (version mismatch?) Abort ... any ideas? Messages like these are usually the result of a version mismatch between the Python interpreter and the .so file of the extensions. Make sure you build the package using the same Python interpreter you will later use it with. It is most likely a result of this: http://mail.python.org/pipermail/python-dev/2004-December/050324.html http://www.mail-archive.com/pythonmac-sig@python.org/msg00964.html Environment: OS X 10.3.8 sys.version: '2.3 (#1, Sep 13 2003, 00:49:11) \n[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)]' egenix-mx-base-2.0.6 Hmm, this might also be some weird Mac OS issue. While we currently don't support Macs directly, we do welcome suggestions to make them work on your favorite platform. If it is related to the issue I mention above, then it is a distutils specific bug fixed in current versions of Python, but not in the version installed by default by OS X. HTH Michael -- http://mail.python.org/mailman/listinfo/python-list
Re: split a directory string into a list
On 25 Feb 2005, at 14:09, Harper, Gina wrote: I would start with something like this: somestring = '/foo/bar/beer/sex/cigarettes/drugs/alcohol/' somelist = somestring.split('/') print somelist However - this will not work on Windows. It'd work on all the OS I usually use though ;) Michael -- http://mail.python.org/mailman/listinfo/python-list