[issue4760] cmp gone---What's new in 3.1

2008-12-27 Thread David W. Lambert
New submission from David W. Lambert : http://docs.python.org/dev/3.0/whatsnew/3.1.html To Other Language Changes add cmp removed. I haven't installed version 3.1; I don't know if it has actually been removed. -- assignee: georg.brandl components: Documentation messages: 78394 nosy:

[issue4705] python3.0 -u: unbuffered stdout

2008-12-27 Thread STINNER Victor
STINNER Victor added the comment: pitrou's patch changes PyFile_FromFd() behaviour for a text file opened with buffering=0: /* As a convenience, when buffering == 0 on a text file, we open the underlying binary stream in unbuffered mode and wrap it with a text stream in line-buffere

[issue4759] bytearray.translate() should support None first argument

2008-12-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: Looks good to me. I don't think it should be applied to 3.0, though. -- nosy: +benjamin.peterson ___ Python tracker ___ _

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Mmmh, very recent Linux kernels (>= 2.6.16) seem to have specific functions to deal with this (see man pages for openat, unlinkat, etc.). ___ Python tracker

[issue4759] bytearray.translate() should support None first argument

2008-12-27 Thread Georg Brandl
New submission from Georg Brandl : bytes.translate() does. Patch attached. -- assignee: pitrou components: Interpreter Core files: bytearray-translate.diff keywords: patch messages: 78390 nosy: georg.brandl, pitrou priority: normal severity: normal stage: patch review status: open title:

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: What course of action do you suggest? First chmod 0700 on the directory? -- nosy: +pitrou ___ Python tracker ___ ___

[issue3055] test_list on 64-bit platforms

2008-12-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4265] shutil.copyfile() leaks file descriptors when disk fills

2008-12-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou priority: -> normal stage: -> patch review versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker ___

[issue4270] struct module: pack/unpack and byte order on x86_64

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: The change in result length is actually normal. If you look at the doc for the struct module, the default size and byte order character is "@", which means "native byte order and native size". On x86-64 Linux, the "native" long size is 64 bits, so the result is

[issue4705] python3.0 -u: unbuffered stdout

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch nosy: +pitrou priority: -> high stage: -> patch review type: -> behavior Added file: http://bugs.python.org/file12475/unbufferedstdout.patch ___ Python tracker

[issue4444] unittest - use contexts to assert exceptions

2008-12-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue4732] Object allocation stress leads to segfault on RHEL

2008-12-27 Thread ebfe
ebfe added the comment: I can't reproduce the problem here. Python 2.5.2 running on Linux lueg-desktop 2.6.24-22-generic #1 SMP Mon Nov 24 18:32:42 UTC 2008 i686 GNU/Linux -- nosy: +ebfe ___ Python tracker ___

[issue4677] a list comprehensions tests for pybench

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed (r67965, r67966). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue4732] Object allocation stress leads to segfault on RHEL

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: I can't reproduce it under Mandriva Linux on an x86-64 machine. -- nosy: +pitrou ___ Python tracker ___

[issue4669] bytes,join and bytearray.join not in manual; help for bytes.join is wrong.

2008-12-27 Thread Georg Brandl
Georg Brandl added the comment: Closing as "works for me". -- resolution: -> works for me status: open -> closed ___ Python tracker ___ _

[issue4671] pydoc executes the code to be documented

2008-12-27 Thread Georg Brandl
Georg Brandl added the comment: Documented in r67963. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue4697] Clarification needed for subprocess convenience functions in Python 3.0 documentation

2008-12-27 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r67962. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue4695] Bad AF_PIPE address in multiprocessing documentation

2008-12-27 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r67960. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue4682] 'b' formatter is actually unsigned char

2008-12-27 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed the docs in r67958. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue4754] winsound documentation (about stoping sounds)

2008-12-27 Thread Georg Brandl
Georg Brandl added the comment: Thanks, applied in r67957. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue4748] yield expression vs lambda

2008-12-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r67954. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue4758] Python 3.0 internet documentation needs work

2008-12-27 Thread Georg Brandl
Georg Brandl added the comment: I'd be happy with comments on this bug. I can't promise that I'll have the time to review everything, but the more specific the remarks are, the easier it's for me to update the docs. Thanks for your efforts! ___ Python track

[issue4739] [patch] Let users do help('@') and so on for confusing syntax constructs.

2008-12-27 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the patch! Applied with minor edits to the trunk as r67953. I will backport to the 2.6 branch as well. -- resolution: -> accepted status: open -> closed ___ Python tracker

[issue4748] yield expression vs lambda

2008-12-27 Thread Georg Brandl
Georg Brandl added the comment: >> Hmm, I wonder why lambda: (yield 1) alone doesn't give [1, None]. (That >> should also go into the test case.) > > Actually, I don't think the return value should even make it's way to > the list. Generator lambdas shouldn't have any return value IMO. Yes, I t

[issue4748] yield expression vs lambda

2008-12-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Sat, Dec 27, 2008 at 11:41 AM, Georg Brandl wrote: > > Georg Brandl added the comment: > > I didn't find it, but someone from the German Python webforum. :) > > Hmm, I wonder why lambda: (yield 1) alone doesn't give [1, None]. (That > should also go into

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-27 Thread Lars Gustäbel
Lars Gustäbel added the comment: Anatoly is right, the gzip file format specification (RFC 1952) says that the FNAME header field must be the basename of the original filename. So, this behaviour is not tarfile's fault but that of the gzip module and should be fixed there. 7zip can still decompr

[issue4752] Error in SocketServer UDP documentation

2008-12-27 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r67952. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue4748] yield expression vs lambda

2008-12-27 Thread Georg Brandl
Georg Brandl added the comment: I didn't find it, but someone from the German Python webforum. :) Hmm, I wonder why lambda: (yield 1) alone doesn't give [1, None]. (That should also go into the test case.) Anyway, perhaps yield in lambdas should be forbidden. _

[issue1194378] sendmsg() and recvmsg() for C socket module

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch doesn't apply cleanly to the current trunk (which is understandable, given the patch is from 2005). Also, some tests would be welcome as Thomas said. And bonus points for documentation :) -- nosy: +pitrou stage: -> needs patch type: -> featu

[issue4745] socket.send obscure error message

2008-12-27 Thread Georg Brandl
Georg Brandl added the comment: Benjamin, please continue mentioning issue numbers in commit messages, even if it's a trivial fix like this one. -- nosy: +georg.brandl ___ Python tracker ___

[issue4241] zipfile.py -> is_zipfile leaves file open when error

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed by Gabriel's patch (just committed in trunk and py3k). -- nosy: +pitrou resolution: -> fixed status: open -> closed ___ Python tracker __

[issue4756] zipfile.is_zipfile: added support for file-like objects

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r67946, r67947. Thanks! -- nosy: +pitrou resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue4757] reject unicode in zlib

2008-12-27 Thread ebfe
ebfe added the comment: I don't think Python 2.x should be changed - but 3.0 or 3.1 should be: - Characters don't mean a thing in zlib-land, all operations are based on bytes and their (implicit) default encoding. This behaviour is hidden and somewhat violates the rule of least surprise. - ty

[issue4753] Faster opcode dispatch on gcc

2008-12-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file12457/threadedceval1.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue4753] Faster opcode dispatch on gcc

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: This new patch uses a statically initialized jump table rather than specific initialization code. Added file: http://bugs.python.org/file12474/threadedceval2.patch ___ Python tracker _

[issue4753] Faster opcode dispatch on gcc

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This looks like a promising approach. Is is possible to backport > this change to Python 2.x as well ? Certainly. ___ Python tracker ___ _

[issue4753] Faster opcode dispatch on gcc

2008-12-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2008-12-26 22:09, Antoine Pitrou wrote: > This patch implements what is usually called "threaded code" for the > ceval loop on compilers which support it (only gcc). The idea is that > there is a separate opcode dispatch epilog at the end of each opcode,

[issue4758] Python 3.0 internet documentation needs work

2008-12-27 Thread David M. Beazley
New submission from David M. Beazley : I have recently completed a pretty thorough survey of library documentation for Python 3.0 in conjunction with an update I'm making to my book. This issue is not so much a bug as a documentation request. For all of the library modules related to network

[issue4757] reject unicode in zlib

2008-12-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2008-12-27 13:58, STINNER Victor wrote: > Python 2.x allows to encode any byte string (str) and ASCII unicode > string (unicode): > > $ python > Python 2.5.1 (r251:54863, Jul 31 2008, 23:17:40) import zlib zlib.compress('abc') > "x\x9cKLJ\x06\

[issue1885] [distutils] - error when processing the "--formats=tar" option

2008-12-27 Thread Tarek Ziadé
Changes by Tarek Ziadé : Added file: http://bugs.python.org/file12473/1885.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue1885] [distutils] - error when processing the "--formats=tar" option

2008-12-27 Thread Tarek Ziadé
Changes by Tarek Ziadé : Removed file: http://bugs.python.org/file12471/1885.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue4738] Patch to make zlib-objects better support threads

2008-12-27 Thread STINNER Victor
STINNER Victor added the comment: I opened a separate issue for the unicode problem: #4757. ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1194378] sendmsg() and recvmsg() for C socket module

2008-12-27 Thread David M. Beazley
David M. Beazley added the comment: Just a followup comment to note that adding support for sendmsg()/recvmsg() is what you need to do "file descriptor passing" between processes on Unix---another technique for writing network servers. ___ Python tracker <

[issue4757] reject unicode in zlib

2008-12-27 Thread STINNER Victor
STINNER Victor added the comment: See also issue #4738 (better threads support in zlib). -- nosy: +ebfe, pitrou ___ Python tracker ___ ___

[issue4757] reject unicode in zlib

2008-12-27 Thread STINNER Victor
New submission from STINNER Victor : Python 2.x allows to encode any byte string (str) and ASCII unicode string (unicode): $ python Python 2.5.1 (r251:54863, Jul 31 2008, 23:17:40) >>> import zlib >>> zlib.compress('abc') "x\x9cKLJ\x06\x00\x02M\x01'" >>> zlib.compress(u'abc') "x\x9cKLJ\x06\x00\

[issue1886] Permit to easily use distutils "--formats=tar, gztar, bztar" on all systems

2008-12-27 Thread Roumen Petrov
Roumen Petrov added the comment: Did I misunderstood something about -j -z -Z flags ? http://src.opensolaris.org /source/xref/onnv/onnv-gate/usr/src/cmd/tar/tar.c ___ Python tracker ___ _

[issue1885] [distutils] - error when processing the "--formats=tar" option

2008-12-27 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek nosy: +tarek status: closed -> open Added file: http://bugs.python.org/file12471/1885.patch ___ Python tracker ___

[issue4718] wsgiref package totally broken

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, sorry for the misunderstanding. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue4718] wsgiref package totally broken

2008-12-27 Thread Dmitry Vasiliev
Dmitry Vasiliev added the comment: Antoine Pitrou wrote: > Why do you say they were removed? I see code like "assert > isinstance(value, bytes)". Support and tests for mutable "bytearray" and "memoryview" was removed. All subclasses of "bytes" must be immutable so isinstance() should be OK here

[issue4718] wsgiref package totally broken

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why do you say they were removed? I see code like "assert isinstance(value, bytes)". ___ Python tracker ___ _

[issue4718] wsgiref package totally broken

2008-12-27 Thread Dmitry Vasiliev
Dmitry Vasiliev added the comment: Antoine Pitrou wrote: >> Hmm, it's strange because such tests was removed two versions ago (per >> discussion with Phillip). But at the time they really was needed. > > Not a big deal anyway, let's keep them and we'll see. I'm afraid I've lost your point here

[issue4738] Patch to make zlib-objects better support threads

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > May I also suggest to change the zlib module not to accept s* but y* You are probably right, but this would also break the API and can't be done lightheartedly. You can open a new bug entry about this though. ___ Python tr

[issue4718] wsgiref package totally broken

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Hmm, it's strange because such tests was removed two versions ago (per > discussion with Phillip). But at the time they really was needed. Not a big deal anyway, let's keep them and we'll see. ___ Python tracker

[issue4718] wsgiref package totally broken

2008-12-27 Thread Dmitry Vasiliev
Dmitry Vasiliev added the comment: Antoine Pitrou wrote: > The patch looks ok to me, although the tests against mutable byte-like > types are probably useless. Hmm, it's strange because such tests was removed two versions ago (per discussion with Phillip). But at the time they really was needed

[issue4374] Pickle tests fail w/o _pickle extension

2008-12-27 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue4374] Pickle tests fail w/o _pickle extension

2008-12-27 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Committed in r67940. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue4730] cPickle corrupts high-unicode strings

2008-12-27 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Fixed in r67934. Backported to 2.6 in r67936. Thanks! -- nosy: +alexandre.vassalotti resolution: -> fixed status: open -> closed ___ Python tracker _

[issue4746] Misguiding wording 3.0 c-api reference

2008-12-27 Thread Martin v. Löwis
Martin v. Löwis added the comment: > I guess the phrase "you must not provide storage" is a failed > translation and not meant like that. It should say "you are not required > to provide storage". It's confusing to have such strong wording without > reason. It's stronger than "you are not requi

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-27 Thread Martin v. Löwis
Martin v. Löwis added the comment: Lars, what do you think? -- assignee: -> lars.gustaebel nosy: +lars.gustaebel, loewis ___ Python tracker ___ _