[issue39379] sys.path[0] is already absolute path

2020-01-17 Thread Ken Sato
New submission from Ken Sato : In the "What’s New In Python 3.9" (Doc/whatsnew/3.9.rst), it says > Python now gets the absolute path of the script filename specified on the > command line (ex: python3 script.py): the __file__ attribute of the __main__ > module and sys.path[0] become an

[issue39372] The header files in Include/ have many declarations with no definition

2020-01-17 Thread Zackery Spytz
Zackery Spytz added the comment: The removal of PyNoArgsFunction is the subject of bpo-18091. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue38848] compileall fails when the platform lacks a functional sem_open()

2020-01-17 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38848] compileall fails when the platform lacks a functional sem_open()

2020-01-17 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +17442 pull_request: https://github.com/python/cpython/pull/18047 ___ Python tracker ___

[issue39173] _AttributeHolder of argparse should support the sort function or not?

2020-01-17 Thread hai shi
hai shi added the comment: paul said in issue 39058: `Anyways removing the sort makes sense, and the proposed change phrase "in the order attributes were added" is sufficiently general.` I agree paul's opinion now. The functionality meets users' needs now, so we don't need spend much time

[issue39378] partial of PickleState struct should be traversed.

2020-01-17 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +17441 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18046 ___ Python tracker ___

[issue39378] partial of PickleState struct should be traversed.

2020-01-17 Thread hai shi
New submission from hai shi : As subject, looks partial of PickleState struct should be traversed. -- components: Extension Modules messages: 360236 nosy: shihai1991 priority: normal severity: normal status: open title: partial of PickleState struct should be traversed. type:

[issue39377] json.loads encoding parameter deprecation removal in Python 3.9

2020-01-17 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : This is a followup of issue33461. The warning says about removal of the encoding parameter in 3.9 . It's already ignored since 3.1 hence I assume this should be raising a TypeError in 3.9 removing the deprecation warning. I am finding some

[issue39197] argparse: title and description for mutually exclusive arg groups

2020-01-17 Thread paul j3
paul j3 added the comment: https://bugs.python.org/issue9694 is the original issue about the titles of the base argument groups. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue39173] _AttributeHolder of argparse should support the sort function or not?

2020-01-17 Thread paul j3
paul j3 added the comment: I don't think the SO question is relevant. It's about changing the order of Actions in the Help and/or usage. Here it's a question of whether to sort the `argparse.Namespace` display. I think it's been adequately discussed in the recent bug/issues such as

[issue39197] argparse: title and description for mutually exclusive arg groups

2020-01-17 Thread paul j3
paul j3 added the comment: A mutually_exclusive_group is not an argument_group. It affects parsing and the usage, but does nothing in the help lines. A mutually_exclusive_group may be nested in an argument_group if you want another group title. g1 = parser.add_argument_group('My

[issue39374] Key in sort -> Callable Object instead of function

2020-01-17 Thread Carlos Segura González
Carlos Segura González added the comment: The thing is that even in the "Language Reference" is not correct. In "https://docs.python.org/3/library/functions.html#sorted; it is stated "key specifies a function of one argument that is used to extract a comparison key..." I think that it is

[issue39374] Key in sort -> Callable Object instead of function

2020-01-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39331] 2to3 mishandles indented imports

2020-01-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thank you for the report. This is a duplicate of #38681. -- nosy: +cheryl.sabella resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> 2to3 Conversion Result using BlankLine() can be Syntactically Incorrect

[issue39372] The header files in Include/ have many declarations with no definition

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

[issue39372] The header files in Include/ have many declarations with no definition

2020-01-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset cd7db76a636c218b2d81d3526eb435cfae61f212 by Pablo Galindo in branch 'master': bpo-39372: Clean header files of declared interfaces with no implementations (GH-18037)

[issue39374] Key in sort -> Callable Object instead of function

2020-01-17 Thread Vedran Čačić
Vedran Čačić added the comment: I think that "HOW TO"s are fundamentally different from the "regular" documentation, in that they focus on explaining only the usual use cases and valuing simple explanations over the correct ones. Of course this _can_ be fixed, but I don't think that it must

[issue39373] new world

2020-01-17 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Please include a description of the issue you are facing and how it's a CPython bug. With an empty report this would be closed. -- nosy: +xtreak ___ Python tracker

[issue39283] Add ability to inherit unittest arguement parser

2020-01-17 Thread paul j3
paul j3 added the comment: The issue of testing a script that uses argparse has come up on StackOverFlow a number of times. As noted the unittesting framework(s) often use their own parsers (not necessarily argparse). That means they are looking at the sys.argv commandline. It is

[issue39376] Avoid modifying the process global environment (not thread safe)

2020-01-17 Thread Eric Snow
Eric Snow added the comment: +1 This has impact on subinterpreters once they stop sharing the GIL. (It's already on my list of global resources that need better protection.) -- nosy: +eric.snow ___ Python tracker

[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2020-01-17 Thread paul j3
paul j3 added the comment: This is a complicated issue that needs a lot of thought and testing before we make any changes. While all Actions have the 'required' attribute, the programmer can only set it for optionals. _get_positional_kwargs() will raise an error if the programmer tries to

[issue39376] Avoid modifying the process global environment (not thread safe)

2020-01-17 Thread Gregory P. Smith
New submission from Gregory P. Smith : For more context, see https://bugs.python.org/issue39375 which seeks to document the existing caveats. POSIX lacks any APIs to access the process global environment in a thread safe manner. Given this, we could _consider_ preventing os.putenv() and

[issue39375] Document os.environ[x] = y and os.putenv() as thread unsafe

2020-01-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://bugs.python.org/issue39376 tracks possible interpreter behavior changes. -- ___ Python tracker ___

[issue39375] Document os.environ[x] = y and os.putenv() as thread unsafe

2020-01-17 Thread Gregory P. Smith
New submission from Gregory P. Smith : The underlying API calls made by os.putenv() and os.environ[name] = value syntax are not thread safe on POSIX systems. POSIX _does not have_ any thread safe way to access the process global environment. In a pure Python program, the GIL prevents this

[issue39293] Windows 10 64-bit needs reboot after install

2020-01-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Windows 10 64-bit needs reboot -> Windows 10 64-bit needs reboot after install ___ Python tracker ___

[issue39374] Key in sort -> Callable Object instead of function

2020-01-17 Thread Anthony Flury
Anthony Flury added the comment: I will submit a documentation only fix for this in the next day or so. -- nosy: +anthony-flury ___ Python tracker ___

[issue39374] Key in sort -> Callable Object instead of function

2020-01-17 Thread Carlos Segura González
Change by Carlos Segura González : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39374] Key in sort -> Callable Object instead of function

2020-01-17 Thread Carlos Segura González
New submission from Carlos Segura González : In the Documentation, the "Sorting HOW TO" (https://docs.python.org/3/howto/sorting.html) states that "have a key parameter to specify a function to be called". However, it might be other callable objects. In fact, some of the examples given in the

[issue39305] Merge nntplib._NNTPBase and nntplib.NNTP

2020-01-17 Thread Luciana
Luciana added the comment: I just uploaded the PR, please take a look when you have a chance :) I did my best trying to come up with a good code. -- ___ Python tracker ___

[issue39343] Travis CI: documentation job fails in library/nntplib.rst with random network issue on news.gmane.io

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: It seems like the GMANE server has been fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39305] Merge nntplib._NNTPBase and nntplib.NNTP

2020-01-17 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +17439 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18045 ___ Python tracker ___

[issue39298] add BLAKE3 to hashlib

2020-01-17 Thread Jack O'Connor
Jack O'Connor added the comment: I plan to bring the C code up to speed with the Rust code this week. As part of that, I'll probably remove comments like the one above :) Otherwise, is there anything else we can do on our end to help with this? --

[issue39373] new world

2020-01-17 Thread John Haley
Change by John Haley : -- nosy: John Haley priority: normal severity: normal status: open title: new world ___ Python tracker ___

[issue17005] Add a topological sort algorithm

2020-01-17 Thread gaborbernat
gaborbernat added the comment: I think the new interface feeds better for usage in both sequential or parallel workflows, which means we can use a single UI for both, so  from myself -- nosy: +gaborbernat ___ Python tracker

[issue39352] Remove the formatter module, deprecated since Python 3.4

2020-01-17 Thread Brett Cannon
Brett Cannon added the comment: This is already covered in https://www.python.org/dev/peps/pep-0594/ for removal in 3.10, so probably best to help get that PEP accepted first then deal with the removal. -- ___ Python tracker

[issue32615] Inconsistent behavior if globals is a dict subclass

2020-01-17 Thread Brett Cannon
Brett Cannon added the comment: Paul, your attitude on this issue has unfortunately begun violating the PSF Code of Conduct which this issue tracker adheres to. I realize you're frustrated that the change you are after is not happening, but that doesn't mean you can deride others like you

[issue38076] Make struct module PEP-384 compatible

2020-01-17 Thread Eddie Elizondo
Eddie Elizondo added the comment: Hey all, I've got a fix for this bug and the CI is green: https://github.com/python/cpython/pull/18039 TL;DR: The module state have to be cleared at a later time. I explain in detail in the PR. Also, I didn't add a new test since there was a test that was

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2020-01-17 Thread Eric Snow
Eric Snow added the comment: Thanks, Victor! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37224] test__xxsubinterpreters fails randomly

2020-01-17 Thread Eric Snow
Eric Snow added the comment: On Wed, Jan 15, 2020 at 12:20 AM Kyle Stanley wrote: > As can be seen from the results above, the interpreter is not even running in > the first place before > it's destroyed, so of course destroy() won't raise an RuntimeError. I think > this proves that >

[issue38076] Make struct module PEP-384 compatible

2020-01-17 Thread Eddie Elizondo
Change by Eddie Elizondo : -- pull_requests: +17438 pull_request: https://github.com/python/cpython/pull/18039 ___ Python tracker ___

[issue39372] The header files in Include/ have many declarations with no definition

2020-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch! All removals LGTM. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue39370] askopenfilename is missing from the Tkinter filedialog library in 2.7.17

2020-01-17 Thread Ned Deily
Ned Deily added the comment: In Python 2, askopenfilename was in the separate tkFileDialog module: >>> import tkFileDialog >>> dir(tkFileDialog.askopenfilename) ['__call__', ... https://docs.python.org/2/library/tkinter.html?highlight=tkfiledialog#tkinter-modules "Other modules that

[issue38076] Make struct module PEP-384 compatible

2020-01-17 Thread Dino Viehland
Dino Viehland added the comment: https://github.com/python/cpython/pull/18038 is a partial fix for this. I think it fixes the crash at shutdown, although I'm still seeing a hang on master on Linux which is different then earlier versions of Python. I seem to have a really bogus stack

[issue38076] Make struct module PEP-384 compatible

2020-01-17 Thread Dino Viehland
Change by Dino Viehland : -- pull_requests: +17437 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/18038 ___ Python tracker ___

[issue29435] Allow to pass fileobj to is_tarfile

2020-01-17 Thread William Woodruff
William Woodruff added the comment: I'll take a stab at this. It looks like `Tarfile.open` takes an optional keyword that should make this straightforward. -- nosy: +yossarian ___ Python tracker

[issue39372] The header files in Include/ have many declarations with no definition

2020-01-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +17436 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18037 ___ Python tracker

[issue39372] The header files in Include/ have many declarations with no definition

2020-01-17 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : There are many declarations that lack definitions in our header files that should be cleaned (linking against those symbols will fail so removing them should be safe if I am not missing something). -- components: Build messages: 360204

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: BinHex format: https://en.wikipedia.org/wiki/BinHex The question here is not only if binhex remains popular, but more generally if we want to continue to maintain it forever. Each module has a cost on the overall Python maintenance burden. --

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka asked: https://github.com/python/cpython/pull/18025#issuecomment-575645748 """ What is a benefit of deprecating it? This module is a high-level interface to several functions in the binascii module. This is all macOS specific stuff, so you

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: > If deprecate the binhex module, we perhaps should deprecate also > binascii.b2a_hqx(), binascii.a2b_hqx(), binascii.rlecode_hqx(), > binascii.rledecode_hqx() and binascii.crc_hqx(). Ok, let's do that. I updated the issue title and my PR. --

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-17 Thread STINNER Victor
Change by STINNER Victor : -- title: Deprecate the binhex module -> Deprecate the binhex module, binhex4 and hexbin4 standards ___ Python tracker ___

[issue39371] http.client.HTTPResponse raises IncompleteRead on chunked encoding

2020-01-17 Thread Arden
Arden added the comment: Pythons 3.5-3.7 also have self.chunk_left = 0 in _readinto_chunked I think it's bug but I didn't check it thoroughly -- ___ Python tracker ___

[issue39308] Literal[True] prints as Literal[1] in some cases

2020-01-17 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39371] http.client.HTTPResponse raises IncompleteRead on chunked encoding

2020-01-17 Thread Arden
New submission from Arden : http.client.HTTPResponse._readinto_chunked has two problems in python 3.8 - 3.9. 1. _safe_readinto assumes that self.fp.readinto(b) will read exactly len(b) bytes. This is not always true, especially in case of SSL traffic. But _safe_readinto raises IncompleteRead

[issue27540] msvcrt.ungetwch() calls _ungetch()

2020-01-17 Thread Zachary Ware
Zachary Ware added the comment: If this isn't an issue in Python 3, I agree. -- ___ Python tracker ___ ___ Python-bugs-list

[issue27657] urlparse fails if the path is numeric

2020-01-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39366] Remove deprecated nntplib method

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: >>> a.description('gmane.comp.python.committers') 'CPython Committers (non-public) (Moderated)' >>> a.descriptions('gmane.comp.python.committers') ('215 Newsgroup descriptions in form "group description"', {'gmane.comp.python.committers': 'CPython Committers

[issue27657] urlparse fails if the path is numeric

2020-01-17 Thread Chris Dent
Chris Dent added the comment: Just to add to the list of places this is causing a regression. This has broken the target host determination routines in gabbi: https://github.com/cdent/gabbi/issues/277 While the original fix may have been strictly correct in some ways, it results in a

[issue39368] A matrix (list of lists) behaves differently, depending how it is created

2020-01-17 Thread Jaap Woldringh
Jaap Woldringh added the comment: Op 17-01-2020 om 14:03 schreef Karthikeyan Singaravelan: > Karthikeyan Singaravelan added the comment: > > You're referencing to the same list 3 times in B. So modifying it once means > all the elements referring to same object reflect the change. Make a copy

[issue39370] askopenfilename is missing from the Tkinter filedialog library in 2.7.17

2020-01-17 Thread Dreas Nielsen
New submission from Dreas Nielsen : In Python 2.7.17 on Linux, the code: import tkinter.filedialog as tkfiledialog dir(tkfiledialog.askopenfilename) results in: AttributeError: 'module' object has no attribute 'askopenfilename' Any attempt to use 'askopenfilename' has the same

[issue39353] Deprecate the binhex module

2020-01-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list

[issue39356] zipfile suprising "except DeprecationWarning:" block

2020-01-17 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39356] zipfile suprising "except DeprecationWarning:" block

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1d3b0aaa54c56282c0a3e7fc396e5b1de8b1974e by Victor Stinner in branch 'master': bpo-39356, zipfile: Remove code handling DeprecationWarning (GH-18027) https://github.com/python/cpython/commit/1d3b0aaa54c56282c0a3e7fc396e5b1de8b1974e --

[issue39366] Remove deprecated nntplib method

2020-01-17 Thread Dong-hee Na
Dong-hee Na added the comment: > Does > https://docs.python.org/dev/library/nntplib.html#nntplib.NNTP.description > give the same result? Not exactly same but descriptions give a similar result. >>> import nntplib >>> a = nntplib.NNTP('news.gmane.io') >>>

[issue39369] Doc: Update mmap readline method documentation

2020-01-17 Thread Wellington PF
New submission from Wellington PF : Update mmap readline method description. The fact that the readline method does update the file position should not be ignored since this might give the impression for the programmer that it doesn't update it. -- assignee: docs@python components:

[issue39366] Remove deprecated nntplib method

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: >>> a.xgtitle('gmane.comp.python.committers') ('282 Descriptions in form "group description"', [('gmane.comp.python.committers', 'CPython Committers (non-public) (Moderated)')]) Does https://docs.python.org/dev/library/nntplib.html#nntplib.NNTP.description

[issue39165] Completeness and symmetry in RE, avoid `findall(...)[0]`

2020-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Most of examples do not test whether findall() returns an empty list. So there is no significant difference with using search() -- just different type of exception if fails (IndexError, TypeError or AttributeError). Since most examples do not handle

[issue39366] Remove deprecated nntplib method

2020-01-17 Thread Dong-hee Na
Dong-hee Na added the comment: Looks like xgtitle is supported but xpath is not. >>> a.xgtitle('gmane.comp.python.committers') ('282 Descriptions in form "group description"', [('gmane.comp.python.committers', 'CPython Committers (non-public) (Moderated)')]) >>> a.xpath(message_id)

[issue39165] Completeness and symmetry in RE, avoid `findall(...)[0]`

2020-01-17 Thread Juancarlo Añez
Juancarlo Añez added the comment: The analysis done by Terry bypasses the fact that `search(...)` returns `None` when there is no match, so indexing or calling methods in its result is not safe code. `findall()` returns an empty list when there is no match. `findalliter()` returns an empty

[issue39165] Completeness and symmetry in RE, avoid `findall(...)[0]`

2020-01-17 Thread Juancarlo Añez
Juancarlo Añez added the comment: The bottom problem, as I see it, is that, historically, `re.search()` returns `None` when there is no match, instead of returning a `Match` object that is consistent with "no match" (evaluates to `False`, etc.) The above seems too difficult to repair as so

[issue39368] A matrix (list of lists) behaves differently, depending how it is created

2020-01-17 Thread Ezio Melotti
Ezio Melotti added the comment: See also https://docs.python.org/3/faq/programming.html#why-did-changing-list-y-also-change-list-x You can use the builtin function id() to see the id of the lists, and verify whether they refer to the same object or not. -- nosy: +ezio.melotti

[issue39368] A matrix (list of lists) behaves differently, depending how it is created

2020-01-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: You're referencing to the same list 3 times in B. So modifying it once means all the elements referring to same object reflect the change. Make a copy of the list during append to ensure modification of one doesn't affect other. This is not a

[issue39357] bz2: Remove deprecated buffering parameter of bz2.BZ2File

2020-01-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the fix Victor :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39368] A matrix (list of lists) behaves differently, depending how it is created

2020-01-17 Thread Jaap Woldringh
New submission from Jaap Woldringh : Python used: Python 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. In Ubuntu 18.04.3 But in any other version of Python3, and Python2, that I tried, the behaviour of a

[issue39357] bz2: Remove deprecated buffering parameter of bz2.BZ2File

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: Thanks Karthikeyan, I forgot about the docstring. -- ___ Python tracker ___ ___ Python-bugs-list

[issue39357] bz2: Remove deprecated buffering parameter of bz2.BZ2File

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 10fd6b2b9f0aeb8f5a0ce4cb4b9f21f942d39a71 by Victor Stinner in branch 'master': bpo-39357: Update bz2 docstring: remove buffering (GH-18036) https://github.com/python/cpython/commit/10fd6b2b9f0aeb8f5a0ce4cb4b9f21f942d39a71 --

[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread Horace Stoica
Horace Stoica added the comment: Tried dnf install python38 and it works. Thank you! -- ___ Python tracker ___ ___

[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: > The reason I am building from source is that Fedora 30 provides Python 3.7.3 > and I wanted to try out the new features (like the walrus operator) that were > introduced in version 3.8. Did you try "dnf install python38"? It's available on Fedora 30. FYI

[issue32615] Inconsistent behavior if globals is a dict subclass

2020-01-17 Thread Paul Sokolovsky
Paul Sokolovsky added the comment: > We may be possible to replace bytecode from `STORE_GLOBAL _cnt; LOAD_GLOBAL > _cnt` into `DUP_TOP; STORE_GLOBAL _cnt`. Sounds good, and that's why I personally care about the "STORE" case, and the patch I submit touches only it, which would affect only

[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread Horace Stoica
Horace Stoica added the comment: A big "thank you" to everyone, I installed readline-develop and rebuilt from source, and now the problem is fixed. The reason I am building from source is that Fedora 30 provides Python 3.7.3 and I wanted to try out the new features (like the walrus

[issue27379] SocketType changed in Python 3

2020-01-17 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.8, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue32615] Inconsistent behavior if globals is a dict subclass

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: As explained multiple times, this feature request is rejected. I close the issue. Paul: Your behavior is not appropriate and violates the Python code of conduct. You have already been warned by Pablo. -- resolution: -> rejected stage: test needed

[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: Oh right, Ammar is right, you miss a dependency. Try maybe: sudo dnf install -y dnf-plugins-core sudo dnf builddep -y python3 https://cpython-core-tutorial.readthedocs.io/en/latest/build_cpython_linux.html ... but why are you building Python from source?

[issue39357] bz2: Remove deprecated buffering parameter of bz2.BZ2File

2020-01-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17434 pull_request: https://github.com/python/cpython/pull/18036 ___ Python tracker ___

[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: I'm able to reproduce the issue on Fedora 31, but only if the 3rd party readline module is loaded, instead of the stdlib "readline" module. The problem is that https://pypi.org/project/readline/ misuses the Python memory allocator API. The GIL must be held

[issue32615] Inconsistent behavior if globals is a dict subclass

2020-01-17 Thread Inada Naoki
Inada Naoki added the comment: > Ironically, to let people prototype better, more efficient ways to deal with > namespace access, it should be possible to override an object used as a > namespace. You can benchmark your prototype namespace object by regular Python code: d["name"] #

[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread Ammar Askar
Ammar Askar added the comment: > Installed the readline module as the arrows do not work when running Python > interactively. This is not a suggested way to fix the issue, especially given that the module you installed is marked as deprecated: https://pypi.org/project/readline/ > Built

[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread Horace Stoica
New submission from Horace Stoica : Built Python 3.8.1 from source on Fedora 30: kernel: 5.1.8-300.fc30.x86_64 Python 3.8.1 (default, Jan 15 2020, 08:49:34) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux Installed the readline module as the arrows do not work when running Python

[issue39366] Remove deprecated nntplib method

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: I'm not used to the NNTP protocol. Does the news.gmane.io support these 2 extensions? -- ___ Python tracker ___

[issue39357] bz2: Remove deprecated buffering parameter of bz2.BZ2File

2020-01-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://github.com/python/cpython/blob/9baf242fc733ab8a52a0b6201d95c6fdb8251745/Lib/bz2.py#L50 contains similar reference about buffering parameter deprecation like bz2.rst which could also be removed. Thanks. -- nosy: +xtreak

[issue32615] Inconsistent behavior if globals is a dict subclass

2020-01-17 Thread Paul Sokolovsky
Paul Sokolovsky added the comment: Absolutely should be able to optimize namespace access. The fact that namespace is a dict is an implementation detail, it's still inefficient even with all those version counters and inline caches. Ironically, to let people prototype better, more efficient

[issue38921] Max Recursion Depth Reached in Logging Library

2020-01-17 Thread yang
yang added the comment: You assigned a handler to a variable `formatter`, and then called `setFormatter(formatter)`, but `formatter` is in fact a handler. The two classes `Formatter` and `Handler` happen to have a same name method `format` which is called when logging. So what happend is

[issue32615] Inconsistent behavior if globals is a dict subclass

2020-01-17 Thread Inada Naoki
Inada Naoki added the comment: This is duplicate of #1402289, which was rejected. I agree with Victor. Python should be free to optimize namespace access. Namespace access is an implementation detail and user should not assume such "consistency" here. It is like this: x = 1000 y = x

[issue39336] Immutable module type can't be used as package in custom loader

2020-01-17 Thread Dong-hee Na
Dong-hee Na added the comment: I apologize for the noise caused by the wrong PR connection. -- nosy: +corona10 ___ Python tracker ___

[issue39336] Immutable module type can't be used as package in custom loader

2020-01-17 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -17433 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39366] Remove deprecated nntplib method

2020-01-17 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +17432 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18035 ___ Python tracker ___

[issue39336] Immutable module type can't be used as package in custom loader

2020-01-17 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -17431 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39336] Immutable module type can't be used as package in custom loader

2020-01-17 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +17433 pull_request: https://github.com/python/cpython/pull/18035 ___ Python tracker ___

[issue39336] Immutable module type can't be used as package in custom loader

2020-01-17 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +17431 pull_request: https://github.com/python/cpython/pull/18035 ___ Python tracker ___

[issue39366] Remove deprecated nntplib method

2020-01-17 Thread Dong-hee Na
New submission from Dong-hee Na : Remove deprecated methods since Python 3.3. Moreover nntplib.NNTP.xgtitle has not been exposed through docs.python.org https://docs.python.org/3/library/nntplib.html -- assignee: corona10 messages: 360163 nosy: corona10, vstinner priority: normal

  1   2   >