Re: Looking for a recent quote about dynamic typing, possibly on this list

2018-07-06 Thread Steven D'Aprano
On Sat, 07 Jul 2018 11:38:37 +1000, Ben Finney wrote: > Steven D'Aprano writes: > >> Somebody gave a quote about dynamic typing, along the lines of >> >> "Just because a language allows a lot of dynamic features, doesn't mean >> people's code uses a lot of dynamism." > > You did refer us to

Re: PEP 526 - var annotations and the spirit of python

2018-07-06 Thread Steven D'Aprano
On Fri, 06 Jul 2018 09:42:09 +0200, Antoon Pardon wrote: > On 06-07-18 08:17, Steven D'Aprano wrote: >> On Thu, 05 Jul 2018 16:09:52 +0200, Antoon Pardon wrote: >> This is not an innovation of Mypy. It's how type inference is supposed to work. If a particular type checker doesn't do

[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Did you get the source from openSUSE or from python.org? -- ___ Python tracker ___ ___

Re: about main()

2018-07-06 Thread Gregory Ewing
Robin Becker wrote: The villagers will shout "hey siri I need a compiler" and one will be provided Then one day someone says "Hey, Siri, make me an artificial intelligence that can respond to voice commands", and then it's not long before the AIs are breeding by themselves and take over.

[issue34056] checked hash-based pyc files not working with imp module

2018-07-06 Thread miss-islington
miss-islington added the comment: New changeset 7bd6f0e5500f778e940374237b94651f60ae1990 by Miss Islington (bot) in branch '3.7': closes bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130) https://github.com/python/cpython/commit/7bd6f0e5500f778e940374237b94651f60ae1990

[issue34056] checked hash-based pyc files not working with imp module

2018-07-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7716 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34056] checked hash-based pyc files not working with imp module

2018-07-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset b0274f2cddd36b49fe5080efbe160277ef546471 by Benjamin Peterson in branch 'master': closes bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130)

[issue30400] Race condition in shutil.copyfile()

2018-07-06 Thread Preston Moore
Preston Moore added the comment: Sure. I'll get everything up to date for 3.8 and create and required test. Thanks! -- ___ Python tracker ___

[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-06 Thread Ted Kandell
Ted Kandell added the comment: This isn't for the OpenSUSE official build itself, just compiling and installing from source on OpenSUSE 42.3. Without the symlink, and also with a wrong PYTHONHOME, pip coredumps. -- ___ Python tracker

[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: A crash, for the tracker, is failed execution without a Python exception and trackback. Debian, Fedora, Gentoo, RHEL, and Ubuntu (AMD64) buildbots are currently green. We don't have one for SUSE, open or other wise. If you have not yet reported the issue

Re: about main()

2018-07-06 Thread Steven D'Aprano
On Fri, 06 Jul 2018 18:27:16 +, Grant Edwards wrote: > On 2018-07-06, Gene Heskett wrote: > >> In that case, I hate to say it, but your education is sorely lacking in >> the fundamentals. Smelting for instance was discussed at length in the >> high school physics books I was reading by the

[issue34029] tkinter.filedialog.askdirectory() crashing before dialog opens when importing pywinauto

2018-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ryan: this tracker only covers issues with the PSF CPython distribution. Problems with 3rd party modules like pywinauto are not our responsibility until someone determines that its misbehavior reflects a CPython bug. -- nosy: +terry.reedy

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-06 Thread Steven D'Aprano
On Sat, 07 Jul 2018 02:51:41 +0900, INADA Naoki wrote: > D.setdefault('c', None) Oh that's clever! Thanks! -- Steven D'Aprano "Ever since I learned about confirmation bias, I've been seeing it everywhere." -- Jon Ronson -- https://mail.python.org/mailman/listinfo/python-list

Re: Looking for a recent quote about dynamic typing, possibly on this list

2018-07-06 Thread Ben Finney
Steven D'Aprano writes: > Somebody gave a quote about dynamic typing, along the lines of > > "Just because a language allows a lot of dynamic features, doesn't mean > people's code uses a lot of dynamism." You did refer us to http://lambda-the-ultimate.org/node/1519> on this forum. That

[issue34017] Tkinter CheckButton not working in EXE

2018-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: The tracker only covers the PSF cpython distribution. When you code ran in Spyder, our responsibily ended. cx Freeze is a 3rd party package: contact their support. -- nosy: +terry.reedy resolution: -> third party stage: -> resolved status: open

[issue34013] Inconsistent SyntaxError for print

2018-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Eric, Nick, Serhiy: this issue proposes to extend the print message patch of #30597 to cover more cases. On the face of it, this seems sensible, but I have no read the original discussion or the current and proposed patches. -- nosy: +eric.smith,

[issue31839] datetime: add method to parse isoformat() output

2018-07-06 Thread Martin Panter
Change by Martin Panter : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> datetime: add ability to parse RFC 3339 dates and times ___ Python tracker

[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2018-07-06 Thread INADA Naoki
INADA Naoki added the comment: New changeset e25399b40cd15620e77c9ad2ed24549006ae9b47 by INADA Naoki in branch 'master': bpo-23493: json: Change sort_keys in Python encoder same to C (GH-8131) https://github.com/python/cpython/commit/e25399b40cd15620e77c9ad2ed24549006ae9b47 --

[issue34019] webbrowser: wrong arguments for Opera browser.

2018-07-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 8902a1d14e9fe6fb80f4145ad4ea27a579567289 by Pablo Galindo in branch '2.7': [2.7] bpo-34019: Fix wrong arguments for Opera Browser (GH-8047) (#8126) https://github.com/python/cpython/commit/8902a1d14e9fe6fb80f4145ad4ea27a579567289

[issue34063] binhex REASONABLY_LARGE = 32768 so what is 128000

2018-07-06 Thread Jim Jewett
New submission from Jim Jewett : binhex defines a module-wide constant of REASONABLY_LARGE = 32768 # Minimal amount we pass the rle-coder Later on, in 5 locations it does either ifp.read(128000) or ifp.read_rsrc(128000) It isn't clear why a different constant is used, let alone why a

[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-06 Thread Alberto
Alberto added the comment: Hey Victor, I've spent another number of hours debugging the problem and trying to avoid encodings to be loaded but I've had no luck since initfsencoding is necesary for init_sys_streams to work and that's an important function that sets stdin, stout and sterr.

Re: about main()

2018-07-06 Thread Jim Lee
On 07/06/18 12:57, Terry Reedy wrote: On 7/5/2018 9:40 PM, Jim Lee wrote: On 07/05/18 18:25, Steven D'Aprano wrote: On Thu, 05 Jul 2018 11:27:09 -0700, Jim Lee wrote: Take a village of people.  They live mostly on wild berries. Because of course a community of people living on one food

Re: about main()

2018-07-06 Thread Grant Edwards
On 2018-07-06, Jim Lee wrote: > On 07/06/18 11:25, Grant Edwards wrote: >> On 2018-07-06, Jim Lee wrote: >> >>> Pedantics again. Didn't even get the point before tearing apart the >>> *analogy* rather than the *point itself*. >> Jim Lee, this is the Internet. >> >> Intenet, this is Jim Lee. >>

[issue34034] Python 3.7.0 multiprocessing forkserver ForkingPickler behaviour change

2018-07-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: No problem! I'm going to close this issue as I don't think there's anything we can do here. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

Re: about main()

2018-07-06 Thread Terry Reedy
On 7/5/2018 9:40 PM, Jim Lee wrote: On 07/05/18 18:25, Steven D'Aprano wrote: On Thu, 05 Jul 2018 11:27:09 -0700, Jim Lee wrote: Take a village of people.  They live mostly on wild berries. Because of course a community of people living on one food is so realistic. Even the Eskimos and

[issue34034] Python 3.7.0 multiprocessing forkserver ForkingPickler behaviour change

2018-07-06 Thread Santiago Hernandez
Santiago Hernandez added the comment: Thanks, I get it now, I hadn't seen that the pickling of the workers was Processes pickling. Yeah, I was not doing this anywhere else, it seems like slipped through once. But it called my attention that it used to work and now it doesn't. On Tue, Jul 3,

[issue34062] Python launcher on Windows does not work with --list or --list-paths

2018-07-06 Thread Eryk Sun
Eryk Sun added the comment: I don't think the launcher has unit tests. The if statement in process() that calls show_python_list only checks for "-0". It needs to check for the long names as well, e.g.: if (argc == 2) { /* First check for -0[p], --list, or --list-paths. */

Re: about main()

2018-07-06 Thread Jim Lee
On 07/06/18 11:25, Grant Edwards wrote: On 2018-07-06, Jim Lee wrote: Pedantics again. Didn't even get the point before tearing apart the *analogy* rather than the *point itself*. Jim Lee, this is the Internet. Intenet, this is Jim Lee. :) You have an inaccurate anthropomorphic

[issue34059] multiprocessing deadlock

2018-07-06 Thread Guillaume Perrault-Archambault
Guillaume Perrault-Archambault added the comment: A friend of mine has suggested a fix that seems to work for now (upgrade numpy from 1.14.3 to 1.14.5). This makes no sense at all but it does seem to work for now. I have a strong suspicion that this is just masking the problem and that it

Re: about main()

2018-07-06 Thread Grant Edwards
On 2018-07-06, Jim Lee wrote: > > Pedantics again. Didn't even get the point before tearing apart the > *analogy* rather than the *point itself*. Jim Lee, this is the Internet. Intenet, this is Jim Lee. :) -- Grant Edwards grant.b.edwardsYow! I'm encased in the

[issue33922] [Windows] Document the launcher's -64 suffix

2018-07-06 Thread Eryk Sun
Change by Eryk Sun : -- assignee: -> docs@python components: +Documentation dependencies: +Allow windows launcher to specify bit lengths with & without minor version nosy: +docs@python resolution: duplicate -> stage: resolved -> patch review status: closed -> open superseder: Allow

Re: about main()

2018-07-06 Thread Grant Edwards
On 2018-07-06, Gene Heskett wrote: > In that case, I hate to say it, but your education is sorely lacking in > the fundamentals. Smelting for instance was discussed at length in the > high school physics books I was reading by the time I was in the 3rd > grade. Don't they teach anything in

Re: about main()

2018-07-06 Thread Grant Edwards
On 2018-07-05, Jim Lee wrote: > Take a village of people. They live mostly on wild berries. It's completely orthogonal to your point of course, but I thought villages happened precisely because people had stopped living off wild stuff and had adopted organized agriculture... -- Grant Edwards

[issue34062] Python launcher on Windows does not work with --list or --list-paths

2018-07-06 Thread Brett Cannon
New submission from Brett Cannon : When you run `py -h` it says you can use -0 or --list as well as -0p or --list-paths, but both --list and --list-paths don't work (the -0-based options do, though). -- components: Windows messages: 321187 nosy: brett.cannon, paul.moore, steve.dower,

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-06 Thread INADA Naoki
D.setdefault('c', None) On Sat, Jul 7, 2018 at 2:49 AM Steven D'Aprano wrote: > > I have a dict with string keys: > > D = {'a': None, 'b': None} > > (the values don't matter for this question) and I want to add a key but > only if it isn't already there. If I do the obvious: > > if not 'c' in D:

Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-06 Thread Steven D'Aprano
I have a dict with string keys: D = {'a': None, 'b': None} (the values don't matter for this question) and I want to add a key but only if it isn't already there. If I do the obvious: if not 'c' in D: D['c'] = None there's a Time Of Check to Time Of Use bug where some other thread could

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-07-06 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: On Fedora after the fix we had also to BuildRequire libnsl2-devel and libtirpc-devel after the glibc change was implemented for the correct headers to be included within the buildroot. I am not familiar with suse's build system webui to find the

Re: testing code

2018-07-06 Thread Sharan Basappa
On Friday, 6 July 2018 09:22:31 UTC+5:30, Chris Angelico wrote: > On Fri, Jul 6, 2018 at 12:56 PM, Sharan Basappa > wrote: > > Please let me know if the following understanding of mine is correct. > > I need to put the program code in a separate file and organize every > > executable code in

Re: testing code

2018-07-06 Thread Sharan Basappa
On Friday, 6 July 2018 09:32:08 UTC+5:30, Cameron Simpson wrote: > On 05Jul2018 19:56, Sharan Basappa wrote: > >I have implemented my first program in python that uses ML to do some > >classification task. The whole code is in a single file currently. > >It contains executable code as well as

[issue34059] multiprocessing deadlock

2018-07-06 Thread Guillaume Perrault-Archambault
Guillaume Perrault-Archambault added the comment: Hi Victor and Yang, Thanks for your fast replies. I did initially think it could be a torch issue. Indeed, I have an equivalent numpy testcase that does not deadlock. However, the fact that it gets stuck inside a multiprocessing wait

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-06 Thread Berker Peksag
New submission from Berker Peksag : Most of the exceptions in sqlite3 module were documented in issue 6057 (https://github.com/python/cpython/commit/ed789f9cf9586d94e85115bb516a2ab6b9a2f668) Unfortunately, I noticed that I missed NotSupportedError while reviewing PR 8086. I think it should

[issue34041] add *deterministic* parameter to sqlite3.Connection.create_function()

2018-07-06 Thread Berker Peksag
Change by Berker Peksag : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34042] Reference loss for local classes

2018-07-06 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you for reporting the issue, Kay. And huge thanks to Antoine and Pablo for bisecting. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34042] Reference loss for local classes

2018-07-06 Thread miss-islington
miss-islington added the comment: New changeset 127bd9bfd591c8ec1a97eb7f4037c8b884eef973 by Miss Islington (bot) in branch '3.7': bpo-34042: Fix dict.copy() to maintain correct total refcount (GH-8119) https://github.com/python/cpython/commit/127bd9bfd591c8ec1a97eb7f4037c8b884eef973

[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-06 Thread Alberto
Alberto added the comment: Hi, First of all thank you for your answer. If every module can't be statically compiled within a library, what is the point of having instructions to compile python statically in the build instructions? Can I modify the code to make it completely statically? Thank

[issue34032] Add platlibdir to allow distinction between /usr/lib and /usr/lib64 for Linux

2018-07-06 Thread Éric Araujo
Éric Araujo added the comment: I think there are open tickets discussing this, and the problem is more complex that a simple PR: - Debian does multiarch that’s more than just lib/lib64 - some systems have lib32 I think - recent systems merge / and /usr, is that relevant? - how does virtualenv

[issue34042] Reference loss for local classes

2018-07-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7715 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34042] Reference loss for local classes

2018-07-06 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 0b75228700e0077d8bf2636e74733389514b4b2f by Yury Selivanov in branch 'master': bpo-34042: Fix dict.copy() to maintain correct total refcount (GH-8119) https://github.com/python/cpython/commit/0b75228700e0077d8bf2636e74733389514b4b2f

Django-hotsauce 0.9.5 (Realistic Scenario) and libschevo 4.0.2 are out!

2018-07-06 Thread Etienne Robillard
Hi everyone, I'm really happy to announce the public release of Django-hotsauce 0.9.5 (Realistic Scenario) and libschevo 4.0.2 for Python! :-) Downloads: PyPi https://pypi.org/project/Django-hotsauce/ https://pypi.org/project/libschevo/ Master site

[issue34042] Reference loss for local classes

2018-07-06 Thread Yury Selivanov
Yury Selivanov added the comment: > If you could do what you often you, and make this what distributions like > Debian pull from, it would be good enough in terms of release for me, as it > blocks Nuitka tests from passing on them. I'm not sure what you mean by "what you often do". I'll

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-06 Thread STINNER Victor
New submission from STINNER Victor : I would help to debug race conditions on Windows to log the "CPU usage" on regrtest, as we do on other platforms (using os.getloadavg()). Links: * https://stackoverflow.com/questions/13666458/python-collect-system-stats *

[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34059] multiprocessing deadlock

2018-07-06 Thread STINNER Victor
STINNER Victor added the comment: IMHO it's an issue with your usage of the torch module which is not part of the Python stdlib, so I suggest to close this issue as "third party" or "not a bug". -- nosy: +vstinner ___ Python tracker

[issue34059] multiprocessing deadlock

2018-07-06 Thread Windson Yang
Windson Yang added the comment: I'm can't reproduce the deadlock, maybe it's related to torch package? Can you try without torch to see if this happens again? -- nosy: +Windson Yang ___ Python tracker

Re: about main()

2018-07-06 Thread Robin Becker
On 05/07/2018 21:43, Jim Lee wrote: ... identifying the poisonous berries. I would respect your analogy more if every compiler used today were forty years old and not being developed by anyone other than its original creator(s). ChrisA It's not about compilers - it's about skills. 

ANN: Pandas 0.23.2 Released

2018-07-06 Thread Tom Augspurger
Hi all, I'm happy to announce pandas that pandas 0.23.2 has been released. This is a minor bug-fix release in the 0.23.x series and includes some regression fixes, bug fixes, and performance improvements. We recommend that all users upgrade to this version. See the full whatsnew

Re: Looking for a recent quote about dynamic typing, possibly on this list

2018-07-06 Thread Steven D'Aprano
On Fri, 06 Jul 2018 14:02:28 +0100, Bart wrote: > On 06/07/2018 13:43, Steven D'Aprano wrote: >> I think it might have been on this list, or possibly one of >> Python-Ideas or Python-Dev. >> >> Somebody gave a quote about dynamic typing, along the lines of >> >> "Just because a language allows

[issue29750] smtplib doesn't handle unicode passwords

2018-07-06 Thread Tal Einat
Tal Einat added the comment: I have worked on this, almost ready for a PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32007] nis module fails to build against glibc-2.26

2018-07-06 Thread Matej Cepl
Matej Cepl added the comment: > - I agree with Benjamin, let's deprecate the NIS module. NIS/YP functionality > has been replaced by NSS a long time ago. Agree. a) who will separate its functionality into separate module for PyPI, b) who start a thread on python-devel? --

[issue29750] smtplib doesn't handle unicode passwords

2018-07-06 Thread Gabriele Tornetta
Gabriele Tornetta added the comment: Are there any PRs already for this issue? I couldn't find any on GitHub. Also, is the plan to branch the fix down to at least 3.6? -- nosy: +Gabriele Tornetta ___ Python tracker

Re: Looking for a recent quote about dynamic typing, possibly on this list

2018-07-06 Thread Bart
On 06/07/2018 13:43, Steven D'Aprano wrote: I think it might have been on this list, or possibly one of Python-Ideas or Python-Dev. Somebody gave a quote about dynamic typing, along the lines of "Just because a language allows a lot of dynamic features, doesn't mean people's code uses a lot of

Looking for a recent quote about dynamic typing, possibly on this list

2018-07-06 Thread Steven D'Aprano
I think it might have been on this list, or possibly one of Python-Ideas or Python-Dev. Somebody gave a quote about dynamic typing, along the lines of "Just because a language allows a lot of dynamic features, doesn't mean people's code uses a lot of dynamism." Does anyone remember this? My

Re: Is there a nice way to switch between 2 different packages providing the same APIs?

2018-07-06 Thread Mark via Python-list
On Friday, July 6, 2018 at 1:22:46 PM UTC+1, Bev in TX wrote: > > On Jul 6, 2018, at 3:14 AM, Mark via Python-list > > wrote: > > > > In the end I changed to a completely different approach. > > > > I now have two parallel directories, one with PySide-based code and the > > other with

[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2018-07-06 Thread INADA Naoki
INADA Naoki added the comment: I can't confirm significant performance benefit. sort_keys is not bottleneck of pure Python encoder. BTW, benefit from C encoder is more significant. It's about 3x faster. Adding `indent` option support to C encoder may be good target for new contributors who

Re: Is there a nice way to switch between 2 different packages providing the same APIs?

2018-07-06 Thread Bev in TX
> On Jul 6, 2018, at 3:14 AM, Mark via Python-list > wrote: > > In the end I changed to a completely different approach. > > I now have two parallel directories, one with PySide-based code and the other > with auto-generated PyQt-based code. And I created a tiny script to copy the >

Re: about main()

2018-07-06 Thread Mark Lawrence
On 06/07/18 07:04, Gregory Ewing wrote: Steven D'Aprano wrote: Even the Eskimos and Inuit, living in some of the harshest environments on earth, managed to have a relatively wide variety of foods in their diet. They might be living on a very wide variety of berries. Or perhaps, in their

Re: about main()

2018-07-06 Thread Mark Lawrence
On 06/07/18 02:40, Jim Lee wrote: On 07/05/18 18:25, Steven D'Aprano wrote: On Thu, 05 Jul 2018 11:27:09 -0700, Jim Lee wrote: Take a village of people.  They live mostly on wild berries. Because of course a community of people living on one food is so realistic. Even the Eskimos and

[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread miss-islington
miss-islington added the comment: New changeset 972458a4245afb4e934fbcb9c0224b105fb5d7ba by Miss Islington (bot) in branch '3.6': bpo-34054: multiprocessing uses time.monotonic() (GH-8118) https://github.com/python/cpython/commit/972458a4245afb4e934fbcb9c0224b105fb5d7ba --

[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread miss-islington
miss-islington added the comment: New changeset 4bd5fce27d5c03a013e5ebb008670ca0d89e3298 by Miss Islington (bot) in branch '3.7': bpo-34054: multiprocessing uses time.monotonic() (GH-8118) https://github.com/python/cpython/commit/4bd5fce27d5c03a013e5ebb008670ca0d89e3298 -- nosy:

PyDev 6.4.3 Released

2018-07-06 Thread Fabio Zadrozny
*PyDev 6.4.3 Release Highlights* PyDev changes: - *Debugger* - Notification of threads is done as they're created instead of synchronized afterwards. - Support for using frame evaluation disabled by default as it made the debugger much slower on some cases. -

PyDev 6.4.3 Released

2018-07-06 Thread Fabio Zadrozny
*PyDev 6.4.3 Release Highlights* PyDev changes: - *Debugger* - Notification of threads is done as they're created instead of synchronized afterwards. - Support for using frame evaluation disabled by default as it made the debugger much slower on some cases. -

[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7714 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7713 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset c2368cbc83ca2bafeaea0e4760be4996046d0444 by Victor Stinner in branch 'master': bpo-34054: multiprocessing uses time.monotonic() (GH-8118) https://github.com/python/cpython/commit/c2368cbc83ca2bafeaea0e4760be4996046d0444 --

[issue16822] execv (et al.) should invoke atexit handlers before executing new code

2018-07-06 Thread Ned Batchelder
Ned Batchelder added the comment: Coverage.py is registering a handler to save data before the program ends. The execv call is not in the coverage.py code, it's in the program that coverage.py is running. -- ___ Python tracker

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2018-07-06 Thread Tal Einat
Tal Einat added the comment: Now that transmogrify is done, the only open question is about itertools and collections. 1. Should collections be converted? 2. How to proceed with itertools? There are two PRs ready, with the one just for groupby() approved, but not yet reviewed by Raymond

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat
Tal Einat added the comment: Thanks for all of your work on this, Ammar! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7, Python 3.6, Python 3.7 ___ Python tracker

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat
Tal Einat added the comment: New changeset 7829bba45d0e2446f3a0ca240bfe46959f01071e by Tal Einat (Ammar Askar) in branch '2.7': [2.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891) (#8133)

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat
Tal Einat added the comment: New changeset 11c36a3e16f7fd4e937466014e8393ede4b61a25 by Tal Einat (Ammar Askar) in branch '3.6': [3.6] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891) (GH-8134)

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat
Tal Einat added the comment: New changeset ab75d9e4244ee24bc96ea9d52362899e3bf365a2 by Tal Einat (Ammar Askar) in branch '3.7': [3.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891) (GH-8132)

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2018-07-06 Thread Tal Einat
Tal Einat added the comment: New changeset c929df3b96c8d7e7977e581431192be21cdafd19 by Tal Einat in branch 'master': bpo-20180: complete AC conversion of Objects/stringlib/transmogrify.h (GH-8039) https://github.com/python/cpython/commit/c929df3b96c8d7e7977e581431192be21cdafd19 --

[issue16968] Fix test discovery for test_concurrent_futures.py

2018-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems that reap_children() in regrtest is ran only if the test is passed. And it doesn't produce warnings. -- ___ Python tracker ___

[issue34042] Reference loss for local classes

2018-07-06 Thread Kay Hayen
Kay Hayen added the comment: Hello, so it's harmless and it explains the other reference counting issue, where a change in call convention could make a reference counting bug show or go away: codecs.open(TESTFN, encoding='cp949') This was showing it, where as codecs.open(TESTFN, "rb",

[issue34007] test_gdb fails in s390x SLES buildbots

2018-07-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: All the builds fail consistently after http://buildbot.python.org/all/#/builders/54/builds/465 and things were passing before 465. Maybe is this something to do with the commit that happened there that we could revert and test it in the machine by

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +7712 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Is there a nice way to switch between 2 different packages providing the same APIs?

2018-07-06 Thread Mark via Python-list
In the end I changed to a completely different approach. I now have two parallel directories, one with PySide-based code and the other with auto-generated PyQt-based code. And I created a tiny script to copy the PySide code to the PyQt directory & do the necessary changes. (I can post the

Re: Matplotlib 3D limitations, please recommend alternative

2018-07-06 Thread John Ladasky
On Wednesday, July 4, 2018 at 6:38:18 PM UTC-7, William Ray Wing wrote: > > On Jul 4, 2018, at 5:53 PM, John Ladasky wrote: [snip] > > I explored Python OpenGL bindings about three years ago, and quickly got > > bogged down. Even with Python to assist, dealing with OpenGL was like > > trying

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +7711 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Matplotlib 3D limitations, please recommend alternative

2018-07-06 Thread John Ladasky
On Wednesday, July 4, 2018 at 3:30:32 PM UTC-7, Rick Johnson wrote: > On Wednesday, July 4, 2018 at 4:53:19 PM UTC-5, John Ladasky wrote: > > There are many 3D graphics packages on PyPI. Some appear to be quite > > specialized. I would appreciate your recommendations. Thanks! > > If you don't

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +7710 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Is there a nice way to switch between 2 different packages providing the same APIs?

2018-07-06 Thread Antoon Pardon
On 05-07-18 14:57, Mark Summerfield via Python-list wrote: > For GUI programming I often use Python bindings for Qt. > > There are two competing bindings, PySide and PyQt. > > Ideally I like to have applications that can use either. This way, if I get a > problem I can try with the other

[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2018-07-06 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +7709 stage: -> patch review ___ Python tracker ___ ___

[ANN] PyYAML-3.13: YAML parser and emitter for Python

2018-07-06 Thread Ingy dot Net
Announcing PyYAML-3.13 A new bug fix release of PyYAML is now available: http://pyyaml.org/wiki/PyYAML *** Important Note From Maintainers *** This is the first PyYAML release by the new maintainers. It was made critical because

[ANN] Mayavi-4.6.1 release

2018-07-06 Thread Prabhu Ramachandran
Hello, We are pleased to announce Mayavi-4.6.1. Mayavi is a general purpose, cross-platform Python package for 2-D and 3-D scientific data visualization. Mayavi integrates seamlessly with NumPy and provides a convenient Pythonic wrapper for VTK (http://www.vtk.org). It provides a stand-alone UI

[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2018-07-06 Thread INADA Naoki
INADA Naoki added the comment: In C version, we don't use key func. items = PyMapping_Items(dct); if (items == NULL) goto bail; if (s->sort_keys && PyList_Sort(items) < 0) { Like that, how about removing key function completely? -- nosy: +inada.naoki

Re: PEP 526 - var annotations and the spirit of python

2018-07-06 Thread Antoon Pardon
On 06-07-18 08:17, Steven D'Aprano wrote: > On Thu, 05 Jul 2018 16:09:52 +0200, Antoon Pardon wrote: > >>> This is not an innovation of Mypy. It's how type inference is supposed >>> to work. If a particular type checker doesn't do that, it is doing it >>> wrong. >> That is how type interference

[issue34043] Optimize tarfile uncompression performance

2018-07-06 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-06 Thread STINNER Victor
STINNER Victor added the comment: > Why is Python looking for external modules when it is a statically linked > library and encodings should be built-in? Hi, this is not a bug. Python needs its standard library. You might want to put the whole stdlib into a single ZIP, but I don't recall

[issue16822] execv (et al.) should invoke atexit handlers before executing new code

2018-07-06 Thread Tal Einat
Tal Einat added the comment: > we could definitely have a separate "atexec" handler Couldn't coverage.py and similar apps can just invoke the atexit handlers before calling os.execv() or similar? If so, perhaps a mention of this in the docs would suffice? -- nosy: +taleinat

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat
Tal Einat added the comment: New changeset c4ef4896eac86a6759901c8546e26de4695a1389 by Tal Einat (Ammar Askar) in branch 'master': bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891)

  1   2   >