[issue43295] datetime.strptime emits IndexError on parsing 'z' as %z

2021-02-22 Thread itchyny
itchyny added the comment: I noticed another unexpectedeffect of the IGNORECASE flag. It enables some non-ascii characters to match against the alphabets. >>> from datetime import datetime >>> datetime.strptime("Apr\u0130l", "%B") Traceback (most recent call last): File "", line 1, in

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-22 Thread Inada Naoki
Inada Naoki added the comment: I noticed that namespace package support has been broken since this commit. https://github.com/python/cpython/commit/bbbcf8693b876daae4469765aa62f8924f39a7d2 Now namespace pacakge has __file__ attribute which is None. But... try:

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-02-22 Thread Ryan Hileman
Ryan Hileman added the comment: > Sounds good to me. We can deprecate RESTRICTED with no intention to remove it, since it's documented. > Do you want to prepare a PR for this? In case you missed it, the attached PR 24182 as of commit d3e998b is based on the steps I listed - I moved all of

[issue43295] datetime.strptime emits IndexError on parsing 'z' as %z

2021-02-22 Thread Noor Michael
Noor Michael added the comment: I will address the original issue regarding '%z', but the second issue actually has to do with the Unicode representation of Turkish characters. In Turkish, the letter I ('\u0049') is a capital ı ('\u0131') and the letter İ ('\u0130') is a capital i

[issue43295] datetime.strptime emits IndexError on parsing 'z' as %z

2021-02-22 Thread Noor Michael
Change by Noor Michael : -- keywords: +patch pull_requests: +23411 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24627 ___ Python tracker ___

[issue43303] ASAN : Memory leak in compilation

2021-02-22 Thread Ramin Farajpour Cami
New submission from Ramin Farajpour Cami : Hi, Asan has detected a memory leak : $ wget https://github.com/python/cpython/archive/v3.9.2.tar.gz $ tar xvf v3.9.2.tar.gz $ ./configure --disable-shared CFLAGS="-fsanitize=address -ggdb" CXXFLAGS="-fsanitize=address -ggdb"

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2021-02-22 Thread Christoph Anton Mitterer
Christoph Anton Mitterer added the comment: btw, just something for the record: I think the example given in msg109117 above is wrong: Depending on the read size it will produce different results, given how split() works: Imagine a byte sequence: >>> b"\0foo\0barbaz\0\0abcd".split(b"\0")

[issue43303] ASAN : Memory leak in compilation

2021-02-22 Thread Ramin Farajpour Cami
Change by Ramin Farajpour Cami : -- nosy: +christian.heimes, lys.nikolaou, pablogsal ___ Python tracker ___ ___ Python-bugs-list

[issue43304] THONNY 3.3.0 failing to install package MULTIPROCESSING

2021-02-22 Thread Noel del Rosario
New submission from Noel del Rosario : I am actually using a PYTHON IDE called THONNY 3.3.- and I am not geting any success to install the package MULTI{ROCESSING. Error message is shown below. requirement multiprocessing ERROR: No matching distribution found for multiprocessing Process

[issue26600] Thread safety issue with MagickMock __str__: sometimes returns MagickMock instead of str

2021-02-22 Thread Irit Katriel
Change by Irit Katriel : -- resolution: not a bug -> title: MagickMock __str__ sometimes returns MagickMock instead of str -> Thread safety issue with MagickMock __str__: sometimes returns MagickMock instead of str ___ Python tracker

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2021-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think so. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2021-02-22 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> later stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue24275] lookdict_* give up too soon

2021-02-22 Thread Inada Naoki
Inada Naoki added the comment: I'm +1 for this. Would you create a pull request on GitHub? -- ___ Python tracker ___ ___

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-22 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 ___ Python tracker ___

[issue43289] step bug in turtle's for loop

2021-02-22 Thread Yehuda Katz
Yehuda Katz added the comment: Thank you Dennis for taking the time to answer. Yehuda Virus-free. www.avg.com

[issue26600] MagickMock __str__ sometimes returns MagickMock instead of str

2021-02-22 Thread Irit Katriel
Change by Irit Katriel : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26600] MagickMock __str__ sometimes returns MagickMock instead of str

2021-02-22 Thread Irit Katriel
Irit Katriel added the comment: Why is this only relevant to multiple thread? -- ___ Python tracker ___ ___ Python-bugs-list

[issue43294] [sqlite3] unused variables in Connection begin, commit, and rollback

2021-02-22 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : In Modules/_sqlite/connection.c: pysqlite_connection_commit_impl(), pysqlite_connection_rollback_impl(), and _pysqlite_connection_begin() all call sqlite3_prepare_v2() with the fourth parameter (pzTail) set. This (output) parameter is never used,

[issue26600] MagickMock __str__ sometimes returns MagickMock instead of str

2021-02-22 Thread Uosiu
Stanisław Skonieczny (Uosiu) added the comment: When you just create a magick mock and then call `__str__` on it, it never throws an exception and always return a string. But... when you create a magick mock and then call `__str__` from two threads concurrently, one of them will raise an

[issue15108] Incomplete tuple created by PyTuple_New() and accessed via the GC can trigged a crash

2021-02-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I mainly agree on closing this issue as we already have a warning about this behaviour in gc.get_referrers and other friends. On the other hand I am still a bit afraid of a crash that could happen if the GC does a pass and one of these tuples is in

[issue26600] MagickMock __str__ sometimes returns MagickMock instead of str

2021-02-22 Thread Uosiu
Stanisław Skonieczny (Uosiu) added the comment: However there is still nothing in the docs that you have to mock `__str__` by yourself when using mock object with multiple threads. Otherwise calling `__str__` may result with raising exception if you are unlucky. Stanisław Skonieczny On Wed,

[issue43295] datetime.strptime emits IndexError on parsing 'z' as %z

2021-02-22 Thread itchyny
New submission from itchyny : In Python 3.9.2, parsing 'z' (small letter) as '%z' (time zone offset) using datetime.strptime emits an IndexError. >>> from datetime import datetime >>> datetime.strptime('z', '%z') Traceback (most recent call last): File "", line 1, in File

[issue43296] [sqlite3] sqlite3_value_bytes() should be called after sqlite3_value_blob()

2021-02-22 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : The sqlite3_value_*() API is almost identical to the sqlite3_column_*() API. sqlite3_value_bytes() should be called after we've converted the value using sqlite3_value_blob(). See also bpo-43249. -- components: Library (Lib) messages:

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2021-02-22 Thread Christoph Anton Mitterer
Christoph Anton Mitterer added the comment: Oh, what a pity,... Seemed like a pretty common use case, which is unnecessarily prone to buggy or inefficient (user-)implementations. -- ___ Python tracker

[issue43250] [C API] Deprecate or remove PyFPE_START_PROTECT() and PyFPE_END_PROTECT()

2021-02-22 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36346] Prepare for removing the legacy Unicode C API

2021-02-22 Thread Inada Naoki
Inada Naoki added the comment: New changeset 91a639a094978882caef91915c932fbb2fc347de by Inada Naoki in branch 'master': bpo-36346: Emit DeprecationWarning for PyArg_Parse() with 'u' or 'Z'. (GH-20927) https://github.com/python/cpython/commit/91a639a094978882caef91915c932fbb2fc347de

[issue41975] Textwrap to conform to https://www.unicode.org/reports/tr14/tr14-45.html

2021-02-22 Thread Борис Верховский
Change by Борис Верховский : -- nosy: +boris ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43295] datetime.strptime emits IndexError on parsing 'z' as %z

2021-02-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43298] Windows build issue

2021-02-22 Thread Coleman
Coleman added the comment: You can visit the link below and download the games without any problems. https://apkwill.com -- ___ Python tracker ___

[issue43301] Update form create for android

2021-02-22 Thread Éric Araujo
Change by Éric Araujo : Removed file: https://bugs.python.org/file49828/api.paypal.com.pem ___ Python tracker ___ ___ Python-bugs-list

[issue43298] Windows build cannot detect missing Windows SDK

2021-02-22 Thread Steve Dower
Steve Dower added the comment: This should mean that you haven't got the Windows SDK installed, though it might mean that you've got a *newer* WinSDK where they've changed the registration format. But more likely you deselected it when installing C++ support through Visual Studio. Could

[issue43301] Update form create for android

2021-02-22 Thread Éric Araujo
Éric Araujo added the comment: This does not look like a valid bug report. You can use a general Python support group to ask questions about how to write something, the Python bug tracker is not the right place for that. -- assignee: terry.reedy -> nosy: -barry, dstufft,

[issue43298] Windows build cannot detect missing Windows SDK

2021-02-22 Thread Kevin Thomas
Kevin Thomas added the comment: Thank you Steve. I did not have the latest installed which is Win10SDK_10.0.18362, therefore it did trigger that original error in msg387518. After installing, Win10SDK_10.0.18362, it did in-fact allow a successful compilation. Updating that error code

[issue42938] [security][CVE-2021-3177] ctypes double representation BoF

2021-02-22 Thread Christian Heimes
Christian Heimes added the comment: Alexander, this bug report is closed. Could you please open a new request and explain your proposal? -- nosy: +christian.heimes ___ Python tracker

[issue43298] Windows build issue

2021-02-22 Thread Kevin Thomas
New submission from Kevin Thomas : When compiling for Windows it does not properly handle the version string MSB4184 C:\Users\kevin\cpython>PCbuild\build.bat Using py -3.7 (found 3.7 with py.exe) Fetching external libraries... bzip2-1.0.6 already exists, skipping. sqlite-3.34.0.0 already

[issue43301] Update form create for android

2021-02-22 Thread Candra Wijaya
New submission from Candra Wijaya : I need documend create sistems -- assignee: terry.reedy components: C API, Demos and Tools, Distutils, FreeBSD, IDLE, Installation, Regular Expressions, Tests, ctypes, email messages: 387527 nosy: barry, dstufft, eric.araujo, ezio.melotti, koobs,

[issue43302] shutil. copy file throws incorrect SameFileError on Google Drive File Stream

2021-02-22 Thread Coleman
New submission from Coleman : When using shuttle. copy file on the Google Drive File Stream file way, an incorrect SameFileError can happen. MWE (assuming foo.txt exists in your google drive G:\\): >>> f1 = 'G:\\My Drive\\foo.txt' >>> f2 = 'G:\\My Drive\\foo2.txt' >>> import shutil >>>

[issue43247] How to search for a __main__ module using pyclbr in Python3?

2021-02-22 Thread Robert
Robert added the comment: # `__main__` of the source code directory: `/tmp/rebound/rebound`. # differentiate `__main__` of my target source code to read from the built-in `__main__`? In other words, how do I read the module `__main__` of the codebase: rebound? => when __main__.py is

[issue43301] Update form create for android

2021-02-22 Thread Candra Wijaya
Candra Wijaya added the comment: I need creat Payment -- resolution: -> works for me Added file: https://bugs.python.org/file49828/api.paypal.com.pem ___ Python tracker ___

[issue43260] Never release buffer when MemoryError in print()

2021-02-22 Thread STINNER Victor
STINNER Victor added the comment: I didn't understand the bug but thanks for fixing it :) -- ___ Python tracker ___ ___

[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

2021-02-22 Thread 双草酸酯
Change by 双草酸酯 : -- components: +Windows -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

2021-02-22 Thread 双草酸酯
Change by 双草酸酯 : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43297] bz2.open modes behaving differently than standard open() modes

2021-02-22 Thread Philipp Freyer
New submission from Philipp Freyer : The documentation clearly states that bz2.open(mode='r') opens a file in binary mode. I would have to use 'rt' for text mode. The basic Python open(mode='r') method opens a file in text mode. This is how I would expect any open(mode='r') method to work,

[issue43298] Windows build issue

2021-02-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From the merge: +++ b/Doc/library/unittest.rst @@ -330,7 +330,9 @@ Test modules and packages can customize test loading and discovery by through the `load_tests protocol`_. .. versionchanged:: 3.4 - Test discovery supports :term:`namespace packages `.

[issue43298] Windows build cannot detect missing Windows SDK

2021-02-22 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg387522 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33935] shutil.copyfile throws incorrect SameFileError on Google Drive File Stream

2021-02-22 Thread Eryk Sun
Eryk Sun added the comment: On second thought, I think it's cleaner and avoids potential race conditions to implement ntpath.sameopenfile(). Then use that to implement ntpath.samefile(). Here's a summary of suggested changes, with sample code to flesh out the concepts: * Extend

[issue41100] Support macOS 11 and Apple Silicon Macs

2021-02-22 Thread Gregory Szorc
Gregory Szorc added the comment: I ran into a minor issue with the ctypes extension and the _dyld_shared_cache_contains_path dependency that was added as part of this work (commit e8b1c038b14b5fc8120aab62c9bf5fb840274cb6). When building on Intel macOS 10.15 using an 11.x SDK, the configure

[issue43299] pyclbr.readmodule_ex traversing "import __main__": dies with ValueError: __main__.__spec__ is None / is not set

2021-02-22 Thread Robert
Change by Robert : -- keywords: +patch pull_requests: +23407 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24623 ___ Python tracker ___

[issue43298] Windows build cannot detect missing Windows SDK

2021-02-22 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg387525 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43298] Windows build cannot detect missing Windows SDK

2021-02-22 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg387521 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43301] Update form create for android

2021-02-22 Thread Candra Wijaya
Candra Wijaya added the comment: One again need -- resolution: not a bug -> postponed status: closed -> open versions: +Python 3.10 ___ Python tracker ___

[issue42938] [security][CVE-2021-3177] ctypes double representation BoF

2021-02-22 Thread Alexander Riccio
Alexander Riccio added the comment: Petition to remove all uses of the unchecked string handling functions from CPython? Sidenote: if C4996 was on, this would be a warning. -- nosy: +Alexander Riccio ___ Python tracker

[issue43261] Python 3.9 repair on Windows do not recover pip module

2021-02-22 Thread Steve Dower
Steve Dower added the comment: Assuming you installed pip using the installer, repair should bring it back. Do you still have installer logs? They would be in %TEMP% and start with "python". We'll need at least the main log and the pip log, but if you want to just zip them all up and attach

[issue42938] [security][CVE-2021-3177] ctypes double representation BoF

2021-02-22 Thread Alexander Riccio
Alexander Riccio added the comment: Yes, I definitely should. I work on https://bugs.python.org/issue25878 sometimes, which encompasses this. -- ___ Python tracker ___

[issue43300] "bisect" module should support reverse-sorted sequences

2021-02-22 Thread James Murphy
New submission from James Murphy : Currently, the bisect module's functions all assume the user is maintaining a sorted list/sequence in increasing order. From the docs: "This module provides support for maintaining a list in sorted order without having to sort the list after each insertion"

[issue43298] Windows build issue

2021-02-22 Thread Coleman
Coleman added the comment: HI Msg -- nosy: +White1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43298] Windows build issue

2021-02-22 Thread Zack
Zack added the comment: Hello. I want to record a game in Windows 7 and I can not install it can you help me -- nosy: +Zack_Barton ___ Python tracker ___

[issue27875] Syslogs /usr/sbin/foo as /foo instead of as foo

2021-02-22 Thread Hans Deragon
Change by Hans Deragon : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24905] Allow incremental I/O to blobs in sqlite3

2021-02-22 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43299] pyclbr.readmodule_ex traversing "import __main__": dies with ValueError: __main__.__spec__ is None / is not set

2021-02-22 Thread Robert
New submission from Robert : When pyclbr.readmodule_ex() is traversing "import __main__" or another module without __spec__, it dies completely with "ValueError: __main__.__spec__ is None / is not set". => It should at least continue with the (big) rest as the comment in

[issue43302] spam

2021-02-22 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> not a bug stage: -> resolved status: open -> closed title: shutil. copy file throws incorrect SameFileError on Google Drive File Stream -> spam ___ Python tracker

[issue43296] [sqlite3] sqlite3_value_bytes() should be called after sqlite3_value_blob()

2021-02-22 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Related: If sqlite3_value_blob() returns NULL, we should check if sqlite3_errcode() equals SQLITE_NOMEM and raise MemoryError if it does. If not, we should initialise cur_py_value to None, because as the PyBytes_FromStringAndSize docs says: "If v is

[issue36346] Prepare for removing the legacy Unicode C API

2021-02-22 Thread miss-islington
miss-islington added the comment: New changeset 93853b73b666a0ffbf5aaee8894659580581f7d3 by Miss Islington (bot) in branch '3.9': bpo-36346: Document removal schedule of deprecate APIs (GH-20879) https://github.com/python/cpython/commit/93853b73b666a0ffbf5aaee8894659580581f7d3 --

[issue43300] "bisect" module should support reverse-sorted sequences

2021-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: I prefer option 5 and leaving the module as-is. The bisect module api is slice oriented and, in general, people have a hard time reasoning about slices for reverse ordered sequences. Even the forward ordered API is a bit awkward so that we had to

[issue43274] Backlinks Strong decouverte SSL

2021-02-22 Thread Ned Deily
Ned Deily added the comment: https://docs.python.org/fr/3/library/ssl.html#ssl.OPENSSL_VERSION -- nosy: +ned.deily ___ Python tracker ___

[issue43301] Update form create for android

2021-02-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Candra: This is neither a help forum nor a free programming service. It is a workspace for improving the CPython distribution of Python. CPython does not run on Android. Anything to do with Android is off-topic here. Please do not reopen this again or

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-22 Thread Md Jony Hossain Habib
Md Jony Hossain Habib added the comment: diff -r 293d9964cf6e Lib/unittest/loader.py --- a/Lib/unittest/loader.pyTue Apr 28 00:04:53 2015 -0400 +++ b/Lib/unittest/loader.pyTue Apr 28 10:12:07 2015 +0300 @@ -338,7 +338,7 @@ raise ImportError('Start directory is not

[issue43042] Augment tutorial sentence.

2021-02-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: -patch resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43274] Backlinks Strong decouverte SSL

2021-02-22 Thread Ned Deily
Change by Ned Deily : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36346] Prepare for removing the legacy Unicode C API

2021-02-22 Thread Inada Naoki
Inada Naoki added the comment: New changeset 2d6f2eed14ff5d89155b52771cc8ef957e8145b4 by Inada Naoki in branch 'master': bpo-36346: Document removal schedule of deprecate APIs (GH-20879) https://github.com/python/cpython/commit/2d6f2eed14ff5d89155b52771cc8ef957e8145b4 --

[issue36346] Prepare for removing the legacy Unicode C API

2021-02-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +23409 pull_request: https://github.com/python/cpython/pull/24625 ___ Python tracker ___

[issue36346] Prepare for removing the legacy Unicode C API

2021-02-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +23410 pull_request: https://github.com/python/cpython/pull/24626 ___ Python tracker ___