[issue34850] Emit a syntax warning for "is" with a literal

2019-06-09 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34850] Emit a syntax warning for "is" with a literal

2019-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Should this also produce warnings for `list` / `dict` / `set` literals? No, because these cases are useless expressions, but they are not hidden bugs. The result is always False and does not rely on the implementation. > SyntaxWarnings should be raised

[issue37211] obmalloc: eliminate limit on pool size

2019-06-09 Thread Tim Peters
Change by Tim Peters : -- assignee: -> tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32884] Adding the ability for getpass to print asterisks when password is typed

2019-06-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: Adding the ability for getpass to print asterisks when passowrd is typed -> Adding the ability for getpass to print asterisks when password is typed ___ Python tracker

[issue37206] Incorrect application of Argument Clinic to dict.pop()

2019-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 13933 implements the first option. It fixes similar issues with other functions so it should be backported to 3.7. The second option is considered as a new feature and can go only in 3.9. -- ___ Python

[issue37206] Incorrect application of Argument Clinic to dict.pop()

2019-06-09 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +13803 pull_request: https://github.com/python/cpython/pull/13935 ___ Python tracker ___

[issue34850] Emit a syntax warning for "is" with a literal

2019-06-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: Bachsau, to respond to the substance of your comments: it is not the *primary* purpose of a compiler to teach, but compiler warnings on potentially wrong behaviour is a long-standing tradition in many languages, including Python. This is not the first

[issue37172] Odd error awaiting a Future

2019-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK. I am quitting here because asyncio and futures are outside my expertise. -- ___ Python tracker ___

[issue37172] Odd error awaiting a Future

2019-06-09 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34850] Emit a syntax warning for "is" with a literal

2019-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: "This is bullshit." struck me as jarring and rude. I will stop there. -- ___ Python tracker ___

[issue34850] Emit a syntax warning for "is" with a literal

2019-06-09 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37172] Odd error awaiting a Future

2019-06-09 Thread Dima Tisnek
Dima Tisnek added the comment: Hi Terry, Yes, I have a specific suggestion: The error `RuntimeError: await wasn't used with future` is misleading. I'm not sure if changing error text is enough. I think that Future.__await__ should be fixed; I think that `await f` should be idempotent, that

[issue34850] Emit a syntax warning for "is" with a literal

2019-06-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: > (message from a code of conduct violating troll deleted) How did Bachsau violate the code of conduct, and what evidence do you have that they were anything but 100% sincere in their comments? >From where I am sitting, the only person violating the CoC is

[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'max(n, 50)' should have been 'min(n, 50)' Tal, does you comment avove about the former apply when corrected to the latter? Both get... and setrecursionlimit should be wrapped in a function, such as 'wrap_recursionlimits', called from run.main, each

[issue37211] obmalloc: eliminate limit on pool size

2019-06-09 Thread Tim Peters
Change by Tim Peters : -- keywords: +patch pull_requests: +13801 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13934 ___ Python tracker ___

[issue37211] obmalloc: eliminate limit on pool size

2019-06-09 Thread Tim Peters
New submission from Tim Peters : On 64-bit Python, many object sizes essentially doubled over 32-bit Python, because Python objects are so heavy with pointers. More recently, forcing alignment to 16 bytes on 64-bit boxes boosted the memory requirements more modestly. But obmalloc's 256 KiB

[issue23649] tarfile not re-entrant for multi-threading

2019-06-09 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34850] Emit a syntax warning for "is" with a literal

2019-06-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: (message from a code of conduct violating troll deleted) -- ___ Python tracker ___ ___

[issue34850] Emit a syntax warning for "is" with a literal

2019-06-09 Thread Gregory P. Smith
Change by Gregory P. Smith : -- Removed message: https://bugs.python.org/msg345086 ___ Python tracker ___ ___ Python-bugs-list

[issue37210] Pure Python pickle module should not depend on _pickle.PickleBuffer

2019-06-09 Thread Alex Willmer
Alex Willmer added the comment: Attempting a PR -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37210] Pure Python pickle module should not depend on _pickle.PickleBuffer

2019-06-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: In short I'm not against making PickleBuffer optional but I'm not sure it makes a lot of sense. Would you make memoryview optional because it's written in C? Is anyone annoyed by the fact that something comes from _pickle.c. (note that the pure Python

[issue37210] Pure Python pickle module should not depend on _pickle.PickleBuffer

2019-06-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that PickleBuffer is really a built-in type (it's defined in Objects/picklebufobject.c). However it's exposed from _pickle.c because it doesn't make sense to expose it in the `builtins` module. -- ___ Python

[issue37203] Correct classmethod emulation in Descriptor HowTo Guide

2019-06-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: How about taking another look at this after I've finished my more extensive rewrite based on my course materials. -- ___ Python tracker

[issue37210] Pure Python pickle module should not depend on _pickle.PickleBuffer

2019-06-09 Thread Alex Willmer
Alex Willmer added the comment: Arggh, typo. I mean maximizing *your* convenience is paramount. -- ___ Python tracker ___ ___

[issue37206] Incorrect application of Argument Clinic to dict.pop()

2019-06-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would think that the best course of action is to revert the dict.pop() check-in for Python3.8, then reapply in 3.9 once a plan is worked out to expand the capabilities of the argument clinic and the expressiveness of signatures. The latter seem more

[issue37210] Pure Python pickle module should not depend on _pickle.PickleBuffer

2019-06-09 Thread Alex Willmer
Alex Willmer added the comment: I noticed this because I was experimenting with pickle.py from the 3.8 branch to support protocol 5 in https://github.com/moreati/pikl (and later to https://pypi.org/project/zodbpickle/). However I want to make it clear, if CPython maintainers wish to keep

[issue37210] Pure Python pickle module should not depend on _pickle.PickleBuffer

2019-06-09 Thread Christian Heimes
New submission from Christian Heimes : In https://twitter.com/moreati/status/1137815804530049028 Alex Willmer wrote: > In CPython 3.8dev the pure http://pickle.py module now depends on the C > _pickle module, but only for one class >

[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-06-09 Thread Tal Einat
Tal Einat added the comment: IMO just updating the documentation would not be enough. I suggest wrapping sys.setrecursionlimit() and *adding* 30 to the given limit, to offset the call stack depth added by IDLE. This makes more sense to me than max(n, 50), which I imagine would cause a lot

[issue26806] IDLE not displaying RecursionError tracebacks and hangs

2019-06-09 Thread Tal Einat
Change by Tal Einat : -- components: -Documentation versions: +Python 3.8, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker ___

[issue34850] Emit a syntax warning for "is" with a literal

2019-06-09 Thread Bachsau
Bachsau added the comment: This is bullshit. SyntaxWarnings should be raised on problems with the *syntax* not for ProgrammerMightBeDumb errors. There are a whole lot of things a programmer not knowing the language could do wrong. But these are syntactically valid expressions and it is not

[issue37206] Incorrect application of Argument Clinic to dict.pop()

2019-06-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +13800 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13933 ___ Python tracker

[issue36853] inconsistencies in docs builds (Sphinx 2)

2019-06-09 Thread Anthony Sottile
Change by Anthony Sottile : -- nosy: +Anthony Sottile ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36853] inconsistencies in docs builds (Sphinx 2)

2019-06-09 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +13799 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13579 ___ Python tracker ___

[issue35922] robotparser crawl_delay and request_rate do not work with no matching entry

2019-06-09 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 3.9 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37208] Weird exception behaviour in ProcessPoolExecutor

2019-06-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +bquinlan, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-09 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +13798 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/13932 ___ Python tracker

[issue32884] Adding the ability for getpass to print asterisks when passowrd is typed

2019-06-09 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35954] Incoherent type conversion in configparser

2019-06-09 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > IMO we should at most clarify in the docs. This makes sense, I will update my PR tomorrow. -- ___ Python tracker ___

[issue37206] Incorrect application of Argument Clinic to dict.pop()

2019-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am working on this issue and almost done. The questions is what inspect.Signature() and inspect.getfullargspec() should do with such functions. 1. Raise an exception as they did in old Python versions and as they do with builtin functions not converted

[issue37206] Incorrect application of Argument Clinic to dict.pop()

2019-06-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: > It is just a signature wrong. Yes, that is the part that needs to be fixed. The information it provides is incorrect. That is why this function wasn't converted long ago. -- ___ Python tracker

[issue37107] ensurepip --upgrade doesn't change the version of pip used by venv

2019-06-09 Thread Chris Withers
Chris Withers added the comment: I don't suppose there's any chance we can treat the misnaming of these options as the bugs they feel like, so so fix them for 3.7+, rather than having people battle on with the confusion for another 3+ years until 3.9 is mainstream? --

[issue36785] Implement PEP 574

2019-06-09 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c879ff247ae1b67a790ff98d2d59145302cd4e4e by Łukasz Langa (Antoine Pitrou) in branch 'master': bpo-36785: PEP 574 What's New entry (#13931) https://github.com/python/cpython/commit/c879ff247ae1b67a790ff98d2d59145302cd4e4e -- nosy:

[issue37209] Add what's new entries for pickle enhancements

2019-06-09 Thread Antoine Pitrou
New submission from Antoine Pitrou : The various pickle enhancements in 3.8 (apart from PEP 574) need to be mentioned in the What's New document (`Doc/whatsnew/3.8.rst`). -- assignee: docs@python components: Documentation, Library (Lib) messages: 345080 nosy: docs@python, ogrisel,

[issue36785] Implement PEP 574

2019-06-09 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +13797 pull_request: https://github.com/python/cpython/pull/13931 ___ Python tracker ___

[issue37208] Weird exception behaviour in ProcessPoolExecutor

2019-06-09 Thread Iceflower
New submission from Iceflower : I don't really know where this belongs, but it is at least for me not an expected behaviour. It is weird for me at all. Please take a look if this is an intended behaviour and why it is like that. Tested with py3.7.3, py3.8.0b1 ``` A process in the process

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2019-06-09 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +13796 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13930 ___ Python tracker ___

[issue19666] Format string for ASCII unicode or bytes-like object as readonly buffer

2019-06-09 Thread Batuhan
Batuhan added the comment: Don't we need to discuss it more before triage it as "patch required"? -- nosy: +BTaskaya ___ Python tracker ___

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2019-06-09 Thread Mark Shannon
New submission from Mark Shannon : PEP 590 allows us the short circuit the __new__, __init__ slow path for commonly created builtin types. As an initial step, we can speed up calls to range, list and dict by about 30%. See https://gist.github.com/markshannon/5cef3a74369391f6ef937d52cca9bfc8

[issue36670] test suite broken due to cpu usage feature on win 10/ german

2019-06-09 Thread Lorenz Mende
Lorenz Mende added the comment: Did some minor changes with win_utils. Encoding changed to 'oem'. @heckad: does this bugfix work for u? @all: please verify working of the changes with different localizations. thx -- Added file: https://bugs.python.org/file48406/win_utils.py

[issue36670] test suite broken due to cpu usage feature on win 10/ german

2019-06-09 Thread Lorenz Mende
Change by Lorenz Mende : Removed file: https://bugs.python.org/file48285/win_utils.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37198] _parse_localename fail to parse 'en_IL'

2019-06-09 Thread hodai goldman
hodai goldman added the comment: hi Michele, Yes i wold propose a Pull Request. SilentGhost: I don't know. -- ___ Python tracker ___

[issue37203] Correct classmethod emulation in Descriptor HowTo Guide

2019-06-09 Thread Géry
Géry added the comment: @Raymond Hettinger > The goal in the descriptor how-to is to give an understanding of how > descriptors work. Okay. So I don't know if that was clear in my last message but that also means replacing the current "Function" implementation: class Function(object):

[issue28869] __module__ attribute is not set correctly for a class created by direct metaclass call

2019-06-09 Thread Alejandro Gonzalez
Alejandro Gonzalez added the comment: Hello, I would like to add further on this issue. (I'm new to bpo. Please advise if this report could be better) Issue - Pickling breaks when attempting to dump an instance of a class that was defined by calling ABCMeta directly, because it