Re: Minidom empty script element bug

2005-03-15 Thread "Martin v. Löwis"
d, I think there is a simple solution: add an empty Text node to the script element: script_node_0.appendChild(doc.createText(u"")) [Disclaimer: this is untested; from reading the source, I think it should work] Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 18, Issue 208

2005-03-15 Thread "Martin v. Löwis"
mission line up nicely with octal numbers. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Minidom empty script element bug

2005-03-16 Thread "Martin v. Löwis"
ml. I would recommend to implement Annex C to the letter, i.e. only avoid the minimized form if the content model is not EMPTY. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: When is a thread garbage collected?

2005-03-16 Thread "Martin v. Löwis"
ly is "yes", but this is likely not the question you meant to ask. Instead, it might be that you meant to ask "... then immediately be GCed?" to which the answer is "it depends on the body of #do something". IOW, the Thread object may live much longer than the end of

Re: sgmlop: malformed charrefs?

2005-03-17 Thread "Martin v. Löwis"
:-) It certainly is the latest release of the fork. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: xmlproc maintainer?

2005-03-18 Thread "Martin v. Löwis"
us of xmlproc is? We kind of depend on it... xmlproc is maintained as part of PyXML now; please sent the patch to the patches tracker at sf.net/projects/pyxml. That said, PyXML did not have a release on its own for quite some time, either; mainly due to lack of user interest. Regards, Martin --

Re: survey of modules to be added to stdlib

2005-03-18 Thread "Martin v. Löwis"
authors of the code have to agree to its inclusion in the library; somebody else contributing the modules for the authors will not be acceptable. However, the authors don't have to offer ongoing support for the copy in Python - any other volunteer could step in instead. Regards, Martin --

Re: python API wrapper for C++ API

2004-11-30 Thread Philippe C. Martin
Hi, How about first using a C to C++ wrapper: *** #ifdef __cplusplus extern "C" { /* I really dislike this - iwj. */ #endif void * init (void) { return new myobj() } 3D_fun1 (void * p_obj) { My_OBJ * l_obj = (My_OBJ *)

Re: RELEASED Python 2.4 (final)

2004-11-30 Thread "Martin v. Löwis"
Chang LI wrote: Is there Windows 64-bit edition available? Yes: http://www.python.org/ftp/python/2.4/python-2.4.ia64.msi Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 Uninstall Entry in WinXP Registry

2004-12-01 Thread "Martin v. Löwis"
operty table of python24.msi. If you have W2k or later, you can also set the "NoRemove" registry value under the key above, to hide the remove feature after installation. HTH, Martin -- http://mail.python.org/mailman/listinfo/python-list

Regexp question

2004-12-01 Thread Philippe C. Martin
_not_ between brackets or parenthesis i.e; 'xx xx xx xx xx xx xx' knowing that the intial string could be: [yy yy yy yy yy yy yy] xx xx xx xx xx xx xx (zz zz zz zz) Any clue ? Regards, Philippe -- * Philippe C. Martin SnakeCard LLC www.snakecard

Re: Python 2.4 Uninstall Entry in WinXP Registry

2004-12-01 Thread "Martin v. Löwis"
Brad Tilley wrote: I found the documentation here: http://python.fyxm.net/2.4/msi.html The original, of course, is at http://python.org/2.4/msi.html Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: "encoding specified in XML declaration is incorrect"

2004-12-02 Thread "Martin v. Löwis"
se. u = unicode(s, "utf-8") xml.sax.parseString(u, MyParser()) This is not really supposed to work (yet). You need to pass byte strings to xml.sax.parseString, not Unicode strings. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: How did you learn Python?

2004-12-03 Thread Philippe C. Martin
I used those: http://diveintopython.org/ http://www.fzu.cz/texty/ruzne/python/ http://www.pythonware.com/library/tkinter/introduction/ Then O'Reilly 'Programming Python' Regards, Philippe -- ***** Philippe C. Martin SnakeCard LLC ww

Re: Python2.4: building '_socket' extension fails with `INET_ADDRSTRLEN' undeclared

2004-12-03 Thread "Martin v. Löwis"
egardless of whether they support IPv6. Looking at a more recent system in /usr/include, I get /usr/include$ grep -r ADDRSTRLEN . ./netinet/in.h:#define INET_ADDRSTRLEN 16 This is a clue, I think. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

byte code generated under linux ==> bad magic number under windows

2004-12-06 Thread Philippe C. Martin
wrong ? are the pyc plateform dependant ? and if so must I generate one version for each version of Linux, windows .. ? Regards, Philippe -- ***** Philippe C. Martin SnakeCard LLC www.snakecard.com * -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32 Libs for 2.4

2004-12-06 Thread "Martin v. Löwis"
VC versions - whether the DLL reference is CRT version independent or not. You should view the resulting extension module in depends.exe, and check whether it refers to multiplce CRT dlls (which would be bad). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python in debug version?

2004-12-06 Thread "Martin v. Löwis"
mep wrote: I view my python 2.3.4 from python.org by VC6's dependency walker tool. What suprise me is that python.exe and python32.dll are built into *DEBUG* version. What precisely did the tool report? To my knowledge, the DLLs are not in the debug version. Regards, Martin --

Loading a file only once into an object and being able to access it from other modules

2004-12-07 Thread Philippe C. Martin
Philippe C. Martin SnakeCard LLC www.snakecard.com * -- http://mail.python.org/mailman/listinfo/python-list

Re: Loading a file only once into an object and being able to access it from other modules

2004-12-07 Thread Philippe C. Martin
Thank you all for your answers, I guess I would not have made Python 101:-) As far as I was concerned, importing a module twice would have resulted in loading the file twice. Regards, Philippe -- * Philippe C. Martin SnakeCard LLC www.snakecard.com

Re: Win32 Libs for 2.4

2004-12-07 Thread "Martin v. Löwis"
eferences USER32.dll directly. Yes, that user32.dll indirectly uses msvcrt.dll should be no problem. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug 834351 - Mouse wheel crashes program

2004-12-08 Thread "Martin v. Löwis"
Gary Richardson wrote: Has this bug been fixed in 2.3.5 or 2.4? Does it exist in XP systems? To my knowledge, it has not been fixed. I have not even tried to reproduce it, yet. Contributions are welcome. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Loading a file only once into an object and being able to access it from other modules - still have a problem

2004-12-09 Thread Philippe C. Martin
816, when I see 'LOADING' then I also see a fully populated dictionary. But when I see (second or more time) 'DICT ALREADY LOADED', then my dict is emtpy What else am I not understanding ? Regards, Philippe -- * Philippe C. Martin SnakeCard LLC www.

Re: Loading a file only once into an object and being able to access it from other modules - still have a problem

2004-12-09 Thread Philippe C. Martin
__Load method "loads" self.DICTIONNARIES. So now my understanding is that __Load needs to load SC_ISO_7816.DICTIONNARIES, and children classes will have to refer to SC_ISO_7816.DICTIONNARIES if they want to see something. I'll give it a shot right now. Thank you! Philippe -- *

Re: VC++ 6.0 and 2.4

2004-12-10 Thread "Martin v. Löwis"
n files in PCbuild? Don't mess with them, use PC/VC6 instead. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode docstrings in PyMethodDef?

2004-12-10 Thread "Martin v. Löwis"
n object. There is currently no C API involving char* to do so, so it might not be that nice. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: New versions breaking extensions, etc.

2004-12-11 Thread "Martin v. Löwis"
rs to True, False, None, or the dict type object. If you have two copies of the Python runtime, you get two copies of each local object. This cannot work: we really need to rely on having only one dict type, or else "is" comparisons with the dict type fail. Regards, Martin -- http://

Re: New versions breaking extensions, etc.

2004-12-11 Thread "Martin v. Löwis"
Or else they find out what alternative compiler arrangements can be made. Surely the world would be a better, happier place without MS jerking everyone around. It would surely be better if the operating system shipped with a compiler, so anybody could rebuild things, and you wouldn't need binary

Re: New versions breaking extensions, etc.

2004-12-12 Thread "Martin v. Löwis"
I need to build (on-topic) Python extensions? Either VS.NET 2003 or VC++ .NET 2003 should do (although I don't know anybody who owns the latter to be sure). The core issue is that it needs a "native" C++ compiler (ie. not just managed C++), and that it needs mscvcr71.dll. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Named pipes in threads

2004-12-12 Thread Philippe C. Martin
HI, I currently have a "working" script that uses sockets to handle threads communications - the problem is that it gives me obvious problems in handling free ports (launching the script more than once ). Is thread named pipes communication allowed ? Regards, Philippe -- http://mail.pyth

Re: character encoding conversion

2004-12-12 Thread "Martin v. Löwis"
oding; consider this a failure if you have get any control characters (from range(128, 160)); then try in step 7 latin-1 again. When you find the first encoding that decodes correctly, encode it with ascii and xmlcharrefreplace, and you won't need to worry about the encoding, anymore. Regard

Re: Named pipes in threads

2004-12-12 Thread Philippe C. Martin
>>Replace the sockets with a queue of strings. >>http://docs.python.org/lib/module-Queue.html >>Write your Send and Recv functions in terms of Queue.get() and Queue.put(); And those entry points seem to reentrant too !!! Thanks a lot, you made my day (I say that a lot on this mailing lis

Re: Named pipes in threads

2004-12-12 Thread Philippe C. Martin
>>What are you trying to do?  Perhaps if you backed up and described >>the "what" we could make better recommendations about the "ho Just trying to have a GUI thread (tkinter) talk back and forth with a debugger derived object threaded (bdb). No I have not tried yet as sometimes things seem to

Re: character encoding conversion

2004-12-12 Thread "Martin v. Löwis"
ry to come up with some code, and I try to comment on it. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: New versions breaking extensions, etc.

2004-12-12 Thread "Martin v. Löwis"
Ls you have on your system. It might be that you also need the header files for msvcr71.dll, although I believe you could get away with using the "wrong" (i.e. VC6) header files. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: New versions breaking extensions, etc.

2004-12-13 Thread "Martin v. Löwis"
ight be enough - but then, perhaps there also where changes to the header files which you need to get. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: character encoding conversion

2004-12-13 Thread "Martin v. Löwis"
= 'whatever i parsed out of the file' htmlmetaencoding = 'whatever i parsed out of the metatag' Depending on the library you use, these aren't that trivial, either. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: character encoding conversion

2004-12-13 Thread "Martin v. Löwis"
byte sequences can be considered Latin-1 - whether they are meaningful data is a different question). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Automate Python-2.4 Installs on Windows

2004-12-13 Thread "Martin v. Löwis"
//www.python.org/2.4/msi.html to learn about automatic installation. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: building extension modules under 2.4 / cygwin

2004-12-13 Thread "Martin v. Löwis"
), it probably will work fine. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: system requirements for python 2.4

2004-12-13 Thread "Martin v. Löwis"
, or build directly from the pydotorg sources. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: New versions breaking extensions, etc.

2004-12-14 Thread "Martin v. Löwis"
dy at that time, user pressure was quite high to move to a more recent compiler; with 2.4, it was clear that we do need some of the new features (in particular, ongoing commercial availability, and IPv6 support in winsock.h). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

bdb question

2004-12-16 Thread Philippe C. Martin
my debugged program keeps running to its end although the above seems to eventually work. Any clue ? Regards, Philippe -- * Philippe C. Martin SnakeCard LLC www.snakecard.com * -- http://mail.python.org/mailman/listinfo/python-list

Re: BASIC vs Python

2004-12-16 Thread Philippe C. Martin
>>and it was the only interpreter I've ever used that had no compilation >>phase whatsoever) is no easier to deal with than compiled C. Ditto for >>the various flavors of LISP I've worked with. I do find working with an interpreter easier than with a compiler. A _long_ time ago, I recall a boss

Re: Automate Python-2.4 Installs on Windows

2004-12-14 Thread "Martin v. Löwis"
ow make them larger? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: New versions breaking extensions, etc.

2004-12-14 Thread "Martin v. Löwis"
system that uses DLLs. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expression

2004-12-15 Thread Philippe C. Martin
I'm struggling myself and have bought: "Mastering Regular Expressions" 2nd Edition, O'REILLY Jeffrey E. F. Friedl I covers the reg exp concepts + applications in various languages (mostly PERL but some Python also) -- ***** Philippe C. Martin SnakeCard L

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

2004-12-21 Thread Philippe C. Martin
Sorry but I really feel this incredible waste of energy is polluting an, otherwise, excellent and helpful mailing list. Best regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: When was extended call syntax introduced?

2004-12-21 Thread "Martin v. Löwis"
://www.python.org/2.0/new-python.html#SECTION000101 Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

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

2004-12-22 Thread "Martin v. Löwis"
hon extension. However, it is very hard to tell from the source code of the extension if such resource passing could ever happen (e.g. what about setlocale(), atexit(), malloc(), ...), so if you need something better than "seems to work", you really need to make sure that you understand al

Re: Garbage collector strategy

2004-12-22 Thread "Martin v. Löwis"
Martin Drautzburg wrote: Just for curiosity: does python use a mark-and-sweep garbage collector or simple reference counting? I can't resist: Yes, it does. In the latter case it would not garbage collect circular references, right ? Python uses refcounting for all objects, and a generat

Re: Killing a python thread with a signal

2004-12-23 Thread Philippe C. Martin
, but I added a 'QUIT-STYLE' command in my script when I want the thread to exit so it wakes up. Regards, Philippe -- ***** Philippe C. Martin SnakeCard LLC www.snakecard.com * -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode entries on sys.path

2004-12-23 Thread "Martin v. Löwis"
a reboot. Hm, maybe more a windows question than a python question... The real question here is: why does Python not support arbitrary Unicode strings on sys.path? It could, in principle, atleast on Windows NT+ (and also on OSX). Patches are welcome. Regards, Martin -- http://mail.python.org

Re: Problem with ./configure (py2.3.4)

2004-12-23 Thread "Martin v. Löwis"
= 1 My gnu/linux is 2.6.8-1-386(debian/sarge) Somebody could help me? What is the version of gcc that you have installed (gcc -v)? Do you have g++ installed? If not, you should configure python --without-cxx. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

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

2004-12-23 Thread "Martin v. Löwis"
think the simplest answer is "It works out of the box". Just do python setup.py build --compiler=mingw32 If it fails, report what the failure is (the first failure should be lack of libpython24.a, for which you can find build instructions in Google). Regards, Martin -- http://mail.python.

Re: Unicode entries on sys.path

2004-12-26 Thread "Martin v. Löwis"
Unix can do that as long as the locale is UTF-8; for all other systems, there are restrictions when you try to use the file system API to access files with "funny" characters. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python on Linux

2004-12-27 Thread Philippe C. Martin
>> On Red Hat 9, Python is installed by default and it's version is 2.2.2 >> If I want to upgrade Python to 2.3.4(newer version), how could I do? >> If I compile source code of Python, how do I uninstall the old version? >> I tried rpm packages but failed with dependence. >I didn't try the rpm's.

python metrics program/script sample

2004-12-27 Thread Philippe C. Martin
Hi, I am looking for an eric3/linux compatible alternative to checking code metrics (ex: true lines of code count) Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode entries on sys.path

2004-12-27 Thread "Martin v. Löwis"
he local system, nothing virtualized (unless one of the existing hook mechanisms is used, which would be OT for this thread). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode entries on sys.path

2004-12-27 Thread "Martin v. Löwis"
or NT+ (I hope this won't happen), or b) we drop support for W9x. I'm in favour of doing so sooner or later, but perhaps not for Python 2.5. Regards, Martin (*) Can somebody please report whether the *W file APIs fail on W9x because the entry points are not there (so you can&#

Re: python metrics program/script sample

2004-12-27 Thread Philippe C. Martin
>>I don't know what "eric3/linux compatible" might be, I'm not sure >>what this would be an alternative _to_, and I don't know what you >>mean by "true" lines of code count, but the only thing I've >>noticed lately that counts lines of Python code, and I'm fairly >>sure it would run fine on Linux,

Re: python metrics program/script sample

2004-12-27 Thread Philippe C. Martin
pylint looks good! thanks Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode entries on sys.path

2004-12-29 Thread "Martin v. Löwis"
always thought that the *W apis would not be there in win98, but it seems that is wrong. Fortunately, how could Python, which links to the FindFirstFileW exported function for example, run on win98 otherwise... Thanks, that is convincing. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiled bytecode

2004-12-29 Thread "Martin v. Löwis"
e, as it first compiles all files to bytecode. So it is a good idea to keep the bytecode files around. As to what difference -O makes: in 2.4, it only - sets __debug__ to be false, at compile time, - removes assert statements - removes __doc__ strings from the bytecode Regards, Martin --

Re: Why would I use inspect.isclass()?

2004-12-30 Thread "Martin v. Löwis"
lse _CS_REQ_STARTED something else _UNKNOWN something else __all__ something else __builtins__ something else __doc__ something else __file__ something else __name__ something else errno module error class mimetools module socket module test function urlsplit function Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode entries on sys.path

2004-12-30 Thread "Martin v. Löwis"
calling the functions will always fail. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: how can I put a 1Gb file in a zipfile??

2005-03-27 Thread "Martin v. Löwis"
patch to sf.net/projects/python. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: UTF Questions

2005-03-27 Thread "Martin v. Löwis"
es of pure Python code. In fact, given a Unicode string s, the line codecs.BOM_UTF32+array.array("i",map(ord,s)).tostring() generates UTF-32 for the string s. Creating a codec on top of this approach is left as an exercise for the reader. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: xml marshal of general (but non Python standard) class

2005-03-27 Thread "Martin v. Löwis"
>>> class Foo: ... pass ... >>> f=Foo() >>> f.name="Hallo" >>> f.age=10 >>> >>> xml.marshal.generic.dumps(f) 'age10nameHallo' However, the advantage of this format over pickle might be questionable. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get rid of FutureWarning: hex/oct constants...

2005-03-27 Thread "Martin v. Löwis"
ve number. A literal, by nature, in any base, is non-negative. If you disagree: Is 0xFFF6 a positive or a negative number? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: winapi32.GetFileVersionInfo() - problem

2005-03-27 Thread "Martin v. Löwis"
did not occur to him that his code (and the Python implementation behind it, and the Microsoft API behind that) are all correct, and that the problem really is in the file. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: __getslice__ passed INT_MAX rather than sys.maxint for missing endpoint?

2005-03-27 Thread "Martin v. Löwis"
n though there is no convenient way to get at the maximum index. Just trying one time at startup would be the recommended way: class _GetMaxIndex: def __getslice__(self, a, mi): import sys sys.maxindex = mi _GetMaxIndex()[:] Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: list.count() with no arguments

2005-03-27 Thread "Martin v. Löwis"
ay, we may have a bag type, so it would be better if this type supported frequency counting. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: File Uploads -- Windows Server

2005-03-28 Thread "Martin v. Löwis"
ve to find out yourself what is going on in your script. Very few people use IIS (most use Apache instead), so you are pretty much on your own. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Exception Handling

2005-03-28 Thread "Martin v. Löwis"
: pass continue_after_exception_has_passed_by() Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Max files in unix folder from PIL process

2005-03-28 Thread "Martin v. Löwis"
requires, of course, enough main memory to actually keep the hashtable. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: xml marshal of general (but non Python standard) class

2005-03-29 Thread "Martin v. Löwis"
atively, patches to support new-style classes in a more general way are welcome. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: [maintenance doc updates]

2005-03-30 Thread "Martin v. Löwis"
hat the CHM I'm uploading is really the one for 2.4.1. IOW, there is too many manual steps in the process to guarantee continuity, and the process works differently each time (which currently is only two times: 2.4, and 2.4.1) Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Stylistic question about inheritance

2005-03-31 Thread "Martin v. Löwis"
lass__.__name__, ", ".join(map(str, self.operands())) requiring you only to implement .operands() in the subclasses. If you can anticipate such common code, it is easier to add a base class right away. If you cannot think of a specific use case, there is little point in having a common ba

Re: Change between Python 2.3 and 2.4 under WinXP

2005-03-31 Thread "Martin v. Löwis"
user accounts, on a per-user basis (rather than the per-machine basis), and switch users. One of the installations can be per-machine, as per-user settings override the machine settings for the user. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Stylistic question about inheritance

2005-03-31 Thread "Martin v. Löwis"
Andrew Koenig wrote: So, for example, you don't think it's worth including the base class as a way of indicating future intent? No. In this respect, I believe in XP: refactor when the need comes up, but not before. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Change between Python 2.3 and 2.4 under WinXP

2005-03-31 Thread "Martin v. Löwis"
python.exe vs. \python24\python.exe) will automatically take care of this. Each interpreter binary will safely have its own Python path, use its own dlls, and its own libs. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Our Luxurious, Rubinesque, Python 2.4

2005-03-31 Thread "Martin v. Löwis"
plex numbers, it is much harder to build a Python interpreter that does not support weak references. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with national characters

2005-03-31 Thread "Martin v. Löwis"
) to get locale-specific upper-casing. Notice that things are more difficult in the Windows terminal window, as this uses an encoding different from the one that the system's locale functions expect. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Attributes and built-in types

2005-04-01 Thread "Martin v. Löwis"
ormance is one of them; backwards compatibility another. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python on a Windows 2000 Server

2005-04-02 Thread "Martin v. Löwis"
obably using it, but I'd like to hear whether it works (it should, in principle). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorator Dissection

2005-04-02 Thread "Martin v. Löwis"
ck(?) ;) No, functions are objects. Notice that in step 1, the object returned doesn't have to be a function - other things are callable, too, like types, classes, and objects implementing __call__. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Docorator Disected

2005-04-02 Thread "Martin v. Löwis"
. There is a way of "truly" understanding this notion, and I would encourage you to try doing so. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: string goes away

2005-04-03 Thread "Martin v. Löwis"
ases, list comprehension may be slower than map. More likely, for real (i.e. non-empty) strings, the cost of .upper will make the precise implementation of the loop irrelevant for performance reasons. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: string goes away

2005-04-03 Thread "Martin v. Löwis"
ut of curiosity: when thinking about Python 3.0, what is the timespan in which you expect that to appear? Before 2010? After 2010? After 2020? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Docorator Disected

2005-04-03 Thread "Martin v. Löwis"
s to # nested defined functions in that manner. However, they way I understood it, it seemed incorrect - there are no multiple sets of arguments being passed, atleast not simultaneously. It is, of course, possible to pass multiple sets of arguments sequentially to multiple functions, eg. a = len(x) b = len(y) Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Change between Python 2.3 and 2.4 under WinXP

2005-04-04 Thread "Martin v. Löwis"
y) between python23 and python24". Taken in the literal sense, selecting different versions of python.exe in the start menu might be the fastest way of "alternating". Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Change between Python 2.3 and 2.4 under WinXP

2005-04-05 Thread "Martin v. Löwis"
e should be sufficient (actually, the OP clarified that a "py23.bat" batch file was sufficient for his needs). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Add System Path?!?

2005-04-05 Thread "Martin v. Löwis"
u invoke a Python script, and that modifies the environments of already-running shells - that is not possible. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Erroneous line number error in Py2.4.1 [Windows 2000+SP3]

2005-04-06 Thread "Martin v. Löwis"
Timo wrote: Does anyone have a clue what is going on? No. Please make a bug report to sf.net/projects/python. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: changing from python2.3 to python2.4

2005-04-09 Thread "Martin v. Löwis"
some point, on a new machine, it will be easier to recompile your application than installing python2.3 from sources. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Thoughts on some stdlib modules

2005-04-09 Thread "Martin v. Löwis"
gh energy, a library reorganization will happen. Some will like it, some will hate it. I personally try to avoid library wrappers like the plague. It makes my code harder to write, but easier to read. Regards, Martin (*) Just look at the Apache Commons library. People write wrappers for stuff li

Re: Text & Unicode processing references on the web.

2005-04-09 Thread "Martin v. Löwis"
ython.org/doc/current/lib/markup.html PyXML has its own documentation page, on http://pyxml.sourceforge.net/topics/docs.html As for book recommendations: What language? I would recommend Fischbeck, v. Löwis: Python 2 :-) It covers all of these topics. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python extension performance

2005-04-09 Thread "Martin v. Löwis"
the Python interpreter (and no, the GIL would not be an immediate explanation) - The Python interpreter (unknowingly) switches the processor to a different floating-point operation mode, one which is less efficient (but, say, more correct). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Thoughts on some stdlib modules

2005-04-10 Thread "Martin v. Löwis"
e type, and that "something else" is so much easier to use. Why is it that the authors of "something else" never contribute it to Python? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

<    15   16   17   18   19   20   21   22   23   24   >