[issue11750] Mutualize win32 functions

2011-04-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Two high-level remarks about the patch: - IMO there is no reason to put _windows.c in the PC directory. After all, there is no such distinction for posix-specific modules. - wxPython already has a submodule named _windows.py. I wonder

[issue10042] total_ordering

2011-04-19 Thread Lennart Regebro
Lennart Regebro rege...@gmail.com added the comment: We *do* care about NotImplemented, that's the whole point of this bug report. I don't see how this is a problem in the new_total_ordering.py example. Can you give an example of when you get a stack overflow? The examples in

[issue10042] total_ordering

2011-04-19 Thread Lennart Regebro
Lennart Regebro rege...@gmail.com added the comment: I'm attaching a file with the example classes returning NotImplemented, and a different implementation of a total ordering, as an example of how returning NotImplemented by one class will give the chance to the other class. This is the

[issue10042] total_ordering

2011-04-19 Thread Alexander Boyd
Alexander Boyd a...@opengroove.org added the comment: I've attached a file demonstrating the stack overflow. It assumes total_ordering has been defined as per new_total_ordering.py. -- Added file: http://bugs.python.org/file21712/new_total_ordering_overflow.py

[issue10042] total_ordering

2011-04-19 Thread Lennart Regebro
Lennart Regebro rege...@gmail.com added the comment: Ah! I see how you mean. The problem isn't just if you turn the conversion around from self other to other self. The problem in fact appears when a rich text function uses the != operators on self directly. I tried a version which uses the

[issue11872] cPickle gives strange error for large objects.

2011-04-19 Thread MattyG
New submission from MattyG meawo...@gmail.com: from numpy import * import cPickle a = zeros((30, 1000)) f = open(test.pkl, w) cPickle.dump(a, f) -- SystemError: Traceback (most recent call last) /home/kddcup/code/matt/svd-projection/take5/ipython console in module() SystemError?:

[issue10042] total_ordering

2011-04-19 Thread Alexander Boyd
Alexander Boyd a...@opengroove.org added the comment: That's my point. My version, sane_total_ordering.py, fixes this by using traditional functions and explicit NotImplemented checks. -- ___ Python tracker rep...@bugs.python.org

[issue11873] test_regexp() of test_compileall failure on x86 OpenIndiana 3.x

2011-04-19 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Trace: -- [ 30/354] test_compileall test test_compileall failed -- Traceback (most recent call last): File

[issue11872] cPickle gives strange error for large objects.

2011-04-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: See also issue11564 and issue9614. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11872 ___

[issue11874] argparse assertion failure with brackets in metavars

2011-04-19 Thread Hartmut Niemann
New submission from Hartmut Niemann hartmut.niem...@siemens.com: I run this script with option --help -8-- import argparse parser = argparse.ArgumentParser() parser.add_argument ('--from-itm', dest=from_itm,action=store,default=None,help =Source ITM file,

[issue10042] total_ordering

2011-04-19 Thread Lennart Regebro
Lennart Regebro rege...@gmail.com added the comment: Yeah, I can't say it's pretty though. :) Anyway this is an issue for 3.2 and 2.7 as well, then, so I add them back. -- versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue11875] OrderedDict.__reduce__ not threadsafe

2011-04-19 Thread Mario Juric
New submission from Mario Juric mju...@ias.edu: The implementation of OrderedDict.__reduce__() in Python 2.7.1 is not thread safe because of the following four lines: tmp = self.__map, self.__root del self.__map, self.__root inst_dict = vars(self).copy()

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-19 Thread higery
Changes by higery shoulderhig...@gmail.com: Removed file: http://bugs.python.org/file21697/change_path_separator_in_MANIFEST.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue828450 ___

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-19 Thread higery
Changes by higery shoulderhig...@gmail.com: Added file: http://bugs.python.org/file21713/change_path_separator_in_MANIFEST.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue828450 ___

[issue10042] total_ordering

2011-04-19 Thread Alexander Boyd
Alexander Boyd a...@opengroove.org added the comment: Ok. Yeah, I won't argue that it's pretty :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10042 ___

[issue11875] OrderedDict.__reduce__ not threadsafe

2011-04-19 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11875 ___

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-04-19 Thread Jonas H.
Jonas H. jo...@lophus.org added the comment: *push* Any way to get this into the codebase? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11258 ___

[issue10888] os.stat(filepath).st_mode gives wrong 'executable permission' result

2011-04-19 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: FWIW I agree with MvL: os.stat is one of those awkward customers left over from the idea that Windows could be posix-compliant, even though the relevant concepts don't actually map particularly well. ISTM that anyone seriously wanting to

[issue11875] OrderedDict.__reduce__ not threadsafe

2011-04-19 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: To avoid hardcoding the mangled names: @@ -155,10 +155,9 @@ def __reduce__(self): 'Return state information for pickling' items = [[k, self[k]] for k in self] -tmp = self.__map, self.__root,

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: “If a signal is delivered to a thread waiting for a condition variable, upon return from the signal handler the thread resumes waiting for the condition variable as if it was not interrupted, or it shall return zero due to

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-04-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Added file: http://bugs.python.org/file21714/pthread_cond_timedwait_signal.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11223 ___

[issue11876] SGI Irix threads, SunOS lightweight processes, GNU pth threads, Mach C Threads are now unsupported, and code will be removed in 3.3

2011-04-19 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Python/thread.c contains the following messages: #ifdef SGI_THREADS #error SGI Irix threads are now unsupported, and code will be removed in 3.3. #include thread_sgi.h #endif #ifdef SUN_LWP #error SunOS lightweight processes are

[issue11876] SGI Irix threads, SunOS lightweight processes, GNU pth threads, Mach C Threads are now unsupported, and code will be removed in 3.3

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, the file contains also a reference to a missing file: #ifdef PLAN9_THREADS #include thread_plan9.h #endif But I don't see where PLAN9_THREADS is defined. -- ___ Python tracker

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The problem is that I don't know how to check in test_threadsignals which thread implementation is used in Python. It would be nice to have some functions providing such information in the sys or sysconfig module, maybe something

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Took some time, but here is a patch that makes mmap(2) work on Mac OS X. This also applies to #11779. Background: on OS X, fsync(2) seems to behave as fdatasync(2). To give people the possibility to do some kind of fync(2)

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @sdaoden: This issue has a lot of patches, can you remove old patches? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277

[issue11779] test_mmap timeout (1 hour) on AMD64 Snow Leopard 3.x buildbot

2011-04-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I think that will also be healed with the patch i've just posted to #11277. (However, though i can't ,reproduce`, it seems the Microkernel/IOKit interaction sometimes has a problem, because i *really* had messed up sparse files

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-19 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file20861/doc_lib_mmap.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-19 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file21671/11277.1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-19 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file21675/11277.2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: (The working patch is http://bugs.python.org/file21715/11277.3.diff.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-19 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file21672/11277.mmap.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-19 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file21676/11277.mmap-1.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-19 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file21683/11277.mmap-2.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-19 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file21684/11277.mmap-2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: (Dropped the tests, too.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: threading_info.patch: - Add thread._info() function - dict with 'name' and 'use_semaphores' (pthread only) keys - Skip test_lock_acquire_interruption() and test_rlock_acquire_interruption() if Python uses pthread without

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: 11277.3.diff: this patch looks correct (I'm unable to test it), but can you add a sentence in mmap doc to explain that mmap.mmap() does flush the file on Mac OS X and VMS? -- ___ Python

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-04-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD) - Crash with mmap and sparse files on Mac OS X ___ Python tracker rep...@bugs.python.org

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, fcntl has already a F_FULLFSYNC constant, so we can use like fcntl.fcntl(fd, fcntl.F_FULLFSYNC) in Python. can you add a sentence in mmap doc to explain that mmap.mmap() does flush the file on Mac OS X and VMS? Hum, it does

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, and can you add a comment explaining why F_FULLFSYNC is needed on Mac OS X in your patch? (If I understood correctly, it is needed to avoid crash with sparse files). -- ___ Python

[issue11876] SGI Irix threads, SunOS lightweight processes, GNU pth threads, Mach C Threads are now unsupported, and code will be removed in 3.3

2011-04-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11876 ___ ___ Python-bugs-list mailing list

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-04-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Updated 11277.4.diff also includes mmap.rst update. (Maybe os.fsync() and os.sync() should be modified to really do that fcntl, too? I'll think i'll open an issue with patch soon.) -- Added file:

[issue11300] mmap() large file failures on Mac OS X docfix

2011-04-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Outdated due to found #11277 solution. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11300

[issue11877] Mac OS X fsync() should really be fcntl(F_FULLFSYNC)

2011-04-19 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: Issue 11277 revealed that Mac OS X fsync() does not always and gracefully synchronize file data to physical backing store. To gain real fsync(2) behaviour fcntl(2) must be called with the F_FULLFSYNC flag. -- components:

[issue11877] Mac OS X fsync() should really be fcntl(F_FULLFSYNC)

2011-04-19 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11877 ___ ___

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Tue, Apr 19, 2011 at 10:34:11AM +, STINNER Victor wrote: 11277.3.diff: this patch looks correct Unbelievable - you really fought yourself through this immense bunch of code in such a short time! :) -- title: Crash

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-04-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: (My last reply-mail changed the title. Fixing.) -- title: test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD) - Crash with mmap and sparse files on Mac OS X ___ Python

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2011-04-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Attached patch against 3.1 fixes the number of FFFD. A test for the range in the error message should probably be added. I haven't done any benchmark yet. There's some code duplication, but I'm not sure it can be factored out.

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: (My last reply-mail changed the title. Fixing.) Yeah, it's a common problem if you use the email interface :-/ -- ___ Python tracker rep...@bugs.python.org

[issue11750] Mutualize win32 functions

2011-04-19 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: For the first point, I just put it there since other Windows-only modules already exist there. _subprocess did, msvcrt and winreg currently do, and there's a few other Windows-only things in there. It's not a big deal, so I can move it into

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-04-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: threading_info.patch: - Add thread._info() function - dict with 'name' and 'use_semaphores' (pthread only) keys Most of these names will be removed in 3.3: http://bugs.python.org/issue11863 -- ___

[issue11876] SGI Irix threads, SunOS lightweight processes, GNU pth threads, Mach C Threads are now unsupported, and code will be removed in 3.3

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, this is a duplicate of #11863. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11876

[issue11863] Enforce PEP 11 - remove support for legacy systems

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Issue #11876 has been marked as a duplicate of this issue. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11863

[issue1294232] Error in metaclass search order

2011-04-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Yep, the leading underscore and the fact you added it to a block of code that is skipped when Py_LIMITED_API is defined makes it OK to include the prototype in object.h. However, I would suggest _PyType_CalculateMetaclass as the name -

[issue11867] Make test_mailbox deterministic

2011-04-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Nice ping pong you play.. I, buildbot get: Using random seed 2215045 [1/1] test_mailbox test test_mailbox failed -- multiple errors occurred; run in verbose mode for details test test_mailbox failed -- Traceback (most recent call

[issue1294232] Error in metaclass search order

2011-04-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Removed 2.7 from the affected versions - with neither __build_class__ nor __prepare__ in 2.x, there's no alternate metaclass calculation to go wrong. This should definitely be fixed for the final 3.1 release and for 3.2 though. An updated

[issue1294232] Error in metaclass search order

2011-04-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Sorry, my last review wasn't right and the patch is incorrect as it stands. After digging a little deeper, there is still a case that isn't covered correctly in __build_class__. Specifically, the case where the most derived class has a

[issue10932] distutils.core.setup - data_files misbehaviour ?

2011-04-19 Thread Prashant Kumar
Changes by Prashant Kumar contactprashan...@gmail.com: Added file: http://bugs.python.org/file21720/test_command_sdist.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10932 ___

[issue11867] Make test_mailbox deterministic

2011-04-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for testing this. I was afraid something like that would happen, since socket implementations are different on different platforms. I presume you ran it on OSX. Now I have to decide if I want to fix it, or if I should just

[issue10932] distutils.core.setup - data_files misbehaviour ?

2011-04-19 Thread Prashant Kumar
Prashant Kumar contactprashan...@gmail.com added the comment: If I'm not wrong, the contents in the manifest file should be: 'data.cfg' (not cfg/data.cgg) I've added a patch which fixes the above issue. -- Added file: http://bugs.python.org/file21721/fix-manifest.diff

[issue8933] Invalid detection of metadata version

2011-04-19 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Bump! How about commiting this patch, Eric? -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8933 ___

[issue11863] Enforce PEP 11 - remove support for legacy systems

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: FYI Hurd only supports cthread, without cthread support, Python will not support threads on Hurd anymore. There are two Hurd issues to move from cthread to pthread http://savannah.gnu.org/task/?5487 (opened 5 years ago)

[issue11867] Make test_mailbox deterministic

2011-04-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Short glance into it, and after commenting out self.c_sock_close = self.c_sock_shutdown = True in the parent process it ends up as (maybe i can spend more time this evening): 15:36 ~/tmp $ python3 -E -Wd -m test -r -w -uall

[issue11837] smtplib._quote_periods triggers spurious type error in re.sub

2011-04-19 Thread Axel Rau
Axel Rau axel@chaos1.de added the comment: One more hint: The bug does not happen with plain text mails, but can easily be reproduced with MIME attachments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11837

[issue11877] Mac OS X fsync() should really be fcntl(F_FULLFSYNC)

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, it remembers a long story around ext3/ext4 and write barrier, with a specific problem in Firefox with SQLite. http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man2/fsync.2.html For

[issue11878] No SOAP libraries available for Python 3.x

2011-04-19 Thread Michiel Van den Berghe
New submission from Michiel Van den Berghe michiel@gmail.com: There doesn't seem to exist a SOAP library for Python 3.x. Several different third party libraries exist for the 2.x releases, but none of these are being ported to 3.x. None of these modules are easily ported using 2to3 due to

[issue11878] No SOAP libraries available for Python 3.x

2011-04-19 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: This is something that should be handled on the trackers of any of the external SOAP libraries. If they are ported to Python 3 and are seen as best in class and are willing to move all development into the standard library, then inclusion could

[issue8982] argparse docs cross reference Namespace as a class but the Namespace class is not documented

2011-04-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Attached patch adds a link target for :class:`Namespace` (already used in the docs) and adds a reference to it from for the first mentions of “namespace object”. Use “hg import blah.diff” (after “hg up 3.2”) to get the patch in the repo

[issue9896] Introspectable range objects

2011-04-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks good, apart from the use of assertEquals (deprecated in favor of assertEqual). I’d also remove “merely” from the doc addition. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

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

[issue11863] Enforce PEP 11 - remove support for legacy systems

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

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Most of these names will be removed in 3.3: http://bugs.python.org/issue11863 Yeah, I know. My patch should be updated if #11863 is fixed before this issue. Updated patch: - add 'pthread_version' key to threading._info() -

[issue11858] configparser.ExtendedInterpolation and section case

2011-04-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo stage: - test needed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11858 ___

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Example on my Debian Sid: threading._info() {'pthread_version': 'NPTL 2.11.2', 'use_semaphores': True, 'name': 'pthread'} -- ___ Python tracker rep...@bugs.python.org

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-04-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Yeah, I know. My patch should be updated if #11863 is fixed before this issue. Updated patch: - add 'pthread_version' key to threading._info() - test_os uses threading._info() to check if we are using linuxthreads The path which sets

[issue11877] Mac OS X fsync() should really be fcntl(F_FULLFSYNC)

2011-04-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Traditionally the functions in os are thin wrappers around OS functions, this patch changes that for os.fsync. Two nits wrt. the patch itself: 1) The behaviour on OSX should be documented in the stdlib reference, that currently says

[issue11867] Make test_mailbox deterministic

2011-04-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think the fix is to either put a try/except around the socket shutdown call, or to remove it entirely (I think things will still work right on linux without it). If you leave the self.c_sock_close = True in, it should take care of the

[issue8933] Invalid detection of metadata version

2011-04-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: “I’m putting this on standby until distutils2 is fully merged into the standard library and we have a clear workflow from packaging to d2 to d1.” -- ___ Python tracker rep...@bugs.python.org

[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-04-19 Thread Michael Gold
New submission from Michael Gold mg...@qnx.com: In TarFile.chown, if the lookup u = pwd.getpwnam(tarinfo.uname)[2] fails, this line is used: u = pwd.getpwuid(tarinfo.uid)[2] This will fail if the uid isn't in /etc/passwd. I think u = tarinfo.uid would make more sense. This fallback could

[issue10932] distutils.core.setup - data_files misbehaviour ?

2011-04-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can you remove all obsolete repositories and patches from this report and upload one complete patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10932

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-19 Thread higery
higery shoulderhig...@gmail.com added the comment: I'm not sure it is necessary to use TempdirManager here to write tests for MANIFEST reading. The attachment is the test diff file against my last patch with the latest version. Detail: Step 1: Write sample MANIFEST strings to the MANIFEST

[issue11880] add a {dist-info} category to distutils2

2011-04-19 Thread dholth
New submission from dholth dho...@fastmail.fm: In distutils2 there is currently no way to add files such as egg_info.txt that should be part of the package metadata. A new category named the same as the .dist-info directory would be a nice way to do it. distutils2 should raise an error if any

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I'm not sure it is necessary to use TempdirManager here to write tests for MANIFEST reading. Well, the sdist command has to run on some directory where some files exist, right? So it’s better to do it in a temp dir that will automatically get

[issue11875] OrderedDict.__reduce__ not threadsafe

2011-04-19 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 3150b6939731 by Raymond Hettinger in branch '2.7': Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object. http://hg.python.org/cpython/rev/3150b6939731 -- nosy: +python-dev

[issue11880] add a {dist-info} category to distutils2

2011-04-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This feature is two-fold: add a method to install_distinfo to make it write some data in some file; add a new resource category. -- assignee: tarek - eric.araujo ___ Python tracker

[issue10596] modulo operator bug

2011-04-19 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Uncle Timmy, was this the right thing to do? -- assignee: mark.dickinson - tim_one nosy: +rhettinger, tim_one ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10596

[issue8426] multiprocessing.Queue fails to get() very large objects

2011-04-19 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: IMO, it would be nice if I could ask my queue, Just what is your capacity (in bytes, not entries) anyways? I want to know how much I can put in here without worrying about whether the remote side is dequeueing. I guess I'd settle for

[issue11849] ElementTree memory leak

2011-04-19 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: BTW, after utilize lxml instead of ElementTree, such phenomenon of increasing memory usage disappeared. If you looked at the link I posted, you'll see that lxml had some similar issues and solved it by calling malloc_trim

[issue11877] Mac OS X fsync() should really be fcntl(F_FULLFSYNC)

2011-04-19 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: I know that POSIX makes no guarantee regarding durable writes, but IMHO that's definitely wrong, in the sense that when one calls fsync, he expects the data to be committed to disk and be durable. Fixing this deficiency through

[issue11875] OrderedDict.__reduce__ not threadsafe

2011-04-19 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 50a89739836f by Raymond Hettinger in branch '3.1': Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object. http://hg.python.org/cpython/rev/50a89739836f New changeset a7ac7a7c8c78 by Raymond Hettinger in

[issue11828] startswith and endswith don't accept None as slice index

2011-04-19 Thread Torsten Becker
Torsten Becker torsten.bec...@gmail.com added the comment: Hi, Jesús, I merged the patch up in the branches startswith-slices-issue11828-3.2 [1] and startswith-slices-issue11828-3.3 [2] in my hg repository. [1]: https://bitbucket.org/t0rsten/cpython/changeset/49028581e43a [2]:

[issue11881] Add list.get

2011-04-19 Thread Filip Gruszczyński
New submission from Filip Gruszczyński grusz...@gmail.com: I have proposed on Core Mentorship list to add get(index, default) method to list object. I was suggested to bring it up here and also told, that improving operator module could be a better solution. This is why I would like to ask, if

[issue11881] Add list.get

2011-04-19 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Sorry, this has come up before and was rejected. -- nosy: +rhettinger resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11875] OrderedDict.__reduce__ not threadsafe

2011-04-19 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Mario, I removed the unnecessary mutation, but remember that OrderedDict's are not thread-safe in general. Anything that updates an OrderedDict will temporarily leave it in an inconsistent state while the links and mappings are

[issue11881] Add list.get

2011-04-19 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: What did you have in mind for the operator module? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11881 ___

[issue11882] test_imaplib failed on x86 ubuntu

2011-04-19 Thread Kasun Herath
New submission from Kasun Herath kasun...@gmail.com: test_imaplib failed on x86 ubuntu machine with following error(s) == FAIL: test_Internaldate2tuple (test.test_imaplib.TestImaplib)

[issue11881] Add list.get

2011-04-19 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Nick Coghlan suggested, that operator.getitem could be extended to accept default value. How does it sound to you? -- ___ Python tracker rep...@bugs.python.org

[issue10932] distutils.core.setup - data_files misbehaviour ?

2011-04-19 Thread Prashant Kumar
Changes by Prashant Kumar contactprashan...@gmail.com: Removed file: http://bugs.python.org/file21720/test_command_sdist.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10932 ___

[issue10932] distutils.core.setup - data_files misbehaviour ?

2011-04-19 Thread Prashant Kumar
Changes by Prashant Kumar contactprashan...@gmail.com: Removed file: http://bugs.python.org/file21721/fix-manifest.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10932 ___

  1   2   >