[issue38150] test_capi: test_c_subclass_of_heap_ctype_with_del_modifying_dunder_class_only_decrefs_once() leaks

2019-09-13 Thread Eddie Elizondo
Eddie Elizondo added the comment: On it. Also, I thought that the PR build bots already ran refleak tests by default? Do you know why this it's not integrated to the PR flow? -- nosy: +eelizondo ___ Python tracker

[issue38161] AsyncMock add `.awaited` like `.called`

2019-09-13 Thread Lisa Roach
New submission from Lisa Roach : Currently Mock has a `.called` attribute, we could add an equivalent `.awaited` that returns True or False if the object has been awaited on. -- messages: 352345 nosy: lisroach priority: normal severity: normal status: open title: AsyncMock add `.awaite

[issue37879] Segfaults in C heap type subclasses

2019-09-13 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue: the change caused a regression on the Refleak buildbot workers: bpo-38150. -- nosy: +vstinner resolution: fixed -> status: closed -> open ___ Python tracker

[issue38150] test_capi: test_c_subclass_of_heap_ctype_with_del_modifying_dunder_class_only_decrefs_once() leaks

2019-09-13 Thread STINNER Victor
STINNER Victor added the comment: The new test was added by: commit ff023ed36ea260ab64be5895f1f1f087c798987a Author: Eddie Elizondo Date: Wed Sep 11 05:17:13 2019 -0400 bpo-37879: Suppress subtype_dealloc decref when base type is a C heap type (GH-15323) -- _

[issue36274] http.client cannot send non-ASCII request lines

2019-09-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've started drafting a patch at https://github.com/python/cpython/tree/feature/putrequest-hooks -- ___ Python tracker ___

[issue26140] inspect.iscoroutinefunction raises TypeError when checks Mock of function or coroutinefunction

2019-09-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: I believe with AsyncMock implemented we can close the issue -- ___ Python tracker ___ ___ Python-

[issue38019] asyncio subprocess AttributeError: 'NoneType' object has no attribute '_add_reader' / '_remove_reader'

2019-09-13 Thread Marat Sharafutdinov
Change by Marat Sharafutdinov : -- title: AttributeError: 'NoneType' object has no attribute '_add_reader' / '_remove_reader' -> asyncio subprocess AttributeError: 'NoneType' object has no attribute '_add_reader' / '_remove_reader' versions: +Python 3.6, Python 3.8, Python 3.9 __

[issue36274] http.client cannot send non-ASCII request lines

2019-09-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: I believe this issue is more recent and widespread than I originally thought. I realized today that CherryPy is affected by this issue and [disabled nightly tests](https://github.com/cherrypy/cherrypy/issues/1781#issuecomment-507836873) as a result. It look

[issue25068] The proxy key's string should ignore case.

2019-09-13 Thread miss-islington
miss-islington added the comment: New changeset 590ed09a5b422d59cc1f049c64ac30733545eef0 by Miss Islington (bot) in branch '3.8': bpo-25068: urllib.request.ProxyHandler now lowercases the dict keys (GH-13489) https://github.com/python/cpython/commit/590ed09a5b422d59cc1f049c64ac30733545eef0

[issue38155] Add __all__ to the datetime module

2019-09-13 Thread Dong-hee Na
Dong-hee Na added the comment: Good news, When this issue is solved. Can we solve the issue from https://github.com/python/cpython/pull/15633 ? -- nosy: +corona10 ___ Python tracker _

[issue34706] Signature.from_callable sometimes drops subclassing

2019-09-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mai

[issue34706] Signature.from_callable sometimes drops subclassing

2019-09-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue25068] The proxy key's string should ignore case.

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for your contribution, your PR has been merged into master but not in 3.8. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34706] Signature.from_callable sometimes drops subclassing

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

[issue25068] The proxy key's string should ignore case.

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

[issue25068] The proxy key's string should ignore case.

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset b761e3aed1fbada4572a776f6a0d3c4be491d595 by Stéphane Wirtel (Zackery Spytz) in branch 'master': bpo-25068: urllib.request.ProxyHandler now lowercases the dict keys (GH-13489) https://github.com/python/cpython/commit/b761e3aed1fbada4572a776f6a0d3

[issue36002] configure --enable-optimizations with clang fails to detect llvm-profdata

2019-09-13 Thread miss-islington
miss-islington added the comment: New changeset bd2e7cc3af26fdd8bb86009048533e2000c0a490 by Miss Islington (bot) in branch '3.8': closes bpo-36002: Use AC_PATH_TOOL to find llvm-profdata and llvm-ar. (GH-14998) https://github.com/python/cpython/commit/bd2e7cc3af26fdd8bb86009048533e2000c0a490

[issue36002] configure --enable-optimizations with clang fails to detect llvm-profdata

2019-09-13 Thread miss-islington
miss-islington added the comment: New changeset d112ea66b003deb7a4f222e47a552ac79098f4df by Miss Islington (bot) in branch '3.7': closes bpo-36002: Use AC_PATH_TOOL to find llvm-profdata and llvm-ar. (GH-14998) https://github.com/python/cpython/commit/d112ea66b003deb7a4f222e47a552ac79098f4df

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2019-09-13 Thread miss-islington
miss-islington added the comment: New changeset c27bcc3b476bbda7958724376189816c4e9d19c4 by Miss Islington (bot) in branch '3.8': bpo-26468: Doc: improve the documentation of shutil.copy2 when it can fail. (GH-13765) https://github.com/python/cpython/commit/c27bcc3b476bbda7958724376189816c4e

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

2019-09-13 Thread Joshua Cannon
Joshua Cannon added the comment: Pretty much the same reason you would want to slice any other sequence. You want some range of values. top_most_3_dirs = myPath.parents[-3:] grandparents_and_beyond = myPath.parents[1:] The same goes for negative indexes. --

[issue36046] support dropping privileges when running subprocesses

2019-09-13 Thread Thomas Wouters
Thomas Wouters added the comment: New changeset 693aa80a434590ea7dcd35c000209e53d01b9425 by T. Wouters (Gregory P. Smith) in branch 'master': bpo-36046: Fix buildbot failures (GH-16091) https://github.com/python/cpython/commit/693aa80a434590ea7dcd35c000209e53d01b9425 -- nosy: +twout

[issue38160] Add a "PyInterpreterState *" field to PyTypeObject.

2019-09-13 Thread Petr Viktorin
Petr Viktorin added the comment: PEP 573 already proposes adding a pointer to the *module* to heap types (well, those that opt in). We should rather add a pointer from *modules* to the interpreter state. -- ___ Python tracker

[issue26140] inspect.iscoroutinefunction raises TypeError when checks Mock of function or coroutinefunction

2019-09-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I believe it's still a problem with Mock though MagicMock and AsyncMock work but I am not sure what would be the correct behavior that whether Mock should behave like a coroutine or not as per the discussion here. ./python.exe Python 3.9.0a0 (heads

[issue36002] configure --enable-optimizations with clang fails to detect llvm-profdata

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

[issue36002] configure --enable-optimizations with clang fails to detect llvm-profdata

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

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I have merged the PR with the change in the documentation, feel free to open a new PR for the other part of this issue. -- versions: +Python 3.8, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker <

[issue36002] configure --enable-optimizations with clang fails to detect llvm-profdata

2019-09-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 0519d497b04b252f50dfff9101fb7f4b9e33f1c4 by Benjamin Peterson (Doyle Rowland) in branch 'master': closes bpo-36002: Use AC_PATH_TOOL to find llvm-profdata and llvm-ar. (GH-14998) https://github.com/python/cpython/commit/0519d497b04b252f50dfff

[issue22393] multiprocessing.Pool shouldn't hang forever if a worker process dies unexpectedly

2019-09-13 Thread Davin Potts
Change by Davin Potts : -- pull_requests: +15722 pull_request: https://github.com/python/cpython/pull/16103 ___ Python tracker ___ _

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

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

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 9585f46b97931d2640c3343dfe03aed15beb9fea by Stéphane Wirtel (Windson yang) in branch 'master': bpo-26468: Doc: improve the documentation of shutil.copy2 when it can fail. (GH-13765) https://github.com/python/cpython/commit/9585f46b97931d2640c33

[issue38160] Add a "PyInterpreterState *" field to PyTypeObject.

2019-09-13 Thread Eric Snow
New submission from Eric Snow : A "PyInterpreterState *interp" field on PyTypeObject would allow us to quickly access the originating interpreter from any object. This will help us avoid more costly lookups. The additional pointer used for this should not have a significant impact on the me

[issue38153] Normalize hashing algorithm names

2019-09-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 995b5d38e7cc24cac3de8dfd516115f86b0bcf80 by Gregory P. Smith (Christian Heimes) in branch 'master': bpo-38153: Normalize hashlib algorithm names (GH-16083) https://github.com/python/cpython/commit/995b5d38e7cc24cac3de8dfd516115f86b0bcf80 ---

[issue26140] inspect.iscoroutinefunction raises TypeError when checks Mock of function or coroutinefunction

2019-09-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: I believe after implementing AsyncMock we can close the issue -- nosy: +asvetlov resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker __

[issue21041] pathlib.PurePath.parents rejects negative indexes

2019-09-13 Thread Joshua Cannon
Joshua Cannon added the comment: > it may explain why negative indices or slices were initially not implemented: > It already looks like the result of a slice. Sure the values of the sequence could be thought of as being increasingly smaller slices of some other sequence, however I don't thi

[issue38159] PyState_AddModule docs should say that it's not necessary to call it.

2019-09-13 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +15720 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16101 ___ Python tracker ___ __

[issue34344] Fix the docstring for AbstractEventLoopPolicy.get_event_loop

2019-09-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Vlad, the PR is very welcome! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue38159] PyState_AddModule docs should say that it's not necessary to call it.

2019-09-13 Thread Petr Viktorin
New submission from Petr Viktorin : I've seen extension modules calling PyState_AddModule on init, despite Python doing this automatically. It should be clarified that PyState_AddModule is for people who are writing alternative ways of creating/registering module objects. -- messages

[issue18710] Add PyState_GetModuleAttr

2019-09-13 Thread Petr Viktorin
Petr Viktorin added the comment: PEP 573 proposes an alternative to PyState_FindModule. -- nosy: +petr.viktorin ___ Python tracker ___

[issue38148] Add slots to asyncio transports

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

[issue38122] AsyncMock force always creating an AsyncMock for child mocks

2019-09-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +15719 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16099 ___ Python tracker ___ __

[issue38148] Add slots to asyncio transports

2019-09-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 6638c9226066205a646e18da95b33e619d784b0b by Andrew Svetlov in branch '3.8': [3.8] bpo-38148: Add slots to asyncio transports (GH-16077) (GH-16093) https://github.com/python/cpython/commit/6638c9226066205a646e18da95b33e619d784b0b -- __

[issue29986] Documentation recommends raising TypeError from tp_richcompare

2019-09-13 Thread miss-islington
miss-islington added the comment: New changeset 4556b1d35c352c975f3cf066362cb6e24efe0668 by Miss Islington (bot) in branch '3.8': bpo-29986: Doc: Delete tip to raise TypeError from tp_richcompare. (GH-16095) https://github.com/python/cpython/commit/4556b1d35c352c975f3cf066362cb6e24efe0668 -

[issue38092] environment variables not passed correctly using new virtualenv launching in windows and python3.7+

2019-09-13 Thread Steve Dower
Steve Dower added the comment: I posted a second PR with the rest of the change, as it'd be good to get this in before the next 3.8 release. -- versions: -Python 3.7 ___ Python tracker

[issue38092] environment variables not passed correctly using new virtualenv launching in windows and python3.7+

2019-09-13 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +15718 pull_request: https://github.com/python/cpython/pull/16098 ___ Python tracker ___ _

[issue29986] Documentation recommends raising TypeError from tp_richcompare

2019-09-13 Thread Julien Palard
Julien Palard added the comment: New changeset 375a3e2bdbeb4dce69aba4b5bc90f55fe27e81b4 by Julien Palard in branch 'master': bpo-29986: Doc: Delete tip to raise TypeError from tp_richcompare. (GH-16095) https://github.com/python/cpython/commit/375a3e2bdbeb4dce69aba4b5bc90f55fe27e81b4 --

[issue29986] Documentation recommends raising TypeError from tp_richcompare

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

[issue29986] Documentation recommends raising TypeError from tp_richcompare

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

[issue38153] Normalize hashing algorithm names

2019-09-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: as discussed, not pushing this back into 3.7 as we aren't hearing users call this a problem. -- versions: -Python 3.7 ___ Python tracker

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

2019-09-13 Thread Steve Dower
Steve Dower added the comment: Thanks Spandan This doesn't reproduce trivially for me, so I suspect there is some difference in the venv. Could you run "pip list" in both the venv and with it deactivated and share the output? There are some packages that modify how console input works. ---

[issue37480] add ptpython to list of alternate interpreters

2019-09-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for the proposal but I close this issue because I think the wiki is a better place. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

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

[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

[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

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

[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

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

[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

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

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

[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

[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

[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

[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(). -- ___

[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

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

[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

[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

[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

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

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

[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

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

[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

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

[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

[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

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

[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

[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

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

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

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

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

[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

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

[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

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

[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

[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', '.

[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

[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

[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

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

[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

[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

[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

[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

<    1   2   3   >