[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

[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

[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 ___ ___

[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:

[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

[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

[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

[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

[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:

[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

[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

[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,

[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. >

[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

[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

[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

[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

[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 ___

[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

[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

[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

[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,

[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__

[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

[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.

[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:

[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:

[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

[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

[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 ___

[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 ___

[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

[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

[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 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

[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

[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: 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 --

[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

[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

[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 ___

[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:

[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:

[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:

[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:

[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:

[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:

[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

[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 ___

[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 ___

[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 --

[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. --

[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

[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 ___

[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:

[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

[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

[issue39292] syslog constants behind rfc

2020-01-10 Thread SilentGhost
Change by SilentGhost : -- type: -> behavior versions: -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ ___

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

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

[issue39292] syslog constants behind rfc

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

[issue39292] syslog constants behind rfc

2020-01-10 Thread Ryan
New submission from Ryan : When using the SysLogHandler (https://docs.python.org/3/library/logging.handlers.html#logging.handlers.SysLogHandler) the supported facilities appear to be lagging the RFC (5454 ?), or at least what is being supported in other mainstream languages. I Specifically

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

2020-01-10 Thread Rockmizu
New submission from Rockmizu : Python version: Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32 The usage of symlink_to() is link.symlink_to(target) while the usage of link_to() is target.link_to(link). This could be confusing. Here is an

[issue39284] Flexible indentation

2020-01-10 Thread Eric V. Smith
Eric V. Smith added the comment: Please discuss this idea on the python-ideas mailing list first. It would also certainly require a PEP. But I don't want to get your hopes up: there's almost no chance that this would be accepted. I'm going to close this issue. If the idea gains any

[issue39290] lib2to3.fixes.fix_import: support imports_as_name in traverse_imports

2020-01-10 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +17352 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17944 ___ Python tracker ___

[issue39241] Popen of python3.6 hangs on os.read(errpipe_read, 50000)

2020-01-10 Thread STINNER Victor
STINNER Victor added the comment: I have no clue. Try to attach a debugger and try to inspect the Python frames. You can use gdb with python-gdb.py for that, for example. Or play with faulthandler, especially faulthandler.dump_traceback_later(). --

[issue39290] lib2to3.fixes.fix_import: support imports_as_name in traverse_imports

2020-01-10 Thread Batuhan
New submission from Batuhan : I've been working on custom lib2to3 fixers and I use some of the already definied utilites inside the fixers. But traverse_imports can't traverse from import names, which is pretty simple and straight forward to implement. -- messages: 359742 nosy:

[issue39241] Popen of python3.6 hangs on os.read(errpipe_read, 50000)

2020-01-10 Thread Xu
Xu added the comment: Thanks Stinner. Do you have some clues about this issue ? In my case, our test system use Popen to start a few infrastructure processes for tests going. After tests done we will kill all processes and start again for new round. Most of time it works fine. However we

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

2020-01-10 Thread STINNER Victor
STINNER Victor added the comment: > I'd like for Python to provide a portable implementation of strftime instead > of just documenting that the version isn't portable. If someone wants to do that, I suggest to first start with a project on PyPI. It sounds like a tricky project. Date, time,

[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: +17351 pull_request: https://github.com/python/cpython/pull/17939 ___ Python tracker ___

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

2020-01-10 Thread STINNER Victor
STINNER Victor added the comment: Backport PRs are ready for 3.7 and 3.8. Question: is there a risk of breaking the backward compatibility if a project unit test rely on the exact error message? If yes, maybe it's better to reject the backports and close this issue (only change the error

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

2020-01-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +17350 pull_request: https://github.com/python/cpython/pull/17943 ___ Python tracker ___

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

2020-01-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +17349 pull_request: https://github.com/python/cpython/pull/17942 ___ Python tracker ___

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

2020-01-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +17348 pull_request: https://github.com/python/cpython/pull/17941 ___ Python tracker ___

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

2020-01-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +17347 pull_request: https://github.com/python/cpython/pull/17940 ___ Python tracker ___

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

2020-01-10 Thread Dong-hee Na
Dong-hee Na added the comment: Victor: Changes are only correcting the message. I am +1 on backporting :) -- ___ Python tracker ___

[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 ___

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

2020-01-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset abdc634f337ce4943cd7d13587936837aac2ecc9 by Victor Stinner (Dong-hee Na) in branch 'master': bpo-39200: Correct the error message for min/max builtin function (GH-17814)

[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

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

2020-01-10 Thread Dong-hee Na
Dong-hee Na added the comment: I also fail to reproduce the issue on the master branch of Python on macOS. -- nosy: +corona10 ___ 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 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 ___

[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

[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 ___

[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 ___

[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 ___

[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

[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

[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

[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

[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 --

[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 ___

  1   2   >