[issue30206] data parameter for binascii.b2a_base64 is not positional-only

2017-04-30 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: -Python 3.6 ___ Python tracker

[issue30196] Add __matmul__ to collections.Counter

2017-04-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue26362] Approved API for creating a temporary file path

2017-04-30 Thread Tim Chase
Tim Chase added the comment: As requested by Ben Finney[1], adding my use-case here. I'm attempting to make a hard-link from "a" to "b", but if "b" exists, os.link() will fail with an EEXISTS. I don't want to do os.unlink("b") # power-outage here means "b" is gone os.link("a", "b") I

[issue29679] Add @contextlib.asynccontextmanager

2017-04-30 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 2e624690bd74071358566300b7ef0bc45f444a30 by Yury Selivanov (Jelle Zijlstra) in branch 'master': bpo-29679: Implement @contextlib.asynccontextmanager (#360) https://github.com/python/cpython/commit/2e624690bd74071358566300b7ef0bc45f444a30

[issue30200] tkinter ListboxSelect

2017-04-30 Thread Louie Lu
Louie Lu added the comment: ah, I think Terry point out the problem behind why my 2.7 and Frank's 2.7 have different behavior. I'm using tk 8.6.6-1 on Linux, and it may be the problem from tk version. -- ___ Python tracker

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-04-30 Thread Yury Selivanov
Yury Selivanov added the comment: > The problem is that Python stdlib is quite limited: no HTTP, no SQL client, etc. An external tutorial can use 3rd party modules like aiohttp. Even without aiohttp we can show how to use asyncio correctly. I agree with Mariatta that we should have a tutorial

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-04-30 Thread STINNER Victor
STINNER Victor added the comment: Mariatta Wijaya added the comment: I think it will still be useful to have an authoritative tutorial within CPython docs. The problem is that Python stdlib is quite limited: no HTTP, no SQL client, etc. An external tutorial can use 3rd party modules like

[issue30200] tkinter ListboxSelect

2017-04-30 Thread Frank Pae
Frank Pae added the comment: I am not a profi, just a normal user, i do what i can so good i can I would like to thank all python developers (AND: I think your last question ist the right question) -- resolution: -> not a bug stage: test needed -> resolved status: open -> closed

[issue30218] shutil.unpack_archive doesn't support PathLike

2017-04-30 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- pull_requests: +1476 ___ Python tracker ___ ___

[issue30218] shutil.unpack_archive doesn't support PathLike

2017-04-30 Thread Jelle Zijlstra
New submission from Jelle Zijlstra: According to PEP 519, it should. I'll submit a PR soon. -- components: Library (Lib) messages: 292642 nosy: Jelle Zijlstra, brett.cannon, tarek priority: normal severity: normal status: open title: shutil.unpack_archive doesn't support PathLike

[issue28556] typing.py upgrades

2017-04-30 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- pull_requests: +1475 ___ Python tracker ___ ___

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-04-30 Thread Eric O. LEBIGOT
New submission from Eric O. LEBIGOT: The index (https://docs.python.org/3.6/genindex-Symbols.html) is missing an entry for the tilde operator ~ (there is also no entry under "tilde"). A relevant pointer could be to object.__invert__

[issue30200] tkinter ListboxSelect

2017-04-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Frank, bigger is not better for demonstrating a problem. The only thing needed for this issue is a tk window with two list boxes. Having to click twice to get a window with more than just the two Listboxes is just noise. Anyway, I downloaded the file as

[issue30195] writing non-ascii characters in xml file using python code embedded in C

2017-04-30 Thread mahboubi
mahboubi added the comment: Probably it's my fault to use the word 'crash', what I mean is that generated report by python program contains the right result(the 'alerte' balise is added) but the other report generated by the same python program embedde in C didn't give the right result

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-04-30 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: I think it will still be useful to have an authoritative tutorial within CPython docs. -- ___ Python tracker ___

[issue20401] inspect.signature removes initial starred method params (bug)

2017-04-30 Thread Louie Lu
Louie Lu added the comment: Is there any reason that the second case Terry provide still will failed with ValueError? class C: def meth2(**kwds): pass ip.signature(C().meth2) Traceback (most recent call last): File "/home/linux/Python/cpython/Lib/idlelib/idle_test/test_calltips.py",

[issue19903] Idle: Use inspect.signature for calltips

2017-04-30 Thread Louie Lu
Louie Lu added the comment: I'm now testing to change getfullargspect to signature. It came out that signature can't accept bound method with only _VAR_KEYWORD. This test case will gave a ValueError: >>> class C: def m2(**kw): pass >>> c = C() >>>

[issue30216] xdrlib.Unpacker.unpack_string returns bytes (docs say should be str)

2017-04-30 Thread Xiang Zhang
Changes by Xiang Zhang : -- stage: -> needs patch versions: +Python 3.5, Python 3.7 ___ Python tracker ___

[issue30216] xdrlib.Unpacker.unpack_string returns bytes (docs say should be str)

2017-04-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The term "string" in names like "pack_string" refers to the XDR standard (RFC 1014). They have to stay, but the documentation must be updated to make clear that they work with bytes. -- ___ Python tracker

[issue30195] writing non-ascii characters in xml file using python code embedded in C

2017-04-30 Thread mahboubi
mahboubi added the comment: Also, using codecs.open(encoding='utf8') gives unhadled exception in C? but no problem using python code only. -- ___ Python tracker

[issue26143] Ensure that IDLE's stdlib imports are from the stdlib

2017-04-30 Thread Louie Lu
Louie Lu added the comment: Because sys module is correctly imported, we can modify sys.path to change the import behave. Add new PR 1364 for this. This add a new private function `_fix_import_path` that will remove the local import path `''`, when running IDLE from command line, it will

[issue30195] writing non-ascii characters in xml file using python code embedded in C

2017-04-30 Thread Xiang Zhang
Xiang Zhang added the comment: But I didn't see any crash either. You'd better provide a simple reproduce program, not involving so much logic. Or could you debug it and provide a crash backtrace? -- ___ Python tracker

[issue30195] writing non-ascii characters in xml file using python code embedded in C

2017-04-30 Thread mahboubi
mahboubi added the comment: Thank you xiang zhang for your reply. I think that the problem is not in xml_file.write(doc.toprettyxml()) because it works using python only, and the C problem dosen't work since you didn't get any 'alerte' balise. -- status: pending -> open

[issue26143] Ensure that IDLE's stdlib imports are from the stdlib

2017-04-30 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1474 ___ Python tracker ___ ___ Python-bugs-list

[issue30195] writing non-ascii characters in xml file using python code embedded in C

2017-04-30 Thread Xiang Zhang
Xiang Zhang added the comment: IMHO this doesn't look like an error in xml library. With a little tweak in of your problem: adding encoding declaration, removing not needed imports, replace open with codecs.open(encoding='utf8') in create_report, the C problem works fine for me: [tmp]$ cat

[issue30216] xdrlib.Unpacker.unpack_string returns bytes (docs say should be str)

2017-04-30 Thread Xiang Zhang
Xiang Zhang added the comment: xdrlib doc seems still remain in 2.x world. 'string' is used to represent 'bytes'. And some methods' names like pack_fstring, pack_string seem not suitable in 3.x world. -- nosy: +haypo, serhiy.storchaka, xiang.zhang

[issue26253] tarfile in stream mode always set zlib compression level to 9

2017-04-30 Thread Xiang Zhang
Xiang Zhang added the comment: *compresslevel* takes effect for modes 'w:gz', 'r:gz', 'w:bz2', 'r:bz2', 'x:gz', 'x:bz2'. For stream modes, 'r|gz', 'w|gz', 'r|bz2', 'w|bz2', the *compresslevel* doesn't make sense. It seems not hard to make it possible but I'm not sure it's worth it or there is

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-04-30 Thread Marien Zwart
Marien Zwart added the comment: GNU readline 7.0 introduces the problematic use of pselect(). GNU readline 6.3 is unaffected (and presumably older versions as well). I didn't check other implementations. I'll see if I can get this fixed in GNU readline. The non-select code is still there,

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-04-30 Thread Martin Panter
Martin Panter added the comment: See Issue 27579, where Victor wanted to focus on outside of Python. -- nosy: +haypo, martin.panter ___ Python tracker

[issue15346] Tkinter extention modules have no documentation

2017-04-30 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +No Documentation on tkinter dnd module ___ Python tracker ___

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2017-04-30 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: Victor, The tracemalloc module is not available on platforms that provides own TLS implementation that uses PyMem_* functions. In the own implementation, it occurs deadlock by recursion call in thread key search. PyOnceVar API handles extendable array by

[issue30213] ZipFile from 'a'ppend-mode file generates invalid zip

2017-04-30 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue30210] No Documentation on tkinter dnd module

2017-04-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> needs patch ___ Python tracker ___

[issue30212] test_ssl.py is broken in Centos7

2017-04-30 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +haypo, xiang.zhang ___ Python tracker ___ ___

[issue30211] Bdb: add docstrings

2017-04-30 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- components: +Documentation -IDLE ___ Python tracker ___ ___

[issue30211] Bdb: add docstrings

2017-04-30 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- components: +IDLE -Documentation ___ Python tracker ___ ___

[issue30210] No Documentation on tkinter dnd module

2017-04-30 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +gpolo, serhiy.storchaka ___ Python tracker ___ ___

[issue30216] xdrlib.Unpacker.unpack_string returns bytes (docs say should be str)

2017-04-30 Thread Rupert Nash
New submission from Rupert Nash: According to the docs this method should return a str, but it returns bytes https://docs.python.org/3.6/library/xdrlib.html#xdrlib.Unpacker.unpack_string I can see three options: a default encoding should be applied the documentation updated to make clear this

[issue29136] Add OP_NO_TLSv1_3

2017-04-30 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +1473 ___ Python tracker ___ ___

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-04-30 Thread Antoine Pietri
Antoine Pietri added the comment: I can reproduce this bug. This behavior is really confusing. -- nosy: +seirl ___ Python tracker ___

[issue30208] Small typos in IDLE doc

2017-04-30 Thread Cheryl Sabella
Cheryl Sabella added the comment: LOL, well I made that a lot harder than you intended. :-) -- components: -Documentation ___ Python tracker ___

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

2017-04-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks Terry and Cheryl for splitting the issue :) -- ___ Python tracker ___

[issue30207] Rename test.test_support to test.support in 2.7

2017-04-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30207] Rename test.test_support to test.support in 2.7

2017-04-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a694e092f6356970ca0d3e86000a3a829fb212b4 by Serhiy Storchaka in branch '2.7': bpo-30207: Rename test.test_support to test.support. (#1353) https://github.com/python/cpython/commit/a694e092f6356970ca0d3e86000a3a829fb212b4 --

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2017-04-30 Thread Masayuki Yamamoto
Changes by Masayuki Yamamoto : -- pull_requests: +1472 ___ Python tracker ___ ___