[issue35243] readline timeout too long for async gfx use

2019-09-13 Thread pmp-p
Change by pmp-p : -- nosy: +twouters -pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2019-09-13 Thread Guido van Rossum
Guido van Rossum added the comment: Thank you Raymond. Luna, are you still interested? -- ___ Python tracker ___ ___ Python-bugs-l

[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2019-09-13 Thread Luna Chen
Luna Chen added the comment: Yes I am! :) Should I start looking into this? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24416] Have date.isocalendar() return a structseq instance

2019-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: namedtuple is much faster now that four years ago. New namedtuple type creation, instantiating a namedtuple object, access to its members -- all this is times faster. It is still slower than tuple in some aspects, because tuples are everywere and the inter

[issue38118] Valgrind warnings when running tokenize.py

2019-09-13 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue, the PyUnicode_Decode warning is not fixed yet. vstinner@apu$ echo|PYTHONMALLOC=malloc valgrind ./python Lib/tokenize.py ==6832== Memcheck, a memory error detector ==6832== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==68

[issue21705] cgi.py: Multipart with more than one file is misparsed

2019-09-13 Thread Pierre Quentel
Pierre Quentel added the comment: The patch has been applied some time ago (I couldn't find the exact commit), cf. https://github.com/python/cpython/blob/master/Lib/cgi.py#L750 I think we can close the issue. -- nosy: +quentel ___ Python tracker

[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2019-09-13 Thread Guido van Rossum
Guido van Rossum added the comment: It's just a small doc change right? I'd just makle a PR and see if Raymond accepts it. -- ___ Python tracker ___ __

[issue38149] sys.audit() is called multiple times for glob.glob()

2019-09-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : sys.audit() for "glob.glob" is called in a recursive function _iglob(). So in process of executing glob.glob() it can be called multiple times, with the original pattern and with patterns for parent directories, while there are metacharacters in them. I

[issue38149] sys.audit() is called multiple times for glob.glob()

2019-09-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue38150] test_capi: test_c_subclass_of_heap_ctype_with_del_modifying_dunder_class_only_decrefs_once() leaks

2019-09-13 Thread STINNER Victor
New submission from STINNER Victor : vstinner@apu$ ./python -m test test_capi -R 3:3 -m test.test_capi.CAPITest.test_c_subclass_of_heap_ctype_with_del_modifying_dunder_class_only_decrefs_once Run tests sequentially 0:00:00 load avg: 0.57 [1/1] test_capi beginning 6 repetitions 123456 .. tes

[issue8538] Add FlagAction to argparse

2019-09-13 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- versions: +Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38151] test_types: test_duck_gen() leaks reference

2019-09-13 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#/builders/1/builds/712 Python 3.8 is not affected, only the master branch. See also bpo-38150. vstinner@apu$ ./python -m test test_types -R 3:3 -m test.test_types.CoroutineTests.test_duck_gen Run tests sequentially 0:00:00

[issue38115] Invalid bytecode offsets in co_lnotab

2019-09-13 Thread Thomas Wouters
Change by Thomas Wouters : -- keywords: +patch pull_requests: +15701 pull_request: https://github.com/python/cpython/pull/16079 ___ Python tracker ___ _

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-09-13 Thread Julien Palard
Julien Palard added the comment: New changeset 42671aea2db6cbc54369617da0fd3545048e0a45 by Julien Palard (Jakub Kulík) in branch 'master': bpo-37785: Fix xgettext warning in argparse (GH-15161) https://github.com/python/cpython/commit/42671aea2db6cbc54369617da0fd3545048e0a45 -- nosy:

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-09-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +15702 pull_request: https://github.com/python/cpython/pull/16080 ___ Python tracker ___ __

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-09-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +15703 pull_request: https://github.com/python/cpython/pull/16081 ___ Python tracker ___ __

[issue9216] FIPS support for hashlib

2019-09-13 Thread Christian Heimes
Christian Heimes added the comment: > FYI the multiprocessing module uses hmac.new(authkey, message, > 'md5').digest(). I don't think that using MD5 even for HMAC is allowed in > FIPS mode. MD5 us especially not allowed in FIPS mode. -- ___ Pytho

[issue38149] sys.audit() is called multiple times for glob.glob()

2019-09-13 Thread Steve Dower
Change by Steve Dower : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2019-09-13 Thread Pekka Klärck
Pekka Klärck added the comment: First of all, thanks Raymond for the revival. Secondly, I agree with Josh that there are better ways to handle my original use case (e.g. `functools.singledispatch`) but `__subclasses__()` preserving the definition order could nevertheless be useful in other ca

[issue38149] sys.audit() is called multiple times for glob.glob()

2019-09-13 Thread Steve Dower
Steve Dower added the comment: Provided it's called with different arguments each time (which it is), there isn't a problem here. Audit hooks are supposed to be informative, not definitive (that is, you almost always need to take the surrounding context into consideration, which is why they

[issue38115] Invalid bytecode offsets in co_lnotab

2019-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since we modify the content of the bytes object in any case, we can shrink it in-place by setting its Py_SIZE(). But it would be better to fill the end of it with "no-op" fillers. -- ___ Python tracker

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is a backward incompatible change. It will break existing translations. It should not be backported. -- nosy: +serhiy.storchaka ___ Python tracker

[issue38115] Invalid bytecode offsets in co_lnotab

2019-09-13 Thread Thomas Wouters
Thomas Wouters added the comment: Setting Py_SIZE of the bytes object is possible, but gross and not how you're supposed to operate on bytes. I'm also not entirely convinced lnotab isn't reused in ways it shouldn't. The peephole optimizer already does gross things and is tied very intimately

[issue38152] AST change introduced tons of reference leaks

2019-09-13 Thread STINNER Victor
New submission from STINNER Victor : The following change introduced tons of reference leaks: commit ac46eb4ad6662cf6d771b20d8963658b2186c48c Author: Dino Viehland Date: Wed Sep 11 10:16:34 2019 -0700 bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957) Summary: Th

[issue8538] Add FlagAction to argparse

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I am also interested by this feature. -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-l

[issue38151] test_types: test_duck_gen() leaks reference

2019-09-13 Thread STINNER Victor
STINNER Victor added the comment: I opened bpo-38152 since much more tests are affected, not only test_types. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> AST change introduced tons of reference leaks ___ P

[issue38113] Remove statics from ast.c

2019-09-13 Thread STINNER Victor
STINNER Victor added the comment: This change introduced tons of reference leaks, more than 21 test files leak references: see bpo-38152. Please fix these leaks, or I will have to revert the change: https://pythondev.readthedocs.io/ci.html#revert-on-fail -- nosy: +vstinner _

[issue37648] Fix minor inconsistency in the order of == operands

2019-09-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Just to add list.__contains__ and others might cause subtle changes as noted. One example is around discussion at https://github.com/python/cpython/pull/14700#discussion_r324054193 where my code to fix mock.ANY was depending on this behavior to wor

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-09-13 Thread miss-islington
miss-islington added the comment: New changeset b50eff65906f8e9b4597cb0128ea1729341346fc by Miss Islington (bot) in branch '3.7': bpo-37785: Fix xgettext warning in argparse (GH-15161) https://github.com/python/cpython/commit/b50eff65906f8e9b4597cb0128ea1729341346fc -- nosy: +miss-i

[issue38149] sys.audit() is called multiple times for glob.glob()

2019-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Using recursion is rather an implementation detail, because splitpath() splits a path from the end (Path.glob() does it from other side). Also, it may be a tiny bit more efficient if the pattern contains a long literal prefix. -- _

[issue36046] support dropping privileges when running subprocesses

2019-09-13 Thread STINNER Victor
STINNER Victor added the comment: The test fails on Fedora: https://buildbot.python.org/all/#/builders/185/builds/1028 vstinner@apu$ ./python -m test test_subprocess -m test_extra_groups -m test_group -v == CPython 3.9.0a0 (heads/master:7cad53e6b0, Sep 13 2019, 11:42:25) [GCC 9.2.1 20190827

[issue31040] mimetypes.add_type should complain when you give it an undotted ext

2019-09-13 Thread Julien Palard
Julien Palard added the comment: I think we should deprecate calling `add_type` with an empty `ext`, as I don't think it's a feature, more a side effect of the current implementation. But as some may use it like a feature, I asked the current PR to emit a warning, to not break the current im

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-09-13 Thread Julien Palard
Change by Julien Palard : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-09-13 Thread miss-islington
miss-islington added the comment: New changeset 8750dfe09eaec24231e19962d17d171c323794ad by Miss Islington (bot) in branch '3.8': bpo-37785: Fix xgettext warning in argparse (GH-15161) https://github.com/python/cpython/commit/8750dfe09eaec24231e19962d17d171c323794ad --

[issue36046] support dropping privileges when running subprocesses

2019-09-13 Thread STINNER Victor
STINNER Victor added the comment: Failures on Debian: https://buildbot.python.org/all/#/builders/27/builds/3699 == ERROR: test_user (test.test_subprocess.POSIXProcessTestCase) (user=65534) -

[issue38149] sys.audit() is called multiple times for glob.glob()

2019-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, and when added sys.audit() for glob.glob(), should not it be added for Path.glob() too? And for os.walk()? -- ___ Python tracker ___ _

[issue38153] Normalize hashing algorithm names

2019-09-13 Thread Christian Heimes
New submission from Christian Heimes : The hashlib module / PEP 452 and OpenSSL use slightly different conventions for hashing algorithm names. The old and common algorithms like md5 to sha512 use the same strings (all lower case, no dashes or underscores). But new algorithms like sha3_512, s

[issue38154] test__xxsubinterpreters: random failures on AMD64 FreeBSD CURRENT Shared 3.x

2019-09-13 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue38154] test__xxsubinterpreters: random failures on AMD64 FreeBSD CURRENT Shared 3.x

2019-09-13 Thread STINNER Victor
New submission from STINNER Victor : It seems like test__xxsubinterpreters still has race conditions. See also bpo-37224 and bpo-33356. AMD64 FreeBSD CURRENT Shared 3.x: https://buildbot.python.org/all/#/builders/168/builds/1428 FAIL: test_subinterpreter (test.test__xxsubinterpreters.IsRunnin

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it would be safer to revert changes in maintained versions. At least in 3.7. -- status: closed -> open ___ Python tracker ___

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-09-13 Thread STINNER Victor
STINNER Victor added the comment: https://buildbot.python.org/all/#/builders/58/builds/2987 1:06:55 load avg: 3.39 [343/419/1] test_regrtest crashed (Exit code 1) Timeout (0:35:00)! Thread 0x0cdc (most recent call first): File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-09-13 Thread Julien Palard
Julien Palard added the comment: OK to revert in 3.7, got your point. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-09-13 Thread Julien Palard
Julien Palard added the comment: Thanks for noticing Serhiy! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-09-13 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +15704 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/16082 ___ Python tracker ___ ___

[issue38075] Make random module PEP-384 compatible

2019-09-13 Thread Thomas Wouters
Thomas Wouters added the comment: New changeset 04f0bbfbedf8d2bb69b012f853de6648b1a9f27f by T. Wouters (Dino Viehland) in branch 'master': bpo-38075: Port _randommodule.c to PEP-384 (GH-15798) https://github.com/python/cpython/commit/04f0bbfbedf8d2bb69b012f853de6648b1a9f27f -- nosy:

[issue8538] Add FlagAction to argparse

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 6a517c674907c195660fa9178a7b561de49cc721 by Stéphane Wirtel (Rémi Lapeyre) in branch 'master': bpo-8538: Add support for boolean actions to argparse (GH-11478) https://github.com/python/cpython/commit/6a517c674907c195660fa9178a7b561de49cc721 -

[issue8538] Add FlagAction to argparse

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I have merged the PR 11478 and this feature will be included into 3.9. Thank you for your proposal of Remi and thank you to Eric for the idea of this feature. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed __

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-09-13 Thread Julien Palard
Julien Palard added the comment: New changeset f14fcbf2995b43c8607a1448402633ac558a745f by Julien Palard in branch '3.7': Revert "bpo-37785: Fix xgettext warning in argparse (GH-15161)" (GH-16082) https://github.com/python/cpython/commit/f14fcbf2995b43c8607a1448402633ac558a745f --

[issue38153] Normalize hashing algorithm names

2019-09-13 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +15705 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16083 ___ Python tracker ___

[issue38155] Add __all__ to the datetime module

2019-09-13 Thread Paul Ganssle
New submission from Paul Ganssle : Currently the datetime module has no __all__, which means we only advertise what is public and private based on leading underscores. Additionally, because there are two implementations (Python and C), you actually get different things when you do `from datet

[issue21041] pathlib.PurePath.parents rejects negative indexes

2019-09-13 Thread Julien Palard
Julien Palard added the comment: I checked conversation in #7951, tells about an ambiguity because it could be an index from a sequence or a key for a dict, like {-1: "foo"}. Here there is no such confusion. Confusion *may* arrise from the fact that it's not composed of parts, but more like

[issue38156] input fucntion raises SystemError after specific input.

2019-09-13 Thread Amiy Kumar
New submission from Amiy Kumar : input function raises a SystemError in bash(similar shells) when given inputs follow a certain pattern, doesn't happen in python interactive shell. It causes crash in python scripts even if KeyboardInterrupt and EOFError are handeled. No EOFError or KeyboardI

[issue35498] Parents objects in pathlib.Path don't support slices as __getitem__ arguments

2019-09-13 Thread Julien Palard
Julien Palard added the comment: Just commented on the related issue: https://bugs.python.org/issue21041#msg352281 My question is: Why would you need to slice parents? parents already looks like the result of some slice. -- nosy: +mdk ___ Python

[issue37785] argparse uses %s in gettext calls causing xgettext warnings

2019-09-13 Thread Julien Palard
Change by Julien Palard : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mail

[issue38145] Fix short option 'd' in 'distutils' command 'bdist_dumb'

2019-09-13 Thread sinoroc
Change by sinoroc : -- keywords: +patch pull_requests: +15706 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16086 ___ Python tracker ___

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-09-13 Thread miss-islington
miss-islington added the comment: New changeset d31b31516c71890e8735606aec1dbf2bfb8fd6be by Miss Islington (bot) (Xtreak) in branch 'master': bpo-36889: Document Stream class and add docstrings (GH-14488) https://github.com/python/cpython/commit/d31b31516c71890e8735606aec1dbf2bfb8fd6be

[issue38157] Add a recipe in unittest.mock examples about mock_open per file

2019-09-13 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : With issue37669 it was proposed to refactor out the mock_open handler to return different mocks per file and an API change to make sure read_data accepts a dictionary of file and return values it can only land on master if accepter. It's already

[issue38145] Fix short option 'd' in 'distutils' command 'bdist_dumb'

2019-09-13 Thread sinoroc
Change by sinoroc : -- pull_requests: -15695 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue31040] mimetypes.add_type should complain when you give it an undotted ext

2019-09-13 Thread Julien Palard
Julien Palard added the comment: I just found a case where the empty mime type is actually usefull, it's in Lib/http/server.py: extensions_map = mimetypes.types_map.copy() extensions_map.update({ '': 'application/octet-stream', # Default '.py': 'text/plain', '.

[issue31807] unitest.mock: Using autospec=True conflicts with 'wraps'

2019-09-13 Thread Lukas Anzinger
Lukas Anzinger added the comment: Hi, I just wanted to ask what the status for this bug is. I'm still interested in getting this merged and would be happy to help. Lukas -- ___ Python tracker

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-09-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +15708 pull_request: https://github.com/python/cpython/pull/16087 ___ Python tracker ___ __

[issue38156] input fucntion raises SystemError after specific input.

2019-09-13 Thread Amiy Kumar
Change by Amiy Kumar : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-13 Thread Stefan Behnel
New submission from Stefan Behnel : The current documentation of the PyType_Spec struct lists a "doc" member which does not exist. It should be removed from the docs. https://docs.python.org/3.8/c-api/type.html#c.PyType_Spec -- assignee: docs@python components: Documentation keywords:

[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-13 Thread Stefan Behnel
Change by Stefan Behnel : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-09-13 Thread miss-islington
miss-islington added the comment: New changeset b9bfe143d151d184615fa3890f78874c5d4ed4c6 by Miss Islington (bot) in branch '3.8': bpo-36889: Document Stream class and add docstrings (GH-14488) https://github.com/python/cpython/commit/b9bfe143d151d184615fa3890f78874c5d4ed4c6 --

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2019-09-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +15710 pull_request: https://github.com/python/cpython/pull/16089 ___ Python tracker ___ __

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2019-09-13 Thread miss-islington
miss-islington added the comment: New changeset bb41147eab15a2958f4ad38261e5bf608f6ace1b by Miss Islington (bot) (Xtreak) in branch 'master': bpo-12144: Handle cookies with expires attribute in CookieJar.make_cookies (GH-13921) https://github.com/python/cpython/commit/bb41147eab15a2958f4ad38

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2019-09-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +15709 pull_request: https://github.com/python/cpython/pull/16088 ___ Python tracker ___ __

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

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

[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-13 Thread Tahia K
Tahia K added the comment: Is it okay for me to grab this one? -- nosy: +ta1hia ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5430] imaplib: must not replace LF or CR by CRLF in literals

2019-09-13 Thread Julien Palard
Julien Palard added the comment: It looks like a revert of 47404f3e36699786082d0ee6565872d627e1 Which is the fix for https://bugs.python.org/issue723962 which I'm currently reading. -- nosy: +mdk ___ Python tracker

[issue12707] Deprecate addinfourl getters

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset ff2e18286560e981f4e09afb0d2448ea994414d8 by Stéphane Wirtel (Ashwin Ramaswami) in branch 'master': bpo-12707: deprecate info(), geturl(), getcode() methods in favor of headers, url, and status properties for HTTPResponse and addinfourl (GH-1144

[issue38155] Add __all__ to the datetime module

2019-09-13 Thread Tahia K
Tahia K added the comment: Hello! I'm interested in picking up this task. Is it okay if I grab it? The import test bit seems tricky, since (from what I understand) inspecting on an "import *" statement might conflict against other global imports in that test file. I'm a new contributor and o

[issue12707] Deprecate addinfourl getters

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you so much for your contribution, I close this issue and have merged the PR. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-13 Thread Stefan Behnel
Stefan Behnel added the comment: Absolutely, Tahia. It just needs a PR with a doc update. -- ___ Python tracker ___ ___ Python-bugs

[issue38157] Add a recipe in unittest.mock examples about mock_open per file

2019-09-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +15711 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16090 ___ Python tracker ___

[issue38149] sys.audit() is called multiple times for glob.glob()

2019-09-13 Thread Steve Dower
Steve Dower added the comment: > when added sys.audit() for glob.glob(), should not it be added for > Path.glob() too? And for os.walk()? Sure, those would make sense. They all go via scandir() which has its own event too (and will do for each directory), but being able to see that it came

[issue38155] Add __all__ to the datetime module

2019-09-13 Thread Paul Ganssle
Paul Ganssle added the comment: Hi Tahia: Go ahead and make a PR, no need to worry about the test. I mainly put in the bit about tests because I was hoping to nerd-snipe someone into figuring out how to do it for me ;) It's not a particularly important test. -- _

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2019-09-13 Thread miss-islington
miss-islington added the comment: New changeset 44cb89a78a308b7a613bdd01539ec84be914d693 by Miss Islington (bot) in branch '3.8': bpo-12144: Handle cookies with expires attribute in CookieJar.make_cookies (GH-13921) https://github.com/python/cpython/commit/44cb89a78a308b7a613bdd01539ec84be91

[issue38145] Fix short option 'd' in 'distutils' command 'bdist_dumb'

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: +1 for the fix. -- nosy: +matrixise versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue36046] support dropping privileges when running subprocesses

2019-09-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +15712 pull_request: https://github.com/python/cpython/pull/16091 ___ Python tracker ___

[issue38104] File descriptor error when subprocess call is used with event loop enabled in main thread

2019-09-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: You spawn too many subprocesses that finish virtually at the same time. It leads to wakeup_fd overrun. Python 3.6 is in security mode, sorry (and the fix is impossible). Python 3.7 has warn_on_full_buffer=False flag for https://docs.python.org/3/library/sign

[issue38155] Add __all__ to the datetime module

2019-09-13 Thread Paul Ganssle
Paul Ganssle added the comment: Actually, how about adding this simpler test into `Lib/test/datetimetester.py`, right above test_name_cleanup (https://github.com/python/cpython/blob/ff2e18286560e981f4e09afb0d2448ea994414d8/Lib/test/datetimetester.py#L65): def test_all(self): """T

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2019-09-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.9 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2019-09-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +15713 pull_request: https://github.com/python/cpython/pull/16092 ___ Python tracker ___

[issue38152] AST change introduced tons of reference leaks

2019-09-13 Thread Dino Viehland
Change by Dino Viehland : -- assignee: -> dino.viehland nosy: +dino.viehland ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue38149] sys.audit() is called multiple times for glob.glob()

2019-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it would be better to call sys.audit() in glob.iglob(), before calling the top-level _iglob(). It will give you a general context, and at every recursion level sys.audit() will be called for os.scandir(). -- ___

[issue38149] sys.audit() is called multiple times for glob.glob()

2019-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is harder to avoid repeating calls in os.walk(), because it is recursive itself. But you can introduce a recursive helper _walk() and make os.walk() just calling sys.audit() and _walk(). -- ___ Python tracker

[issue23837] asyncio: read pipe transport tries to resume reading after loop is gone

2019-09-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: The issue can be closed, loop.add_reader() / loop.remove_reader() calls correctly handle closed loop now -- nosy: +asvetlov resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue38141] Use fewer statics in Argument Clinic.

2019-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would adding a mutex for thread-safe initialization of _Py_Identifier and _PyArg_Parser solve the problem with subinterpreters? -- ___ Python tracker

[issue38148] Add slots to asyncio transports

2019-09-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 9eb35ab0d71a6bd680e84fa0f828cb634e72b681 by Andrew Svetlov in branch 'master': bpo-38148: Add slots to asyncio transports (GH-16077) https://github.com/python/cpython/commit/9eb35ab0d71a6bd680e84fa0f828cb634e72b681 --

[issue37564] ArgumentParser should support bool type according to truth values

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: What will happen if we want to translate "true", "yes", ...? -1 -- nosy: +matrixise ___ Python tracker ___ _

[issue38148] Add slots to asyncio transports

2019-09-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +15714 pull_request: https://github.com/python/cpython/pull/16093 ___ Python tracker ___ __

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2019-09-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset e7b7edf5ebaed14dc68c841a8a98260f1330ef9a by Andrew Svetlov (Xtreak) in branch '3.7': [3.7] bpo-12144: Handle cookies with expires attribute in CookieJar.make_cookies (GH-13921) (GH-16092) https://github.com/python/cpython/commit/e7b7edf5ebaed1

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

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

[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-09-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +easy, newcomer friendly ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue17013] Allow waiting on a mock

2019-09-13 Thread Mario Corchero
Change by Mario Corchero : -- pull_requests: +15715 pull_request: https://github.com/python/cpython/pull/16094 ___ Python tracker ___ __

[issue38141] Use fewer statics in Argument Clinic.

2019-09-13 Thread Eric Snow
Eric Snow added the comment: That might work. :) There are two key problems under subinterpreters that do not share the GIL: * races on refcount operations * cache thrashing due to refcount operations (under multi-core threads) A lock would certainly mitigate the first problem. I'm not sure

[issue38141] Use fewer statics in Argument Clinic.

2019-09-13 Thread Larry Hastings
Larry Hastings added the comment: shared objects x threads = contention for notification of invalidated cache lines If you're not running multiple threads, there's no problem. If it's only a few shared objects, it probably wouldn't be a big deal. As they say in medicine: "the dose makes t

[issue38098] Special Characters Don't Work When Using Virtual Environment

2019-09-13 Thread Steve Dower
Change by Steve Dower : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.8, Python 3.9 ___ Python tracker ___ _

  1   2   3   >