[issue28800] Add RETURN_NONE bytecode instruction

2016-11-25 Thread STINNER Victor
Changes by STINNER Victor : -- title: Add RETURN_NONE -> Add RETURN_NONE bytecode instruction ___ Python tracker ___

[issue28782] SEGFAULT when running a given coroutine

2016-11-25 Thread STINNER Victor
STINNER Victor added the comment: Martin Richard: "Thank you all for fixing this so quickly, it's been done amazingly fast!" Even if I didn't write the commit a77756e480c2 which introduced the regression, I pushed it and so I felt responsible. It's a good motivation to fix it quickly. So

[issue28782] SEGFAULT when running a given coroutine

2016-11-25 Thread Martin Richard
Martin Richard added the comment: Thank you all for fixing this so quickly, it's been done amazingly fast! -- ___ Python tracker ___

[issue22298] Lib/warnings.py _show_warning does not protect against being called with a file like object which is closed

2016-11-25 Thread Wolfgang Maier
Wolfgang Maier added the comment: Ah, I just found Issue607668, which discusses the changeset 2e7fe55c0e11 that introduced IOError suppression. The actual use case at the time was different and I have no idea whether it would still be a problem today. --

[issue22298] Lib/warnings.py _show_warning does not protect against being called with a file like object which is closed

2016-11-25 Thread Wolfgang Maier
Wolfgang Maier added the comment: Hi Julius, I guess it's a question of control and responsibilities. If you write a program that may issue warnings under some conditions, that program may, for example, be used with stderr redirected to a file. Now it is possible that file gets removed while

Re: Simple Python Quiz To Mark 100th Issue of ImportPython

2016-11-25 Thread Chris Angelico
On Fri, Nov 25, 2016 at 8:02 PM, Ankur Gupta wrote: > Import Python Newsletter completed 2 years and 100 issues. Have a simple fun > python quiz http://importpython.com/newsletter/quiz/ to mark the milestone. With your question about laying out code, are you aware that

[issue28518] execute("begin immediate") throwing OperationalError

2016-11-25 Thread Aviv Palivoda
Aviv Palivoda added the comment: I searched in the sqlite tickets from something related to this issue and I couldn't find anything. I wanted to check the sqlite-users mailing list to see if anyone had already reported it but there is a problem in gmane archives. I tried to find a good way to

Re: Help with two issues, buttons and second class object

2016-11-25 Thread Thomas Grops via Python-list
Also I am struggling to understand: def move_tank(self, dx, dy): self.x += dx self.y += dy self.canvas.move(self.id, dx, dy) Where does the dx and dy values get input? -- https://mail.python.org/mailman/listinfo/python-list

Re: Help with two issues, buttons and second class object

2016-11-25 Thread Thomas Grops via Python-list
Peter, in your code what does that self.root = root mean in the __init__ function of the class -- https://mail.python.org/mailman/listinfo/python-list

Re: The Case Against Python 3

2016-11-25 Thread Chris Angelico
On Fri, Nov 25, 2016 at 7:29 PM, Mark Summerfield wrote: > The article has a section called: > > "Statically Typed Strings" > > The title is wrong of course because Python uses dynamic typing. But his > chief complaint seems to be that you can't mix strings and bytes in

[issue22298] Lib/warnings.py _show_warning does not protect against being called with a file like object which is closed

2016-11-25 Thread Julius Lehmann-Richter
Julius Lehmann-Richter added the comment: Hey Wolfgang, thank you for looking into this old one again ;) The argument you are making does not answer the original bug report though as far as I can see. My initial problem was not the AttributeError about the missing write but a ValueError

[issue28781] On Installation of 3.5 Python get error message

2016-11-25 Thread Mark Harris
Mark Harris added the comment: Hi Steve, Thanks looking into this for me. I tried the below and ran the lines in cmd with admin privileges. Then I tried running repair again. I'm afraid when I type python in the command prompt it has the same message as before about missing python35.dll. I

[issue12844] Support more than 255 arguments

2016-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No longer changes to Python/compile.c are needed. Here is a patch against 3.7 that just removes the limit of the number of passed arguments in Python/ast.c and adds tests. But still there is a limitation on the number of function parameters. It is caused

Simple Python Quiz To Mark 100th Issue of ImportPython

2016-11-25 Thread Ankur Gupta
Hey Python Programmers, Import Python Newsletter completed 2 years and 100 issues. Have a simple fun python quiz http://importpython.com/newsletter/quiz/ to mark the milestone. Happy ThanksGiving day to you all. Regards, Ankur -- https://mail.python.org/mailman/listinfo/python-list

[issue28799] Drop CALL_PROFILE special build?

2016-11-25 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file45637/remove_call_profile.patch ___ Python tracker

[issue28799] Drop CALL_PROFILE special build?

2016-11-25 Thread STINNER Victor
New submission from STINNER Victor: Python/ceval.c contains conditional code to compute statistics on function calls when CALL_PROFILE is defined. Extract of Misc/SpecialBuilds.txt: CALL_PROFILE Count the number of function calls executed. When this symbol is

[issue15533] subprocess.Popen(cwd) documentation

2016-11-25 Thread Wolfgang Maier
Wolfgang Maier added the comment: Before I forget again what I've gathered yesterday about this issue, here's a summary of the problem: When the the first element of args or the executable argument of subprocess.Popen does not specify an absolute path, the way the executable gets discovered

Re: A Rebuttal For Python 3

2016-11-25 Thread Rustom Mody
On Friday, November 25, 2016 at 1:27:18 AM UTC+5:30, bream...@gmail.com wrote: > https://eev.ee/blog/2016/11/23/a-rebuttal-for-python-3/ is one of presumably > many responses to the article I posted about under the subject "The Case > Against Python 3". Enjoy :) I'd say we are living in

Re: generating list of files matching condition

2016-11-25 Thread Peter Otten
Seb wrote: > On Thu, 24 Nov 2016 10:18:21 +0100, > Peter Otten <__pete...@web.de> wrote: > >> Is win_files huge? Then it might help to avoid going over the entire >> list for every interval. Instead you can sort the list and then add to >> the current list while you are below nextw. > >> My

Re: The Case Against Python 3

2016-11-25 Thread Mark Summerfield
On Thursday, November 24, 2016 at 7:35:03 PM UTC, bream...@gmail.com wrote: > It's all here https://learnpythonthehardway.org/book/nopython3.html although > I strongly suggest that people have large piles of sedatives to hand before > reading the article. Does me a favour though, i've been

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-25 Thread STINNER Victor
STINNER Victor added the comment: issue28754-4.diff does 3 things: * convert C code to Argument Clinic * change docstrings of the C code * change unit tests issue28754-5.diff doesn't touch tests, but still does 2 things. Sadly, I dislike the changes on docstrings because it makes the C

[issue28772] Bus error in Python 3.6.0beta

2016-11-25 Thread SilentGhost
Changes by SilentGhost : -- resolution: not a bug -> third party stage: -> resolved ___ Python tracker ___

[issue28753] Clinic: Converting Your First Function is not up to date

2016-11-25 Thread STINNER Victor
STINNER Victor added the comment: issue28753.fastcall.diff LGTM. -- ___ Python tracker ___ ___

<    1   2