Re: Forcing interactive interpreter without (-i)

2005-02-01 Thread Thomas Heller
Miki Tebeka <[EMAIL PROTECTED]> writes: > Hello All, > > If there a way a script can tell Python to enter interactive mode even if > the -i command line switch was not given? > > I want py2exe to create an interactive session, without writing my own > REPL. IIRC, in newer Python versions, you can

Re: py2exe problem

2005-01-26 Thread Thomas Heller
Harald Massa <[EMAIL PROTECTED]> writes: > Thomas Heller <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > >>> >>> A software development system which REALLY solves the encodings >>> problem WITHOUT creating a swarm of new ones could w

Re: py2exe problem

2005-01-26 Thread Thomas Heller
Harald Massa <[EMAIL PROTECTED]> writes: > Grant Edwards > >> LookupError: no codec search functions registered: can't find encoding >> Googling for the error message will find you the answer. > > http://starship.python.net/crew/theller/moin.cgi/Py2Exe > > carries within "encodings" and "encodi

Re: Installer made with bdist_wininst segfaulting...

2005-01-25 Thread Thomas Heller
Fernando Perez <[EMAIL PROTECTED]> writes: > Hi all, > > I am seeking advice/help from those with more win32 experience than myself. I > am trying to build a proper win32 installer for IPython, after a user did most > of the hard work. For the most part, it's working very well, but I am running

Re: MemoryError with parser.suite and wrong encoding declaration

2005-01-18 Thread Thomas Heller
Sylvain Thenault <[EMAIL PROTECTED]> writes: > Hi there ! > I've noticed the following problem with python >= 2.3 (actually 2.3.4 and > 2.4): > > [EMAIL PROTECTED]:test$ python > Python 2.3.4 (#2, Sep 24 2004, 08:39:09) > [GCC 3.3.4 (Debian 1:3.3.4-12)] on linux2 > Type "help", "copyright", "credi

Re: from __future__ import decorators

2005-01-13 Thread Thomas Heller
Jacek Generowicz <[EMAIL PROTECTED]> writes: > I have some code, which makes copious use of the @decorator syntax > which was introduced in Python2.4. Now I find myself in a situation > where I have to run the code under Python 2.3. However, I would like > to keep developing the code with the new

Re: Windows GUIs from Python

2005-01-11 Thread Thomas Heller
Luke Skywalker <[EMAIL PROTECTED]> writes: > On Tue, 11 Jan 2005 12:55:42 -0600, Doug Holton <[EMAIL PROTECTED]> wrote: >>You might also be interested in PyGUI although it doesn't have a native >>Windows implementation yet: >>http://nz.cosc.canterbury.ac.nz/~greg/python_gui/ > > Generally speaki

appending data to an xml file

2005-01-11 Thread Thomas Heller
I want to append/insert additional data to an xml file. Context: I use gccxml to parse C header files. gccxml creates an xml file containing all the definitions from the header files. The xml files may be somewhat largish, for 'windows.h' it has more than 5 MB. Since the xml does not contain #de

Re: Is there any way/where to subscribe for automated PEP status emails?

2005-01-06 Thread Thomas Heller
Nick Coghlan <[EMAIL PROTECTED]> writes: > Thomas Heller wrote: >> You could probably subscribe to python-checkins, and filter it. >> Or read it via gmane. > > Hmm - can SF be used to setup a mailing list just for checkins to a > single directory in the source tree?

Re: Is there any way/where to subscribe for automated PEP status emails?

2005-01-05 Thread Thomas Heller
[EMAIL PROTECTED] (Bengt Richter) writes: > I find that threads sometimes mention PEPs that I wasn't aware of, > or that an interesting one has been updated without my noticing. > > I should perhaps check the PEP site more regularly, but ISTM it shouldn't > be that hard to implement an automated n

Re: [Hack] Import binary extensions from zipfiles, windows only

2005-01-04 Thread Thomas Heller
"PJDM" <[EMAIL PROTECTED]> writes: > I'm trying to make ZopeX3 start faster by zipping up the "zope" > directory. (Because this will be stored on a CD, having less data to > read will make it quicker to start.) > > The standard python zipimporter won't work with the ZopeX3 .pyd files, > so zipexti

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 30)

2005-01-04 Thread Thomas Heller
Max M <[EMAIL PROTECTED]> writes: > Thomas Heller wrote: > >> It seems also the error messages aren't too helpful: >> >>>>>"ä".encode("latin-1") >> Traceback (most recent call last): >> File "", line 1, in ?

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 30)

2005-01-04 Thread Thomas Heller
Skip Montanaro <[EMAIL PROTECTED]> writes: > michele> BTW what's the difference between .encode and .decode ? > > I started to answer, then got confused when I read the docstrings for > unicode.encode and unicode.decode: > > >>> help(u"\xe4".decode) > Help on built-in function decode:

Re: what would you like to see in a 2nd edition Nutshell?

2004-12-29 Thread Thomas Heller
[EMAIL PROTECTED] (Alex Martelli) writes: > I'm considering proposing to O'Reilly a 2nd edition of "Python in a > Nutshell", that I'd write in 2005, essentially to cover Python 2.3 and > 2.4 (the current 1st edition only covers Python up to 2.2). > > What I have in mind is not as complete a rewrit

Re: Unicode entries on sys.path

2004-12-29 Thread Thomas Heller
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > Thomas Heller wrote: >> How should these patches be approached? > > Please have a look as to how posixmodule.c and fileobject.c deal with > this issue. > >> On windows, it would probably >> be eas

Re: Unicode entries on sys.path

2004-12-27 Thread Thomas Heller
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > Thomas Heller wrote: >> It seems that Python itself converts unicode entries in sys.path to >> normal strings using windows default conversion rules - is this a >> problem that I can fix by changing some region

Unicode entries on sys.path

2004-12-23 Thread Thomas Heller
I was trying to track down a bug in py2exe where the executable did not work when it is in a directory containing japanese characters. Then, I discovered that part of the problem is in the zipimporter that py2exe uses, and finally I found that it didn't even work in Python itself. If the entry in

Re: Boo who? (was Re: newbie question)

2004-12-21 Thread Thomas Heller
"A.M. Kuchling" <[EMAIL PROTECTED]> writes: > On Tue, 21 Dec 2004 08:22:51 -0800, > Roger Binns <[EMAIL PROTECTED]> wrote: >> That work died due to "a crisis of faith": >> http://mylist.net/archives/spry-dev/2004-November/72.html > > Soon it will be possible to become a well-known pr

Re: Problem with msvcrt60 vs. msvcr71 vs. strdup/free

2004-12-21 Thread Thomas Heller
Gerhard Haering <[EMAIL PROTECTED]> writes: > Hello, > > I used to build Python extension modules with mingw. Now, Python has > switched to the MSVCR71 runtime with version 2.4, and I thought mingw > has support for this. But I get problems with symbols being referenced > from the wrong DLLs. > >

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Thomas Heller
Bulba! <[EMAIL PROTECTED]> writes: > I'll soon start development of a specialized small app and need > to choose GUI for it. Quoting a somewhat popular german blogger, on the state of cross platform Python GUI toolkits (http://blog.schockwellenreiter.de/7282): Ansonsten habe ich nach einiger Ü

Re: [ANN] [Hack] Import binary extensions from zipfiles, windows only

2004-12-17 Thread Thomas Heller
"Delaney, Timothy C (Timothy)" <[EMAIL PROTECTED]> writes: > Thomas Heller wrote: > >> zipextimporter.py contains the ZipExtImporter class which allows to >> load Python binary extension modules contained in a zip.archive, >> without unpacking them to the

Re: Why are tuples immutable?

2004-12-16 Thread Thomas Heller
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > Antoon Pardon wrote: > >> That depends on whether the programmes wants value equality >> or identity equality. > > how does the dictionary know if you want key value equality or key > identity equality? Smalltalk has separate Dictionary and IdentityDi

[ANN] [Hack] Import binary extensions from zipfiles, windows only

2004-12-16 Thread Thomas Heller
Warning: experimental code! Overview zipextimporter.py contains the ZipExtImporter class which allows to load Python binary extension modules contained in a zip.archive, without unpacking them to the file system. Call the zipextimporter.install() function to install the import hook, add

Re: Building Windows debug distribution

2004-12-10 Thread Thomas Heller
"Mark English" <[EMAIL PROTECTED]> writes: > I have a Windows build of Python 2.4 core with all the extensions, both > debug and release. The release installer is built by msi.py > Is there a way to build a debug distribution other than rewriting msi.py > ? But rewriting msi.py shouldn't be hard

Re: error on crude test of embedding python in c++ HELP PLEASE

2004-12-07 Thread Thomas Heller
"Donnie Leen" <[EMAIL PROTECTED]> writes: > I wrote a program to test calling c function from python code embedding in c > as following, it cause error after running a while(about 398 circle). I > test it in msvc6, python2.3, windows 2k, could anyone tell me why this > happened since i just work

Re: python-mode question

2004-12-06 Thread Thomas Heller
Skip Montanaro <[EMAIL PROTECTED]> writes: > Thomas> When I edit a Python script with XEmacs, then hit C-c C-c, the > Thomas> script is executed, the output is shown in a *Python Output* > Thomas> buffer, and the cursor is moved into this buffer. > > Thomas> How can I change the be

python-mode question

2004-12-03 Thread Thomas Heller
When I edit a Python script with XEmacs, then hit C-c C-c, the script is executed, the output is shown in a *Python Output* buffer, and the cursor is moved into this buffer. How can I change the behaviour so that the cursor stays where it was before? I'm using Revision 4.29, if it matters. Thank

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2004-12-02 Thread Thomas Heller
Gerrit <[EMAIL PROTECTED]> writes: > Cameron Laird wrote: >> Subject: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2) > > What is the frequency of the weekly Python-URL? (-; According to the name, about 1.6 µHz. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Win32 Silent Install

2004-12-01 Thread Thomas Heller
"Matt Gerrans" <[EMAIL PROTECTED]> writes: > Looks like the installer for the Win32 extensions has changed from Wise to > distutils, so now my automated silent installations don't work anymore. > Anyone know if the distutils binary installer can be run silently?I > haven't been able find a

Re: Class methods in Python/C?

2004-11-30 Thread Thomas Heller
Jp Calderone <[EMAIL PROTECTED]> writes: > On Tue, 30 Nov 2004 22:39:15 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote: >>Craig Ringer wrote: >> > Hi folks >> > >> > I've been doing some looking around, but have been unable to find out >> > how to implement class methods on Python objects written

<    1   2   3   4   5