[issue36139] release GIL on mmap dealloc

2019-02-28 Thread Inada Naoki
Inada Naoki added the comment: Your patch is modifying obmalloc. It uses MAP_PRIVATE|MAP_ANONYMOUS mmap. Does it really take log time? How? #1572968 is different. It is mmap module. It can use file-backed mmap. It is I/O. -- nosy: +inada.naoki ___

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +12099 stage: -> patch review ___ Python tracker ___ ___ Python-bu

[issue13850] Summary tables for argparse add_argument options

2019-02-28 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi @Raymond, Yep, I understand about the "look", I have seen the result after the build of the doc but the patch was like that and I did not want to change the initial patch. Would you suggest one layout and I could update the PR with your recommendations

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attached a draft PR for discussion purposes. Let me know what you think (I'm not wedded to any part of it). -- ___ Python tracker ___ __

[issue36144] Dictionary addition.

2019-02-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: > In Python, the plus operator for sequences (strings, lists, > tuples) is non-commutative. For sequences, that is obvious and expected, but not so much with mappings where the order of overlapping keys is determined by the left operand and the value ass

[issue36139] release GIL on mmap dealloc

2019-02-28 Thread Inada Naoki
Inada Naoki added the comment: Sorry, I messed up. Your PR is changing mmap module, not obmalloc. -- ___ Python tracker ___ ___ Py

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-02-28 Thread muhzi
muhzi added the comment: Well, it solves the problem with the configure script. My pyconfig.h.in contains: /* Define to 1 if you have the header file. */ #undef HAVE_PTHREAD_H /* Define to 1 if you have the `pthread_init' function. */ #undef HAVE_PTHREAD_INIT /* Define to 1 if you have th

[issue36139] release GIL on mmap dealloc

2019-02-28 Thread Davide Rizzo
Davide Rizzo added the comment: Yes, this is mmap module. I found this to be slow for posix-shm-backed mmaps. Several milliseconds, like 20ms for a 128 MB object. Maybe the same can happen with private|anon mmaps? I will follow up with more numbers. -- __

[issue36144] Dictionary addition.

2019-02-28 Thread Stefan Behnel
Stefan Behnel added the comment: > We already have a syntax for dict merging: {**d1, **d2}. Which doesn't mean that "d1 + d2" isn't much more intuitive than this special-character heavy version. It takes me a while to see the dict merge under that heap of stars. And that's already the short

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-02-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > The problem extends after the configuration. It's as if the android headers > are not visible to configure. All the macros are undefined in the pyconfig > file too btw. pyconfig.h is generated by configure from pyconfig.h.in. Please attach the new output

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-02-28 Thread muhzi
muhzi added the comment: OK! NDK version is 19.1.5304403 Cool, so I uploaded the output of configure (attachments) Sorry for the confusion about pyconfig.h, what I was trying to say is after providing ac_cv_pthread_is_default=yes to configure I get errors in make: Python/pytime.c:911:9: err

[issue36144] Dictionary addition.

2019-02-28 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30235] Validate shutil supports path-like objects, update docs accordingly

2019-02-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: One thing to note is the copy_function parameter: if a path-like object is given as input should the copy_function receive the same object instead of a path string? >>> copytree(path_like_src, path_like_dst, copy_function=foo) Because of issue33695 in

[issue36137] SSL verification fails for some sites inside windows docker container

2019-02-28 Thread Christian Heimes
Christian Heimes added the comment: Err, I meant #36011 The enum cert store trick only breaks on a fresh installation. If you have used Windows for a bit (e.g. downloaded Firefox with Edge *g*), the root CA store is filled with common CA certs. Your certutil trick also works, as it triggers

[issue31652] make install fails: no module _ctypes

2019-02-28 Thread Thrlwiti
Change by Thrlwiti : -- nosy: +THRlWiTi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-02-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is a different problem. Please create a new issue and attach pyconfig.h. -- ___ Python tracker ___ _

[issue29571] test_re is failing when local is set for `en_IN`

2019-02-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Similar issue reported on debian9.8 stretch with python 3.7.2 and en_IN : issue36134 -- nosy: +xtreak ___ Python tracker ___ _

[issue36139] release GIL on mmap dealloc

2019-02-28 Thread Davide Rizzo
Davide Rizzo added the comment: munmap() of private maps is usually pretty fast but not negligible (2 ms for 1GB). Shared maps are much slower. For some reason, shared maps explicitly backed by POSIX shared memory stand in between but are still pretty slow. If someone cares about file-backed

[issue29397] linux/random.h present but cannot be compiled

2019-02-28 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue36145] android arm cross compilation fails, h

2019-02-28 Thread muhzi
New submission from muhzi : This is a follow up of #36141, I'm trying to build python for android armv7a. The problem was the configure script fails to find pthread_create in the android headers. Now after getting past the configuration, I get a build error: armv7a-linux-androideabi16-clang -c

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread muhzi
Change by muhzi : -- title: android arm cross compilation fails, h -> android arm cross compilation fails, config issue ___ Python tracker ___

[issue36139] release GIL on mmap dealloc

2019-02-28 Thread Christian Heimes
Christian Heimes added the comment: The change sounds like a good idea and should be backported, too. IIRC mmap() performance also depends on MMU and TLB speed. In the past I have seen paravirtualized systems with poor MMU performance that caused fork() to be slow and Redis to hang. ---

[issue29397] linux/random.h present but cannot be compiled

2019-02-28 Thread Christian Heimes
Christian Heimes added the comment: It's a CentOS 5 system with Kernel 2.6.18. The getrandom() syscall was added in Linux Kernel version 3.17. Your OS simply lacks the necessary feature to use linux/random.h. Python will automatically fall back to /dev/urandom. -- nosy: +christian.he

[issue35975] Put back the ability to parse files where async/await aren't keywords

2019-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would not be simpler to just drop the support of Python versions <3.7 in new MyPy versions? -- nosy: +serhiy.storchaka ___ Python tracker

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: There is a bug in the implementation of pymonotonic() in Python/pytime.c: The call to pytime_fromtimespec() is not encapsulated by an #ifdef HAVE_CLOCK_GETTIME. @muhzi It seems that your pyconfig.h is generated with configure failing to find the NDK hea

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread Xavier de Gaye
Change by Xavier de Gaye : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue36134] test failure : test_re; recipe for target 'test' failed

2019-02-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> test_re is failing when local is set for `en_IN` ___ Python tracker ___

[issue31652] make install fails: no module _ctypes

2019-02-28 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread muhzi
muhzi added the comment: Yes, pretty much so, which I think was what caused the pthread problem. Why would it fail to find the headers? -- ___ Python tracker ___

[issue36126] Reference count leakage in structseq_repr

2019-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 69b4a17f342146d6b7a73975a37678db9916aa75 by Serhiy Storchaka (Gao, Xiang) in branch '2.7': bpo-36126: Fix ref count leakage in structseq_repr. (GH-12035) https://github.com/python/cpython/commit/69b4a17f342146d6b7a73975a37678db9916aa75 -

[issue36126] Reference count leakage in structseq_repr

2019-02-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed type: behavior -> resource usage ___ Python tracker ___ ___

[issue23794] http package should support HTTP/2

2019-02-28 Thread Ludovic Gasc
Change by Ludovic Gasc : -- nosy: -Ludovic.Gasc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue36143] Auto-generate Lib/keyword.py

2019-02-28 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I am working on this. Shouldn't there be a PR by tomorrow from me. Someone else can take it on. -- nosy: +nanjekyejoannah ___ Python tracker _

[issue36143] Auto-generate Lib/keyword.py

2019-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do not haste with this. After implementing pgen in Python, Lib/keyword.py can be generated directly by pgen. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: Obviously because you do not tell clang where to find those headers. -- ___ Python tracker ___ __

[issue36143] Auto-generate Lib/keyword.py

2019-02-28 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Noted. Releasing this in favor of when pgen is implemented in Python to solve this. -- ___ Python tracker ___

[issue36143] Auto-generate Lib/keyword.py

2019-02-28 Thread Guido van Rossum
Guido van Rossum added the comment: A similar thing seems to be the list of keywords in Lib/pydoc.py. The recipe says # CAUTION: if you change one of these dictionaries, be sure to adapt the # list of needed labels in Doc/tools/extensions/pyspecific.py and # rege

[issue36146] Refactor setup.py

2019-02-28 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12100 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36146] Refactor setup.py

2019-02-28 Thread STINNER Victor
New submission from STINNER Victor : The detect_modules() method of setup.py became longer and longer over the years. It is now 1128 lines long. It's way too long: it becomes very hard to track the lifetime of a variable and many variables are overriden on purpose or not. Shorter functions help

[issue36143] Auto-generate Lib/keyword.py

2019-02-28 Thread Guido van Rossum
Guido van Rossum added the comment: (However that doesn't seem to work. Anyway, there's a list of all keywords there.) -- ___ Python tracker ___ _

[issue36146] Refactor setup.py

2019-02-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12101 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36143] Auto-generate Lib/keyword.py

2019-02-28 Thread Guido van Rossum
Guido van Rossum added the comment: Hum, it seems the right solution was to arrange for async and await to appear in the list of keywords despite their special status. Nevertheless in theory there's something that can be done here to auto-regenerate the list derived from the Grammar. --

[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2019-02-28 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @dmzz, You can convert the patch into a PR on github or Open a PR with your own implementation. If working with this same patch, the next step would be to test the patch if it is still in good shape now before opening a PR. -- nosy: +nanjekyejoann

[issue36143] Auto-generate Lib/keyword.py

2019-02-28 Thread STINNER Victor
STINNER Victor added the comment: > Do not haste with this. After implementing pgen in Python, Lib/keyword.py can > be generated directly by pgen. That's bpo-35808 and PR 11814 which is under review. Anyway, at the end, it would be nice if Lib/keyword.py would be regenerated by "make regen-

[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2019-02-28 Thread Francisco Couzo
Francisco Couzo added the comment: I'm preparing the PR myself -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue34631] Upgrade to OpenSSL 1.1.1b

2019-02-28 Thread Christian Heimes
Christian Heimes added the comment: Hi macOS and Windows devs, as I explained in https://mail.python.org/pipermail/python-dev/2019-February/156470.html we need to update Python 3.7 to OpenSSL 1.1.1 eventually. 1.1.0 will reach EOL in September. -- components: +Windows, macOS nosy:

[issue34631] Upgrade to OpenSSL 1.1.1b

2019-02-28 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +12102 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue36144] Dictionary addition.

2019-02-28 Thread Josh Rosenberg
Josh Rosenberg added the comment: scoder: dict(X, **M) is broken unless M is known to be string keyed (it used to work, but in Python 3, it will raise a TypeError). It's part of the argument for the additional unpacking generalizations from PEP 448; {**X, **M} does what dict(X, **M) is tryin

[issue36144] Dictionary addition.

2019-02-28 Thread Guido van Rossum
Guido van Rossum added the comment: I changed my mind and am now in favor. Most of the arguments against could also be used against list+list. Counter addition is actually a nice special case of this -- it produces the same keys but has a more sophisticated way of merging values for common k

[issue36144] Dictionary addition.

2019-02-28 Thread Josh Rosenberg
Josh Rosenberg added the comment: Also note: That Python ideas thread that xtreak linked ( https://mail.python.org/pipermail/python-ideas/2015-February/031748.html ) largely rejected the proposal a couple weeks before PEP 448 was approved. At the time, the proposal wasn't just about +/+=; th

[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2019-02-28 Thread Dusan Gligoric
Dusan Gligoric <7...@protonmail.com> added the comment: Hey folks, This is still an issue with 3.7.2 === # Python 3.7.2 (default, Jan 10 2019, 23:51:51) # [GCC 8.2.1 20181127] on linux from multiprocessing import Manager manager = Manager() d =

[issue36146] Refactor setup.py

2019-02-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4cbea518a0827d23a41a45b03a8af729c2f16605 by Victor Stinner in branch 'master': bpo-36146: Refactor setup.py (GH-12093) https://github.com/python/cpython/commit/4cbea518a0827d23a41a45b03a8af729c2f16605 -- __

[issue36018] Add a Normal Distribution class to the statistics module

2019-02-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +12103 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue36146] Refactor setup.py

2019-02-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12104 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36146] Refactor setup.py

2019-02-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12105 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36018] Add a Normal Distribution class to the statistics module

2019-02-28 Thread miss-islington
miss-islington added the comment: New changeset ef17fdbc1c274dc84c2f611c40449ab84824607e by Miss Islington (bot) (Raymond Hettinger) in branch 'master': bpo-36018: Add special value tests and make minor tweaks to the docs (GH-12096) https://github.com/python/cpython/commit/ef17fdbc1c274dc84c2

[issue33944] Deprecate and remove pth files

2019-02-28 Thread Steve Dower
Steve Dower added the comment: > But think of the poor user who doesn’t have that expertise or ability to hack > on an installed Python’s site.py file. This is actually part of the thinking behind the reportabug tool I started (and why when you format it as raw text you get the listing of eve

[issue36144] Dictionary addition.

2019-02-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Current python-ideas thread for the issue : https://mail.python.org/pipermail/python-ideas/2019-February/055509.html -- ___ Python tracker ___

[issue29571] test_re is failing when local is set for `en_IN`

2019-02-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12106 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29571] test_re is failing when local is set for `en_IN`

2019-02-28 Thread STINNER Victor
STINNER Victor added the comment: Ah, I can reproduce the bug on Fedora 29 using "LANG=en_IN ./python -m test -v test_re". The problem is that locale.getlocale() is not reliable: it pretends that the locale encoding is ISO8859-1, whereas the real encoding is UTF-8: $ LANG=en_IN ./python Py

[issue33944] Deprecate and remove pth files

2019-02-28 Thread Anthony Sottile
Anthony Sottile added the comment: > contain features we all want to get rid of I don't think even this is unanimous. Things like registering codecs, instrumenting coverage in subprocesses, etc. all seem like legitimate uses of the arbitrary code execution feature -- _

[issue36131] test.test_urllib2net.TimeoutTest ftp related tests fail due to ftp://www.pythontest.net/ being unavailable

2019-02-28 Thread STINNER Victor
STINNER Victor added the comment: I discussed with Ernest on #python-infra. It was an issue with the DNS "resolving the host back to 127.0.1.1 (...) so vsftpd is telling users to connect back to themselves". -- resolution: -> fixed stage: -> resolved status: open -> closed ___

[issue13096] ctypes: segfault with large POINTER type names

2019-02-28 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +12107 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue13096] ctypes: segfault with large POINTER type names

2019-02-28 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: It seems the python2 backport was incomplete as a PyMem_Free is missing, making buf leak. -- nosy: +cstratak ___ Python tracker ___ _

[issue13096] ctypes: segfault with large POINTER type names

2019-02-28 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue36147] [2.7] Coverity scan: Modules/_ctypes/cfield.c , Variable "result" going out of scope

2019-02-28 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Coverity scan on python2 resulted in this error. Python-2.7.15/Modules/_ctypes/cfield.c:1297: alloc_fn: Storage is returned from allocation function "PyString_FromString". Python-2.7.15/Objects/stringobject.c:143:5: alloc_fn: Storage is returned from

[issue33944] Deprecate and remove pth files

2019-02-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 28, 2019, at 09:40, Anthony Sottile wrote: > > I don't think even this is unanimous. Things like registering codecs, > instrumenting coverage in subprocesses, etc. all seem like legitimate uses of > the arbitrary code execution feature Except pth f

[issue36147] [2.7] Coverity scan: Modules/_ctypes/cfield.c , Variable "result" going out of scope

2019-02-28 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Also the change from PyUnicode_FromStringAndSize to PyBytes_FromStringAndSize happened here: https://bugs.python.org/issue8966 -- ___ Python tracker

[issue35931] pdb: "debug print(" crashes with SyntaxError

2019-02-28 Thread daniel hahler
daniel hahler added the comment: Re-opening: it currently still crashes with a NameError when using "debug doesnotexist", or "debug doesnotexist()". Will create a new PR for this. -- status: closed -> open ___ Python tracker

[issue36147] [2.7] Coverity scan: Modules/_ctypes/cfield.c , Variable "result" going out of scope

2019-02-28 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +12108 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue33944] Deprecate and remove pth files

2019-02-28 Thread Anthony Sottile
Anthony Sottile added the comment: > What I think Anthony is looking for are ways to register “start up functions” > that get executed automatically when the Python interpreter starts up yes, this is what I want to still exist :) my hope is that there's a clear standards-track replacement *b

[issue35931] pdb: "debug print(" crashes with SyntaxError

2019-02-28 Thread daniel hahler
Change by daniel hahler : -- pull_requests: +12109 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list maili

[issue36148] smtplib.SMTP.sendmail: mta status codes only accessible by local variables

2019-02-28 Thread sls
New submission from sls : MTA status codes (visible via setdebuglevel(1)) are not accessible as the `sendmail`-method stores them only locally (code, resp). I suggest to store the mta status codes, for instance: "250, b'2.0.0 Ok: queued as XYZ" etc. in an instance attribute (tuple) to access

[issue36149] use of uninitialised memory in cPickle.

2019-02-28 Thread Thomas Wouters
New submission from Thomas Wouters : There is a bug in cPickle that makes it use uninitialised memory when reading a truncated pickle from a file (an actual C FILE*, not just any file-like object). Using MemorySanitizer: % ./python Python 2.7.15 (default, redacted, redacted)

[issue36148] smtplib.SMTP.sendmail: mta status codes only accessible by local variables

2019-02-28 Thread sls
Change by sls : -- keywords: +patch pull_requests: +12111 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailin

[issue36149] use of uninitialised memory in cPickle.

2019-02-28 Thread Thomas Wouters
Change by Thomas Wouters : -- keywords: +patch pull_requests: +12112 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36148] smtplib.SMTP.sendmail: mta status codes only accessible by local variables

2019-02-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +email nosy: +barry, r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue36150] Possible assertion failures due to _ctypes.c's PyCData_reduce()

2019-02-28 Thread Zackery Spytz
New submission from Zackery Spytz : The PyBytes_FromStringAndSize() and PyObject_GetAttrString() calls in PyCData_reduce() are not checked for failure. -- components: Extension Modules, ctypes messages: 336866 nosy: ZackerySpytz priority: normal severity: normal status: open title: Pos

[issue36150] Possible assertion failures due to _ctypes.c's PyCData_reduce()

2019-02-28 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +12113 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36150] Possible assertion failures due to _ctypes.c's PyCData_reduce()

2019-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does not Py_BuildValue() check the argument for "N" for NULL? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue36151] Incorrect answer when calculating 11//3

2019-02-28 Thread Aiden Zhou
New submission from Aiden Zhou : When calculating 11//3, the last digit of the decimals is wrongly rounded to 5 as obviously it needs to be rounded to 7. IDLE (Python 3.7 32-bit) -- assignee: terry.reedy components: IDLE files: Screenshot (102)_LI.jpg messages: 336868 nosy: azihdoeun,

[issue36151] Incorrect answer when calculating 11//3

2019-02-28 Thread Aiden Zhou
Change by Aiden Zhou : Added file: https://bugs.python.org/file48180/Screenshot (102)_LI.jpg ___ Python tracker ___ ___ Python-bugs-list mai

[issue36151] Incorrect answer when calculating 11//3

2019-02-28 Thread Aiden Zhou
Change by Aiden Zhou : Removed file: https://bugs.python.org/file48180/Screenshot (102)_LI.jpg ___ Python tracker ___ ___ Python-bugs-list m

[issue36151] Incorrect answer when calculating 11/3

2019-02-28 Thread Zachary Ware
Zachary Ware added the comment: This has nothing to do with IDLE and everything to do with how floating point numbers work; have a read through https://docs.python.org/3/tutorial/floatingpoint.html for an introduction to floating point. If you need exact decimal math, use the `decimal` modu

[issue36150] Possible assertion failures due to _ctypes.c's PyCData_reduce()

2019-02-28 Thread Christian Heimes
Christian Heimes added the comment: Yes, N and O accept NULL and pass the exception up the call stack. It's not a bug. https://docs.python.org/3/c-api/arg.html?highlight=py_buildvalue#c.Py_BuildValue -- nosy: +christian.heimes resolution: -> not a bug stage: patch review -> resolved

[issue36148] smtplib.SMTP.sendmail: mta status codes only accessible by local variables

2019-02-28 Thread R. David Murray
R. David Murray added the comment: Thanks for the PR, but this is a duplicate of #29539, which I think has a better API proposal. Since the original author never actually submitted a PR there, perhaps you could pick up his work (after pinging the issue). -- resolution: -> duplicate

[issue36148] smtplib.SMTP.sendmail: mta status codes only accessible by local variables

2019-02-28 Thread R. David Murray
R. David Murray added the comment: Sorry, that should be #29539. -- superseder: Deprecate string concatenation without plus -> [smtplib] collect response data for all recipients ___ Python tracker _

[issue29539] [smtplib] collect response data for all recipients

2019-02-28 Thread R. David Murray
Change by R. David Murray : -- nosy: +sls ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue36151] Incorrect answer when calculating 11/3

2019-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: To add to Zach's answer: Please do not mark issues for IDLE just because you use IDLE to send your code to Python and display the returned string answer. If in any doubt, rerun the same code directly with Python either interactively or from the command line.

[issue36151] Incorrect answer when calculating 11/3

2019-02-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: Aiden: in the future, please do not post unnecessary screenshots of text. They are hostile to the blind and slight-impaired, they make it impossible to copy your code and run it ourselves, and they cannot be searched for. Instead, copy and paste the text de

[issue33944] Deprecate and remove pth files

2019-02-28 Thread Ivan Pozdeev
Change by Ivan Pozdeev : -- pull_requests: +12114 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33944] Deprecate and remove pth files

2019-02-28 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: On second thought, the inability to debug code that runs at startup, before user code ever gets control, is a fundamental issue (this problem arises for any software that has startup code), so such a facility in stock codebase has a merit. -- ___

[issue29539] [smtplib] collect response data for all recipients

2019-02-28 Thread sls
sls added the comment: Did you make a PR ? I didn't notice this issue and did a quick fix: https://github.com/python/cpython/pull/12104 I was hoping this or similar fixes would be implemented in 3.7.x Anyways. I'd suggest to return both success and errors for each recipient. sendmail return

[issue29571] test_re is failing when local is set for `en_IN`

2019-02-28 Thread STINNER Victor
STINNER Victor added the comment: > This seems to have broken test_re on Windows, see > https://ci.appveyor.com/project/python/cpython/build/3.7.0a0.1 It seems like the ANSI code page is 1252 ("cp1252"). == CPython 3.7.0a0 (master:d31b28e16a2387d0251df948ef5d1b33d4357652, Mar 5 2017, 21:47:

[issue29571] test_re is failing when local is set for `en_IN`

2019-02-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset ab71f8b793f7b42853ccd2a127ae7720adc5bcb4 by Victor Stinner in branch 'master': bpo-29571: Fix test_re.test_locale_flag() (GH-12099) https://github.com/python/cpython/commit/ab71f8b793f7b42853ccd2a127ae7720adc5bcb4 -- _

[issue29571] test_re is failing when local is set for `en_IN`

2019-02-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +12115 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35975] Put back the ability to parse files where async/await aren't keywords

2019-02-28 Thread Guido van Rossum
Guido van Rossum added the comment: > Would not be simpler to just drop the support of Python versions <3.7 in new > MyPy versions? Not really -- mypy has a lot of users who run it over (very) large code bases that can't easily be upgraded. Basically mypy has to support all Python versions

[issue36152] IDLE: Remove close_when_done from colorizer close()

2019-02-28 Thread Cheryl Sabella
New submission from Cheryl Sabella : Remove the unused `close_when_done` parameter from `close()` in `colorizer.ColorDelegator()`. * The second parameter to close() is called `close_when_done` and it is expected to contain a toplevel widget that has a destroy() method. * Originally, the edit

[issue36152] IDLE: Remove close_when_done from colorizer close()

2019-02-28 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +12116 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

  1   2   >