[issue33052] Sporadic segmentation fault in test_datetime

2018-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Related discussion with same segfault in Travis CI : issue33701 -- ___ Python tracker ___ _

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

2018-11-12 Thread miss-islington
miss-islington added the comment: New changeset 60cf26528b931215160a53fd61836dbe4f036009 by Miss Islington (bot) in branch '3.6': bpo-35214: Add _Py_ prefix to MEMORY_SANITIZER def. (GH-10503) https://github.com/python/cpython/commit/60cf26528b931215160a53fd61836dbe4f036009 --

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

2018-11-12 Thread miss-islington
miss-islington added the comment: New changeset f6602f92664b782125a1ec5009706f9300fe7e80 by Miss Islington (bot) in branch '3.7': bpo-35214: Add _Py_ prefix to MEMORY_SANITIZER def. (GH-10503) https://github.com/python/cpython/commit/f6602f92664b782125a1ec5009706f9300fe7e80 -- nosy:

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

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

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

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 3015fb8ce4d25603434b9b44bb7effb98a481532 by Gregory P. Smith in branch 'master': bpo-35214: Add _Py_ prefix to MEMORY_SANITIZER def. (GH-10503) https://github.com/python/cpython/commit/3015fb8ce4d25603434b9b44bb7effb98a481532 -- ___

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

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

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

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: > Can we prefix MEMORY_SANITIZER with _Py_? Yes, I wondered if I should do that. not that I expect anyone would ever define it to mean anything else, but that seems like the right thing to do. https://github.com/python/cpython/pull/10503 -- ___

[issue35224] PEP 572: Assignment Expressions

2018-11-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

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

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

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

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: yeah, i've been surprised how far i was able to get from an oss CPython tree and pre-built clang 7 binary installation. If you have headers installed for common libraries like libssl-dev and libreadline-dev you can't produce an interpreter that'll work as

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

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

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

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

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

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks @alex! I will try again after linking against ASAN-compiled version of my libraries. -- ___ Python tracker ___ ___

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

2018-11-12 Thread Alex Gaynor
Alex Gaynor added the comment: All libraries that are linked against, including libc, need to be compiled with MSAN. MSAN is not for the faint of heart. -- ___ Python tracker ___

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

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I cannot initialize the interpreter after compiling with --with-memory-sanitizer: ❯ CC=clang ./configure --with-memory-sanitizer && make -j ❯ ./python Python 3.8.0a0 (heads/master:1584a00815, Nov 13 2018, 03:29:18) [Clang 7.0.0 (tags/RELEASE_700/final)

[issue33944] Deprecate and remove pth files

2018-11-12 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > I’m a little concerned about this approach because it means random third > party modules can affect the global environment for your application, without > knowing it. Since the hook installation happens at import time, and just > depending on a library that

[issue35221] Enhance venv activate commands readability

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue31541] Mock called_with does not ensure self/cls argument is used

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Will -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue31541] Mock called_with does not ensure self/cls argument is used

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg329801 ___ Python tracker ___ ___ Python-bugs-list

[issue31541] Mock called_with does not ensure self/cls argument is used

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I agree with Karthikeyan: This is is the expected behaviour. The moment you use a mock, any implementation details are lost unless you use wraps or similar to also transfer the call to the/a real object. -- nosy: +pablogsal __

[issue35215] Replacing CPython memory allocation

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > The point of this 'issue' is to ask the community to suggest how i can go > about finding where the problem is. As I said, there is a lot of code :) Sadly, this tracker is to track bugs related to CPython. Modifying the interpreter to change the mem

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

2018-11-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: Can we prefix MEMORY_SANITIZER with _Py_? -- nosy: +benjamin.peterson ___ Python tracker ___ _

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

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

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

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

[issue35225] test_faulthandler fails under ubsan

2018-11-12 Thread Benjamin Peterson
New submission from Benjamin Peterson : The UBsan buildbot is failing test_faulthandler. We should either spread some __attribute__((no_sanitize_undefined)) around or make the tests skip. == FAIL: test_enable_fd (test.test_fau

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

2018-11-12 Thread Alex Gaynor
Change by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Nope, actually double fork doesn't work. It's misleading because in my testing, the first invocation of the process causes the core dump, but subsequent runs do not. -- ___ Python tracker

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm still testing this solution, but it looks like if you set the environment variable, and then double fork, the granchild won't crash. Roughly: os.putenv('OBJC_DISABLE_INITIALIZE_FORK_SAFETY', 'YES') pid = os.fork() if pid == 0: subpid = os.fork()

[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-12 Thread Windson Yang
Windson Yang added the comment: I will work on it today :D -- nosy: +Windson Yang ___ Python tracker ___ ___ Python-bugs-list maili

[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-12 Thread Christoph Gohlke
Christoph Gohlke added the comment: > test_isdigit.c: Can you try to call locale.setlocale(locale.LC_CTYPE, "") > before running your benchmark on Python 3.7.0? Yes, that slows down Python 3.7.0a3 to the 3.7.0a4 level. -- ___ 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-12 Thread STINNER Victor
STINNER Victor added the comment: > This issue may be related to bpo-34485. I'm thinking to: New changeset 177d921c8c03d30daa32994362023f777624b10d by Victor Stinner in branch 'master': bpo-34485, Windows: LC_CTYPE set to user preference (GH-8988) https://github.com/python/cpython/commit/177

[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-12 Thread STINNER Victor
STINNER Victor added the comment: test_isdigit.c: Can you try to call locale.setlocale(locale.LC_CTYPE, "") before running your benchmark on Python 3.7.0? This issue may be related to bpo-34485. -- ___ 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-12 Thread Christoph Gohlke
Christoph Gohlke added the comment: I attached a minimal C extension module that can be used to demonstrate the performance degradation from Python 3.7.0a3 to 3.7.0a4. Build the extension with `py setup.py build_ext --inplace`, then run the following code on Python 3.7.0a3 to 3.7.0a4: ``` i

[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-12 Thread STINNER Victor
STINNER Victor added the comment: > digits = ''.join([str(i) for i in range(10)]*1000) > %timeit digits.isdigit() # --> 2X+ slower on python 3.7.1 This code calls: * (Python) str.isdigit() * unicode_isdigit_impl() * _PyUnicode_IsDigit() * _PyUnicode_ToDigit() which uses Python internal Un

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

2018-11-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2c07c493d2eb45101312e3eb3a77f94d0c9cad1f by Victor Stinner in branch 'master': bpo-29564: warnings suggests to enable tracemalloc (GH-10486) https://github.com/python/cpython/commit/2c07c493d2eb45101312e3eb3a77f94d0c9cad1f --

[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-12 Thread Dragoljub
Dragoljub added the comment: Here is a simple pure python example: digits = ''.join([str(i) for i in range(10)]*1000) %timeit digits.isdigit() # --> 2X+ slower on python 3.7.1 Basically in Pandas C-code parser we call the isdigit() function for each number that is to be parsed. so 12345.

[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-12 Thread Christoph Gohlke
Change by Christoph Gohlke : Added file: https://bugs.python.org/file47929/setup.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[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-12 Thread Christoph Gohlke
Change by Christoph Gohlke : Added file: https://bugs.python.org/file47928/test_isdigit.c ___ Python tracker ___ ___ Python-bugs-list mailin

[issue35224] PEP 572: Assignment Expressions

2018-11-12 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[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-12 Thread Christoph Gohlke
Christoph Gohlke added the comment: > Can someone please try to write an example which only uses the stdlib? The simplest is to compare performance of the `windll.LoadLibrary('API-MS-WIN-CRT-STRING-L1-1-0.DLL')` function on Python 3.7.0a3 and 3.7.0a4, but that will mostly measure Python/ctyp

[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

2018-11-12 Thread miss-islington
miss-islington added the comment: New changeset 3f9fe53c98978955fea4e36456c784694e6458a8 by Miss Islington (bot) in branch '3.7': bpo-35031: Fix test_start_tls_server_1 on FreeBSD buildbots (GH-10011) https://github.com/python/cpython/commit/3f9fe53c98978955fea4e36456c784694e6458a8

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Based on my testing, the environment variable has to be set before the parent process starts. Neither os.environ nor os.putenv seem to do the trick. -- ___ Python tracker ___

[issue35224] PEP 572: Assignment Expressions

2018-11-12 Thread Emily Morehouse
Change by Emily Morehouse : -- keywords: +patch pull_requests: +9758 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35224] PEP 572: Assignment Expressions

2018-11-12 Thread Emily Morehouse
Change by Emily Morehouse : -- keywords: +patch, patch pull_requests: +9758, 9759 stage: -> patch review ___ Python tracker ___ ___

[issue35223] Pathlib incorrectly merges strings.

2018-11-12 Thread Roffild
Roffild added the comment: It is necessary to assemble a single path from several lines depending on the OS. It is logical to expect behavior in Java. https://docs.oracle.com/javase/8/docs/api/java/nio/file/Paths.html Converts a path string, or a sequence of strings that when joined form a pa

[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

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

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

2018-11-12 Thread skreft
skreft added the comment: @r.david.murray where do you see that those functions are only defined for ascii? There's nothing in the online docs stating that and furthermore `formataddr` has supported non-ascii names since version 3.3. RFC 2822 is however mentioned in the docstrings. The fact

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -9755 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -9756 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +9754, 9755 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +9754, 9755, 9756 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue32492] C Fast path for namedtuple's property/itemgetter pair

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

[issue35224] PEP 572: Assignment Expressions

2018-11-12 Thread Emily Morehouse
New submission from Emily Morehouse : This issue will serve to track development and PRs for the implementation of PEP 572: Assignment Expressions. -- assignee: emilyemorehouse components: Interpreter Core messages: 329781 nosy: emilyemorehouse, gvanrossum, tim.peters priority: normal

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I've done a fair bit of testing and it seems rather inconsistent as to whether either of these work when added right before an explicit call to `os.fork()`: os.environ['OBJC_DISABLE_INITIALIZE_FORK_SAFETY'] = 'YES' ctyles.cdll.LoadLibrary('/System/Library/F

[issue35223] Pathlib incorrectly merges strings.

2018-11-12 Thread Eric V. Smith
Eric V. Smith added the comment: As far as which path components are returned, I think this is working as designed. The documentation for os.path.join says: """ If a component is an absolute path, all previous components are thrown away and joining continues from the absolute path component.

[issue35215] Replacing CPython memory allocation

2018-11-12 Thread paul
paul added the comment: Hi guys, First, thanks for the prompt replies. @matrixise: If there is i can't find it, but i am happy to accept it as a possibility. Equally, maybe there is an assumption about memory in the cpython implementation somewhere that goes against my memory allocator ->

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

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 3b5b1c0931cd32253bbf2f3bd74e90ff821e026e by Gregory P. Smith in branch '3.6': [3.6] bpo-35214: Initial clang MemorySanitizer support (GH-10479) (GH-10493) https://github.com/python/cpython/commit/3b5b1c0931cd32253bbf2f3bd74e90ff821e026e

[issue35223] Pathlib incorrectly merges strings.

2018-11-12 Thread Roffild
New submission from Roffild : Code: import os print(os.path.join("C:/123\\345", "\\", "folder///filename.bin")) import pathlib print(pathlib.PureWindowsPath("C:/123\\345", "\\", "folder///filename.bin")) Result: C:\folder///filename.bin C:\folder\filename.bin Expected result for Windows: C:\12

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

2018-11-12 Thread R. David Murray
R. David Murray added the comment: Thanks for the report, but parseaddr and formataddr are defined *only* for ASCII. In the port to python3, parseaddr sort-of-maybe-sometimes does the naively expected thing with non-ascii, but that's just an accident. We could have added a check for non-asc

[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: it still seems relevant, having better docs is always good. -- ___ Python tracker ___ ___ Pytho

[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-12 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: It's been more than 3 years, since this was opened, but I will ask nevertheless. Should a PR maybe made for this issue? -- nosy: +lys.nikolaou ___ Python tracker __

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

2018-11-12 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: This is indeed an issue with formataddr, it expects the input to be ascii encoded as RFC 2822 requires. Email is much more complicated though and has been internationalized, a summary of this work is available at https://en.wikipedia.org/wiki/Email_address#Int

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

2018-11-12 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: AUTH_TYPE, CONTENT_LENGTH, CONTENT_TYPE, REMOTE_USER are present REMOTE_IDENT is not but I'm not sure it's worth adding. I can send a PR to add REMOTE_HOST and remove the condition for QUERY_STRING. Otherwise, I don't think the other environment variables shoul

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

2018-11-12 Thread Oscar Esteban
Oscar Esteban added the comment: I tried to reuse as much as I could from the patch, but it didn't solve the issue at first. I have changed the responsibility of identifying and prescribing a solution when a worker got killed. In the proposed patch, the thread handling results (i.e. tasks q

[issue35221] Enhance venv activate commands readability

2018-11-12 Thread Lisa Roach
Lisa Roach added the comment: Using plain angle brackets is common placeholder notation, and I think changing it to something different might be confusing to those who are familiar with the pattern. I have also seen plenty of people copying and pasting the wrong things because of this notati

[issue35221] Enhance venv activate commands readability

2018-11-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: https://docs.python.org/3/library/venv.html > my students are often confused by it, sometimes they copy the angle brackets, > sometime even the prompt. Learning to recognise placeholders and the prompt is an essential part of learning to code, and a stage

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

2018-11-12 Thread skreft
New submission from skreft : The docs (https://docs.python.org/3/library/email.util.html#email.utils.formataddr) say that formataddr is the inverse of parseaddr, however non-ascii email addresses are treated differently in both methods. parseaddr will return non-ascci addresses, whereas forma

[issue33944] Deprecate and remove pth files

2018-11-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 10, 2018, at 04:50, Ivan Pozdeev wrote: > In its .pth file, each such package will import the hook's module (which will > cause the hook to be installed on the first import) and "register" its > namespaces and/or dependencies with it. The hook will t

[issue23930] http.cookies.SimpleCookie doesn't parse comma-only separated cookies correctly

2018-11-12 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +9752 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

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

2018-11-12 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: The reference given in https://github.com/python/cpython/blob/b36b0a3765bcacb4dcdbf12060e9e99711855da8/Lib/http/server.py#L1074 is not accessible anymore. I think we should replace it by https://tools.ietf.org/html/rfc3875#section-4.1 -- _

[issue35221] Enhance venv activate commands readability

2018-11-12 Thread Julien Palard
Julien Palard added the comment: Forgot to mention, the bold and italics one were done using unicode mathematical characters, they are not properly rendered in PDFs so we can't use them as is: https://mdk.fr/pdf.png -- ___ Python tracker

[issue35221] Enhance venv activate commands readability

2018-11-12 Thread Julien Palard
New submission from Julien Palard : I'd like to enhance the readability of the "venv activation commands" in library/venv.html, my students are often confused by it, sometimes they copy the angle brackets, sometime even the prompt. I don't think we can fix everything, but maybe enhance a bit,

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

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

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

2018-11-12 Thread Julien Palard
Julien Palard added the comment: Using `cp` on Debian Buster I'm having a better error message: $ touch foo $ cp foo bar/ cp: failed to access 'bar/': Not a directory >From copy.c (from Debian coreutils): /* Improve quality of diagnostic when a nonexistent dst_name end

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm not sure whether it's a duplicate or not, since in my case it doesn't hang, but instead core dumps. It's seems like the reasoning given in the Ruby bug is relevant to Python too, so maybe we should adopt the same workaround. For our internal projects,

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

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 5f4d05d83fde05fed0b6554d0beee4f1c1f1d8f1 by Gregory P. Smith in branch '3.7': [3.7] bpo-35214: Initial clang MemorySanitizer support (GH-10479) (GH-10492) https://github.com/python/cpython/commit/5f4d05d83fde05fed0b6554d0beee4f1c1f1d8f1

[issue33725] High Sierra hang when using multi-processing

2018-11-12 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This can a duplicate of https://bugs.python.org/issue33725 -- ___ Python tracker ___ ___ P

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Apparently, GitLab have a more permanent solution around this by enabling the Objective-C runtime before any forking happens: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16649/diffs -- ___ Pytho

[issue35215] Replacing CPython memory allocation

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Hi @paul, have you already checked https://docs.python.org/3/c-api/memory.html#customize-memory-allocators ? -- ___ Python tracker _

[issue35215] Replacing CPython memory allocation

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg329755 ___ Python tracker ___ ___ Python-bugs-list

[issue35215] Replacing CPython memory allocation

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Hi @paul, have you already checked https://docs.python.org/3/c-api/memory.html#customize-memory-allocators? -- nosy: +pablogsal ___ Python tracker _

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 12, 2018, at 13:34, Pablo Galindo Salgado wrote: > Apparently setting the env variable OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES > should fix some fork-related changes. Have you tried already doing this? Does > it change the behaviour of the errors in

[issue35207] Disallow expressions like (a) = 42

2018-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Apparently setting the env variable OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES should fix some fork-related changes. Have you tried already doing this? Does it change the behaviour of the errors in any way? -- nosy: +pablogsal __

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: That should of course be 10.14 Mojave. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue35219] macOS 10.14 Mojave crashes in multiprocessing

2018-11-12 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- title: macOS 10.14 High Sierra crashes in multiprocessing -> macOS 10.14 Mojave crashes in multiprocessing ___ Python tracker ___ __

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

2018-11-12 Thread keeely
Change by keeely : -- title: Impossible to round-trip decompress -> compress zipfiles with Python 3 due to losing flag_bits -> decompressing and then re-compressing zipfiles with Python 3 zipfile loses flag_bits ___ Python tracker

[issue35220] delete "how do I emulate os.kill" section in Windows FAQ

2018-11-12 Thread Mathieu Dupuy
New submission from Mathieu Dupuy : That section is a tip on how to kill process on Windows for Python prior to 2.7 and 3.2. 3.1 end of support was April 2012 and 2.6 was October 2013, so that hasn't been needed for supported versions of Python for more than 5 years. Beside not being needed a

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

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

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

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 1584a0081500d35dc93ff88e5836df35faf3e3e2 by Gregory P. Smith in branch 'master': bpo-35214: Initial clang MemorySanitizer support (GH-10479) https://github.com/python/cpython/commit/1584a0081500d35dc93ff88e5836df35faf3e3e2 -- __

[issue22543] -W option cannot use non-standard categories

2018-11-12 Thread Dmitry Shachnev
Change by Dmitry Shachnev : -- nosy: +mitya57 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue35213] IDLE: use 'macOS' where appropriate.

2018-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 4th line above should include 'macOS'. 10.14 to current 10.16: macOS (2016) -- ___ Python tracker ___ __

[issue35213] IDLE: use 'macOS' where appropriate.

2018-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The history of names for 10.X, from the reference above (which also has nicknames, like 'Mavericks' and 'Mohave', which I believe we do not use). 10.0 to 10.7: Mac OS X (space or spaces sometime left out, as in macosx) 10.8 to 10.13: OS X (2012, ditto) 10.14

[issue35219] macOS 10.14 High Sierra crashes in multiprocessing

2018-11-12 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : As we're beginning to roll out macOS 10.14 High Sierra, we're seeing an increase in core files inside /cores. This can consume a ton of disk space if you have coredumps enabled. I don't have a short reproducer yet, but we believe this is related to chan

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2018-11-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2018-11-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 74387926072abf338a4c1cec1bf0501fc65bbee5 by Andrew Svetlov in branch 'master': bpo-30064: Refactor sock_* asyncio API (#10419) https://github.com/python/cpython/commit/74387926072abf338a4c1cec1bf0501fc65bbee5 -- __

[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-12 Thread STINNER Victor
STINNER Victor added the comment: Can someone please try to write an example which only uses the stdlib? > The culprit is the isdigit function called in the parsers extension module. What are these extensions? Where do them come from? > Any way you can help test out a config setting to avoid

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

2018-11-12 Thread STINNER Victor
STINNER Victor added the comment: Example: --- import warnings import tracemalloc #tracemalloc.start(5) # always log ResourceWarning messages warnings.simplefilter("always", ResourceWarning) def func(): f = open(__file__) # emit ResourceWarning f = None func() --- Output with Pyt

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

2018-11-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +9748 stage: test needed -> patch review ___ Python tracker ___ ___ Py

  1   2   >