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

2021-05-19 Thread Zac Hatfield-Dodds
Zac Hatfield-Dodds added the comment: > Okay, well, I'm trying to understand minithesis.py, but I am despairing. The > shrinking code (really everything in class TestingState) is too much to grok. > ... I suppose I have to read the paper at > https://drmaciver.github.io/papers/reduction-via-

[issue30593] Document that sqlite3.Cursor.executescript disregards isolation_level

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

[issue30593] Document that sqlite3.Cursor.executescript disregards isolation_level

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

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

2021-05-19 Thread Chris Xiao
Chris Xiao added the comment: I found this problem too. expecting for fixing -- nosy: +chrisxiao ___ Python tracker ___ ___ Python-

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

2021-05-19 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- title: [c-api] Introduce a new slot in PyModuleDef to hold the classes -> [C API] Introduce a new slot in PyModuleDef to hold the classes ___ Python tracker ___

[issue30593] Document that sqlite3.Cursor.executescript disregards isolation_level

2021-05-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset 76ed53ca7bf0d4a43099d9401af5fe9f75689885 by Miss Islington (bot) in branch '3.9': bpo-30593: Doc'ed that executescript() disregards isolation level (GH-26220) https://github.com/python/cpython/commit/76ed53ca7bf0d4a43099d9401af5fe9f75689885 ---

[issue30593] Document that sqlite3.Cursor.executescript disregards isolation_level

2021-05-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset 1f483c0c1b5a9fd1062bacc2aeba6bb0e9b7 by Miss Islington (bot) in branch '3.10': bpo-30593: Doc'ed that executescript() disregards isolation level (GH-26220) https://github.com/python/cpython/commit/1f483c0c1b5a9fd1062bacc2aeba6bb0e9b7 --

[issue30593] Document that sqlite3.Cursor.executescript disregards isolation_level

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

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

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

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

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

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

2021-05-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset db20afe6c43ad585577589131bf658ce7ebe6bd2 by Miss Islington (bot) in branch '3.9': bpo-44106: Improve sqlite3 example database contents (GH-26027) https://github.com/python/cpython/commit/db20afe6c43ad585577589131bf658ce7ebe6bd2 --

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

2021-05-19 Thread Berker Peksag
Berker Peksag added the comment: New changeset 3185bc9d3f38ce9d814aecf8104f1d6953c2d8ff by Miss Islington (bot) in branch '3.10': bpo-44106: Improve sqlite3 example database contents (GH-26027) https://github.com/python/cpython/commit/3185bc9d3f38ce9d814aecf8104f1d6953c2d8ff -- ___

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

2021-05-19 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +24851 pull_request: https://github.com/python/cpython/pull/26234 ___ Python tracker ___ ___

[issue42862] Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module

2021-05-19 Thread Berker Peksag
Berker Peksag added the comment: > Or is it ok to call gc.collect() in the test suite? It is but in this case I'd say it's a bit weird that we need to call it. Unfortunately, I don't have much time to investigate it at the moment. -- ___ Python tr

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

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

[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 ___ __

[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 this

[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 --

[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 Erlend E. Aasland
Change by Erlend E. Aasland : -- 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 neces

[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 ___ ___

[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) https://github.com/python/cpython/commit/74eb94af2b0ca652d4b6b9b853601a8b8ac7

[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) https://github.com/python/cpython/commit/5f2afff1ddbf11c8dfa9ddc98fb7a2f2d86

[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 friend

[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 _

[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
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 --

[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: https://mail.python.org/mai

[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 "elif"

[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 fo

[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

[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 mailing

[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 mail

[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 mail

[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
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 behaviour

[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: op

[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: https://

[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)]), body=[Expr(value=Call(func=Name(id='pri

[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 t

[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

[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, end

[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 interce

[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", "credits"

[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:

[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 ___ ___

[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 ___ ___

[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 ___ ___

[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 ___ ___

[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

[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. Th

[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 once

[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

[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 ___

[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 ___ ___ Python-bugs-li

[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

[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

[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 _

[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 Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[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
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) https://github.com/python/cpython/commit/d4a9

[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) https://github.com/python/cpython/commit/ec

[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

[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: https://mail.

[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 "s

[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: 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 Shreyan Avigyan
Shreyan Avigyan added the comment: Sorry for the typos. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[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 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 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 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 ten

[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 _

[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 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) https://github.com/python/cpython/commit/9a75cc60

[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 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) https://github.com/python/cpython/commit/65dede6

[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 ___ ___ Python-bugs-l

[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) https://github.com/python/cpython/commit/ab1c3d99f51188d1a

[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 for

[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

[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 mail

[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 yo

[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 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 f

[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: https://mail

[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: https://mail

[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 mail

[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

[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 debugg

[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 Darwin

[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

[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 ___ ___

[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 m

[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

[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 ___

[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 ___ _

  1   2   >