[issue19323] typo in statistics documentation

2013-10-21 Thread Michael Merickel
New submission from Michael Merickel: http://docs.python.org/dev/library/statistics.html#mean describes the mean as "effected" by outliers, when it should say "affected". -- assignee: docs@python components: Documentation messages: 200704 nosy: docs@python, mmerickel priority: normal se

[issue19323] typo in statistics documentation

2013-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1f466354a85b by Georg Brandl in branch 'default': Closes #19323: fix typo. Thanks to Michael Merickel. http://hg.python.org/cpython/rev/1f466354a85b -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> clo

[issue19308] Tools/gdb/libpython.py does not support GDB linked against Python 3

2013-10-21 Thread David Coles
David Coles added the comment: And here's the patch for Python 2.7. The result of testing is as follows: - python (default) against py2-linked gdb: All tests pass - python (2.7) against py2-linked gdb: `test_long` fails. - python (default) against py3-linked gdb: All tests pass - python (2.7) ag

[issue19320] Tkinter tests ran with wantobjects is false

2013-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which follows second way. -- keywords: +patch Added file: http://bugs.python.org/file32274/test_tcl_wantobjects.patch ___ Python tracker _

[issue19320] Tkinter tests ran with wantobjects is false

2013-10-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review versions: +Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue19270] sched.cancel() breaks events order

2013-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If the order of events with the same time and priority doesn't matter, we can optimize the queue property more than 10 times by using sort() (see cancel_4.patch in issue13451). -- ___ Python tracker

[issue19321] memoryview should be a context manager

2013-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And thank you Antoine for this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue19321] memoryview should be a context manager

2013-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Well, it was not only proposed, but it was also implemented (by Antoine). Oh, sorry for the noise. -- resolution: -> out of date stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue19270] sched.cancel() breaks events order

2013-10-21 Thread STINNER Victor
STINNER Victor added the comment: > That is allowed. We make no stability guarantees. Plus it just makes sense > that events with the same time and priority are non-deterministic. It would be nice to keep the insertion order. If it is not guaranteed, it must be well documented (big red warn

[issue19306] Warn unsuspecting readers that thread stacks are in reverse order

2013-10-21 Thread STINNER Victor
STINNER Victor added the comment: Thanks. "(most recent call first)" was already present in some cases, but I forgot to mention it in all cases. -- ___ Python tracker ___ __

[issue19293] test_asyncio hanging for 1 hour

2013-10-21 Thread STINNER Victor
STINNER Victor added the comment: 2013/10/21 David Edelsohn : >> I added many tests when I added this feature to Python: see test_signal.py. >> By the way, it uses select.select() :-) Does test_signal pass successfully >> on AIX? > > @haypo: test_signal skips some tests on AIX. See Issue #1823

[issue19270] sched.cancel() breaks events order

2013-10-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Does it occur frequently to schedule two events at exactly the same > time? On Linux, clocks have a good precision, even time.monotonic(). It depends how you calculate your timestamps, I'd say :-) It's unlikely for two calls to time.time() to give the exact sa

[issue19270] sched.cancel() breaks events order

2013-10-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > ... for two calls to time.time() to give the exact same outcome > > sched now uses time.monotonic() since Python 3.3. This seems quite irrelevant: >>> len(set(time.monotonic() for i in range(100))) 100 -- _

[issue19308] Tools/gdb/libpython.py does not support GDB linked against Python 3

2013-10-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've added a review comment to the 3.3 version of the patch. -- ___ Python tracker ___ ___ Python-bu

[issue19270] sched.cancel() breaks events order

2013-10-21 Thread STINNER Victor
STINNER Victor added the comment: > ... for two calls to time.time() to give the exact same outcome sched now uses time.monotonic() since Python 3.3. In Python 2.7, there is no default timer, but I get that users pick time.time(). (Oh, sched has no unit test in Python 2.7.) -- __

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-10-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, does anyone have an opinion for or against the proposed representation in Sunny's patch? Sunny, if you haven't done so, could you sign a contributor's agreement? http://www.python.org/psf/contrib/ Thanks! --

[issue19270] sched.cancel() breaks events order

2013-10-21 Thread STINNER Victor
STINNER Victor added the comment: Victor: "On Windows, the precision of time.monotonic() is worse (around 16 ms), so two events at the same time is more likely." Antoine: "This seems quite irrelevant:" I would be interested of the same test on Windows. --

[issue19293] test_asyncio hanging for 1 hour

2013-10-21 Thread Charles-François Natali
Charles-François Natali added the comment: I'm completely lost: how many issues is this thread conflating? For example, David, I think you said that my patch regarding signal handling did fix some tests. Is that still the case? If yes, could you open a specific issue for the remaining failing tes

[issue19205] Don't import re and sysconfig in site.py

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: The imports in _osx_support counteract the performance boost. I neither have an OS X machine and nor do I understand the internals of _osx_support. Perhaps somebody else likes to work on the module. -- assignee: christian.heimes -> components: +Mac

[issue18528] Possible fd leak in socketmodule

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: Shall I commit my patch or shall I close the coverity issue as intentionally? -- versions: -Python 3.3 ___ Python tracker ___ ___

[issue18650] intermittent test_pydoc failure on 3.4.0a1

2013-10-21 Thread Esa Peuha
Esa Peuha added the comment: The problem seems to be /Users/pyi/Library/Python/3.4/lib/python/site-packages/setuptools-0.9.8-py3.4.egg according to the error page. What is that file? The fact that the second run of the test succeeds implies that it could be a temporary file which is no longer

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: Yes, it's a security issue. But the patch would changes the behavior of the function. The current function conforms to RFC 2818. The patch implements RFC 6125, which is more restrictive. -- nosy: +georg.brandl, larry priority: normal -> release block

[issue15893] Py_FrozenMain() resource leak and missing malloc checks

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: Victor, is here anything left to do? -- assignee: -> haypo stage: -> commit review status: open -> languishing ___ Python tracker ___ __

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-21 Thread koobs
koobs added the comment: @Ethan, not sure if you've already seen them, but there are 4 pydoc failures since 2f09a6980e1a Attaching another complete log from build #245 on the koobs-freebsd9 buildslave here for posterity -- Added file: http://bugs.python.org/file32275/koobs-freebsd9-py

[issue19324] Expose Linux-specific APIs in resource module

2013-10-21 Thread Christian Heimes
New submission from Christian Heimes: See #16595 and http://mail.python.org/pipermail/python-ideas/2012-June/015323.html I'm going to add the extra constants before beta. RLIMIT_MSGQUEUE RLIMIT_NICE RLIMIT_RTPRIO RLIMIT_RTTIME RLIMIT_SIGPENDING -- assignee: christian.heimes messages: 2

[issue18550] internal_setblocking() doesn't check return value of fcntl()

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: LGTM The patch silences the coverity warnings, too. Does anybody else like to do a code review? -- ___ Python tracker ___ ___

[issue17276] HMAC: deprecate default hash

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: GPS, what do you suggest instead? Do you want me to remove the deprecation warning? -- ___ Python tracker ___ ___

[issue18775] name attribute for HMAC

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: I'm going to commit the patch this week. Speak now or forever hold your peace... -- ___ Python tracker ___ ___

[issue19324] Expose Linux-specific APIs in resource module

2013-10-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19205] Don't import re and sysconfig in site.py

2013-10-21 Thread STINNER Victor
STINNER Victor added the comment: > The imports in _osx_support counteract the performance boost. I neither have > an OS X machine and nor do I understand the internals of _osx_support. > Perhaps somebody else likes to work on the module. Please open a separated issue for OS X, this issue can

[issue19302] Add support for AIX pollset efficient event I/O polling

2013-10-21 Thread Charles-François Natali
Charles-François Natali added the comment: > David Edelsohn added the comment: > > This enhancement issue is not a demand that you or anyone else in the Python > community volunteer to implement it. AIX is a very lucrative business and > deployed in many businesses that the Python community wou

[issue19205] Don't import re and sysconfig in site.py

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: Good point, #19325 -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue19325] _osx_support imports many modules

2013-10-21 Thread Christian Heimes
New submission from Christian Heimes: On Mac OS X the site module imports sysconfig which imports _osx_support which in turn imports several more modules like the re module. More modules == slower startup. See #19205 for background information on the issue. -- assignee: ronaldoussoren

[issue19251] bitwise ops for bytes of equal length

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: I see that the feature idea is more controversial than I initially expected. It's probably best to have a long bike-shedding discussion on Python-ideas... :) Right now from_bytes/to_bytes trick is fast enough for my needs anyway. Therefore I'm deferring the

[issue19325] _osx_support imports many modules

2013-10-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19302] Add support for AIX pollset efficient event I/O polling

2013-10-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: (note that we have a devpoll implementation for Solaris) -- ___ Python tracker ___ ___ Python-bugs-l

[issue19251] bitwise ops for bytes of equal length

2013-10-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue16595] Add resource.prlimit

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: Thanks for your tests. I may have to rework my test scenario a bit. -- ___ Python tracker ___ ___

[issue16685] audioop functions shouldn't accept strings

2013-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well. In updated patch I use gotos where it decreases the number of lines (total decreasing is almost 30 lines). -- ___ Python tracker ___ __

[issue16685] audioop functions shouldn't accept strings

2013-10-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file32276/audioop_buffer_2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue19325] _osx_support imports many modules

2013-10-21 Thread Ned Deily
Changes by Ned Deily : -- assignee: ronaldoussoren -> ned.deily nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue19251] bitwise ops for bytes of equal length

2013-10-21 Thread Ramchandra Apte
Ramchandra Apte added the comment: On 21 October 2013 14:45, Christian Heimes wrote: > > Christian Heimes added the comment: > > I see that the feature idea is more controversial than I initially > expected. It's probably best to have a long bike-shedding discussion on > Python-ideas... :) Righ

[issue19317] ctypes.util.find_library should examine binary's RPATH on Solaris

2013-10-21 Thread Maciej Bliziński
Changes by Maciej Bliziński : -- versions: +Python 2.6, Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue10977] Concrete object C API considered harmful to subclasses of builtin types

2013-10-21 Thread Stefan Krah
Stefan Krah added the comment: I'm also in favor of a clean separation between the concrete and abstract APIs (see also #12965). Why can't the concrete functions be locked down with *CheckExact()? If there's any breakage in third party modules, it's easy to fix (probably much easier than the Un

[issue18527] Upgrade Modules/zlib to 1.2.8

2013-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 224aa49f22f1 by Christian Heimes in branch 'default': Issue #18527: Upgrade internal copy of zlib to 1.2.8 http://hg.python.org/cpython/rev/224aa49f22f1 -- nosy: +python-dev ___ Python tracker

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2013-10-21 Thread intgr
Changes by intgr : -- nosy: +intgr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue18527] Upgrade Modules/zlib to 1.2.8

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: Done. I have also removed two files that are neither part of zlib 1.2.8 nor required to build the extension on Windows. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___

[issue19251] bitwise ops for bytes of equal length

2013-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > By the way I'd also be happy with a set of vector ops in the operator module, > e.g. vector_xor(a, b). This is one direction. Other direction is adding the bitarray or bitset container and the bitview adapter. -- _

[issue19326] asyncio: child process exit isn't detected if its stdin/stdout/stderr FDs have been inherited by a child process

2013-10-21 Thread Charles-François Natali
New submission from Charles-François Natali: (This is a spinoff from http://bugs.python.org/issue19293#msg200598) When SIGCHLD is received, _sig_chld() is executed: def _sig_chld(self): [...] transp = self._subprocesses.get(pid) if transp is not None: tra

[issue19293] test_asyncio hanging for 1 hour

2013-10-21 Thread Richard Oudkerk
Richard Oudkerk added the comment: Would it make sense to use socketpair() instead of pipe() on AIX? We could check for the "bug" directly rather than checking specifically for AIX. -- ___ Python tracker

[issue18742] Abstract base class for hashlib

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: I'm going to add CryptoKeyedHash ABC and register hmac as keyed hash algorithm, too. -- ___ Python tracker ___ __

[issue19327] re doesn't work with big charsets

2013-10-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: >>> import re >>> re.compile('[%s]' % ''.join(map(chr, range(256, 2**16, 255 Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/sre_compile.py", line 211, in _optimize_charset charmap[fixup(av)] = 1 IndexError: list assignment ind

[issue19327] re doesn't work with big charsets

2013-10-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19327] re doesn't work with big charsets

2013-10-21 Thread STINNER Victor
STINNER Victor added the comment: @Serhiy: Could you please take a look at issue #13100? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue19328] Improve PBKDF2 documentation

2013-10-21 Thread Christian Heimes
New submission from Christian Heimes: The new pbkdf2_hmac() feature #18582 #19254 needs more documentation. I'm going to explain round count, salt generation, user vs. application salt, salt length etc. -- assignee: christian.heimes components: Documentation messages: 200749 nosy: chri

[issue19274] make zipfile.PyZipFile more usable

2013-10-21 Thread Christian Tismer
Christian Tismer added the comment: ah, I just see that. The problem was that the checkin drove me nuts. It forced me to run reindent to normalize the code. I did that with my WindIde editor, but this did not help. The point was: Actually an end-of-line was missing at the end of the files. Sorry,

[issue19328] Improve PBKDF2 documentation

2013-10-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19327] re doesn't work with big charsets

2013-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have encountered this bug when writing test for for fragment of my large patch which cleanups and optimize the re module (it is too large to be committed all at once). -- ___ Python tracker

[issue10977] Concrete object C API considered harmful to subclasses of builtin types

2013-10-21 Thread Nick Coghlan
Nick Coghlan added the comment: Because calling them *from* method implementations in concrete subclasses is often a perfectly reasonable thing to do. -- ___ Python tracker ___ _

[issue13100] sre_compile._optimize_unicode() needs a cleanup

2013-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are a lot of dead or suboptimal code in the re module. For example _sre.CODESIZE now can't be 2. We could cleanup the code as side effect of optimization. -- nosy: +serhiy.storchaka ___ Python tracker

[issue19170] telnetlib: use selectors

2013-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset f713d9b6393c by Charles-François Natali in branch 'default': Issue #19170: telnetlib: use selectors. http://hg.python.org/cpython/rev/f713d9b6393c -- nosy: +python-dev ___ Python tracker

[issue19329] Faster compiling of big charset regexpes

2013-10-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which speed up compiling of regular expressions with big charsets. Microbenchmark: $ ./python -m timeit "from sre_compile import compile; r = '[%s]' % ''.join(map(chr, range(256, 2**16, 255)))" "compile(r, 0)" Unpatched (but with fixed is

[issue19329] Faster compiling of big charset regexpes

2013-10-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +re doesn't work with big charsets ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18931] new selectors module should support devpoll on Solaris

2013-10-21 Thread Charles-François Natali
Charles-François Natali added the comment: Just to let you know that I'm not forgetting this issue. I'd just like to iron-out issue #19172 (keys()-like method for selectors), since it could impact the API, to avoid repeated refactoring. -- ___ Python

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

2013-10-21 Thread Charles-François Natali
Charles-François Natali added the comment: Gregory, did you make any progress on this? I think it would be a nice addition. -- ___ Python tracker ___

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

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: Indeed! I'd like to see the feature in 3.4 so I can remove my own hack from our code base. -- ___ Python tracker ___

[issue18603] PyOS_mystricmp unused and no longer available

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: ping RMs -- nosy: +benjamin.peterson, georg.brandl, larry ___ Python tracker ___ ___ Python-bugs-l

[issue17791] PC/pyconfig.h defines PREFIX macro

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: ping RMs and Windows devs -- nosy: +brian.curtin, larry, tim.golden ___ Python tracker ___ ___ Pyt

[issue17913] stat.filemode returns "-" for sockets and unknown types

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: The C code in Python 3.4's _stat.c module already handle unsupported types correctly. I'm going to apply my patch to the Python implementation in 2.7, 3.3 and 3.4 soonish. Or is somebody against a fix of 2.7 and 3.3? -- _

[issue18369] X509 cert class for ssl module

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: Bump up my priority. I'd like to get the feature into 3.4 as a foundation for some of my other improvements of the SSL module. -- assignee: -> christian.heimes priority: normal -> high stage: -> patch review ___

[issue17123] Add OCSP support to ssl module

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: I won't have time for a proper implementation for 3.4. Defer to 3.5 -- versions: +Python 3.5 -Python 2.6, Python 2.7, Python 3.4 ___ Python tracker __

[issue17006] Warn users about hashing secrets?

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: Who likes to step in? Alex? -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue1540] Refleak tests: test_doctest and test_gc are failing

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: ping :) -- versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue16175] Add I/O Completion Ports wrapper

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: Is this patch still of relevance for asyncio? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue16500] Add an 'atfork' module

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: Richard, do you have time to get your patch ready for 3.4? -- assignee: christian.heimes -> ___ Python tracker ___ __

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset dad1debba93c by Charles-François Natali in branch 'default': Fix test_pydoc failure introduced by 2f09a6980e1a (issue #19030). http://hg.python.org/cpython/rev/dad1debba93c -- ___ Python tracker

[issue16175] Add I/O Completion Ports wrapper

2013-10-21 Thread Richard Oudkerk
Richard Oudkerk added the comment: > Is this patch still of relevance for asyncio? No, the _overlapped extension contains the IOCP stuff. -- ___ Python tracker ___ _

[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-21 Thread Charles-François Natali
Charles-François Natali added the comment: > Christian Heimes added the comment: > > I think it's more likely that my patch is triggering an existing bug. The > locking code for the SSL module and OpenSSL doesn't release locks on fork. I > have attached an experimental patch that unlocks all lo

[issue19217] Calling assertEquals for moderately long list takes too long

2013-10-21 Thread Jacek Bzdak
Jacek Bzdak added the comment: The patch works for me, thanks Ezio! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-21 Thread Charles-François Natali
Charles-François Natali added the comment: I took the freedom to push a fix for the test_pydoc failures (all the buildbots were red). It should fix the failures, but since I'm not familiar with the code, it'd be good to have someone double-check it. Ethan, you just broke all the buildbots: you

[issue16175] Add I/O Completion Ports wrapper

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: Thanks, I'm closing this ticket. -- resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue16500] Add an 'atfork' module

2013-10-21 Thread Richard Oudkerk
Richard Oudkerk added the comment: > Richard, do you have time to get your patch ready for 3.4? Yes. But we don't seem to have concensus on how to handle exceptions. The main question is whether a failed prepare callback should prevent the fork from happenning, or just be printed. -

[issue1540] Refleak tests: test_doctest and test_gc are failing

2013-10-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Is the error still current? io.StringIO is now completely implemented in _io/textio.c, and should not have any Python-level __del__. -- ___ Python tracker ___

[issue1540] Refleak tests: test_doctest and test_gc are failing

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: I don't know ... Is somebody able to test it? -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue16500] Add an 'atfork' module

2013-10-21 Thread Dwayne Litzenberger
Dwayne Litzenberger added the comment: > The main question is whether a failed prepare callback should prevent the > fork from happenning Yes, I think an exception should prevent the fork from happening. It's fail-safe for the PRNG case (you can guarantee that a fork won't occur without prope

[issue16500] Add an 'atfork' module

2013-10-21 Thread Christian Heimes
Christian Heimes added the comment: +1 for exception prevents fork -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue16500] Add an 'atfork' module

2013-10-21 Thread Charles-François Natali
Charles-François Natali added the comment: I have a couple random remarks: - now that FDs are non-inheritable by default, fork locks around subprocess and multiprocessing shouldn't be necessary anymore? What other use cases does the fork-lock have? - the current implementation keeps hard-referenc

[issue16500] Add an 'atfork' module

2013-10-21 Thread STINNER Victor
STINNER Victor added the comment: "now that FDs are non-inheritable by default, fork locks around subprocess and multiprocessing shouldn't be necessary anymore? What other use cases does the fork-lock have?" Well, on Windows, it's still not possible to inherit only one handle. If you mark tempo

[issue19302] Add support for AIX pollset efficient event I/O polling

2013-10-21 Thread David Edelsohn
David Edelsohn added the comment: CF, Pre-built binaries of Python for AIX are available on the Bull Freeware and Perzl sites of Open Source Software for AIX. The "GetIt" page should be updated and the packages can be made available through python.org Other parts of your reasoning are somewha

[issue19330] Use public classes for contextlib.suppress and redirect_stdout

2013-10-21 Thread Nick Coghlan
New submission from Nick Coghlan: I broke help() for instances of these context managers by trying to postpone exposing the class APIs until 3.5 (and didn't even record my full rationale, however flawed, in the associated comments). The wrapper functions should be removed, making the classes t

[issue19331] Revise PEP 8 recommendation for class names

2013-10-21 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: PEP 8 says: """ Class Names Almost without exception, class names use the CapWords convention. Classes for internal use have a leading underscore in addition. """ yet there are some notable exceptions in practice, such as classes designed to be context man

[issue19331] Revise PEP 8 recommendation for class names

2013-10-21 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: -> barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19332] Guard against changing dict during iteration

2013-10-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently dict iterating is guarded against changing dict's size. However when dict changed during iteration so that it's size left unchanged, this modification left unnoticed. >>> d = dict.fromkeys('abcd') >>> for i in d: ... print(i) ... d[i + 'x

[issue19333] distutils.util.grok_environment_error loses the error message

2013-10-21 Thread Marius Gedminas
New submission from Marius Gedminas: Steps to reproduce: $ python -c 'from distutils.util import grok_environment_error as e; print(e(IOError("message")))' What I expect to see: error: message What I get instead: error: None This is a problem because it hides the error message in a real-life

[issue19302] Add support for AIX pollset efficient event I/O polling

2013-10-21 Thread Charles-François Natali
Charles-François Natali added the comment: > Other parts of your reasoning are somewhat circular because most of the > problems on AIX are Linux-isms (or BSD-isms where BSD has not yielded to > Linux behavior). So you argue against adding lots of AIX-specific code, yet > fixing some of the tes

[issue19331] Revise PEP 8 recommendation for class names

2013-10-21 Thread Paul Moore
Paul Moore added the comment: How about simply adding a further sentence, something like: "Where a class is being used conceptually as a callable (for example, context managers), the naming convention for callables (lower_case_with_underscores) should be followed." Maybe also add a section at

[issue19270] sched.cancel() breaks events order

2013-10-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: This module has been around for a long time and no users have reported any issues with respect to event ordering. The logic is essentially the same as is used in popular event loops like Tornado. Please don't just make-up a new invariant for this module.

[issue16500] Add an 'atfork' module

2013-10-21 Thread Richard Oudkerk
Richard Oudkerk added the comment: > - now that FDs are non-inheritable by default, fork locks around > subprocess and multiprocessing shouldn't be necessary anymore? What > other use cases does the fork-lock have? CLOEXEC fds will still be inherited by forked children. > - the current implemen

[issue19293] test_asyncio hanging for 1 hour (AIX version, hangs in test_subprocess_interactive)

2013-10-21 Thread Guido van Rossum
Guido van Rossum added the comment: OK, I've created issue 19334 to track test_asyncio hangs on other platforms. Let's please keep this issue restricted to AIX. I am aware of the following issue: - select for read on the write end of a pipe returns immediately Any other AIX issues also please

[issue13451] sched.py: speedup cancel() method

2013-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In updated patch I have reverted queue optimization (this should be separated issue) and made some minor changes. -- Added file: http://bugs.python.org/file32280/cancel_4a.patch ___ Python tracker

  1   2   3   >