[issue17088] ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used

2014-04-14 Thread Stefan Behnel
Stefan Behnel added the comment: @gene_wood: that's unrelated. This ticket is about attributes being rejected incorrectly. Fixing the example of the OP: from xml.etree.ElementTree import * svg = ElementTree(XML( ... svg width=12cm height=4cm viewBox=0 0 1200 400

[issue21196] Name mangling example in Python tutorial

2014-04-14 Thread Chandan Kumar
Chandan Kumar added the comment: Uploading the patch for the improvement to the name mangling section of the Python tutorial. Please note that the modification is much smaller than I proposed earlier. -- keywords: +patch Added file:

[issue21212] Documentation of octal representation

2014-04-14 Thread Bill
New submission from Bill: This documentation section: https://docs.python.org/3/faq/programming.html?highlight=octal#how-do-i-convert-a-string-to-a-number seems still to refer to Python 2 octal representation rules. So I think it needs updating. -- assignee: docs@python components:

[issue1484] logging: callHandlers tests handler levels instead of logger levels?

2014-04-14 Thread Artur
Artur added the comment: So what is logger level for if it's not used on calling handlers? -- nosy: +artur.ambroziak versions: +Python 2.7 -Python 2.4, Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1484

[issue21213] Memory bomb by incorrect custom serializer to json.dumps

2014-04-14 Thread saaj
New submission from saaj: I was chaning an implementation of the function that is passed to json.dumps to extend serializable types. By a mistake (**return** instead of **raise**) it turned into, which at its minum can be expressed as:: def d(obj): return TypeError(repr(obj))

[issue21214] PEP8 doesn't verifies last line.

2014-04-14 Thread Max
New submission from Max: PEP8 doesn't verifies last line at all. Also W292 will never be checked. Reproducible on PEP8 = 1.5.0 -- messages: 216072 nosy: f1ashhimself priority: normal severity: normal status: open title: PEP8 doesn't verifies last line. type: behavior

[issue18321] Multivolume support in tarfile module

2014-04-14 Thread Lars Gustäbel
Lars Gustäbel added the comment: Okay, let me tell you why I reject your contribution at this point. The patch you submitted may be well-suited for your purposes but it does not meet the requirements of a standard library implementation because it is not generic and comprehensive enough. It

[issue21214] PEP8 doesn't verifies last line.

2014-04-14 Thread Mark Dickinson
Mark Dickinson added the comment: The pep8 tool is a third-party package: it isn't part of the core Python project. You probably want to report this at the pep8 bugtracker: http://github.com/jcrocholl/pep8/issues -- nosy: +mark.dickinson resolution: - 3rd party status: open - closed

[issue21212] Documentation of octal representation

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb7bc8fe0d49 by Eric V. Smith in branch '3.4': Fix text about int() with octal numbers. Closes #21212. http://hg.python.org/cpython/rev/fb7bc8fe0d49 New changeset 6107a727c60a by Eric V. Smith in branch 'default': Merge 3.4: Fix text about int()

[issue21212] Documentation of octal representation

2014-04-14 Thread Eric V. Smith
Eric V. Smith added the comment: Fixed. Thanks! -- nosy: +eric.smith resolution: fixed - stage: committed/rejected - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21212

[issue21212] Documentation of octal representation

2014-04-14 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21212 ___

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Ok, I'll reopen the issue to do that. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21169 ___

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-14 Thread Kushal Das
Kushal Das added the comment: Another patch with docs update and one line code comment. -- Added file: http://bugs.python.org/file34815/issue21169_v7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21169

[issue20077] Format of TypeError differs between comparison and arithmetic operators

2014-04-14 Thread R. David Murray
R. David Murray added the comment: I think 'please review' was directed at anyone, and yes, using the review link is one way to do a review, but when there isn't enough line-by-line commenting to make the code review tool worth using you can just post on the issue. (And when you do use the

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread Glenn Jones
New submission from Glenn Jones: The package listed in the dev guide may not exist depending on the version of Ubuntu. It may be necessary to use python3.3 or python3.4. -- components: Devguide messages: 216080 nosy: Glenn.Jones, ezio.melotti priority: normal severity: normal status:

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset bdde36cd9048 by R David Murray in branch '3.4': #21169: add comment and doc update for getpass change. http://hg.python.org/cpython/rev/bdde36cd9048 New changeset fe532dccf8f6 by R David Murray in branch 'default': Merge: #21169: add comment and

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-14 Thread R. David Murray
R. David Murray added the comment: I decided to tweak the language slightly, Kushal. If this isn't what you were looking for, Martin, let me know. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21169

[issue20434] Process crashes if not enough memory to import module

2014-04-14 Thread Eric Snow
Eric Snow added the comment: I was going to say we should consider changing the API of _PyBytes_Resize() and _PyString_Resize(). However, having looked at the two functions, I guess it makes sense. Looking at the patch, I'd argue that we still need to set the string to NULL in the error

[issue19980] Improve help('non-topic') response

2014-04-14 Thread Jessica McKellar
Jessica McKellar added the comment: Elias, thanks for your patch! I think it's important to add the second part of Terry's suggestion which gives the user a specific next step to take, namely: Try help('help') for information on recognized strings or help(str) for help on the str class.

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Guido van Rossum
Guido van Rossum added the comment: This is nice (a backport 3.3 would be even nicer) but at least for the PyPI repo version of Tulip I'd like to have work-around so people won't run into this when they are using a slightly outdated Python version. I'll think about which of my work-arounds is

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread Glenn Jones
Changes by Glenn Jones gl...@millenniumhand.co.uk: -- keywords: +patch Added file: http://bugs.python.org/file34816/ubuntu-build-dep.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21215

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Since you are saying that it is sometimes necessary to use a different package, perhaps we should be saying that in the devguide? And providing the possible names. -- nosy: +barry, r.david.murray ___ Python

[issue20434] Process crashes if not enough memory to import module

2014-04-14 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I would also advocate for a better api, that leaves it up to the caller what to do, much like realloc() does. A convenience macro that frees the block on error could then be provided. But this is 2.7 and we don't change stuff there :) Can you

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread Glenn Jones
Glenn Jones added the comment: On Ubuntu 13.10, using python3 did not install the dependencies (apt reported using the python3-defaults source package instead of python3). The python3.4, package does not exist, but the python3.3 package did work. This may be that we're specifying the wrong

[issue12546] builtin __format__ methods cannot fill with \x00 char

2014-04-14 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- type: enhancement - behavior versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12546 ___

[issue17498] error responses from server are masked in smtplib when server closes connection

2014-04-14 Thread Kushal Das
Kushal Das added the comment: New version of the patch which can be successfully applied to tip. -- Added file: http://bugs.python.org/file34817/issue17498_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17498

[issue20434] Process crashes if not enough memory to import module

2014-04-14 Thread Eric Snow
Eric Snow added the comment: For example, in the patch binascii_b2a_uu() in Modules/binascii.c no longer sets rv to NULL even though in one of the _PyString_Resize() error cases rv is not automatically set to NULL. And simply setting rv to NULL would be backward-incompatible as well.

[issue20624] Clarify recommendation to inherit from Exception

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8dc1b45bd467 by Mark Dickinson in branch '3.4': Issue #20624: Exception docs wording tweak - clarify that it's okay to inherit from a subclass of Exception. http://hg.python.org/cpython/rev/8dc1b45bd467 New changeset 262204877004 by Mark Dickinson

[issue6623] Lib/ftplib.py Netrc class should be removed.

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: This patch is the same as my previous one, except instead of removing Netrc usage from the ftplib.test() function, it replaces it with the netrc.netrc object. Note that there are no existing tests for the ftplib.test() function. Also did some very minor cleanups

[issue12546] builtin __format__ methods cannot fill with \x00 char

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 520ce42ba2b8 by Eric V. Smith in branch '2.7': Issue #12546: Allow \x00 as a fill character for builtin type __format__ methods. http://hg.python.org/cpython/rev/520ce42ba2b8 -- nosy: +python-dev ___

[issue20968] mock.MagicMock does not mock __truediv__

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 445ef3b58109 by Michael Foord in branch '3.4': Issue 20968. unittest.mock.MagicMock now supports division http://hg.python.org/cpython/rev/445ef3b58109 -- nosy: +python-dev ___ Python tracker

[issue20434] Process crashes if not enough memory to import module

2014-04-14 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: This is _PyString_Resize(). I don't immediatlly see an error case where the string isn't freed: int _PyString_Resize(PyObject **pv, Py_ssize_t newsize) { register PyObject *v; register PyStringObject *sv; v = *pv; if (!PyString_Check(v)

[issue20624] Clarify recommendation to inherit from Exception

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset f729a0e90c4f by Mark Dickinson in branch '2.7': Issue #20624: Merge exception docs tweak from 3.4 branch. http://hg.python.org/cpython/rev/f729a0e90c4f -- ___ Python tracker rep...@bugs.python.org

[issue20624] Clarify recommendation to inherit from Exception

2014-04-14 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed. Closing. -- resolution: - fixed status: open - closed versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20624 ___

[issue17826] Setting a side_effect on mock from create_autospec doesn't work

2014-04-14 Thread Michael Foord
Michael Foord added the comment: Can you explain why we need to check for the call_count here? I don't understand why this is needed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17826

[issue12220] minidom xmlns not handling spaces in xmlns attribute value field

2014-04-14 Thread Marek Stepniowski
Marek Stepniowski added the comment: Added test to amathew's patch. -- nosy: +mstepniowski Added file: http://bugs.python.org/file34819/minidom_space_char_in_namespace_with_test.patch ___ Python tracker rep...@bugs.python.org

[issue7776] http.client.HTTPConnection tunneling is broken

2014-04-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: I verified the patch and this indeed corrects a nasty bug in sending a wrong header when doing it a lower level HTTPSConnection to proxy and set_tunnel (bad term) to the end host..I was worried as why we did not observe this earlier and it seems to me that

[issue20968] mock.MagicMock does not mock __truediv__

2014-04-14 Thread Michael Foord
Michael Foord added the comment: Thanks! -- assignee: - michael.foord resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20968

[issue15104] Unclear language in __main__ description

2014-04-14 Thread Sam Lucidi
Sam Lucidi added the comment: I've attempted to synthesize the ideas in this thread into a clearer explanation of __main__. What I've written doesn't attempt to explain anything else about module naming, but it does try to address the common package and module uses of __main__. --

[issue15104] Unclear language in __main__ description

2014-04-14 Thread R. David Murray
R. David Murray added the comment: I've made some review comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15104 ___ ___ Python-bugs-list

[issue15104] Unclear language in __main__ description

2014-04-14 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: needs patch - patch review versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15104 ___

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2014-04-14 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Took a look at this and was able to reproduce it on Fedora Linux 20 and current cpython head. It is somewhat random though. I'm able to get reasonably consistent failures using image/jpeg and iterating the test case about 20 times. Additionally, it looks

[issue12546] builtin __format__ methods cannot fill with \x00 char

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7c484551bce1 by Eric V. Smith in branch '3.4': Issue #12546: Allow \x00 as a fill character for builtin type __format__ methods. http://hg.python.org/cpython/rev/7c484551bce1 New changeset bd90e68dc81f by Eric V. Smith in branch 'default': Closes

[issue12546] builtin __format__ methods cannot fill with \x00 char

2014-04-14 Thread Eric V. Smith
Eric V. Smith added the comment: Fixed in 2.7, 3.4, 3.5. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12546

[issue15104] Unclear language in __main__ description

2014-04-14 Thread Sam Lucidi
Sam Lucidi added the comment: Thanks, I've revised the change based on your comments. -- Added file: http://bugs.python.org/file34822/clarify-__main__-documentation.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15104

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2014-04-14 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg174146 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15916 ___

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2014-04-14 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg174145 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15916 ___

[issue18518] return-ing within code timed with timeit.timeit causes wrong return value of timeit.timeit

2014-04-14 Thread jonathan ferretti
jonathan ferretti added the comment: Added note to timeit function briefly explaining how to avoid it the issue and the cause -- keywords: +patch nosy: +jonathan.ferretti type: enhancement - behavior Added file: http://bugs.python.org/file34823/timeit.patch

[issue21198] Minor tarfile documentation bug

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: Simple patch to remove the underscore in tarfile.rst. -- keywords: +patch nosy: +maatt Added file: http://bugs.python.org/file34824/issue21198.patch ___ Python tracker rep...@bugs.python.org

[issue21146] update gzip usage examples in docs

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: The patch looks good to me. -- nosy: +maatt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21146 ___ ___

[issue20480] Add ipaddress property to get name of reverse DNS PTR record

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5992d2c9522c by Eric V. Smith in branch 'default': Issue #20480: Add ipaddress.reverse_pointer. Patch by Leon Weber. http://hg.python.org/cpython/rev/5992d2c9522c -- nosy: +python-dev ___ Python tracker

[issue20480] Add ipaddress property to get name of reverse DNS PTR record

2014-04-14 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20480 ___

[issue17009] Thread Programming With Python should be removed

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Well, with the new website the url now returns a 404, so I guess we can close this. If someone wants to see it restored as a historical document, that would be an issue for the web site bug tracker. But, since other essays exist, it looks like it was a

[issue17660] mock.patch could whitelist builtins to not need create=True

2014-04-14 Thread Kushal Das
Kushal Das added the comment: Updated patch with builtins module. -- versions: +Python 3.4 -Python 3.5 Added file: http://bugs.python.org/file34825/issue17660_v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17660

[issue7776] http.client.HTTPConnection tunneling is broken

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 39ee3286d187 by Senthil Kumaran in branch '3.4': Issue #7776: Fix ``Host:'' header and reconnection when using http.client.HTTPConnection.set_tunnel(). http://hg.python.org/cpython/rev/39ee3286d187 New changeset 2c9af09ba7b8 by Senthil Kumaran in

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: The `python3` binary package is a sort of meta package that brings in the interpreter (and some ancillary stuff) for all supported Python 3 versions. For Ubuntu 14.04 that will be just python3.4. But if you want to build the interpreter from source (e.g.

[issue13598] string.Formatter doesn't support empty curly braces {}

2014-04-14 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13598 ___ ___

[issue17009] Thread Programming With Python should be removed

2014-04-14 Thread Ned Deily
Ned Deily added the comment: I don't think it was a conscious decision. Unlike most of the others, the link for this essay is to the 2.2 docs tree. I'm guessing there was a redirect there that has gone AWOL. -- ___ Python tracker

[issue7776] http.client.HTTPConnection tunneling is broken

2014-04-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is fixed in 3.4 and 3.5 (finally). I will port it to 2.7 as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7776 ___

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: 3.3 is in security-fix only mode. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21209 ___

[issue20434] Process crashes if not enough memory to import module

2014-04-14 Thread Eric Snow
Eric Snow added the comment: Yeah, I missed the *pv = 0; line in the first error case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20434 ___

[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-04-14 Thread Julien Palard
New submission from Julien Palard: I just found that python consider linux implementation of getaddrinfo thread safe : ./python2.6-2.6.8/Modules/socketmodule.c:180 /* On systems on which getaddrinfo() is believed to not be thread-safe,

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Yury Selivanov
Yury Selivanov added the comment: 3.3 is in security-fix only mode. Yeah, but this is a core language bug. I believe some people may be stuck on 3.3 with broken 'yield from' for whatever reason, which will cause hard to find bugs in 3.3 compatible libraries (like asyncio/tulip). I think we

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Mon, Apr 14, 2014, at 10:20, Yury Selivanov wrote: Yury Selivanov added the comment: 3.3 is in security-fix only mode. Yeah, but this is a core language bug. I believe some people may be stuck on 3.3 with broken 'yield from' for whatever reason,

[issue17009] Thread Programming With Python should be removed

2014-04-14 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- nosy: -gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17009 ___ ___ Python-bugs-list

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-14 Thread Mark Dickinson
Mark Dickinson added the comment: The docs[1] for SSL_set_ecdh_auto say: These functions were first added to OpenSSL 1.0.2. From looking at Modules/_ssl.c, it looks as though we're trying to use them when the version is = 0.9.8. [1]

[issue18628] Better index entry for encoding declarations

2014-04-14 Thread Sam Lucidi
Sam Lucidi added the comment: Here's a patch which changes the entry in the index to encoding declarations (source file) per Terry's third point. -- keywords: +patch nosy: +mansam Added file: http://bugs.python.org/file34826/encoding-declarations-index.patch

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Guido van Rossum
Guido van Rossum added the comment: I think I have to add a work-around to Tulip anyway, because I don't want to have to tell people you must upgrade your Python 3.3 otherwise this problem can happen (if upgrading was easy for them they would be on 3.4 :-). So I don't care much if the 3.3

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: The docs[1] for SSL_set_ecdh_auto say: These functions were first added to OpenSSL 1.0.2. From looking at Modules/_ssl.c, it looks as though we're trying to use them when the version is = 0.9.8. If that was the issue at hand we would get a compile error, no?

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-14 Thread Thomas Ballinger
New submission from Thomas Ballinger: https://gist.github.com/thomasballinger/10666031 inspect.getsourcelines incorrectly guesses what lines correspond to the function foo see getblock in inspect.py once it finds a lambda, def or class it finishes it then stops so get getsourcelines returns

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-14 Thread Thomas Ballinger
Thomas Ballinger added the comment: The code object's co_lnotab is how inspect should be getting the sourcelines of the code, instead of looking for the first codeblock. I'm looking at this now, thanks to Yhg1s for the above. -- ___ Python tracker

[issue18518] return-ing within code timed with timeit.timeit causes wrong return value of timeit.timeit

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e2708484ea5 by Andrew Kuchling in branch '3.4': #18518: mention that including a return statement changes/breaks the behaviour http://hg.python.org/cpython/rev/7e2708484ea5 -- nosy: +python-dev ___

[issue20491] textwrap: Non-breaking space not honored

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: Patch on top of dbudinova's that attempts to replace the concatenation of strings with a verbose regex. -- nosy: +maatt Added file: http://bugs.python.org/file34827/issue20491_verbose.patch ___ Python tracker

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-14 Thread Mark Dickinson
Mark Dickinson added the comment: Yep, true. Ignore me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21015 ___ ___ Python-bugs-list mailing

[issue11983] Inconsistent hash and comparison for code objects

2014-04-14 Thread Caelyn McAulay
Caelyn McAulay added the comment: Here is a patch to add the requested documentation to code.h - I expanded it to specify (as per the conversation in this issue) that co_name is used in both hash and comparisons while co_firstlineno is used only in comparisons. I do not attempt explain the

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-14 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- Removed message: http://bugs.python.org/msg216123 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21015 ___

[issue20434] Process crashes if not enough memory to import module

2014-04-14 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ok, are we good to go then? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20434 ___ ___

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread R. David Murray
R. David Murray added the comment: OK, so the devguide currently has sudo apt-get build-dep python3 which did something on Glenn's machine, but did not enable him to build the optional packages. So the question is, what should we put in the devguide as the correct build-dep to install?

[issue21204] published examples don't work

2014-04-14 Thread jmaki
jmaki added the comment: loewis, r.david.murray: Please proceed in terms of #3--The specific example does not work on Windows. I am using python 2.7.6 on Windows 7. Below is the failing message that happens immediately on startup, specifically, when hitting this line:

[issue17660] mock.patch could whitelist builtins to not need create=True

2014-04-14 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17660 ___ ___

[issue18518] return-ing within code timed with timeit.timeit causes wrong return value of timeit.timeit

2014-04-14 Thread R. David Murray
R. David Murray added the comment: The suggestion was to make this a footnote, not a note. Also, it should probably say that the stmt is executed inside a function, meaning that instead of being a syntax error it changes the return value of the internal timeit function. I understand

[issue15370] test_runpy should include namespace package tests

2014-04-14 Thread Christian Hudon
Christian Hudon added the comment: As far as I can see, this is now tested by the following tests in test_runpy: test_run_module_in_namespace_package test_run_package_in_namespace_package test_run_namespace_package test_run_namespace_package_in_namespace_package (These new tests were in

[issue21218] Test failure for test_ssl.test_default_ecdh_curve on OS X

2014-04-14 Thread Jeff Ramnani
New submission from Jeff Ramnani: The unittest, test_ssl.test_default_ecdh_curve, is failing on OS X (and FreeBSD 9). The test fails with the error message: == ERROR: test_default_ecdh_curve (test.test_ssl.ThreadedTests)

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21215 ___ ___ Python-bugs-list

[issue21218] Test failure for test_ssl.test_default_ecdh_curve on OS X

2014-04-14 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. This is being tracked in Issue21015. -- nosy: +ned.deily resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - support SSL_CTX_set_ecdh_auto on newer OpenSSLs

[issue18628] Better index entry for encoding declarations

2014-04-14 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo stage: needs patch - patch review versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18628 ___

[issue18518] return-ing within code timed with timeit.timeit causes wrong return value of timeit.timeit

2014-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: BTW, this change is also relevant to 2.7. Previously I wouldn't have bothered to commit it to 2.7 since the branch was largely closed, but now we're talking about some corporate maintainer eventually going through and backporting fixes to the newly-extended

[issue19980] Improve help('non-topic') response

2014-04-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: help() uses lib/pydoc.py and pydoc tests are in test/test_pydoc.py I think tests for things help does that pydoc does not do (help on topics?) should be in site.py. -- ___ Python tracker rep...@bugs.python.org

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Apr 14, 2014, at 05:47 PM, R. David Murray wrote: OK, so the devguide currently has sudo apt-get build-dep python3 which did something on Glenn's machine, but did not enable him to build the optional packages. So the question is, what should we put in

[issue21146] update gzip usage examples in docs

2014-04-14 Thread Éric Araujo
Éric Araujo added the comment: Isn’t there a buffering argument in open that can be used to avoid line buffering? -- nosy: +eric.araujo versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2014-04-14 Thread Glenn Jones
Glenn Jones added the comment: I've attached a patch that uses the original default DocTestFinder and does not raise an exception when there are no tests. -- nosy: +Glenn.Jones Added file: http://bugs.python.org/file34829/issue15916-no-exception.patch

[issue18518] return-ing within code timed with timeit.timeit causes wrong return value of timeit.timeit

2014-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: I dislike footnotes and prefer to put things in the text whenever possible. The text for this change struck as relevant enough -- it notes a property of the *stmt* parameter -- that it doesn't belong in a footnote. (I'd be happy to just make it a paragraph

[issue20035] Clean up Tcl library discovery in Tkinter on Windows

2014-04-14 Thread Zachary Ware
Zachary Ware added the comment: Ok, debugging again with better breakpoints, I see what I missed before, so here's a new patch that does things a little differently. This patch sets the TCL_LIBRARY envvar just before calling Tcl_FindExecutable, and unsets it after the call. The $tcl_library

[issue21198] Minor tarfile documentation bug

2014-04-14 Thread Andrew Scheller
Andrew Scheller added the comment: Éric - appears to be only Doc/library/tarfile.rst that is affected. Matt - looks like your simple patch contains a lot more than you intended?! -- ___ Python tracker rep...@bugs.python.org

[issue21219] WARNING: Inline literal start-string without end-string.

2014-04-14 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: When I build the documentation, I get a warning about the NEWS file. Just add a new patch for this warning. (sphinx) make html sphinx-build -b html -d build/doctrees -D latex_paper_size= . build/html Making output directory... Running Sphinx v1.2.2

[issue21219] WARNING: Inline literal start-string without end-string.

2014-04-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Here is the patch for this bug. -- keywords: +patch Added file: http://bugs.python.org/file34833/issue21219_1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21219

[issue7776] http.client.HTTPConnection tunneling is broken

2014-04-14 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- resolution: - fixed stage: test needed - committed/rejected versions: +Python 3.5 -Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7776

[issue15104] Unclear language in __main__ description

2014-04-14 Thread Sam Lucidi
Changes by Sam Lucidi man...@csh.rit.edu: Added file: http://bugs.python.org/file34831/clarify-__main__-documentation-backticks.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15104 ___

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Yury Selivanov
Yury Selivanov added the comment: Guido: please take a look at the patch corowrapper_01.patch. -- Added file: http://bugs.python.org/file34832/corowrapper_01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21209

[issue21219] WARNING: Inline literal start-string without end-string.

2014-04-14 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21219 ___ ___ Python-bugs-list

  1   2   3   >