[issue39257] contextvars.Context.run hangs forever in ProccessPoolExecutor

2020-01-10 Thread Yury Selivanov
Yury Selivanov added the comment: > This throws 'cannot pickle Context' Yes, this is expected. contextvars are not compatible with multiprocessing. > This hangs forever * This hanging part is weird, and most likely hints at a bug in multiprocessing. --

[issue38330] httplib specifies content-length when transfer-encoding present

2020-01-10 Thread apmatthews
apmatthews added the comment: ping :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39219] Fix attributes of syntax errors raized in the tokenizer

2020-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: On entry of '0xz', IDLE from 3.6 to date highlights the '0x' part of the original entry. I presume it can do this because it ignores the text attribute, and because bytes == chars for at least '0x'. The 'proposed PR' is not listed here. Is it not yet

[issue39292] syslog constants behind rfc

2020-01-10 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +17353 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17945 ___ Python tracker ___

[issue39257] contextvars.Context.run hangs forever in ProccessPoolExecutor

2020-01-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- Removed message: https://bugs.python.org/msg359576 ___ Python tracker ___ ___ Python-bugs-list

[issue34297] Windows py.exe launcher fail to handle quote correctly

2020-01-10 Thread Maxime Belanger
Change by Maxime Belanger : -- nosy: +Maxime Belanger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39295] usage of bitfields in ctypes structures changed between 3.7.5 and 3.7.6

2020-01-10 Thread Matthew Newville
New submission from Matthew Newville : We have a library (https://github.com/pyepics/pyepics) that wraps several C structures for a communication protocol library that involves many C->Python callbacks. One of the simpler structures we wrap with ctypes is defined with typedef struct

[issue39292] syslog constants behind rfc

2020-01-10 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset ce54519aa09772f4173b8c17410ed77e403f3ebf by Vinay Sajip in branch 'master': bpo-39292: Add missing syslog facility codes. (GH-17945) https://github.com/python/cpython/commit/ce54519aa09772f4173b8c17410ed77e403f3ebf --

[issue39291] "pathlib.Path.link_to()" and "pathlib.Path.symlink_to()" have reversed usage

2020-01-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ahah. Nice catch! Well, it's a pity this got overlooked when we added Path.link_to(). But I'm afraid it's late to change it now, since this has been released, and changing the argument order would break existing code in potentially dangerous ways. Note

[issue39291] "pathlib.Path.link_to()" and "pathlib.Path.symlink_to()" have reversed usage

2020-01-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Closing as won't fix. If you feel strongly about this, I would suggest to bring the discussion on python-dev: https://mail.python.org/mailman3/lists/python-dev.python.org/ -- resolution: -> wont fix stage: -> resolved status: open -> closed

[issue38901] [venv] Add a CLI flag to venv to use the pwd basename as the prompt

2020-01-10 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +17354 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17946 ___ Python tracker ___

[issue36556] Trashcan causing duplicated __del__ calls

2020-01-10 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32021] Brotli encoding is not recognized by mimetypes

2020-01-10 Thread Cheryl Sabella
Cheryl Sabella added the comment: Now that two years have passed, is there any additional info as to whether this should be added or not? It does seem that the format is active (https://github.com/google/brotli). -- nosy: +cheryl.sabella versions: +Python 3.8, Python 3.9 -Python

[issue17254] add thai encoding aliases to encodings.aliases

2020-01-10 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.9 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39217] GC of a ctypes object causes application crash

2020-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: "Is this a bug" questions are often better asked on python-list. (I don't know.) If so, the bug needed to be tested on the current development version (3.9 now). Likely, someone on python-list will try given reproducible code. 2.7 has reach EOL.

[issue39289] crypt.crypt fail with OSError "[Errno 22] Invalid argument" on 3.9 where it didn't on 3.8

2020-01-10 Thread Vinay Sajip
Vinay Sajip added the comment: Another data point: both failing machines were VMware virtual machines. -- ___ Python tracker ___

[issue1531415] parsetok.c emits warnings by writing to stderr

2020-01-10 Thread Brett Cannon
Brett Cannon added the comment: Pablo, is this still a thing to care about? -- nosy: +pablogsal ___ Python tracker ___ ___

[issue1596321] KeyError at exit after 'import threading' in other thread

2020-01-10 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39292] syslog constants behind rfc

2020-01-10 Thread Batuhan
Batuhan added the comment: @vinay.sajip PR 17945 looks resolved this, can this issue be closed? -- nosy: +BTaskaya ___ Python tracker ___

[issue39296] Windows register keys

2020-01-10 Thread Tony
New submission from Tony : It would be more practical to name the Windows main registry keys 'python', with for example 'python32' or 'python64'. This would make searching the registry for registered python versions (single and/or multi users) a lot easier. -- components: Windows

[issue39288] Add math.nextafter(a, b)

2020-01-10 Thread Mark Dickinson
Mark Dickinson added the comment: I'm not opposed to some form of this by any means, but I fear there's some bikeshedding to go through, both on the name and the functionality (one function with two arguments, or two functions each taking a single argument?). C 99 prescribes "nextafter" and

[issue39247] dataclass defaults and property don't work together

2020-01-10 Thread Juan Arrivillaga
Juan Arrivillaga added the comment: So, after glancing at the source code: https://github.com/python/cpython/blob/ce54519aa09772f4173b8c17410ed77e403f3ebf/Lib/dataclasses.py#L869 During this processing of fields, couldn't you just special case property/descriptor objects? -- nosy:

[issue39293] Windows 10 64-bit needs reboot

2020-01-10 Thread Tony
New submission from Tony : After installing python 3.8.1 64-bit, on Windows 10 64-bit version 1909, the system needs to be rebooted to validate all settings in the registry. Otherwise will cause a lot of exceptions, like Path not found etc. -- components: Installation messages:

[issue36516] Python Launcher can not recognize pyw file as Python GUI Script file type correctly.

2020-01-10 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39207] concurrent.futures.ProcessPoolExecutor does not properly reap jobs and spawns too many workers

2020-01-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +bquinlan, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39204] Automate adding Type Annotations to Documentation

2020-01-10 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4347] Circular dependency causes SystemError when adding new syntax

2020-01-10 Thread Brett Cannon
Brett Cannon added the comment: Pablo, is this still an issue? -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list

[issue4347] Circular dependency causes SystemError when adding new syntax

2020-01-10 Thread Brett Cannon
Change by Brett Cannon : -- resolution: wont fix -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39292] syslog constants behind rfc

2020-01-10 Thread Vinay Sajip
Vinay Sajip added the comment: > can this issue be closed? Not quite yet. Waiting for feedback from the original reporter as to whether this change meets the requirements. I've also treated this as an enhancement rather than a bug, and so I am not currently planning to back-port these

[issue39294] zipfile.ZipInfo objects contain invalid 'extra' fields.

2020-01-10 Thread Bram Stolk
New submission from Bram Stolk : This has been tested with Windows Python 2.7 and Python 3.8 If you get the ZipInfo objects of a ZIP file that is larger than 2GiB, then all the ZipInfo entries with a header offset > 2G will report phantom 'extra' data. import zipfile zipname =

[issue39289] crypt.crypt fail with OSError "[Errno 22] Invalid argument" on 3.9 where it didn't on 3.8

2020-01-10 Thread Vinay Sajip
Vinay Sajip added the comment: I can also reproduce it on Ubuntu 16.04.6 LTS (the first Ubuntu was the Linux Mint version based on Ubuntu 18.04). -- ___ Python tracker ___

[issue1674555] sys.path in tests contains system directories

2020-01-10 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2636] Adding a new regex module (compatible with re)

2020-01-10 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19557] ast - docs for every node type are missing

2020-01-10 Thread Batuhan
Batuhan added the comment: @pablogsal is working on documenting nodes (not every node type that exists, the ones that aren't deprecated) in PR 17812 -- nosy: +BTaskaya, pablogsal ___ Python tracker

[issue39289] crypt.crypt fail with OSError "[Errno 22] Invalid argument" on 3.9 where it didn't on 3.8

2020-01-10 Thread Vinay Sajip
Vinay Sajip added the comment: It appears that a check for the return value from the crypt/crypt_r primitives was added to fix bpo-38402. So, this is expected behaviour in Python 3.9. Change was in https://github.com/python/cpython/commit/0d3fe8ae4961bf551e7d5e42559e2ede1a08fd7c --

[issue39247] dataclass defaults and property don't work together

2020-01-10 Thread Juan Arrivillaga
Juan Arrivillaga added the comment: Actually, couldn't the following be a workaround, just set the property on the class after the class definition: import dataclasses import typing @dataclasses.dataclass class FileObject: uploaded_by:typing.Optional[None]=None def

[issue17013] Allow waiting on a mock

2020-01-10 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38567] urllib.parse.unquote_plus raises incorrect error message when string parameter is bytes

2020-01-10 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39247] dataclass defaults and property don't work together

2020-01-10 Thread Eric V. Smith
Eric V. Smith added the comment: > During this processing of fields, couldn't you just special case > property/descriptor objects? What if you want the field to be a descriptor? I think the best way of handling this would be to use some sentinel value for the default, and if found look up

[issue39300] dataclasses non-default argument follows default argument

2020-01-10 Thread lijok
New submission from lijok : from dataclasses import dataclass @dataclass class A: PARAM: int @dataclass class B(A): ARG: int PARAM: int = 1 Traceback (most recent call last): File "", line 2, in File

[issue17718] boolop constant checking for if/while

2020-01-10 Thread Zackery Spytz
Zackery Spytz added the comment: I think this issue should be closed. -- nosy: +ZackerySpytz ___ Python tracker ___ ___

[issue38704] Prevent installation on unsupported Windows versions

2020-01-10 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39274] Conversion from fractions.Fraction to bool

2020-01-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg359674 ___ Python tracker ___ ___ Python-bugs-list

[issue39298] add BLAKE3 to hashlib

2020-01-10 Thread Larry Hastings
New submission from Larry Hastings : >From 3/4 of the team that brought you BLAKE2, now comes... BLAKE3! https://github.com/BLAKE3-team/BLAKE3 BLAKE3 is a brand new hashing function. It's fast, it's paralellizeable, and unlike BLAKE2 there's only one variant. I've experimented with it a

[issue39297] Synchronize importlib.metadata with importlib_metadata 1.4

2020-01-10 Thread Jason R. Coombs
New submission from Jason R. Coombs : Importlib_metadata 1.4 adds performance improvements to the distribution discovery mechanism. Let's incorporate those upstream. -- components: Library (Lib) messages: 359773 nosy: jaraco priority: normal severity: normal status: open title:

[issue39249] difflib SequenceMatcher 200 char length limitation for ratio calculation

2020-01-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> difflib SequenceMatcher ratio() still have unpredictable behavior ___ Python tracker

[issue39288] Add math.nextafter(a, b)

2020-01-10 Thread Tim Peters
Tim Peters added the comment: No doubt that something along these lines would be useful. `nextafter()` is too widely implemented to fight against, despite the sucky name ;-) I believe the rest should be straightforward (for those who want them) to do with one-liners, so there's not much of

[issue17718] boolop constant checking for if/while

2020-01-10 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39231] Mistaken notion in tutorial

2020-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://docs.python.org/3/tutorial/controlflow.html#function-annotations is the direct link. As Mark said, 'ham' is a required positional-or-keyword argument. 'eggs' is an optional 'positional-or-keyword. The sentence as is is wrong, even if Robert garbled

[issue39275] Traceback off by one line when

2020-01-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39297] Synchronize importlib.metadata with importlib_metadata 1.4

2020-01-10 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +17355 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17947 ___ Python tracker ___

[issue39288] Add math.nextafter(a, b)

2020-01-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: I agree, "nextafter" is so widely used it's probably pointless to fight against the name :-) Mark: "IEEE 754, on the other hand, requires instead nextUp and nextDown". I know Wikipedia isn't a primary source, but it says IEEE 754 recommends nextafter(x,

[issue39300] dataclasses non-default argument follows default argument

2020-01-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also issue36077 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39300] dataclasses non-default argument follows default argument

2020-01-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > TypeError will be raised if a field without a default value follows a field > with a default value. This is true either when this occurs in a single class, > or as a result of class inheritance. I think this is a combination of the above

[issue38704] Prevent installation on unsupported Windows versions

2020-01-10 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +17357 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17950 ___ Python tracker

[issue39288] Add math.nextafter(a, b)

2020-01-10 Thread STINNER Victor
STINNER Victor added the comment: > NumPy has nextafter. That's why I proposed math.nextafter() name. Moreover, in the math module, most functions reuse the same names than C function names: expm1(), atan2(), erf(), etc. > IEEE 754, on the other hand, requires instead nextUp and nextDown,

[issue39207] concurrent.futures.ProcessPoolExecutor does not properly reap jobs and spawns too many workers

2020-01-10 Thread Kyle Stanley
Kyle Stanley added the comment: > What "ignores the max_workers argument" means? >From my understanding, their argument was that the parameter name >"max_workers" and documentation implies that it will spawn processes as needed >up to *max_workers* based on the number of jobs scheduled. >

[issue39299] Improve test coverage for mimetypes module

2020-01-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +17356 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17949 ___ Python tracker

[issue39299] Improve test coverage for mimetypes module

2020-01-10 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Currently the test coverage for mimetypes module is at 57% https://codecov.io/gh/python/cpython/src/43682f1e39a3c61f0e8a638b887bcdcbfef766c5/Lib/mimetypes.py . I propose adding the following tests to increase the coverage. * Add test for case

[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

2020-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: As is true for most special methods, it is a bug for __repr__ methods to raise. They should return a string, as documented. Special method wrappers generally assume that the wrapped methods work. In particular, repr assumes this, and so do the __repr__

[issue39288] Add math.nextafter(a, b)

2020-01-10 Thread Tim Peters
Tim Peters added the comment: [Steven] > I think the second argument should also be optional, so > that nextafter(x) returns the next representable float. That's why the name sucks - there are, in general, two adjacent floats, so "next" is ambiguous. I expect you intend that y default to

[issue39298] add BLAKE3 to hashlib

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

[issue39298] add BLAKE3 to hashlib

2020-01-10 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-01-10 Thread Nick Coghlan
New submission from Nick Coghlan : While reviewing ISO-IECJTC1-SC22-WG23's latest draft of their Python security annex, I noticed that https://docs.python.org/3.7/library/stdtypes.html#bitwise-operations-on-integer-types doesn't explicitly state that *floor* division is used for right shift

[issue39300] dataclasses non-default argument follows default argument

2020-01-10 Thread lijok
lijok added the comment: > I think this is a combination of the above statement at end of [0] and > inheritance following the order of the fields at [1] Ah, I see, so if I understand correctly the init method for the example given would become __init__(self, PARAM: int = 1, ARG: int) since

[issue39200] Fix inaccurate TypeError messages when calling with insufficient arguments

2020-01-10 Thread Dong-hee Na
Dong-hee Na added the comment: CPython or stdlib: There is no code depends on the error message of range and min/max. 3rd party: IMHO, if somebody relies on the error message, not error type, I think that the code pattern is bad usage And as I mentioned on msg359243, other python compatible

[issue15718] Possible OverflowError in __len__ method undocumented (when called via len() function)

2020-01-10 Thread Zac Hatfield-Dodds
Change by Zac Hatfield-Dodds : -- pull_requests: +17340 pull_request: https://github.com/python/cpython/pull/17934 ___ Python tracker ___

[issue39287] Document UTF-8 mode in the using/windows.

2020-01-10 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +17342 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17935 ___ Python tracker ___

[issue35164] socket.getfqdn and socket.gethostbyname fail on MacOS

2020-01-10 Thread George Hickman
George Hickman added the comment: I came across this today with the same timeout behaviour on macOS 10.14.6. After some digging I tracked it down to the Search Domains setting of my local network, this was set to "local", removing that immediately fixed the issue. -- nosy: +ghickman

[issue39287] Document UTF-8 mode in the using/windows.

2020-01-10 Thread Inada Naoki
New submission from Inada Naoki : I think the UTF-8 mode is very useful for Windows users. Let's add section for the UTF-8 mode in the using/windows. -- assignee: docs@python components: Documentation messages: 359722 nosy: docs@python, inada.naoki priority: normal severity: normal

[issue31829] Portability issues with pickle

2020-01-10 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39283] Add ability to inherit unittest arguement parser

2020-01-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please post the unittest script and the desired behavior? Are you testing your own argument parser created using argparse or want to write something replacing the argument parser of the unittest module like creating a custom unittest

[issue39285] PurePath.match indicates case-sensitive nature and presents a case-insensitive example

2020-01-10 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.match Under PurePath.match there is a statement that case-sensitivity is followed but presents an example in Windows where case insensitive match returns True. This is confusing

[issue21444] __len__ can't return big numbers

2020-01-10 Thread Zac Hatfield-Dodds
Change by Zac Hatfield-Dodds : -- pull_requests: +17341 pull_request: https://github.com/python/cpython/pull/17934 ___ Python tracker ___

[issue12159] Integer Overflow in __len__

2020-01-10 Thread Zac Hatfield-Dodds
Change by Zac Hatfield-Dodds : -- pull_requests: +17339 pull_request: https://github.com/python/cpython/pull/17934 ___ Python tracker ___

[issue39277] _PyTime_FromDouble() fails to detect an integer overflow when converting a C double to a C int64_t

2020-01-10 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +17338 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17933 ___ Python tracker ___

[issue39279] Don't allow non-Ascii digits in platform.py

2020-01-10 Thread Ram Rachum
Ram Rachum added the comment: My approach is that any input that's unexpected by the developer but accepted by the program could cause either a bug or a security problem, and should be rejected by the program. I don't have a specific example for this case. If you think I need to come up

[issue39286] Configure includes LIBS but does not pass it to distutils

2020-01-10 Thread Alex Grund
New submission from Alex Grund : When configuring with `LIBS=-lpthread` env var set, the pthread detection assumes that no flag is necessary and distutils will build all extensions without any flag for pthreads. This will make them fail, when they use certain pthread symbols on certain

[issue28143] ASDL compatibility with Python 3 system interpreter

2020-01-10 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39279] Don't allow non-Ascii digits in platform.py

2020-01-10 Thread Ezio Melotti
Ezio Melotti added the comment: Can you elaborate on the rational for this proposed change? I'm not sure if there cases where the digits are non-ASCII, but if there are, is rejecting them the right thing to do? In the code there's a comment that mentions that the Windows version can be

[issue37527] Timestamp conversion on windows fails with timestamps close to EPOCH

2020-01-10 Thread pingchao chen
Change by pingchao chen : -- keywords: +patch pull_requests: +17343 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/15498 ___ Python tracker

[issue34110] cPickle may raise AttributeError when loading concurrently in threads

2020-01-10 Thread Cheryl Sabella
Cheryl Sabella added the comment: Fixed in Python 3 with #34572. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed versions: -Python 3.7, Python 3.8 ___ Python tracker

[issue38259] having a PriorityQueue in multiprocessing.queue module like in queue module would be a plus

2020-01-10 Thread Yair Bonastre
Change by Yair Bonastre : -- versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39222] unittest.mock.Mock.parent is broken or undocumented

2020-01-10 Thread Mario Corchero
Mario Corchero added the comment: @cjw296 or @michael.foord might know why the attribute was exposed as plain "parent". It was added more than 8 years ago and I am unnable to follow the git commit history. They should then decide whether this is intenteded to be used by the users (which I

[issue39259] poplib.POP3/POP3_SSL should reject timeout = 0 (non-blocking mode)

2020-01-10 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +17344 pull_request: https://github.com/python/cpython/pull/17936 ___ Python tracker ___

[issue39259] poplib.POP3/POP3_SSL should reject timeout = 0 (non-blocking mode)

2020-01-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset c39b52f1527868c7ada9385669c38edf98858921 by Victor Stinner (Dong-hee Na) in branch 'master': bpo-39259: poplib now rejects timeout = 0 (GH-17912) https://github.com/python/cpython/commit/c39b52f1527868c7ada9385669c38edf98858921 --

[issue39222] unittest.mock.Mock.parent is broken or undocumented

2020-01-10 Thread Chris Withers
Chris Withers added the comment: I thought we'd already changed this to _mock_parent in the last year or so? -- ___ Python tracker ___

[issue39222] unittest.mock.Mock.parent is broken or undocumented

2020-01-10 Thread Mario Corchero
Mario Corchero added the comment: If you refer to https://bugs.python.org/issue35357, this issue refers to `parent` at the time of creation of the mock. In the init it is still referenced as "parent". The question is whether we want to also mangle "parent" in the __init__, as it seems it

[issue39288] Add math.nextafter(a, b)

2020-01-10 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +17345 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17937 ___ Python tracker ___

[issue39277] _PyTime_FromDouble() fails to detect an integer overflow when converting a C double to a C int64_t

2020-01-10 Thread STINNER Victor
STINNER Victor added the comment: Similar issue in HHVM: * https://github.com/facebook/hhvm/issues/5932 * https://github.com/PPC64/hhvm/commit/7cdb76b4f495aa7aa40a696379862916c27f5828 -- ___ Python tracker

[issue39280] Don't allow datetime parsing to accept non-Ascii digits

2020-01-10 Thread Paul Ganssle
Paul Ganssle added the comment: > Yes, but not within the same format. If someone were to choose the format > '2014-04-10T24:00:00', they would have a reasonable expectation that there is > only one unique string that corresponds with that datetime That's a particularly bad example, because

[issue39288] Add math.nextafter(a, b)

2020-01-10 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +3.3regression nosy: +lemburg, mark.dickinson, rhettinger, stutzbach ___ Python tracker ___

[issue39280] Don't allow datetime parsing to accept non-Ascii digits

2020-01-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: > If all we're going to do is > switch [0-9] to \d (which won't work for the places where it's > actually [1-9], mind you) Ah, that's a good point. [...] > we're better off resolving the > inconsistency by requiring ASCII digits and considering non-ASCII

[issue39288] Add math.nextafter(a, b)

2020-01-10 Thread STINNER Victor
New submission from STINNER Victor : Linux manual page of nextafter(): """ The nextafter() function return the next representable floating-point value following x in the direction of y. If y is less than x, these functions will return the largest representable number less than x. If x

[issue18233] SSLSocket.getpeercertchain()

2020-01-10 Thread Chris Burr
Change by Chris Burr : -- pull_requests: +17346 pull_request: https://github.com/python/cpython/pull/17938 ___ Python tracker ___

[issue39289] crypt.crypt crashes on 3.9 where it didn't on 3.8

2020-01-10 Thread Vinay Sajip
New submission from Vinay Sajip : The following script (cryptest.py): import crypt for salt in ('foo', '$2a$04$5BJqKfqMQvV7nS.yUguNcueVirQqDBGaLXSqj.rs.pZPlNR0UX/HK'): t = 'test' h = crypt.crypt(t, salt) print("'%s' with '%s' -> %s" % (t, salt, h)) crashes in 3.9, whereas it

[issue39289] crypt.crypt fail with OSError "[Errno 22] Invalid argument" on 3.9 where it didn't on 3.8

2020-01-10 Thread STINNER Victor
Change by STINNER Victor : -- title: crypt.crypt crashes on 3.9 where it didn't on 3.8 -> crypt.crypt fail with OSError "[Errno 22] Invalid argument" on 3.9 where it didn't on 3.8 ___ Python tracker

[issue39289] crypt.crypt crashes on 3.9 where it didn't on 3.8

2020-01-10 Thread STINNER Victor
STINNER Victor added the comment: I fail to reproduce the issue on the master branch of Python on Fedora 31. -- nosy: +vstinner ___ Python tracker ___

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2020-01-10 Thread Jason R. Coombs
Jason R. Coombs added the comment: In issue39103, I filed a bug relating to this issue. I'd like for Python to provide a portable implementation of strftime instead of just documenting that the version isn't portable. Given that this ticket assigned to 'docs' suggests that a portable

[issue39200] Fix inaccurate TypeError messages when calling with insufficient arguments

2020-01-10 Thread STINNER Victor
STINNER Victor added the comment: Dong-hee, Pablo: Should we backport the two fixes to 3.7 and 3.8 branches? IMHO yes, we should backport. -- ___ Python tracker ___

  1   2   >