Re: [Python-Dev] os.normpath may change the meaning of the path if it contains symbolic links?

2005-12-02 Thread jepler
Consider: $ mkdir -p d/d/d $ echo 1 d/d/a $ echo 2 a $ ln -s d/d/d x $ python -c 'import os; print open(os.path.normpath(x/../a)).read(),' 2 $ cat x/../a 1 Jeff pgpy3c6WUgcp4.pgp Description: PGP signature ___

Re: [Python-Dev] Patch Req. # 1351020 1351036: PythonD modifications

2005-11-20 Thread jepler
On Sat, Nov 19, 2005 at 11:06:16PM +0100, Martin v. Löwis wrote: [EMAIL PROTECTED] wrote: I would appreciate feedback concerning these patches before the next PythonD (for DOS/DJGPP) is released. PEP 11 says that DOS is not supported anymore since Python 2.0. So I am -1 on reintroducing

Re: [Python-Dev] to_int -- oops, one step missing for use.

2005-11-12 Thread jepler
$ python2.4 -c 'import sys; print sys.maxint, sys.maxint == (163) - 1' 9223372036854775807 True $ python2.4 test_hi_powers.py Test 0.2 of to_int 0.16 .. -- Ran

Re: [Python-Dev] make testall hanging on HEAD?

2005-10-25 Thread jepler
ditto on the curses problem, but test_timeout completed just fine, at least the first time around. fedora core 4, x86_64 [GCC 4.0.1 20050727 (Red Hat 4.0.1-5)] on linux2 Jeff pgpTesSunOdI7.pgp Description: PGP signature ___ Python-Dev mailing list

Re: [Python-Dev] cross compiling python for embedded systems

2005-10-23 Thread jepler
There's a patch on sourceforge for cross compiling. I haven't used it personally. http://sourceforge.net/tracker/index.php?func=detailaid=1006238group_id=5470atid=305470 Jeff pgpzVmD49shTu.pgp Description: PGP signature ___ Python-Dev mailing list

Re: [Python-Dev] AST branch update

2005-10-13 Thread jepler
I'm excited to see work continuing (resuming?) on the AST tree. I don't know how many machines you've been able to test the AST branch on. I have a linux/amd64 machine handy and I've tried to run the test suite with a fresh copy of the ast-branch. test_trace segfaults consistently, even when

Re: [Python-Dev] Unicode charmap decoders slow

2005-10-05 Thread jepler
The function the module below, xlate.xlate, doesn't quite do what .decode does. (mostly that characters that don't exist are mapped to u+fffd always, instead of having the various behaviors avilable to .decode) It builds the fast decoding structure once per call, but when decoding 53kb of data

Re: [Python-Dev] Unicode charmap decoders slow

2005-10-03 Thread jepler
As the OP suggests, decoding with a codec like mac-roman or iso8859-1 is very slow compared to encoding or decoding with utf-8. Here I'm working with 53k of data instead of 53 megs. (Note: this is a laptop, so it's possible that thermal or battery management features affected these numbers a

Re: [Python-Dev] bug in urlparse

2005-09-08 Thread jepler
On Thu, Sep 08, 2005 at 12:41:39PM -0600, Mike Brown wrote: [EMAIL PROTECTED] wrote: According to RFC 2396[1] section 5.2: RFC 2396 is obsolete. It was superseded by RFC 3986 / STD 66 early this year. Thanks for the correction. Jeff pgpFDXgf6EeqZ.pgp Description: PGP signature

Re: [Python-Dev] bug in urlparse

2005-09-04 Thread jepler
According to RFC 2396[1] section 5.2: g) If the resulting buffer string still begins with one or more complete path segments of .., then the reference is considered to be in error. Implementations may handle this error by retaining these components in the

Re: [Python-Dev] SWIG and rlcompleter

2005-08-15 Thread jepler
You don't need something like a buggy SWIG to put non-strings in dir(). class C: pass ... C.__dict__[3] = bad wolf dir(C) [3, '__doc__', '__module__'] This is likely to happen legitimately, for instance in a class that allows x.y and x['y'] to mean the same thing. (if the user assigns to