[issue36996] unittest.mock.patch decorator doesn't work with async functions

2019-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thank you very much for raising the question. @patch(...) creates _patch class instance. For decoration _patch.__call__ is used. def __call__(self, func): if isinstance(func, type): return self.decorate_class(func) return self.

[issue24653] Mock.assert_has_calls([]) is surprising for users

2019-05-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Are the correct methods advertised in the right place? (I don’t use mock so > I forgot if there is a method to assert not called or if it’s > assertEqual(mock calls count, 0) or some False property) There is assert_not_called https://docs.python

[issue36035] pathlib.Path().rglob() breaks with broken symlinks

2019-05-21 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6 ___ Python tracker ___ ___

[issue36035] pathlib.Path().rglob() breaks with broken symlinks

2019-05-21 Thread miss-islington
miss-islington added the comment: New changeset aea49b18752880e5d0260f16ca7ff2c6dce78515 by Miss Islington (bot) in branch '3.7': [3.7] bpo-36035: fix Path.rglob for broken links (GH-11988) (GH-13469) https://github.com/python/cpython/commit/aea49b18752880e5d0260f16ca7ff2c6dce78515

[issue19376] document that strptime() does not support the Feb 29 if the format does not contain the year

2019-05-21 Thread Tal Einat
Tal Einat added the comment: New changeset 390d88e49c55c15fac7cdf60b649a4b9b15d189b by Tal Einat in branch '3.7': [3.7] bpo-19376: Added doc mentioning `datetime.strptime()` without a year fails for Feb 29. (GH-10243) https://github.com/python/cpython/commit/390d88e49c55c15fac7cdf60b649a4b9b

[issue24653] Mock.assert_has_calls([]) is surprising for users

2019-05-21 Thread Éric Araujo
Éric Araujo added the comment: > And when people understand this API checks inclusion, calling with empty list doesn't make sense at all. I can see a thought process being «all my other tests use thing.assert_has_calls([call0, call1]), here let’s check there are no calls with thing2.assert_h

[issue33071] Document that PyPI no longer requires 'register'

2019-05-21 Thread Éric Araujo
Éric Araujo added the comment: My preference would be to have 2.7 doc accurate. Let’s wait a little bit to see if someone picks this up? -- ___ Python tracker ___

[issue19376] document that strptime() does not support the Feb 29 if the format does not contain the year

2019-05-21 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +13381 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue36035] pathlib.Path().rglob() breaks with broken symlinks

2019-05-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +13380 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2019-05-21 Thread Matej Cepl
Matej Cepl added the comment: I understood, and I was saying that if you kick nntplib out of the standard library, than I will just embed it into my program and I won't bother to maintain it publicly. -- ___ Python tracker

[issue23378] argparse.add_argument action parameter should allow value extend

2019-05-21 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36929] Other Python _io implementations may not expose _io in their type names

2019-05-21 Thread miss-islington
miss-islington added the comment: New changeset 6b48e658bf80b0e30fddd9dfe80021313e57fb6a by Miss Islington (bot) in branch '3.7': bpo-36929: Modify io/re tests to allow for missing mod name (GH-13392) https://github.com/python/cpython/commit/6b48e658bf80b0e30fddd9dfe80021313e57fb6a

[issue23378] argparse.add_argument action parameter should allow value extend

2019-05-21 Thread miss-islington
miss-islington added the comment: New changeset aa32a7e1116f7aaaef9fec453db910e90ab7b101 by Miss Islington (bot) (Batuhan Taşkaya) in branch 'master': bpo-23378: Add an extend action to argparse (GH-13305) https://github.com/python/cpython/commit/aa32a7e1116f7aaaef9fec453db910e90ab7b101

[issue36035] pathlib.Path().rglob() breaks with broken symlinks

2019-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset d5c120f7eb6f2a9cdab282a5d588afed307a23df by Antoine Pitrou (Jörg Stucke) in branch 'master': bpo-36035: fix Path.rglob for broken links (GH-11988) https://github.com/python/cpython/commit/d5c120f7eb6f2a9cdab282a5d588afed307a23df -- ___

[issue36035] pathlib.Path().rglob() breaks with broken symlinks

2019-05-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +13379 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36998] distutils sdist command fails to create MANIFEST if any filenames are undecodable

2019-05-21 Thread Toshio Kuratomi
Change by Toshio Kuratomi : -- keywords: +patch pull_requests: +13378 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue36998] distutils sdist command fails to create MANIFEST if any filenames are undecodable

2019-05-21 Thread Toshio Kuratomi
New submission from Toshio Kuratomi : An sdist may contain files whose names are undecodable in the current locale. For instance, the sdist might include some files for testing whose filenames are undecodable because that's the format of the input for that application. Currently, trying to c

[issue36929] Other Python _io implementations may not expose _io in their type names

2019-05-21 Thread Dino Viehland
Dino Viehland added the comment: New changeset ccb7ca728e09b307f9e9fd36ec40353137e68a3b by Dino Viehland (Max Bernstein) in branch 'master': bpo-36929: Modify io/re tests to allow for missing mod name (#13392) https://github.com/python/cpython/commit/ccb7ca728e09b307f9e9fd36ec40353137e68a3b

[issue36929] Other Python _io implementations may not expose _io in their type names

2019-05-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +13377 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36997] Document that spwd is considered harmful

2019-05-21 Thread Christian Heimes
New submission from Christian Heimes : The spwd module has several flaws. Especially the combination of spwd and crypt for password verification is dangerous and in almost all cases technically wrong. # don't do this! pw1 = spwd.getspnam(username).sp_pwd pw2 = crypt.crypt(passwor

[issue36995] tp_print -> tp_vectorcall_offset

2019-05-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I would suggest centralizing all PRs on the same issue as Petr is indicating to reduce the noise, especially before the PEP is accepted. -- nosy: +pablogsal ___ Python tracker

[issue21315] email._header_value_parser does not recognise in-line encoding changes

2019-05-21 Thread Abhilash Raj
Abhilash Raj added the comment: Created a Pull Request for this. https://github.com/python/cpython/pull/13425 -- ___ Python tracker ___ __

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2019-05-21 Thread Christian Heimes
Christian Heimes added the comment: I mean fork, as in maintain your own fork on PyPI and outside of Python core. -- ___ Python tracker ___ ___

[issue34144] venv activate.bat reset codepage fails on windows 10

2019-05-21 Thread miss-islington
miss-islington added the comment: New changeset 3c9c2dc8dde709a5f27c74aff1614d6ed3456964 by Miss Islington (bot) in branch '3.7': bpo-34144: Fix of venv acvtivate.bat for win 10 (GH-8321) https://github.com/python/cpython/commit/3c9c2dc8dde709a5f27c74aff1614d6ed3456964 -- _

[issue34144] venv activate.bat reset codepage fails on windows 10

2019-05-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +13376 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36996] unittest.mock.patch decorator doesn't work with async functions

2019-05-21 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I came across this while using AsyncMock but it seems to apply to Mock/MagicMock too. When patch decorator is used to wrap an async function to mock sync or async functions it doesn't seem to work. Manually adding patcher or using patch as contex

[issue36995] tp_print -> tp_vectorcall_offset

2019-05-21 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +13375 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36970] Rename _PyObject_FastCallKeywords

2019-05-21 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue33563] fileinput input's and Fileinput's bufsize=0 do not remit deprecationWarnings

2019-05-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: bufsize has now been removed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36995] tp_print -> tp_vectorcall_offset

2019-05-21 Thread Petr Viktorin
Petr Viktorin added the comment: All these issues are quite confusing. If PEP 590 is accepted, all of it will need to be implemented. Why open separate issues for all the parts? -- ___ Python tracker __

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2019-05-21 Thread Matej Cepl
Matej Cepl added the comment: If that was the price of keeping nntplib inside of the Python standard library, yes. -- ___ Python tracker ___ _

[issue36970] Rename _PyObject_FastCallKeywords

2019-05-21 Thread Petr Viktorin
Petr Viktorin added the comment: If and when a function uses the vectorcall protocol (including the argument offset flag), it makes sense to rename it to vectorcall. Doing it before is misleading, IMO. Splitting fixes to unrelated issues (like bpo-36907) from PEP 590 is great, but this one

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2019-05-21 Thread Christian Heimes
Christian Heimes added the comment: Matej, would you be interested to fork nntplib and take over maintenance and responsibility? -- ___ Python tracker ___ ___

[issue36995] tp_print -> tp_vectorcall_offset

2019-05-21 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : If PEP 590 is accepted: in code comments, replace tp_print by tp_vectorcall_offset and (while we're at it) tp_reserved by tp_as_async. -- components: Interpreter Core messages: 343061 nosy: Mark.Shannon, jdemeyer, petr.viktorin priority: normal seve

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread Jake Tesler
Jake Tesler added the comment: Victor Stinner: would you mind taking a look at the new PR? Is this more along the lines of what you had in mind? -- ___ Python tracker ___ ___

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread Jake Tesler
Jake Tesler added the comment: New PR created with requested edits. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2019-05-21 Thread Christian Heimes
Christian Heimes added the comment: No, the module is still supported until EOL of Python 3.9. I expect 3.9 to go into security fix-only mode in 2024. -- versions: +Python 3.8, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2019-05-21 Thread Matej Cepl
Matej Cepl added the comment: @mbussonn That's exactly the point: I completely disagree with removal of nntplib from the standard library, so I went through all bugs here related to it. -- ___ Python tracker _

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread Jake Tesler
Change by Jake Tesler : -- pull_requests: +13373 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2019-05-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Would that be anyway closed by pep 594 (https://www.python.org/dev/peps/pep-0594/#nntplib) which suggest the removal nntp ? -- nosy: +mbussonn ___ Python tracker

[issue36230] Please sort assertSetEqual's output

2019-05-21 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Jess, are you still working on this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2019-05-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: What do you mean ? What is "this" ? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue36988] zipfile: string IndexError on extract

2019-05-21 Thread alter-bug-tracer
alter-bug-tracer added the comment: Hi, The zip is corrupted on purpose. I agree, every input should be checked before doing stuff with it. -- ___ Python tracker ___

[issue36980] pass-by-reference clues

2019-05-21 Thread stefan
stefan added the comment: Thank you for your reply and the lucid explanation.  On Monday, May 20, 2019, 9:15:42 PM EDT, Steven D'Aprano wrote: Steven D'Aprano added the comment: Hi Stefan, and welcome. This is not a help desk, you really should ask elsewhere for explanations of how

[issue36980] pass-by-reference clues

2019-05-21 Thread stefan
stefan added the comment: Thank you for your reply and the lucid explanation. On Monday, May 20, 2019, 9:17:34 PM EDT, Josh Rosenberg wrote: Josh Rosenberg added the comment: 1. This is a bug tracker for bugs in the Python language spec and the CPython interpreter, not a general pr

[issue33071] Document that PyPI no longer requires 'register'

2019-05-21 Thread Nick Coghlan
Nick Coghlan added the comment: This has been merged for 3.8 and 3.7, but not for 2.7, since the docs have diverged far enough that the automatic backport didn't work: https://github.com/python/cpython/pull/13087#issuecomment-494402704 Given the proximity to the general end of life of the Py

[issue36978] `python3 -m pip install` has no `--requirement` option on Windows

2019-05-21 Thread Eric V. Smith
Change by Eric V. Smith : -- stage: -> test needed status: open -> pending type: -> behavior ___ Python tracker ___ ___ Python-bug

[issue36797] Cull more oudated distutils information

2019-05-21 Thread Nick Coghlan
Nick Coghlan added the comment: While I do have a second PR open with some additional smaller cleanups, the first PR removed the outdated information that seemed most problematic. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue36797] Cull more oudated distutils information

2019-05-21 Thread Nick Coghlan
Change by Nick Coghlan : -- pull_requests: +13372 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue36988] zipfile: string IndexError on extract

2019-05-21 Thread JUN-WEI SONG
JUN-WEI SONG added the comment: The following output throws error when using unzip -t $ unzip -t file0.zip Output: Archive: file0.zip : mismatching "local" filename (zipfile_extract.pyUT^I), continuing with "central" filename version testing: error:

[issue36994] Missing tests for CALL_FUNCTION_EX opcode profiling method_descriptor

2019-05-21 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +13371 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread Jake Tesler
Jake Tesler added the comment: I will implement these changes - let’s try to hit that end-of-month target! -- ___ Python tracker ___ ___

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

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset bb8071a4cae5ab3fe321481dd3d73662ffb26052 by Victor Stinner in branch '2.7': bpo-30458: Disallow control chars in http URLs (GH-12755) (GH-13154) (GH-13315) https://github.com/python/cpython/commit/bb8071a4cae5ab3fe321481dd3d73662ffb26052 -

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please re-read my previous comment. If you use asyncio incorrectly -- yes, you can run out of memory. The proper usage of pause_readind()/resume_reading() resolves the issue. -- ___ Python tracker

[issue36994] Missing tests for CALL_FUNCTION_EX opcode profiling method_descriptor

2019-05-21 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : The branch for profiling a method_descriptor inside do_call_core is not tested by the test suite. -- components: Tests messages: 343044 nosy: jdemeyer priority: normal severity: normal status: open title: Missing tests for CALL_FUNCTION_EX opcode pr

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread viocal
viocal added the comment: for example the system free memory size is 512m and filedata size is 500m will transport Success but filedata than 512m will be failed -- resolution: not a bug -> ___ Python tracker _

[issue36970] Rename _PyObject_FastCallKeywords

2019-05-21 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- title: Rename _PyObject_FastCall functions -> Rename _PyObject_FastCallKeywords ___ Python tracker ___ ___

[issue36970] Rename _PyObject_FastCallKeywords

2019-05-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue36970] Rename _PyObject_FastCallKeywords

2019-05-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: What's your opinion on renaming also _PyCFunction_FastCallKeywords -> _PyCFunction_Vectorcall _PyFunction_FastCallKeywords -> _PyFunction_Vectorcall If you agree, I will add it to the PR. -- ___ Python tracker

[issue36975] csv: undocumented UnicodeDecodeError on malformed file

2019-05-21 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I don't think all errors can be documented, csv iterate over the object but has no idea what it is. When writing for example, anything could happen, from a socket timing out, permissions errors, the underlying media being removed not properly, the media having

[issue36993] zipfile: tuple IndexError on extract

2019-05-21 Thread alter-bug-tracer
New submission from alter-bug-tracer : The following code throws an IndexError when attempting to extract a malformed archive (attached): import zipfile import sys zf = zipfile.ZipFile(sys.argv[1]) for info in zf.infolist(): zf.extract(info.filename) Result: Traceback (most recent call las

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2019-05-21 Thread Matej Cepl
Matej Cepl added the comment: Could @xdegaye make a PR for this? -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailin

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2019-05-21 Thread Matej Cepl
Matej Cepl added the comment: Could anybody make a PR from these patches? @vstinner, would you make me a review if I do it? -- nosy: +mcepl ___ Python tracker ___ ___

[issue36992] zipfile: AttributeError on extract (LZMA)

2019-05-21 Thread alter-bug-tracer
New submission from alter-bug-tracer : The following code throws an AttributeError when attempting to extract a malformed archive (attached): import zipfile import sys zf = zipfile.ZipFile(sys.argv[1]) for info in zf.infolist(): zf.extract(info.filename) Result: Traceback (most recent call

[issue36991] zipfile: AttributeError on extract

2019-05-21 Thread alter-bug-tracer
New submission from alter-bug-tracer : The following code throws an AttributeError when attempting to extract a malformed archive (attached): import zipfile import sys zf = zipfile.ZipFile(sys.argv[1]) for info in zf.infolist(): zf.extract(info.filename) Result: Traceback (most recent call

[issue35828] test_multiprocessing_fork: segmentation error in PyDict_GetItem on AIX

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: """ ... _PyObject_FastCallDict(callable = (nil), args = 0x2008bf70, nargs = 540036208, kwargs = 0x014d), line 100 in "call.c" object_vacall(callable = 0x100de658, vargs = warning: Unable to access address 0xdbdbdbdb from core (invalid char ptr (0xdbdbdb

[issue36973] test_json.test_recursion.TestPyRecursion.test_endless_recursion stack overflow in AMD64 Windows8.1 Non-Debug 3.x

2019-05-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I have seen it occurring consistently in my PR 10307 in Travis and AppVeyor. It seems to be reproducible by importing ast at the top in inspect module which seems to have an effect as libregrtest is used to run the test_json. Using unittest module

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: No. pause_writing/resume_writing are protocol callbacks called by transport. User code should respond to these callbacks by stopping sending data to transport (transport.write()). The logic is a little complicated but it is ok for very low-level asyncio API.

[issue35828] test_multiprocessing_fork: segmentation error in PyDict_GetItem on AIX

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-36752. -- nosy: +vstinner title: test_multiprocessing_fork - crashes in PyDict_GetItem - segmentation error -> test_multiprocessing_fork: segmentation error in PyDict_GetItem on AIX ___ Python tracker

[issue31850] test_nntplib failed with "nntplib.NNTPDataError: line too long"

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this issue recently, so I just close it. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker __

[issue36973] test_json.test_recursion.TestPyRecursion.test_endless_recursion stack overflow in AMD64 Windows8.1 Non-Debug 3.x

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: See also: * bpo-25240: Stack overflow in reprlib causes a core dump * bpo-28913: "Fatal Python error: Cannot recover from stack overflow." from RecursionError in Python 3.5 * bpo-22583: C stack overflow in the Python 2.7 compiler --

[issue36973] test_json.test_recursion.TestPyRecursion.test_endless_recursion stack overflow in AMD64 Windows8.1 Non-Debug 3.x

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: bpo-25329 was a similar json crash with stack overflow in 2015. The issue gives pointers to: * bpo-25222: 3.5.0 regression - Fatal Python error: Cannot recover from stack overflow * bpo-25342: test_json segfault on OpenBSD -- __

[issue36973] test_json.test_recursion.TestPyRecursion.test_endless_recursion stack overflow in AMD64 Windows8.1 Non-Debug 3.x

2019-05-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue25329] test_json crashes with stack overflow on Windows

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: No activity for 4 years. I close the issue. See bpo-36973 for a similar issue in 2019. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue36816] self-signed.pythontest.net TLS certificate key is too weak

2019-05-21 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: Hi Michael Felt, > And, what it looks like you are trying to do with an updated 'signing" .pem > is to remove the 'self-signed' charasteric. If I understand it correctly, the new certificate is indeed still self-signed. It's updated to match the certificate

[issue36973] test_json.test_recursion.TestPyRecursion.test_endless_recursion stack overflow in AMD64 Windows8.1 Non-Debug 3.x

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: The mashal also caused similar issues with stack overflow in the past: commit f6c69e6cc9aac35564a2a2a7ecc43fa8db6da975 Author: Steve Dower Date: Sat Nov 1 15:15:16 2014 -0700 #22734 marshal needs a lower stack depth for debug builds on Windows commit 2

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread viocal
viocal added the comment: thanks you but I think protocol.resume_writing() / protocol.pause_writing() is auto called by Protocol because set transport.set_write_buffer_limits(high=65536*2, low=16384*2) #default (high=65536, low=16384) -- ___ Py

[issue36975] csv: undocumented UnicodeDecodeError on malformed file

2019-05-21 Thread alter-bug-tracer
alter-bug-tracer added the comment: Shouldn't all of them be documented? Either that, or converted to csv.Error? Take, for example, the C++ std. -- ___ Python tracker ___ ___

[issue36973] test_json.test_recursion.TestPyRecursion.test_endless_recursion stack overflow in AMD64 Windows8.1 Non-Debug 3.x

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: > Buildbot error : https://buildbot.python.org/all/#/builders/12/builds/2497 It's AMD64 Windows8.1 Non-Debug 3.x: test_endless_recursion (test.test_json.test_recursion.TestPyRecursion) ... ok Fatal Python error: Cannot recover from stack overflow. Current th

[issue31850] test_nntplib failed with "nntplib.NNTPDataError: line too long"

2019-05-21 Thread Matej Cepl
Matej Cepl added the comment: Was this ever reproduced anywhere? -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailin

[issue36511] Add Windows ARM32 buildbot

2019-05-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue36816] self-signed.pythontest.net TLS certificate key is too weak

2019-05-21 Thread Michael Felt
Michael Felt added the comment: On 21/05/2019 12:08, Michael Felt wrote: > Michael Felt added the comment: > > p.s. On Centos I could not even get a python3 (at least not easily). > > On debian (on POWER) I get the same error (message) as on AIX - although the > line number did change. > > ss

[issue36648] MAP_SHARED isn't proper for anonymous mappings for VxWorks

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

[issue36990] test_asyncio.test_create_connection_ipv6_scope fails(in mock test?)

2019-05-21 Thread Michael Felt
New submission from Michael Felt : == test_create_connection_ipv6_scope (test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests) -- Traceback (most

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-21 Thread Eryk Sun
Eryk Sun added the comment: > FSCTL_GET_REPARSE_POINT is not exported with WIN32_LEAN_AND_MEAN You can explicitly include "winioctl.h" after "windows.h". Getting it from "windows.h" is indirect via "winscard.h" (smart card services), which will be skipped if either WIN32_LEAN_AND_MEAN or NO

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: No. It doesn't work this way. pause_writing is a protocol callback called from transport when the internal buffer is full. In reaction to this callback the producer should stop calling transport.write() and resume writing after getting `resume_writing()`. Fl

[issue36989] test_thread fails because symbol is (no longer) exported

2019-05-21 Thread Michael Felt
New submission from Michael Felt : On AIX, with commit 4fb15021890d327023aefd95f5a84ac33b037d19 (HEAD -> master, origin/master, origin/HEAD) test_thread is failing. The three sub_tests that exit as ERROR are: ERROR: test_threads_join_2 (test.test_threading.SubinterpThreadingTests) ERROR: test

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread viocal
viocal added the comment: for buf in filedata: asc.resume_writing() asc.transport.write(buf) asc.pause_writing() -- ___ Python tracker ___

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: > WIN32_LEAN_AND_MEAN is defined by Include/internal/pycore_condvar.h (...) It would be nice to get ride of #include in Python headers. The was introduced by this commit: commit 2ebc5ce42a8a9e047e790aefbf9a94811569b2b6 Author: Eric Snow Date: Thu Sep 7

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm sorry but I cannot tell why you are using `pause_writing` incorrectly without looking on the code. -- ___ Python tracker ___ ___

[issue36273] test_thread leaks a core dump on PPC64 AIX 3.x

2019-05-21 Thread Michael Felt
Michael Felt added the comment: Again - how can I get the core (dump) mentioned in the error message. When I force this situation I have several core dumps - not "the one". -- ___ Python tracker ___

[issue36752] test multiprocessing: test_rapid_restart() crash on AIX

2019-05-21 Thread Michael Felt
Michael Felt added the comment: I believe (or hope) this is related to issue35828. This is, as far as I can tell, a compiler issue. It appears "always" in the bot situation (not building as root) when using xlc-v11, but not when using gcc-4.7.4. So, when the test failure "disappears" on the

[issue36981] asyncio transport.write() memory out

2019-05-21 Thread viocal
viocal added the comment: I use rotocol.pause_writing() / Protocol.resume_writing() but results is no change(memory out Or killed by OS) -- ___ Python tracker ___

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: eryksun commented there, but I prefer to discuss here: https://github.com/python/cpython/commit/925af1d99b69bf3e229411022ad840c5a0cfdcf8#commitcomment-33617265 ""Windows.h" was already being included, as I mentioned on the issue tracker, because we certainly

[issue31904] Python should support VxWorks RTOS

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: Please update PR 12670: see my comment there. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue36648] MAP_SHARED isn't proper for anonymous mappings for VxWorks

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4fb15021890d327023aefd95f5a84ac33b037d19 by Victor Stinner (Lihua Zhao) in branch 'master': bpo-36648: fix mmap issue for VxWorks (GH-12394) https://github.com/python/cpython/commit/4fb15021890d327023aefd95f5a84ac33b037d19 --

[issue36988] zipfile: string IndexError on extract

2019-05-21 Thread alter-bug-tracer
New submission from alter-bug-tracer : The following code throws an IndexError when attempting to extract a malformed archive (attached): import zipfile import sys zf = zipfile.ZipFile(sys.argv[1]) for info in zf.infolist(): zf.extract(info.filename) Result: Traceback (most recent call las

[issue36986] tarfile: unexpected IsADirectoryError on extraction

2019-05-21 Thread Michele Angrisano
Michele Angrisano added the comment: It looks like it has the same behavior of issue8958. -- nosy: +mangrisano ___ Python tracker ___ _

[issue31904] Python should support VxWorks RTOS

2019-05-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset f2d7ac7e5bd821e29e0fcb78a760a282059ae000 by Victor Stinner (pxinwr) in branch 'master': bpo-31904: Add posix module support for VxWorks (GH-12118) https://github.com/python/cpython/commit/f2d7ac7e5bd821e29e0fcb78a760a282059ae000 -- __

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Jake, would you like to submit a new PR that implements Victor's suggestion (i.e. only define and test the attribute on supported systems)? -- ___ Python tracker __

<    1   2   3   >