[issue43016] Improve tests for curses

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset aab84a58063e68cb7ff5f7b8d96c431200d0e340 by Miss Islington (bot) in branch '3.8': bpo-43016: Fix test_curses on platform without cursesw (GH-24405) (GH-24408) https://github.com/python/cpython/commit/aab84a58063e68cb7ff5f7b8d96c431200d0e340

[issue43016] Improve tests for curses

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 304f9d2622fa4fd0833d60d31ddf7321a6a8141b by Miss Islington (bot) in branch '3.9': bpo-43016: Fix test_curses on platform without cursesw (GH-24405) (GH-24407) https://github.com/python/cpython/commit/304f9d2622fa4fd0833d60d31ddf7321a6a8141b

Re: Converting hex data to image

2021-01-31 Thread Ali Sajadian
dimplem...@gmail.com در تاریخ سه‌شنبه ۱۲ مارس ۲۰۱۹ ساعت ۱۳:۰۱:۴۵ (UTC+3:30) نوشت: > On Tuesday, March 12, 2019 at 2:53:49 PM UTC+5:30, Peter Otten wrote: > > dimplem...@gmail.com wrote: > > > > >> Save the image to a file (in binary mode!) and then try to open it with > > >> an image viewer.

[issue43089] The optional argument to random.Random() is called "x" not "seed"

2021-01-31 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I think this was discussed before. If my memory serves me right, Guido kept 'x' as is for backward compatibility reasons. Agreed that was a mistake. -- nosy: +thatiparthy

[issue43052] _dyld_shared_cache_contains_path needs SYSTEM_VERSION_COMPAT=0

2021-01-31 Thread Isuru Fernando
Isuru Fernando added the comment: You are right. I think I may have accidentally used the wrong SDK. Explictly setting `SYSTEM_VERSION_COMPAT=1` is unsupported then? -- ___ Python tracker

[issue42688] ctypes memory error on Apple Silicon with external libffi

2021-01-31 Thread Ned Deily
Ned Deily added the comment: New changeset 7e729978fa08a360cbf936dc215ba7dd25a06a08 by Miss Islington (bot) in branch '3.9': bpo-42688: Fix ffi alloc/free when using external libffi on macos (GH-23868) (GH-23888)

[issue43052] _dyld_shared_cache_contains_path needs SYSTEM_VERSION_COMPAT=0

2021-01-31 Thread Ned Deily
Ned Deily added the comment: > This can be observed by using the python 3.9.1 universal2 installer and using > it on > x86_64 Big Sur or with Rossetta 2 on arm64 Big Sur. When not manually setting SYSTEM_VERSION_COMPAT=1, I cannot reproduce this behavior on current Big Sur (11.1) systems,

[issue42504] Failure to build with MACOSX_DEPLOYMENT_TARGET=11 on Big Sur

2021-01-31 Thread Ned Deily
Ned Deily added the comment: New changeset d6675fee1aac1af87dc31c411d04a5bfc1f39079 by Miss Islington (bot) in branch '3.9': bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341) (GH-24410)

[issue42504] Failure to build with MACOSX_DEPLOYMENT_TARGET=11 on Big Sur

2021-01-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +23225 pull_request: https://github.com/python/cpython/pull/24410 ___ Python tracker ___

[issue42504] Failure to build with MACOSX_DEPLOYMENT_TARGET=11 on Big Sur

2021-01-31 Thread Ned Deily
Ned Deily added the comment: New changeset 49926cf2bcc8b44d9b8f148d81979ada191dd9d5 by Ronald Oussoren in branch 'master': bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341)

[issue43089] The optional argument to random.Random() is called "x" not "seed"

2021-01-31 Thread Борис Верховский
New submission from Борис Верховский : The documentation https://docs.python.org/3/library/random.html#random.Random says: > class random.Random([seed])¶ But in reality the parameter is called "x" not "seed" (CPython 3.9): >>> import random >>> random.Random(seed=0) Traceback (most recent

[issue43088] Regression in math.hypot

2021-01-31 Thread Charles Karney
Charles Karney added the comment: Thanks for the info. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Pyautogui troubles

2021-01-31 Thread Mats Wichmann
On 1/30/21 2:58 PM, Philipp Daher via Python-list wrote: Dear Python-Team, I have just repaired python after running my program which imports pyautogui, closing and reopening it and then getting this: ModuleNotFoundError: No module named „pyautogui“. Repairing didn’t work and I still get that

[issue24275] lookdict_* give up too soon

2021-01-31 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Pyautogui troubles

2021-01-31 Thread Michael Torrie
On 1/30/21 2:58 PM, Philipp Daher via Python-list wrote: > Dear Python-Team, > > I have just repaired python after running my program which imports pyautogui, > closing and reopening it and then getting this: ModuleNotFoundError: No > module named „pyautogui“. Repairing didn’t work and I still

[issue31212] datetime: min date (0001-01-01 00:00:00) can't be converted to local timestamp

2021-01-31 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43088] Regression in math.hypot

2021-01-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I'd like to know what range of versions this version should apply for. Only 3.8 and 3.9. Prior to that, we used the C compiler's hypot() which tended to be very good but was implementation dependent, only covered the two argument case, and made no

[issue43088] Regression in math.hypot

2021-01-31 Thread Charles Karney
Charles Karney added the comment: Many thanks! Was the 3.9 version of hypot introduced in 3.0? I'm fixing my code to call sqrt(x**2 + y**2) if necessary and I'd like to know what range of versions this version should apply for. -- ___ Python

[issue42986] pegen parser: Crash on SyntaxError with f-string on Windows

2021-01-31 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43088] Regression in math.hypot

2021-01-31 Thread Tim Peters
Tim Peters added the comment: I agree this doesn't occur in 3.10, but think Raymond pasted wrong outputs. Here: Python 3.10.0a4+ (heads/master:64fc105b2d, Jan 28 2021, 15:31:11) [MSC v.1928 64 bit (AMD64)] on win32 >>> x = 0.6102683302836215 >>> y1 = 0.7906090004346522 >>> y2 = y1 + 1e-16

[issue43088] Regression in math.hypot

2021-01-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the report. This is fixed in Python 3.10 where your script outputs: [1.1102230246251565e-16, 1.1102230246251565e-16] There isn't much that can be done about it for Python 3.9. -- assignee: -> rhettinger nosy: +rhettinger

[issue42927] Inline cache for slots

2021-01-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a776da90b8f2a1342f4f9bfd23a62cea9a0497c6 by Pablo Galindo in branch 'master': bpo-42927: Update the What's new entry for LOAD_ATTR optimizations (GH-24383) https://github.com/python/cpython/commit/a776da90b8f2a1342f4f9bfd23a62cea9a0497c6

[issue43017] Improve error message in the parser when using un-parenthesised tuples in comprehensions

2021-01-31 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43017] Improve error message in the parser when using un-parenthesised tuples in comprehensions

2021-01-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 835f14ff8eec10b3d96f821a1eb46a986e00c690 by Pablo Galindo in branch 'master': bpo-43017: Improve error message for unparenthesised tuples in comprehensions (GH24314)

[issue42986] pegen parser: Crash on SyntaxError with f-string on Windows

2021-01-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 40901518167c66abc1ebc5b71c5b86d733cfa154 by Pablo Galindo in branch 'master': bpo-42986: Fix parser crash when reporting syntax errors in f-string with newlines (GH-24279)

[issue43088] Regression in math.hypot

2021-01-31 Thread Charles Karney
New submission from Charles Karney : It would be nice if math.hypot had the property If 0 < y1 < y2 then math.hypot(x, y1) <= math.hypot(x, y2) This is not the case in python3 with x = 0.6102683302836215 y1 = 0.7906090004346522 y2 = y1 + 1e-16 python2's implementation of

[issue43016] Improve tests for curses

2021-01-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +23222 pull_request: https://github.com/python/cpython/pull/24407 ___ Python tracker

[issue43016] Improve tests for curses

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a1e9a1e120a11c563e166c15721169184c802f8b by Serhiy Storchaka in branch 'master': bpo-43016: Fix test_curses on platform without cursesw (GH-24405) https://github.com/python/cpython/commit/a1e9a1e120a11c563e166c15721169184c802f8b --

[issue43016] Improve tests for curses

2021-01-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +23223 pull_request: https://github.com/python/cpython/pull/24408 ___ Python tracker ___

Pyautogui troubles

2021-01-31 Thread Philipp Daher via Python-list
Dear Python-Team, I have just repaired python after running my program which imports pyautogui, closing and reopening it and then getting this: ModuleNotFoundError: No module named „pyautogui“. Repairing didn’t work and I still get that message. All I did was closing the perfectly working

[issue41604] [curses.panel] Failed panel.set_userptr will decrement refcount of original userptr

2021-01-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue41604] [curses.panel] Failed panel.set_userptr will decrement refcount of original userptr

2021-01-31 Thread miss-islington
miss-islington added the comment: New changeset 931263baab62b1c3fa7647e45ec6ee6ef4409e7c by Miss Islington (bot) in branch '3.8': [3.9] bpo-41604: Don't decrement the reference count of the previous user_ptr when set_panel_usertpr fails (GH-21933). (GH-24403)

[issue24275] lookdict_* give up too soon

2021-01-31 Thread Hristo Venev
Hristo Venev added the comment: I've attached a patch that should also contain a test. I also ran some benchmarks on dict creation/inserts. I couldn't notice any difference in performance. -- Added file:

Re: Jupyter notebooks to A4 (again)

2021-01-31 Thread Pieter van Oostrum
Martin Schöön writes: > Hello all, > > Some years ago I asked about exporting notebooks to pdf in > A4 rather than US Letter. I got help, rather detailed > instructions from you in general and Piet von Oostrum in > particular. Following the advice helped and I was happy. > > Now it does not work

[issue41604] [curses.panel] Failed panel.set_userptr will decrement refcount of original userptr

2021-01-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +23221 pull_request: https://github.com/python/cpython/pull/24406 ___ Python tracker

[issue41604] [curses.panel] Failed panel.set_userptr will decrement refcount of original userptr

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3c8d6934436e20163be802f5239c5b4e4925eeec by Serhiy Storchaka in branch '3.9': [3.9] bpo-41604: Don't decrement the reference count of the previous user_ptr when set_panel_usertpr fails (GH-21933). (GH-24403)

[issue43016] Improve tests for curses

2021-01-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +23220 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/24405 ___ Python tracker ___

[issue43087] ctypes documentation error

2021-01-31 Thread Zackery Spytz
Zackery Spytz added the comment: Thank you for the report. -- versions: +Python 3.10, Python 3.8 ___ Python tracker ___ ___

[issue43087] ctypes documentation error

2021-01-31 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 2.0 -> 3.0 pull_requests: +23219 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24404 ___ Python tracker

[issue43087] ctypes documentation error

2021-01-31 Thread Mark Tolonen
Change by Mark Tolonen : -- assignee: -> docs@python components: +Documentation, ctypes nosy: +docs@python versions: +Python 3.9 ___ Python tracker ___

[issue43087] ctypes documentation error

2021-01-31 Thread Mark Tolonen
New submission from Mark Tolonen : At the following documentation link: https://docs.python.org/3/library/ctypes.html#incomplete-types The last example should have byte strings: >>> c1 = cell() >>> c1.name = b"foo" >>> c2 = cell() >>> c2.name = b"bar" -- messages: 386037 nosy:

[issue43016] Improve tests for curses

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Failures on buildbots: https://buildbot.python.org/all/#/builders/506/builds/765 == ERROR: test_output_character (test.test_curses.TestCurses)

[issue27067] Improve curses tests

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Continued in issue42789 and issue43016. -- status: open -> closed ___ Python tracker ___ ___

[issue41604] [curses.panel] Failed panel.set_userptr will decrement refcount of original userptr

2021-01-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +23218 pull_request: https://github.com/python/cpython/pull/24403 ___ Python tracker ___

[issue43086] Excess data in not handled properly in binascii.a2b_base64()

2021-01-31 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43080] pprint for dataclass instances

2021-01-31 Thread Eric V. Smith
Eric V. Smith added the comment: I agree that we need a better pprint. I think it would be easier to create something new rather than try and morph the existing pprint, but maybe I lack enough imagination. I'd prefer to use functools.singledispatch instead of a __pprint__ method, but it

[issue43086] Excess data in not handled properly in binascii.a2b_base64()

2021-01-31 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +23216 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24402 ___ Python tracker

[issue43080] pprint for dataclass instances

2021-01-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: At some point, we need a modern redesign alternative to pprint. It could have its own __pprint__ method to communicate how it wants to be pretty printed. Until then, I think the existing pprint module should only grow custom support for classes that

[issue43086] Excess data in not handled properly in binascii.a2b_base64()

2021-01-31 Thread Idan Moral
New submission from Idan Moral : Currently, when providing binascii.a2b_base64() base-64 input with excess data after the padding ('='/'=='), the excess data is ignored. Example: import binascii binascii.a2b_base64(b'aGVsbG8=') # b'hello' (valid) binascii.a2b_base64(b'aGVsbG8==')

[issue41604] [curses.panel] Failed panel.set_userptr will decrement refcount of original userptr

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3243e8a4b4b4cf321f9b28335d565742a34b1976 by Anonymous Maarten in branch 'master': bpo-41604: Don't decrement the reference count of the previous user_ptr when set_panel_usertpr fails (GH-21933)

[issue43085] Loosening | and |= operator type checking restriction

2021-01-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: The operators | and |= always call __or__() and __ior__(). Support for these methods is optional. Some mapping classes support both methods, some only support __or__, and some support neither one. Adding support is done is done on a case by case basis.

[issue12669] test_curses skipped on buildbots

2021-01-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue43016] Improve tests for curses

2021-01-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43016] Improve tests for curses

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7ca947e93bff2b9d78312dc8ed8e0a2b7d25d3f3 by Serhiy Storchaka in branch '3.8': [3.8] bpo-43016: Rewrite tests for curses (GH-24312). (GH-24399) (GH-24401) https://github.com/python/cpython/commit/7ca947e93bff2b9d78312dc8ed8e0a2b7d25d3f3

[issue43016] Improve tests for curses

2021-01-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +23215 pull_request: https://github.com/python/cpython/pull/24401 ___ Python tracker ___

[issue43085] Loosening | and |= operator type checking restriction

2021-01-31 Thread Siyavash
Change by Siyavash : -- nosy: -Siy_V, ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43085] Loosening | and |= operator type checking restriction

2021-01-31 Thread Siyavash
New submission from Siyavash : | and |= operators work only if the operands are of 'dict' type. This means that they can't be used with some of the user defined mapping objects. The case that especially caught my attention was 'SignalDict' type in decimal standard library. While 'SignalDict'

[issue43016] Improve tests for curses

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e9d4960d15c5282904cf26e469ce7cee39f634f7 by Serhiy Storchaka in branch '3.9': [3.9] bpo-43016: Rewrite tests for curses (GH-24312). (GH-24399) https://github.com/python/cpython/commit/e9d4960d15c5282904cf26e469ce7cee39f634f7 --

[issue43083] Minor errors related to error handling in _sqlite3 module

2021-01-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43083] Minor errors related to error handling in _sqlite3 module

2021-01-31 Thread miss-islington
miss-islington added the comment: New changeset 8a833a6f94d8c2baa6aa38abd9fc699881a5b0e1 by Miss Islington (bot) in branch '3.9': bpo-43083: Fix error handling in _sqlite3 (GH-24395) https://github.com/python/cpython/commit/8a833a6f94d8c2baa6aa38abd9fc699881a5b0e1 --

[issue43083] Minor errors related to error handling in _sqlite3 module

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9073180db521dc83e6216ff0da1479d00167f643 by Serhiy Storchaka in branch 'master': bpo-43083: Fix error handling in _sqlite3 (GH-24395) https://github.com/python/cpython/commit/9073180db521dc83e6216ff0da1479d00167f643 --

[issue43083] Minor errors related to error handling in _sqlite3 module

2021-01-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +23214 pull_request: https://github.com/python/cpython/pull/24400 ___ Python tracker

[issue43016] Improve tests for curses

2021-01-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +23213 pull_request: https://github.com/python/cpython/pull/24399 ___ Python tracker ___

[issue43084] curses.window.enclose() should return bool

2021-01-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +23212 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24398 ___ Python tracker

[issue43016] Improve tests for curses

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d64fd4bb5bb4fd2e3277f39d3ad99b5a8d193e1b by Serhiy Storchaka in branch 'master': bpo-43016: Rewrite tests for curses (GH-24312) https://github.com/python/cpython/commit/d64fd4bb5bb4fd2e3277f39d3ad99b5a8d193e1b --

[issue43080] pprint for dataclass instances

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good idea Eric, it should work. But it can make the code of pprint potentially less flexible. Currently it uses a mapping which maps __repr__ to corresponding pprint implementation. Only exception is for dicts, for historical reasons. It potentially can

[issue43030] signed/unsigned mismatch in Py_UNICODE_ISSPACE macro

2021-01-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +C API -Extension Modules resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.8 ___ Python tracker

[issue43030] signed/unsigned mismatch in Py_UNICODE_ISSPACE macro

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 229ef39bcc14ee7838968dfda51d045304e5cf39 by Miss Islington (bot) in branch '3.8': bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH-24350) (GH-24397)

[issue43084] curses.window.enclose() should return bool

2021-01-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : curses.window.enclose() is the only curses wrapper which returns 0/1 while the original function is declared returning bool. https://linux.die.net/man/3/wenclose -- components: Extension Modules messages: 386021 nosy: serhiy.storchaka priority:

[issue43080] pprint for dataclass instances

2021-01-31 Thread Lewis Gaul
Lewis Gaul added the comment: @Serhiy - Yes, I noted that problem in the PR. Thanks for pointing me to that issue, I agree it would be good to make pprint properly extensible (my current solution is to maintain a fork of the pprint module with dataclass support added). Eric's suggestion

[issue43030] signed/unsigned mismatch in Py_UNICODE_ISSPACE macro

2021-01-31 Thread miss-islington
miss-islington added the comment: New changeset 995a6c015024f050b99ba8f9837dfc6b82d83f7d by Miss Islington (bot) in branch '3.9': bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH-24350)

[issue43080] pprint for dataclass instances

2021-01-31 Thread Eric V. Smith
Eric V. Smith added the comment: Adding an attribute on the __repr__ (and other methods?) signifying that they were generated would let us distinguish them. Say, checking getattr(__repr__, '__is_generated__', False), or similar. -- ___ Python

[issue43080] pprint for dataclass instances

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For all other classes we check that there is no user defined __repr__. But it is difficult to check this for dataclass or namedtuple because there is no base class for dataclasses or namedtuples which provides standard __repr__ implementation. All

[issue43030] signed/unsigned mismatch in Py_UNICODE_ISSPACE macro

2021-01-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +23211 pull_request: https://github.com/python/cpython/pull/24397 ___ Python tracker ___

[issue43030] signed/unsigned mismatch in Py_UNICODE_ISSPACE macro

2021-01-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +23210 pull_request: https://github.com/python/cpython/pull/24396 ___ Python tracker

[issue43030] signed/unsigned mismatch in Py_UNICODE_ISSPACE macro

2021-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 42b1806af90b86ec393ca7da14e99ce95ec6c53b by Serhiy Storchaka in branch 'master': bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH-24350)

[issue43083] Minor errors related to error handling in _sqlite3 module

2021-01-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +23209 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24395 ___ Python tracker

[issue43083] Minor errors related to error handling in _sqlite3 module

2021-01-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There are few minor errors in the _sqlite3: * In two places the result of PyList_Append() is not checked. * The lastrowid field of pysqlite_Cursor can contain a reference to destroyed object when GIL is released for calling sqlite3_last_insert_rowid(). *

[issue43080] pprint for dataclass instances

2021-01-31 Thread Lewis Gaul
Lewis Gaul added the comment: > a dataclass can do anything a regular class can do Agreed, but isn't that also true of any subclasses of currently supported types? In particular 'UserDict', 'UserList' and 'UserString', which all have explicit support in pprint and are intended for "easier

[issue34321] mmap.mmap() should not necessarily clone the file descriptor

2021-01-31 Thread Christian Heimes
Christian Heimes added the comment: This issue came up in another discussion. I have given it some thought. mmap.mmap() dups the FD because its close() and __exit__() methods close(2) the fd. The size() and resize() methods use the fd to determine the size of the underlying file or to

[issue43080] pprint for dataclass instances

2021-01-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Since a dataclass can do anything a regular class can do, it is probably too general to have a special case for pprint. -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker

[issue43082] descriptor howto: typo in "Definition and introduction"

2021-01-31 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue43082] descriptor howto: typo in "Definition and introduction"

2021-01-31 Thread diegoe
Change by diegoe : -- keywords: +patch pull_requests: +23208 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24394 ___ Python tracker ___