[issue44163] IDLE ValueError in HyperParser

2021-05-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: So, consider both possibilities where relevant. In the future, I will assume that you are running standard, up-to-date, Mac build unless you say otherwise. I presume you start IDLE from terminal and check it before shutting down. I have wondered whether

[issue44183] Can't install certificates if GUI tools are not installed on macOS

2021-05-19 Thread Ned Deily
Change by Ned Deily : -- assignee: -> ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44184] crash on windows invoking flake8 under tox

2021-05-19 Thread Anthony Sottile
Anthony Sottile added the comment: I can reproduce it outside of tox using: venv\Scripts\pip install flake8==3.6.0 venv\Scripts\pip install -e . --no-deps # ignore the conflict, but fix pyflakes C:\Users\asott\AppData\Local\Temp\y\pyflakes>venv\Scripts\flake8.exe setup.py

[issue44184] crash on windows invoking flake8 under tox

2021-05-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue44184] crash on windows invoking flake8 under tox

2021-05-19 Thread Anthony Sottile
New submission from Anthony Sottile : I installed python using the installers from python.org -- I originally reproduced this using github actions using pyflakes's testsuite >ver Microsoft Windows [Version 10.0.19041.985] >venv\Scripts\python --version Python 3.10.0b1

[issue44183] Can't install certificates if GUI tools are not installed on macOS

2021-05-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___

[issue44183] Can't install certificates if GUI tools are not installed on macOS

2021-05-19 Thread Joseph Trask Still
New submission from Joseph Trask Still : This issue occurs on my M1 MacBook Pro running macOS 11.3.1. Steps to reproduce: 1. Open the Python installation package 2. When asked where to install the package, click "Customize" at the bottom of the dialog 3. Uncheck the GUI Tools option 4. Proceed

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-19 Thread Ned Deily
Ned Deily added the comment: > I will include an additional blurb for this change for security fix versions. Ping. This issue is still blocking 3.7 and 3.6 security releases. -- nosy: +pablogsal priority: normal -> release blocker ___ Python

[issue44182] python-config.sh vs python-config.py inconsistency

2021-05-19 Thread Ned Deily
Change by Ned Deily : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42892] AttributeError in email.message.get_body()

2021-05-19 Thread R. David Murray
R. David Murray added the comment: Actually, I'm wrong. The body of a part can be a string, and that's what's going to happen with a malformed body of something claiming to be a multipart. The problem is that there is code that doesn't guard against this possibility. The following patch

[issue44146] Format string fill not handling brace char

2021-05-19 Thread Eric V. Smith
Eric V. Smith added the comment: Since this is working as designed, I'm going to close it. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue43813] Denial of service on http.server module with large request method.

2021-05-19 Thread Mohammed Dief
Mohammed Dief added the comment: Hey there, sorry for the delay. i just submitted the fix on a PR to python source code. -- ___ Python tracker ___

[issue42443] Provide Thread creation hook support

2021-05-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: > > * IMO it should be called after profiling and tracing hook, so non-trivial > > hooks can be profiled and traced. > Makes sense, Done. I updated the PR do this. (if your "Done" indicated you had done this somewhere, it appears you never pushed your

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

2021-05-19 Thread Paul Ganssle
Paul Ganssle added the comment: New changeset c87b81dcb2c22b6d151da39a0f65d5db304f59a8 by Miss Islington (bot) in branch '3.9': bpo-43295: Fix error handling of datetime.strptime format string '%z' (GH-24627) (#25695)

[issue42892] AttributeError in email.message.get_body()

2021-05-19 Thread R. David Murray
R. David Murray added the comment: Yes, that's the real question. That's what needs to be fixed, otherwise we'll just keep finding new bugs. For example, try calling iter_parts() on that message. It isn't pretty :) -- ___ Python tracker

[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Steven, do you approve of this? linear_regression(x, y) -> LinearRegression(slope, intercept) -- ___ Python tracker ___

[issue44175] What do "cased" and "uncased" mean?

2021-05-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, the current terminology is confusing to me as well. -- nosy: +rhettinger ___ Python tracker ___

[issue44154] Optimize Fraction pickling

2021-05-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: You're right that this won't work for decimal because it takes a string constructor. A fancier reduce might do the trick but it would involve modifying the C code (no fun) as well as the Python code. Also, the conversion from decimal to string and back

[issue44163] IDLE ValueError in HyperParser

2021-05-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I constantly move back and forth between the editor and the shell, so am not sure where the issue occurred. Also, I've never seen this one before so it isn't easily triggered. Am running Python 3.9.5 in class. Am not using a special build, it is the

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-05-19 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +24865 pull_request: https://github.com/python/cpython/pull/26258 ___ Python tracker ___

[issue42109] Use hypothesis for testing the standard library, falling back to stubs

2021-05-19 Thread Guido van Rossum
Guido van Rossum added the comment: It is important to me, because I don't like having a dependency on third-party code that is a black box. Remember that in the end it's not me you have to convince but the SC. -- ___ Python tracker

[issue44182] python-config.sh vs python-config.py inconsistency

2021-05-19 Thread Todd C. Miller
New submission from Todd C. Miller : There is an inconsistency between python-config.py and python-config.sh with the output of --ldflags. The .sh version include -L$libdir but the .py version does not include the -L flag unless a non-shared version of Python is built. As a result, on

[issue18765] unittest needs a way to launch pdb.post_mortem or other debug hooks

2021-05-19 Thread Dominik Vilsmeier
Dominik Vilsmeier added the comment: I wasn't aware of this issue so apparently I submitted a duplicate (#42722) half a year ago. The solution I implemented relies on simply calling `TestCase.debug` and `TestSuite.debug` which makes it a lightweight change. From the perspective of the

[issue44175] What do "cased" and "uncased" mean?

2021-05-19 Thread Josh Rosenberg
Josh Rosenberg added the comment: See the docs for the title method on what they mean by "titlecased"; "a" is self-evidently not titlecased. https://docs.python.org/3/library/stdtypes.html#str.title -- ___ Python tracker

[issue42892] AttributeError in email.message.get_body()

2021-05-19 Thread Irit Katriel
Irit Katriel added the comment: Can you see how it happened that part is a str? -- ___ Python tracker ___ ___ Python-bugs-list

[issue44037] Broad performance regression from 3.10a7 to 3.10b1 with python.org macOS binaries

2021-05-19 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28307] Accelerate 'string' % (value, ...) by using formatted string literals

2021-05-19 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42109] Use hypothesis for testing the standard library, falling back to stubs

2021-05-19 Thread Paul Ganssle
Paul Ganssle added the comment: I do not want to dissuade you from figuring out how minithesis / hypothesis works (far from it), but I'm wondering if the question of how shrinking works is germane to the issue at hand, which is whether or not hypothesis / property-based-testing is suitable

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

2021-05-19 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: SQLITE_TOOBIG is currently mapped to sqlite3.DataError. In order to keep the current behaviour, DataError must be raised. -- ___ Python tracker

[issue42109] Use hypothesis for testing the standard library, falling back to stubs

2021-05-19 Thread Guido van Rossum
Guido van Rossum added the comment: Few things incite me quite as much as being told that I'm not supposed to understand something, so now I'm actually making an effort to follow the ECOOP paper. Honestly, it's not too bad (a lot more readable than type theory papers :-). I'll get back to

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

2021-05-19 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- Removed message: https://bugs.python.org/msg393977 ___ Python tracker ___ ___ Python-bugs-list

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

2021-05-19 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Regarding the maximum length of an SQL string, quoting from https://sqlite.org/limits.html: "The current implementation will only support a string or BLOB length up to 2^31-1 or 2147483647. And some built-in functions such as hex() might fail well before

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

2021-05-19 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Regarding the maximum length of an SQL string, quoting from https://sqlite.org/limits.html: "The current implementation will only support a string or BLOB length up to 2^31-1 or 2147483647. And some built-in functions such as hex() might fail well before

[issue44181] SyntaxError in Python 3.10.0b1: wrong token for missing comma

2021-05-19 Thread Andre Roberge
New submission from Andre Roberge : When forgetting a comma in writing a dict literal spanning multiple lines, the "bad token" is wrongly idenfied with Python 3.10.0b1. >>> a = {'a': 1 ... 'b': 2 File "", line 1 a = {'a': 1 ^ SyntaxError: invalid syntax. Perhaps you

[issue37741] importlib.metadata docs not showing up in the module index

2021-05-19 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset ab1c3d99f51188d1a6b5f7797294b056279f62e0 by Miss Islington (bot) in branch '3.9': bpo-37741: make importlib.metadata docs discoverable through a module directive. (GH-25415) (GH-25417)

[issue11176] [doc] give more meaningful argument names in argparse documentation

2021-05-19 Thread Irit Katriel
Irit Katriel added the comment: It's been over six years, go for it. -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue40975] contextlib.AsyncExitStack enter_async_context and aclose should be labeled as coroutine methods

2021-05-19 Thread Irit Katriel
Irit Katriel added the comment: New changeset 65dede60fa15703b4625240fbe11af0060f5cbb0 by Miss Islington (bot) in branch '3.10': bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine methods (GH-20870) (GH-26254)

[issue40975] contextlib.AsyncExitStack enter_async_context and aclose should be labeled as coroutine methods

2021-05-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40975] contextlib.AsyncExitStack enter_async_context and aclose should be labeled as coroutine methods

2021-05-19 Thread Irit Katriel
Irit Katriel added the comment: New changeset 9a75cc604455962fd226b58ed033da92e68dd3c8 by Miss Islington (bot) in branch '3.9': bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine methods (GH-20870) (GH-26255)

[issue40975] contextlib.AsyncExitStack enter_async_context and aclose should be labeled as coroutine methods

2021-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +24864 pull_request: https://github.com/python/cpython/pull/26255 ___ Python tracker ___

[issue40975] contextlib.AsyncExitStack enter_async_context and aclose should be labeled as coroutine methods

2021-05-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +24863 pull_request: https://github.com/python/cpython/pull/26254 ___ Python tracker

[issue44180] SyntaxError misidentified in 3.10.0b1 when = used instead of : in dict literal

2021-05-19 Thread Andre Roberge
Andre Roberge added the comment: In the second case, I understand very well that it could have been a set literal. In my (limited) experience, I have never seen a set literal containing a single element obtained from an == comparison. Since dict can be built by using keyword arguments, I

[issue44180] SyntaxError misidentified in 3.10.0b1 when = used instead of : in dict literal

2021-05-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Hmmm... Then is it possible to add an exception where the error message will result in, SyntaxError: cannot assign to literal here. Maybe you meant ':', "==" or ":=" instead of '='? only if we're dealing with curly braces? --

[issue44180] SyntaxError misidentified in 3.10.0b1 when = used instead of : in dict literal

2021-05-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I don't know, it think is more likely that people are triying to use the "=" as a ":" and constructing a literal. Is not a bad error, but I think is not the best one -- ___ Python tracker

[issue44180] SyntaxError misidentified in 3.10.0b1 when = used instead of : in dict literal

2021-05-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +24862 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26253 ___ Python tracker

[issue44180] SyntaxError misidentified in 3.10.0b1 when = used instead of : in dict literal

2021-05-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Sorry for the typos. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44180] SyntaxError misidentified in 3.10.0b1 when = used instead of : in dict literal

2021-05-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I'm don't the second is a problem at all. What the error message is suggesting is perfect since it doesn't know if we're trying to use a set or dict. -- ___ Python tracker

[issue44180] SyntaxError misidentified in 3.10.0b1 when = used instead of : in dict literal

2021-05-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have an idea of what's causing the first one, but the second I am not sure we can detect easily we are in that case. Do you have a suggestion for what to place in the second case? -- ___ Python tracker

[issue44180] SyntaxError misidentified in 3.10.0b1 when = used instead of : in dict literal

2021-05-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The bad token example needs a fix but the second is actually ok because we have another type we write within curly braces "{" and there the error is actually perfect. Like if we follow the error message, we use ages = {'Alice'==22} And we actually get a

[issue42722] Add --debug command line option to unittest to enable post-mortem debugging

2021-05-19 Thread Ned Deily
Change by Ned Deily : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44180] SyntaxError misidentified in 3.10.0b1 when = used instead of : in dict literal

2021-05-19 Thread Andre Roberge
New submission from Andre Roberge : When an equal sign is used instead of a colon in creating a dict literal, depending on the context, either the "bad token" is misidentified OR the would-be helpful error message is incorrect in this particular case. 1) Example of bad token. Previously, the

[issue44168] Wrong syntax error hint when spurious colon present in function keyword comprehension assignment

2021-05-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ec0699c044b4272a1face752fd39b8230f96c0da by Miss Islington (bot) in branch '3.10': bpo-44168: Fix error message in the parser for keyword arguments for invalid expressions (GH-26210) (GH-26247)

[issue44168] Wrong syntax error hint when spurious colon present in function keyword comprehension assignment

2021-05-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d4a9264ab899b4f3088b5afad8956123924a5ab1 by Pablo Galindo in branch '3.9': [3.9] bpo-44168: Fix error message in the parser for keyword arguments for invalid expressions (GH-26210) (GH-26250)

[issue42722] Add --debug command line option to unittest to enable post-mortem debugging

2021-05-19 Thread Andrei Kulakov
Andrei Kulakov added the comment: This is a duplicate of https://bugs.python.org/issue18765, which already has some discussion going for a few years, so please follow up there. -- nosy: +andrei.avk ___ Python tracker

[issue44168] Wrong syntax error hint when spurious colon present in function keyword comprehension assignment

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

[issue44168] Wrong syntax error hint when spurious colon present in function keyword comprehension assignment

2021-05-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +24861 pull_request: https://github.com/python/cpython/pull/26250 ___ Python tracker ___

[issue44168] Wrong syntax error hint when spurious colon present in function keyword comprehension assignment

2021-05-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24860 pull_request: https://github.com/python/cpython/pull/26247 ___ Python tracker

[issue42653] Expose ISO-TP Contants for Linux >= 5.10

2021-05-19 Thread menschel
Change by menschel : -- keywords: +patch nosy: +menschel nosy_count: 1.0 -> 2.0 pull_requests: +24859 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26174 ___ Python tracker

[issue40975] contextlib.AsyncExitStack enter_async_context and aclose should be labeled as coroutine methods

2021-05-19 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44174] Unclear meaning of _Private__names in enum docs.

2021-05-19 Thread Ethan Furman
Ethan Furman added the comment: Looks good. Patches welcome. :-) -- nosy: +ethan.furman ___ Python tracker ___ ___

[issue40811] Allow to create new Event Loops on Threads

2021-05-19 Thread Irit Katriel
Irit Katriel added the comment: Should this be closed as rejected or is there further discussion? -- nosy: +iritkatriel ___ Python tracker ___

[issue29298] argparse fails with required subparsers, un-named dest, and empty argv

2021-05-19 Thread Irit Katriel
Irit Katriel added the comment: crash means segfault, not unhandled exception. -- nosy: +iritkatriel type: crash -> behavior versions: +Python 3.10, Python 3.11 -Python 2.7, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue44099] [C API] Introduce a new slot in PyModuleDef to hold the classes

2021-05-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Yes and it wouldn't be a problem. If struct member is 0 or NULL then use default behavior. If not then apply PyModule_AddType or PyModule_AddObject on all of those. Then after finishing set slot to NULL again since we don't want to add a type more than

[issue44099] [C API] Introduce a new slot in PyModuleDef to hold the classes

2021-05-19 Thread Petr Viktorin
Petr Viktorin added the comment: First off, note that you can use PyModule_AddType rather than PyModule_AddObject to avoid repeating the name. Adding this *correctly* will be somewhat involved: slots take function pointers, not data pointers which are incompatible according to standard C.

[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Just to clarify, is the proposal to return a > regular tuple instead of named tuple? No, it should still have named fields. Either Line or LinearRegression would suffice. -- ___ Python tracker

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-05-19 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +24856 pull_request: https://github.com/python/cpython/pull/26241 ___ Python tracker ___

[issue44175] What do "cased" and "uncased" mean?

2021-05-19 Thread Isaac Ge
Isaac Ge added the comment: Why does "a".istitle() return "False" while it is not followed by any uncased character? -- ___ Python tracker ___

[issue42591] Method Py_FrozenMain missing in libpython3.9

2021-05-19 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +24857 pull_request: https://github.com/python/cpython/pull/26241 ___ Python tracker ___

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-19 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +24858 pull_request: https://github.com/python/cpython/pull/26241 ___ Python tracker ___

[issue44179] python3 终端 range函数显示错误

2021-05-19 Thread Christian Heimes
Christian Heimes added the comment: In Python 3 the range() builtin returns an iterator, not a list of items. You have to exhaust the iterator to get a list of iterator items. >>> list(range(-10, -100, -30)) [-10, -40, -70] -- nosy: +christian.heimes resolution: -> not a bug stage:

[issue44179] python3 终端 range函数显示错误

2021-05-19 Thread liaoliaoxiansheng
New submission from liaoliaoxiansheng <1041585...@qq.com>: [root@ct7-2 bin]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) [root@ct7-2 bin]# python2 Python 2.7.5 (default, Nov 16 2020, 22:23:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux2 Type "help", "copyright",

[issue44178] Add an interpreter-level critical section construct

2021-05-19 Thread Xavier Morel
New submission from Xavier Morel : Python code uses a fair amount of globals, and sometimes there's no good choice but to do dodgy things and temporarily update global state for one reason or another e.g. redirect a standard fd or stream (cf redirect_stdout), monkey-patch a builtin to

[issue44177] Unable to get the else while parsing through AST module

2021-05-19 Thread Eric V. Smith
Eric V. Smith added the comment: It's in the AST. >>> tree.body[0].orelse[0].orelse[0].lineno 7 To see it with dump, use: ast.dump(tree, include_attributes=True) Which, after some reformatting, gives: Module(body=[If(test=Compare(left=Name(id='num', ctx=Load(), lineno=2, col_offset=3,

[issue44177] Unable to get the else while parsing through AST module

2021-05-19 Thread Bikram Singh Mehra
Bikram Singh Mehra added the comment: Hi Eric, Thanks for the quick response here, I have gone through your suggestion but following that I am able to print the else node data i.e. "print("Negative number")" but unable to get the lineno of that else child node. Could you please confirm if

[issue24929] _strptime.TimeRE should not enforce range in regex

2021-05-19 Thread Catherine Devlin
Catherine Devlin added the comment: Can we close the ticket? It doesn't sound like we're going to go with anything like this approach. If there's a good place to record the general ambitions (better strptime tests, more clear strptime errors), that would be good, but I don't think we use

[issue44177] Unable to get the else while parsing through AST module

2021-05-19 Thread Eric V. Smith
Eric V. Smith added the comment: Formatting the result, I get: Module(body=[If(test=Compare(left=Name(id='num', ctx=Load()), ops=[Gt()], comparators=[Constant(value=0, kind=None)]),

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2021-05-19 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20587] sqlite3 converter not being called

2021-05-19 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I'm unable to reproduce this on 3.8 though 3.11a0. It's unclear to me if this even was an issue. (I have no ancient Python versions to test with.) Closing as out-of-date in a day or two, unless someone disagrees. -- nosy: +erlendaasland status:

[issue44092] [sqlite3] consider removing special rollback handling

2021-05-19 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I've crafted a number of rollback tests, but it occurred to me that they are simply just testing SQLite behaviour; not sqlite3 behaviour. I had to adjust the tests according to which version of SQLite was used (for example 3.8.7.2 introduced new

[issue44092] [sqlite3] consider removing special rollback handling

2021-05-19 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: The effect of PR 26026 is that InterfaceError is no longer raised for fetch across rollback; instead it is up to SQLite how to handle this: - for some cases, SQLITE_ABORT or SQLITE_ABORT_ROLLBACK may be returned, which will result in an OperationalError

[issue44092] [sqlite3] consider removing special rollback handling

2021-05-19 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- Removed message: https://bugs.python.org/msg393339 ___ Python tracker ___ ___ Python-bugs-list

[issue44092] [sqlite3] consider removing special rollback handling

2021-05-19 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- Removed message: https://bugs.python.org/msg393367 ___ Python tracker ___ ___ Python-bugs-list

[issue44092] [sqlite3] consider removing special rollback handling

2021-05-19 Thread Erlend E. Aasland
Change by Erlend E. Aasland : Removed file: https://bugs.python.org/file50029/patch.diff ___ Python tracker ___ ___ Python-bugs-list

[issue44120] logging.config.fileConfig/dictConfig can not import class

2021-05-19 Thread Vinay Sajip
Vinay Sajip added the comment: The problem is caused by the "import logging" in bar/__init__.py, which causes bar.logging to not be found because it clashes with the stdlib logging package. If you change the statement to from . import logging then the error does not occur. So I don't think

[issue44079] [sqlite3] remove superfluous statement weak ref list from connection object

2021-05-19 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Yes, that seems to be the intention. But, I don't think there is a need to maintain the second list: 1. Resetting statements was historically needed both for commit and rollback; pending statements would block such operations. That's no longer the case

[issue44177] Unable to get the else while parsing through AST module

2021-05-19 Thread Bikram Singh Mehra
New submission from Bikram Singh Mehra : Hi Team, I was parsing python file using AST module but ran into a situation where the else statement is not found in the parsed data. - Module used is: ast - In the parsed data I can see "if" followed by

[issue25190] Define StringIO seek offset as code point offset

2021-05-19 Thread Eli_B
Change by Eli_B : -- nosy: +Eli_B ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44010] IDLE: highlight soft keywords

2021-05-19 Thread miss-islington
miss-islington added the comment: New changeset 3357604db966693b752cbd9ffc3ad0f40b970d31 by Miss Islington (bot) in branch '3.10': bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851) https://github.com/python/cpython/commit/3357604db966693b752cbd9ffc3ad0f40b970d31

[issue8264] [doc] hasattr doesn't show private (double underscore) attributes exist

2021-05-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24855 pull_request: https://github.com/python/cpython/pull/26238 ___ Python tracker

[issue44010] IDLE: highlight soft keywords

2021-05-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +24854 pull_request: https://github.com/python/cpython/pull/26237 ___ Python tracker

[issue44174] Unclear meaning of _Private__names in enum docs.

2021-05-19 Thread Ken Jin
Ken Jin added the comment: I think linking to this part of the docs may help https://docs.python.org/3/reference/expressions.html#atom-identifiers There's also already a label to reference to, so the sentence could start with :ref:`Private names `. -- keywords: +easy, newcomer

[issue35765] Document references object x but doesn't show it in the example

2021-05-19 Thread Irit Katriel
Irit Katriel added the comment: New changeset 5f2afff1ddbf11c8dfa9ddc98fb7a2f2d86eabde by Miss Islington (bot) in branch '3.10': bpo-35765: Clarify references to "object x" in the JSON tutorial (GH-22411) (GH-26218)

[issue35765] Document references object x but doesn't show it in the example

2021-05-19 Thread Irit Katriel
Irit Katriel added the comment: New changeset 74eb94af2b0ca652d4b6b9b853601a8b8ac7dca1 by Miss Islington (bot) in branch '3.9': bpo-35765: Clarify references to "object x" in the JSON tutorial (GH-22411) (GH-26219)

[issue35765] Document references object x but doesn't show it in the example

2021-05-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44079] [sqlite3] remove superfluous statement weak ref list from connection object

2021-05-19 Thread Berker Peksag
Berker Peksag added the comment: https://github.com/ghaering/pysqlite/commit/33f99be6be5ad7d69767ff172441f1a860416e82 states the following: - Use a list of weak references of statements in the Connection class to keep track of all statements used with this connection. This is

[issue44106] [sqlite3] don't use politicians in examples/docs

2021-05-19 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44106] [sqlite3] don't use politicians in examples/docs

2021-05-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset e57bef1b73abb8e89d927053bd7e4fdbf44687bf by Miss Islington (bot) in branch '3.10': bpo-44106: Purge unused sqlite3 doc includes (GH-26234) https://github.com/python/cpython/commit/e57bef1b73abb8e89d927053bd7e4fdbf44687bf --

[issue44106] [sqlite3] don't use politicians in examples/docs

2021-05-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset 5b5a10c8740aa5e9fd68a10d9cb23b0e7d61ce98 by Miss Islington (bot) in branch '3.9': bpo-44106: Purge unused sqlite3 doc includes (GH-26234) https://github.com/python/cpython/commit/5b5a10c8740aa5e9fd68a10d9cb23b0e7d61ce98 --

[issue21465] sqlite3 Row can return duplicate keys when using adapters

2021-05-19 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: AFAICS, this has nothing to do with adapters; you'll get duplicate keys just by executing 'select 1 as "token", 2 as "token"'. If you want the columns to have unique names, you should assign them unique names. At most, there could be a sentence about

[issue44106] [sqlite3] don't use politicians in examples/docs

2021-05-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +24853 pull_request: https://github.com/python/cpython/pull/26236 ___ Python tracker ___

  1   2   >