[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2013-10-06 Thread Martin Panter
New submission from Martin Panter: I am using the C version of Element Tree via the main ElementTree module. I have subclassed XMLParser, and created my own target object. I am not that interested in XML doctypes, but the following simplified code raises a DeprecationWarning: $ python3.3

[issue14927] add Do not supply 'int' argument to random.shuffle docstring

2013-10-06 Thread Christopher Smith
Christopher Smith added the comment: On Sun, Oct 6, 2013 at 12:14 AM, Raymond Hettinger rep...@bugs.python.orgwrote: Raymond Hettinger added the comment: Christopher, this tracker item needs to die. It is wasting everyone's time (and churning code) over nothing. but it's not quite dead

[issue19175] Erroneous reference to integer in format string grammar

2013-10-06 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: docs@python - eric.smith nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19175 ___

[issue19175] Erroneous reference to integer in format string grammar

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: The bug is that integer links to the integer production in the Python grammar. This shouldn't happen; I'll have a look on the Sphinx side. As a workaround, integer can be replaced by digit+ as requested (it occurs twice). -- nosy: +georg.brandl

[issue3982] support .format for bytes

2013-10-06 Thread Stendec
Changes by Stendec m...@stendec.me: -- nosy: +stendec ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3982 ___ ___ Python-bugs-list mailing list

[issue11176] give more meaningful argument names in argparse documentation

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: Also see this e-mail to docs@: http://mail.python.org/pipermail/docs/2012-December/012028.html No, please don't see this e-mail. It's not worth it. The poster clearly has no clue whatsoever about either a) common placeholders, or b) manners. I don't want to

[issue17618] base85 encoding

2013-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not very interesting in working on this (but analyzing and optimizing made fun to me). You Antoine as originator definitely are interested. So make decision about interface which you need and finish the work using proposed patches as a basis. I would

[issue17618] base85 encoding

2013-10-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17618 ___ ___

[issue19172] selectors: add keys() method

2013-10-06 Thread STINNER Victor
STINNER Victor added the comment: BaseSelector.register(fd) raises a KeyError if fd is already registered, which means that any selector must know the list of all registered FDs. For EpollSelector, the list may be inconsistent *if* the epoll is object is modified externally, but it's really a

[issue19177] Link to TLS (Transport Layer Security) and SSL (Secure Socket Layer) dead

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: The page is linked from the ssl docs in the See also section. The original link was http://www3.rad.com/networks/applications/secure/tls.htm -- ___ Python tracker rep...@bugs.python.org

[issue19177] Link to TLS (Transport Layer Security) and SSL (Secure Socket Layer) dead

2013-10-06 Thread Georg Brandl
New submission from Georg Brandl: This page doesn't seem to exist anymore. Antoine, you added the link, I guess it was an introductory page? Do you have another one in mind? It's still in the Wayback Machine, so for the time being we can replace the link to go there. -- assignee:

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-10-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: I recommend that tracemalloc focus exclusively on real allocations and ignore freelisting. The former are interesting because they directly affect performance. Freelists on the other hand are close to being free (as in beer). Measuring the freelist

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-10-06 Thread STINNER Victor
STINNER Victor added the comment: 2013/10/6 Raymond Hettinger rep...@bugs.python.org: I recommend that tracemalloc focus exclusively on real allocations and ignore freelisting. The former are interesting because they directly affect performance. Freelists on the other hand are close to

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-10-06 Thread STINNER Victor
STINNER Victor added the comment: If you use hash table code from another project, be sure to check its licensing. Done: see https://mail.python.org/pipermail/python-legal-sig/2013-September/44.html I contacted the original author and python-legal mailing list. The BSD license asks to

[issue18646] Improve tutorial entry on 'Lambda Forms'.

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset d4eb47c3d681 by Georg Brandl in branch '2.7': Closes #18646: improve lambda docs in tutorial. Original patch by Terry Reedy. http://hg.python.org/cpython/rev/d4eb47c3d681 -- nosy: +python-dev resolution: - fixed stage: patch review -

[issue18646] Improve tutorial entry on 'Lambda Forms'.

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef1a17d5e263 by Georg Brandl in branch '3.3': Closes #18646: improve lambda docs in tutorial. Original patch by Terry Reedy. http://hg.python.org/cpython/rev/ef1a17d5e263 -- ___ Python tracker

[issue18790] incorrect text in argparse add_help example

2013-10-06 Thread Berker Peksag
Berker Peksag added the comment: This is fixed by changesets: - http://hg.python.org/cpython/rev/e2456381fa14 (3.4) - http://hg.python.org/cpython/rev/ee394a61dade (3.3) - http://hg.python.org/cpython/rev/c5f57a7fd4d8 (2.7) -- resolution: - fixed stage: patch review -

[issue18646] Improve tutorial entry on 'Lambda Forms'.

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the patch; I modified it a little (removed the sentence about the name attribute; this is too involved for the tutorial, and used lambda expression). Will fix more lambda form in the docs in another changeset. -- nosy: +georg.brandl

[issue18725] Multiline shortening

2013-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In updated patch fixed a bug with final spaces. -- assignee: - serhiy.storchaka Added file: http://bugs.python.org/file31971/textwrap_max_lines_2.patch ___ Python tracker rep...@bugs.python.org

[issue18972] Use argparse in email example scripts

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: LGTM, please apply. (FileType is imported but not used in the second example?) -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18972 ___

[issue18790] incorrect text in argparse add_help example

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: Thanks for closing this! -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18790 ___ ___

[issue18972] Use argparse in email example scripts

2013-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: FileType have some problems (see issue13824). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18972 ___ ___

[issue18646] Improve tutorial entry on 'Lambda Forms'.

2013-10-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think this was a nice improvement. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18646 ___

[issue18758] Fix internal references in the documentation

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: Definitely not. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18758 ___ ___ Python-bugs-list mailing list

[issue18646] Improve tutorial entry on 'Lambda Forms'.

2013-10-06 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18646 ___

[issue19178] Entries for module and package in glossary

2013-10-06 Thread Georg Brandl
New submission from Georg Brandl: From Kevin Murphy on docs@: I think newbies might like having 'module' and 'package' defined in the glossary, e.g. http://docs.python.org/2/glossary.html I agree. -- assignee: docs@python components: Documentation messages: 199052 nosy:

[issue18972] Use argparse in email example scripts

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1b1b1d4b28e8 by Serhiy Storchaka in branch 'default': Issue #18972: Modernize email examples and use the argparse module in them. http://hg.python.org/cpython/rev/1b1b1d4b28e8 -- nosy: +python-dev ___

[issue18972] Use argparse in email example scripts

2013-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Georg for the review -- assignee: docs@python - serhiy.storchaka resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue18927] Lock.acquire() docs incorrect about negative timeout

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff5fb419967f by Georg Brandl in branch '3.3': Closes #18927: Lock.acquire only accepts -1 or positive values for timeout. http://hg.python.org/cpython/rev/ff5fb419967f -- nosy: +python-dev resolution: - fixed stage: - committed/rejected

[issue13951] Document that Seg Fault in .so called by ctypes causes the interpreter to Seg Fault

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e163fdf8cf3 by Georg Brandl in branch '3.3': Closes #13951: Add a faulthandler reference in the ctypes docs talking about crashes. http://hg.python.org/cpython/rev/1e163fdf8cf3 -- nosy: +python-dev resolution: - fixed stage: -

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2013-10-06 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Added file: http://bugs.python.org/file31972/itertools_repeat.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19145 ___

[issue19119] duplicate test name in Lib/test/test_heapq.py

2013-10-06 Thread Vajrasky Kok
Vajrasky Kok added the comment: I have played around with this test. The major issue (there are other issues as well but not so difficult) is whether nlargest and nsmallest should support iterator that could be endless iterator or reject it (by checking __len__ attribute) straight away. Once

[issue18529] Use long dash

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: Agreed. -- nosy: +georg.brandl resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18529 ___

[issue19172] selectors: add keys() method

2013-10-06 Thread Charles-François Natali
Charles-François Natali added the comment: BaseSelector.register(fd) raises a KeyError if fd is already registered, which means that any selector must know the list of all registered FDs. For EpollSelector, the list may be inconsistent *if* the epoll is object is modified externally, but

[issue19129] 6.2.1. Regular Expression Syntax flags

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: This is intended, the U flag is a legacy flag that is not supposed to by used in new code. -- nosy: +georg.brandl resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15956] backreference to named group does not work

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset bee2736296c5 by Georg Brandl in branch '2.7': Closes #15956: improve documentation of named groups and how to reference them. http://hg.python.org/cpython/rev/bee2736296c5 -- nosy: +python-dev resolution: - fixed stage: patch review -

[issue15956] backreference to named group does not work

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset f765a29309d1 by Georg Brandl in branch '3.3': Closes #15956: improve documentation of named groups and how to reference them. http://hg.python.org/cpython/rev/f765a29309d1 -- ___ Python tracker

[issue15956] backreference to named group does not work

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the patch. I made a few changes, such as explaining what the example pattern does. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15956

[issue15172] Document nasm-2.10.01 as required version for openssl

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: Fixed, I guess? -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15172 ___

[issue18229] attribute headers of http.server.BaseHTTPRequestHandler sometimes does not exists

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: This appears to be a bug in the _lowerHTTP module, which does not ship with Python. -- nosy: +georg.brandl resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue19179] doc bug: confusing table of values

2013-10-06 Thread Georg Brandl
New submission from Georg Brandl: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [From Jason Scherer on d...@python.org] On this page: http://docs.python.org/2/library/xml.html The table of truth values is a bit confusing because it's not clear from the context what it's actually saying is

[issue19179] doc bug: confusing table of values

2013-10-06 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - docs@python components: +Documentation nosy: +christian.heimes, docs@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19179 ___

[issue12350] Improve stat_result.st_blocks and st_blksize documentation

2013-10-06 Thread Martin Panter
Martin Panter added the comment: What happened to this patch? The current documentation is very misleading because the descriptions of the two block fields appear to complement each other. -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org

[issue19177] Link to TLS (Transport Layer Security) and SSL (Secure Socket Layer) dead

2013-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think we could use the Apache SSL intro: http://httpd.apache.org/docs/trunk/en/ssl/ssl_intro.html (some fine points are a bit outdated, but the general discourse looks fine) -- ___ Python tracker

[issue19180] some RFC references could be updated

2013-10-06 Thread Georg Brandl
New submission from Georg Brandl: Original-Nachricht Betreff: [docs] some RFC references could be updated Datum: Mon, 20 May 2013 22:37:53 -0400 Von: Sean Turner turn...@ieca.com An: d...@python.org Hi, Just starting to learn python and have noted that at the bottom of this

[issue19181] ftp.cwi.nl used as example does not exist anymore

2013-10-06 Thread Georg Brandl
New submission from Georg Brandl: ftp.python.org doesn't seem to listen on port 21 either... anyone know a public FTP server we can use as example? Original-Nachricht Betreff:[docs] quick note on ftplib for python Datum: Tue, 8 Jan 2013 16:17:14 +1100 Von:Jeremy

[issue19181] ftp.cwi.nl used as example does not exist anymore

2013-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: ftp://ftp.ietf.org/ ? ftp://ftp.debian.org/ ? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19181 ___

[issue17618] base85 encoding

2013-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, I think the following comments (Serhiy's) should be implemented: As for interface, I think 'adobe' flag should be false by default. It makes encoder simpler. ascii85 encoder in Go's standard library doesn't wrap nor add Adobe's brackets. btoa/atob

[issue18758] Fix internal references in the documentation

2013-10-06 Thread Ezio Melotti
Ezio Melotti added the comment: Serhiy, are you planning to work on more patches or can this be closed? -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18758 ___

[issue19182] Socket leak in logging.handlers

2013-10-06 Thread Esa Peuha
New submission from Esa Peuha: Running test_logging produces the following: /home/peuha/python/cpython/Lib/logging/handlers.py:550: ResourceWarning: unclosed socket.socket fd=4, family=1, type=2049, proto=0 self.retryTime = now + self.retryPeriod

[issue19172] selectors: add keys() method

2013-10-06 Thread STINNER Victor
STINNER Victor added the comment: 2013/10/6 Charles-François Natali rep...@bugs.python.org: BaseSelector.register(fd) raises a KeyError if fd is already registered, which means that any selector must know the list of all registered FDs. For EpollSelector, the list may be inconsistent *if*

[issue19172] selectors: add keys() method

2013-10-06 Thread Guido van Rossum
Guido van Rossum added the comment: No time to follow this in detail, but one thing: please do not make the selector appear false under *any* circumstances. I've seen too many code write if foo where they meant if foo is not None and get in trouble because foo wasn't None but happened to have

[issue18229] attribute headers of http.server.BaseHTTPRequestHandler sometimes does not exists

2013-10-06 Thread Jordan Szubert
Jordan Szubert added the comment: what _lowerHTTP does is try read request header 'X-Forwarded-For', but instance of request handler have attribute headers only if thing that connected to port where server listens happened to send valid enough http request my problem is, documentation does

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-06 Thread Christian Heimes
New submission from Christian Heimes: The patch implements the current state of PEP 456 plus a configure option to select the hash algorithm. I have tested it only on 64bit Linux so far. -- components: Interpreter Core files: pep-0456-1.patch keywords: patch messages: 199078 nosy:

[issue19172] selectors: add keys() method

2013-10-06 Thread STINNER Victor
STINNER Victor added the comment: Perhaps the method shouldn't be called keys() to avoid any confusion with subclasses of the Container ABC? If you don't want to rename the SelectorKey class, rename the method to get_keys(). -- ___ Python tracker

[issue19172] selectors: add keys() method

2013-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: FWIW, I think the ideal solution would be for keys() (*) to return a read-only Mapping implementation, allowing for file object lookup (using __getitem__) as well as iteration on SelectorKeys (using __iter__) and fast emptiness checking (using __len__).

[issue19172] selectors: add keys() method

2013-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: FWIW, I think the ideal solution would be for keys() (*) to return a read-only Mapping implementation, allowing for file object lookup (using __getitem__) as well as iteration on SelectorKeys (using __iter__) and fast emptiness checking (using __len__). (to

[issue19182] Socket leak in logging.handlers

2013-10-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - vinay.sajip nosy: +vinay.sajip stage: - patch review versions: +Python 2.7, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19182

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

2013-10-06 Thread Vajrasky Kok
Vajrasky Kok added the comment: I pep-8 Phil Connell's work and revamped the unit test based on R. David Murray's request. -- nosy: +vajrasky Added file: http://bugs.python.org/file31975/issue16355_v2.diff ___ Python tracker rep...@bugs.python.org

[issue18229] attribute headers of http.server.BaseHTTPRequestHandler sometimes does not exists

2013-10-06 Thread Jordan Szubert
Jordan Szubert added the comment: #minimal server: #!/c/Python33/python.exe from http.server import HTTPServer as S, BaseHTTPRequestHandler as H class HNDL(H): def log_request(req,code): print('header is',req.headers.get('X-Forwarder-For'),', code',code)

[issue18229] attribute headers of http.server.BaseHTTPRequestHandler sometimes does not exists

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: OK, so I guess it could be documented that the headers attribute is not set if the request cannot be parsed as a HTTP request. That's a valid point. By the way, you should really call your self argument self. -- versions: +Python 2.7, Python 3.4

[issue11798] Test cases not garbage collected after run

2013-10-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11798 ___ ___ Python-bugs-list mailing

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-10-06 Thread STINNER Victor
STINNER Victor added the comment: ec121a72e848.patch: updated patch, based on revision ec121a72e848 of the tracemalloc repository. -- Added file: http://bugs.python.org/file31976/ec121a72e848.patch ___ Python tracker rep...@bugs.python.org

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-10-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file31806/21f7c3df0f15.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-10-06 Thread STINNER Victor
STINNER Victor added the comment: TODO list: * unit test for task reschedule * hash_destroy(): use a double-linked list to avoid the O(n) complexity? * Snapshot.add_process_memory_metrics(): * rename metrics on Windows? * more metrics on Linux? * implement get_process_memory() on BSD *

[issue12350] Improve stat_result.st_blocks and st_blksize documentation

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset c32657e278f6 by Georg Brandl in branch '2.7': Closes #12350: clarify blocks/block size members of stat result. http://hg.python.org/cpython/rev/c32657e278f6 -- ___ Python tracker rep...@bugs.python.org

[issue12350] Improve stat_result.st_blocks and st_blksize documentation

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef5aa8d7e932 by Georg Brandl in branch '3.3': Closes #12350: clarify blocks/block size members of stat result. http://hg.python.org/cpython/rev/ef5aa8d7e932 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open

[issue19181] ftp.cwi.nl used as example does not exist anymore

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset d41aab121366 by Georg Brandl in branch '3.3': Closes #19181: replace non-existing host ftp.cwi.nl with ftp.debian.org in ftplib example. http://hg.python.org/cpython/rev/d41aab121366 -- nosy: +python-dev resolution: - fixed stage: -

[issue19181] ftp.cwi.nl used as example does not exist anymore

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 635e6239aa8e by Georg Brandl in branch '2.7': Closes #19181: replace non-existing host ftp.cwi.nl with ftp.debian.org in ftplib example. http://hg.python.org/cpython/rev/635e6239aa8e -- ___ Python

[issue19177] Link to TLS (Transport Layer Security) and SSL (Secure Socket Layer) dead

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 03e8ba26fb80 by Georg Brandl in branch '2.7': Closes #19177: replace dead link to SSL/TLS introduction with the version from Apache. http://hg.python.org/cpython/rev/03e8ba26fb80 -- nosy: +python-dev resolution: - fixed stage: -

[issue19177] Link to TLS (Transport Layer Security) and SSL (Secure Socket Layer) dead

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9f3da04a0045 by Georg Brandl in branch '3.3': Closes #19177: replace dead link to SSL/TLS introduction with the version from Apache. http://hg.python.org/cpython/rev/9f3da04a0045 -- ___ Python tracker

[issue17745] packaging no longer planned to be included

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: Currently we have packaging listed as deferred to post-3.3 which is certainly not wrong. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17745

[issue17725] English mistake in Extending and Embedding Python doc page.

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8ce8eae6abfa by Georg Brandl in branch '3.3': Closes #17725: small grammar fix. http://hg.python.org/cpython/rev/8ce8eae6abfa -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed

[issue17725] English mistake in Extending and Embedding Python doc page.

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 27f1a3b0b340 by Georg Brandl in branch '2.7': Closes #17725: small grammar fix. http://hg.python.org/cpython/rev/27f1a3b0b340 -- ___ Python tracker rep...@bugs.python.org

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-06 Thread Ned Batchelder
New submission from Ned Batchelder: The order of values on the stack is backwards for RAISE_VARARGS. The docs say: Raises an exception. argc indicates the number of parameters to the raise statement, ranging from 0 to 3. The handler will find the traceback as TOS2, the parameter as TOS1, and

[issue15213] _PyOS_URandom documentation

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3e5078c3784e by Georg Brandl in branch '2.7': Closes #15213: update comment for _PyOS_URandom http://hg.python.org/cpython/rev/3e5078c3784e -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed

[issue11807] Documentation of add_subparsers lacks information about parametres

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset b930b4e67c8a by Georg Brandl in branch '3.3': Closes #11807: document argparse add_subparsers method better. http://hg.python.org/cpython/rev/b930b4e67c8a -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open -

[issue11807] Documentation of add_subparsers lacks information about parametres

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5027e489c25 by Georg Brandl in branch '2.7': Closes #11807: document argparse add_subparsers method better. http://hg.python.org/cpython/rev/d5027e489c25 -- ___ Python tracker rep...@bugs.python.org

[issue15213] _PyOS_URandom documentation

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 176bb5a98463 by Georg Brandl in branch '3.3': Closes #15213: update comment for _PyOS_URandom http://hg.python.org/cpython/rev/176bb5a98463 -- ___ Python tracker rep...@bugs.python.org

[issue15228] os.utime() docs not clear on behavior on nonexistant files

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 62321359c35b by Georg Brandl in branch '3.3': Closes #15228: remove reference to Unix touch; it is confusing since the path needs to exist for os.utime() to succeed http://hg.python.org/cpython/rev/62321359c35b -- nosy: +python-dev

[issue15432] gzip.py: mtime argument only since python 2.7

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 74ae6064d3e8 by Georg Brandl in branch '2.7': Closes #15432: GzipFile mtime argument was added in 2.7. http://hg.python.org/cpython/rev/74ae6064d3e8 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open -

[issue15432] gzip.py: mtime argument only since python 2.7

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad19a9982b03 by Georg Brandl in branch '3.3': Closes #15432: GzipFile mtime argument is new in 3.1. http://hg.python.org/cpython/rev/ad19a9982b03 -- ___ Python tracker rep...@bugs.python.org

[issue14101] example function in tertools.count docstring is misindented

2013-10-06 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - duplicate status: open - closed superseder: - Intendation issue in example code in itertools.count documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14101

[issue19182] Socket leak in logging.handlers

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset bd314db5532d by Vinay Sajip in branch 'default': Issue #19182: Fixed socket leak on exception when connecting. http://hg.python.org/cpython/rev/bd314db5532d -- nosy: +python-dev ___ Python tracker

[issue19182] Socket leak in logging.handlers

2013-10-06 Thread Vinay Sajip
Vinay Sajip added the comment: Thanks for the report and patch. This issue only applies to Python 3.4 - it was in new code added in the default branch, and so does not apply to earlier Python releases. -- resolution: - fixed status: open - closed versions: -Python 2.7, Python 3.3

[issue18939] Venv docs regarding original python install

2013-10-06 Thread Vinay Sajip
Vinay Sajip added the comment: Closing, as documentation has now been updated. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18939 ___

[issue10709] Misc/AIX-NOTES needs updating

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: Ping? :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10709 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11585] Documentation 1.8 shows Python 2 example

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: This has since been fixed already. -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11585

[issue11789] Extend upon metaclass/type class documentation, here: zope.interface and usage of instances of classes as base classes

2013-10-06 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11789 ___

[issue12162] Documentation about re \number

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: I can't see the issue here. The RE docs are much better off with the regexes unquoted. The '(.+) \1' example was fixed today (the string supposed to not match actually did match). -- nosy: +georg.brandl resolution: - works for me status: open -

[issue19172] selectors: add keys() method

2013-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a proof-of-concept patch adding a get_map() method to Selector (and removing get_key()). -- Added file: http://bugs.python.org/file31977/selectors_map.patch ___ Python tracker rep...@bugs.python.org

[issue1215] documentation doesn't say that you can't handle C segfaults from python

2013-10-06 Thread Georg Brandl
Georg Brandl added the comment: I see not much to be done here, except from committing Martin's patch updated to the current trunk. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1215 ___

[issue1215] documentation doesn't say that you can't handle C segfaults from python

2013-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset bd16e333 by Georg Brandl in branch '3.3': Closes #1215: document better why it is not a good idea to catch e.g. SIGSEGV and refer to faulthandler. http://hg.python.org/cpython/rev/bd16e333 -- nosy: +python-dev resolution: - fixed

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a simple benchmark (Linux, gcc 4.7.3): $ ./python -m timeit -s words=[w for line in open('LICENSE') for w in line.split()]; import collections c = collections.Counter(words); c.most_common(10) - 64-bit build, before: 313 usec per loop - 64-bit build,

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Microbenchmarking hash computation (Linux, gcc 4.7.3): * Short strings: python -m timeit -s b=b'x'*20 hash(memoryview(b)) - 64-bit build, before: 0.263 usec per loop - 64-bit build, after: 0.263 usec per loop - 32-bit build, before: 0.303 usec per loop -

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2013-10-06 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9815 ___ ___ Python-bugs-list

[issue17534] unittest keeps references to test cases alive

2013-10-06 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17534 ___ ___ Python-bugs-list

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2013-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: See issue1565525 for the new helper function in the traceback module. -- nosy: +akuchling stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9815

[issue17534] unittest keeps references to test cases alive

2013-10-06 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17534 ___ ___

[issue11798] Test cases not garbage collected after run

2013-10-06 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11798 ___ ___

  1   2   >