[issue36430] A possible reference leak in itertools.count()

2019-03-25 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +12498 stage: -> patch review ___ Python tracker ___ ___

[issue36430] A possible reference leak in itertools.count()

2019-03-25 Thread Zackery Spytz
New submission from Zackery Spytz : "long_step" is leaked in itertools_count_impl() if the type->tp_alloc() call fails. -- components: Extension Modules messages: 338853 nosy: ZackerySpytz priority: normal severity: normal status: open title: A possible reference leak in

Re: Your IDE's?

2019-03-25 Thread Gene Heskett
On Monday 25 March 2019 22:24:14 DL Neil wrote: > On 26/03/19 12:55 PM, Gene Heskett wrote: > > On Monday 25 March 2019 18:20:29 DL Neil wrote: > >> On 26/03/19 10:38 AM, John Doe wrote: > >>> What is your favorite Python IDE? > >> > >> In case you are tempted to reply, neither of "John"'s

Re: Your IDE's?

2019-03-25 Thread Gene Heskett
On Monday 25 March 2019 22:14:48 Spencer Graves wrote: > On 2019-03-25 18:55, Gene Heskett wrote: > > On Monday 25 March 2019 18:20:29 DL Neil wrote: > >> On 26/03/19 10:38 AM, John Doe wrote: > >>> What is your favorite Python IDE? > >> > >> In case you are tempted to reply, neither of "John"'s

The Mailing List Digest Project

2019-03-25 Thread Abdur-Rahmaan Janhangeer
As proposed on python-ideas, i setup a repo to turn mail threads into articles. here is the repo https://github.com/Abdur-rahmaanJ/py-mailing-list-summary i included a script to build .md to .html (with syntax highlighting) here is the index

Re: configparser - which one?

2019-03-25 Thread Cameron Simpson
On 25Mar2019 23:24, Dave wrote: On 3/25/19 10:58 PM, DL Neil wrote: On 26/03/19 1:10 PM, Dave wrote: I use Python3 3, and expected learning how to use configparser would be no big deal.  Well!  Seems there is configparser, stdconfigparser, and safeconfigparser, and multiple ways to set the

[issue22189] collections.UserString missing some str methods

2019-03-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Orivej Desh, would you care to make PR to fix this (and add a test)? -- priority: low -> resolution: fixed -> status: closed -> open ___ Python tracker

[issue36429] Fix starting IDLE with pyshell

2019-03-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: One can start IDLE from python with import idlelib.idle or import idlelib.__main__ but not by importing pyshell, as there is alread a __main__ module. I cannot think of anything else to check. -- ___ Python

[issue36429] Fix starting IDLE with pyshell

2019-03-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +12497 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue22189] collections.UserString missing some str methods

2019-03-25 Thread Orivej Desh
Orivej Desh added the comment: collections.UserString.__rmod__ references an undefined variable `args`: def __rmod__(self, format): return self.__class__(format % args)

[issue36426] exec() issue when used inside function

2019-03-25 Thread Steve Dower
Steve Dower added the comment: This is currently by design, which means 3.8 is likely the only viable place it can change. It's also not Windows specific so I removed that component (people may remove themselves from nosy). But +Nick, since I know he has some interest in making locals()

Re: configparser - which one?

2019-03-25 Thread Dave
On 3/25/19 10:58 PM, DL Neil wrote: Dave, On 26/03/19 1:10 PM, Dave wrote: I use Python3 3, and expected learning how to use configparser would be no big deal.  Well!  Seems there is configparser, stdconfigparser, and safeconfigparser, and multiple ways to set the section and entries to the

[issue36429] Fix starting IDLE with pyshell

2019-03-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: The shell actually 'starts', but with an empty box and no prompt. I am thinking of eventually deprecating and disabling starting with pyshell, but until we do, it should work. If nothing else, we should be able to display a deprecation notice if that

[issue36429] Fix starting IDLE with pyshell

2019-03-25 Thread Terry J. Reedy
New submission from Terry J. Reedy : python -m idlelib.pyshell # and python f:/dev/3x/lib/idlelib/pyshell.py # for instance no longer start IDLE properly. The separate subprocess startup command for when pyshell is the main, from 2004, is obsolete and no longer needed. The command needed

Re: configparser - which one?

2019-03-25 Thread DL Neil
Dave, On 26/03/19 1:10 PM, Dave wrote: I use Python3 3, and expected learning how to use configparser would be no big deal.  Well!  Seems there is configparser, stdconfigparser, and safeconfigparser, and multiple ways to set the section and entries to the section.  A little confusing.  I

Re: Your IDE's?

2019-03-25 Thread Spencer Graves
On 2019-03-25 18:55, Gene Heskett wrote: On Monday 25 March 2019 18:20:29 DL Neil wrote: On 26/03/19 10:38 AM, John Doe wrote: What is your favorite Python IDE? In case you are tempted to reply, neither of "John"'s supposed domains resolves (to a web site)/has been registered. -- Regards

[issue34632] Port importlib_metadata to Python 3.8

2019-03-25 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +12496 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Your IDE's?

2019-03-25 Thread DL Neil
On 26/03/19 12:55 PM, Gene Heskett wrote: On Monday 25 March 2019 18:20:29 DL Neil wrote: On 26/03/19 10:38 AM, John Doe wrote: What is your favorite Python IDE? In case you are tempted to reply, neither of "John"'s supposed domains resolves (to a web site)/has been registered. -- Regards

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 20004959d23d07ac784eef51ecb161012180faa8 by Victor Stinner in branch 'master': bpo-36301: Remove _PyCoreConfig.preconfig (GH-12546) https://github.com/python/cpython/commit/20004959d23d07ac784eef51ecb161012180faa8 --

Re: Might be doing this wrong? (Turtle graphics)

2019-03-25 Thread MRAB
On 2019-03-25 22:38, Grant Edwards wrote: On 2019-03-25, Larry Martell wrote: On Mon, Mar 25, 2019 at 3:45 PM CrazyVideoGamez wrote: wait no nevermind im such an idiot Every programmer I have ever known has said that. And never saying that is a 100% reliable indicator that you really are

[issue36426] exec() issue when used inside function

2019-03-25 Thread Emmanuel Arias
Emmanuel Arias added the comment: But I confirmed the behavior reported uhmm weird -- ___ Python tracker ___ ___

[issue36426] exec() issue when used inside function

2019-03-25 Thread Emmanuel Arias
Emmanuel Arias added the comment: I test on 3.5 and 3.8 running not in an func and I don't have the problem: Python 3.8.0a2+ (heads/bpo-36287:ba8f342623, Mar 25 2019, 21:57:16) [GCC 6.3.0 20170516] on linux Type "help", "copyright", "credits" or "license" for more information. >>> a = 'bar'

Re: [Python-Dev] [RELEASE] Python 3.7.3 is now available

2019-03-25 Thread Hasan Diwan
Congrats to all for a timely release! -- H On Mon, 25 Mar 2019 at 17:19, Ned Deily wrote: > https://blog.python.org/2019/03/python-373-is-now-available.html > > Python 3.7.3 is now available. Python 3.7.3 is the next > maintenance release of Python 3.7, the latest feature release of Python. >

configparser - which one?

2019-03-25 Thread Dave
I use Python3 3, and expected learning how to use configparser would be no big deal. Well! Seems there is configparser, stdconfigparser, and safeconfigparser, and multiple ways to set the section and entries to the section. A little confusing. I want to future-proof may code, so what

Re: Your IDE's?

2019-03-25 Thread Ben Finney
John Doe writes: > What is your favorite Python IDE? The same as my favourite JavaScript IDE, Haskell IDE, and any other language I need: Emacs and a shell multiplexer (today, that's GNU Screen, but others swear that I should try TMux). An IDE, like all of the tools that we rely on for

Re: Your IDE's?

2019-03-25 Thread Gene Heskett
On Monday 25 March 2019 18:20:29 DL Neil wrote: > On 26/03/19 10:38 AM, John Doe wrote: > > What is your favorite Python IDE? > > In case you are tempted to reply, neither of "John"'s supposed domains > resolves (to a web site)/has been registered. > > -- > Regards =dn your email agent is

[issue34616] implement "Async exec"

2019-03-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36428] Support AutoAwait?

2019-03-25 Thread Guido van Rossum
Guido van Rossum added the comment: Oh, you're right. Thanks! Closing in favor of issue34616. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[RELEASE] Python 3.7.3 is now available

2019-03-25 Thread Ned Deily
https://blog.python.org/2019/03/python-373-is-now-available.html Python 3.7.3 is now available. Python 3.7.3 is the next maintenance release of Python 3.7, the latest feature release of Python. You can find Python 3.7.3 here: https://www.python.org/downloads/release/python-373/ See the What’s

[issue36428] Support AutoAwait?

2019-03-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- superseder: -> implement "Async exec" ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36428] Support AutoAwait?

2019-03-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this is same as issue34616 . The issue talks about the workarounds IPython has to use for the feature and links to the PR where it was implemented https://github.com/ipython/ipython/pull/11265 . I never knew about this feature and this

[issue36428] Support AutoAwait?

2019-03-25 Thread Yury Selivanov
Yury Selivanov added the comment: Absolutely. I think there's another open issue for this and I even have a dev branch somewhere with this idea half implemented. Definitely something to have in 3.8. -- ___ Python tracker

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12495 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36428] Support AutoAwait?

2019-03-25 Thread Guido van Rossum
New submission from Guido van Rossum : I just found out about IPython's autoawait feature: https://ipython.readthedocs.io/en/stable/interactive/autoawait.html I wonder if we should at least help them do this right in Python 3.8 by having a flag to compile() that allows `await` in the toplevel

[issue36174] Remove licenseUrl field from nuget packages

2019-03-25 Thread Ned Deily
Ned Deily added the comment: New changeset 276dcc8cfbb012c932d86d2af60e1797b22b2d1c by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-36174: Update nuget authoring for new license field. (GH-12300) https://github.com/python/cpython/commit/276dcc8cfbb012c932d86d2af60e1797b22b2d1c

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks for the report and the PR, Andrés! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset f78a5e9ce8f32a195f5f788aade79578437f30a6 by Victor Stinner in branch 'master': bpo-36301: Add _Py_GetEnv() function (GH-12542) https://github.com/python/cpython/commit/f78a5e9ce8f32a195f5f788aade79578437f30a6 --

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread miss-islington
miss-islington added the comment: New changeset b23b08623a46cef841038ee32948020692ef1b35 by Miss Islington (bot) in branch '3.7': bpo-34085: Improve wording on classmethod/staticmethod (GH-8228) https://github.com/python/cpython/commit/b23b08623a46cef841038ee32948020692ef1b35 --

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread miss-islington
miss-islington added the comment: New changeset bd96393cda54044d81054225dcfc1b26374589a8 by Miss Islington (bot) in branch '2.7': bpo-34085: Improve wording on classmethod/staticmethod (GH-8228) https://github.com/python/cpython/commit/bd96393cda54044d81054225dcfc1b26374589a8 --

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +12493 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset 548cb6060ab9d5a66931ea2be4da08c2c72c9176 by Cheryl Sabella (Andre Delfino) in branch 'master': bpo-34085: Improve wording on classmethod/staticmethod (#8228) https://github.com/python/cpython/commit/548cb6060ab9d5a66931ea2be4da08c2c72c9176

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +12494 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-25 Thread Brett Cannon
Brett Cannon added the comment: New changeset 360e1e4c519cfc139de707bcdd1e6c871eec79ee by Brett Cannon (Stéphane Wirtel) in branch 'master': bpo-36345: Add a new example in the documentation of wsgiref (#12511) https://github.com/python/cpython/commit/360e1e4c519cfc139de707bcdd1e6c871eec79ee

[issue34098] multiprocessing.Server swallows original exception traceback

2019-03-25 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Might be doing this wrong? (Turtle graphics)

2019-03-25 Thread Grant Edwards
On 2019-03-25, Larry Martell wrote: > On Mon, Mar 25, 2019 at 3:45 PM CrazyVideoGamez > wrote: >> wait no nevermind im such an idiot > > Every programmer I have ever known has said that. And never saying that is a 100% reliable indicator that you really are one... -- Grant Edwards

[issue36416] bytes.rpartition bug in online documentation

2019-03-25 Thread PEW's Corner
Change by PEW's Corner : -- keywords: +patch pull_requests: +12492 stage: -> patch review ___ Python tracker ___ ___

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Right. It was just a general comment :-) Yep, daemon threads are evil :) -- ___ Python tracker ___

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: > Well, given that this happens as well in Python3.7 and before, at least we > should document it and we can think about changing it in the future. But for > now, but I suggest keeping both PRs separated (in case we really want to > change anything).

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I really dislike the design of daemon threads. If it would be only me, I > would prefer this nasty feature causing so much issues at Python shutdown. Well, given that this happens as well in Python3.7 and before, at least we should document it and

Re: Your IDE's?

2019-03-25 Thread DL Neil
On 26/03/19 10:38 AM, John Doe wrote: What is your favorite Python IDE? In case you are tempted to reply, neither of "John"'s supposed domains resolves (to a web site)/has been registered. -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12491 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1075d1684ab84dc7c28d93cfb46e95e70d3b6d3b by Victor Stinner in branch 'master': bpo-36301: Add _Py_GetConfigsAsDict() function (GH-12540) https://github.com/python/cpython/commit/1075d1684ab84dc7c28d93cfb46e95e70d3b6d3b --

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: > This behaviour that protects against problems due to daemon threads > registered with the interpreter can be *very* surprising for C-extensions > that are using these functions to implement callbacks that can call into > Python. I really dislike the

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: > if (_Py_IsFinalizing() && !_Py_CURRENTLY_FINALIZING(tstate)) _Py_IsFinalizing() check is redundant :-) -- ___ Python tracker ___

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +12490 stage: -> patch review ___ Python tracker ___ ___

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Currently PyEval_RestoreThread and its callers (mainly PyGILState_Ensure) can terminate the thread if the interpreter is finalizing: PyEval_RestoreThread(PyThreadState *tstate) { if (tstate == NULL) Py_FatalError("PyEval_RestoreThread:

[issue36143] Auto-generate Lib/keyword.py

2019-03-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Your IDE's?

2019-03-25 Thread oliver
Been using IDEs for 30 years (turbopascal anyone?): by far, PyCharm (used for 5 years so far). Then VS Code (one year). I still use both. Vs Code is faster to load, uses less mem and has a simplicity about it that is appealing. BUT vscode has similar speed to pycharm once started (actually might

[issue36143] Auto-generate Lib/keyword.py

2019-03-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 91759d98015e1d6d5e1367cff60592ab548e7806 by Pablo Galindo in branch 'master': bpo-36143: Regenerate Lib/keyword.py from the Grammar and Tokens file using pgen (GH-12456)

[issue36370] Check for PyErr_Occurred() after PyImport_GetModule().

2019-03-25 Thread Stefan Krah
Stefan Krah added the comment: It looks like 3.6 is in security-fix only mode, so it cannot be backported there. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 -Python 3.6 ___ Python tracker

Your IDE's?

2019-03-25 Thread John Doe
What is your favorite Python IDE? -- https://mail.python.org/mailman/listinfo/python-list

[issue36370] Check for PyErr_Occurred() after PyImport_GetModule().

2019-03-25 Thread Stefan Krah
Stefan Krah added the comment: New changeset cdd8d4d6dd57f4c9429566706009d4613277d391 by Stefan Krah (Miss Islington (bot)) in branch '3.7': bpo-36370: Check for PyErr_Occurred() after PyImport_GetModule() (GH-12504)

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12489 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36370] Check for PyErr_Occurred() after PyImport_GetModule().

2019-03-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +12488 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36370] Check for PyErr_Occurred() after PyImport_GetModule().

2019-03-25 Thread Stefan Krah
Stefan Krah added the comment: New changeset 027b09c5a13aac9e14a3b43bb385298d549c3833 by Stefan Krah in branch 'master': bpo-36370: Check for PyErr_Occurred() after PyImport_GetModule() (GH-12504) https://github.com/python/cpython/commit/027b09c5a13aac9e14a3b43bb385298d549c3833 --

[issue36326] Teach inpsect.getdoc() to read __slots__ with an optional data dictionary

2019-03-25 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36326] Teach inpsect.getdoc() to read __slots__ with an optional data dictionary

2019-03-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d1e768a67707bf7bb426c1537e1a764e89eaff78 by Raymond Hettinger in branch 'master': bpo-36326: Let inspect.getdoc() find docstrings for __slots__ (GH-12498) https://github.com/python/cpython/commit/d1e768a67707bf7bb426c1537e1a764e89eaff78

[issue36408] Tkinter multi-processing performance, Linux 10-25 times faster than Windows 10

2019-03-25 Thread J.E.McCormack
J.E.McCormack added the comment: I can run four independent processes (i.e. not using multiprocessing, with no links at all between them) yet the results show that only one core is running. Where is this lock taking place? Why would a tkinter process need to know about another tkinter

Re: Might be doing this wrong? (Turtle graphics)

2019-03-25 Thread Larry Martell
On Mon, Mar 25, 2019 at 3:45 PM CrazyVideoGamez wrote: > wait no nevermind im such an idiot Every programmer I have ever known has said that. -- https://mail.python.org/mailman/listinfo/python-list

Re: What does "TypeError: unsupported operand type(s) for +: 'function' and 'int'" mean?

2019-03-25 Thread Dan Sommers
On 3/25/19 2:30 PM, CrazyVideoGamez wrote: I have no idea what "TypeError: unsupported operand type(s) for +: 'function' and 'int'" means It means that you're trying to add an int to a function. > ... and I don't know how to fix it. Help! Don't do that? It's possible that with the correct

Re: Might be doing this wrong? (Turtle graphics)

2019-03-25 Thread CrazyVideoGamez
On Wednesday, March 20, 2019, at 7:34:53 PM UTC-4, CrazyVideoGamez wrote: > So, I typed in code: > from turtle import * > forward(100) > right(120) > clear() > It didn't work! It kept on saying that there was an indent and the first line > was wrong. Help! wait no nevermind im such an idiot --

Re: Might be doing this wrong? (Turtle graphics)

2019-03-25 Thread CrazyVideoGamez
On Wednesday, March 20, 2019 at 8:29:42 PM UTC-4, MRAB wrote: > On 2019-03-21 00:12, DL Neil wrote: > > Jason, > > > > On 21/03/19 12:34 PM, jasonanyil...@gmail.com wrote: > >> So, I typed in code: > >> from turtle import * > >> forward(100) > >> right(120) > >> clear() > >> It didn't work! It

Re: What does "TypeError: unsupported operand type(s) for +: 'function' and 'int'" mean?

2019-03-25 Thread Rob Gaddi
On 3/25/19 12:30 PM, CrazyVideoGamez wrote: I have no idea what "TypeError: unsupported operand type(s) for +: 'function' and 'int'" means and I don't know how to fix it. Help! It means you can't add (i.e. apply the + operator) a function to an int. Which is only a problem because

Re: Python 3.7 Bug

2019-03-25 Thread CrazyVideoGamez
On Monday, March 25, 2019 at 2:07:11 PM UTC-4, Bassam Abdul-Baki wrote: > Greetings, > > In the following code, there's a bug on certain parameters. > > -- > > def per(n, steps = 0): > digits = [int(i) for i in str(n)] > result = 1 > for j in digits: > result *= j > steps += 1 >

Re: What does "TypeError: unsupported operand type(s) for +: 'function' and 'int'" mean?

2019-03-25 Thread CrazyVideoGamez
On Monday, March 25, 2019, at 3:31:09 PM UTC-4, CrazyVideoGamez wrote: > I have no idea what "TypeError: unsupported operand type(s) for +: 'function' > and 'int'" means and I don't know how to fix it. Help! -- https://mail.python.org/mailman/listinfo/python-list

What does "TypeError: unsupported operand type(s) for +: 'function' and 'int'" mean?

2019-03-25 Thread CrazyVideoGamez
I have no idea what "TypeError: unsupported operand type(s) for +: 'function' and 'int'" means and I don't know how to fix it. Help! -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.7 Bug

2019-03-25 Thread Terry Reedy
On 3/25/2019 8:14 AM, Bassam Abdul-Baki wrote: Greetings, In the following code, there's a bug on certain parameters. -- def per(n, steps = 0): digits = [int(i) for i in str(n)] result = 1 for j in digits: result *= j steps += 1 print(steps, result, sep=" - ") if result

[issue36424] Pickle fails on frozen dataclass that has slots

2019-03-25 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-03-25 Thread Łukasz Langa
Łukasz Langa added the comment: It's trivial but not safe in the sense that code that previously depended on some global state setup done in the master process right before fork will stop working. If this code is a library that is not in your control, you might not be able to "just revert"

Re: Python 3.7 Bug

2019-03-25 Thread DL Neil
Bassam, Greetings. On 26/03/19 1:14 AM, Bassam Abdul-Baki wrote: Greetings, In the following code, there's a bug on certain parameters. -- def per(n, steps = 0): digits = [int(i) for i in str(n)] result = 1 for j in digits: result *= j steps += 1 print(steps, result,

[issue36205] Python 3.7 and 3.8 process_time is not reported correctly when built on older macOS versions

2019-03-25 Thread Łukasz Langa
Łukasz Langa added the comment: Looks like this will have to be broken for 3.8.0a3, too. I will mark this as a release blocker for a4 though. -- nosy: +lukasz.langa ___ Python tracker

[issue36425] Add Simplified Chinese to the language switcher

2019-03-25 Thread Rohit travels and tours
Change by Rohit travels and tours : -- type: -> resource usage ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36404] Document PendingDeprecationWarning as deprecated

2019-03-25 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Python 3.7 Bug

2019-03-25 Thread Peter Otten
Bassam Abdul-Baki wrote: > Greetings, > > In the following code, there's a bug on certain parameters. > > -- > > def per(n, steps = 0): > digits = [int(i) for i in str(n)] > result = 1 > for j in digits: > result *= j > steps += 1 > print(steps, result, sep=" - ") > if result

Re: Python 3.7 Bug

2019-03-25 Thread Chris Angelico
On Tue, Mar 26, 2019 at 5:08 AM Bassam Abdul-Baki wrote: > > def per(n, steps = 0): > if len(str(result)) == 1: > print(" --- DONE ---") > return "DONE" > else: > per(result, steps) > > -- > > What the program does: > If I run per(X) and X is a multiple of 10, I should end up with

[issue36298] Lib/pyclbr.py crashes when the package spec cannot be determined by importlib

2019-03-25 Thread Brett Cannon
Brett Cannon added the comment: Thanks, mental! -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

Re: Python 3.7 Bug

2019-03-25 Thread Bassam Abdul-Baki
Greetings, In the following code, there's a bug on certain parameters. -- def per(n, steps = 0): digits = [int(i) for i in str(n)] result = 1 for j in digits: result *= j steps += 1 print(steps, result, sep=" - ") if result == 0: print(result, str(result), len(str(result)),

[issue36228] Support coercion of complex to float/int

2019-03-25 Thread Mark Dickinson
Mark Dickinson added the comment: @nagayev I applaud your enthusiasm here, but multiple core developers have already rejected your suggestions in this discussion. Given that, it would probably not be a great use of your time to pursue this. Maybe you could take a look around the bug tracker

[issue36424] Pickle fails on frozen dataclass that has slots

2019-03-25 Thread Jacques Gaudin
Change by Jacques Gaudin : -- nosy: +jagaudin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31369] re.RegexFlag is not included in __all__, makes type inference less useful

2019-03-25 Thread Ethan Furman
Ethan Furman added the comment: I see no reason no prefix `RegexFlag` with an `_`. As far as adding it to `__all__` -- I didn't originally because I was trying to mirror the original implementation, but I am not against it. I would defer that decision to those that work on typing.

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset a6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101 by Victor Stinner in branch 'master': bpo-36301: Add _Py_PreInitializeFromConfig() (GH-12536) https://github.com/python/cpython/commit/a6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101 --

[issue36425] Add Simplified Chinese to the language switcher

2019-03-25 Thread Shengjing Zhu
Change by Shengjing Zhu : -- keywords: +patch pull_requests: +12487 stage: -> patch review ___ Python tracker ___ ___

[issue36426] exec() issue when used inside function

2019-03-25 Thread Domen Jurkovič
Domen Jurkovič added the comment: Seems like I don't know how to write a code here. Anyway, issue created on stack overflow can be found on:

[issue36426] exec() issue when used inside function

2019-03-25 Thread Domen Jurkovič
New submission from Domen Jurkovič : I've reported a stack overflow question and no reasonable explation was offered. Here is what I've discovered: .. code-block:: python def func(): varName = 'bar' varValue = 42 localVarToEvaluate = varName + ' = varValue'

[issue36425] Add Simplified Chinese to the language switcher

2019-03-25 Thread Shengjing Zhu
New submission from Shengjing Zhu : Just checked on transifex, the Simplified Chinese translation has reached - 100% of bugs.html - 100% of tutorial - 100% of library/functions (builtins) So, let's add it to the language switcher { 'zh-cn': 'Simplified Chinese' } And backport it to 3.7

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12486 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: Note for myself: is there a problem between the priority of PYTHONHOME env var and pybuilddir.txt configuration file? -- ___ Python tracker

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset f72346c47537657a287a862305f65eb5d7594fbf by Victor Stinner in branch 'master': bpo-36301: Cleanup preconfig code (GH-12535) https://github.com/python/cpython/commit/f72346c47537657a287a862305f65eb5d7594fbf --

[issue36408] Tkinter multi-processing performance, Linux 10-25 times faster than Windows 10

2019-03-25 Thread Steve Dower
Steve Dower added the comment: Windows only allows a single thread to access Win32 GUI elements at a time, and I'm fairly sure whichever part of Tcl/Tk/Tkinter is responsible for this makes sure it happens. So if you're throwing lots of UI updates at the UI thread, then yeah, you're going

  1   2   >