[issue46907] Update Windows and MacOS installer to SQLite 3.38.2
Mariusz Felisiak added the comment: https://sqlite.org/src/info/336851b191fe79f0 was merged to the 3.38 branch, so we should expect 3.38.3 in the coming days. -- ___ Python tracker <https://bugs.python.org/issue46907> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44740] Lowercase "Internet" and "web" in docs
Change by Mariusz Felisiak : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue44740> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44740] Lowercase "Internet" and "web" in docs
Change by Mariusz Felisiak : -- resolution: -> fixed ___ Python tracker <https://bugs.python.org/issue44740> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46907] Update Windows and MacOS installer to SQLite 3.38.2
Change by Mariusz Felisiak : -- pull_requests: +30228 pull_request: https://github.com/python/cpython/pull/32148 ___ Python tracker <https://bugs.python.org/issue46907> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46907] Update Windows and MacOS installer to SQLite 3.38.2
Change by Mariusz Felisiak : -- pull_requests: +30227 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32147 ___ Python tracker <https://bugs.python.org/issue46907> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46907] Update Windows and MacOS installer to SQLite 3.38.0.
Change by Mariusz Felisiak : -- pull_requests: +29774 pull_request: https://github.com/python/cpython/pull/31656 ___ Python tracker <https://bugs.python.org/issue46907> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46907] Update Windows and MacOS installer to SQLite 3.38.0.
Change by Mariusz Felisiak : -- keywords: +patch pull_requests: +29773 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31655 ___ Python tracker <https://bugs.python.org/issue46907> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46907] Update Windows and MacOS installer to SQLite 3.38.0.
New submission from Mariusz Felisiak : SQLite 3.37.0 was released on 2022-02-22: https://sqlite.org/releaselog/3_38_0.html -- components: Windows, macOS messages: 414412 nosy: erlendaasland, felixxm, ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Update Windows and MacOS installer to SQLite 3.38.0. type: enhancement versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue46907> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43882] [security] CVE-2022-0391: urllib.parse should sanitize urls containing ASCII newline and tabs.
Change by Mariusz Felisiak : -- nosy: +felixxm ___ Python tracker <https://bugs.python.org/issue43882> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46249] [sqlite3] lastrowid improvements
Change by Mariusz Felisiak : -- nosy: +felixxm ___ Python tracker <https://bugs.python.org/issue46249> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44740] Lowercase "Internet" and "web" in docs
Change by Mariusz Felisiak : -- pull_requests: +25918 pull_request: https://github.com/python/cpython/pull/27385 ___ Python tracker <https://bugs.python.org/issue44740> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44740] Lowercase "Internet" and "web" in docs
Change by Mariusz Felisiak : -- keywords: +patch pull_requests: +25913 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27378 ___ Python tracker <https://bugs.python.org/issue44740> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44740] Lowercase "Internet" and "web" in docs
New submission from Mariusz Felisiak : AP lowercased "internet" and "web" in all instances – web page, the web, web browser, etc. on June 1, 2016: https://twitter.com/APStylebook/status/716384777406922753 https://twitter.com/APStylebook/status/716279539052191746?s=20 I'd be happy to provide a patch, if accepted. We will update the Django docs to follow this recommendation, see https://code.djangoproject.com/ticket/32956. -- assignee: docs@python components: Documentation messages: 398223 nosy: docs@python, felixxm priority: normal severity: normal status: open title: Lowercase "Internet" and "web" in docs type: enhancement ___ Python tracker <https://bugs.python.org/issue44740> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44232] Crash in Objects/typeobject.c
New submission from Mariusz Felisiak : We noticed a behavior change in [1]. One of our tests `apps.tests.AppsTests.test_model_clash()`[2] crashes with: python: Objects/typeobject.c:3219: type_new: Assertion `type != NULL' failed. Fatal Python error: Aborted Current thread 0x7ffa6951a280 (most recent call first): File "django/tests/apps/tests.py", line 301 in test_model_clash File "cpython/Lib/unittest/case.py", line 549 in _callTestMethod File "cpython/Lib/unittest/case.py", line 592 in run File "cpython/Lib/unittest/case.py", line 652 in __call__ File "django/django/test/testcases.py", line 283 in _setup_and_call File "django/django/test/testcases.py", line 247 in __call__ File "cpython/Lib/unittest/suite.py", line 122 in run File "cpython/Lib/unittest/suite.py", line 84 in __call__ File "cpython/Lib/unittest/runner.py", line 176 in run File "django/django/test/runner.py", line 705 in run_suite File "django/django/test/runner.py", line 772 in run_tests File "django/tests/./runtests.py", line 332 in django_tests File "django/tests/./runtests.py", line 596 in Aborted (core dumped) This can be an issue is our test which is quite tricky. I will try to investigate it. [1] https://github.com/python/cpython/commit/ecf14e6557c6e4f7af9c0d6460d31fe121c22553 [2] https://github.com/django/django/blob/7e51893911237dfca9294e3ca12163ff813fb656/tests/apps/tests.py#L274-L309 -- components: Interpreter Core messages: 394330 nosy: felixxm, vstinner priority: normal severity: normal status: open title: Crash in Objects/typeobject.c type: crash versions: Python 3.10, Python 3.11 ___ Python tracker <https://bugs.python.org/issue44232> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43752] Fetching an empty value from date column crashes on SQLite.
Mariusz Felisiak added the comment: A regression test: def test_convert_null_date(self): con = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_DECLTYPES) cur = con.cursor() cur.execute("CREATE TABLE t (x DATE NULL)") cur.execute("INSERT INTO t (x) VALUES (NULL)") cur.execute("SELECT * FROM t") values = [x[0] for x in cur.fetchall()] self.assertEqual(values, [None]) -- ___ Python tracker <https://bugs.python.org/issue43752> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43752] Fetching an empty value from date column crashes on SQLite.
New submission from Mariusz Felisiak : We noticed a regression in Python3.10.0a7 (it works properly in Python3.10.0a6) when running Django's test suite. `convert_date()`[1] is called and crashes when fetching an empty value from `date` column on SQLite: File "python3.10/lib/sqlite3/dbapi2.py", line 64, in convert_date return datetime.date(*map(int, val.split(b"-"))) ValueError: invalid literal for int() with base 10: b'' I will bisect a regression and submit PR. [1] https://github.com/python/cpython/blob/50616223d1043f0f83534ffec38709439b8a49ab/Lib/sqlite3/dbapi2.py#L63-L64 -- components: Library (Lib) messages: 390357 nosy: berker.peksag, erlendaasland, felixxm priority: normal severity: normal status: open title: Fetching an empty value from date column crashes on SQLite. type: behavior versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue43752> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43353] Document that logging.getLevelName() can return a numeric value.
Change by Mariusz Felisiak : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43353> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20408] memoryview() constructor documentation error
Change by Mariusz Felisiak : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue20408> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43353] Document that logging.getLevelName() can return a numeric value.
Mariusz Felisiak added the comment: I've prepared PRs with backports. -- ___ Python tracker <https://bugs.python.org/issue43353> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43353] Document that logging.getLevelName() can return a numeric value.
Change by Mariusz Felisiak : -- pull_requests: +23591 pull_request: https://github.com/python/cpython/pull/24826 ___ Python tracker <https://bugs.python.org/issue43353> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43353] Document that logging.getLevelName() can return a numeric value.
Change by Mariusz Felisiak : -- pull_requests: +23590 pull_request: https://github.com/python/cpython/pull/24825 ___ Python tracker <https://bugs.python.org/issue43353> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43353] Document that logging.getLevelName() can return a numeric value.
Mariusz Felisiak added the comment: "numeric" doesn't refer to the "Level #" representation but to the fact that `getLevelName()` returns a numeric value when the corresponding name is passed, e.g. >>> getLevelName('CRITICAL') 50 -- ___ Python tracker <https://bugs.python.org/issue43353> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43353] Document that logging.getLevelName() can return a numeric value.
Mariusz Felisiak added the comment: Do we want to backport this patch? If yes, I can prepare backports. If not, we can close the ticket. -- ___ Python tracker <https://bugs.python.org/issue43353> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43216] Removal of @asyncio.coroutine in Python 3.10
Change by Mariusz Felisiak : -- nosy: +felixxm ___ Python tracker <https://bugs.python.org/issue43216> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43353] Document that logging.getLevelName() can return a numeric value.
New submission from Mariusz Felisiak : Can we document[1] that `logging.getLevelName()` returns a numeric value when corresponding string is passed in (related with https://bugs.python.org/issue1008295). I know that we have "Changed in version 3.4" annotation but I think it's worth mentioning in the main description. I hope it's not a duplicate, I tried to find matching ticket. I can submit PR if accepted. [1] https://docs.python.org/3.10/library/logging.html?highlight=getlevelname#logging.getLevelName -- components: Library (Lib) messages: 387856 nosy: felixxm, vinay.sajip priority: normal severity: normal status: open title: Document that logging.getLevelName() can return a numeric value. ___ Python tracker <https://bugs.python.org/issue43353> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20408] memoryview() constructor documentation error
Change by Mariusz Felisiak : -- nosy: +felixxm nosy_count: 6.0 -> 7.0 pull_requests: +23241 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24431 ___ Python tracker <https://bugs.python.org/issue20408> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42851] Subclassing Enum with ipaddress.IPv4Network/IPv6Network raises TypeError.
Mariusz Felisiak added the comment: Ethan, Thanks for the patch. -- ___ Python tracker <https://bugs.python.org/issue42851> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42851] Subclassing Enum with ipaddress.IPv4Network/IPv6Network raises TypeError.
New submission from Mariusz Felisiak : We noticed a behavior change in Python3.10.0a4 (it works properly in Python3.10.0a3) when running Django's test suite[1]. Subclassing `enum.Enum` with `ipaddress.IPv4Network/IPv6Network` raises `TypeError`, e.g. >>> import enum >>> import ipaddress >>> class NewEnum(ipaddress.IPv4Address, enum.Enum): ... pass ... >>> class NewEnum(ipaddress.IPv4Network, enum.Enum): ... pass ... Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.10/enum.py", line 239, in __new__ enum_class.__bases__ = enum_class.__bases__[1:] #or (object, ) File "/usr/local/lib/python3.10/enum.py", line 483, in __setattr__ super().__setattr__(name, value) TypeError: __bases__ assignment: 'IPv4Network' object layout differs from '_NoInitSubclass' It still works for `ipaddress.IPv4Address/IPv6Address`. [1] https://github.com/django/django/blob/102d92fc09849e1a9004dd3f9a14a0ea9ca392cd/tests/model_enums/tests.py#L225-L235 -- components: Library (Lib) messages: 384563 nosy: barry, eli.bendersky, ethan.furman, felixxm priority: normal severity: normal status: open title: Subclassing Enum with ipaddress.IPv4Network/IPv6Network raises TypeError. type: crash versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue42851> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40696] exception chain cycles cause hangs (was "Exception handling with "await" can hang in Python3.9.0b1")
Mariusz Felisiak added the comment: FYI, I created fix https://github.com/django/django/pull/12978 for view's exception handling in Django. -- ___ Python tracker <https://bugs.python.org/issue40696> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40696] Exception handling with "await" can hang in Python3.9.0b1
Mariusz Felisiak added the comment: Chris, many thanks for detailed explanation, extensive investigation, and a fix! We'll also review Django's code in the next few days. -- ___ Python tracker <https://bugs.python.org/issue40696> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40696] "await" hangs in Python3.9.0b1.
New submission from Mariusz Felisiak : We noticed a behavior change in Python3.9.0b1 (it works properly in Python3.9.0a6). One of our tests `handlers.tests.AsyncHandlerRequestTests.test_suspiciousop_in_view_returns_400`[1] hangs on `await`. `/suspicious/` is a view that raises a custom exception `SuspiciousOperation`. [1] https://github.com/django/django/blob/8328811f048fed0dd22573224def8c65410c9f2e/tests/handlers/tests.py#L258-L260 -- components: asyncio messages: 369429 nosy: asvetlov, carltongibson, felixxm, yselivanov priority: normal severity: normal status: open title: "await" hangs in Python3.9.0b1. versions: Python 3.9 ___ Python tracker <https://bugs.python.org/issue40696> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40557] Move captured_stdin(), captured_stdout(), and captured_stderr() to the public API.
Mariusz Felisiak added the comment: I can prepare a patch. -- ___ Python tracker <https://bugs.python.org/issue40557> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40557] Move captured_stdin(), captured_stdout(), and captured_stderr() to the public API.
New submission from Mariusz Felisiak : I would like to propose making test.support.captured_stdin(), captured_stdout(), and captured_stderr() public APIs with guaranteed stability. These helpers are really useful and are stable for the last ~10 years. -- components: Tests messages: 368419 nosy: felixxm priority: normal severity: normal status: open title: Move captured_stdin(), captured_stdout(), and captured_stderr() to the public API. type: enhancement versions: Python 3.9 ___ Python tracker <https://bugs.python.org/issue40557> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40300] logging.Formatter crashes when default_msec_format is None.
Change by Mariusz Felisiak : -- keywords: +patch pull_requests: +18897 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19551 ___ Python tracker <https://bugs.python.org/issue40300> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40300] logging.Formatter crashes when default_msec_format is None.
New submission from Mariusz Felisiak : We would like to subclass logging.Formatter with a custom "default_time_format" and an empty "default_msec_format". Unfortunately logging.Formatter crashes when default_msec_format is None, see [1]. I'm happy to provide a patch. [1] https://github.com/python/cpython/blob/5907e61a8d4da6d0f11bf1062d6d17484560a15e/Lib/logging/__init__.py#L607 -- components: Library (Lib) messages: 366589 nosy: Mariusz Felisiak priority: normal severity: normal status: open title: logging.Formatter crashes when default_msec_format is None. type: enhancement versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue40300> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38563] Asyncio regression on Windows with Python 3.8
Change by Mariusz Felisiak : -- nosy: +Mariusz Felisiak ___ Python tracker <https://bugs.python.org/issue38563> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38563] Asyncio regression on Windows with Python 3.8
Change by Mariusz Felisiak : -- nosy: +Mariusz Felisiak ___ Python tracker <https://bugs.python.org/issue38563> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com