[issue35081] Move internal headers to Include/internal/

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0d12672b30b8c6c992bef7564581117ae83e11ad by Victor Stinner (Paul Ganssle) in branch 'master': bpo-35081: Remove Py_BUILD_CORE from datetime.h (GH-10416) https://github.com/python/cpython/commit/0d12672b30b8c6c992bef7564581117ae83e11ad

[issue35226] mock.call equality surprisingly broken

2018-11-13 Thread Chris Withers
New submission from Chris Withers : $ python3 Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 26 2018, 23:26:24) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from unittest.mock import call >>> call(x=1) == call(x=2) False Good so far?

[issue35081] Move internal headers to Include/internal/

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: Status: only pyport. and tupleobject.h use Py_BUILD_CORE, and only tupleobject.h uses "#ifdef Py_BUILD_CORE" (contains code specific to internals). $ grep Py_BUILD_CORE Include/*.h Include/pyport.h:# if defined(Py_BUILD_CORE) || defined(Py_BUIL

[issue10486] http.server doesn't set all CGI environment variables

2018-11-13 Thread Glenn Linderman
Glenn Linderman added the comment: Rémi Lapeyre, glad to see your interest here, as this is an old and languishing bug. I would have hoped based on my input, that had there been anyone that was maintaining the Python web server code, that they might have done a more complete analysis than I

[issue33052] Sporadic segmentation fault in test_datetime

2018-11-13 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue33052] Sporadic segmentation fault in test_datetime.test_check_arg_types()

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: > Just spotted this in a Travis-CI job: > https://travis-ci.org/python/cpython/jobs/351010039#L2002 0:00:07 load avg: 20.55 [ 24/415/1] test_datetime crashed (Exit code -11) Fatal Python error: Segmentation fault Current thread 0x14fcbda86740 (most recent

[issue33052] Sporadic segmentation fault in test_datetime.test_check_arg_types()

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: Oh, this issue is the same bug than bpo-33701. I also close this one since this crash has been seen in March, but I didn't see it recently. So I close the issue as "out of date". -- resolution: -> out of date stage: -> resolved status: open -> clos

[issue35227] [RFE] tarfile: support adding file objects without prior known size

2018-11-13 Thread Michał Górny
New submission from Michał Górny : Currently, the tarfile module only supports adding files if their size is known prior to adding. However, I think it'd be helpful to be able to store large dynamically generated streams straight into the (uncompressed) .tar file without being able to precalc

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +9766 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35081] Move internal headers to Include/internal/

2018-11-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9767 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35081] Move internal headers to Include/internal/

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: Hum, this issue is much harder than what I expected. Status: * Include/internal/ header files have been renamed to get a new "pycore_" prefix which avoids conflicts with Include/ header files. Example: "pycore_pystate.h" vs "pystate.h". * pyatomic.c has been

[issue35226] mock.call equality surprisingly broken

2018-11-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this is due to the fact that when an attribute of a call object is accessed a new call object is returned with the parent as self.parent [0] but the original information regarding the parent is lost during representation and no check for sel

[issue35226] mock.call equality surprisingly broken

2018-11-13 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +mariocj89 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue35226] mock.call equality surprisingly broken

2018-11-13 Thread Chris Withers
Chris Withers added the comment: I don't think the getattr(self, 'parent', None) is necessary, the attribute is always there and None == None ;-) I reckon this will work: if self.parent != other.parent): return True ...but obviously, we'd add some more tests to the suite to make sure th

[issue10486] http.server doesn't set all CGI environment variables

2018-11-13 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Glenn, I'm not aware of a document that defines CGI better than the RFC and I don't know it enough to disgress from the published standard (even if it is not what isdone today as I don't know the current practices enough). Here is the variables defined by ng

[issue35224] PEP 572: Assignment Expressions

2018-11-13 Thread Steven D'Aprano
Change by Steven D'Aprano : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35226] mock.call equality surprisingly broken

2018-11-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Yes, for call objects it's always there but some of the tests use a tuple during self.assertEquals and hence during equality check other fails with the attribute error for parent like below. Also getattr(self, 'parent', None) != getattr(other, 'par

[issue30156] PYTHONDUMPREFS segfaults on exit

2018-11-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +9768 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue35228] Index search in CHM help crashes viewer

2018-11-13 Thread Christian Ullrich
New submission from Christian Ullrich : Typing into the index keyword field frequently crashes the CHM viewer with the first or second character. The Python CHMs are the only ones that I see this crash with; it started around 3.6 or so. >From event log: Faulting application name: hh.exe, ver

[issue35218] decompressing and then re-compressing zipfiles with Python 3 zipfile loses flag_bits

2018-11-13 Thread keeely
Change by keeely : -- keywords: +patch Added file: https://bugs.python.org/file47930/zipfile_flags.patch ___ Python tracker ___ ___

[issue35226] mock.call equality surprisingly broken

2018-11-13 Thread Mario Corchero
Mario Corchero added the comment: If this is to be done we should not change those tests, I am sure there is code validating calls relying on its "tupleness". Example: ``` >>> import unittest.mock >>> m = unittest.mock.Mock() >>> m(1) >>> m(2, a=1) >>> m.assert_has_calls([ ... ((1,), {}),

[issue29564] ResourceWarning: suggest to enable tracemalloc in the message

2018-11-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +9769 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35226] mock.call equality surprisingly broken

2018-11-13 Thread Chris Withers
Chris Withers added the comment: I'm chatting with Michael already (on Facebook of all places), and I use this feature heavily and deeply, being one of the people who originally requested it. I'm both happy and capable of seeing this through, so no need for anyone else to dive in :-) Hopefu

[issue29564] ResourceWarning: suggest to enable tracemalloc in the message

2018-11-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9770 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35226] mock.call equality surprisingly broken

2018-11-13 Thread Michael Foord
Michael Foord added the comment: Parents comparing upwards sounds like the right (and simple) fix. Not breaking the tuple tests would be good. I'm happy for Chris to produce the patch. -- ___ Python tracker ___

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: > Yes, that slows down Python 3.7.0a3 to the 3.7.0a4 level. Ok, so something calls setlocale(LC_CTYPE, "") or setlocale(LC_ALL, "") in Python 3.7.0. I'm not interested to dig the Git history. It doesn't really matter at this point. Can you try to get the cu

[issue35195] [Windows] Python 3.7 initializes LC_CTYPE locale at startup, causing performance issue on msvcrt isdigit()

2018-11-13 Thread STINNER Victor
Change by STINNER Victor : -- title: Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10 -> [Windows] Python 3.7 initializes LC_CTYPE locale at startup, causing performance issue on msvcrt isdigit() ___ Python tra

[issue35229] Deprecate _PyObject_GC_TRACK() in Python 3.6

2018-11-13 Thread STINNER Victor
New submission from STINNER Victor : The _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() macros are documented: * https://docs.python.org/dev/c-api/gcsupport.html#c._PyObject_GC_TRACK * https://docs.python.org/dev/c-api/gcsupport.html#c._PyObject_GC_UNTRACK The documentation says "It should no

[issue35081] Move internal headers to Include/internal/

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1a6be91e6fd65ce9cb88c193db7e92ec6076 by Victor Stinner in branch 'master': bpo-35081: Make some _PyGC macros internal (GH-10507) https://github.com/python/cpython/commit/1a6be91e6fd65ce9cb88c193db7e92ec6076 --

[issue35229] Deprecate _PyObject_GC_TRACK() in Python 3.6

2018-11-13 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +9771 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue35229] Deprecate _PyObject_GC_TRACK() in Python 3.6

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: > These macros have been broken in Python 3.7 by Eric Snow's work on moving > internal APIs to Include/internal/ (...) Oh, I forgot to mention that IMHO it's perfectly fine :-) -- ___ Python tracker

[issue35229] Deprecate _PyObject_GC_TRACK() in Python 3.6

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 55b4771d5d18d5ff7c095aa1ab750fe0c8bb5e67 by Victor Stinner in branch '3.7': bpo-35229: Deprecate _PyObject_GC_TRACK() (GH-10511) https://github.com/python/cpython/commit/55b4771d5d18d5ff7c095aa1ab750fe0c8bb5e67 --

[issue35229] Deprecate _PyObject_GC_TRACK() in Python 3.6

2018-11-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +9772 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35230] Remove _Py_REF_DEBUG_COMMA

2018-11-13 Thread INADA Naoki
New submission from INADA Naoki : After 2aaf0c, _Py_REF_DEBUG_COMMA in Include/object.h is used only in dictobject.c. Let's remove it. -- messages: 329833 nosy: inada.naoki priority: normal severity: normal status: open title: Remove _Py_REF_DEBUG_COMMA __

[issue34784] Heap-allocated StructSequences

2018-11-13 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 474eedfb3d1b6fecbd749f36bf4a987cf4a00b44 by Petr Viktorin (Eddie Elizondo) in branch 'master': bpo-34784: Fix PyStructSequence_NewType with heap-allocated StructSequence (GH-9665) https://github.com/python/cpython/commit/474eedfb3d1b6fecbd749f36

[issue35230] Remove _Py_REF_DEBUG_COMMA

2018-11-13 Thread INADA Naoki
INADA Naoki added the comment: I meant 2aaf0c1. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35230] Remove _Py_REF_DEBUG_COMMA

2018-11-13 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +9773 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35229] Deprecate _PyObject_GC_TRACK() in Python 3.6

2018-11-13 Thread miss-islington
miss-islington added the comment: New changeset 60a6baef4005a32fb4cf45e15942ea18e59ecf19 by Miss Islington (bot) in branch '3.6': bpo-35229: Deprecate _PyObject_GC_TRACK() (GH-10511) https://github.com/python/cpython/commit/60a6baef4005a32fb4cf45e15942ea18e59ecf19 -- nosy: +miss-isl

[issue17972] inspect module docs omits many functions

2018-11-13 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: I think this issue should be discussed once more. I am not sure it's worth defining __all__, but then we would have to include them in the docs. If you think __all__ should be defined instead, then I could go through the trouble of doing so. Could a core

[issue17972] inspect module docs omits many functions

2018-11-13 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: ...but then we would have to include them in the docs... should be *but then we would have to include all the public functions in the docs*. -- ___ Python tracker _

[issue33930] Segfault with deep recursion into object().__dir__

2018-11-13 Thread Gus Goulart
Gus Goulart added the comment: ronaldoussoren, I have tested (Debian 9) substituting "_PyObject_GC_UNTRACK(m);" to "PyObject_GC_UnTrack(m);", and although the tests pass, I'm can still see the segfault error. diff --git a/Objects/methodobject.c b/Objects/methodobject.c index cfea8cf410..cb8e

[issue33930] Segfault with deep recursion into object().__dir__

2018-11-13 Thread Gus Goulart
Change by Gus Goulart : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue34033] distutils is not reproducible

2018-11-13 Thread Sascha Silbe
Change by Sascha Silbe : -- nosy: +sascha_silbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29708] support reproducible Python builds

2018-11-13 Thread Sascha Silbe
Change by Sascha Silbe : -- nosy: +sascha_silbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue32170] Contrary to documentation, ZipFile.extract does not extract timestamps or other metadata

2018-11-13 Thread Sascha Silbe
Change by Sascha Silbe : -- nosy: +sascha_silbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue35231] make install may not call ldconfig on posix

2018-11-13 Thread pmpp
New submission from pmpp : observed on ubuntu trusty x64 with release 3.7.1 at least when switching from "m" abi to "dm" abi sometimes libpython is not resolved in /usr/local/lib so maybe add "ldconfig" as a preventive mesure. -- components: Installation messages: 329840 nosy: pmpp pr

[issue35230] Remove _Py_REF_DEBUG_COMMA

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: This change is related to bpo-35059. -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-li

[issue35229] Deprecate _PyObject_GC_TRACK() in Python 3.6

2018-11-13 Thread STINNER Victor
Change by STINNER Victor : -- components: +Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-35230: "Remove _Py_REF_DEBUG_COMMA". -- ___ Python tracker ___ ___ Python-bugs-list

[issue35231] make install may not call ldconfig on GNU/Linux

2018-11-13 Thread pmpp
Change by pmpp : -- title: make install may not call ldconfig on posix -> make install may not call ldconfig on GNU/Linux ___ Python tracker ___ __

[issue35231] make install may not call ldconfig on GNU/Linux when using --enable-shared

2018-11-13 Thread pmpp
Change by pmpp : -- title: make install may not call ldconfig on GNU/Linux -> make install may not call ldconfig on GNU/Linux when using --enable-shared ___ Python tracker ___

[issue29564] ResourceWarning: suggest to enable tracemalloc in the message

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset f966e5397ed8f5c42c185223fc9b4d750a678d02 by Victor Stinner in branch 'master': bpo-29564:_PyMem_DumpTraceback() suggests enabling tracemalloc (GH-10510) https://github.com/python/cpython/commit/f966e5397ed8f5c42c185223fc9b4d750a678d02

[issue29564] ResourceWarning: suggest to enable tracemalloc in the message

2018-11-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +9775 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29564] ResourceWarning: suggest to enable tracemalloc in the message

2018-11-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +9774 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31354] Fixing a bug related to LTO only build

2018-11-13 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: This change exports -flto in cflags. You can check it with python3-config --cflags after this commit. Which means that every c extension which will use those cflags will also utilize -flto which wasn't happening before, thus I'd say it's a regression.

[issue29564] ResourceWarning: suggest to enable tracemalloc in the message

2018-11-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9776 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33196] SEGV in mp.synchronize.Lock.__repr__ in spawn'ed proc if ctx mismatched

2018-11-13 Thread Gus Goulart
Gus Goulart added the comment: I've tested on Fedora 29 server and also failed to reproduce the error. -- Added file: https://bugs.python.org/file47931/testing_on_fedora.png ___ Python tracker __

[issue29564] ResourceWarning: suggest to enable tracemalloc in the message

2018-11-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9777 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33930] Segfault with deep recursion into object().__dir__

2018-11-13 Thread Gus Goulart
Gus Goulart added the comment: Sorry, I forgot to include the trashcan API. I'll double check and update the issue. -- ___ Python tracker ___

[issue35232] Add `module`/`qualname` arguments to make_dataclass for picklability

2018-11-13 Thread Antony Lee
New submission from Antony Lee : Currently, dataclasses created by make_dataclass are not picklable, because their __module__ is set to "types". It seems that this would be easily fixed by letting make_dataclass gain a `module` and a `qualname` kwarg, similarly to the Enum functional form (

[issue29564] ResourceWarning: suggest to enable tracemalloc in the message

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset d57a3e5d03efdda6247c27bd682872edf399d88b by Victor Stinner in branch '3.7': bpo-29564:_PyMem_DumpTraceback() suggests enabling tracemalloc (GH-10510) (GH-10517) https://github.com/python/cpython/commit/d57a3e5d03efdda6247c27bd682872edf399d88b

[issue35233] _PyMainInterpreterConfig_Copy() doesn't copy install_signal_handlers

2018-11-13 Thread STINNER Victor
New submission from STINNER Victor : _PyMainInterpreterConfig_Copy() doesn't copy the install_signal_handlers attribute and so config->install_signal_handlers is always -1. Bug spotted by Francis Hart: https://github.com/python/cpython/pull/10516 Attached PR fix the issue. -- compone

[issue35233] _PyMainInterpreterConfig_Copy() doesn't copy install_signal_handlers

2018-11-13 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +9778 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue29564] ResourceWarning: suggest to enable tracemalloc in the message

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset ae8878176d6dc1878d1e792ac4308ca1920b103b by Victor Stinner in branch '3.6': bpo-29564:_PyMem_DumpTraceback() suggests enabling tracemalloc (GH-10510) (GH-10518) https://github.com/python/cpython/commit/ae8878176d6dc1878d1e792ac4308ca1920b103b

[issue10486] http.server doesn't set all CGI environment variables

2018-11-13 Thread Pierre Quentel
Pierre Quentel added the comment: The QUERY_STRING value is always set by the code at lines 1135-1137 of http.server: for k in ('QUERY_STRING', 'REMOTE_HOST', 'CONTENT_LENGTH', 'HTTP_USER_AGENT', 'HTTP_COOKIE', 'HTTP_REFERER'): env.setdefault(k, "") The RFC for CGI

[issue35234] ssl module falls over with internationalized domain names

2018-11-13 Thread Michael Casadevall
New submission from Michael Casadevall : Test case attached. In Python 3.6, ssl tries to validate the hostname on its own, but fails to convert the SSL certificates hostname from IDNA back to UTF-8 and mismatches. Python 3.7 and master are unaffected since this got fixed by accident when val

[issue35234] ssl module falls over with internationalized domain names

2018-11-13 Thread Christian Heimes
Christian Heimes added the comment: This is a duplicate of #28414. I decided to not fix Python 3.6 because I had to break an existing API to fix the problem. And no, it didn't get fixed by accident. Nathaniel and I poured a lot of time and effort into untangling this mess. The fix is unrelat

[issue35195] [Windows] Python 3.7 initializes LC_CTYPE locale at startup, causing performance issue on msvcrt isdigit()

2018-11-13 Thread Dragoljub
Dragoljub added the comment: On Python 3.7.1 and Windows 10: I attempted locale.setlocale(locale.LC_ALL, "POSIX") --> Errors Out --- Error Traceback (most recent call last) in > 1

[issue35195] [Windows] Python 3.7 initializes LC_CTYPE locale at startup, causing performance issue on msvcrt isdigit()

2018-11-13 Thread Dragoljub
Dragoljub added the comment: This is the default LC_CTYPE locale type I see on Windows10 and Python 3.7.1 vs 3.5.2: Same: 'C' '3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)]' import _locale _locale.setlocale(_locale.LC_CTYPE, None) 'C' '3.5.2 (v3.5.2:4def2a2

[issue35216] misleading error message from shutil.copy()

2018-11-13 Thread Eryk Sun
Eryk Sun added the comment: The EINVAL error in Windows also needs improvement, but I don't what can be done after the fact. If there's a trailing slash when opening or creating a regular file, the NtCreateFile system call returns STATUS_OBJECT_INVALID_NAME. The Windows API maps this to ERRO

[issue35235] Access violation on alloc in Windows x86-64 embeddable python, pymalloc_alloc

2018-11-13 Thread Mark Inderhees
New submission from Mark Inderhees : I'm seeing an AV in python allocation logic when running my scripts. This only happens when using embedded python. It does not reproduce when using installed python. This is on Windows x86-64, I'm running Windows 10. I've seen this on 3.6.5 and 3.7.1. Her

[issue35222] email.utils.formataddr is not exactly the reverse of email.utils.parseaddr

2018-11-13 Thread R. David Murray
R. David Murray added the comment: Because the RFCs are defined only for ascii. Non-ascii in RFC 2822 addresses is an RFC violation. In python2 non-ascii would usually round-trip through these functions, but again that was an accident. If you'd like to propose a doc clarification that woul

[issue35232] Add `module`/`qualname` arguments to make_dataclass for picklability

2018-11-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue35235] Access violation on alloc in Windows x86-64 python, pymalloc_alloc

2018-11-13 Thread Mark Inderhees
Mark Inderhees added the comment: Actually, I have now seen this in full installed python. I have updated the title. -- title: Access violation on alloc in Windows x86-64 embeddable python, pymalloc_alloc -> Access violation on alloc in Windows x86-64 python, pymalloc_alloc ___

[issue35233] _PyMainInterpreterConfig_Copy() doesn't copy install_signal_handlers

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 00b137c72f90fbc39a6cd7e48b37c58d19977180 by Victor Stinner in branch 'master': bpo-35233: Fix _PyMainInterpreterConfig_Copy() (GH-10519) https://github.com/python/cpython/commit/00b137c72f90fbc39a6cd7e48b37c58d19977180 --

[issue35223] Pathlib incorrectly merges strings.

2018-11-13 Thread Eryk Sun
Eryk Sun added the comment: os.path.join and pathlib are working as designed and documented. Similarly in POSIX we have the following: >>> p = os.path.join("/123/345", "/", "folder///filename.bin") >>> print(p) /folder///filename.bin >>> print(os.path.normpath(p)) /folder/

[issue35236] urllib.request.urlopen throws on some valid FTP files

2018-11-13 Thread Ian Liu Rodrigues
New submission from Ian Liu Rodrigues : Some FTP clients will not allow changing to a directory if the path does not ends with a slash. For example, try out this in a public FTP: from ftplib import FTP ftp = FTP('ftp.unicamp.br') ftp.login() ftp.cwd('pub/libreoffice') # throws error ftp.cwd('p

[issue35236] urllib.request.urlopen throws on some valid FTP files

2018-11-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +9779 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue10486] http.server doesn't set all CGI environment variables

2018-11-13 Thread Glenn Linderman
Glenn Linderman added the comment: That's interesting, Pierre, I hadn't really read the RFC carefully, to realize that many of the "missing" variables from Apache are HTTP headers, and that section 4.1.18 tell how to convert HTTP headers to meta variables. The code in server.py 3.6 (Sorry, I

[issue16438] Numeric operator predecence confusing

2018-11-13 Thread Anjali Malik
Change by Anjali Malik : -- pull_requests: +9781 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mail

[issue35237] Allow Path instances in sys.path ?

2018-11-13 Thread Thierry Parmentelat
New submission from Thierry Parmentelat : Hi; this is my first entry in this repo I ran today into a rather frustrating experience, that I'd to avoid it for others as far as possible In a nutshell I had a sphinx stub that read: import sys sys.path.append("..") import mymodule and because

[issue35237] Allow Path instances in sys.path ?

2018-11-13 Thread Ammar Askar
Ammar Askar added the comment: Looks like there's an issue already open for this. -- nosy: +ammar2 resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> add support for path-like objects in sys.path ___ Python tracker

[issue35235] Access violation on alloc in Windows x86-64 python, pymalloc_alloc

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: Try to reproduce your bug using PYTHONMALLOC=debug environment variable: https://pythondev.readthedocs.io/debug_tools.html#memory-debugger On Python 3.7, you can use "py -3.7 -X dev program.py" (-X dev option) to enable PYTHONMALLOC=debug. -- nosy: +

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +9782 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +9783 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 746b2d35ea47005054ed774fecaed64fab803d7d by Gregory P. Smith in branch 'master': bpo-35214: Fix OOB memory access in unicode escape parser (GH-10506) https://github.com/python/cpython/commit/746b2d35ea47005054ed774fecaed64fab803d7d -

[issue35238] Alleviate memory reservation of fork_exec in subprocess.Popen via forkserver

2018-11-13 Thread Oscar Esteban
New submission from Oscar Esteban : ## Context We are developers of nipype (https://github.com/nipype) which is a workflow engine for neuroimaging software. We are experiencing problems that gave rise to the addition of ``os.posix_spawn`` to Python 3.8, and particularly, this - https://bugs.

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I am going to dupe this to 33725 after all. -- resolution: -> duplicate superseder: -> High Sierra hang when using multi-processing ___ Python tracker ___

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-13 Thread miss-islington
miss-islington added the comment: New changeset fdc485a5dff8508328b4f26265d0af1ba5004597 by Miss Islington (bot) in branch '3.6': bpo-35214: Fix OOB memory access in unicode escape parser (GH-10506) https://github.com/python/cpython/commit/fdc485a5dff8508328b4f26265d0af1ba5004597 --

[issue33725] High Sierra hang when using multi-processing

2018-11-13 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue33725] High Sierra hang when using multi-processing

2018-11-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: issue35219 is where I've run into this problem. I'm still trying to figure out all the details in my own case, but I can confirm that setting the environment variable does not always help. -- ___ Python tracker

[issue33725] macOS crashes after fork with no exec

2018-11-13 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- title: High Sierra hang when using multi-processing -> macOS crashes after fork with no exec ___ Python tracker ___

[issue33725] Pytho crashes on macOS after fork with no exec

2018-11-13 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- title: macOS crashes after fork with no exec -> Pytho crashes on macOS after fork with no exec ___ Python tracker ___ __

[issue35233] _PyMainInterpreterConfig_Copy() doesn't copy install_signal_handlers

2018-11-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9784 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35239] _PySys_EndInit() doesn't copy main interpreter configuration

2018-11-13 Thread STINNER Victor
New submission from STINNER Victor : Extract of _PySys_EndInit(): SET_SYS_FROM_STRING_BORROW("path", config->module_search_path); sys.path is initialized from _PyMainInterpreterConfig.module_search_path object: the list of strings is not copied. As a consequence, when sys.path is modified, _

[issue35233] _PyMainInterpreterConfig_Copy() doesn't copy install_signal_handlers

2018-11-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7ddd56f4d835c6107b20a0b4233185bb59270142 by Victor Stinner in branch 'master': bpo-35233: Rewrite test_embed.InitConfigTests (GH-10524) https://github.com/python/cpython/commit/7ddd56f4d835c6107b20a0b4233185bb59270142 -- _

[issue16438] Numeric operator predecence confusing

2018-11-13 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: I'm actually thinking perhaps the "see :ref:`operator-summary`" clause should be separate and under Notes below the table, as opposed to current PR: ``` All numeric types (except complex) support the following operations (for priorities of the operations, s

[issue35233] _PyMainInterpreterConfig_Copy() doesn't copy install_signal_handlers

2018-11-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9785 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35239] _PySys_EndInit() doesn't copy main interpreter configuration

2018-11-13 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +9786 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-13 Thread miss-islington
miss-islington added the comment: New changeset 9fbcb1402efab4e287f25145a69ba14c9c6dbce9 by Miss Islington (bot) in branch '3.7': [3.7] bpo-35214: Fix OOB memory access in unicode escape parser (GH-10506) (GH-10522) https://github.com/python/cpython/commit/9fbcb1402efab4e287f25145a69ba14c9c6

  1   2   >