[issue30193] Allow to load buffer objects with json.loads()

2017-04-27 Thread Nikolay Kim
New submission from Nikolay Kim: It is not possible to use buffer objects in json.loads() -- messages: 292487 nosy: fafhrd91 priority: normal severity: normal status: open title: Allow to load buffer objects with json.loads() versions: Python 3.6, Python 3.7

[issue30193] Allow to load buffer objects with json.loads()

2017-04-27 Thread Nikolay Kim
Changes by Nikolay Kim : -- pull_requests: +1443 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: > Contact news.trigofacile.com administrator to ask him to repair the NNTP > server I did that and I got a reply: the server is now fixed! :-D The test is now skipped on server failure (in 3.5, 3.6 and master), and the server is repaired. So I close the issue

[issue30193] Accept memoryview in json.loads()

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- title: Allow to load buffer objects with json.loads() -> Accept memoryview in json.loads() ___ Python tracker ___

[issue30193] Accept memoryview in json.loads()

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue19417] Bdb: add docstrings and a unittest file (test.test_bdb)

2017-04-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE's debugger needs multiple patches. It is based on bdb. So I want to be able to understand the bdb code and know that it is sound. The file is nearly devoid of docstrings, so I would like to add those first, probably in a separate patch. A first draft

[issue30173] x86 Windows7 3.x buildbot has the issue #26624 bug

2017-04-27 Thread David Bolen
David Bolen added the comment: Ok, I believe I've got the latest ucrtbased now on the Win7 buildbot (validate_ucrtbase.py reports it as 10.0.15063.137). It appears as if my Win8 and Win10 buildbots also have the older dll, so I'm guessing they're just fast enough or lucky enough not to run int

[issue30103] uu package uses old encoding

2017-04-27 Thread Martin Panter
Martin Panter added the comment: FWIW I am using NXP LPC microcontrollers at the moment, whose bootloader uses the grave/backtick instead of spaces. (NXP application note AN11229.) Although in practice it does seem to accept Python's spaces instead of graves. I wouldn't put too much weight to

[issue19417] Bdb: add docstrings and a unittest file (test.test_bdb)

2017-04-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'll work on the bdb docstrings. -- nosy: +csabella ___ Python tracker ___ ___ Python-bugs-list mail

[issue30107] python.core file created when running tests on AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: Ok, the test is now skipped on 3.5, 3.6 and master to fix CI and buildbots. R. David Murray: "Setting up an imap server on pythontest is the "right" answer. Somebody has to do the work, though :)" Who work on pytohntest? Where should I ask that? --

[issue30107] python.core file created when running tests on AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1446 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30194] AttributeError on opening ZipFile

2017-04-27 Thread Jacob B
New submission from Jacob B: The error occurs when I attempt to run the following code: from urllib.request import urlretrieve from os import path from zipfile import ZipFile download_url = "https://www.dropbox.com/s/obiqvrt4m53pmoz/tesseract-4.0.0-alpha.zip?dl=1"; def setup_program(): z

[issue30194] AttributeError on opening ZipFile

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: urlretrieve() returns (filename, file-like object). It's a bug in your code, not in Python itself ;-) -- nosy: +haypo resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue30106] test_asyncore: test_handle_write() fails in tearDown()

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1447 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue27726] ctags -t does not exists in Makefile.pre.in

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1448 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30107] python.core file created when running tests on AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset c9ca57eeea4d9da748d84281506c5803512b79ac by Victor Stinner in branch '3.6': bpo-30107: Make SuppressCrashReport quiet on macOS (#1279) (#1335) https://github.com/python/cpython/commit/c9ca57eeea4d9da748d84281506c5803512b79ac --

[issue30173] x86 Windows7 3.x buildbot has the issue #26624 bug

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: @David: Oh, a build on x86 Windows7 3.5 just failed on the git step with a strange erorr: http://buildbot.python.org/all/builders/x86%20Windows7%203.5/builds/209/steps/git/logs/err.text twisted.spread.pb.RemoteError: unrecognized SlaveCommand 'stat' -

[issue30173] x86 Windows7 3.x buildbot has the issue #26624 bug

2017-04-27 Thread David Bolen
David Bolen added the comment: Yeah, there were a few transient build errors while I was getting the buildbot back online. My initial attempt to fix this ticket involved using the VS 2015 installer which turned out very badly, so I had to fall back to an older VM image and start over. But th

[issue30173] x86 Windows7 3.x buildbot has the issue #26624 bug

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: > Yeah, there were a few transient build errors while I was getting the > buildbot back online Oh ok, I understand that the issue is already fixed. Thanks :-) -- ___ Python tracker

[issue29621] telnetlib.Telnet.write gives confusing error message when a string is passed in

2017-04-27 Thread Dong-hee Na
Dong-hee Na added the comment: I submitted PR to handle this issue like this way. tn.write([b'data sample without IAC']) File "/Users/corona10/cpython/Lib/telnetlib.py", line 288, in write raise TypeError('%s must be a bytes-like type.' % buffer) TypeError: [b'data sample without IAC'] must

[issue29621] telnetlib.Telnet.write gives confusing error message when a string is passed in

2017-04-27 Thread R. David Murray
R. David Murray added the comment: We generally don't do this kind of type checking in the standard library. The message may not be clear, but it is accurate and decipherable, especially given the fact that the write parameter name is 'buffer'. I don't think anything should be done here. If

[issue29621] telnetlib.Telnet.write gives confusing error message when a string is passed in

2017-04-27 Thread Dong-hee Na
Dong-hee Na added the comment: Thanks for the response. I agree with you. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue29621] telnetlib.Telnet.write gives confusing error message when a string is passed in

2017-04-27 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: -1429 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30131] test_logging leaks a "dangling" thread

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset cb21f5f3d2005b891df0b76e3fc4d4676e285f21 by Victor Stinner in branch '3.6': bpo-30131: test_logging now joins queue threads (#1298) (#1317) https://github.com/python/cpython/commit/cb21f5f3d2005b891df0b76e3fc4d4676e285f21 -- ___

[issue30106] test_asyncore: test_handle_write() fails in tearDown()

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset caa59c156d1e6ff3d005e0112bb27c5bed4afb71 by Victor Stinner in branch '3.6': [3.6] bpo-30106: Fix test_asyncore.test_quick_connect() (#1336) https://github.com/python/cpython/commit/caa59c156d1e6ff3d005e0112bb27c5bed4afb71 -- ___

[issue30131] test_logging leaks a "dangling" thread

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset d855e53eabca0e8b2b39d25670c37bbdb4ab2e4c by Victor Stinner in branch '3.5': bpo-30131: test_logging now joins queue threads (#1298) (#1318) https://github.com/python/cpython/commit/d855e53eabca0e8b2b39d25670c37bbdb4ab2e4c -- ___

[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread R. David Murray
R. David Murray added the comment: I think Benjamin is the only one who has done any work on it so far. I think you'd ask the infrastructure team for access if you want to do so. -- ___ Python tracker ___

[issue30146] Difference in behavior between set() and collections.abc.MutableSet() derived objects

2017-04-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: > That being said, I believe (as the OP of issue 8743) > that the ABC collections should comply to the API of > the Python base collections. Sorry Horacio, but your beliefs don't trump Guido's intentional design decisions. He was the one who decided that

[issue30193] Support the buffer protocol in json.loads()

2017-04-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This isn't so easy. Supporting the buffer protocol can slowdown the common case -- str. Do you have concrete use case for this feature or add it just as an extension of bytes and bytearray support? -- components: +Library (Lib) nosy: +bob.ippolito,

[issue30193] Support the buffer protocol in json.loads()

2017-04-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Withdraw my note about slowing down str. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue30190] unittest's assertAlmostEqual improved error message

2017-04-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it worth to output a difference when the delta argument is not passed? Is it worth to output a signed difference rather than an absolute value? -- nosy: +serhiy.storchaka ___ Python tracker

[issue30004] in regex-howto, improve example on grouping

2017-04-27 Thread Mandeep Bhutani
Mandeep Bhutani added the comment: Looks like both examples need a closing \b. Is this being worked on or should I submit a PR? -- nosy: +mandeepb ___ Python tracker ___ ___

[issue30152] Reduce the number of imports for argparse

2017-04-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I just realized that is is not so easy to avoid gettext import. gettext is used in the ArgumentParser constructor for localizing names of default groups and the default help (besides they are used only for formatting help). This adds importing the locale mod

[issue30103] uu package uses old encoding

2017-04-27 Thread Xiang Zhang
Xiang Zhang added the comment: Uuencode has no official standards and it all depends on the implementation. For other languages, I could only find PHP, java, activetcl? have official implementation. PHP and activetcl defaults to backticks and no options. Java defaults to spaces and no options.

[issue30152] Reduce the number of imports for argparse

2017-04-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After reverting some changes (import heapq on Raymond's request and import gettext since it is needed for the ArgumentParser constructor) the effect of the patch is reducing the number of imports by 6 and the time by 0.017 sec (> 10%) on my computer. $ time

[issue30103] uu package uses old encoding

2017-04-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Martin and Xiang. Wikipedia is not a reliable source, but it usually is based on reliable sources. In this case seems it is wrong. The next question is about parameter name. The Wikipedia uses the name "grave accent", the manpage of FreeBSD uuencode u

[issue30103] uu package uses old encoding

2017-04-27 Thread Xiang Zhang
Xiang Zhang added the comment: I think "grave accent" is not suitable. Although it's the standard unicode name but it's not commonly used in programming so not direct enough. "backquote" and "backtick" seems could be used interchangeably I don't have any preference. Perl seems to use backtick

<    1   2