[issue11450] Py_GetBuildInfo() truncates when there are many hg tags

2011-03-09 Thread Scott Dial
New submission from Scott Dial sc...@scottdial.com: I'm not sure if it's intended to be a supported workflow, but I personally have come to like using mq for projects where I am an outsider submitting small changes as patches. However, this appears to be a broken workflow due to way

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2011-03-09 Thread Johannes Schönberger
Johannes Schönberger johannes.schoenber...@tum.de added the comment: sorry, I totally forgot about this... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7769 ___

[issue11441] compile() raises SystemError if called from except clause

2011-03-09 Thread July Tikhonov
July Tikhonov july.t...@gmail.com added the comment: There is an XXX just before the definition of ast_error. Wouldn't it be useful? The idea is to merge ast_error() and ast_error_finish(). This requires redefinition of most functions in ast.c, adding const char *filename to their parameters.

[issue11435] Links to source code should now point to hg repo

2011-03-09 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The svn repos and viewvc won't disappear soon because they are used for other things (e.g. the tracker). I think it's better to avoid redirects until svn and/or viewvc are definitely gone. --

[issue11441] compile() raises SystemError if called from except clause

2011-03-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: That's why I thought that calling PyErr_NormalizeException with the new tuple is the simplest thing to do, becuase I guess that'll take care of all fields automatically. You could also call PyErr_NormalizeException at the beginning,

[issue11449] tarfile tries to file_.tell() even when creating a new archive

2011-03-09 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: If I understand correctly, the solution to your problem would be to use the stream mode w| instead of w. Could you please try that? -- assignee: - lars.gustaebel ___ Python tracker

[issue10969] Make Tcl recommendation more prominent

2011-03-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I've added a more prominent warning to the 3.2 download page (http://python.org/download/releases/3.2/) along the lines suggested by Raymond (although I wasn't able to get it formatted as a separate line without causing other spacing to change): *

[issue5622] wrong error from curses.wrapper if curses initialization fails

2011-03-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset c731e02472c5 by Ned Deily in branch '2.7': Issue #5622: Fix curses.wrapper to raise correct exception if curses http://hg.python.org/cpython/rev/c731e02472c5 -- nosy: +python-dev ___

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can't we simply add os.xlistdir() leaving listdir() as is? We could, but someone must: 1) provide a patch 2) demonstrate a significant improvement in some real-world situation -- ___ Python tracker

[issue11435] Links to source code should now point to hg repo

2011-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The svn repos and viewvc won't disappear soon because they are used for other things (e.g. the tracker). I think it's better to avoid redirects until svn and/or viewvc are definitely gone. The redirect is only for the py3k branch, something

[issue1271] Raw string parsing fails with backslash as last character

2011-03-09 Thread Graham Wideman
Graham Wideman initcont...@grahamwideman.com added the comment: (Not clear how to reopen this issue. Hopefully my change here does that.) OK, so as it currently stands, backslash at end of string is prohibited in the interests of allowing backslash to escape quotes that might be embedded

[issue11450] Py_GetBuildInfo() truncates when there are many hg tags

2011-03-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +georg.brandl stage: - needs patch type: feature request - behavior versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11450

[issue11451] Raw string parsing fails with backslash as last character

2011-03-09 Thread Graham Wideman
New submission from Graham Wideman initcont...@grahamwideman.com: This is a copy of issue 1271 because I couldn't find a way to reopen it. So, repeating my comment here: As it currently stands, backslash at end of string is prohibited, apparently in the interests of supposedly allowing

[issue5622] wrong error from curses.wrapper if curses initialization fails

2011-03-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 6b6b8af33811 by Ned Deily in branch '3.1': Issue #5622: Fix curses.wrapper to raise correct exception if curses http://hg.python.org/cpython/rev/6b6b8af33811 New changeset e6c45cd46cb2 by Ned Deily in branch '3.2': Issue #5622:

[issue1271] Raw string parsing fails with backslash as last character

2011-03-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1271 ___ ___

[issue11451] Raw string parsing fails with backslash as last character

2011-03-09 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I reopened #1271, please continue the discussion there. -- nosy: +ezio.melotti resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Raw string parsing fails with backslash as last character

[issue5622] wrong error from curses.wrapper if curses initialization fails

2011-03-09 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- assignee: - ned.deily resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5622

[issue11450] Py_GetBuildInfo() truncates when there are many hg tags

2011-03-09 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: -- nosy: +SilentGhost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11450 ___ ___ Python-bugs-list

[issue11441] compile() raises SystemError if called from except clause

2011-03-09 Thread July Tikhonov
Changes by July Tikhonov july.t...@gmail.com: Removed file: http://bugs.python.org/file21061/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11441 ___

[issue11450] Py_GetBuildInfo() truncates when there are many hg tags

2011-03-09 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I don't seem to be able to reproduce the failure in test_platform. Nevertheless, the behaviour is broken. Here's a patch that should fix it without allocating too much extra space. -- keywords: +patch nosy: +nvawda Added file:

[issue11450] Py_GetBuildInfo() truncates when there are many hg tags

2011-03-09 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Ah, now I see - the code that fails isn't test_platform, it's the regrtest code that prints out the version info at the beginning of the test results. This doesn't get displayed when you explicitly tell regrtest what tests to run

[issue6490] os.popen documentation in 2.6 is probably wrong

2011-03-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: r55334 removed popen2, popen3 and popen4 from the os module from Python 3 (before the 3.0 release), but not os.popen. Python 3.2 has now

[issue11443] Zip password issue

2011-03-09 Thread Yaroslav
Yaroslav sbojc...@gmail.com added the comment: Ok, i try that example in new versions 3+, and it works there. Thanks -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11443

[issue11450] Py_GetBuildInfo() truncates when there are many hg tags

2011-03-09 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 0f9e5042907c by Antoine Pitrou in branch '3.1': Issue #11450: Don't truncate hg version info in Py_GetBuildInfo() when http://hg.python.org/cpython/rev/0f9e5042907c New changeset 605c74139754 by Antoine Pitrou in branch '3.2': Merge

[issue11450] Py_GetBuildInfo() truncates when there are many hg tags

2011-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks you for the patch! Fixed now. -- nosy: +pitrou resolution: - fixed stage: needs patch - committed/rejected status: open - closed versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue11452] Test suite not symlink-install clean

2011-03-09 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: I'm now using a completely brain-damaged way to have two 3.x python(1)s installed: symlinks; i.e. 3.2rc2 is ~/usr/opt/.py-3.2rc2 and tip is ~/usr/opt/.cpython. Whenever i need to test the thing i'm working on in my free time

[issue11441] compile() raises SystemError if called from except clause

2011-03-09 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: You could also call PyErr_NormalizeException at the beginning, and update the fields directly in the PySyntaxErrorObject structure. No need to deal with any tuple. Sorry, but I don't really understand. If I call

[issue11441] compile() raises SystemError if called from except clause

2011-03-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: hmm, you are right, of course. I forgot that e.args is part of the SyntaxError members. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11441

[issue11435] Links to source code should now point to hg repo

2011-03-09 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11435 ___ ___ Python-bugs-list

[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library

2011-03-09 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: It is --enable-shared that is the culprit, but in the negated form... The OSX linker will search the entire link path for a shared library before trying to look for a static library. As a workaround you could use '--enable-shared', and

[issue9270] distutils.util.getplatform and sysconfig.getplatform differ

2011-03-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Checked distutils2 too, it’s okay. -- type: compile error - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9270 ___

[issue10617] Collections ABCs can’t be linked to

2011-03-09 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: but that will generate class collections.abc.Container as text in the first column of the table: do you really like it? I don't :) -- ___ Python tracker rep...@bugs.python.org

[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2011-03-09 Thread Aldona Majorek
New submission from Aldona Majorek pyt...@ada.majorek.org: asyncore.file_wrapper duplicates file descriptor of given file and closes it in it's close method. But unlike socket.socket class it does not automatically call close when object is garbage collected. Users of regular sockets and

[issue5679] cleanUp stack for unittest

2011-03-09 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Apparently during a merge from trunk (r72477) the addCleanup and other methods ended up in 3.1rc1, even if they are documented as new in 3.2. I'll update the doc to say new in 3.1. -- nosy: +ezio.melotti

[issue11452] Test suite not symlink-install clean

2011-03-09 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: This sounds even more silly now, but i can't reproduce the problem any more! I could do so easily this noon, before i've opened this issue! You *do* see the tracebacks! I wanted to (try to) write a patch (use

[issue11454] urllib.request import time

2011-03-09 Thread Ross Lagerwall
New submission from Ross Lagerwall rosslagerw...@gmail.com: While importing most modules has little effect on the start up time, importing urllib.request seems to take a considerable time. E.g.: without importing urllib.request: real0m0.072s user0m0.070s sys 0m0.000s with importing

[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-09 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: It is valid in CPython to create a new type with non-string keys in the dict. This is a problem for other implementations (neither pypy nor jython support it). This should raise a warning. -- components: Interpreter Core

[issue6818] remove/delete method for zipfile/tarfile objects

2011-03-09 Thread Yuval Greenfield
Yuval Greenfield ubershme...@gmail.com added the comment: I fixed the bugs I found, added tests and documentation. What do you guys think? -- keywords: +patch Added file: http://bugs.python.org/file21063/zipfile.remove.patch ___ Python tracker

[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-09 Thread Alex
Alex alex.gay...@gmail.com added the comment: 2 ways to do it: class A(object): locals()[42] = abc or type(A, (object,), {42: abc}) -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11455

[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-09 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Note that other implementations not supporting this has been agreed by Guido. The language spec says that the class dict is a namespace and should have string keys. -- ___ Python tracker

[issue6818] remove/delete method for zipfile/tarfile objects

2011-03-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6818 ___ ___ Python-bugs-list

[issue10617] Collections ABCs can’t be linked to

2011-03-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t either. The one thing I’d like is that :class:`collections.Set` generates a link to the table which documents the ABCs. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-09 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: We could, but someone must: 1) provide a patch While working on a straightforward patch for linux, I had to make a lot of copy-paste job. posixmodule.c is quite a mess already :( 2) demonstrate a significant improvement in some

[issue10617] Collections ABCs can’t be linked to

2011-03-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10617 ___ ___

[issue11456] Documentation csv RFC4180

2011-03-09 Thread Tony Wallace
New submission from Tony Wallace t...@tony.gen.nz: Change to documentation preamble for csv module: From: There is no “CSV standard”, so the format is operationally defined by the many applications which read and write it. The lack of a standard means that subtle differences often exist in

[issue11456] Documentation csv RFC4180

2011-03-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. I’ve added Skip, at his request on the CSV list. -- assignee: docs@python - skip.montanaro keywords: +patch nosy: +eric.araujo, skip.montanaro stage: - patch review versions: -Python 2.5, Python 2.6

[issue11072] Add MLSD command support to ftplib

2011-03-09 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Thanks for the great review Eric. Patch in attachment provides the following changes: - return a generator object - remove callback parameter - each yielded entry is a (name, {...}) tuple - fix for ; in file name - fix for in file name -

[issue1706039] Added clearerr() to clear EOF state

2011-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm afraid there's a misunderstanding here about the scope of the issue. fileobject.c is not really used in py3k (except for a couple very specific uses such as the tokenizer or the import machinery). The standard I/O stack uses object in the

[issue3080] Full unicode import system

2011-03-09 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I created the features/unicode_import repository with a unicode_import branch: http://hg.python.org/features/unicode_import/ It's my huge patch splitted into small and atomic commits. --

[issue11072] Add MLSD command support to ftplib

2011-03-09 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: facts_found.strip( ).rstrip(;) strip is redundant since facts_found is a first element of partitioning by the same string. rstrip is wrong since you're potentially deleting more than one character (there is no test for that). In your test

[issue3722] print followed by exception eats print with doctest

2011-03-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Temporary output will break all doctests, not just those with exception traceback. One should fix, disable debug output, and then rerun doctest to make sure fix did not break anything else. A function that prints and raises *can* be tested as

[issue11072] Add MLSD command support to ftplib

2011-03-09 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: You're right about r/strip(), thanks (new patch in attachment). In your test you're checking whether returned facts contain every requested fact, this is not guaranteed by RFC. Yes, but we're using a dummy FTP server returning static

[issue10910] pyport.h FreeBSD/Mac OS X fix causes errors in C++ compilation

2011-03-09 Thread Nasos Dousis
Nasos Dousis ndou...@gmail.com added the comment: I'm upgrading from Python 2.6.5 to 2.7.1, and I'm getting the error below when compiling my code using Boost 1.45 and gcc 4.2.1 in OSX 10.6.6. The following thread describes similar symptoms related to the ordering of header files and macro

[issue11457] Expose nanosecond precision from system calls

2011-03-09 Thread Kris Henriksson
New submission from Kris Henriksson kthenriks...@gmail.com: The most recent (issue 7) release of the POSIX standard mandates support for nanosecond precision in certain system calls. For example, the stat structure include a timespec struct for each of mtime, atime, and ctime that provides

[issue11457] Expose nanosecond precision from system calls

2011-03-09 Thread Kris Henriksson
Kris Henriksson kthenriks...@gmail.com added the comment: Also, a new function similar to os.utime would be needed as well, perhaps something named like os.utimens. This would be needed to allow setting times with nanosecond precision. -- ___

[issue11457] Expose nanosecond precision from system calls

2011-03-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +mark.dickinson versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11457 ___

[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2011-03-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This patch isn't going to be accepted, so I'm closing the issue. Someone else can propose a different wording in a new issue if they wish. -- resolution: - rejected stage: - committed/rejected status: open - closed

[issue1706039] Added clearerr() to clear EOF state

2011-03-09 Thread Scott Dial
Scott Dial sc...@scottdial.com added the comment: I'm well aware of the limited use of Py_UniversalNewlineFgets() in py3k, but it remains the case that it is a public API that fails to work correctly under the conditions specified by the reporter, and Alexander confirmed the original patch

[issue11458] tarfile with socket incompatability

2011-03-09 Thread Alex Leach
New submission from Alex Leach beamesle...@gmail.com: Hi, I'm trying to parse the contents of tar archives (.tgz) on the fly, and failing to do so. The tar archives in question have directory hierarchies, and only if a TarInfo object is a file (.isreg() ) will I try and read it's contents. I

[issue11454] urllib.request import time

2011-03-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: What operating system is that on? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11454 ___

[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I fail to see the need to warn about this, though. Users using the feature are likely aware that this violates the language specification, and will find out quickly when they do port it to another Python implementation. There are many many

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: a cron script which must process just a bunch of them at a time. There's no need to gather them all. Can you please be more explicit? What's the application in which you have several millions of files in a directory? What's the task that

[issue11458] tarfile with socket incompatability

2011-03-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I believe you are looking for mode 'r|'. -- nosy: +r.david.murray resolution: - works for me stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11454] urllib.request import time

2011-03-09 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Ubuntu 10.10. I haven't investigated whether it is actually urllib.request that is causing the long import time or a module that it is dependent on. -- ___ Python tracker

[issue11459] Python select.select does not correctly report read readyness

2011-03-09 Thread Novimir Pablant
New submission from Novimir Pablant amici...@gmail.com: I am trying to get the output from an external program into python using `subprocess.Popen` and `select.select`. For some reason though select.select is at times telling me that stdout is not ready to read, even when it is (reading

[issue11459] Python select.select does not correctly report read readyness

2011-03-09 Thread Novimir Pablant
Novimir Pablant amici...@gmail.com added the comment: I forgot to mention, I am running on OS X 10.6.6. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11459 ___

[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library

2011-03-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I see the problem now. Using a --enable-shared configure similar to Skip's, the gcc step that builds python.exe is: gcc -L/opt/local/lib -u _PyMac_Error -o python.exe \ Modules/python.o \ -L. -lpython2.7 -ldl -framework CoreFoundation

[issue2142] difflib.unified_diff(...) produces invalid patches

2011-03-09 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Updated patch which can apply to current py3k cleanly and with changes follow eric's review comments. -- Added file: http://bugs.python.org/file21067/issue_2142.diff ___ Python tracker

[issue11457] Expose nanosecond precision from system calls

2011-03-09 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: -- nosy: +lars.gustaebel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11457 ___ ___ Python-bugs-list