[issue38981] better name for re.error Exception class.

2019-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not sure about the new name. "re" is an abbreviation, so if include it in the exception name it should be "RE". I am not sure what name is better: RECompileError, REParseError, RESyntaxError, REError, CompileError, ParseError, SyntaxError or Error. j

[issue38669] patch.object should raise another error when first argument is a str

2019-12-08 Thread Chris Withers
Change by Chris Withers : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38669] patch.object should raise another error when first argument is a str

2019-12-08 Thread Chris Withers
Chris Withers added the comment: New changeset 41973c99fdfdc78315e819661e279bdcc2f058b1 by Chris Withers (Miss Islington (bot)) in branch '3.7': bpo-38669: patch.object now raises a helpful error (GH17511) https://github.com/python/cpython/commit/41973c99fdfdc78315e819661e279bdcc2f058b1 ---

[issue38669] patch.object should raise another error when first argument is a str

2019-12-08 Thread Chris Withers
Chris Withers added the comment: New changeset 4594565b56e9c99d2d3fb7549041bbca5ecba8e2 by Chris Withers (Miss Islington (bot)) in branch '3.8': bpo-38669: patch.object now raises a helpful error (GH17510) https://github.com/python/cpython/commit/4594565b56e9c99d2d3fb7549041bbca5ecba8e2 ---

[issue38993] cProfile behaviour issue with decorator and math.factorial() lib.

2019-12-08 Thread AVicennA
AVicennA added the comment: In short, here are different behaviours in increasing steps of values, which are (based on my researching) giving incorrect results in relation to each other. Given example: import functools import cProfile def decor(func): @functools.wraps(func) def wra

[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-12-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would prefer that. I think treating '\n' and ' \n' differently is a bit of a bug. And the fix pretty well matches code/codeop behavior. I have so far not imagined how it could break code.But you could let Ned Deily decide, before the next rc, if you

[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-12-08 Thread Guido van Rossum
Guido van Rossum added the comment: So 3.8.1 got backported by Miss Islington. Do we want this in earlier releases? -- ___ Python tracker ___ _

[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-12-08 Thread miss-islington
miss-islington added the comment: New changeset 184a3812b81e2f7d4bc6453bf7ceabe8ac590202 by Miss Islington (bot) in branch '3.8': bpo-38673: dont switch to ps2 if the line starts with comment or whitespace (GH-17421) https://github.com/python/cpython/commit/184a3812b81e2f7d4bc6453bf7ceabe8ac

[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +16993 pull_request: https://github.com/python/cpython/pull/17516 ___ Python tracker ___ __

[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-12-08 Thread Guido van Rossum
Guido van Rossum added the comment: I'd like to backport this to 3.8.1 at least. Are people interested in getting it backported to earlier versions? -- ___ Python tracker ___

[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-12-08 Thread miss-islington
miss-islington added the comment: New changeset 109fc2792a490ee5cd8a423e17d415fbdedec5c8 by Miss Islington (bot) (Batuhan Taşkaya) in branch 'master': bpo-38673: dont switch to ps2 if the line starts with comment or whitespace (GH-17421) https://github.com/python/cpython/commit/109fc2792a490e

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2019-12-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ __

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-12-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: i believe new work will be done via the new issue. marking this closed. if there is something not covered by issue38576 that remains, please open a new issue for it. new discussion on this long issue is easy to get lost in. -- resolution: -> fi

[issue38576] CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

2019-12-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue38698] While parsing email message id: UnboundLocalError

2019-12-08 Thread Abhilash Raj
Abhilash Raj added the comment: Closing this as fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue38708] parse_message_id in email module is very buggy / crashy

2019-12-08 Thread Abhilash Raj
Abhilash Raj added the comment: Closing this as fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue38708] parse_message_id in email module is very buggy / crashy

2019-12-08 Thread miss-islington
miss-islington added the comment: New changeset 2abd3a8f580e6c7b1ce88b2ae9f9a783f4aea5d3 by Miss Islington (bot) in branch '3.8': bpo-38708: email: Fix a potential IndexError when parsing Message-ID (GH-17504) https://github.com/python/cpython/commit/2abd3a8f580e6c7b1ce88b2ae9f9a783f4aea5d3

[issue38698] While parsing email message id: UnboundLocalError

2019-12-08 Thread miss-islington
miss-islington added the comment: New changeset f66f4a09d0b6817fe6a86a567fd506aa223f1563 by Miss Islington (bot) in branch '3.8': bpo-38698: Add a new InvalidMessageID token to email header parser. (GH-17503) https://github.com/python/cpython/commit/f66f4a09d0b6817fe6a86a567fd506aa223f1563

[issue38708] parse_message_id in email module is very buggy / crashy

2019-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +16992 pull_request: https://github.com/python/cpython/pull/17515 ___ Python tracker ___ __

[issue38708] parse_message_id in email module is very buggy / crashy

2019-12-08 Thread Abhilash Raj
Abhilash Raj added the comment: New changeset 3ae4ea1931361dd2743e464790e739d9285501bf by Abhilash Raj in branch 'master': bpo-38708: email: Fix a potential IndexError when parsing Message-ID (GH-17504) https://github.com/python/cpython/commit/3ae4ea1931361dd2743e464790e739d9285501bf --

[issue38698] While parsing email message id: UnboundLocalError

2019-12-08 Thread Abhilash Raj
Abhilash Raj added the comment: New changeset 68157da8b42b26408af5d157d2dba4fcf29c6320 by Abhilash Raj in branch 'master': bpo-38698: Add a new InvalidMessageID token to email header parser. (GH-17503) https://github.com/python/cpython/commit/68157da8b42b26408af5d157d2dba4fcf29c6320 ---

[issue38698] While parsing email message id: UnboundLocalError

2019-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +16991 pull_request: https://github.com/python/cpython/pull/17514 ___ Python tracker ___ __

[issue16397] UserString doesn't combine nicely with strings

2019-12-08 Thread Phillip Schanely
Change by Phillip Schanely : -- nosy: +pschanely ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue38998] dict.setdefault (setdefault of dictionary)

2019-12-08 Thread da-dada
da-dada added the comment: my use case is different (I do a loop), but what I expected from the docs (just for fun!) class Ddefault: def __init__(self): vars(self).setdefault('default', self.set_default() if not 'default' in vars(self) else self.default) vars(self).setde

[issue38993] cProfile behaviour issue with decorator and math.factorial() lib.

2019-12-08 Thread Mark Dickinson
Mark Dickinson added the comment: @AVicennA Can you clarify exactly which part of the output you find surprising, and why, and what result you expected instead? It's a little hard to tell which details in your message we're supposed to be looking at. -- nosy: +mark.dickinson ___

[issue38594] importlib.metadata documentation deficiencies

2019-12-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: Please have a look at https://gitlab.com/python-devs/importlib_metadata/merge_requests/104/diffs, which attempts to clarify the documentation to indicate how one would implement a custom finder. If you have a prototype implementation, I'd be happy to have a

[issue38987] 3.8.0 on GNU/Linux fails to find shared library

2019-12-08 Thread Christian Heimes
Christian Heimes added the comment: Did you update the ld.so cache with ldconfig? -- nosy: +christian.heimes ___ Python tracker ___ ___

[issue38901] Add a CLI flag to venv to use the pwd basename as the prompt

2019-12-08 Thread Brett Cannon
Brett Cannon added the comment: If it were `.` would we then always check if the prompt was a folder and then use the folder's name in that case? Or would it only apply to `.`? As for `__curdir__`, it could work, but I don't know how easy would that be to remember or explain to new users com

[issue38594] importlib.metadata documentation deficiencies

2019-12-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: Good suggestions. Thanks for taking the time to articulate in such a friendly way the shortcomings you encountered. I'm happy to help. In [this ticket](https://gitlab.com/python-devs/importlib_metadata/issues/105), I've mirrored this ticket in the backport

[issue38998] dict.setdefault (setdefault of dictionary)

2019-12-08 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: The documentation is correct, in Python argument are computed before the call to a function, not when they are used. You can try other functions than dict.setdefault() and see that the behaviour is always the same. Le dim. 8 déc. 2019 à 22:47, da-dada a écrit :

[issue38998] dict.setdefault (setdefault of dictionary)

2019-12-08 Thread da-dada
da-dada added the comment: I have no problem of making my programme run properly (asking first if in dict etc), but I just read the docu of dict.setdefault setdefault(key[, default]) If key is in the dictionary, return its value. If not, insert key with a value of default and return default

[issue38993] cProfile behaviour issue with decorator and math.factorial() lib.

2019-12-08 Thread AVicennA
AVicennA added the comment: Hello, I use decorators in my Python project. I tested project with cProfile(profiling). Then, I decide did test with some decorator code fragments. Some results were surprising: import functools import cProfile def decor(func): @functools.wraps(func) def

[issue38997] test__xxsubinterpreters test_atexit test_capi test_threading are leaking references

2019-12-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the fix, Victor! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue39001] possible problem with 64-bit mingw DECREF

2019-12-08 Thread Dave Lawrence
New submission from Dave Lawrence : I am calling a python method from C using the attached code. The Site.py file is: import os def find_site(): path = os.path.abspath(".") return path Cross compiled to Windows from Linux using mxe.cc and python 2.7.17 On 32-bit this runs as expected

[issue38997] test__xxsubinterpreters test_atexit test_capi test_threading are leaking references

2019-12-08 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue38997] test__xxsubinterpreters test_atexit test_capi test_threading are leaking references

2019-12-08 Thread STINNER Victor
STINNER Victor added the comment: I validated that my commit 080ee5a88406fb68aaab741145cd5d2a7c5f2ad6 fixed the leaks, so I closed PR 17509 and I close this issue. Thanks for the bug report Pablo! I was also awaiting Refleak buildbot results! $ ./python -m test -R 3:3 -j0 test__xxsubinterpr

[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-08 Thread Mark Dickinson
Mark Dickinson added the comment: @xdegaye Please could you test whether the PR GH-17513 fixes the issue for you? -- ___ Python tracker ___ ___

[issue38997] test__xxsubinterpreters test_atexit test_capi test_threading are leaking references

2019-12-08 Thread STINNER Victor
STINNER Victor added the comment: This reference leak is not new :-) It exists since at least Python 2.7. Extract of Python 2.7, Python/pythonrun.c: sysmod = _PySys_Init(); if (sysmod == NULL) Py_FatalError("Py_Initialize: can't initialize sys"); interp->sysdict = PyModule

[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-08 Thread Mark Dickinson
Change by Mark Dickinson : -- keywords: +patch pull_requests: +16990 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17513 ___ Python tracker __

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-12-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 080ee5a88406fb68aaab741145cd5d2a7c5f2ad6 by Victor Stinner in branch 'master': bpo-38858: Fix ref leak in pycore_interp_init() (GH-17512) https://github.com/python/cpython/commit/080ee5a88406fb68aaab741145cd5d2a7c5f2ad6 -- ___

[issue38997] test__xxsubinterpreters test_atexit test_capi test_threading are leaking references

2019-12-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 080ee5a88406fb68aaab741145cd5d2a7c5f2ad6 by Victor Stinner in branch 'master': bpo-38858: Fix ref leak in pycore_interp_init() (GH-17512) https://github.com/python/cpython/commit/080ee5a88406fb68aaab741145cd5d2a7c5f2ad6 -- ___

[issue39000] Range causing unstable output(Windows64)

2019-12-08 Thread Mark Dickinson
Mark Dickinson added the comment: This has nothing to do with range. The source of indeterminacy is this line in your code: for amp_id in amp_programs.keys(): In Python 3.5, the ordering of `amp_programs.keys()` could differ from run to run. (With Python 3.6 and later, that won't happen

[issue38994] Implement __class_getitem__ for PathLike

2019-12-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue38994] Implement __class_getitem__ for PathLike

2019-12-08 Thread miss-islington
miss-islington added the comment: New changeset 526606baf76e7a5309bb00f3bfaefa861a2014ba by Miss Islington (bot) (Batuhan Taşkaya) in branch 'master': bpo-38994: Implement __class_getitem__ for PathLike (GH-17498) https://github.com/python/cpython/commit/526606baf76e7a5309bb00f3bfaefa861a2014b

[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-08 Thread Mark Dickinson
Mark Dickinson added the comment: Note that the exact values of `1.7**i` don't matter here - some sloppiness in the `pow` results should not cause a test failure. The key point is that under fairly mild assumptions about IEEE 754 conformance, the subtractions `1.7**(i+1) - 1.7**i` are always

[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-08 Thread Mark Dickinson
Mark Dickinson added the comment: So if I'm understanding correctly, the cause of the issue is that the value `1.7**(i+1)` computed in the last iteration (i=999) of the list comprehension doesn't exactly match the `-1.7**1000` value, because the former is computed at runtime using the libm's

[issue38997] test__xxsubinterpreters test_atexit test_capi test_threading are leaking references

2019-12-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16989 pull_request: https://github.com/python/cpython/pull/17512 ___ Python tracker ___ __

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-12-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16988 pull_request: https://github.com/python/cpython/pull/17512 ___ Python tracker ___ __

[issue38669] patch.object should raise another error when first argument is a str

2019-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +16987 pull_request: https://github.com/python/cpython/pull/17511 ___ Python tracker ___ __

[issue38669] patch.object should raise another error when first argument is a str

2019-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +16986 pull_request: https://github.com/python/cpython/pull/17510 ___ Python tracker ___ __

[issue38669] patch.object should raise another error when first argument is a str

2019-12-08 Thread Chris Withers
Chris Withers added the comment: New changeset cd90a52983db34896a6335a572d55bdda274778f by Chris Withers (Elena Oat) in branch 'master': bpo-38669: patch.object now raises a helpful error (GH17034) https://github.com/python/cpython/commit/cd90a52983db34896a6335a572d55bdda274778f --

[issue39000] Range causing unstable output(Windows64)

2019-12-08 Thread Sean Moss
New submission from Sean Moss : I was doing this year's Advent of Code and found that the following program produces unstable output when run using the given file as input: """ from itertools import permutations import gc def runProgram(amp_input, program, counter): while program[counter]

[issue38998] dict.setdefault (setdefault of dictionary)

2019-12-08 Thread Eric V. Smith
Eric V. Smith added the comment: Right. If you want the value only calculated once, then just call it once. You might be interested in collections.defaultdict, which takes a factory function, and only calls it as needed. -- nosy: +eric.smith resolution: -> not a bug stage: -> resol

[issue38996] introduction of default values for collection.namedtuple

2019-12-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue38999] Python launcher on Windows does not detect active venv

2019-12-08 Thread Alexandros Karypidis
Alexandros Karypidis added the comment: As confirmed by debug information when setting PYLAUNCH_DEBUG=1, the shebang seems to be ignored when using '#!//usr/bin/env python3' but works fine when using '#!//usr/bin/env python'. This is with '#!//usr/bin/env python' (proper): --

[issue38998] dict.setdefault (setdefault of dictionary)

2019-12-08 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > > > def __init__(self): > vars(self).setdefault('default', self.set_default()) > vars(self).setdefault('default', self.set_default()) > This code is equivalent to def __init__(self): x = self.set_default() vars(self).set

[issue38998] dict.setdefault (setdefault of dictionary)

2019-12-08 Thread da-dada
New submission from da-dada : from the docu I expected at the second call just a return of value and not a second calculation: there is room for improvement, as Elon Musk would say.. class Ddefault: def __init__(self): vars(self).setdefault('default', self.set_default()) v

[issue38999] Python launcher on Windows does not detect active venv

2019-12-08 Thread Alexandros Karypidis
Alexandros Karypidis added the comment: Forgot the simple script: #!/usr/bin/env python3 import os, sys, platform print('EXECUTABLE: ' + sys.executable) print('PREFIX: ' + sys.prefix) print('BASE PREFIX: ' + sys.base_prefix) -- ___ Python tracker

[issue38999] Python launcher on Windows does not detect active venv

2019-12-08 Thread Alexandros Karypidis
New submission from Alexandros Karypidis : When you activate a venv on Windows and use a shebang with a major verion qualifier, the python launcer does not properly detect that a venv is active and uses the system installation instead. The incorrect behavior is documented in this SO question

[issue38996] introduction of default values for collection.namedtuple

2019-12-08 Thread Eric V. Smith
Eric V. Smith added the comment: Agreed on closing this issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue38996] introduction of default values for collection.namedtuple

2019-12-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's the status of the various ways to do it: 1) In 3.7, collections.namedtuple() added the *defaults* parameter and the *_field_defaults* attribute. 2) In 3.6.1, typing.NamedTuple added support for default values. 3) In older versions of Python, it wa

[issue33880] namedtuple should use NFKD to find duplicate members

2019-12-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Marking as closed for the reasons listed above. Other thoughts: * In the class form with types.NamedTuple, no error is raised. * In the function form with collections.namedtuple, the various TypeErrors and ValueErrors are just courtesy checks intended t

[issue35805] email package folds msg-id identifiers using RFC2047 encoded words where it must not

2019-12-08 Thread Abhilash Raj
Abhilash Raj added the comment: Closing this since it has been fixed in Python 3.8. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: -Python 3.7 ___ Python tracker __

[issue38242] Revert the new asyncio Streams API

2019-12-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ _

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2019-12-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Not sure if failed uvloop tests are correct. The scenario is like the following: 1. Suppose we have an unblocking socket connected to peer. 2. Create a task for reading data: task = asyncio.create_task(loop.sock_read(sock, 1)) Note, the task is not started

[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue38993] cProfile behaviour issue with decorator and math.factorial() lib.

2019-12-08 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Please, could you write a description to this issue here instead of the attached file? -- nosy: +pablogsal ___ Python tracker ___ _

[issue38997] test__xxsubinterpreters test_atexit test_capi test_threading are leaking references

2019-12-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will try to work on an alternative fix meanwhile, but I need to search for what exactly is leaking first. -- ___ Python tracker ___

[issue38997] test__xxsubinterpreters test_atexit test_capi test_threading are leaking references

2019-12-08 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Similar to https://bugs.python.org/issue38962, test__xxsubinterpreters test_atexit test_capi test_threading are leaking references. Example: https://buildbot.python.org/all/#/builders/158/builds/10 https://buildbot.python.org/all/#/builders/16/builds

[issue38997] test__xxsubinterpreters test_atexit test_capi test_threading are leaking references

2019-12-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +16985 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17509 ___ Python tracker __

[issue38997] test__xxsubinterpreters test_atexit test_capi test_threading are leaking references

2019-12-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Per or policy, I will initiate the revert of the commit (and any dependent commit) and will merge if an alternative fix is not done in 1-2 days. -- ___ Python tracker __

[issue38997] test__xxsubinterpreters test_atexit test_capi test_threading are leaking references

2019-12-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Bisecting points to: commit 81fe5bd3d78f9bb955f8255404d99df27a31c36a Author: Victor Stinner Date: Fri Dec 6 02:43:30 2019 +0100 bpo-38858: new_interpreter() reuses _PySys_Create() (GH-17481) new_interpreter() now calls _PySys_Create() t

[issue38996] introduction of default values for collection.namedtuple

2019-12-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is it different from the defaults parameter added in 3.7 with https://github.com/python/cpython/commit/3948207c610e931831828d33aaef258185df31db . The linked pypi package seems to do the same thing. -- nosy: +xtreak

[issue38021] Modify AIX platform_tag so it provides PEP425 needs

2019-12-08 Thread Michael Felt
Michael Felt added the comment: Well, I certainly had not considered people would be using distutils.get_platform().startswith('aix') as I have, in my limited reading, only seen sys.platform.startswith("aix"). Likewise, do not want to break things. I thought this was easier to grasp than my fi

[issue38996] introduction of default values for collection.namedtuple

2019-12-08 Thread Eric V. Smith
Eric V. Smith added the comment: Is there something that your module can do that typing.NamedTuple can't do? This won't be added to 2.7: 3.9 would be the first possible version to add a feature to. -- assignee: -> rhettinger nosy: +eric.smith, rhettinger versions: -Python 2.7, Pyth

[issue38996] introduction of default values for collection.namedtuple

2019-12-08 Thread Arno-Can Uestuensoez
New submission from Arno-Can Uestuensoez : Hello, I had the requirement to make excessive use of named tuples in an extended way. The applications are variable data sets with optional items. Typical in protocol dat a units, or e.g. mixed abstract filesystem types for heterogeneous file system

[issue38979] ContextVar[str] should return ContextVar class, not None

2019-12-08 Thread miss-islington
miss-islington added the comment: New changeset 960fca1a5887a277fd6031cf4c4b6fb31b08ebf5 by Miss Islington (bot) in branch '3.8': bpo-38979: fix ContextVar "__class_getitem__" method (GH-17497) https://github.com/python/cpython/commit/960fca1a5887a277fd6031cf4c4b6fb31b08ebf5 -- ___

[issue38979] ContextVar[str] should return ContextVar class, not None

2019-12-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue38021] Modify AIX platform_tag so it provides PEP425 needs

2019-12-08 Thread Nick Coghlan
Nick Coghlan added the comment: There's a compatibility problem with changing the AIX distutils platform prefix from aix to AIX: any existing code that does "distutils.get_platform().startswith('aix')" will break. (There isn't any code in the standard library that does that, it all checks sy

[issue38979] ContextVar[str] should return ContextVar class, not None

2019-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +16984 pull_request: https://github.com/python/cpython/pull/17507 ___ Python tracker ___ __

[issue38021] Modify AIX platform_tag so it provides PEP425 needs

2019-12-08 Thread Nick Coghlan
Nick Coghlan added the comment: Removing 3.9 from the target versions, as similar to other platform tag improvements, emulation on older release versions will be the domain of cross-version libraries, rather than changing the standard library in a maintenance. -- versions: -Python

[issue38979] ContextVar[str] should return ContextVar class, not None

2019-12-08 Thread miss-islington
miss-islington added the comment: New changeset 9baa870c27b54c26f9dd292c26936b70bdb64a06 by Miss Islington (bot) in branch '3.7': bpo-38979: fix ContextVar "__class_getitem__" method (GH-17497) https://github.com/python/cpython/commit/9baa870c27b54c26f9dd292c26936b70bdb64a06 -- ___

[issue38979] ContextVar[str] should return ContextVar class, not None

2019-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +16982 pull_request: https://github.com/python/cpython/pull/17505 ___ Python tracker ___ __

[issue38979] ContextVar[str] should return ContextVar class, not None

2019-12-08 Thread miss-islington
miss-islington added the comment: New changeset 28c91631c24e53713ad0e8a2bbae716373f5e53d by Miss Islington (bot) (AMIR) in branch 'master': bpo-38979: fix ContextVar "__class_getitem__" method (GH-17497) https://github.com/python/cpython/commit/28c91631c24e53713ad0e8a2bbae716373f5e53d -

[issue38979] ContextVar[str] should return ContextVar class, not None

2019-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +16983 pull_request: https://github.com/python/cpython/pull/17506 ___ Python tracker ___ __

[issue33880] namedtuple should use NFKD to find duplicate members

2019-12-08 Thread Batuhan
Batuhan added the comment: Hey @rhettinger, what is the status of this issue? Is there a consensus about fixing it or can this issue be closed? -- nosy: +BTaskaya ___ Python tracker

[issue38995] reverse search (ctrl-r) doest not work

2019-12-08 Thread sush
sush added the comment: That worked, thanks for the prompt help. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs