[issue37302] Add an "onerror" callback parameter to the tempfile.TemporaryDirectory member functions

2019-06-15 Thread Jeffrey Kintscher
New submission from Jeffrey Kintscher : Add an "onerror" callback parameter to the tempfile.TemporaryDirectory member functions so that the caller can perform special handling for directory items that it can't automatically delete. The caller created the undeletable directory entries, so it i

[issue37303] Rename parameter name of imghdr what

2019-06-15 Thread Dong-hee Na
New submission from Dong-hee Na : Still https://github.com/python/cpython/blob/3a1d50e7e573efb577714146bed5c03b9c95f466/Lib/imghdr.py#L11 signature is def what(file, h=None). I 'd like to suggest to update it into def what(filename, h=None) Also, the doc of imghdr represents it as the filenam

[issue37302] Add an "onerror" callback parameter to the tempfile.TemporaryDirectory member functions

2019-06-15 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue37303] Rename parameter name of imghdr what

2019-06-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: file can be a positional or keyword argument. Someone might be using it as a keyword argument and this would require a deprecation period before renaming could be done. ./python.exe Python 3.9.0a0 (heads/master:7a68f8c28b, Jun 15 2019, 21:00:05) [C

[issue37303] Rename parameter name of imghdr what

2019-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Inlike to sndhdr.what(), imghdr.what() accepts not only file names, by file objects theirself. The feature was added at 1997 in 45ac47c0b2798cc3a29cf5111694aba5e9347e08. -- nosy: +serhiy.storchaka resolution: -> rejected stage: -> resolved status

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

2019-06-15 Thread Tal Einat
Tal Einat added the comment: New changeset 8047e0e1c620f69cc21f9ca48b24bf2cdd5c3668 by Tal Einat (Rémi Lapeyre) in branch 'master': bpo-35922: Fix RobotFileParser when robots.txt has no relevant crawl delay or request rate (GH-11791) https://github.com/python/cpython/commit/8047e0e1c620f69cc2

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

2019-06-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +13970 pull_request: https://github.com/python/cpython/pull/14121 ___ Python tracker ___ __

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

2019-06-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +13971 pull_request: https://github.com/python/cpython/pull/14122 ___ Python tracker ___ __

[issue37295] Possible optimizations for math.comb()

2019-06-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Optimizations 2 and 3 look something like this: bc75 = [comb(75, r) for r in range(75//2+1)] bc150 = [comb(150, r) for r in range(150//2+1)] bc225 = [comb(225, r) for r in range(225//2+1)] def comb(n, k): if n < 0 or k < 0: raise Va

<    1   2