[issue11979] Minor improvements to the Sockets readme: typos, wording and sphinx features usage

2011-05-14 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 4081f326e46c by Ezio Melotti in branch '2.7': #11979: improve wording and markup in sockets howto. Patch by Xavier Morel. http://hg.python.org/cpython/rev/4081f326e46c New changeset 85b9ad8b219b by Ezio Melotti in branch '3.1':

[issue11979] Minor improvements to the Sockets readme: typos, wording and sphinx features usage

2011-05-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the patches! -- assignee: docs@python - ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 2.7, Python 3.1, Python 3.2 ___

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure

2011-05-14 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Attached the backport to 2.7 for my v2 patch. -- Added file: http://bugs.python.org/file21997/issue9516-v2-python2.7.patch ___ Python tracker rep...@bugs.python.org

[issue6191] HTMLParser attribute parsing - 2 test cases when it fails

2011-05-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: What I described in my previous message is what Firefox does. If you think this should be changed, I suggest you to open another issue, possibly attaching a test case with the desired behavior and a patch to change it. --

[issue11981] dupe self.fp.tell() in zipfile.ZipFile.writestr

2011-05-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I double checked the code on py3k and I think the second occurrence can be removed. -- nosy: +alanmcintyre versions: +Python 3.3 -Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue12075] python3.2 memory leak when setting integer key in dictionary

2011-05-14 Thread kai zhu
New submission from kai zhu kai...@ugcs.caltech.edu: i'm using the latest debian unstable python3.2 build on colinux (2011, may, 14) ## leak.py ## import imp, leak; imp.reload(leak) ## will leak ~2.5mb per reload ## on i386 debian unstable machine (according to top). ## in my real world app

[issue12071] test_concurrent_futures.test_context_manager_shutdown() hangs on OpenIndiana

2011-05-14 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: This makes sense. I was suspecting a system limit exhaustion, maybe OOM or maximum number of threads, something like that. But at least on Linux, in OOM condition, the process would either get nuked by the OOM-killer, or

[issue12075] python3.2 memory leak when setting integer key in dictionary

2011-05-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I think this has to do with class attributes and reload(): wolf@hp:~/dev/py/py3k$ cat leak.py class Foo: pass Foo.l = list(range(65535)) wolf@hp:~/dev/py/py3k$ ./python Python 3.3a0 (default:4b122cac7ac5+, May 14 2011, 10:01:13) [GCC

[issue12075] python3.2 memory leak when setting integer key in dictionary

2011-05-14 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It's simply because all classes form a cycle (Foo - Foo.__mro__ - Foo) A class and class attributes can only be freed with gc.collect(). Did you disable the garbage collector? -- nosy: +amaury.forgeotdarc

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-14 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Hello Steffen, First, thanks for testing this on OS-X: I only have access to Linux systems (I tested both the semaphore and the emulated semaphore paths). If I understand correctly, the patch works fine with the default build option

[issue12076] IDLE v.3.2 crashing randomly on MacOSX 10.6.7

2011-05-14 Thread Chris Paton
New submission from Chris Paton chrispaton2...@gmail.com: I don't know much about Python (in fact, I'm a noob) so not understanding much of the technical lingo. I've installed Python 3.2, and Active TCL 8.5.9 on my machine. IDLE crashes at random points - compiling, saving, loading or even

[issue12076] IDLE v.3.2 crashing randomly on MacOSX 10.6.7

2011-05-14 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Hello, The Python issue tracker is not here to get help. You will have better answers from friendly people if you ask your question on the comp.lang.python newsgroup, or the python-list mailing list:

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-05-14 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Indeed, it isn't, Pipe objects are not meant to be safe against multiple access. Queue objects (in multiprocessing/queues.py) use locks so they are safe. But if the write to the Pipe is not atomic, then the select isn't safe. select

[issue7960] test.support.captured_output has invalid docstring example

2011-05-14 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset ec35f86efb0d by Ezio Melotti in branch 'default': Merge with 3.2 and also remove captured_output from __all__ (see #7960). http://hg.python.org/cpython/rev/ec35f86efb0d -- ___ Python

[issue7960] test.support.captured_output has invalid docstring example

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

[issue12050] unconsumed_tail of zlib.Decompress is not always cleared on decompress() call

2011-05-14 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 6a45567c7245 by Nadeem Vawda in branch '3.1': Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail http://hg.python.org/cpython/rev/6a45567c7245 New changeset 49c998a88777 by Nadeem Vawda in branch '3.2':

[issue12050] unconsumed_tail of zlib.Decompress is not always cleared on decompress() call

2011-05-14 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 24543f7a87ce by Nadeem Vawda in branch '2.7': Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail http://hg.python.org/cpython/rev/24543f7a87ce -- ___ Python

[issue12050] unconsumed_tail of zlib.Decompress is not always cleared on decompress() call

2011-05-14 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: The code has been fixed. Once again, thanks for the bug report. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: Is there anything preventing this patch from being merged? -- nosy: +Darren.Dale ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11610 ___

[issue12077] Harmonizing descriptor protocol documentation

2011-05-14 Thread Davide Rizzo
New submission from Davide Rizzo sor...@gmail.com: There are three sources of information for the descriptor protocol: - Data model reference (Doc/reference/datamodel.rst) - Descriptor HowTo guide (Doc/howto/descriptor.rst) - PEP 252 A developer who already knows descriptor tipically reads the

[issue12078] re.sub() replaces only several matches

2011-05-14 Thread Andriy Rysin
Changes by Andriy Rysin ary...@gmail.com: -- components: Regular Expressions files: repl.sh nosy: arysin priority: normal severity: normal status: open title: re.sub() replaces only several matches versions: Python 3.1 Added file: http://bugs.python.org/file21999/repl.sh

[issue12078] re.sub() replaces only several matches

2011-05-14 Thread Andriy Rysin
Changes by Andriy Rysin ary...@gmail.com: Added file: http://bugs.python.org/file22000/repl.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12078 ___ ___

[issue12078] re.sub() replaces only several matches

2011-05-14 Thread Andriy Rysin
Changes by Andriy Rysin ary...@gmail.com: Added file: http://bugs.python.org/file22001/test.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12078 ___

[issue12078] re.sub() replaces only several matches

2011-05-14 Thread Andriy Rysin
New submission from Andriy Rysin ary...@gmail.com: When trying to replace strings with parenthesis (in the given example - alternative writing of the words in Ukrainian) the sed replace performs correctly replacing all occurrences, while python3 re.sub() function replaces only first two

[issue5231] Change format of a memoryview

2011-05-14 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: mark.dickinson - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5231 ___ ___

[issue5231] Change format of a memoryview

2011-05-14 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Unassigning. Sorry; no time for this at the moment. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5231 ___

[issue10581] Review and document string format accepted in numeric data type constructors

2011-05-14 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I find it convenient to use int(), float() etc. for data validation. Me too. This is why I'd still be happiest with int and float not accepting non-ASCII digits at all. (And also why the recent suggestions to allow extra underscores in

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/5/14 Darren Dale rep...@bugs.python.org: Darren Dale dsdal...@gmail.com added the comment: Is there anything preventing this patch from being merged? I have to make time to think about the API a bit more. --

[issue12042] What's New multiprocessing example error

2011-05-14 Thread Jordan Stadler
Changes by Jordan Stadler jordan.stad...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file22002/issue12042_2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12042

[issue12042] What's New multiprocessing example error

2011-05-14 Thread Jordan Stadler
Jordan Stadler jordan.stad...@gmail.com added the comment: Patch is up for 2.7, minor change in the documentation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12042 ___

[issue12078] re.sub() replaces only several matches

2011-05-14 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: Argument 4 of re.sub is the maximum number of replacements, NOT flags: Help on function sub in module re: sub(pattern, repl, string, count=0, flags=0) Return the string obtained by replacing the leftmost non-overlapping

[issue8809] smtplib should support SSL contexts

2011-05-14 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: I added a test to smtpnet and submitting a separate patch for it as my test_smtpnet.py file was old and could have had conflicts. I didn't use keys and certificates for the SSLContext as those would have to be shipped with the source. Looking

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: On Sat, May 14, 2011 at 12:20 PM, Benjamin Peterson rep...@bugs.python.org wrote: Benjamin Peterson benja...@python.org added the comment: 2011/5/14 Darren Dale rep...@bugs.python.org: Darren Dale dsdal...@gmail.com added the comment: Is

[issue11949] Make float('nan') unorderable

2011-05-14 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: It seems we're getting a bit off-topic for the issue title; the discussion about cleaning up test_math (which I agree would be a good thing to do) should probably go into another issue. On the issue itself, I'm -1 on making comparisons

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-14 Thread Nir Aides
Nir Aides n...@winpdb.org added the comment: I think that generally it is better to deadlock than corrupt data. 2) acquiring locks just before fork is probably one of the best way to deadlock (acquiring a lock we already hold, or acquiring a lock needed by another thread before it releases

[issue11949] Make float('nan') unorderable

2011-05-14 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Therefore making , , etc. raise on NaN while keeping the status quo for != and == would bring Python floats closer to compliance with IEEE 754. Not so. Either way, Python would be providing exactly 10 of the 22 required IEEE 754

[issue11949] Make float('nan') unorderable

2011-05-14 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: On the issue itself, I'm -1 on making comparisons with float('nan') raise: I don't see that there's a real problem here that needs solving. Note that the current behaviour does *not* violate IEEE 754, ... I agree with Mark.

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I still dislike the reduntancy of having abstractmethod and abstractproperty on a method. I think a better idea is having abstractproperty.abstract(getter/setter/deleter). -- ___ Python

[issue8650] zlibmodule.c isn't 64-bit clean

2011-05-14 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 850624632e9a by Nadeem Vawda in branch '3.1': Issue #8650: Backport 64-bit safety fixes for compress() and decompress(). http://hg.python.org/cpython/rev/850624632e9a New changeset 99a3ce22c1ff by Nadeem Vawda in branch '3.2': Null

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: On Sat, May 14, 2011 at 4:28 PM, Benjamin Peterson rep...@bugs.python.org wrote: Benjamin Peterson benja...@python.org added the comment: I still dislike the reduntancy of having abstractmethod and abstractproperty on a method. I think a

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/5/14 Darren Dale rep...@bugs.python.org: Darren Dale dsdal...@gmail.com added the comment: On Sat, May 14, 2011 at 4:28 PM, Benjamin Peterson rep...@bugs.python.org wrote: Benjamin Peterson benja...@python.org added the

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: On Sat, May 14, 2011 at 5:17 PM, Benjamin Peterson rep...@bugs.python.org wrote: Benjamin Peterson benja...@python.org added the comment: 2011/5/14 Darren Dale rep...@bugs.python.org: Darren Dale dsdal...@gmail.com added the comment: On

[issue12078] re.sub() replaces only several matches

2011-05-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: See #11957. -- nosy: +ezio.melotti resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - re.sub confusion between count and flags args ___ Python tracker

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Okay: how about this. We retain the passing of @abstractmethod to abstractpropert(), but @abstractgetter decorates the method for you. 2011/5/14 Darren Dale rep...@bugs.python.org: Darren Dale dsdal...@gmail.com added the comment: On

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2011-05-14 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 536ec6206584 by Kurt B. Kaiser in branch '3.1': Issue #6378: Further adjust idle.bat to start associated Python http://hg.python.org/cpython/rev/536ec6206584 New changeset cd55c6960d86 by Kurt B. Kaiser in branch '3.2': Merge from

[issue12078] re.sub() replaces only several matches

2011-05-14 Thread Andriy Rysin
Andriy Rysin ary...@gmail.com added the comment: Ahh, I guess I should have read the docs. But then looks like I am not the fist or only one so it's not as embarrassing. :) I would support the proposal in #11957 to make re flags non-int object --

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: On Sat, May 14, 2011 at 5:55 PM, Benjamin Peterson rep...@bugs.python.org wrote: Benjamin Peterson benja...@python.org added the comment: Okay: how about this. We retain the passing of @abstractmethod to abstractpropert(), but

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/5/14 Darren Dale rep...@bugs.python.org: Darren Dale dsdal...@gmail.com added the comment: On Sat, May 14, 2011 at 5:55 PM, Benjamin Peterson rep...@bugs.python.org wrote: Benjamin Peterson benja...@python.org added the

[issue8650] zlibmodule.c isn't 64-bit clean

2011-05-14 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 0b5211d19a14 by Nadeem Vawda in branch '3.1': Issue #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean. http://hg.python.org/cpython/rev/0b5211d19a14 New changeset 3ff862d05d18 by Nadeem Vawda in branch '3.2': Merge:

[issue11957] re.sub confusion between count and flags args

2011-05-14 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/issue11957 ___

[issue12059] hashlib does not handle missing hash functions correctly

2011-05-14 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 572fbd9ca28f by Gregory P. Smith in branch '2.7': Fixes Issue #12059: Properly handle missing hash functions even when http://hg.python.org/cpython/rev/572fbd9ca28f New changeset ad9249f35914 by Gregory P. Smith in branch '3.2':

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: On Sat, May 14, 2011 at 6:24 PM, Benjamin Peterson rep...@bugs.python.org wrote: Benjamin Peterson benja...@python.org added the comment: 2011/5/14 Darren Dale rep...@bugs.python.org: Darren Dale dsdal...@gmail.com added the comment: It

[issue12059] hashlib does not handle missing hash functions correctly

2011-05-14 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- assignee: - gregory.p.smith resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12059 ___

[issue12060] Python doesn't support real time signals

2011-05-14 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: if you used the pipe approach you'd need to deal with the case of the write blocking (or failing if nonblocking) when the pipe buffer is full. also you'd need to block signals around a fork and reinitialize the pipe in the child before

[issue8650] zlibmodule.c isn't 64-bit clean

2011-05-14 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Fixed in 3.1, 3.2 and 3.3. 2.7 no longer has this problem -- the fix for issue8651 ensures that the functions cannot receive inputs large enough to be problematic (since we don't define PY_SSIZE_T_CLEAN). -- resolution: - fixed

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-14 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: a) We know the correct locking order in Python's std libraries so the problem there is kind of solved. I think that you're greatly under-estimating the complexity of lock ordering. If we were just implementing a malloc

[issue12060] Python doesn't support real time signals

2011-05-14 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: if you used the pipe approach you'd need to deal with the case of the write blocking (or failing if nonblocking) when the pipe buffer is full. Well, a pipe is 64K on Linux (4K on older kernels). Given that each signal received

[issue12060] Python doesn't support real time signals

2011-05-14 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: if someone comes up with a situation where this is a real problem, feel free to reopen it. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: It just occurred to me, there is a potential problem with abstractproperty and the decorator syntax in my patch: class Foo: @abstractproperty def p(self): pass # p is abstract, but has no abstract methods @p.setter def

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11610 ___ ___

[issue12038] assertEqual doesn't display newline differences quite well

2011-05-14 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: We should ensure that the first differing character in the string is always included in what is displayed as a diff. if we're going to shorten a string we should elide something that matches. -- nosy: +gregory.p.smith

[issue1615158] POSIX capabilities support

2011-05-14 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Adding this to the posix module would enforce linking with lcap and lattr always. The development headers for these are not installed by default on some distributions. I think it would be better if they are added to a separate module