[issue34831] Asyncio Tutorial

2018-10-06 Thread Caleb Hattingh
Caleb Hattingh added the comment: A CLI client is a necessary step along the way anyway, so that sounds good by me. You suggested: > I'd organize the tutorial in a dedicated directory like > "Doc/library/asyncio-tutorial/" I had a look at the source tree, there is an existing "howto"

[issue34918] Python 3 tkinter measurement problem

2018-10-06 Thread Adrian Keister
New submission from Adrian Keister : tkinter.Tk().winfo_screenmmwidth() and tkinter.Tk().winfo_screenmmheight() give manifestly incorrect values in Windows. This does not appear to be an issue in Linux. I have not tested a Mac. The values reported in Windows are too large by as much as 58%.

[issue34334] QueueHandler logs exc_info twice

2018-10-06 Thread Ned Deily
Ned Deily added the comment: New changeset 1a2189353f744f79a43511707c090c3807a4978e by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-34334: Don't log traceback twice in QueueHandler (GH-9537) (GH-9581) https://github.com/python/cpython/commit/1a2189353f744f79a43511707c090c3807a4978e

[issue34334] QueueHandler logs exc_info twice

2018-10-06 Thread Ned Deily
Change by Ned Deily : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34806] distutils tests fail with recent 3.7 branch

2018-10-06 Thread Ned Deily
Ned Deily added the comment: @doko, Is this still reproducible with either 3.7.1rc1 or current 3.7 head? Otherwise, let's consider closing it. -- nosy: +ned.deily ___ Python tracker

[issue34917] add time decorator to timeit.py

2018-10-06 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the decorator, however this should probably be discussed on python-ideas first to decide if a decorator should be added in the first place. If the idea is accepted, the exact implementation should be discussed and defined, and finally a pull

[issue34917] add time decorator to timeit.py

2018-10-06 Thread AmjadHD
New submission from AmjadHD : I made this simple time decorator, it's not perfect but it does make python more pythonic :) : it can be used as a decorator: ``` @timef def fun_to_time(a, b): ... ``` or as a function call `timef(print)("Hello world!")` just a simple decorator no need for

[issue34751] Hash collisions for tuples

2018-10-06 Thread Tim Peters
Tim Peters added the comment: Thinking about the way xxHash works prompted me to try this initialization change: x = 0x345678UL + (Py_uhash_t)len; // adding in the length is new That was a pure win in my tests, slashing the number of collisions in the new tuple test, 32-bit build, from

[issue30588] Missing documentation for codecs.escape_decode

2018-10-06 Thread Paul Hoffman
Paul Hoffman added the comment: Bumping this thread a bit. It appears that this "internal" function is being talked about out in the real world. I came across it in a recent blog post, saw that it wasn't in the official documentation, and went looking here. I propose that it be documented

[issue32788] Better error handling in sqlite3

2018-10-06 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- nosy: +sir-sigurd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34751] Hash collisions for tuples

2018-10-06 Thread Tim Peters
Tim Peters added the comment: As a sanity check, I tried the 32-bit version of MurmurHash2 (version 3 doesn't have a 32-bit version). All of my Python tests had collisions, and while the new tuple test dropped to 15, product([0.5, 0.25], repeat=20) skyrocketed from 141 (32-bit xxHash) to

[issue34893] Add 2to3 fixer to change send and recv methods of socket object.

2018-10-06 Thread Pranav Devarakonda
Pranav Devarakonda added the comment: Thanks for pointing out these cases. I kept in mind the Python 2 documentation which says socket.send method expects a string and hence made that fixer. I have tweaked that fixer to handle the pointed cases and a few additional ones too. Please find

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-10-06 Thread Christian Heimes
Christian Heimes added the comment: Ned, I'm currently travelling until next weekend. The PR is rather large and I don't have any means or time to review it properly. Perhaps Gregory or Dmitry Chestnykh (original author of pyblake2) are able to assist. -- nosy: +gregory.p.smith

[issue34824] _ssl.c: Possible null pointer dereference

2018-10-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +9131 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34824] _ssl.c: Possible null pointer dereference

2018-10-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +9132 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34824] _ssl.c: Possible null pointer dereference

2018-10-06 Thread miss-islington
miss-islington added the comment: New changeset 365ad2ead5bbaf7a3b18648ffa36e819559d3f75 by Miss Islington (bot) (Zackery Spytz) in branch 'master': bpo-34824: Fix a possible NULL pointer dereference in _ssl.c (GH-9606)

[issue34909] StrEnum subclasses cannot be created

2018-10-06 Thread Ethan Furman
Ethan Furman added the comment: Stéphane, thanks for the tip about bisect! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34916] include sqlite-3.25+ (with window functions)

2018-10-06 Thread Big Stone
New submission from Big Stone : sqlite-3.25 now includes window functions, something very important in modern SQL. https://www.sqlite.org/windowfunctions.html Could it be included in next Python maintenance release ? -- messages: 327253 nosy: Big Stone priority: normal severity:

[issue33436] Add an interactive shell for Sqlite3

2018-10-06 Thread Big Stone
Big Stone added the comment: as a graphical sqlite browser, you have sqlite_bro that may give you inspiration. It's about one single file. -- nosy: +Big Stone ___ Python tracker

[issue32995] Add a glossary entry for context variables

2018-10-06 Thread Vinodhini
Change by Vinodhini : -- pull_requests: +9130 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34769] _asyncgen_finalizer_hook running in wrong thread

2018-10-06 Thread twisteroid ambassador
twisteroid ambassador added the comment: I’m now convinced that the bug we’re fixing and the original bug with debug mode off are two separate bugs. With the fix in place and debug mode off, I’m still seeing the original buggy behavior. Bummer. In my actual program, I have an async

[issue32995] Add a glossary entry for context variables

2018-10-06 Thread Vinodhini
Change by Vinodhini : -- keywords: +patch pull_requests: +9128 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-10-06 Thread Nick Coghlan
Nick Coghlan added the comment: Directly addressing the topic of the bug: Py_SetProgramName() should be a relative or absolute path that can be used to set sys.executable and other values appropriately. This is used in Programs/_testembed.c for example. I didn't know it didn't work the

[issue34906] Fix typo in the documentation

2018-10-06 Thread Julien Palard
Julien Palard added the comment: New changeset 683281f536981da395575b5a07d6761118259fd2 by Julien Palard (Stéphane Wirtel) in branch 'master': bpo-34906: Doc: Fix typos (2) (GH-9735) https://github.com/python/cpython/commit/683281f536981da395575b5a07d6761118259fd2 --

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-06 Thread Steve Dower
Steve Dower added the comment: Until someone creates and enables a Sphinx extension/option to only generate ASCII output, it will remain. Volunteers are welcome -- ___ Python tracker

[issue34915] LWPCookieJar.save() creates *.lwp file in 644 mode

2018-10-06 Thread Ales Kvapil
New submission from Ales Kvapil : The LWPCookieJar.save() creates an *.lwp file containing session cookies in non-safe 644 mode (everyone can read it). This is not a secure behavior, especially for storing session keys or session cookies. The file should be created in 600 mode in my opinion.

[issue34909] StrEnum subclasses cannot be created

2018-10-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Ethan, I think you have fixed the issue, could you close this issue? Thank you -- ___ Python tracker ___

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After this change tests are failed when ran with -Werror. $ ./python -Werror -m test -vuall -m 'test_semaphore_tracker_sig*' test_multiprocessing_fork test_multiprocessing_forkserver test_multiprocessing_spawn ...

[issue31310] semaphore tracker isn't protected against crashes

2018-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, that bug was actually introduced in issue33613. -- stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue34848] range.index only takes one argument when it's documented as taking the usual 3

2018-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: One bug or feature request per issue please. If you want to change list.index() or operator.indexOf(), open new issues for this. This issue is for the error in the range.index() docstring. -- ___ Python tracker

[issue34848] range.index only takes one argument when it's documented as taking the usual 3

2018-10-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34876] Python3.8 changes how decorators are traced

2018-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See 09aaa88328a5083469b2682230c7f3c62942afab. The position of the AST node for decorated function and class was changed to the position of the first decorator. It was made to help inspect.getsource() for functions to include decorator lines in the result.

[issue34905] Cannot assign memoryview values from array.array

2018-10-06 Thread Stefan Krah
Stefan Krah added the comment: >>> mview.format 'B' >>> mview[:] = array.array('B', b'hello') Bytes have format 'B', so this works as expected. -- assignee: -> skrah nosy: +skrah resolution: -> not a bug stage: -> resolved status: open -> closed

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2018-10-06 Thread Thomas Jollans
Thomas Jollans added the comment: RFC 2396 explicitly excludes the use of [ and ] in URLs. RFC 2732 defines the syntax for IPv6 URLs, and allows [ and ] ONLY in the host part. So I'd say that the behaviour is arguably correct (if somewhat unfortunate)

[issue34891] Multi-processing example inaccurate warning

2018-10-06 Thread Anthony Flury
Anthony Flury added the comment: An example that does work : $ python3 Python 3.6.6 (default, Sep 12 2018, 18:26:19) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux Type "help", "copyright", "credits" or "license" for more information. >>>

[issue34903] strptime %d handling of single digit day of month

2018-10-06 Thread Mike Gleen
Mike Gleen added the comment: Thanks for the quick response. I would be happy to write a pull request for the doc change. I've never done this before so it'll take a little while to get my head around the process, but the "Helping with Documentation" chapter seems good. Mike On Sat, Oct 6,

[issue34905] Cannot assign memoryview values from array.array

2018-10-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34914] Clarify text encoding used to enable UTF-8 mode

2018-10-06 Thread Nick Coghlan
New submission from Nick Coghlan : While working on the docs updates for bpo-34589 (clarifying that "PYTHONCOERCECLOCALE=0" and "PYTHONCOERCELOCALE=warn" need both the environment variable name and the value to be encoded as ASCII in order to have any effect), I realised that it was less

[issue29341] Missing accepting path-like object in docstrings of os module functions

2018-10-06 Thread Vinodhini
Vinodhini added the comment: This is now carried forward in 3.8 also. Is anyone working on this issue ? It needs to be corrected in doc-string for all method where its applicable -- nosy: +Vinu2003 ___ Python tracker

[issue34909] StrEnum subclasses cannot be created

2018-10-06 Thread Ethan Furman
Ethan Furman added the comment: New changeset 453b3b0e87cb16345c276b9064a4480ce3794a74 by Ethan Furman (Miss Islington (bot)) in branch '3.7': bpo-34909: keep searching mixins until base class is found (GH-9737) (GH-9738)

[issue34910] PyObject_Print() doesn't always return -1 on error

2018-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Zackery for catching such kind of errors. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34910] PyObject_Print() doesn't always return -1 on error

2018-10-06 Thread miss-islington
miss-islington added the comment: New changeset 177254c96f9258a62e3e571c2aee0b642070a374 by Miss Islington (bot) in branch '3.6': bpo-34910: Ensure that PyObject_Print() always returns -1 on error. (GH-9733) https://github.com/python/cpython/commit/177254c96f9258a62e3e571c2aee0b642070a374

[issue34910] PyObject_Print() doesn't always return -1 on error

2018-10-06 Thread miss-islington
miss-islington added the comment: New changeset 49fb49d6f57661f2a7601f1d759163866f707fed by Miss Islington (bot) in branch '3.7': bpo-34910: Ensure that PyObject_Print() always returns -1 on error. (GH-9733) https://github.com/python/cpython/commit/49fb49d6f57661f2a7601f1d759163866f707fed

[issue34913] Document gzip command line interface

2018-10-06 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : gzip supports command line interface with `python -m gzip` like zipfile and tarfile but there is no help available from the command line which can be covered when issue23596 is merged that uses argparse along with tests for which are also

[issue34910] PyObject_Print() doesn't always return -1 on error

2018-10-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +9127 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34910] PyObject_Print() doesn't always return -1 on error

2018-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ae62f015240c9162773341a9922794e6b960779d by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-34910: Ensure that PyObject_Print() always returns -1 on error. (GH-9733)

[issue34910] PyObject_Print() doesn't always return -1 on error

2018-10-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +9126 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34909] StrEnum subclasses cannot be created

2018-10-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +9125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34909] StrEnum subclasses cannot be created

2018-10-06 Thread Ethan Furman
Ethan Furman added the comment: New changeset cd45385ffad8910293e5659cfe7ab036e70613b7 by Ethan Furman in branch 'master': bpo-34909: keep searching mixins until base class is found (GH-9737) https://github.com/python/cpython/commit/cd45385ffad8910293e5659cfe7ab036e70613b7 --

[issue34903] strptime %d handling of single digit day of month

2018-10-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: In addition to %d there are also other items that support single digit though zero padding is mentioned with strptime as below in the context of strftime : >>> import datetime >>> datetime.datetime.strptime("1/1/2018 1:1:1", "%d/%m/%Y %I:%M:%S")

[issue33173] GzipFile's .seekable() returns True even if underlying buffer is not seekable

2018-10-06 Thread Martin Panter
Martin Panter added the comment: If a change is made, it would be nice to bring the “gzip”, “bzip” and LZMA modules closer together. The current “bzip” and LZMA modules rely on the underlying “seekable” method without a fallback implementation, but also have a check for read mode. I think