[issue36155] ./python -m test -m test_gc fails

2019-02-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: It seems that some collection from some other test is happening between the three calls to get_objects: self.assertIn(l, gc.get_objects(generation=0)) self.assertNotIn(l, gc.get_objects(generation=1)) self.assertNotIn(l, gc.get_objects(generation=2))

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2019-02-28 Thread Larry Hastings
Change by Larry Hastings : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33127] Python 2.7.14 won't build ssl module with Libressl 2.7.0

2019-02-28 Thread Larry Hastings
Larry Hastings added the comment: New changeset 56f8783e3e32ddc0cb84a96711e3861aea9895ac by larryhastings (Alex Viscreanu) in branch '3.5': [3.5] bpo-33127: Compatibility patch for LibreSSL 2.7.0 (GH-6210) (#10994)

[issue36155] ./python -m test -m test_gc fails

2019-02-28 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I am not sure of the exact cause about this failure but `./python.exe -m test -m test_gc` fails though `./python.exe -m test -v test_gc` passes. This test was recently added with 175421b58cc97a2555e474f479f30a6c5d2250b0 and issue36016.

[issue36103] Increase shutil.COPY_BUFSIZE

2019-02-28 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12121 stage: -> patch review ___ Python tracker ___ ___

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-02-28 Thread David Bolen
David Bolen added the comment: I suspect changes for this issue may be creating test_io failures on my windows builders, most notably my x86 Windows 7 builder where test_io has been failing both attempts on almost all builds. It fails with a lock failure during interpreter shutdown, and

[issue36075] python 2to3 conversion tool is generating file with extra line for every input line

2019-02-28 Thread Saba Kauser
Saba Kauser added the comment: Thanks Karthikeyan! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-02-28 Thread miss-islington
miss-islington added the comment: New changeset 9add4b3317629933d88cf206a24b15e922fa8941 by Miss Islington (bot) (Raymond Hettinger) in branch 'master': bpo-36018: Add documentation link to "random variable" (GH-12114)

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

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

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

2019-02-28 Thread David Ford (FirefighterBlu3)
David Ford (FirefighterBlu3) added the comment: i have a fully built patch and personally tested (i use it 24/7) but haven't done test_* yet as was requested On Thu, Feb 28, 2019 at 9:16 PM Windson Yang wrote: > > Windson Yang added the comment: > > sls, are you working on this feature

[issue36072] str.translate() behaves differently for ASCII-only and other strings

2019-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. The fact the CPython attempts to optimize all_ascii.translate(table) is a CPython implementation detail, not a language feature. -- assignee: -> docs@python components: +Documentation nosy: +docs@python, terry.reedy resolution: -> not a

[issue36154] Python quit unexpectedly error

2019-02-28 Thread kellena
New submission from kellena : I'm on a Mac running Mojave, version 10.14.3. I installed Python 3.7. I'm now getting a "Python quit unexpectedly" error consistently and I don't know why or if I did something to cause it. I've tried uninstalling and reinstalling but I'm still getting the

[issue36075] python 2to3 conversion tool is generating file with extra line for every input line

2019-02-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @sabakauser You can find python-list mailing list here : https://mail.python.org/mailman/listinfo/python-list -- nosy: +xtreak ___ Python tracker

[issue36066] Add `empty` block to `for` and `while` loops.

2019-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Syntax changes need PEPs. By default, syntax changes are rejected. This is especially true for new keywords, as any acceptible word will already be in use, and hence its introduction *will* break code. We are still having issues over having temporarily

[issue36075] python 2to3 conversion tool is generating file with extra line for every input line

2019-02-28 Thread Saba Kauser
Saba Kauser added the comment: Could you please share the URL -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36075] python 2to3 conversion tool is generating file with extra line for every input line

2019-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suspect that this may not be a cpython issue, in which case, it should be closed here as 'not-a-bug'. I suggest that you present this on python-list and ask 'where is the bug most likely to be?' You should get more readers there. -- nosy:

[issue36122] Second run of 2to3 continues to modify output

2019-02-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> not a bug type: enhancement -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-02-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12119 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-02-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset f684d83d86e1990784816d4b243d724e6ab8304f by Victor Stinner in branch 'master': bpo-36142: Exclude coreconfig.h from Py_LIMITED_API (GH-12111) https://github.com/python/cpython/commit/f684d83d86e1990784816d4b243d724e6ab8304f --

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-02-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12118 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-02-28 Thread Windson Yang
Windson Yang added the comment: sls, are you working on this feature now? -- nosy: +Windson Yang ___ Python tracker ___ ___

[issue36153] Freeze support documentation is misleading.

2019-02-28 Thread Windson Yang
Windson Yang added the comment: IIUC, your script (using Sklearn/tensorflow) will cause an infinite loop when building with pyinstaller. Would you mind upload an example script so I can try to reproduce it? -- nosy: +Windson Yang ___ Python

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

2019-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for digging up the history. I would have approved without, but feel better with. Using the colorizer close method to close a window seemed flakey to me, and it seems someone else thought the same long ago. I suspect the machinery was left to avoid

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

2019-02-28 Thread STINNER Victor
STINNER Victor added the comment: AppVeyor failed on the backport to Python 3.7 of my fix: PR 12108. Ok, now I understand the bug in Python 3.7. locale.getlocale(locale.LC_CTYPE)[1] returns None because Python doesn't set LC_CTYPE to the user preferred locale. I'm not sure of which locale

[issue33944] Deprecate and remove pth files

2019-02-28 Thread Steve Dower
Steve Dower added the comment: The sitecustomize.py file is totally available, and the only limitation there is packages can't inject themselves into it on installation. And if you want to trigger it on a package import then you totally can (though there's *another* discussion about that

[issue36153] Freeze support documentation is misleading.

2019-02-28 Thread Sridhar Iyer
New submission from Sridhar Iyer : The documentation on freeze_support listed on https://docs.python.org/3/library/multiprocessing.html need to be fixed This mentions: "Calling freeze_support() has no effect when invoked on any operating system other than Windows. In addition, if the module

[issue33944] Deprecate and remove pth files

2019-02-28 Thread Ivan Pozdeev
Change by Ivan Pozdeev : -- pull_requests: +12117 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-02-28 Thread Cheryl Sabella
Change by Cheryl Sabella : -- assignee: cheryl.sabella -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list

[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 ___ ___

[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

[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

[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:

[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 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,

Re: Lifetime of a local reference

2019-02-28 Thread Chris Angelico
On Fri, Mar 1, 2019 at 9:31 AM Marko Rauhamaa wrote: > > Roel Schroeven : > > In the absence of any other mention of bindings being removed, to me > > it seems clear that bindings are not automatically removed. Otherwise > > many things become ambiguous. Example: the documentation for dicts > >

[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

Re: Lifetime of a local reference

2019-02-28 Thread Marko Rauhamaa
Roel Schroeven : > In the absence of any other mention of bindings being removed, to me > it seems clear that bindings are not automatically removed. Otherwise > many things become ambiguous. Example: the documentation for dicts > defines "d[key] = value" as "Set d[key] to value". Does that mean

[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. --

[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:

[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

[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

[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:

[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

[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: ->

[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 ->

[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`

[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

Re: dash/underscore on name of package uploaded on pypi

2019-02-28 Thread Terry Reedy
On 2/28/2019 11:09 AM, ast wrote: Hello I just uploaded a package on pypi, whose name is "arith_lib" The strange thing is that on pypi the package is renamed "arith-lib" The underscore is substitued with a dash If we search for this package: pip search arith arith-lib (2.0.0) - A set of

[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

[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,

Re: Need help with Python3.4 and Avro

2019-02-28 Thread Terry Reedy
On 2/28/2019 11:19 AM, Mihir Kothari wrote: I am not sure if this is the right list, but trying to get help from experienced python users for my issue. This is a good place to get a somewhat different set of such people. I have posted the issue in stackoverflow, but yet to see any response.

[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 ___

Re: Lifetime of a local reference

2019-02-28 Thread Roel Schroeven
Rhodri James schreef op 28/02/2019 om 13:09: On 27/02/2019 21:39, Roel Schroeven wrote: Rhodri James schreef op 27/02/2019 om 15:18: Aren't we overthinking this? I think it's pretty clear that a variable is never deleted before it goes out of scope. A quick search in the documentation points

Need help with Python3.4 and Avro

2019-02-28 Thread Mihir Kothari
Hi, I am not sure if this is the right list, but trying to get help from experienced python users for my issue. I have posted the issue in stackoverflow, but yet to see any response. I am trying my luck here. I have my question here: https://stackoverflow.com/q/54833834/3165644 If needed, I can

Re: dash/underscore on name of package uploaded on pypi

2019-02-28 Thread Paul Moore
On Thu, 28 Feb 2019 at 16:14, ast wrote: > > Hello > > I just uploaded a package on pypi, whose name is "arith_lib" > > The strange thing is that on pypi the package is renamed "arith-lib" > The underscore is substitued with a dash The version with a dash is the normalised form of the name - see

[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 ___ ___

[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:

[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

[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 ___ ___

[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

[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)

Re: Using PyArg_ParseTuple to with optional fields.

2019-02-28 Thread DL Neil
Anthony, On 28/02/19 10:18 PM, Anthony Flury via Python-list wrote: I am trying to write an extension module with a function (actually an __init__ method, but I am not sure that matters) where the function can be called as either :     my_func() or     my_func( a, b, c, d) - where a,b,c,d

[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

[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

[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

[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 ___ ___

[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
Charalampos Stratakis added the comment: Also the change from PyUnicode_FromStringAndSize to PyBytes_FromStringAndSize happened here: https://bugs.python.org/issue8966 -- ___ Python tracker

[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

[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

[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:

[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 : -- pull_requests: +12107 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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 --

[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

[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

[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

[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

[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)

[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:

[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:

[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:

[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 --

[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 =

[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 +/+=;

[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

[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

[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 ___ ___

dash/underscore on name of package uploaded on pypi

2019-02-28 Thread ast
Hello I just uploaded a package on pypi, whose name is "arith_lib" The strange thing is that on pypi the package is renamed "arith-lib" The underscore is substitued with a dash If we search for this package: pip search arith arith-lib (2.0.0) - A set of functions for miscellaneous arithmetic

Embedding Python (3.7) on OSX crash on Py_Initialize when run as bundle

2019-02-28 Thread Arnaud Loonstra
Hi, I'm trying to wrap my head around an OSX app which has python embedded. This works fine if I run the build on the same machine as it is build on. However when using Travis to build the app I can only get it to run from the terminal. A double click on the appdir (or using open) results in

[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:

[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

Re: Lifetime of a local reference

2019-02-28 Thread Marko Rauhamaa
Chris Angelico : > What if an exception gets raised at some point before the function has > returned? The exception object will give full access to the function's > locals. It wouldn't hurt for the Python gods to make an explicit ruling on the matter. Marko --

[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

[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:

[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.

[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:

[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
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

  1   2   >