[issue19237] Proposal : LCM function to complement GCD

2013-10-12 Thread CliffM
New submission from CliffM: While implementing a Least-Common-Multiple function (LCM), I noticed that although python has a Greatest-Common-Divisor (GCD) function in the fractions module, the LCM, its counterpart is not there. I've attached a patch which implements and tests LCM in the fractio

[issue18891] Master patch for content manager addtion to email package.

2013-10-12 Thread R. David Murray
R. David Murray added the comment: Updated patch to address Serhiy's review comments. Also noticed a bug and fixed it, adding a new 'is_attachment' attribute to EmailMessage/MIMEPart to do so. -- Added file: http://bugs.python.org/file32069/master_content_manager.patch __

[issue18582] PBKDF2 support

2013-10-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch looks good at first sight. It still needs docs and tests :) Just one thing: are we sure PKCS5_PBKDF2_HMAC is defined on old OpenSSL versions, or does it need a #ifdef? -- ___ Python tracker

[issue18281] tarfile defines stat constants

2013-10-12 Thread Christian Heimes
Christian Heimes added the comment: Yes, please commit your patch. I totally wanted to reply to your mail but I was distracted by other things. Sorry! -- ___ Python tracker ___

[issue18582] PBKDF2 support

2013-10-12 Thread Christian Heimes
Changes by Christian Heimes : Removed file: http://bugs.python.org/file31067/pbkdf2.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18582] PBKDF2 support

2013-10-12 Thread Christian Heimes
Christian Heimes added the comment: Here is a new patch with tests, documentation and some minor improvements. The last argument is now called dklen. If dklen is omitted or None than dklen is set to digest size of the hash algorithm. -- Added file: http://bugs.python.org/file32070/pbkd

[issue9951] introduce bytes.hex method

2013-10-12 Thread Christian Heimes
Christian Heimes added the comment: I like to see the feature in 3.4, too. -- nosy: +christian.heimes stage: -> patch review ___ Python tracker ___ __

[issue18582] PBKDF2 support

2013-10-12 Thread Christian Heimes
Christian Heimes added the comment: Fixed copy n' paste bug in docs. -- Added file: http://bugs.python.org/file32071/pbkdf2_3.patch ___ Python tracker ___ ___

[issue18582] PBKDF2 support

2013-10-12 Thread Christian Heimes
Changes by Christian Heimes : Removed file: http://bugs.python.org/file32064/pbkdf2_2.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue18582] PBKDF2 support

2013-10-12 Thread Christian Heimes
Changes by Christian Heimes : Removed file: http://bugs.python.org/file32070/pbkdf2_3.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue9951] introduce bytes.hex method

2013-10-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: If it's the reverse of fromhex(), perhaps we should call it tohex()? -- nosy: +pitrou ___ Python tracker ___

[issue18281] tarfile defines stat constants

2013-10-12 Thread Ethan Furman
Ethan Furman added the comment: Cool, thanks! I didn't want to step on any toes. :) -- ___ Python tracker ___ ___ Python-bugs-list m

[issue19238] Misleading explanation of fill and align in format_spec

2013-10-12 Thread David Chambers
New submission from David Chambers: >From http://docs.python.org/3/library/string.html#formatspec: > The presence of a fill character is signaled by the character > following it, which must be one of the alignment options. If the > second character of format_spec is not a valid alignment option,

[issue9951] introduce bytes.hex method

2013-10-12 Thread Christian Heimes
Christian Heimes added the comment: Funny thing. I was searching for "tohex" when I found this ticket. -- ___ Python tracker ___ ___ Py

[issue19239] add inspect functions to

2013-10-12 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: ethan.furman priority: normal severity: normal status: open title: add inspect functions to ___ Python tracker ___

[issue19239] add inspect functions to retrieve attributes from both old dir() and overridden dir()

2013-10-12 Thread Ethan Furman
New submission from Ethan Furman: Currently we have - inspect.getmembers - inspect.classify_class_attrs But they only return what dir() returns. It is proposed that we add - inspect.get_all_members - inspect.classify_all_class_attrs which will look at all the attributes returned by b

[issue18582] PBKDF2 support

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5fd56d6d3fce by Christian Heimes in branch 'default': Issue #18582: Add 'pbkdf2_hmac' to the hashlib module. http://hg.python.org/cpython/rev/5fd56d6d3fce -- nosy: +python-dev ___ Python tracker

[issue18458] libedit history offset workaround

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e03fd72e116 by Ned Deily in branch '2.7': Issue #18458: Prevent crashes with newer versions of libedit. Its readline http://hg.python.org/cpython/rev/1e03fd72e116 New changeset dfb7cab9f819 by Ned Deily in branch '3.3': Issue #18458: Prevent crash

[issue18458] interactive interpreter crashes and test_readline fails with newer versions of libedit

2013-10-12 Thread Ned Deily
Ned Deily added the comment: Backported to 2.7 (for 2.7.6) and 3.3 (for 3.3.3) as well. The current test_readline already covers this case. -- keywords: -needs review resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed title: libedit history offset w

[issue19202] Additions to function docs: reduce and itertools.

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3b6401c27e39 by Raymond Hettinger in branch '3.3': Issue #19202: Add cross-reference and a rough code equivalent http://hg.python.org/cpython/rev/3b6401c27e39 -- nosy: +python-dev ___ Python tracker

[issue19202] Additions to function docs: reduce and itertools.

2013-10-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Georg. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-b

[issue18582] PBKDF2 support

2013-10-12 Thread Christian Heimes
Christian Heimes added the comment: Thanks Antoine! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue19237] Proposal : LCM function to complement GCD

2013-10-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19237] Proposal : LCM function to complement GCD

2013-10-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19238] Misleading explanation of fill and align in format_spec

2013-10-12 Thread Ned Deily
Changes by Ned Deily : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19218] Use of MutableMapping in os module slows down interpreter startup

2013-10-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Christian, go ahead an rearrange the collections module. Move Lib/collections/abc.py to Lib/_collections_abc.py. Also, be sure to update source link on line 18 of Doc/library.collections.abc.rst -- assignee: rhettinger -> christian.heimes

[issue19227] test_multiprocessing_xxx hangs under Gentoo buildbots

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 87f484679a39 by Richard Oudkerk in branch '3.3': Make test_terminate() succeed or fail quickly. http://hg.python.org/cpython/rev/87f484679a39 -- nosy: +python-dev ___ Python tracker

[issue19218] Use of MutableMapping in os module slows down interpreter startup

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0b6052f2a8ee by Christian Heimes in branch 'default': Issue #19218: Rename collections.abc to _collections_abc in order to speed up interpreter start http://hg.python.org/cpython/rev/0b6052f2a8ee New changeset 7ea831581af4 by Christian Heimes in br

[issue19219] speed up marshal.loads()

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a2b339b6b59 by Christian Heimes in branch 'default': Issue #19219: retval may be used uninitialized value http://hg.python.org/cpython/rev/2a2b339b6b59 -- ___ Python tracker

[issue19234] socket.fileno() documentation

2013-10-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, this should probably be documented as-is - or, if we want to change the behaviour, discussed on python-dev first. -- nosy: +pitrou ___ Python tracker _

[issue19218] Use of MutableMapping in os module slows down interpreter startup

2013-10-12 Thread Christian Heimes
Christian Heimes added the comment: Thank you very much for your input and assistance! tip compared to v3.4.0a3: ### normal_startup ### Min: 0.506533 -> 0.313627: 1.62x faster Avg: 0.582504 -> 0.441796: 1.32x faster Significant (t=19.98) Stddev: 0.02397 -> 0.04366: 1.8213x larger -- re

[issue18281] tarfile defines stat constants

2013-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3d557da59c22 by Ethan Furman in branch 'default': Close #18281: superfluous stat constants removed from tarfile http://hg.python.org/cpython/rev/3d557da59c22 -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejecte

[issue19240] iglob should try to use `readdir`

2013-10-12 Thread Miki Tebeka
New submission from Miki Tebeka: Currently glob.iglob calls os.listdir internally. Which means that if there are many files in the directory - a big list of them is created in memory. iglob should try to use readdir and be a "true" iterator, not consuming a lot of memory. See one possible imp

[issue4965] Can doc index of html version be separately scrollable?

2013-10-12 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file32072/issue4965-2.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue4965] Can doc index of html version be separately scrollable?

2013-10-12 Thread Ezio Melotti
Ezio Melotti added the comment: I stole the code from that page and adapted it to integrate better with sidebar.js (and make it a bit more efficient). To test the new patch, in the root of the clone, with the doc already built in Doc/build (no need to rebuild it), do: hg import --no-c http://b

[issue4965] Can doc index of html version be separately scrollable?

2013-10-12 Thread Ned Deily
Ned Deily added the comment: The patch seems to work well with both Safari 6.0.5 and Firefox 25.0 on OS X 10.8. Nice improvement. -- nosy: +ned.deily ___ Python tracker ___

[issue18986] Add a case-insensitive case-preserving dict

2013-10-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Antoine, is the PEP ready for review? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16355] inspect.getcomments() does not work in the interactive shell

2013-10-12 Thread Vajrasky Kok
Vajrasky Kok added the comment: Attached the patch to address Georg Brandl's concern (Thank you!). I also added test for checking the comment of the object defined in C (list, open, etc). I have given thought about testing the comment of the object in interactive shell. But it is too much hass

[issue19218] Use of MutableMapping in os module slows down interpreter startup

2013-10-12 Thread Eric Snow
Eric Snow added the comment: Thanks, Christian. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19223] Add 'x' mode to bz2.open()

2013-10-12 Thread Vajrasky Kok
Vajrasky Kok added the comment: Added test. -- keywords: +patch nosy: +vajrasky Added file: http://bugs.python.org/file32074/add_x_mode_to_bz2.patch ___ Python tracker ___ __

[issue19239] add inspect functions to retrieve attributes from both old dir() and overridden dir()

2013-10-12 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19240] iglob should try to use `readdir`

2013-10-12 Thread Charles-François Natali
Charles-François Natali added the comment: Actually, it should probably be using a generator-based version of os.listdir(). See #11406. -- dependencies: +There is no os.listdir() equivalent returning generator instead of list nosy: +neologix ___ Pyth

[issue19223] Add 'x' mode to bz2.open()

2013-10-12 Thread Vajrasky Kok
Vajrasky Kok added the comment: Added doc. -- Added file: http://bugs.python.org/file32075/add_x_mode_to_bz2_v2.patch ___ Python tracker ___ _

<    1   2