[issue1191964] asynchronous Subprocess

2014-04-05 Thread Josiah Carlson
Josiah Carlson added the comment: All of the standard tests plus another few that I added all pass on Windows and Linux. I've got some cleanup and a couple more tests to add tomorrow, then I'll post a patch. I ended up not using any overlapped IO cancellation in the Windows variant of

[issue21116] Failure to create multiprocessing shared arrays larger than 50% of memory size under linux

2014-04-05 Thread Charles-François Natali
Charles-François Natali added the comment: Indeed, I think it would make sense to consider this for 3.4, and even 2.7 if we opt for a simple fix. As for the best way to fix it in the meantime, I'm fine with a buffered zero-filling (the mere fact that noone ever complained until now probably

[issue21136] fractions.Fraction.__pow__ does unneeded renormalization

2014-04-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 91d7fadac271 by Mark Dickinson in branch 'default': Issue #21136: Avoid unnecessary normalization in Fractions resulting from power and other operations. http://hg.python.org/cpython/rev/91d7fadac271 -- nosy: +python-dev

[issue21136] fractions.Fraction.__pow__ does unneeded renormalization

2014-04-05 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21136 ___

[issue21136] fractions.Fraction.__pow__ does unneeded renormalization

2014-04-05 Thread Mark Dickinson
Mark Dickinson added the comment: Applied. I added an extra test for the `Fraction(0, 1) ** 2` case. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21136

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9acc8196a82c by Victor Stinner in branch 'default': Issue #21118: Remove unused variable http://hg.python.org/cpython/rev/9acc8196a82c New changeset bd594dd71d46 by Victor Stinner in branch 'default': Issue #21118: Add more unit tests on

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset cca6b056236a by Victor Stinner in branch 'default': Issue #21118: Optimize str.translate() for ASCII = ASCII translation http://hg.python.org/cpython/rev/cca6b056236a New changeset 6a347c0ffbfc by Victor Stinner in branch 'default': Issue #21118:

[issue14576] IDLE: IDLE's subprocess didn't make connection.Either IDLE can't start a subprocess or personal firewall software is blocking the connection.

2014-04-05 Thread Divyanshu Sharma
Divyanshu Sharma added the comment: I found the root cause for the error regarding python in my pc that shows the error message IDLE's subprocess didn't make connection.Either IDLE can't start a subprocess or personal firewall software is blocking the connection. It was caused due to a

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2014-04-05 Thread Claudiu.Popa
New submission from Claudiu.Popa: The error message from the title is not very intuitive from a user point of view. For instance, in the following traceback, only the first one gives a meaning to this error, through the leaked KeyError, thus the user knows that home_dir1 is invalid and

[issue19546] configparser leaks implementation detail

2014-04-05 Thread Claudiu.Popa
Claudiu.Popa added the comment: I've created a new issue for the InterpolationMissingOptionError message, issue21159. This issue can be closed. -- resolution: - 3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19546

[issue19546] configparser leaks implementation detail

2014-04-05 Thread Claudiu.Popa
Claudiu.Popa added the comment: Ups, sorry for the change of resolution. -- resolution: 3rd party - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19546 ___

[issue21160] incorrect comments in nturl2path.py

2014-04-05 Thread Jurko Gospodnetić
New submission from Jurko Gospodnetić: nturl2path.py module contains comments implying that it converts local paths to URLs with ':' characters replaced with '|'. This has not been true since Python 2.6. Commit at:

[issue15582] Enhance inspect.getdoc to follow inheritance chains

2014-04-05 Thread Claudiu.Popa
Claudiu.Popa added the comment: Yury, Nick, how is my latest patch? -- Added file: http://bugs.python.org/file34733/issue15582_1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15582 ___

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: fast_translate.patch works only with ASCII input string and ASCII 1:1 mapping. Is this actually typical case? Here is a patch which uses different approach. It caches values for ASCII keys. It works with all types of input strings and mappings and can speed

[issue21161] list comprehensions don't see local variables in pdb in python3

2014-04-05 Thread Kay
New submission from Kay: Using generators in pdb are very handy but since Python3 they don't work properly. For example: import pdb def foo(): items = [1, 2, 3] limit = 5 pdb.set_trace() foo() in pdb prompt the following fails: (pdf) all(x limit for x in items) *** NameError: global

[issue21153] bdist_rpm fails if project contains files with spaces in the names

2014-04-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: My last version of the repo script would have worked had I coded it correctly. The line-by-line substitution was broken, not taking into account the newline character. This new script demonstrates that quoting each file works - simply run the script with

[issue21161] list comprehensions don't see local variables in pdb in python3

2014-04-05 Thread Kay
Changes by Kay straitsai...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21161 ___ ___ Python-bugs-list mailing

[issue809163] Can't add files with spaces under bdist_rpm

2014-04-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: In issue21153, I explored this problem as well, before being aware of this issue. I had searched for bdist_rpm. I've since confirmed that the sed approach is viable. For example, the following works around the issue by overriding the install_script with the

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47b0c076e17d by Victor Stinner in branch 'default': Issue #21118: Optimize also str.translate() for ASCII = ASCII deletion http://hg.python.org/cpython/rev/47b0c076e17d -- ___ Python tracker

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-05 Thread STINNER Victor
STINNER Victor added the comment: Serhiy wrote: fast_translate.patch works only with ASCII input string and ASCII 1:1 mapping. Is this actually typical case? I just checked the Python stdlib: as expected, all usages of str.translate() except of email.quoprimime use ASCII 1:1. My optimization

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Previous patch and results were against source code before committing fast_translate.patch. Here is a patch synchronized with current code. translate_timing.py results: unpatched patched Testing 1-1 translation

[issue809163] Can't add files with spaces under bdist_rpm

2014-04-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: I decided to test my proposition. It seems that simply specifying / for %files leads to the RPM including parent directories. Here's the output I get when running my test with the sed workaround: $ rpm -q -filesbypkg -p

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-05 Thread STINNER Victor
STINNER Victor added the comment: bench_translate.py: benchmark ASCII 1:1 but also ASCII 1:1 with deletion. Results of the benchmark comparing tip (47b0c076e17d which includes my latest optimization on deletion) and 6a347c0ffbfc + translate_cached_2.patch. Common platform: Python unicode

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2014-04-05 Thread R. David Murray
R. David Murray added the comment: Another problem with that error message is that it seems confusing as to where the bad value *reference* came from, given that rawval doesn't seem to include any interpolation point. -- nosy: +r.david.murray ___

[issue19546] configparser leaks implementation detail

2014-04-05 Thread R. David Murray
R. David Murray added the comment: I've been thinking about this more, and I think I will revise my opinion. I haven't been able to think of a place where knowing that the key is missing in self._sections would in fact be helpful to a programmer using the module. So I'm OK with this being

[issue21161] list comprehensions don't see local variables in pdb in python3

2014-04-05 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21161 ___ ___

[issue21111] PyLong_AsUnsignedLongAndOverflow does not exist

2014-04-05 Thread Hristo Venev
Hristo Venev added the comment: Please apply in 3.4.1. I need this ASAP. -- versions: +Python 3.4 -Python 3.5 Added file: http://bugs.python.org/file34738/a ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset e56c71c6b45e by Victor Stinner in branch 'default': Issue #21118: str.translate() now raises a ValueError, not a TypeError, if the http://hg.python.org/cpython/rev/e56c71c6b45e -- ___ Python tracker

[issue21111] PyLong_AsUnsignedLongAndOverflow does not exist

2014-04-05 Thread STINNER Victor
STINNER Victor added the comment: Please apply in 3.4.1. I need this ASAP. New functions are new features, and new features are no more added after a release (ex: 3.4.0). If something is changed, it will done in Python 3.5. You can add PyLong_AsUnsigned*AndOverflow() functions to your

[issue18478] Class bodies: when does a name become local?

2014-04-05 Thread Nitika Agarwal
Nitika Agarwal added the comment: Hi, I have attached the patch for the issue.Please someone review my patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18478 ___

[issue4744] asynchat documentation needs to be more precise

2014-04-05 Thread Nitika Agarwal
Nitika Agarwal added the comment: Hi, I hvae attached the patch for review.I am waiting for reviewal.Please review the attached patch as soon as possible. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4744

[issue16927] Separate built-in types from functions and group similar functions in functions.rst

2014-04-05 Thread Nitika Agarwal
Nitika Agarwal added the comment: @Ezio Melotti Please see if this is what you wanted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16927 ___

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: субота, 05-кві-2014 12:49:22 ви написали: STINNER Victor added the comment: Serhiy wrote: fast_translate.patch works only with ASCII input string and ASCII 1:1 mapping. Is this actually typical case? I just checked the Python stdlib: as expected, all

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you plan to backport bug fixes to 3.3 and 2.7? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21118 ___

[issue19655] Replace the ASDL parser carried with CPython

2014-04-05 Thread Eli Bendersky
Eli Bendersky added the comment: Nick, it shouldn't be hard to drop to 3.3, but I'm curious why would the 3.4 requirement break Fedora, or anything for that matter? Does Fedora regenerate the C implementation of the AST for some reason on every build? AFAIU, building Python from source with

[issue21111] PyLong_AsUnsignedLongAndOverflow does not exist

2014-04-05 Thread Hristo Venev
Hristo Venev added the comment: Will you release 3.5 in the next few weeks? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2 ___ ___

[issue19655] Replace the ASDL parser carried with CPython

2014-04-05 Thread Nick Coghlan
Nick Coghlan added the comment: It won't break the build, but requiring 3.4 to be installed (rather than 3.3) makes it more annoying for me (and other Fedora users) to work on the compiler before F21 is released :) -- ___ Python tracker

[issue19655] Replace the ASDL parser carried with CPython

2014-04-05 Thread Larry Hastings
Larry Hastings added the comment: I was told to keep Argument Clinic compatible with 3.3. I think it's a good idea for the tools to not require absolutely current Python. Would it be a big deal to support 3.3? -- ___ Python tracker

[issue19316] devguide: compiler - wording

2014-04-05 Thread Nitika Agarwal
Nitika Agarwal added the comment: Hi, I have attached the patch.Please review the patch attached. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19316 ___

[issue18566] In unittest.TestCase docs for setUp() and tearDown() don't mention AssertionError

2014-04-05 Thread Nitika Agarwal
Nitika Agarwal added the comment: Hi, Please review the patch attached. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18566 ___ ___

[issue21111] PyLong_AsUnsignedLongAndOverflow does not exist

2014-04-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: No -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2 ___ ___ Python-bugs-list

[issue21162] code in multiprocessing.pool freeze if inside some code from scikit-learn (and probably liblinear) executed on ubuntu 12.04 64 Bit

2014-04-05 Thread Ivan K
New submission from Ivan K: Here is a code. https://gist.github.com/anonymous/9994217 When I run it in freeze and never end. If I run it without pool with loop or joblib - it works fine. Also there is a question on stackoverflow: http://stackoverflow.com/q/22881850/1888017 Python

[issue19546] configparser leaks implementation detail

2014-04-05 Thread Łukasz Langa
Łukasz Langa added the comment: FWIW I agree with Claudiu that the internal exceptions are an implementation detail. If we ever made, say, a SQLite-based or memcache-based configparser, those would be different, but the external API would stay the same. Will fix. --

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2014-04-05 Thread Łukasz Langa
Łukasz Langa added the comment: Those exception messages are really old. I agree we should fix them, we have to think about possible compatibility breakage though. I'll look into it. -- assignee: - lukasz.langa nosy: +lukasz.langa stage: - needs patch

[issue21162] code in multiprocessing.pool freeze if inside some code from scikit-learn (and probably liblinear) executed on ubuntu 12.04 64 Bit

2014-04-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21162 ___ ___ Python-bugs-list mailing list

[issue10769] ast: provide more useful range information

2014-04-05 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10769 ___ ___ Python-bugs-list

[issue21161] list comprehensions don't see local variables in pdb in python3

2014-04-05 Thread Kay
Changes by Kay straitsai...@gmail.com: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21161 ___ ___ Python-bugs-list mailing

[issue16927] Separate built-in types from functions and group similar functions in functions.rst

2014-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think 'Builtin-in Types' should probably be 'Built-in Classes' as there is no longer any difference between types and classes. Note that after the unification, we added 'issubclass', not 'issubtype'. type should at least be listed under types/classes. The

[issue18478] Class bodies: when does a name become local?

2014-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: After seeing my suggestion applied, I decided I don't like it. Sorry. A 'function code block' is a 'function suite'. A deeper problem is that the revision now omits the rules for classes. The base problem is that I don't know what the rules are when classes

[issue21161] list comprehensions don't see local variables in pdb in python3

2014-04-05 Thread Georg Brandl
Georg Brandl added the comment: Your failure appears to be not pasted from an interpreter session; the actual failure is: (Pdb) all(x limit for x in items) *** NameError: global name 'limit' is not defined (i.e. limit is not found, not items). This actually does not work in Python 2

[issue21044] tarfile does not handle file .name being an int

2014-04-05 Thread Antoine Pietri
Antoine Pietri added the comment: Well, that seems complicated: you can't overwrite a io.FileIO().name attribute, and doing so would be nonsensical for tarfile, which would try to perform IO operations on a random file descriptor... Also, I can't think of any case where a .name attribute

[issue13781] gzip module does the wrong thing with an os.fdopen()'ed fileobj

2014-04-05 Thread Antoine Pietri
Antoine Pietri added the comment: Actually, thinking about it, it seems safer to use os.open() + os.fdopen() than TemporaryFile(), like in the equivalent test for 'gzip'. This new patch replaces last one. -- nosy: +seirl Added file:

[issue13781] gzip module does the wrong thing with an os.fdopen()'ed fileobj

2014-04-05 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- Removed message: http://bugs.python.org/msg215627 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13781 ___

[issue21156] Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader

2014-04-05 Thread Eric Snow
Eric Snow added the comment: source_to_code() seems like a good fit on InspectLoader to me. Is there something in particular that motivated the idea of moving it up to Loader? -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org

[issue20383] Add a keyword-only spec argument to types.ModuleType

2014-04-05 Thread Eric Snow
Eric Snow added the comment: Sounds good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20383 ___ ___ Python-bugs-list mailing list

[issue13781] gzip module does the wrong thing with an os.fdopen()'ed fileobj

2014-04-05 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file34740/test_tarfile_fdopen.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13781 ___

[issue21044] tarfile does not handle file .name being an int

2014-04-05 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Added file: http://bugs.python.org/file34740/test_tarfile_fdopen.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21044 ___

[issue16927] Separate built-in types from functions and group similar functions in functions.rst

2014-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I don't think we should separate built-in types from built-in functions. Tools like str(x) and int(x) are frequently used as if there were functions. Tools like iter(x) and open(x) could be viewed as constructors. Tools like type(x) are both a

[issue16927] Separate built-in types from functions and group similar functions in functions.rst

2014-04-05 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- versions: -Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16927 ___

[issue21156] Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader

2014-04-05 Thread Brett Cannon
Brett Cannon added the comment: The inspiration was that I realized there was no technical reason to have it on InspectLoader. Past that there was my thinking of trying to come up with a source_to_module() method on importlib.abc.Loader which would do the right thing with create_module() and

[issue21044] tarfile does not handle file .name being an int

2014-04-05 Thread eryksun
eryksun added the comment: you can't overwrite a io.FileIO().name attribute A FileIO instance uses a dict for 'name' (msg214670): vars(sys.stdin.buffer.raw) {'name': 'stdin'} f = tempfile.TemporaryFile() vars(f.raw) {'name': 3} The name is optional meta-information.

[issue21163] asyncio Task Possibly Incorrectly Garbage Collected

2014-04-05 Thread Richard Kiss
New submission from Richard Kiss: Some tasks created via asyncio are vanishing because there is no reference to their resultant futures. This behaviour does not occur in Python 3.3.3 with asyncio-0.4.1. Also, doing a gc.collect() immediately after creating the tasks seems to fix the problem.

[issue21163] asyncio Task Possibly Incorrectly Garbage Collected

2014-04-05 Thread Richard Kiss
Changes by Richard Kiss h...@richardkiss.com: -- hgrepos: -231 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21163 ___ ___ Python-bugs-list

[issue21163] asyncio task possibly incorrectly garbage collected

2014-04-05 Thread Richard Kiss
Changes by Richard Kiss h...@richardkiss.com: -- title: asyncio Task Possibly Incorrectly Garbage Collected - asyncio task possibly incorrectly garbage collected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21163

[issue16927] Separate built-in types from functions and group similar functions in functions.rst

2014-04-05 Thread Ezio Melotti
Ezio Melotti added the comment: Tools like str(x) and int(x) are frequently used as if there were functions. The description of each object already mentions the function/type duality, and links to https://docs.python.org/3/library/stdtypes.html. If they are grouped together, a paragraph like

[issue19655] Replace the ASDL parser carried with CPython

2014-04-05 Thread Eli Bendersky
Eli Bendersky added the comment: Updated patch attached: 1. Python 3.3+ supported (I suspect 3.2 will work too) 2. Incorporated Serhiy's suggestions (thanks for the review!) -- Added file: http://bugs.python.org/file34742/new-asdl-parser.issue19655.2.patch

[issue16927] Separate built-in types from functions and group similar functions in functions.rst

2014-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: This include two main groups that should be separated in two different sections: built-in types and functions. I forgot to mention that the docs have already been organized to cover the two groups. Section 3.2 has the built-in functions and Section 3.4

[issue21163] asyncio task possibly incorrectly garbage collected

2014-04-05 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21163 ___

[issue21156] Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader

2014-04-05 Thread Eric Snow
Eric Snow added the comment: Now that I've thought about it a little more, I'm more open to the idea. Source is definitely a universal concept in Python, as is code. So source_to_code() makes some sense on a most-base type like Loader. On the other hand, source isn't necessarily associated

[issue21163] asyncio task possibly incorrectly garbage collected

2014-04-05 Thread Guido van Rossum
Guido van Rossum added the comment: Ouch. That example is very obfuscated -- I fail to understand what it is trying to accomplish. Running it I see that it always prints 100 for the count with 3.3 or DO_CG on; for me it prints 87 with 3.4 an DO_GC off. But I wouldn't be surprised if the

[issue16927] Separate built-in types from functions and group similar functions in functions.rst

2014-04-05 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: ezio.melotti - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16927 ___

[issue21163] asyncio task possibly incorrectly garbage collected

2014-04-05 Thread Richard Kiss
Richard Kiss added the comment: I agree it's confusing and I apologize for that. Background: This multiplexing pattern is used in pycoinnet, a bitcoin client I'm developing at https://github.com/richardkiss/pycoinnet. The BitcoinPeerProtocol class multiplexes protocol messages into multiple

[issue21163] asyncio task possibly incorrectly garbage collected

2014-04-05 Thread Guido van Rossum
Guido van Rossum added the comment: Most likely your program is simply relying on undefined behavior and the right way to fix it is to keep strong references to all tasks until they self-destruct. -- ___ Python tracker rep...@bugs.python.org

[issue16927] Separate built-in types from functions and group similar functions in functions.rst

2014-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Nikita, your additional dispatch table looks like a reasonable addition. I'll wait on additional commentary before pushing it forward 1 should be especially useful to people that are new to the language Ezio, please take care not to conflate the role of

[issue21163] asyncio task possibly incorrectly garbage collected

2014-04-05 Thread Richard Kiss
Richard Kiss added the comment: I'll investigate further. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21163 ___ ___ Python-bugs-list mailing

[issue16927] Separate built-in types from functions and group similar functions in functions.rst

2014-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would be happy enough to just add a second index section, with short annotations or commentaries about the categories -- nitika's patch with sentences added. I would put it after the current table, and not box the links. Short example: The following

[issue16927] Separate built-in types from functions and group similar functions in functions.rst

2014-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Terry, I concur. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16927 ___ ___ Python-bugs-list mailing list

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-05 Thread Ned Deily
Ned Deily added the comment: test_default_ecdh_curve is failing on current OS X systems (10.9 Mavericks and 10.8 Mountain Lion, at least) using the system-supplied OpenSSL libraries: == ERROR: test_default_ecdh_curve

[issue21163] asyncio task possibly incorrectly garbage collected

2014-04-05 Thread Richard Kiss
Richard Kiss added the comment: You were right: adding a strong reference to each Task seems to have solved the original problem in pycoinnet. I see that the reference to the global lists of asyncio.tasks is a weakset, so it's necessary to keep a strong reference myself. This does seem a

[issue21163] asyncio task possibly incorrectly garbage collected

2014-04-05 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for understanding. It's definitely subtle: there is also some code in asyncio that logs an error when a Future holding an exception becomes unreachable before anyone has asked for it; this has been a valuable debugging tool, and it depends on *not*

[issue20383] Add a keyword-only spec argument to types.ModuleType

2014-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Would allow for the name attribute to be optional ... with the idea that sometime in the future we can deprecate pulling attributes from a module directly Is there any chance that this would ever happen? The __name__ attribute has been around almost

[issue20383] Add a keyword-only spec argument to types.ModuleType

2014-04-05 Thread Eric Snow
Eric Snow added the comment: I made roughly the same point in the current import-sig thread that relates here: https://mail.python.org/pipermail/import-sig/2014-April/000805.html Basically, I agree we should be careful with both __name__ and __file__. --