[issue4608] urllib.request.urlopen does not return an iterable object

2008-12-28 Thread Jakub Wilk
Jakub Wilk uba...@users.sf.net added the comment: Regarding Senthil's patch: __next__() method seems superfluous to me (and the implementation is buggy). ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4608

[issue4705] python3.0 -u: unbuffered stdout

2008-12-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Should we also change stdin? I don't know, but python -h only talks about stderr/stdout. The manpage of Python2 is clear: -u Force stdin, stdout and stderr to be totally unbuffered. stdin is also unbuffered. It seems

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

2008-12-28 Thread Mart Sõmermaa
Mart Sõmermaa m...@mrts.pri.ee added the comment: Mmmh, the problem with Perl's approach is that it changes the current working directory (calls to chdir()), which is process-specific and not thread-specific. Currently, no function in shutil changes the current working directory, which is a

[issue4762] PyFile_FromFd() doesn't set the file name

2008-12-28 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: PyFile_FromFd() never changes the name of new created file object: $ ./python -c import sys; print(sys.stdout.buffer.name, sys.stdout.name) 0 0 Expected result: stdout stdout. --- Binary mode: - with buffering == 0, the file

[issue4762] PyFile_FromFd() doesn't set the file name

2008-12-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: In my last patch to fix the issue #4705, I replaced PyFile_FromFd() by custom code which set correctly the file name. PyFile_FromFd() is also used in: - _Py_DisplaySourceLine(): name is not used, only PyFile_GetLine(file) -

[issue4762] PyFile_FromFd() doesn't set the file name

2008-12-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: In my last patch to fix the issue #4705, I replaced PyFile_FromFd() by custom code which set correctly the file name. The standard I/O: sys.stdin, sys.stdout and sys.stderr. ___ Python tracker

[issue4762] PyFile_FromFd() doesn't set the file name

2008-12-28 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4762 ___ ___

[issue4701] range objects becomes hashable after attribute access

2008-12-28 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Perhaps the path of least resistance is to change PyObject_Hash to be yet another place where PyType_Ready will be called implicitly if it hasn't been called already? I think that's the best thing to do. It would bring PyObject_Hash in line

[issue1034053] unittest.py patch: add skipped test functionality

2008-12-28 Thread Remy Blank
Remy Blank remy.bl...@pobox.com added the comment: There's still a typo in the docstring of TestResult.addSkipped() (tuble - tuple). ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1034053 ___

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

2008-12-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Using chdir() makes sense and it doesn't look like a too big problem to me: It's a problem if another thread in the process is making file operations using relative paths at the same time. Since shutil functions have until now been safe against

[issue3700] test_bigmem broken

2008-12-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. Not only does it fix the str tests, but it also adds similar tests for bytes and bytearray objects. -- keywords: +patch stage: - patch review versions: +Python 3.1 Added file:

[issue4728] Endianness and universal builds problems

2008-12-28 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: On 28 Dec, 2008, at 16:38, Benjamin Peterson wrote: Benjamin Peterson benja...@python.org added the comment: I applied the patch for #4060 in r67982. I've backported that to 2.6-maint in r67987. I would still like to know what

[issue4064] distutils.util.get_platform() is wrong for universal builds on macosx

2008-12-28 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've committed the patch with some documentation in r67988, with a backport to 2.6.x in r67989. r67990 (not backported) is a minor update of the patch, it adds explicit support code for all three variants that are configurable through

[issue4763] PyErr_GivenExceptionMatches documentation out of date

2008-12-28 Thread garcia
New submission from garcia ronald.gar...@rice.edu: The documentation for PyErr_GivenExceptionMatches states that If given is NULL, a memory access violation will occur. However, looking at the code, this is not the case: the function returns 0 (read: false). It appears, rather, that this

[issue4761] create Python wrappers for openat() and others

2008-12-28 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: There is a tradition that any POSIX calls are added to the POSIX module without much discussion, provided that a) there is an autoconf test testing for their presence, and b) they expose the API as-is, i.e. without second-guessing the

[issue4761] create Python wrappers for openat() and others

2008-12-28 Thread Christian Heimes
Christian Heimes li...@cheimes.de added the comment: The openat() functions sound useful indeed. However I'm concerned about the file descriptor requirment for the *at() POSIX functions. In Python file descriptors can lead to resource leaks because developers are used to automatic garbage

[issue4763] PyErr_GivenExceptionMatches documentation out of date

2008-12-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Thanks for the report! Fixed in r67995. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4763

[issue4761] create Python wrappers for openat() and others

2008-12-28 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Developers may think that the file descriptor is closed when the integer object gets out of scope. I'm not concerned about that. When they use os.open, they will typically understand what a file handle is, and how it relates to I propose

[issue4617] SyntaxError when free variable name is also an exception target

2008-12-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I think being able to delete free variables is reasonable and brings more consistency as well as solving corner cases like this. -- nosy: +benjamin.peterson ___ Python tracker

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

2008-12-28 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Roumen, could you be more specific about what are you trying to say with this 200kB piece of code? Was it the intention to post a link to man or another piece of spec? ___ Python tracker

[issue4685] IDLE will not open (2.6.1 on WinXP pro)

2008-12-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I would like to see the complete list of messages. Looks like a broken python installation... ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4685

[issue4449] AssertionError in Doc/includes/mp_benchmarks.py

2008-12-28 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- keywords: +needs review stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4449 ___

[issue4764] open('existing_dir') - IOError instance's attr filename is None

2008-12-28 Thread Jan Kaliszewski
New submission from Jan Kaliszewski z...@chopin.edu.pl: Py2.4 and 2.5 (and probably other 2.x releases too): try: f=open('existing_dir') ... except IOError, exc: print exc.filename ... None (expected result: existing_dir) Py3.0 (and possibly 3.1 too): try: f=open('existing_dir') ... except

[issue4732] Object allocation stress leads to segfault on RHEL

2008-12-28 Thread Andrew
Andrew fbsd...@gmail.com added the comment: Cannot reproduce this on RHEL 4. So far only RHEL 5.x seems to be affected. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4732 ___

[issue4765] IDLE fails to Delete Custom Key Set properly

2008-12-28 Thread Alex Fainshtein
New submission from Alex Fainshtein alex_fainsht...@netzero.net: How to reproduce: 1. Start IDLE - Python Shell window opens. 2. Open Options|Configure Idle 3. In idle dialog select Keys tab. 4. Click Set as New Custom Key Set button. 5 In New Custom Key Set dialog, type a name, click Ok.

<    1   2