[issue15071] TLS get keys and randoms

2016-01-12 Thread Daniël van Eeden
Changes by Daniël van Eeden : -- nosy: +dveeden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue24780] unittest assertEqual difference output foiled by newlines

2016-01-12 Thread anchal agarwal
anchal agarwal added the comment: There is another case where the error message displayed by self.assertEqual() is weird. == FAIL: test_newline_1 (__main__.AssertEqualTest) -

[issue26087] PEP 0373 should be updated

2016-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1046a40e086f by Benjamin Peterson in branch 'default': update 2.7 schedule (closes #26087) https://hg.python.org/peps/rev/1046a40e086f -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed ___

[issue26095] Update porting HOWTO to special-case Python 2 code, not Python 3

2016-01-12 Thread Nick Coghlan
Nick Coghlan added the comment: The feature detection approach is especially important for anything covered by the security backports in PEP 466 and 476, but can also apply for things like installing the importlib2 meta_path hooks into Python 2.7. -- nosy: +ncoghlan __

[issue25752] asyncio.readline - add customizable line separator

2016-01-12 Thread Martin Panter
Martin Panter added the comment: The same Git Hub pull request is mentioned in Issue 26050, so I am guessing this is now a duplicate. -- nosy: +martin.panter resolution: wont fix -> duplicate status: open -> closed superseder: -> Add new StreamReader.readuntil() method ___

[issue26096] '*' glob string matches dot files in pathlib

2016-01-12 Thread JitterMan
New submission from JitterMan: Path('.').glob('*') generates all files and directories in '.' including hidden files (those that begin with '.'). This behavior is inconsistent with the shell and with the old glob module, which only generate hidden files if the glob pattern starts with a '.'.

[issue26095] Update porting HOWTO to special-case Python 2 code, not Python 3

2016-01-12 Thread Brett Cannon
Brett Cannon added the comment: And suggesting feature detection is even better than version detection. -- ___ Python tracker ___ ___

[issue26095] Update porting HOWTO to special-case Python 2 code, not Python 3

2016-01-12 Thread Brett Cannon
New submission from Brett Cannon: As pointed out by http://astrofrog.github.io/blog/2016/01/12/stop-writing-python-4-incompatible-code/, special-casing Python 3 code instead of Python 2 code when writing Python 2/3 code will lead to breakage when Python 3 comes out. There should probably be a

[issue25924] investigate if getaddrinfo(3) on OSX is thread-safe

2016-01-12 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: NetBSD has a concurrency test for getaddrinfo, so I tried it on Mac to see if getaddrinfo is thread-safe here, too. It appears that it is thread-safe. I copied NetBSD's getaddrinfo concurrency test "h_resolv.c" and the test's data file "d_mach" from src/

[issue25924] investigate if getaddrinfo(3) on OSX is thread-safe

2016-01-12 Thread A. Jesse Jiryu Davis
Changes by A. Jesse Jiryu Davis : Added file: http://bugs.python.org/file41597/d_mach ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25924] investigate if getaddrinfo(3) on OSX is thread-safe

2016-01-12 Thread A. Jesse Jiryu Davis
Changes by A. Jesse Jiryu Davis : Added file: http://bugs.python.org/file41596/h_resolv.c ___ Python tracker ___ ___ Python-bugs-list mailing

[issue26094] ConfigParser.get() doc to be updated according to the configparser.py header doc

2016-01-12 Thread khyox
New submission from khyox: For the sake of clarity, in https://docs.python.org/3.5/library/configparser.html#configparser.ConfigParser the ConfigParser.get() method doc could be properly updated with merging the information written in the header doc of the source file, as found in https://hg.

[issue26050] Add new StreamReader.readuntil() method

2016-01-12 Thread Марк Коренберг
Марк Коренберг added the comment: Attached patch, but did not compile documentation until text is validated. These descriptions are just copies of docstrings of corresponding functions. -- ___ Python tracker _

[issue26050] Add new StreamReader.readuntil() method

2016-01-12 Thread Марк Коренберг
Changes by Марк Коренберг : -- keywords: +patch Added file: http://bugs.python.org/file41595/asyncio-stream-doc-preliminary.patch ___ Python tracker ___

[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2016-01-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: Simon, sure. It is just for someone, either commiters or other interested folks to add the tests on top of your patch. Agree with you that more change is required to add the required tests. -- ___ Python tracker <

[issue25924] investigate if getaddrinfo(3) on OSX is thread-safe

2016-01-12 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: Related to #1288833, when FreeBSD 5.3's getaddrinfo was declared thread-safe. -- ___ Python tracker ___ __

[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2016-01-12 Thread Simon Conseil
Simon Conseil added the comment: I have looked at the webbrowser tests and it seems not so easy: currently the MacOS browser classes are not tested, and they don't the GenericBrowser base class. Instead they use custom code with os.popen, so it would require some work either replace os.popen w

[issue26093] __qualname__ different when calling generator object w/ functions.partial

2016-01-12 Thread Dino Viehland
New submission from Dino Viehland: import functools def f(): def g(): yield 1 return g functools.partial(f())().__qualname__ != f()().__qualname__ The qualified name gets passed in via the interpreter loop with _PyEval_EvalCodeWithName calling PyGen_NewWithQualName. If a gener

[issue25913] base64.a85decode adobe flag incorrectly utilizes <~ as a marker causing error

2016-01-12 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +curioswati ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue26090] More correct string truncating in PyUnicode_FromFormat()

2016-01-12 Thread Guido van Rossum
Guido van Rossum added the comment: Well it seems a little odd to spend effort on a corner case of the C-level error messages if we can't even replicate it in pure Python. -- ___ Python tracker

[issue22642] trace module: convert to argparse

2016-01-12 Thread SilentGhost
SilentGhost added the comment: Here is the updated version of the patch that addresses Senthil's comments. Besides re-flowing code, I've also added enforcement of --summary switch and re-factored and expanded the test_failures. It probably would be good if someone could test this on a real-lif

[issue25995] os.walk() consumes a lot of file descriptors

2016-01-12 Thread Guido van Rossum
Guido van Rossum added the comment: I like them both, if I had to choose I'd pick patch 2. But yes, we need to add a close() method to the scandir iterator object. In the meantime, I am still worried about what would happen if somehow the loop got interrupted and the frame got kept alive and t

[issue26092] doctest should allow custom sys.displayhook

2016-01-12 Thread Sergey B Kirpichev
New submission from Sergey B Kirpichev: The purpose of doctest's - verify interactive examples. But if your users will use custom displayhook all the time (consider, as examples CAS like SymPy or https://github.com/skirpichev/omg/) - why you must show them examples with the builtin's displayhook

[issue26091] decimal.Decimal(0)**0 throws decimal.InvalidOperation

2016-01-12 Thread Stefan Krah
New submission from Stefan Krah: http://speleotrove.com/decimal/daops.html#refpower -- nosy: +skrah resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker __

[issue26091] decimal.Decimal(0)**0 throws decimal.InvalidOperation

2016-01-12 Thread Joseph Pyott
Changes by Joseph Pyott : -- components: +Library (Lib) -Extension Modules ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue26060] Class __dict__ iteration order changing due to type instance key-sharing

2016-01-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Indeed. Here is another version of the script, it crashes when I set PYTHONHASHSEED=1 and passes with PYTHONHASHSEED=3:: class Meta(type): def __new__(meta, clsname, bases, methods): cls = super(Meta, meta).__new__(meta, clsname, bases, method

[issue26060] Class __dict__ iteration order changing due to type instance key-sharing

2016-01-12 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: As I understood it the issue is not with the order but with the iteration being "unstable" (eg: same key appears multiple times). Yes, the dict is mutated while it's being iterated on, but no keys are added or removed, only values are changed.

[issue26091] decimal.Decimal(0)**0 throws decimal.InvalidOperation

2016-01-12 Thread Joseph Pyott
Changes by Joseph Pyott : -- components: Extension Modules files: decimal pow error.py nosy: Pyottamus priority: normal severity: normal status: open title: decimal.Decimal(0)**0 throws decimal.InvalidOperation type: behavior versions: Python 3.5 Added file: http://bugs.python.org/file41

[issue26090] More correct string truncating in PyUnicode_FromFormat()

2016-01-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think we can make this feature available with classic formatting '%.100r', but with new formatting '{0:.100!r}' (especially with f-strings) this can be not so easy. -- ___ Python tracker

[issue26036] Unnecessary arguments on smtpd.SMTPServer

2016-01-12 Thread Eric V. Smith
Eric V. Smith added the comment: I'd forgotten that issue 25008 is about deprecating SMTPServer (or not, there are multiple opinions on it). -- ___ Python tracker ___ __

[issue26036] Unnecessary arguments on smtpd.SMTPServer

2016-01-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Tangentially, I'm kind of hoping we can get this into 3.6 as an asyncio replacement for smtpd: https://gitlab.com/python-smtpd-hackers/aiosmtpd -- ___ Python tracker

[issue26090] More correct string truncating in PyUnicode_FromFormat()

2016-01-12 Thread Guido van Rossum
Guido van Rossum added the comment: Could we make this feature available at the Python level too? It sounds really useful. --Guido (mobile) On Jan 12, 2016 2:01 AM, "STINNER Victor" wrote: > > STINNER Victor added the comment: > > See my old issue #10833 which proposed to *remove* the arbitrar

[issue26060] Class __dict__ iteration order changing due to type instance key-sharing

2016-01-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Is this a bug though? No guarantees of dict order exists, regardless of whether the dict changes or not, right? Even if the implementation used to, or in some circumstances still does, appear to preserve iteration order, you shouldn't count on it.

[issue22995] Restrict default pickleability

2016-01-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22642] trace module: convert to argparse

2016-01-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: @SilentGhost, Thanks a lot for the quick turn around of a patch. I have left some review comments in reitveld. Please address them. Since this is underlying implementation change in option processing/parsing, it should only in feature release (3.6). Thank

[issue22995] Restrict default pickleability

2016-01-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks Stefan and Serhiy! I think this issue is now resolved. -- status: open -> closed ___ Python tracker ___ ___

[issue25347] assert_has_calls output is formatted inconsistently

2016-01-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: Verified the change and committed. The new output behavior will be like this. ``` >>> from unittest.mock import Mock >>> mock = Mock(return_value=None) >>> for i in range(1, 10): ... mock(i) ... >>> from unittest.mock import call >>> calls = [call(i) for i

[issue25347] assert_has_calls output is formatted inconsistently

2016-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 77d24f51effc by Senthil Kumaran in branch 'default': Issue25347 - Format the error message output of mock's assert_has_calls method. https://hg.python.org/cpython/rev/77d24f51effc -- nosy: +python-dev ___

[issue25347] assert_has_calls output is formatted inconsistently

2016-01-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch looks good to me. The change is in the error message of the AssertionError and don't test the error messages of Exceptions in our unittest. This change is a good usability improvement and I will commit this patch. -- assignee: -> orsenthil

[issue20337] bdist_rpm should support %config(noreplace)

2016-01-12 Thread akaihola
Changes by akaihola : -- nosy: +akaihola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue22995] Restrict default pickleability

2016-01-12 Thread Stefan Behnel
Stefan Behnel added the comment: Thanks for calling me in. I can confirm that the stack trace in https://paste.debian.net/361351/ points at a bug in Cython's own implementation (not the code it generates). It's deep-copying objects that don't support it (which doesn't normally have an impact b

[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2016-01-12 Thread Martin Panter
Martin Panter added the comment: Marc-Andre: This is a fix or workaround for the problem I first described in . It looks like the code was written by Geert Jansen in Issue 21965. I suspect it is not right, but I am not familiar enough with the Open

[issue22995] Restrict default pickleability

2016-01-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for reverting the change in 2.7 and 3.5 Barry. > can you please file a bug with upstream Cython? It is not so easy. Cython bugtracker doesn't allow free registration or anonymous reporting. I have submitted a report to Cython core developer mailing

[issue24649] python -mtrace --help is wrong

2016-01-12 Thread SilentGhost
SilentGhost added the comment: A re-write using argparse is submitted in the issue22642, that's why I'm closing this issue. Changes from Evan's patch were incorporated in the submitted patch there. -- nosy: +SilentGhost resolution: -> out of date stage: needs patch -> resolved status:

[issue22642] trace module: convert to argparse

2016-01-12 Thread SilentGhost
SilentGhost added the comment: Here is the patch that incorporates earlier changes from Vajrasky's patch as well as wording from Evan's patch in issue24649. I've extended the test of failures, but I'm not sure if much can be done about the test of successful executions. I'm going to mark this

[issue25995] os.walk() consumes a lot of file descriptors

2016-01-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > But using FDs proportional to the tree depth seems reasonable to me. This was the main reason for rejecting issue15200. May be we can allow this for globbing, but only explicitly enabled with special parameter or separate functions. The benefit for globbin

[issue26090] More correct string truncating in PyUnicode_FromFormat()

2016-01-12 Thread STINNER Victor
STINNER Victor added the comment: See my old issue #10833 which proposed to *remove* the arbitrary limit on strings. It was rejected. -- ___ Python tracker ___ __

[issue26090] More correct string truncating in PyUnicode_FromFormat()

2016-01-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue26068] re.compile() repr end quote truncated

2016-01-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: More smart truncating with closing quote and dots was the idea that I want to propose since introducing %R, but I didn't have time to formulate this. Opened issue26090 for this. -- ___ Python tracker

[issue26089] Duplicated keyword in distutils metadata

2016-01-12 Thread Ezio Melotti
Ezio Melotti added the comment: This seems to be because the alternative spelling "licence" was also included in the list, and got changed in #693470/178d19cff163. Because of that change, the method get_licence() is not supported anymore, but at this point removing the duplicate "license" shoul

[issue26090] More correct string truncating in PyUnicode_FromFormat()

2016-01-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The C code often uses %. in PyUnicode_FromFormat(). %.200s protects from unlimited output when broken pointer points on random non-null-terminated data. %.200R is used to limit the size of human-readable messages. In all these case formatted string can lo

[issue26089] Duplicated keyword in distutils metadata

2016-01-12 Thread Augustin Laville
New submission from Augustin Laville: The line https://hg.python.org/cpython/file/tip/Lib/distutils/dist.py#l1016 contains the word "licence" twice. Check only on Python, 3.5 and 3.6, may be in others versions. -- components: Distutils messages: 258091 nosy: Augustin Laville, dstufft,

[issue25574] 2.7 incorrectly documents objects hash as equal to id

2016-01-12 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> resolved status: open -> closed type: -> enhancement ___ Python tracker

[issue25574] 2.7 incorrectly documents objects hash as equal to id

2016-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 499ee454eecc by Ezio Melotti in branch '2.7': #25574: backport glossary doc fix about hash and id of user-defined classes. https://hg.python.org/cpython/rev/499ee454eecc -- nosy: +python-dev ___ Python tr

[issue26001] Tutorial: write() does not expect string in binary mode

2016-01-12 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks Dimistri for the report, Upendra for the patch, Terry for the review, and Elena for the rewrapping! I also rephrased the last sentence a bit to make it more readable. -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution:

[issue26001] Tutorial: write() does not expect string in binary mode

2016-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a2692911a43 by Ezio Melotti in branch '3.5': #26001: mention in the tutorial that files in binary mode expect bytes, not str. https://hg.python.org/cpython/rev/5a2692911a43 New changeset 4b434a4770a9 by Ezio Melotti in branch 'default': #26001: mer

[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2016-01-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The patch looks good. I only have one question: Why are you removing this part ? ... @@ -1684,13 +1688,8 @@ try: ret = func(*args) except ssl.SSLError as e: -# Note that we get a spurious -1/SSL_ERR

[issue19006] UnitTest docs should have a single list of assertions

2016-01-12 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the review! -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue19006] UnitTest docs should have a single list of assertions

2016-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset ddb8fa84a119 by Ezio Melotti in branch '2.7': #19006: fix wording in unittest docs. https://hg.python.org/cpython/rev/ddb8fa84a119 New changeset 84f34e8685de by Ezio Melotti in branch '3.5': #19006: fix wording in unittest docs. https://hg.python.or

[issue26086] Bug in standardmodule os

2016-01-12 Thread Hana Larsen
Hana Larsen added the comment: I thank you much for thisse answer! I Python is in "C:\Python35\" in the root of C-Drive (OS) =-O Den 11-01-2016 kl. 23:57 skrev Eryk Sun: > Eryk Sun added the comment: > > The "yield from" syntax was added in Python 3.3, so somehow you're using the > 3.5 standard

[issue24918] Docs layout bug

2016-01-12 Thread Georg Brandl
Georg Brandl added the comment: If it works... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue26087] PEP 0373 should be updated

2016-01-12 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: docs@python -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bug

[issue23942] Explain naming of the patch files in the bug tracker

2016-01-12 Thread Ezio Melotti
Ezio Melotti added the comment: I think this is not worth fixing, for two reasons: 1) we are moving away from Rietveld; 2) even if we document it, most people won't go looking for naming conventions and just use reasonable names (and most of the times they will just work); I'm therefore going to

[issue25913] base64.a85decode adobe flag incorrectly utilizes <~ as a marker causing error

2016-01-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Soren, for me, the page you link to is impossible to read as it blinks every second or so, something I have never seen before. Perhaps it is trying to forward to the actual reference. As near as I can tell, it just lists about 3 other documents and is not a r

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2016-01-12 Thread Ezio Melotti
Ezio Melotti added the comment: CSS: Doc/tools/pydoctheme/static/pydoctheme.css JS: Doc/tools/static/sidebar.js The repo is https://hg.python.org/cpython/, but there should be a github mirror too. See also the devguide for more info. -- ___ Python

[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2016-01-12 Thread Martin Panter
Martin Panter added the comment: Here is the corresponding patch for the test suite. This version should fix all the SSL tests as long as the server is updated. -- Added file: http://bugs.python.org/file41590/use-pythontest.v2.patch ___ Python tracke

[issue21047] html.parser.HTMLParser: convert_charrefs should become True by default

2016-01-12 Thread Ezio Melotti
Ezio Melotti added the comment: DeprecationWarnings are silenced by default. You can enable them by using the -W Python flag. They are also enabled while running tests with unittest, so you should have seen them there. -- ___ Python tracker

[issue19316] devguide: compiler - wording

2016-01-12 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks everyone for the patches and the reviews! -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue19316] devguide: compiler - wording

2016-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 43d842419188 by Ezio Melotti in branch 'default': #19316: fix wording in the compiler.rst page. https://hg.python.org/devguide/rev/43d842419188 -- nosy: +python-dev ___ Python tracker

[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2016-01-12 Thread Martin Panter
Martin Panter added the comment: This is a patch against the pythontestdotnet repository to change the certificate to have the CA flag set. It should be applied in conjunction with an (upcoming) update to the test suite, otherwise test_httplib will fail with certificate verification errors. I

[issue26088] re

2016-01-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue26088] re

2016-01-12 Thread Hana Larsen
New submission from Hana Larsen: -- Hans Larsen Galgebakken Sønder 4-11A 2620 Albertslund Danmark/Danio -- messages: 258073 nosy: Johano priority: normal severity: normal status: open title: re ___ Python tracker