[issue13968] Support recursive globs

2012-05-05 Thread Yuval Greenfield
Yuval Greenfield added the comment: So, anybody for or against this patch? I'd really like to see this feature make its way in... -- ___ Python tracker ___

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Larry Hastings
Changes by Larry Hastings : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue14127] add st_*time_ns fields to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 05274ab06182 by Larry Hastings in branch 'default': Update Misc/NEWS for issues #14127 and #14705. (And, technically, #10148.) http://hg.python.org/cpython/rev/05274ab06182 -- ___ Python tracker

[issue10148] st_mtime differs after shutil.copy2

2012-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 05274ab06182 by Larry Hastings in branch 'default': Update Misc/NEWS for issues #14127 and #14705. (And, technically, #10148.) http://hg.python.org/cpython/rev/05274ab06182 -- ___ Python tracker

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 05274ab06182 by Larry Hastings in branch 'default': Update Misc/NEWS for issues #14127 and #14705. (And, technically, #10148.) http://hg.python.org/cpython/rev/05274ab06182 -- ___ Python tracker

[issue14657] Avoid two importlib copies

2012-05-05 Thread Eric Snow
Eric Snow added the comment: Here's my take. No one will care about _frozen_importlib vs. importlib._bootstrap normally, right? If __module__/__file__ says _frozen_importlib, it's no big deal. The only time you care about the distiction for importlib._bootstrap is when you're hacking on _b

[issue14366] Supporting lzma compression in zip files

2012-05-05 Thread Nadeem Vawda
Nadeem Vawda added the comment: I've put together a patch for the lzma module adding functions for encoding and decoding filter properties (see issue 14736). It's a bit bulky, though, so I'd like to get a review before committing it. -- ___ Python tr

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed stage: patch review -> committed/rejected ___ Python tracker ___ ___ Python-bugs-

[issue14736] Add {encode, decode}_filter_properties() functions to lzma module

2012-05-05 Thread Nadeem Vawda
New submission from Nadeem Vawda : Patch attached. Reviews welcome. -- components: Extension Modules files: lzma-properties.diff keywords: patch messages: 160051 nosy: nadeem.vawda priority: normal severity: normal stage: patch review status: open title: Add {encode,decode}_filter_proper

[issue10148] st_mtime differs after shutil.copy2

2012-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 709850f1ec67 by Larry Hastings in branch 'default': Update Misc/NEWS for issues #14127 and #14705. (And, technically, #10148.) http://hg.python.org/cpython/rev/709850f1ec67 -- nosy: +python-dev ___ Pyth

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 709850f1ec67 by Larry Hastings in branch 'default': Update Misc/NEWS for issues #14127 and #14705. (And, technically, #10148.) http://hg.python.org/cpython/rev/709850f1ec67 -- ___ Python tracker

[issue14127] add st_*time_ns fields to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 709850f1ec67 by Larry Hastings in branch 'default': Update Misc/NEWS for issues #14127 and #14705. (And, technically, #10148.) http://hg.python.org/cpython/rev/709850f1ec67 -- ___ Python tracker

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Larry Hastings
Larry Hastings added the comment: > I would have expected a bool parse code to insist on a boolean, I originally had a second form ('P') that insisted on a boolean as you suggest. But nobody could come up with a use case. So I removed it in the final patch. Please see this issue for the di

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would have expected a bool parse code to insist on a boolean, so that: int x; PyArg_ParseTupleAndKeywords(args, kwds, "p:func", &x); would behave the same as: PyObject *o; int x; PyArg_ParseTupleAndKeywords(args, kwds, "O!:func", &Py

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Larry Hastings
Larry Hastings added the comment: Eh, it was ready, why wait? Thanks everybody for your feedback! -- ___ Python tracker ___ ___ Pyth

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset bc6d28e726d8 by Larry Hastings in branch 'default': Issue #14705: Add 'p' format character to PyArg_ParseTuple* for bool support. http://hg.python.org/cpython/rev/bc6d28e726d8 -- nosy: +python-dev ___ Py

[issue14654] Faster utf-8 decoding

2012-05-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: > That's not very nice. If Serhiy wants feedback on his work, he > definitely has to post *somewhere*. The bug tracker sounds like a > reasonable place (certainly more reasonable than python-dev). I completely disagree (and I really tried to be nice). It is m

[issue14735] Version 3.2.3 IDLE CTRL-Z plus Carriage Return to end does not work

2012-05-05 Thread Ed Wodrich
Changes by Ed Wodrich : -- nosy: -ewodrich ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14735] Version 3.2.3 IDLE CTRL-Z plus Carriage Return to end does not work

2012-05-05 Thread Ed Wodrich
New submission from Ed Wodrich : Greetings, I am a brand new user attempting to learn Python. I downloaded and installed the .msi installer version 3.2.3 on May 5, 2012. I am running Windows XP SP2 32-bit on a Pentium 4. I opted to load all features of the program. Installation finished w

[issue14733] Custom commands don't work

2012-05-05 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report and patch. I discovered the same thing a few weeks ago when working on a bug with a contributor; I thought there was already a bug opened for that but apparently not. The fix I had in mind is the same as your patch, and I also have a test

[issue14082] shutil doesn't copy extended attributes

2012-05-05 Thread Hynek Schlawack
Hynek Schlawack added the comment: Ok, I've extracted the xattr checker from test_os.py and transformed it into a caching decorator like skip_unless_symlinks. _copyxattr rename is also done. -- Added file: http://bugs.python.org/file25477/copy2-xattr-with-better-protection.diff

[issue14722] Overflow in parsing 'float' parameters in PyArg_ParseTuple*

2012-05-05 Thread Stefan Krah
Stefan Krah added the comment: The proposal makes sense at first glance, but I agree with Mark that it is not clear what should be done. For example, all arrays in Python silently convert to inf: >>> from numpy import array >>> x = array([1,2,3], 'f') >>> x array([ 1., 2., 3.], dtype=float32)

[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-05 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue14734] Use binascii.b2a_qp/a2b_qp in email package header handling?

2012-05-05 Thread R. David Murray
New submission from R. David Murray : Currently the email package uses its own custom quoted printable encode/decode implementation for handling header quoted printable CTE encoding and decoding. It could be that using binascii would work, and be more performant. Or it might not be, but it s

[issue9260] A finer grained import lock

2012-05-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: The patch parser of Rietveld actually choked on the git binary diff. It now skips over these chunks. -- ___ Python tracker ___ ___

[issue14725] test_multiprocessing failure under Windows

2012-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 35ef949e85d7 by Richard Oudkerk in branch '2.7': Fix for issue 14725 for 2.7 branch http://hg.python.org/cpython/rev/35ef949e85d7 New changeset afab4d14d5e7 by Richard Oudkerk in branch '3.2': Fix for issue 14725 for 3.2 branch http://hg.python.org

[issue14733] Custom commands don't work

2012-05-05 Thread Janusz Lewandowski
New submission from Janusz Lewandowski : Running (by pysetup run cmdname) custom commands doesn't work, because setup.cfg is parsed after command handling. I've attached a patch to fix this behavior. -- assignee: eric.araujo components: Distutils2 files: fix-custom-commands.patch keywo

[issue9260] A finer grained import lock

2012-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch against tip, and with a comment of what deadlock avoidance does (in _ModuleLock.acquire's docstring). -- Added file: http://bugs.python.org/file25475/module_locks7.patch ___ Python tracker

[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-05 Thread Robin Schreiber
Robin Schreiber added the comment: The following script should fail before you have applied the bespoken patch: It basically checks wether one of the global PyObjects inside the csv module is being deleted after freeing the csv module. -- Added file: http://bugs.python.org/file25474/r

[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-05 Thread Robin Schreiber
New submission from Robin Schreiber : This patch presents my first try to apply the proposed Refactoring of PEP3121 to the csv module. I have identified three mutable global variables inside the module, two of which are references to PyObjects. I have wrapped all of them inside a dedicated str

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2012-05-05 Thread Stefan Krah
Stefan Krah added the comment: I tested the patch, it works fine. I can't test the popup situation since I currently only have ssh access. -- ___ Python tracker ___ _

[issue14729] test_faulthandler test is too specific to work on Windows

2012-05-05 Thread Stefan Krah
Stefan Krah added the comment: Vinay's patch solves the problem. +1 for committing. -- nosy: +skrah ___ Python tracker ___ ___ Python

[issue9260] A finer grained import lock

2012-05-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you please elaborate in the patch what the deadlock avoidance does? AFAICT, the comment explains that it is able to detect deadlocks, but nowhere says what it does when it has detected a deadlock. Also, please submit patches against default's head, or st

[issue14684] zlib set dictionary support inflateSetDictionary

2012-05-05 Thread Sam Rushing
Sam Rushing added the comment: renames dict->zdict, splits the test, adds BEGIN/END around inflate call. -- Added file: http://bugs.python.org/file25472/zlib_set_dictionary_4.patch ___ Python tracker _

[issue14082] shutil doesn't copy extended attributes

2012-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Looks like your file system Python uses for tmp files doesn't support > xattr. That's bad because you can't verify. How should I cope with that? > try/catch on the first setxattr() and skip the test if it fails? Is the > an official way to do that? Well, appa

[issue9260] A finer grained import lock

2012-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Now, if x and y are executed in separate threads - won't it deadlock? Well, the patch has a deadlock avoidance mechanism, and it includes unit tests for precisely this situation. I cannot promise the algorithm is perfect (although there *are* a bunch of tests

[issue14654] Faster utf-8 decoding

2012-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'll be closing this issue at this point. Serhiy: I don't think the > bug tracker should be used to evolve work in progress (except when > responding to reviews received). Use a Mercurial clone for that > instead. By posting a patch here, you are requesting th

[issue14678] Update zipimport to support importlib.invalidate_caches()

2012-05-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9260] A finer grained import lock

2012-05-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: I still wonder whether Graham Dumpleton's observation has merits. Suppose we have these modules # a.py time.sleep(10) import b # b.py time.sleep(10) import a # main.py def x(): import a def y(): import b Now, if x and y are executed in separate threads

[issue9260] A finer grained import lock

2012-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch with a couple new tests. -- stage: -> patch review Added file: http://bugs.python.org/file25471/module_locks6.patch ___ Python tracker __

[issue14678] Update zipimport to support importlib.invalidate_caches()

2012-05-05 Thread Brett Cannon
Brett Cannon added the comment: The real problem becomes the issue of what zipfile depends on, which complicates bootstrapping. I mean things could go as far as to write a script that takes in anchor points in the stdlib and freezes all code they depend on, but that seems like potential overk

[issue9260] A finer grained import lock

2012-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch also adds unit tests for the module locks and the deadlock avoidance algorithm. -- Added file: http://bugs.python.org/file25470/module_locks5.patch ___ Python tracker

[issue14654] Faster utf-8 decoding

2012-05-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'll be closing this issue at this point. Serhiy: I don't think the bug tracker should be used to evolve work in progress (except when responding to reviews received). Use a Mercurial clone for that instead. By posting a patch here, you are requesting that i

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: Latest patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue14731] Enhance Policy framework in preparation for adding email6 policies as provisional

2012-05-05 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue14082] shutil doesn't copy extended attributes

2012-05-05 Thread Hynek Schlawack
Hynek Schlawack added the comment: > The copyxattr() function should be private (_copyxattr()). Ok. I presumed that not adding it to __all__ is "private enough". > For some reason the tests are failing here: > > == > ERROR: t

[issue14725] test_multiprocessing failure under Windows

2012-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 44f078ea05f3 by Richard Oudkerk in branch 'default': Fix for Issue 14725 for 3.3 branch. http://hg.python.org/cpython/rev/44f078ea05f3 -- nosy: +python-dev ___ Python tracker

[issue9260] A finer grained import lock

2012-05-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue9260] A finer grained import lock

2012-05-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file25469/module_locks4.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue9260] A finer grained import lock

2012-05-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file25466/module_locks4.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue14731] Enhance Policy framework in preparation for adding email6 policies as provisional

2012-05-05 Thread R. David Murray
Changes by R. David Murray : -- title: Enhance Policy framework in preparation for adding "eamil6" policy as provisional -> Enhance Policy framework in preparation for adding email6 policies as provisional ___ Python tracker

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Larry Hastings
Larry Hastings added the comment: > I hope I haven't made a lot of mistakes in the previous sentence. It depends, do you consider three "a lot"? ;-) Attached is a new patch removing 'P'. (The regrtest is still running but I don't expect any failures.) I'm guessing I won't get any further

[issue14731] Enhance Policy framework in preparation for adding "eamil6" policy as provisional

2012-05-05 Thread R. David Murray
Changes by R. David Murray : -- keywords: +patch Added file: http://bugs.python.org/file25467/676f9c8c28c6.diff ___ Python tracker ___ ___

[issue14731] Enhance Policy framework in preparation for adding "eamil6" policy as provisional

2012-05-05 Thread R. David Murray
New submission from R. David Murray : As discussed in my email to python-dev, I'm planning to add the new header parsing to Python 3.3 as a provisional extension, by adding a (set) of policies that are clearly marked provisional in the documentation. In order for this to work, I first need to

[issue9260] A finer grained import lock

2012-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch also makes PyImport_ImportModuleNoBlock a simple alias of PyImport_ImportModule. -- Added file: http://bugs.python.org/file25466/module_locks4.patch ___ Python tracker

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Do you still think 'P' is better than 'p'? No. I hope I haven't made a lot of mistakes in the previous sentence. -- ___ Python tracker __

[issue14082] shutil doesn't copy extended attributes

2012-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: The copyxattr() function should be private (_copyxattr()). For some reason the tests are failing here: == ERROR: test_copy2_xattr (test.test_shutil.TestShutil) -

[issue14654] Faster utf-8 decoding

2012-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, it seems, 64-bit processors are smart enough to not feel the need for this optimization. On 32-bit platforms I see a noticeable increase in speed. I am now working on a more advanced optimization, which now shows a gain of +20-60% compared with the prev

[issue14730] Implementation of the PEP 419: Protecting cleanup statements from interruptions

2012-05-05 Thread R. David Murray
Changes by R. David Murray : -- title: Implementation of the PEP 419 -> Implementation of the PEP 419: Protecting cleanup statements from interruptions ___ Python tracker ___ __

[issue14722] Overflow in parsing 'float' parameters in PyArg_ParseTuple*

2012-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No one integer produces infinity in 'double' parameter parsing. But the 'float' parameter parsing can produce infinity, and it can raise an exception. To be consistent, we need or produce infinity on double overflow (in this case, we must explicitly produce i

[issue14725] test_multiprocessing failure under Windows

2012-05-05 Thread Richard Oudkerk
Richard Oudkerk added the comment: The documentation page for ConnectNamedPipe (http://msdn.microsoft.com/en-us/library/windows/desktop/aa365146(v=vs.85).aspx) has a "community addition" which says that ConnectNamedPipe will appear to fail with ERROR_NO_DATA (232) if a client has previously c

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Larry Hastings
Larry Hastings added the comment: Serhiy, I'm having a little trouble with your English. (But I'm sure your English is far better than my... uh, anything besides English.) So let me ask a question with a clear yes/no answer: Do you still think 'P' is better than 'p'? -- __

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > That's not a reason to use 'P'. Why you should use 'P' in the first place? I just guided by the principle "Explicit is better than implicit". Statements 'if' and 'while' I consider explicit and expect cast to bool. Implicit cast to bool in the transfer of

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: > I considered briefly trying to make 'P' handle subclasses of bool. Not an issue: bool can't be subclassed. :-) Python 3.2.3 (default, Apr 13 2012, 00:15:25) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "licen

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: > Having meditated on it, I think either I should either just call > PyErr_Occured, check for explicit failure (val < 0), or explicit success > (val >= 0). I've opted for the last of those. Yes, I think that works; it avoids a relatively expensive PyErr_Occurr

[issue14684] zlib set dictionary support inflateSetDictionary

2012-05-05 Thread Nadeem Vawda
Nadeem Vawda added the comment: I've posted a review on Rietveld. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Georg Brandl
Georg Brandl added the comment: Indeed, "because the code is written" is not a good argument if even you yourself are -0. -- nosy: +georg.brandl ___ Python tracker ___

[issue13815] tarfile.ExFileObject can't be wrapped using io.TextIOWrapper

2012-05-05 Thread Lars Gustäbel
Lars Gustäbel added the comment: I did some tarfile spring cleaning: I removed the ExFileObject class completely as it was more or less a leftover from the old days. io.BufferedReader now does the job. So, as a side-effect, I close this issue as fixed. (BTW, this makes tarfile.py smaller by a

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: Since no one has produced a good example needing "P", I say drop it. At any rate, it can be almost trivially imitated with "O!". -- nosy: +benjamin.peterson ___ Python tracker

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-05 Thread Larry Hastings
Larry Hastings added the comment: Attached is rev 3 of my patch, incorporating mainly backing out of dumb ideas. Thanks for the feedback, Serhiy and Mark! > My name is Serhiy. :) My genuine apologies! In my defense it was rather late. > 'P' has the advantage that you can safely backward-

[issue13815] tarfile.ExFileObject can't be wrapped using io.TextIOWrapper

2012-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 254cb4f5d0ff by Lars Gustäbel in branch 'default': Issue #13815: TarFile.extractfile() now returns io.BufferedReader objects. http://hg.python.org/cpython/rev/254cb4f5d0ff -- nosy: +python-dev ___ Python

[issue14728] trace function not set, causing some Pdb commands to fail

2012-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Uploaded pdb_2.7.patch that applies on the 2.7 branch. -- Added file: http://bugs.python.org/file25464/pdb_2.7.patch ___ Python tracker ___ ___

[issue14728] trace function not set, causing some Pdb commands to fail

2012-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Uploaded pdb_default.patch that applies on the default branch with minor changes to the initial pdb.patch. -- Added file: http://bugs.python.org/file25463/pdb_default.patch ___ Python tracker

[issue14729] test_faulthandler test is too specific to work on Windows

2012-05-05 Thread Vinay Sajip
Vinay Sajip added the comment: > Which information? What do write these information? The Windows error message has the same beginning, but an additional "This application has requested the Runtime to terminate it in an unusual way.\nPlease contact the application's support team for more infor

[issue14082] shutil doesn't copy extended attributes

2012-05-05 Thread Hynek Schlawack
Hynek Schlawack added the comment: So here's an updated patch. I've stripped everything away we don't need for copy2 integration. It catches EPERM, ENOTSUP and ENODATA (for race conditions). Happy reviewing. :) -- Added file: http://bugs.python.org/file25462/copy2-xattr.diff

[issue14730] Implementation of the PEP 419

2012-05-05 Thread Paul Colomiets
New submission from Paul Colomiets : Attached patch is a partial implementation of PEP 419, it lacks inspect module functions and requires more unit tests. -- components: Interpreter Core files: cleanuphook.patch keywords: patch messages: 159994 nosy: tailhook priority: normal severity:

[issue14702] os.makedirs breaks under autofs directories

2012-05-05 Thread Hynek Schlawack
Hynek Schlawack added the comment: >> Charles, I don't think you can blame autofs here. The problem at hand is >> that makedirs() never checks whether the directory exists (that would >> trigger the mount too I presume). > > Yes, it does. Have a look at line 148: > """ > if head and tail

[issue14729] test_faulthandler test is too specific to work on Windows

2012-05-05 Thread STINNER Victor
STINNER Victor added the comment: > On Windows, some more information is appended to the end of the message (...) Which information? What do write these information? -- ___ Python tracker

[issue14702] os.makedirs breaks under autofs directories

2012-05-05 Thread R. David Murray
R. David Murray added the comment: Hynek: you said "just like EEXIST", which doesn't check to see if the directory exists before continuing, thus my confusion. If mkdir -p does a stat first, then changing the makedirs algorithm to match is probably not a bad idea for OS compatibility reasons,

[issue14702] os.makedirs breaks under autofs directories

2012-05-05 Thread Charles-François Natali
Charles-François Natali added the comment: > Charles, I don't think you can blame autofs here. The problem at hand is that > makedirs() never checks whether the directory exists (that would trigger the > mount too I presume). Yes, it does. Have a look at line 148: """ if head and tail an

[issue14726] Lib/email/*.py use an EMPTYSTRING global instead of ''

2012-05-05 Thread R. David Murray
R. David Murray added the comment: Good enough for me. I personally don't find it to be easier or harder to read with the names, so let's keep them. -- resolution: -> works for me stage: -> committed/rejected status: open -> closed ___ Python tra

[issue14702] os.makedirs breaks under autofs directories

2012-05-05 Thread Hynek Schlawack
Hynek Schlawack added the comment: Charles, I don't think you can blame autofs here. The problem at hand is that makedirs() never checks whether the directory exists (that would trigger the mount too I presume). Instead, it tries a mkdir and looks if it gets an EEXIST. If you try that approac

[issue14727] test_multiprocessing failure under Linux

2012-05-05 Thread Vinay Sajip
Vinay Sajip added the comment: Some more information: after the above-described appears, the test hangs. When interrupted with a Ctrl+C, this is displayed: ^CProcess PoolWorker-104: Process PoolWorker-102: Process PoolWorker-105:1: Process PoolWorker-101: Process PoolWorker-105:4: Process Pool

[issue14729] test_faulthandler test is too specific to work on Windows

2012-05-05 Thread Vinay Sajip
New submission from Vinay Sajip : In test_faulthandler.test_check_fatal_error, the test expects a response which matches """ ^Fatal Python error: {name} {header}: File "", line {lineno} in $ """.strip() On Windows, some more information is appended to the end of the message, so the match f

[issue14728] trace function not set, causing some Pdb commands to fail

2012-05-05 Thread Xavier de Gaye
New submission from Xavier de Gaye : The issue 13183 raises the problem that when the trace function is not set in the caller frame, the step command fails at a return statement. This new issue raises the point that, for the same reason: * the next, until and return statements fail also at

[issue14468] Update cloning guidelines in devguide

2012-05-05 Thread Sandro Tosi
Sandro Tosi added the comment: Here's the proposed patch. I'm sorry but probably 'hg diff' went too wild, and since I moved the "Using several working copies" as the first sub-paragraph of "Forward-Porting" it seems it got confused, so the diff is not so clean. I've also changed quite some p

[issue14702] os.makedirs breaks under autofs directories

2012-05-05 Thread Charles-François Natali
Charles-François Natali added the comment: To me, this doesn't look like a os.makedirs() bug, but rather an autofs one (didn't know it was still in use). I don't like the idea of adding such a kludge (i.e. catching EPERM and checking whether the directory appeared in between). Could you pleas

[issue14684] zlib set dictionary support inflateSetDictionary

2012-05-05 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2012-05-05 Thread Vinay Sajip
Vinay Sajip added the comment: The AssertionError in Brian's initial post indicates that the test is too restrictive. Though the discussion here has talked about removing the popups altogether, the test passes on Windows with a small change: instead of assertEqual(), I used self.assertTr

[issue14727] test_multiprocessing failure under Linux

2012-05-05 Thread Vinay Sajip
New submission from Vinay Sajip : I've recently started seeing this failure repeatably on Linux (Ubuntu Jaunty): [195/364] test_multiprocessing Process Process-133: Traceback (most recent call last): File "/home/vinay/projects/python/default/Lib/multiprocessing/process.py", line 258, in _boot

[issue14702] os.makedirs breaks under autofs directories

2012-05-05 Thread Hynek Schlawack
Hynek Schlawack added the comment: David: What do you mean? I'd just catch EPERM and look whether the directory "appeared" in the meantime. If it exists, continue. If not: re-raise. Am I missing something? I may have a look at GNU mkdir if it doesn't help. --