[issue18060] Updating _fields_ of a derived struct type yields a bad cif

2019-05-14 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: The current behavior, stgdict->length = len; sets the number of elements in the class excluding its base classes. The new behavior of stgdict->length = ffi_ofs + len; sets the total number of elements in both the class and its base classes.

[issue19216] stat cache for import bootstrap

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: The benefit of avoiding stat() calls seems to not be obvious to everybody. Moreover, importlib now implements a "path cache". I close the issue. The most efficient solution is to pack all your modules and the Python stdlib into a ZIP file: everything is

[issue23603] Embedding Python3.4 - PyUnicode_Check fails (MinGW-W64)

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: No activity for 4 years. I close the issue. -- nosy: +vstinner resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue13493] Import error with embedded python on AIX 6.1

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: No activity since 2011, I close the issue. -- nosy: +vstinner resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue21563] Segv during call to builtin_execfile in application embedding Python interpreter.

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7 is close to it's end of life, Python 3 doesn't have execfile(), and this issue has no activity since 2014. I close the issue. -- nosy: +vstinner resolution: -> out of date stage: -> resolved status: open -> closed

[issue1257] atexit errors should result in nonzero exit code

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Antoine disagrees with the feature request, so I close it. You can modify your atexit callbacks to catch exceptions and decide how to handle them: write them into a file, into stderr, etc. -- nosy: +vstinner resolution: -> rejected stage: patch

[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: No activity for almost 2 years, I close the issue. -- nosy: +vstinner resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue22747] Interpreter fails in initialize on systems where HAVE_LANGINFO_H is undefined

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Python 3 (I don't recall which version exactly) has been fixed to always use UTF-8 on Android for the filesystem encoding and even for the locale encoding in most places. I close the issue. -- resolution: -> fixed stage: -> resolved status: open

[issue21202] Naming a file` io.py` causes cryptic error message

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: No activity for 5 years, I close the issue. -- nosy: +vstinner resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue14228] Don't display traceback when import site is interrupted by CTRL+c

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: No activity for 6 years, I close the issue. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue24280] Unable to install Python

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: This issue had no activity for 4 years and don't provide enough information to be investigated. I close it. -- nosy: +vstinner resolution: -> out of date stage: -> resolved status: open -> closed ___ Python

[issue26891] CPython doesn't work when you disable refcounting

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Well, CPython requires reference counting. This issue looks highly experimental with not activity for 3 years, I close it. -- nosy: +vstinner resolution: -> not a bug stage: needs patch -> resolved status: open -> closed

[issue24871] freeze.py doesn't work on x86_64 Linux out of the box

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26480] add a flag that will not give the set a sys.stdin

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: create_stdio() checks if the file descriptor is valid: if (!is_valid_fd(fd)) Py_RETURN_NONE; This function is_valid_fd() has been fixed recently on FreeBSD. It's unclear to me why and how Python fails to create standard streams. Without more

[issue29818] Py_SetStandardStreamEncoding leads to a memory error in debug mode

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: I fixed this issue in Python 3.7. Py_SetStandardStreamEncoding() now uses: PyMemAllocatorEx old_alloc; _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, _alloc); ... _PyMem_RawStrdup() ... PyMem_SetAllocator(PYMEM_DOMAIN_RAW, _alloc); --

[issue31473] Debug hooks on memory allocators are not thread safe (serialno variable)

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Python 3.8 has been fixed. I disabled serialno field by default: PYMEM_DEBUG_SERIALNO is not defined by default. You have to opt-in to get this bug :-) I don't see any easy fix older Python versions. I close the issue. -- resolution: -> fixed

[issue30905] Embedding should have public API for interactive mode

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2921] enable embedding: declare/#define only py* symbols in #includes

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Since this issue has been reported, a lot of work has been done to cleanup Python header files. In Python 3.8, we created Include/cpython/ and Include/internal/ subdirectories to clarify the intent and usage of header files. I close this issue. See

[issue13320] _remove_visual_c_ref in distutils.msvc9compiler causes DLL load fail with embedded Python and multiple CRT versions

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: No activity for 8 years, I close the issue. -- nosy: +vstinner resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue34255] test_embed skipped when srcdir != builddir

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34579] test_embed.InitConfigTests fail on AIX

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

[issue26515] Update extending/embedding docs to new way to build modules in C

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26122] Isolated mode doesn't ignore PYTHONHASHSEED

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: This issue has been fixed in Python 3.8 with my work on refactoring Py_Main(). -E and -I command line options are now parsed, before reading PYTHONHASHSEED, and -I imply -E as expected. Extract of the code: if (config->isolated > 0) {

[issue32231] -bb option should override -W options

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue22257] PEP 432: Redesign the interpreter startup sequence

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Update: I proposed the PEP 587 to expose the _PyCoreConfig API in public. -- ___ Python tracker ___

[issue33919] Expose _PyCoreConfig structure to Python

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Update. I implemented _testinternalcapi.get_configs() which exports *all* Python configuration used to initialize Python. It contains the hash seed for example. The function is only written for tests. Moreover, I proposed the PEP 587 to expose the new

[issue36920] inspect.getcallargs sees optional arg to builtin as required

2019-05-14 Thread Udi Meiri
New submission from Udi Meiri : $ python3.7 Python 3.7.3rc1 (default, Mar 13 2019, 11:01:15) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import inspect >>> inspect.getfullargspec(str.strip) FullArgSpec(args=['self', 'chars'], varargs=None,

[issue16961] No regression tests for -E and individual environment vars

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: I added a lot of tests on environment variables and -I/-E options in test_embed. I consider that this issue is now fixed. -- nosy: +vstinner resolution: out of date -> fixed status: open -> closed ___ Python

[issue26124] shlex.quote and pipes.quote do not quote shell keywords

2019-05-14 Thread Windson Yang
Change by Windson Yang : -- keywords: +patch pull_requests: +13245 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue1875] "if 0: return" not raising SyntaxError

2019-05-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +13244 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5eb8b07f87c66a9ca54fcb90737753ce76a3054d by Victor Stinner in branch 'master': bpo-36763: InitConfigTests tests all core config (GH-13331) https://github.com/python/cpython/commit/5eb8b07f87c66a9ca54fcb90737753ce76a3054d --

[issue36790] test_asyncio fails with application verifier!

2019-05-14 Thread Alexander Riccio
Alexander Riccio added the comment: It's part of the Windows SDK, and is installed with it. To enable for this error, add the Python executable in Application Verifier, and check the Handles box. -- ___ Python tracker

[issue1875] "if 0: return" not raising SyntaxError

2019-05-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The issue is not fixed. The problem is that this still allows invalid syntax because the code is optimized away: def f(): if 0: break print("Hello") f() -- nosy: +pablogsal ___ Python

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36911] ast.parse outputs ast.Strs which do not differentiate between the ASCII codepoint 12 (literal new line) and the ASCII codepoints 134 and 156 ("\n")

2019-05-14 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Mark: the string is being correctly interpreted by the AST parser, per Python's tokenizer rules. You might want to look at lib2to3, which I think is also used by black. It's also possible that mypy or another static analyzer would be using some

[issue35197] graminit.h defines very generic names like 'stmt' or 'test'

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Another common issue with Python-ast.h, I just saw it on Windows: compile.c c:\program files (x86)\windows kits\10\include\10.0.17134.0\um\winbase.h(102): warning C4005: 'Yield': macro redefinition [C:\vstinner\python\master\PCbuild\pythoncore .vcxproj]

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13243 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36870] test_asyncio: test_drain_raises() fails randomly on Windows

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Andrew merged https://github.com/python/cpython/pull/13330 into master, it should fix this issue. -- ___ Python tracker ___

[issue36801] Wait for connection_lost in StreamWriter.drain

2019-05-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 54b74fe9df89f0e5646736f1f60376b4e37c422c by Andrew Svetlov in branch 'master': bpo-36801: Temporarily fix regression in writer.drain() (#13330) https://github.com/python/cpython/commit/54b74fe9df89f0e5646736f1f60376b4e37c422c --

[issue18060] Updating _fields_ of a derived struct type yields a bad cif

2019-05-14 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: While the fix works as advertised, it breaks a similar existing test case: == ERROR: test_positional_args (ctypes.test.test_structures.StructureTestCase)

[issue36911] ast.parse outputs ast.Strs which do not differentiate between the ASCII codepoint 12 (literal new line) and the ASCII codepoints 134 and 156 ("\n")

2019-05-14 Thread Mark Dickinson
Mark Dickinson added the comment: The AST _does_ correctly represent the Python string object in the source, though. After: >>> s = """ ... Hello \n world ... """ we have a Python object `s` of type `str`, which contains exactly three newlines, zero "n" characters, and zero backslashes.

[issue36801] Wait for connection_lost in StreamWriter.drain

2019-05-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +13242 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27810] Add METH_FASTCALL: new calling convention for C functions

2019-05-14 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Breakage due to the usage of borrowed references in _PyStack_UnpackDict(): #36907 -- nosy: +jdemeyer ___ Python tracker ___

[issue36870] test_asyncio: test_drain_raises() fails randomly on Windows

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: """ commit 1cc0ee7d9f6a2817918fafd24c18d8bb093a85d3 Author: Andrew Svetlov Date: Tue May 7 16:53:19 2019 -0400 bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098) """ I reverted this change in 3.7: commit

[issue36801] Wait for connection_lost in StreamWriter.drain

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13241 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36911] ast.parse outputs ast.Strs which do not differentiate between the ASCII codepoint 12 (literal new line) and the ASCII codepoints 134 and 156 ("\n")

2019-05-14 Thread Amber Brown
Amber Brown added the comment: There's a difference between round-tripping back to the source text and correctly representing the text in the source, though. Since I'm using this module to perform static analysis of a Python module to retrieve class/function definitions and their docstrings

[issue36801] Wait for connection_lost in StreamWriter.drain

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset c647ad9b51c59f71c02cd90c5e67d1b2768323ca by Victor Stinner in branch '3.7': Revert "bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098)" (GH-13328)

[issue36919] Exception form 'compile' reports a newline char not present in input

2019-05-14 Thread Pavel Koneski
New submission from Pavel Koneski : Since Python 3.2, input in 'exec' mode of 'compile' does not have to end in a newline anymore. However, it creates a surprising behavior when a 'SyntaxError' is reported: >>> try: compile('try', '', 'exec') ... except SyntaxError as ex: print(repr(ex))

[issue36911] ast.parse outputs ast.Strs which do not differentiate between the ASCII codepoint 12 (literal new line) and the ASCII codepoints 134 and 156 ("\n")

2019-05-14 Thread Eric V. Smith
Eric V. Smith added the comment: The existing behavior is what I'd expect. Using python3: >>> import ast >>> s = open('file.py', 'rb').read() >>> s b'"""\nHello \\n blah.\n"""\n' >>> ast.dump(ast.parse(s)) "Module(body=[Expr(value=Str(s='\\nHello \\n blah.\\n'))])" >>> eval(s) '\nHello \n

[issue36801] Wait for connection_lost in StreamWriter.drain

2019-05-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks like the change introduced by the PR is not stable at least on Windows boxes -- resolution: fixed -> stage: resolved -> status: closed -> open ___ Python tracker

[issue36870] test_asyncio: test_drain_raises() fails randomly on Windows

2019-05-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with your conclusion -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33529] [security] Infinite loop on folding email (_fold_as_ew()) if an header has no spaces

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2fef5b01e36a17e36fd7e65c4b51f5ede8880dda by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-33529, email: Fix infinite loop in email header encoding (GH-12020) (GH-13321)

[issue36870] test_asyncio: test_drain_raises() fails randomly on Windows

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: PR 13313 has been merged into master. Let's see if it does fix this issue in master. Python 3.7 is different: streams.py doesn't have _fast_drain() which was added by commit a076e4f5e42b85664693191d04cfb33e2f9acfa5 (bpo-36802). So instead, I created PR

[issue36801] Wait for connection_lost in StreamWriter.drain

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13240 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 91c99873d115b9796377d5056785f2abc987520f by Victor Stinner in branch 'master': bpo-36763: Add test for _PyCoreConfig_SetString() (GH-13275) https://github.com/python/cpython/commit/91c99873d115b9796377d5056785f2abc987520f --

[issue36760] subprocess.run fails with capture_output=True and stderr=STDOUT

2019-05-14 Thread miss-islington
miss-islington added the comment: New changeset 822683238c36e15f59d289075917ff7dedb5f4e6 by Miss Islington (bot) in branch '3.7': bpo-36760: Clarify subprocess capture_output docs. (GH-13322) https://github.com/python/cpython/commit/822683238c36e15f59d289075917ff7dedb5f4e6 -- nosy:

[issue36760] subprocess.run fails with capture_output=True and stderr=STDOUT

2019-05-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36760] subprocess.run fails with capture_output=True and stderr=STDOUT

2019-05-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset e883091abf7ca84a88e956fe5202e75c53bd4128 by Gregory P. Smith in branch 'master': bpo-36760: Clarify subprocess capture_output docs. (GH-13322) https://github.com/python/cpython/commit/e883091abf7ca84a88e956fe5202e75c53bd4128 --

[issue36760] subprocess.run fails with capture_output=True and stderr=STDOUT

2019-05-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +13239 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18060] Updating _fields_ of a derived struct type yields a bad cif

2019-05-14 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: It still behaves as described in the 3.7 and master branches. The proposed fix works. I will submit a pull request. -- nosy: +websurfer5 versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2019-05-14 Thread Edward Gow
Edward Gow added the comment: This bug is triggered by xml-rpc calls from the xmlrpc.client in the Python 3.5 standard library to a mod_wsgi/Python 3.5 endpoint. -- nosy: +elgow ___ Python tracker

[issue13824] argparse.FileType opens a file and never closes it

2019-05-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, Are you interested to write test cases? They could be useful for the fix. Thank you -- nosy: +matrixise ___ Python tracker ___

[issue10108] ExpatError not property wrapped

2019-05-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Scoder, I am not sure if this issue is relevant for 3.7 and 3.8 but do you want to check this issue? Thank you, -- nosy: +matrixise, scoder versions: +Python 3.7, Python 3.8 -Python 3.1 ___ Python tracker

[issue25652] collections.UserString.__rmod__() raises NameError

2019-05-14 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +13238 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-05-14 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > There would still be a breakage for that if someone was defining py36+ > `visit_Constant` (which would clobber the `ast.NodeVisitor.visit_Constant` if > we were to add it) Ok, it would still break in some cases, but that would still be a net

[issue16100] Compiling vim with Python 3.3 support fails

2019-05-14 Thread Zachary Ware
Change by Zachary Ware : -- versions: -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16100] Compiling vim with Python 3.3 support fails

2019-05-14 Thread Zachary Ware
Zachary Ware added the comment: As this appears to be a bug in Vim on an unsupported configuration with a now-unsupported version of Python, I'm closing the issue. If this is still an issue with a modern version of Python in a supported environment and can be shown to be a bug in Python

[issue34484] Unicode HOWTO incorrectly refers to Private Use Area for surrogateescape

2019-05-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: Yes, I think this issue can now be closed. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue1465646] test_grp & test_pwd fail

2019-05-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, Thank you for your contribution, I close this issue, 2.6 and 3.0 are deprecated and I can't reproduce the errors. -- nosy: +matrixise resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-05-14 Thread Anthony Sottile
Anthony Sottile added the comment: There would still be a breakage for that if someone was defining py36+ `visit_Constant` (which would clobber the `ast.NodeVisitor.visit_Constant` if we were to add it) -- ___ Python tracker

[issue16100] Compiling vim with Python 3.3 support fails

2019-05-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, The used version in this issue is outdated we could close this issue but I prefer to get the feedback from Steve Dower and Zach Ware. If this issue is not relevant to 3.7+, I suggest closing this issue. -- nosy: +matrixise, steve.dower,

[issue35926] Need openssl 1.1.1 support on Windows for ARM and ARM64

2019-05-14 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +13237 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1616] compiler warnings

2019-05-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Because this issue is very long and we stopped to use the version 2.x of Gcc, and migrated to a newer verson, I close this issue. Feel free to re-open it in the future or fill a new issue. -- nosy: +matrixise resolution: -> out of date stage: needs

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-05-14 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Would it be useful to add a default implementation of `visit_Constant(self, node)` on NodeVisitor that go through all the isinstance() check and call the appropriate backward compatible method ? We would still have the simplification without having

[issue18478] Class bodies: when does a name become local?

2019-05-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -13235 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18478] Class bodies: when does a name become local?

2019-05-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +13235 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36918] ValueError warning in test_urllib due to io.IOBase destructor

2019-05-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +13236 stage: -> patch review ___ Python tracker ___ ___

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-05-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +13234 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-05-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -13228 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-05-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Okay, opened issue36918 . Raising PR against that issue. -- ___ Python tracker ___ ___

[issue36918] ValueError warning in test_urllib due to io.IOBase destructor

2019-05-14 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Issue for https://bugs.python.org/issue18748#msg340059. comment : Is there someone interested to debug remaining "Exception ignored:" logs in test_urllib? test_invalid_redirect (test.test_urllib.urlopen_HttpTests) ... Exception ignored in:

[issue36760] subprocess.run fails with capture_output=True and stderr=STDOUT

2019-05-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith components: +Documentation -Library (Lib) versions: +Python 3.8 ___ Python tracker ___

[issue36760] subprocess.run fails with capture_output=True and stderr=STDOUT

2019-05-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +13233 stage: -> patch review ___ Python tracker ___ ___

[issue36618] clang expects memory aligned on 16 bytes, but pymalloc aligns to 8 bytes

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Python 3.8 now respects the x86-64 ABI: https://bugs.python.org/issue27987 I reverted my workaround. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36618] clang expects memory aligned on 16 bytes, but pymalloc aligns to 8 bytes

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset d97adfb409290a1e4ad549e4af58cacea86d3358 by Victor Stinner in branch 'master': bpo-36618: Don't add -fmax-type-align=8 flag for clang (GH-13320) https://github.com/python/cpython/commit/d97adfb409290a1e4ad549e4af58cacea86d3358 --

[issue35926] Need openssl 1.1.1 support on Windows for ARM and ARM64

2019-05-14 Thread Steve Dower
Steve Dower added the comment: This PR has stalled because of errors raised by TLS 1.3 It seems that there may be a difference between sockets on Windows being non-blocking by default and other platforms being blocking by default. However, we think that is probably just causes TLS

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'd say go for it. We can't guarantee we'll accept the feature yet, but I think the .dedent() method with an optimization pass approach is worthwhile making a proof of concept of regardless. -- ___ Python

[issue33529] [security] Infinite loop on folding email (_fold_as_ew()) if an header has no spaces

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset c1f5667be1e3ec5871560c677402c1252c6018a6 by Victor Stinner (Krzysztof Wojcik) in branch 'master': bpo-33529, email: Fix infinite loop in email header encoding (GH-12020)

[issue33529] [security] Infinite loop on folding email (_fold_as_ew()) if an header has no spaces

2019-05-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +13232 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32892] Remove specific constant AST types in favor of ast.Constant

2019-05-14 Thread Anthony Sottile
Anthony Sottile added the comment: hitting this in https://bugs.python.org/issue36917? Is the simplification here really worth the breaking change to consumers? I now have to write something that's essentially this to work around this which feels more like the complexity has just been

[issue36618] clang expects memory aligned on 16 bytes, but pymalloc aligns to 8 bytes

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13231 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13230 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3020] doctest should have lib2to3 integration

2019-05-14 Thread Stefan Behnel
Stefan Behnel added the comment: I'm closing this old ticket. Python 2 will be dead by the time someone gets around to do something about it. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-05-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +13229 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Karthikeyan Singaravelan: Would you mind to open a separated issue for test_urllib warnings? -- ___ Python tracker ___

[issue36829] Add sys.unraisablehook() to custom how "unraisable exceptions" are logged

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: I'm interested to modify regrtest (test runner of the Python test suite) to use sys.unraisablehook(). It would be nice to add an option to display again *all* unraisable exceptions in the test summary, at the end. I did a similar experimentation for any

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-05-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I was wrong so removing the close call when io_refs gets to zero causes error on test_urllib2 [0] where close is asserted to be True and I only tested test_urllib initially. One another way would be to check for fp.closed in http.client before

[issue36829] Add sys.unraisablehook() to custom how "unraisable exceptions" are logged

2019-05-14 Thread STINNER Victor
Change by STINNER Victor : -- title: CLI option to make PyErr_WriteUnraisable abort the current process -> Add sys.unraisablehook() to custom how "unraisable exceptions" are logged ___ Python tracker

[issue36916] Swallow unhandled exception report introduced by 36802

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset f12ba7cd0a7370631214ac0b337ab5455ce717b2 by Victor Stinner (Andrew Svetlov) in branch 'master': bpo-36916: asyncio: Swallow unhandled write() exception (GH-13313) https://github.com/python/cpython/commit/f12ba7cd0a7370631214ac0b337ab5455ce717b2

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-05-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +13228 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >