[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread Gareth Rees
Gareth Rees added the comment: > benchmarks show it to be more than twice as fast I'm sure they do, but other benchmarks show it to be more than twice as slow. Try something like: iterables = [range(100)] + [()] * 100 -- nosy: +Gareth.Rees ___

[issue19903] Idle: Use inspect.signature for calltips

2014-02-24 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue17373] Add inspect.Signature.from_callable()

2014-02-24 Thread Yury Selivanov
Changes by Yury Selivanov : -- assignee: -> yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2014-02-24 Thread Yury Selivanov
Yury Selivanov added the comment: Is this still an issue? -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-24 Thread Sean Rodman
Sean Rodman added the comment: I could try to create the patch for pydoc if you would like for me to. -- nosy: +sean.rodman ___ Python tracker ___ ___

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-24 Thread Sean Rodman
Sean Rodman added the comment: To display my ignorance, I have run the pydoc command listed in the original message but I can't actually see where it lists the url. Or even where it has a link. -- ___ Python tracker

[issue20457] Use partition and enumerate make getopt easier

2014-02-24 Thread dongwm
dongwm added the comment: Oh, really no big improvement in function, but I have been using the functionality provided by python. -- ___ Python tracker ___ __

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-24 Thread Yukihiro Nakadaira
New submission from Yukihiro Nakadaira: Steps to reproduce: $ cat a.py import sys class MyFinder: def __init__(self, path): if path != "__myfinder__": raise ImportError() def find_module(self, fullname, path=None): return None sys.path_hooks.append(MyFinder

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-24 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-24 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20764] os.walk recurses down even with dirnames deleted

2014-02-24 Thread Sworddragon
New submission from Sworddragon: The following was tested on Linux. In the attachments is the example code and here is my output: sworddragon@ubuntu:/tmp$ ./test.py 1 I'm deleting the list of directories on every recursion and skipping if I'm directly in /proc (which is theoretically already

[issue20765] Pathlib docs fail to mention with_name, with_suffix

2014-02-24 Thread Antony Lee
New submission from Antony Lee: I actually thought that Path.with_{name,suffix} had been removed before 3.4 when I didn't find them in the official docs... -- assignee: docs@python components: Documentation messages: 212160 nosy: Antony.Lee, docs@python priority: normal severity: normal

[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread David Lindquist
David Lindquist added the comment: > other benchmarks show it to be more than twice as slow Can you share the method you used to get those results? Here's what I did: $ python -m timeit --number=100 --setup="from rr_mine import roundrobin" "its = ['ABC', 'D', 'EF']; list(roundrobin(*its))"

[issue20457] Use partition and enumerate make getopt easier

2014-02-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I recommend we leave the code alone. No need for code churn unless there is a real improvement in code quality. -- ___ Python tracker ___ _

[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: > At this stage of the Py3 life cycle, though, > it seems simpler overall to remain consistent > with earlier Py3 releases. Given that so few users have converted, it is simpler to become consistent with Py2.7 and to not introduce compensating features. ---

[issue20764] os.walk recurses down even with dirnames deleted

2014-02-24 Thread Ned Deily
Ned Deily added the comment: I think you are misunderstanding how del and mutable sequences work. In your code snippet, the del unbinds the name "root_dir" but it does not alter the dirnames list object returned by os.path. Try replacing "del root_dir" with "del root_dir[:]" or "root_dir.cle

[issue20765] Pathlib docs fail to mention with_name, with_suffix

2014-02-24 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-24 Thread Christian Heimes
Christian Heimes added the comment: I just came across https://www.trustedsec.com/february-2014/python-remote-code-execution-socket-recvfrom_into/ . Now I wonder why this bug was neither reported to PSRT nor get a CVE number. It's a buffer overflow... I'm going to contact MITRE right away. -

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: Branch status: Vulnerable (last release prior to patch): 2.7.6 3.1.5 3.2.5 Fixed (latest release post patch): 3.3.4+ 3.4 So my reading is that 2.7.7 needs to be brought forward, and source only releases of 3.1.6 and 3.2.6 should be published

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: Confirming the fix is in the 3.3.4 tag: http://hg.python.org/cpython/file/7ff62415e426/Lib/test/test_socket.py#l4539 And the 3.4rc1 tag: http://hg.python.org/cpython/file/5e088cea8660/Lib/test/test_socket.py#l4708 -- ___

<    1   2