Re: pre-PEP: Object-oriented file module

2005-08-25 Thread Martin v. Löwis
ious as to how you would be dealing with Unicode file names. How to access file attributes is also an interesting question (e.g. how to find out whether it is a symlink, whether it is a hidden file, what the POSIX ACL is, and what the 8.3 short name is) Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: pre-PEP: Object-oriented file module

2005-08-25 Thread Martin v. Löwis
efore, the documentation must be complete and consistent, and there should be an agreement as to what this library can do and what it cannot do. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: variable hell

2005-08-26 Thread Martin v. Löwis
name__', 'a0', 'a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'a7', 'a8', 'a9', 'count'] >>> a5 5 (you can put additional parentheses around the string, but not additional quotation marks) Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Setting the encoding in pysqlite2

2005-08-26 Thread Martin v. Löwis
it from Python because of the unicode error > :-( You should not do that. In SQLite 3, TEXT fields should always be UTF-8. That .import did not reject your data sounds like a bug in .import. So if you make your input data UTF-8, you should be able to fetch them easily, and receive Unicode strings

Re: Should I move to Amsterdam?

2005-08-26 Thread Martin P. Hellwig
Sybren Stuvel wrote: > Martin P. Hellwig enlightened us with: > >>Personal transportation sucks in the Netherlands, if you live in the >>Randstad (the area of the above mentioned cities) and you have to >>travel across the Randstad, you go with the bike and/or >>bus

Re: Command Line arguments

2005-08-26 Thread Martin v. Löwis
Trent Mick wrote: >>I used the python2.4.MSI from python.org site (dated 3-6-05). I think this >>was the first time they went to MSI verses an exe based installer. >> >>it says Python 2.4 (#60 November 30th, 2004) when I start it. > > > I think Martin has been d

which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Hi, I am looking for the reg path that is modified/created by the pyton installer to associate *.pyc with python.exe as I wish to associate *.pyc with pythonw.exe Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Hi, I am looking for the reg path that is modified/created by the pyton installer to associate *.pyc with python.exe as I wish to associate *.pyc with pythonw.exe Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Keir, I forgot to mention that I want to do it automatically from my application's installer. Regards, Philippe keirr wrote: > Philippe, > > You wrote: I wish to associate *.pyc with pythonw.exe > > is there some reason why Tools->Folder Options->File Types (from a > Windows Explorer me

Re: which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Yes Keir, Thanks a lot. Regards; Philippe keirr wrote: > Philippe, > > Windows file associations are in > HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts > > Hope that helps you. > > All the best, > > Keir. -- http://mail.python.org/mailman/listinfo/python

Re: determine if os.system() is done

2005-09-07 Thread Martin P. Hellwig
Lars Gustäbel wrote: > [Fredrik Lundh] > >>han har försökt, men hans tourette tog överhanden: > > > IMHO it's more likely an Asperger's syndrome. > > http://en.wikipedia.org/wiki/Asperger_Syndrome > I disagree, in his writings I found no evidence of autisme. Actually most of it can be classif

Re: determine if os.system() is done

2005-09-07 Thread Martin P. Hellwig
Peter Hansen wrote: > Martin P. Hellwig wrote: > >> The only thing I am disappointed at his writing style, most likely he >> has a disrupted view on social acceptable behavior and communication. >> These skills might be still in development, so perhaps it is >> r

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread Martin P. Hellwig
Stefano Masini wrote: Although I'm not experienced enough to comment on python stuff itself I do know that in general there are 2 reasons that people reinvent the wheel: - They didn't know of the existence of the first wheel - They have different roads Those reasons can even be combined. The m

Re: unicode, C++, python 2.2

2005-09-11 Thread Martin v. Löwis
icode strings? You tried to explain what "UTF8 encoded in UCS4" might be, but I'm not sure I understand the explanation: what precise sequence of statements did you use to create such a thing, and what precisely does it look like (what exact byte is first, what is second, and so on)? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: How to protect Python source from modification

2005-09-12 Thread Philippe C. Martin
Hi, Why not just releasing the *.pyc ? Regards, Philippe Frank Millman wrote: > Hi all > > I am writing a multi-user accounting/business system. Data is stored in > a database (PostgreSQL on Linux, SQL Server on Windows). I have written > a Python program to run on the client, which uses w

Re: python/SSL/Certificate.

2005-09-13 Thread Martin v. Löwis
on the client side, or on the server side? In either case, what precisely are you trying to do *with Python*? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: regexps with unicode-aware characterclasses?

2005-09-13 Thread Martin v. Löwis
he > defaultencoding to utf-8? For Unicode things, you should avoid using byte strings - especially when it comes to regular expressions. Use Unicode strings instead. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Static freeze

2005-09-13 Thread Martin v. Löwis
reate what I need, but I'm hoping there is > someone out there who can help me (or at least save me a lot of time). You need two days to figure out the Makefile? Just changing LDFLAGS/LINKFORSHARED should do the trick. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: How to make python24.dll smaller ?

2005-09-14 Thread Martin v. Löwis
he Python modules as well). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode-aware file shortcuts in Windows

2005-09-17 Thread Martin v. Löwis
IShellLinkW. You need to use the *W version to pass characters outside the ANSI code page. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Simpler transition to PEP 3000 "Unicode only strings"?

2005-09-20 Thread Martin v. Löwis
literals: Just try the -U option of the interpreter some time, which makes all string literals Unicode. If you manage to get the standard library working this way, you won't need a per-file decision anymore: just start your program with 'python -U'. Regards, Martin -- http://

Re: Monitoring a directory for changes

2005-09-20 Thread Martin v. Löwis
Florian Lindner wrote: > is there a python lib (preferably in the std lib) to monitor a directory for > changes (adding / deleting files) for Linux 2.6? I recommend to use the python-fam library: sf.net/projects/python-fam. On Debian, just install the python-fam package. Regards, Martin --

Re: pickle/marshal internal format 'life expectancy'/backward compatibility

2005-02-06 Thread Philippe C. Martin
ilippe On Sun, 06 Feb 2005 02:20:34 -0500, Adam DePrince wrote: > On Sat, 2005-02-05 at 17:04, Tim Peters wrote: >> [Philippe C. Martin] >> > I am looking into using the pickle format to store object/complex data >> > structures into a smart card as it would make

socket question

2005-02-07 Thread Philippe C. Martin
ss that I can ping but has no name. How can I do that ? Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: socket question

2005-02-07 Thread Philippe C. Martin
Thanks you! that did it. PS: the 'wrong' info I got seems to be in the official howtos http://www.amk.ca/python/howto/sockets/ Regards, Philippe On Mon, 07 Feb 2005 18:23:28 +0100, Diez B. Roggisch wrote: >> A couple things to notice: we used socket.gethostname() so that the >> socket woul

Re: socket question

2005-02-07 Thread Philippe C. Martin
Yes it was. Regards, Philippe On Mon, 07 Feb 2005 21:30:28 +, Steve Horsley wrote: > Philippe C. Martin wrote: >> Thanks you! that did it. >> > > That makes me wonder what socket.gethostname() was returning. > It wasn't 'localhost', was it?

Re: socket question

2005-02-07 Thread Philippe C. Martin
Thanks, it was a bind problem: socket.gethostname() returns 'localhost' where '' is was was needed. Regards, Philippe On Mon, 07 Feb 2005 11:02:13 -0800, Kartic wrote: > > Philippe C. Martin wrote: >> >> My problem is that I cannot connect to my serv

broke tkinter

2005-02-08 Thread Philippe C. Martin
Any clue! Regards, Philippe -- ******* Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: broke tkinter

2005-02-08 Thread Philippe C. Martin
I'll check, thanks. Philippe On Tue, 08 Feb 2005 18:03:11 +, wes weston wrote: > Philippe C. Martin wrote: >> Hi, >> >> I decided to clean my system and rebuild python from scratch. >> >> I downloaded tk8.4.9, tcl8.4.9 and Python2-4.tar.bz2

Re: msvcp71.dll and Python 2.4 C++ extensions

2005-02-08 Thread "Martin v. Löwis"
should make sure to use the DLL version of the C runtime. Otherwise, you will be mixing multiple C runtimes (one that python24.dll links with, and one linked statically into your extension); this might cause troubles (such as memory leaks and crashes). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing Filenames with non-Ascii-Characters

2005-02-08 Thread "Martin v. Löwis"
program on Debian sarge later. In Linux, make sure that LANG is set to a value that allows Python to infer the encoding of the terminal. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing Filenames with non-Ascii-Characters

2005-02-08 Thread "Martin v. Löwis"
interfaces (menus etc) might be displayed as moji-bake, as the user interface will likely assume CP1252, not CP850. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: python-2.4.msi installation issue

2005-02-08 Thread "Martin v. Löwis"
, upgrading VisualBasic helped, see http://www.python.org/2.4/bugs.html Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_Oracle failed to load DLL BUT versions correct

2005-02-09 Thread Aurelio Martin Massoni
jmdeschamps wrote: Hello Having cx_Oracle (an Oracle database connector for Python) used it here where I teach for the last couple of years, and finding it so easy to use (and install) I was taken aback when I got an error message telling me it could not load the DLL (complete message below) Third

Re: Is this a bug? BOM decoded with UTF8

2005-02-10 Thread "Martin v. Löwis"
denote two "a" characters. Instead, it is a single character U+6161. Is there a trick to read UTF8 encoded file with BOM not decoded? It's very easy: just drop the first character if it is the BOM. The UTF-8 codec will never do this on its own. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this a bug? BOM decoded with UTF8

2005-02-12 Thread "Martin v. Löwis"
on of UCS-2 came along. So while the BOM is now part of all relevant specifications, it is still "Microsoft crap". For more details, see: http://www.unicode.org/faq/utf_bom.html#BOM "some higher level protocols", "can be useful" - not "is inherent part of all byte-l

Re: sre is broken in SuSE 9.2

2005-02-12 Thread "Martin v. Löwis"
portable character set is defined here: http://www.opengroup.org/onlinepubs/007908799/xbd/charset.html Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

dos box appears when clicking .pyc

2005-02-12 Thread Philippe C. Martin
Hi, For a few months now, I have been used .pyc script under XP without getting the "DOS" box. I just re-installed the scripts on another XP box and am now getting the DOS box ! Something to do with the registry ? Regards, Philippe -- *** Philippe

Re: sre is broken in SuSE 9.2

2005-02-13 Thread "Martin v. Löwis"
implementation can use to indicate that wchar_t uses Unicode (aka ISO 10646) in all locales. Very few implementations define this constant at this time, though. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: For American numbers

2005-02-13 Thread "Martin v. Löwis"
uot; is 1024, "mebi" is 1024*1024 and so forth. "kilo" is 1000. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: sre is broken in SuSE 9.2

2005-02-13 Thread "Martin v. Löwis"
t it isn't in glibc 2.3.2. Again, I suggest to ask the glibc developers as to why this is so. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: win32 extension install hiccup

2005-02-13 Thread "Martin v. Löwis"
s why it bombed. How do I fix this? Most likely, by not installing Python into a path that has spaces in it. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: supress creation of .pyc files

2005-02-16 Thread "Martin v. Löwis"
Thomas Guettler wrote: Is there a way to import a file without creating a .pyc file? That is part of PEP 304, which is not implemented yet, and apparently currently stalled due to lack of interest. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with C extensions under VC6 / WinXP and Python 2.4

2005-02-17 Thread "Martin v. Löwis"
Scott wrote: I'm specifically trying to perform step 6. Creating a brand new project using VC6. The instructions are outdated. Don't use VC6 to build extension modules for Python 2.4. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode encoding usablilty problem

2005-02-18 Thread "Martin v. Löwis"
m, which allows to add Unicode support to libraries as the need arises. This transition is still in progress. Eventually, the primary string type should be the Unicode string. If you are curious how far we are still off that goal, just try running your program with the -U option. Regards, Martin --

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-19 Thread "Martin v. Löwis"
http://groups-beta.google.com/group/comp.lang.python/msg/dc3474e6c8053336 The official statement is that the MingW compiler is supported, indeed. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

could that be a mutable object issue ?

2005-02-19 Thread Philippe C. Martin
m_rw.books, I see my 'appends' in there, yet the pickled object does not change. Any clue ? Thanks Philippe -- ******* Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: could that be a mutable object issue ?

2005-02-19 Thread Philippe C. Martin
Yes, and that is my initial problem: I seem to write correctly that 'pickle string' to a device, by when I read it back, the appended information is gone. On Sat, 19 Feb 2005 19:13:58 +0100, Fredrik Lundh wrote: > Philippe C. Martin wrote: > >> print 'LEN OF

Re: could that be a mutable object issue ?

2005-02-19 Thread Philippe C. Martin
You are correct and I still don't know Python (sigh). Thanks Philippe On Sat, 19 Feb 2005 15:51:18 -0500, Kent Johnson wrote: > Philippe C. Martin wrote: >> If I do this: >> >> >> >> print 'LEN OF BOOK BEFORE APPEND: ', len(pickle.dumps(se

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-20 Thread "Martin v. Löwis"
Ilias Lazaridis wrote: Should a professional developer take python serious? Yes. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode encoding usablilty problem

2005-02-20 Thread "Martin v. Löwis"
e of Latin-1: bytes = "GIOP\x01\0".encode("l1") Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode encoding usablilty problem

2005-02-20 Thread "Martin v. Löwis"
y difficult to implement on a per-module basis. The errors typically don't occur in the module itself, but in some function called by the module (e.g. a builtin method of the string type). So the callee would have to know whether the caller has a future import... Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-20 Thread "Martin v. Löwis"
automated-build-process, a professional developer *might* take python serious. [a false premise can imply anything] Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode encoding usablilty problem

2005-02-20 Thread "Martin v. Löwis"
support that strings have. The main point being, the replacement for 'str' needs to be immutable or the upgrade process is going to be a serious PITA. Somebody really needs to take this in his hands, completing the PEP, writing a patch, checking applications to find out what breaks. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-20 Thread "Martin v. Löwis"
gs is (as you failed to give a definition when I last asked), but atleast I would have realized that I don't understand the question, and refrained from answering it. Perhaps the question was meant rhetoric. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode encoding usablilty problem

2005-02-21 Thread "Martin v. Löwis"
e PEP will be needed. So you should indicate from the beginning whether you are also willing to work on the implementation. If not, there is a good chance that the PEP again goes dormant after the specification is complete. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE Problem: win98\Python2.4

2005-02-21 Thread "Martin v. Löwis"
atively, a more detailed warning if import _tkinter failed and TCL_LIBRARY is set could be produced (instead of silently "fixing" the problem for the user). Patches in this direction are welcome. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux & Windows XP

2005-02-21 Thread "Martin v. Löwis"
characters; a Japanese term for the problem, as Japanese users are familiar with the problem for a long time) The Python Unicode type solves these problems for good, but you need to use it correctly. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux & Windows XP

2005-02-22 Thread "Martin v. Löwis"
SCII characters in string literals is not deprecated (assuming there is an encoding declaration in the source); trusting then that the string literals are utf-8-encoded (and decoding them such) is fine. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: compatbility of .pyc files

2005-02-22 Thread "Martin v. Löwis"
e (i.e. one with an incorrect magic), Python will silently ignore the .pyc file, use the source, and attempt to regenerate the .pyc file. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode(obj, errors='foo') raises TypeError - bug?

2005-02-23 Thread "Martin v. LÃwis"
ignore the encoding argument for the case that the object was str() converted, why should the errors argument not be ignored? It is inconsistent to ignore one parameter to the decoding but not the other. Regards, Martin (*) I admit that the reasoning for ignoring the encoding is somewhat flawed. There

Re: LC_ALL and os.listdir()

2005-02-23 Thread "Martin v. Löwis"
other post. UTF-8 might be the wrong choice: the path might be encoded as, say, ISO-8859-1 on disk, in which case an UTF-8-encoded path would not be found. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: LC_ALL and os.listdir()

2005-02-23 Thread "Martin v. Löwis"
;Invalid path name", repr(path) sys.exit(1) Ultimately, all I'm trying to do is copy some files around. I'd really prefer to find a programmatic way to make this work that was independent of the user's configured locale, if possible. As long as you manage to get a byte st

Re: LC_ALL and os.listdir()

2005-02-23 Thread "Martin v. Löwis"
e the only (one of a very few?) occasion where Python combines byte+unicode => byte. Furthermore, it might be that the conversion of the Unicode string to a file name fails as well. That said, I still think it is a good idea, so contributions are welcome. Regards, Martin -- http://mail.python.org

Re: unicode(obj, errors='foo') raises TypeError - bug?

2005-02-23 Thread "Martin v. LÃwis"
calls to it. One thing that hasn't been pointed out in this thread yet is that the OP could just define __unicode__() on his class to do what he wants... Actually, Steven Bethard wrote "You should either define __unicode__ or call str() manually on the object." Regards,

Re: LC_ALL and os.listdir()

2005-02-24 Thread "Martin v. Löwis"
icode coercions are turned off. In such an environment, it is probably desirable that os.path.join performs no coercion as well, so this might need to get special-cased. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: os.stat('')[stat.ST_INO] on Windows

2005-02-27 Thread "Martin v. Löwis"
e, and therefore st_ino, has no meaning in the FAT, HPFS, or NTFS file systems. """ So we know it has no meaning, but they won't tell us what its value is. Fortunately, MS ships the source of the CRT in VC, so we know st_ino is always 0 (as are st_uid and st_gid). Regards, Martin

Re: [Python-Dev] Re: python-dev Summary for 2005-01-16 through 2005-01-31

2005-03-01 Thread "Martin v. Löwis"
;t anything wrong with taking a vacation from a project for some time, not even if the vacation takes a few years :-) Enough ranting. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: os.stat('')[stat.ST_INO] on Windows

2005-03-01 Thread "Martin v. Löwis"
32 bits). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: os.stat('')[stat.ST_INO] on Windows

2005-03-03 Thread "Martin v. Löwis"
ims that you need an open file to support the notion of a file identifier). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: locale support and 4.10

2005-03-05 Thread "Martin v. Löwis"
ur OS documentation for what valid locale names are; most likely, "en_US" or "en_US.ISO-8859-1" are supported. also my second question. once i have this working how do i set the thousands_sep character to be a "," ? You don't directly set it. It is a property of

Re: locale support and 4.10

2005-03-05 Thread "Martin v. Löwis"
Timothy Smith wrote: something strange is happening, no matter what i try nothing is a supported locale and yes it's freebsd 4.10 Sounds like a problem with your operating system. AFAICT, you ought to have a directory /usr/share/locale on your disk. What is its contents? Regards, Martin --

Re: Unicode BOM marks

2005-03-07 Thread "Martin v. LÃwis"
? UTF-16 Why should I need these constants if codecs decoder can handle them without my help, only specifying the encoding ? Well, because the codecs don't. It might be useful to add a "utf-8-signature" codec some day, which generates the signature on encoding, and removes it on decoding. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 / WinXP / distutils error (cookbook example)

2005-03-07 Thread "Martin v. Löwis"
rename the C library (CRT) between 2002 (msvcr7.dll) and 2003 (msvcr71.dll), and you need to make sure your extension uses the same CRT as the one used to build Python. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: hidden attribute on Windows files

2005-03-07 Thread "Martin v. Löwis"
ystem to invoke that command, make sure you get the quoting right in case pathname might contain spaces. attrib.exe is located in the system folder (windows\system32), so it should be on the PATH. HTH, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: autoexecution in Windows

2005-03-07 Thread "Martin v. Löwis"
, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode BOM marks

2005-03-07 Thread "Martin v. LÃwis"
the individual characters is formed by the unichr and ord builtin functions, which expect and return integers between 0 and sys.maxunicode. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode surrogates in py2.2/win

2005-03-08 Thread "Martin v. LÃwis"
t;stop supporting Py 2.2". Unless you have the time machine, you can't fix the bugs in old Python releases, and it is a waste of time (IMO) to uglify the code just to work around limitations in older interpreter versions. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: i18n: looking for expertise

2005-03-08 Thread "Martin v. Löwis"
return orig(name.encode(sys.getfilesystemencoding(), mode)) os.access=access Apparently, access is used so rarely that nobody has noticed yet (or didn't bother to report). os.path.isfile() builds on os.stat(), which does support Unicode file names. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe Python2.4 and "warning: string/unicode conversion"

2005-03-08 Thread "Martin v. Löwis"
s really surprising that you get this, as the only occurrence of the string "string/unicode conversion" in Python was *removed* in Python 2.4. It was present in 2.3, and occurred if strtoul returned an overflow error. Are you sure you are using Python 2.4? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils: binary distribution?

2005-03-09 Thread "Martin v. Löwis"
(more specifically, the build_py command), or you modify the relevant bdist_* command to not include the "built" .py files into the binary distribution. Once you have implemented the derived commands, you pass them to the setup function in the cmdclass keyword argument. Regards, Mart

Re: Unicode BOM marks

2005-03-09 Thread "Martin v. LÃwis"
processing, and both simply dropping it, or reporting an error are both acceptable behaviour. Applications that need the ZWNBSP behaviour (i.e. want to indicate that there should be no break at this point) should use U+2060 (WORD JOINER). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4, distutils, and pure python packages

2005-03-10 Thread "Martin v. Löwis"
might to replace extract.c largely with Python source code, and run this in an interpreter... Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-10 Thread "Martin v. Löwis"
) for details of the bugs squished in this release. I'd like to encourage feedback on whether the Windows installer works for people. It replaces the VBScript part in the MSI package with native code, which ought to drop the dependency on VBScript, but might introduce new incompatibilities. Regar

Re: i18n: looking for expertise

2005-03-11 Thread "Martin v. Löwis"
oding. On most systems, this encoding is good for usage on the file system API, except for MacOS X, which uses UTF-8 to encode file names regardless of user or system settings. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: i18n: looking for expertise

2005-03-11 Thread "Martin v. Löwis"
ing that's displayed on tk widgets should be ok (I hope). So do I. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-11 Thread "Martin v. Löwis"
), but the installer didn't say anything about being unable to write the file. Ah, ok. I'll see whether I can reproduce this. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4, distutils, and pure python packages

2005-03-12 Thread "Martin v. Löwis"
(but then, it doesn't allow to select a target directory, so you can have only as many installations as you find in the registry). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-12 Thread "Martin v. Löwis"
uninstall first, then install the new package, as installer will then quickly detect that all files are new. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: i18n: looking for expertise

2005-03-12 Thread "Martin v. Löwis"
that locale.CODESET raises an AttributeError. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Licensing Python code under the Python license

2005-03-12 Thread "Martin v. Löwis"
imes do so in a surprising manner (*). I've been picking on the BSD license because I can remember the complaints Larry has about its text. Regards, Martin (*) If you are curious: Larry argues that, while the permission to use is meaningless in copyright law, it is meaningful in patent law. To us

Re: bsddb support for berkeley db 4.3?

2005-03-12 Thread "Martin v. Löwis"
into the Python CVS, but they are requested to avoid adding new features to Python 2.4. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: bsddb support for berkeley db 4.3?

2005-03-13 Thread "Martin v. Löwis"
, and this applies to Java only, so it should be irrelevant. Of course, if 4.3 would fix a serious bug that affects Python users, it might be necessary to reconsider. From the huge change list of bug fixes in 4.3, I cannot tell which of these fixes affect Python users. Regards, Martin -- http://mail

Re: smtplib / solaris (newbie problem?)

2005-03-13 Thread "Martin v. Löwis"
nect, but then the application rejects its service because of missing credentials or some such should be different. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Licensing Python code under the Python license

2005-03-13 Thread "Martin v. Löwis"
, a license should state what jurisdiction it applies to. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-13 Thread "Martin v. Löwis"
ing both in add-and-remove programs. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-13 Thread "Martin v. Löwis"
s only one python24.dll - atleast if this is an "allusers" installation. I'll see what I can do wrt. telling the user, but I may not find the time; contributions are welcome. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-14 Thread "Martin v. Löwis"
ython24.dll first in the directory of python.exe (where no DLL should have been found), and would only fallback to system32 then (which it didn't in your case). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Building Python 2.4 with icc and processor-specific optimizations

2005-03-14 Thread "Martin v. Löwis"
eeze a little extra time out of the startup, perhaps sorting the list at build-time, rather than when Python starts would be good. Although probably not worth the trouble. ;-) Probably not. config.c is hand-written in some (embedded Python) environments, and expecting it to be sorted would break

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-15 Thread "Martin v. Löwis"
Richie Hindle wrote: Yes, that's what's happened. I've copied the new python24.dll into C:\python24, and everything now thinks it's 2.4.1c1. Sorry about that. Is there a reason to keep in c:\python24? Just removing it there should work as well. Regards, Martin -- http://mai

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