[issue41081] Exclude __pycache__ directories from backups using CACHEDIR.TAG

2020-06-22 Thread Jakub Stasiak
New submission from Jakub Stasiak : It'd be nice of __pycache__ directories didn't pollute backups. Granted, one can add __pycache__ directory to their backup-tool-of-choice exclusion list, but those lists are ever growing and maybe it'd be good to help the tools and the users. There's a

[issue41039] Simplify python3.dll build

2020-06-22 Thread Nikita Nemkin
Nikita Nemkin added the comment: Please take your time. FWIW, I tested this patch by 1) comparing dumpbin /exports output; 2) comparing bunaries themselves (.dll and .lib) and 3) linking xxlmited module. It helps that 7-zip can open .dll and .lib files files as if they were archives.

[issue41080] re.sub treats * incorrectly?

2020-06-22 Thread Ryan Westlund
Ryan Westlund added the comment: Sorry, I forgot the pydoc docs don't have as much information as the online docs. On Mon, Jun 22, 2020 at 1:54 PM Ezio Melotti wrote: > > Ezio Melotti added the comment: > > This behavior was changed in 3.7: "Empty matches for the pattern are > replaced

[issue41081] Exclude __pycache__ directories from backups using CACHEDIR.TAG

2020-06-22 Thread Jakub Stasiak
Change by Jakub Stasiak : -- keywords: +patch pull_requests: +20231 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21060 ___ Python tracker ___

[issue40965] Segfault when importing unittest module via C API

2020-06-22 Thread The Comet
The Comet added the comment: Thanks for the input! I should have been more specific. I was running python 3.8.2 when I got this segfault. I upgraded to 3.8.3 and the issue is no longer present, so it seems this has already been fixed. -- ___

[issue41078] [C API] Convert PyTuple_GET_ITEM() macro to a static inline function

2020-06-22 Thread Stefan Behnel
Stefan Behnel added the comment: > Giving a direct access to an array or PyObject* (PyObject**) is causing > issues with other Python implementations, like PyPy, which don't use PyObject > internally. I'm wondering – if the intention is to help other implementations, then why do we need to

[issue41071] from an int to a float , why

2020-06-22 Thread mike stern
mike stern added the comment: sorry but that article was about version 2.2 in 2000 Created:11-Mar-2001 Python-Version: 2.2 where is the one for 3.7 From: report=bugs.python@roundup.psfhosted.org on behalf of Tim Peters Sent: Monday, June 22,

[issue40893] tkinter: integrate TkDND support

2020-06-22 Thread E. Paine
E. Paine added the comment: Addressing Ned's issues: I have emailed round "Linux-sig" about adding an optional dependency and Guido recommended I put it on "Python-dev" instead (which I hope to do in the coming days). As for the buildbots, is this something I could help with, or does it

[issue41078] [C API] Convert PyTuple_GET_ITEM() macro to a static inline function

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: PySequence_Fast_ITEMS() is used in numpy at 7 lines: numpy/core/src/common/ufunc_override.c:118:*out_objs = PySequence_Fast_ITEMS(seq); --- PyUFuncOverride_GetOutObjects(PyObject *kwds, PyObject **out_kwd_obj, PyObject ***out_objs) --- =>

[issue41078] [C API] Convert PyTuple_GET_ITEM() macro to a static inline function

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: The long rationale is explained in PEP 620: https://www.python.org/dev/peps/pep-0620/ PyTupleObject and PyListObject structures must become opaque. Also, later, these structures may change to be more efficient. --

[issue41078] [C API] Convert PyTuple_GET_ITEM() macro to a static inline function

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: I suggest you to discuss the PEP 620 on python-dev, rather than on the bug tracker. I just posted it there today. This issue tracks the implemetation of one part of the PEP 620. -- ___ Python tracker

[issue41083] plistlib can't decode date from year 0

2020-06-22 Thread Michael Shields
New submission from Michael Shields : On macOS 10.5.5: /tmp $ defaults export com.apple.security.KCN - http://www.apple.com/DTDs/PropertyList-1.0.dtd;> absentCircleWithNoReason applicationDate -12-30T00:00:00Z lastCircleStatus -1

[issue40893] tkinter: integrate TkDND support

2020-06-22 Thread Ned Deily
Ned Deily added the comment: > As for the buildbots, is this something I could help with @zach.ware is the best person to work with on any buildbot requirements. I've Nosyed him here. For the record, I haven't yet tried to test TkDND with the various current macOS Tk on current versions

[issue41082] Error handling and documentation of Path.home()

2020-06-22 Thread Tim Hoffmann
New submission from Tim Hoffmann : Path.home() may fail un (https://github.com/matplotlib/matplotlib/issues/17707#issuecomment-647180252). 1. I think the raised key error is too low-level, and it should be something else; what exactly t.b.d. 2. The documentation

[issue41071] from an int to a float , why

2020-06-22 Thread Tim Peters
Tim Peters added the comment: Read the PEP Serhiy already linked to: https://www.python.org/dev/peps/pep-0238/ This was a deliberate change to how "integer / integer" works, introduced with Python 3. -- nosy: +tim.peters status: open -> closed

[issue41054] Simplify resource compilation on Windows

2020-06-22 Thread Steve Dower
Steve Dower added the comment: Looks good. Let's rename PYTHON_DLL_NAME to ORIGINAL_FILENAME, since it took me 10 minutes to figure out that that's how it's used... We'll backport this one to 3.9 before RC. No NEWS file required. -- versions: +Python 3.9

[issue41071] from an int to a float , why

2020-06-22 Thread mike stern
mike stern added the comment: i am calm but sometimes I am wondering if the philosophy behind python is really like they claimed to make it very simple. Well I see a lot of confusions sometimes , and this is one From:

[issue41035] zipfile.Path does not work properly with zip archives where paths start with /

2020-06-22 Thread sorrow
sorrow added the comment: Here's what I came up with: ```python class ZipPath(zipfile.Path): def __init__(self, root, at=""): super().__init__(root, at) if not at.startswith("/") and self.root.namelist()[0].startswith("/"): self.at = f"/{at}" def __repr__(self): return (

[issue41071] from an int to a float , why

2020-06-22 Thread mike stern
mike stern added the comment: Not satisfied with that reply you can't just decide to close the ticket without even giving a reasonable answer, or even try that on 2.7 or 3.7 to see if it is true what I said. Besides, that is not a convincing answer, that is actually no answer at all!!! I

[issue41071] from an int to a float , why

2020-06-22 Thread mike stern
mike stern added the comment: I appreciate your answer I just didn't like how she answered earlier saying I cannot reproduce. 2 / 2 gives 1.0 to me. which is not true thanks anyway, now i am gonna have to do some reading From:

[issue40773] DOC: Fix rendering for 'retval' on the pdb page

2020-06-22 Thread Chenyoo Hao
Change by Chenyoo Hao : -- keywords: +patch nosy: +Chenyoo Hao nosy_count: 3.0 -> 4.0 pull_requests: +20232 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21055 ___ Python tracker

[issue36207] robotsparser deny all with some rules

2020-06-22 Thread Patrick Valibus 410 Gone
Patrick Valibus 410 Gone added the comment: Bonjour, nous n'avons pas réussi à le faire fonctionner. Nous l'avons utilisé dans le cadre d'un test seo car nous essayons e reproduire des alternatives à scrappy. Par exemple le robots devrait bine crawler la page de notre agence seo

[issue41070] Simplify pyshellext.dll build

2020-06-22 Thread Steve Dower
Steve Dower added the comment: Looks good, but I'll want to manually test this, as it's not covered by automated tests. (If you happen to know how to test drag-drop of multiple files and non-MBCS filenames in Explorer, would love to have some tests, but given the low churn on this part I

[issue41078] [C API] Convert PyTuple_GET_ITEM() macro to a static inline function

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: PySequence_Fast_ITEMS() must also be deprecated since it also gives a direct access to PyTupleObject.ob_item and PyListObject.ob_item members (PyObject**). PySequence_Fast_GET_ITEM() should be used instead. --

[issue41071] from an int to a float , why

2020-06-22 Thread Tim Peters
Tim Peters added the comment: Mike, read that exchange again. You originally wrote "print(2 / 2) gives 2.0 instead of 2" but you didn't _mean_ that. You meant to say it "gives 1.0 instead of 1", or you meant something other than "2 / 2"). In Python 3, >>> print(2 / 2) 1.0 Which is what

[issue40965] Segfault when importing unittest module via C API

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of bpo-40294. Right, please upgrade to Python 3.8.3 which includes the fix. -- nosy: +vstinner resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Use-after-free crash if multiple

[issue41035] zipfile.Path does not work properly with zip archives where paths start with /

2020-06-22 Thread sorrow
sorrow added the comment: >`iteritems()` I meant `iterdir()` of course. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41039] Simplify python3.dll build

2020-06-22 Thread Steve Dower
Steve Dower added the comment: Thanks for the change. It looks good, though I would like to have a NEWS entry for this so that people can find that we made a deliberate change to this DLL. I'd also like to do some manual testing to make sure that we aren't going to break any obscure uses.

[issue41078] [C API] Convert PyTuple_GET_ITEM() macro to a static inline function

2020-06-22 Thread Stefan Behnel
Stefan Behnel added the comment: > Also, later, these structures may change to be more efficient. Tuples? Really? Ok, quoting PEP-620: > Members of … PyTupleObject structures have not changed since the "Initial > revision" commit (1990) I honestly think the reason for that might simply be

[issue41081] Exclude __pycache__ directories from backups using CACHEDIR.TAG

2020-06-22 Thread Eric V. Smith
Eric V. Smith added the comment: To spoil it for other readers: the linked page says to create a file named CACHEDIR.TAG with a specific first line. -- nosy: +eric.smith ___ Python tracker

[issue41083] plistlib can't decode date from year 0

2020-06-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___

[issue41084] Signify that a SyntaxError comes from an fstring in the error message

2020-06-22 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : It's relatively easy to identify if a SyntaxError occurs when parsing an fstring expression or not. The idea is to slightly change the error message to start with "f-string: " when it does (in the same way in which SyntaxError messages are produced by

[issue31938] Convert selectmodule.c to Argument Clinic

2020-06-22 Thread Anthony Sottile
Change by Anthony Sottile : -- nosy: +Anthony Sottile nosy_count: 4.0 -> 5.0 pull_requests: +20235 pull_request: https://github.com/python/cpython/pull/21066 ___ Python tracker

[issue31938] Convert selectmodule.c to Argument Clinic

2020-06-22 Thread Anthony Sottile
Anthony Sottile added the comment: This appears to have broken pydoc of the select module, I've attached a patch $ python3.8 -m pydoc select Traceback (most recent call last): File "/usr/lib/python3.8/inspect.py", line 2004, in wrap_value value = eval(s, module_dict) File "", line 1,

[issue41072] Python 3.8.3 passively introduced open source software contains CVE vulnerability

2020-06-22 Thread SilentGhost
Change by SilentGhost : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue41086] Exception for uninstantiated interpolation (configparser)

2020-06-22 Thread Brian Faherty
New submission from Brian Faherty : The ConfigParser in Lib has a parameter called `interpolation`, that expects an instance of a subclass of Interpolation. However, when ConfigParser is given an argument of an uninstantiated subclass of Interpolation, the __init__ function of ConfigParser

[issue41072] Python 3.8.3 passively introduced open source software contains CVE vulnerability

2020-06-22 Thread xcl
Change by xcl <1318683...@qq.com>: -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41085] Array regression test fails

2020-06-22 Thread SilentGhost
SilentGhost added the comment: This looks like an overflow failure in a bigmem test (though the given limit 24Gb should accommodate that?). Do bigmem tests work on Windows? William, you've made some sort of modifications to the versioned files, what are those? -- components:

[issue41086] Exception for uninstantiated interpolation (configparser)

2020-06-22 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +20233 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21062 ___ Python tracker

[issue41085] Array regression test fails

2020-06-22 Thread William Pickard
New submission from William Pickard : Here's the verbose stack trace of the failing test: == FAIL: test_index (test.test_array.LargeArrayTest) -- Traceback

[issue41084] Signify that a SyntaxError comes from an fstring in the error message

2020-06-22 Thread Eric V. Smith
Eric V. Smith added the comment: I think it's a good idea. My only reservation would be: if the parsing of f-strings is moved into the parser, would it be possible to maintain the error new messages? -- ___ Python tracker

[issue19270] Document that sched.cancel() doesn't distinguish equal events and can break order

2020-06-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Cancelling an unintended event instead of the one we wanted is a bug, > and prevents me from using the library at all That problem is certainly worth fixing even if we have to break a few eggs to do it (this module has been around for a very long time

[issue41080] re.sub treats * incorrectly?

2020-06-22 Thread Ryan Westlund
New submission from Ryan Westlund : ``` >>> re.sub('a*', '-', 'a') '--' >>> re.sub('a*', '-', 'aa') '--' >>> re.sub('a*', '-', 'aaa') '--' ``` Shouldn't it be returning one dash, not two, since the greedy quantifier will match all the a's? I understand why substituting on 'b' returns '-a-',

[issue41080] re.sub treats * incorrectly?

2020-06-22 Thread Ezio Melotti
Ezio Melotti added the comment: This behavior was changed in 3.7: "Empty matches for the pattern are replaced only when not adjacent to a previous empty match, so sub('x*', '-', 'abxd') returns '-a-b--d-'." [0] See also bpo-32308 and bpo-25054. [0]:

[issue41071] from an int to a float , why

2020-06-22 Thread mike stern
New submission from mike stern : please I would like to know why python changes an integer result in a division to a float even in the result is even like print(2 / 2) gives 2.0 instead of 2 or a = 2 / 2 print(a) -- components: Interpreter Core messages: 372033 nosy:

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2020-06-22 Thread Nick Canfield
Nick Canfield added the comment: I'm having trouble with the .ReceivedTime breaking the program when I compile the .py script to an .exe using auto-py-to-exe. Here's where the error occurs underneath this try: statement try: received_year = str(email.ReceivedTime)[0:4]

[issue41061] Incorrect expressions / assert with side effect in hashtable

2020-06-22 Thread miss-islington
miss-islington added the comment: New changeset 4901ea952691ad70aae21cfe04b6bd363b5a6aff by Christian Heimes in branch 'master': bpo-41061: Fix incorrect expressions in hashtable (GH-21028) https://github.com/python/cpython/commit/4901ea952691ad70aae21cfe04b6bd363b5a6aff -- nosy:

[issue41040] Fix test_modulefinder

2020-06-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41061] Incorrect expressions / assert with side effect in hashtable

2020-06-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +20213 pull_request: https://github.com/python/cpython/pull/21042 ___ Python tracker ___

[issue41061] Incorrect expressions / assert with side effect in hashtable

2020-06-22 Thread miss-islington
miss-islington added the comment: New changeset f19ed6b0c77ba3bdaa1d8c304a61f2fa90b5d6ac by Miss Islington (bot) in branch '3.9': bpo-41061: Fix incorrect expressions in hashtable (GH-21028) https://github.com/python/cpython/commit/f19ed6b0c77ba3bdaa1d8c304a61f2fa90b5d6ac --

[issue15690] PEP 3121, 384 Refactoring applied to parser module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: The parser module was removed in Python 3.10 (PEP 617). -- nosy: +vstinner resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.10 -Python 3.4 ___ Python tracker

[issue15687] PEP 3121, 384 Refactoring applied to mmap module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: Fixed by: commit 3ad52e366fea37b02a3f619e6b7cffa7dfbdfa2e Author: Dong-hee Na Date: Sat Jun 6 00:01:02 2020 +0900 bpo-1635741: Port mmap module to multiphase initialization (GH-19459) -- nosy: +corona10, vstinner resolution: -> fixed stage:

[issue15685] PEP 3121, 384 Refactoring applied to itertools module

2020-06-22 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.10 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15685] PEP 3121, 384 Refactoring applied to itertools module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: Fixed by: commit 514c469719f149e1722a91a9d0c63bf89dfefb2a Author: Dong-hee Na Date: Wed Mar 18 02:46:24 2020 +0900 bpo-1635741: Port itertools module to multiphase initialization (GH-19044) -- nosy: +corona10, vstinner resolution: -> fixed

[issue15668] PEP 3121, 384 Refactoring applied to random module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: The PEP 384 part was fixed by: commit 04f0bbfbedf8d2bb69b012f853de6648b1a9f27f Author: Dino Viehland Date: Fri Sep 13 11:12:27 2019 +0100 bpo-38075: Port _randommodule.c to PEP-384 (GH-15798) - Migrate `Random_Type` to `PyType_FromSpec` -

[issue15711] PEP 3121, 384 Refactoring applied to time module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: Fixed by: commit bd409bb5b78e7ccac5fcda9ab4cec770552f3090 Author: Paulo Henrique Silva Date: Mon Mar 23 15:58:23 2020 -0300 bpo-1635741: Port time module to multiphase initialization (PEP 489) (GH-19107) -- nosy: +vstinner resolution: ->

[issue40824] Unexpected errors in __iter__ are masked in "in" and the operator module

2020-06-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue15848] PEP 3121, 384 Refactoring applied to xxsubtype module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: The PEP 3121 part is fixed by: commit d5cacbb1d9c3edc02bf0ba01702e7c06da5bc318 Author: Nick Coghlan Date: Sat May 23 22:24:10 2015 +1000 PEP 489: Multi-phase extension module initialization Known limitations of the current implementation:

[issue41069] Use non-ascii file names in tests by default

2020-06-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +msilib does not work correctly with non-ASCII names ___ Python tracker ___ ___

[issue41073] [C API] PyType_GetSlot() should accept static types

2020-06-22 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41075] Add support of navigating through prev. commands in IDLE

2020-06-22 Thread wyz23x2
New submission from wyz23x2 : Terminals like CMD have support of navigating through commands with ↑↓. While directly implementing the arrows is not good in IDLE (the use for jumping to the prev. line in GUI is needed), there should be a good way. Some ways: 1. Alt+↑↓. The current behavior is

[issue15700] PEP 3121, 384 Refactoring applied to resource module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: Fixed by: commit 45f7008a66a30cdf749ec03e580bd2692be9a8df Author: Hai Shi Date: Thu Apr 2 20:35:08 2020 +0800 bpo-1635741: Port resource extension module to multiphase initialization (PEP 489) (GH-19252) Fix also reference leaks on error.

[issue15689] PEP 3121, 384 Refactoring applied to operator module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: Fixed by: commit f3d5ac47720045a72f7ef5af13046d9531e6007b Author: Paulo Henrique Silva Date: Tue Mar 24 23:18:47 2020 -0300 bpo-1635741: Port operator module to multiphase initialization (PEP 489) (GH-19150) -- nosy: +vstinner resolution:

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: See meta bpo-15787 "PEP 3121, 384 Refactoring" which tracks all these issues as dependencies. -- ___ Python tracker ___

[issue40077] Convert static types to PyType_FromSpec()

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: See meta bpo-15787 "PEP 3121, 384 Refactoring" which tracks all these issues as dependencies. -- ___ Python tracker ___

[issue41068] zipfile: read after write fails for non-ascii files

2020-06-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue15849] PEP 3121, 384 Refactoring applied to xx module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-40077: "Convert static types to PyType_FromSpec()". -- ___ Python tracker ___ ___

[issue40077] Convert static types to PyType_FromSpec()

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: Search also for issues with "384" in their title (34 open issues):

[issue40077] Convert static types to PyType_FromSpec()

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: For example, see bpo-15849 for the xx module. -- ___ Python tracker ___ ___ Python-bugs-list

[issue15675] PEP 3121, 384 Refactoring applied to array module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: The PEP 384 part is fixed by: commit d5cacbb1d9c3edc02bf0ba01702e7c06da5bc318 Author: Nick Coghlan Date: Sat May 23 22:24:10 2015 +1000 PEP 489: Multi-phase extension module initialization Known limitations of the current implementation:

[issue41074] msilib does not work correctly with non-ASCII names

2020-06-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : It encodes input string arguments with utf-8 and pass encoded strings to 8-bit API which expect they be encoded using the locale encoding. It may pass tests, create and read files, but these files will just have wrong names. -- components:

[issue38870] Expose ast.unparse in the ast module

2020-06-22 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +20224 pull_request: https://github.com/python/cpython/pull/21053 ___ Python tracker ___

[issue15849] PEP 3121, 384 Refactoring applied to xx module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: Fixed by: commit d5cacbb1d9c3edc02bf0ba01702e7c06da5bc318 Author: Nick Coghlan Date: Sat May 23 22:24:10 2015 +1000 PEP 489: Multi-phase extension module initialization Known limitations of the current implementation: - documentation

[issue15703] PEP 3121, 384 Refactoring applied to select module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: Fixed by: New changeset f919054e539a5c1afde1b31c9fd7a8f5b2313311 by Dino Viehland in branch 'master': bpo-38116: Convert select module to PEP-384 (#15971) https://github.com/python/cpython/commit/f919054e539a5c1afde1b31c9fd7a8f5b2313311 I mark this issue as

[issue38116] Make select module PEP-384 compatible

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-15703 as a duplicate of this issue. -- ___ Python tracker ___ ___ Python-bugs-list

[issue15849] PEP 3121, 384 Refactoring applied to xx module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: Hum, I reopen the issue: the xx module still defines types statically and so the "PEP 384" part of this issue is not fixed yet. -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue15652] PEP 3121, 384 refactoring applied to gdbm module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: Fixed by: commit c4862e333ab405dd5789b4061222db1982147de4 Author: Dong-hee Na Date: Wed Jun 17 01:41:23 2020 +0900 bpo-1635741: Port _gdbm module to multiphase initialization (GH-20920) -- nosy: +corona10, vstinner resolution: -> fixed

[issue41073] [C API] PyType_GetSlot() should accept static types

2020-06-22 Thread hai shi
hai shi added the comment: Hi, victor. If you have much bpo need to manage, I could take a look in this week :) -- ___ Python tracker ___

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: > Py_TRASHCAN_BEGIN() access directly PyTypeObject.tp_dealloc (...) currently, > PyType_GetSlot() can only be used on a heap allocated types I created bpo-41073: [C API] PyType_GetSlot() should accept static types. -- versions: +Python 3.10 -Python

[issue41073] [C API] PyType_GetSlot() should accept static types

2020-06-22 Thread STINNER Victor
New submission from STINNER Victor : To fix bpo-40170, I would like to modify Py_TRASHCAN_BEGIN() macro to use PyType_GetSlot() to get the deallocator function, rather than accessing directly the PyTypeObject.tp_dealloc member. The problem is that currently PyType_GetSlot() only works on

[issue26407] csv.writer.writerows masks exceptions from __iter__

2020-06-22 Thread miss-islington
miss-islington added the comment: New changeset 5606d555b6e797625be9b0368472a86d8ad5252e by Miss Islington (bot) in branch '3.9': bpo-26407: Do not mask errors in csv. (GH-20536) https://github.com/python/cpython/commit/5606d555b6e797625be9b0368472a86d8ad5252e --

[issue41068] zipfile: read after write fails for non-ascii files

2020-06-22 Thread miss-islington
miss-islington added the comment: New changeset d7f37d1ed4fd38555e3e5aad32d515c96b528df5 by Miss Islington (bot) in branch '3.8': bpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040) https://github.com/python/cpython/commit/d7f37d1ed4fd38555e3e5aad32d515c96b528df5

[issue41068] zipfile: read after write fails for non-ascii files

2020-06-22 Thread miss-islington
miss-islington added the comment: New changeset c916c48afc02c26a50843c7b381a2b567bb72e46 by Miss Islington (bot) in branch '3.9': bpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040) https://github.com/python/cpython/commit/c916c48afc02c26a50843c7b381a2b567bb72e46

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: PyIter_Check() and PySequence_ITEM() macros access directly PyTypeObject members and must be converted to opaque functions: #define PyIter_Check(obj) \ (Py_TYPE(obj)->tp_iternext != NULL && \ Py_TYPE(obj)->tp_iternext !=

[issue41005] Permission denied: 'xdg-settings' when executing 'jupyter notebook' from command line

2020-06-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +20222 pull_request: https://github.com/python/cpython/pull/21051 ___ Python tracker

[issue41005] Permission denied: 'xdg-settings' when executing 'jupyter notebook' from command line

2020-06-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +20223 pull_request: https://github.com/python/cpython/pull/21052 ___ Python tracker ___

[issue41005] Permission denied: 'xdg-settings' when executing 'jupyter notebook' from command line

2020-06-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: New changeset 9e27bc0c1efc7478872f98729f87886e9333548f by Krishna Chivukula in branch 'master': bpo-41005: Fixed perrmission error (GH-20936) https://github.com/python/cpython/commit/9e27bc0c1efc7478872f98729f87886e9333548f --

[issue15655] PEP 384 Refactoring applied to json module

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: Issue fixed in Python 3.9 with: commit 33f15a16d40cb8010a8c758952cbf88d7912ee2d Author: Dong-hee Na Date: Fri Mar 27 19:59:59 2020 +0900 bpo-40077: Convert _json module to use PyType_FromSpec() (GH-19177) Replace statically allocated types

[issue41056] minor NULL pointer and sign issues reported by Coverity

2020-06-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +20210 pull_request: https://github.com/python/cpython/pull/21039 ___ Python tracker ___

[issue41056] minor NULL pointer and sign issues reported by Coverity

2020-06-22 Thread miss-islington
miss-islington added the comment: New changeset 81328f30703bd7225e7e73aedb0994a7293ce190 by Gregory P. Smith in branch 'master': bpo-41056: Fix reference to deallocated stack in pathconfig (Coverity) (GH-21013)

[issue41068] zipfile: read after write fails for non-ascii files

2020-06-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +20211 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21040 ___ Python tracker

[issue41056] minor NULL pointer and sign issues reported by Coverity

2020-06-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +20212 pull_request: https://github.com/python/cpython/pull/21041 ___ Python tracker ___

[issue41063] Avoid using the locale encoding for open() in tests

2020-06-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Use non-ascii file names in tests by default ___ Python tracker ___ ___

[issue41056] minor NULL pointer and sign issues reported by Coverity

2020-06-22 Thread miss-islington
miss-islington added the comment: New changeset d780fa7931d8ce94994827232d7cca79b0be3bf1 by Gregory P. Smith in branch 'master': bpo-41056: Fix a possible MemoryError leak within zoneinfo. (GH-21007) https://github.com/python/cpython/commit/d780fa7931d8ce94994827232d7cca79b0be3bf1

[issue40824] Unexpected errors in __iter__ are masked in "in" and the operator module

2020-06-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +20217 pull_request: https://github.com/python/cpython/pull/21046 ___ Python tracker ___

[issue41072] Python 3.8.3 passively introduced open source software contains CVE vulnerability

2020-06-22 Thread xcl
New submission from xcl <1318683...@qq.com>: Open source software introduced passively in Python 3.8.3: sqlite3(Documents involved sqlite3.dll),involve CVE-2020-11656,CVE-2020-11655,CVE-2020-13630,CVE-2020-13871,CVE-2020-9327,CVE-2020-13434,CVE-2020-13435,CVE-2020-13631,CVE-2020-13632 zlib

[issue26407] csv.writer.writerows masks exceptions from __iter__

2020-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c88239f864a27f673c0f0a9e62d2488563f9d081 by Serhiy Storchaka in branch 'master': bpo-26407: Do not mask errors in csv. (GH-20536) https://github.com/python/cpython/commit/c88239f864a27f673c0f0a9e62d2488563f9d081 --

[issue26407] csv.writer.writerows masks exceptions from __iter__

2020-06-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +20218 pull_request: https://github.com/python/cpython/pull/21047 ___ Python tracker

[issue33738] PyIndex_Check conflicts with PEP 384

2020-06-22 Thread Ned Deily
Ned Deily added the comment: @serhiy, @Christian: Is there anything more needed to be done for this issue or can we close it? -- ___ Python tracker ___

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-06-22 Thread STINNER Victor
STINNER Victor added the comment: > PyIter_Check() and PySequence_ITEM() macros access directly PyTypeObject > members and must be converted to opaque functions: (...) PyIter_Check() and PySequence_ITEM() are declared as functions in the limited C API, but overriden with macros in the

  1   2   >