[issue15178] Doctest should handle situations when test files are not readable

2012-07-01 Thread R. David Murray
R. David Murray added the comment: I think that sounds reasonable. The message should say files in all three cases', since the individual test file summary method will be similar but talking about numbers of tests. -- ___ Python tracker

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-01 Thread Larry Hastings
Larry Hastings added the comment: Serihy: for the "followlinks" patch, how about we plan ahead: I give you feedback for just the code (if there is any), and then I take over the patch and do the doc rewrite that I will find irresistable. -- ___ Pyt

[issue15178] Doctest should handle situations when test files are not readable

2012-07-01 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: So maybe an optimal solution would be to add a note summarizing this to the end of output? I mean that this: X passed and Y failed. Could be replaced by: X passed and Y failed, Z files were not loaded. Then the user will know that the files were n

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-07-01 Thread Nick Coghlan
Nick Coghlan added the comment: Alternatively, perhaps it would make sense to have a "reopen()" method on file objects that covers the necessary dance to reopen with the correct flags? That would solve more problems than just this one (possibly including making it possible to "reopen" StringI

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-07-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: I checked the source in c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/crt/src/open.c and it seems that on Windows open() is more or less implemented as a wrapper of sopen(..., ..., SH_DENYNO, ...). So the only reason that trying to reopen a Name

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-07-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: > Agreed. Richard: do you have time to put something together? > I'm happy to try if you don't. I'm looking into it. Unfortunately, it seems that you need to use non-default flags when reopening a shared file. Eg, if the file is currently opened with SH_DEN

[issue15212] Rename SC_GLOBAL_EXPLICT to SC_GLOBAL_EXPLICIT in compiler module

2012-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you, fixed now. -- nosy: +pitrou resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue15212] Rename SC_GLOBAL_EXPLICT to SC_GLOBAL_EXPLICIT in compiler module

2012-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 55130516d1d2 by Antoine Pitrou in branch '2.7': Issue #15212: fix typo in compiler module (rename SC_GLOBAL_EXPLICT to SC_GLOBAL_EXPLICIT). http://hg.python.org/cpython/rev/55130516d1d2 -- nosy: +python-dev ___

[issue15236] SEGFAULT in visit_decref

2012-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Yes, some INCREF may be missing. The issue may be with the callback mechanism; these are usually difficult to get right. Actually by pure luck I found suspect code that may be the cause of this crash: in src/event/listener_python.cc, the "Args" tuple is

[issue2771] Test issue

2012-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3e4513003ded by Antoine Pitrou in branch 'default': some new tést (issue #2771) http://hg.python.org/test/rev/3e4513003ded New changeset b449118653fe by Antoine Pitrou in branch 'default': some new tést (issue #2771) http://hg.python.org/test/rev/b

[issue2771] Test issue

2012-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset b4af3925bda6 by Antoine Pitrou in branch 'default': some new tést (issue #2771) http://hg.python.org/test/rev/b4af3925bda6 -- ___ Python tracker __

[issue12605] Enhancements to gdb 7 debugging hooks

2012-07-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: release blocker -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-07-01 Thread Tim Golden
Tim Golden added the comment: On 01/07/2012 21:37, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> If sopen() and the associated constants SH_DENYRD, SH_DENYWR, SH_DENYRW >> and SH_DENYNO were exposed in the os module, then maybe tempfile could >> use os.sopen() on Windows inst

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If sopen() and the associated constants SH_DENYRD, SH_DENYWR, SH_DENYRW > and SH_DENYNO were exposed in the os module, then maybe tempfile could > use os.sopen() on Windows instead of os.open() to allow the file to be > reopened without closing. Sounds lik

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-07-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: The webpage http://msdn.microsoft.com/en-us/library/aa273350(v=vs.60).aspx describes the sopen() function which is like open() but has an extra shflag parameter for specifying the sharing allowed. If sopen() and the associated constants SH_DENYRD, SH_DE

[issue15236] SEGFAULT in visit_decref

2012-07-01 Thread Kai Sterker
Kai Sterker added the comment: To compile against a python version that is not system-default, configure with PYTHON=/usr/bin/python2.7 ../adonthell/configure --with-py-cflags=-I/usr/include/python2.7 --with-py-libs=-lpython2.7 Regardless of that, your hints are proving useful. I compiled

[issue15232] email.generator.Generator doesn't mangle "From " lines in MIME preamble

2012-07-01 Thread Petri Lehtinen
Petri Lehtinen added the comment: Hi and thanks for the report. It seems that this is a bug in email.generator.Generator, as it fails to mangle "From " lines in the MIME preamble (after the headers, before the first "--Boundary..." line). -- components: +Library (Lib) nosy: +petri.leh

[issue15206] uuid module falls back to unsuitable RNG

2012-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The rest of the module uses bar excepts. It was probably written in prehistoric times :) The other excepts can be converted later, if the module gets other changes. I don't think it is a deliberate style choice (it would be particularly distasteful :-)). -

[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-07-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: > I have repaired my class so that it pickles properly, but that does not > resolve the issue that if you send a non-picklable object through a pipe, > it should raise an error, rather than hang. What do you mean by hang? Do you mean that send() succeeds an

[issue15239] Abandoned Tools/unicode/mkstringprep.py

2012-07-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Indeed, the code hasn't been run, and really shouldn't have to. If it produces different output today, we should investigate why. -- nosy: +loewis ___ Python tracker ___

[issue15239] Abandoned Tools/unicode/mkstringprep.py

2012-07-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file26228/mkstringprep.patch ___ Python tracker ___ _

[issue15239] Abandoned Tools/unicode/mkstringprep.py

2012-07-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : It seems that Tools/unicode/mkstringprep.py has not been used for many years. Now it is not valid Python3 code nor Python2 code. The proposed patch fixes all porting errors. Apparently, Lib/stringprep.py would have regenerated. Tools/unicode/mkstringprep

[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-07-01 Thread Ian Bell
Ian Bell added the comment: I have repaired my class so that it pickles properly, but that does not resolve the issue that if you send a non-picklable object through a pipe, it should raise an error, rather than hang. -- ___ Python tracker

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2012-07-01 Thread Daniel Lenski
Daniel Lenski added the comment: Richard, I think the problem with this is that it spreads the non-portable or OS-dependent parts of the code over several places rather than concentrating them all in one place. After close_without_unlink(), what would happen when the context manager exits or wh

[issue13700] imaplib.IMAP4.authenticate authobject does not work correctly in python3

2012-07-01 Thread Erno Tukia
Erno Tukia added the comment: Here's the updated patch. Tests now works. PLAIN works for me, that's only I can test against live system. test_login_cram_md5 test had extra \r\n in _send_tagged. diff imaplib_authenticate.patch imaplib_authenticate_v2.patch < + self._send_tagged(tag, 'OK', 'CRA

[issue15236] SEGFAULT in visit_decref

2012-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This programs embeds a Python interpreter and uses the C API extensively. I tried to compile it, but could not make it use Python 2.7. Your stracktrace suggests a buffer overflow, or reuse of a freed object: "ob_refcnt = 8462385097079783424, ob_type = 0x7

[issue15206] uuid module falls back to unsuitable RNG

2012-07-01 Thread Christian Heimes
Christian Heimes added the comment: The rest of the module uses bar excepts. I could change the signature if you insist. -- ___ Python tracker ___ _

[issue15238] shutil.copystat should copy Linux extended attributes

2012-07-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +hynek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15238] shutil.copystat should copy Linux extended attributes

2012-07-01 Thread Larry Hastings
New submission from Larry Hastings : 3.3 adds the *xattr() extended attribute functions on Linux. shutil implements a new internal function(_copyxattr) which copies these extended attributes. However, it's only used in shutil.copy2(). I assert that shutil.copystat() should also preserve thi

[issue2771] Test issue

2012-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset b449118653fe by Antoine Pitrou in branch 'default': some new tést (issue #2771) http://hg.python.org/test/rev/b449118653fe -- ___ Python tracker __

[issue15237] Add capsule API to _decimal

2012-07-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15235] allow newer berkley db versions

2012-07-01 Thread Matthias Klose
Matthias Klose added the comment: hmm, that was submitted years ago ... (can we move this off line?) -- ___ Python tracker ___ ___ Py

[issue15236] SEGFAULT in visit_decref

2012-07-01 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15235] allow newer berkley db versions

2012-07-01 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: PDF = PSF (Python software Foundation) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15235] allow newer berkley db versions

2012-07-01 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Mattias, the tracker indicates that PDF doesn't have your contributor agreement. Could you possibly send one?. http://www.python.org/psf/contrib/contrib-form/ -- nosy: +jcea ___ Python tracker

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file26195/symlinks-to-follow_symlinks-2.patch ___ Python tracker ___ ___ P

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file26194/followlinks-to-follow_symlinks-2.patch ___ Python tracker ___ __

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is an updated patches (with index 3). No aliased parameters, only new parameters renamed. Some minor errors have fixed. -- Added file: http://bugs.python.org/file26225/followlinks-to-follow_symlinks-3.patch Added file: http://bugs.python.org/fil

[issue3871] cross and native build of python for mingw32 with packaging

2012-07-01 Thread Ray Donnelly
Ray Donnelly added the comment: Thanks Matthias, I might wait until b2 (or rc1) before I rebase my patches, just because I'm so unfamiliar with Mercurial. -- ___ Python tracker

[issue14902] test_logging failed

2012-07-01 Thread Juancarlo Añez
Juancarlo Añez added the comment: My local timezone is (VET,VET) == time.tzname, and test_logging fails because time.timezone is off by 30 minutes. I couldn't find the cause for the problem with time.timezone, but logging is not to blame. I'm running the tests on Ubuntu 12.04 AMD64 which hand

[issue15233] atexit: guarantee order of execution of registered functions?

2012-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I believe it should be guaranteed behavior and that code may > reasonably want to have a predictable sequence of unwinding behaviors. Agreed. -- ___ Python tracker

[issue15237] Add capsule API to _decimal

2012-07-01 Thread Mark Dickinson
Mark Dickinson added the comment: See issue #7652 for context. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue3871] cross and native build of python for mingw32 with packaging

2012-07-01 Thread Matthias Klose
Matthias Klose added the comment: fyi, the cross build changes are now checked in. Checked with an x86_64-linux-gnu to arm-linux-gnueabi cross build. I don't plan to add anything more for the 3.3 release besides bug fixes. -- ___ Python tracker <

[issue15233] atexit: guarantee order of execution of registered functions?

2012-07-01 Thread Larry Hastings
Larry Hastings added the comment: +1 to guaranteeing the order. -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue15233] atexit: guarantee order of execution of registered functions?

2012-07-01 Thread Charles-François Natali
Charles-François Natali added the comment: It is guaranteed by libc's atexit(3), and should also be guaranteed here. -- nosy: +neologix ___ Python tracker ___ __

[issue15237] Add capsule API to _decimal

2012-07-01 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7652] Merge C version of decimal into py3k.

2012-07-01 Thread Stefan Krah
Stefan Krah added the comment: I've opened #15237 for the capsule API. I didn't add everyone to the nosy list, since I suspect it's not of general interest. -- ___ Python tracker ___

[issue15237] Add capsule API to _decimal

2012-07-01 Thread Stefan Krah
New submission from Stefan Krah : Unfortunately, this won't make it into 3.3. -- The self-review of mpdecimal.c had priority and was extremely time consuming. -- assignee: skrah messages: 164469 nosy: lemburg, mark.dickinson, rhettinger, skrah priority: normal severity: normal stage: ne

[issue15236] SEGFAULT in visit_decref

2012-07-01 Thread Kai Sterker
New submission from Kai Sterker : Since update to Python 2.7.3 (as distributed by Ubuntu 12.04 64bit), I experience occasional crashes in the application I am developing (which uses Python scripting). The crash either happens at the first key press or it does not happen at all. Smells like a r

[issue10650] decimal.py: quantize(): excess digits with watchexp=0

2012-07-01 Thread Stefan Krah
Stefan Krah added the comment: watchexp was available in rescale() from the beginning ... http://svn.python.org/view/sandbox/trunk/decimal/Decimal.py?revision=40721&view=markup ... and rescale() was renamed to quantize() in http://svn.python.org/view/sandbox/trunk/decimal/Decimal.py?revision

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-01 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks. Then perhaps the documentation can be updated to make that clear. Currently, the documentation implies that running the given command is sufficient to catch all errors, which can lead to confusion when warning-free content is not rendered as HTML. -

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-01 Thread Larry Hastings
Larry Hastings added the comment: Georg just clarified: we can just change the parameter names for new APIs. It's the deprecation / new parameter stuff we can't do for 3.3. So cut a (much) simpler patch and let's get it in right quick. -- versions: +Python 3.3 -Python 3.4 _

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-01 Thread Larry Hastings
Larry Hastings added the comment: Bad news: Fearless Leader (Georg) just told me on #python-dev that he's had a change of heart and doesn't want this in 3.3. I've marked the bug 3.4, and there's no rush on doing this work--we can't check it in until the 3.4 branch exists. Sorry, Serhiy :(

[issue15174] amd64\python_d.exe -m test fails

2012-07-01 Thread Stefan Krah
Stefan Krah added the comment: In dbc94178703f it works again. Closing. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue15235] allow newer berkley db versions

2012-07-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7be082d80b8a by doko in branch 'default': - Issue #15235: Allow Berkley DB versions up to 5.3 to build the dbm module. http://hg.python.org/cpython/rev/7be082d80b8a -- nosy: +python-dev ___ Python tracke

[issue15235] allow newer berkley db versions

2012-07-01 Thread Matthias Klose
New submission from Matthias Klose : setup.py still has a version check for berkley db, currently only allowing versions up to 5.1.x. I'm checking in a patch to bump this to allow versions up to 5.3.x. Maybe this version check should be disabled (after 3.3), using berkley db as a backend for

[issue15234] avoid runtime library path for extensions found in system directories

2012-07-01 Thread Matthias Klose
New submission from Matthias Klose : if a runtime library path is passed to build an extension, it always ends up in the .so file. it's not needed, so avoid runtime library path for extensions found in system directories. -- assignee: doko components: Build files: rpath.diff keywords:

[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-07-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sun, Jul 1, 2012 at 1:16 AM, Richard Oudkerk wrote: > Then I doubt this is a bug in Python. I guess, you meant, this is NOT a bug in Python. -- nosy: +orsenthil ___ Python tracker

[issue15233] atexit: guarantee order of execution of registered functions?

2012-07-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: I believe it should be guaranteed behavior and that code may reasonably want to have a predictable sequence of unwinding behaviors. -- nosy: +rhettinger ___ Python tracker ___

[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-07-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: Then I doubt this is a bug in Python. If your class does not override __reduce__, __reduce_ex__ or __getstate__/__setstate__, then it is probably one of the attributes of your instance which is causing the problem. You could try to find out which one by tr

[issue15110] strange Tracebacks with importlib

2012-07-01 Thread Georg Brandl
Georg Brandl added the comment: Setting to blocker for b2. -- priority: critical -> release blocker ___ Python tracker ___ ___ Python

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: There are more checks applied in PyPI than just the refusal to incorporate raw html. I doubt it is possible to perform the exact same check with the rst2html command line. -- nosy: +loewis ___ Python tracker

[issue15233] atexit: guarantee order of execution of registered functions?

2012-07-01 Thread Georg Brandl
New submission from Georg Brandl : Currently, the atexit docs state "The order in which the functions are called is not defined" in the introduction and "all functions registered are called in last in, first out order" in the docs of the atexit() function. While the latter is correct, I don'

[issue3871] cross and native build of python for mingw32 with packaging

2012-07-01 Thread Ray Donnelly
Ray Donnelly added the comment: I'm not personally interested in Cygwin (it's too slow for my liking) and I've spent a lot of time patching and building software to avoid forcing people to use it (no offence meant to Cygwin people, I can see the value of it, but IMHO native is always best) .

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-01 Thread Larry Hastings
Larry Hastings added the comment: storchaka: I can (finally!) spend some time reviewing patches today. Which ones do I look at? I'm guessing just the last two, "followlinks-to-follow_symlinks-2.patch" and "symlinks-to-follow_symlinks-2.patch". But I wanted to confirm before I got knee-dee

[issue3871] cross and native build of python for mingw32 with packaging

2012-07-01 Thread Ray Donnelly
Ray Donnelly added the comment: For me, it's all about being able to build useful software. I like Python a lot, but my goal is and has always been cross compilation of gdb with Python support. To that end, if I have to maintain some out of tree patches for 2.7.3 then so be it. For 3.x things