[issue27277] Fatal Python error: Segmentation fault in test_exceptions

2016-06-11 Thread Berker Peksag
Berker Peksag added the comment: Can you please try without coveragepy? ./python -m test test_exceptions -- nosy: +berker.peksag ___ Python tracker

[issue27186] add os.fspath()

2016-06-11 Thread Martin Panter
Martin Panter added the comment: Test_fspath_protocol_bytes() (added in revision 5a62d682636e) fails on Windows: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds//steps/test/logs/stdio == ERROR:

[issue25455] Some repr implementations don't check for self-referential structures

2016-06-11 Thread Stefan Behnel
Stefan Behnel added the comment: Etree patch looks straight forward to me, feel free to apply it. -- ___ Python tracker ___

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-06-11 Thread Larry Hastings
Larry Hastings added the comment: This still affects 3.4 and 3.5. It'd be lovely if it could be fixed in all the still-alive versions. (Yes, this is technically a "bug fix", but I'd still like it fixed in 3.4.) -- versions: +Python 3.4, Python 3.5

Re: how to record path in well format and easy to read?

2016-06-11 Thread meInvent bbird
i forget why i do combination of 2 operators now i change not to use combination of 2 operators https://gist.github.com/hoyeunglee/58df4c41a63a2f37e153cbdbc03c16bf i run mresult = DFS(b, 2, 2, mylist, path) it do not have deep 2 and deep 1 in the path they only separated in the list

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2016-06-11 Thread Berker Peksag
Changes by Berker Peksag : -- type: compile error -> behavior ___ Python tracker ___

[issue27299] urllib does not splitport while putrequest realhost to HTTP headers

2016-06-11 Thread gr zhang
gr zhang added the comment: Yes, I mean when set h.putheader('Host', "www.github.com:443") and the status code from httplib will be 405 while when set h.putheader('Host', "www.github.com") the code will be 200, this is confused to me. -- ___ Python

Re: how to record path in well format and easy to read?

2016-06-11 Thread meInvent bbird
https://gist.github.com/hoyeunglee/350ac2dd496f7c1c95a428f847e6f2b1 then can not run deep 3 in python sagecloud >>> mresult = DFS(b, 3, 3, mylist, path) ('deep=', 3) ({'11': 1, '10': 1, '00': 0, '01': 1}, {'11': 1, '10': 0, '00': 0, '01': 0}) ({'11': 1, '10': 1, '00': 0, '01': 1}, {'11': 1,

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-06-11 Thread Matthias Klose
Matthias Klose added the comment: ubuntu doesn't do anything crazy, but just disables oldish, deprecated und probably now unsecure ssl protocols. This is done by other vendors as well. From my point of of view this skip_if_ubuntu stuff should be replaced by proper feature tests. I'll see

[issue27095] Simplify MAKE_FUNCTION

2016-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added more comments on Rietveld. -- ___ Python tracker ___ ___

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2016-06-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset c60d2e4f4f96 by Martin Panter in branch '2.7': Issue #16484: PYTHONDOCS still uses “http:” in Python 2 https://hg.python.org/cpython/rev/c60d2e4f4f96 -- ___ Python tracker

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-06-11 Thread Larry Hastings
Larry Hastings added the comment: I got this when testing 3.5.2rc1 on my Ubuntu 16.04 machine. CAs Xiang Zhang showed, this is Ubuntu doing something crazy. I ignored the failure and shipped 3.5.2rc1, however I would be interested in suppressing the test for 3.5.2 final. That way it has a

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2016-06-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset d84268ed62ac by Martin Panter in branch '3.5': Issue #16484: Fix pydoc link and test on Windows, by Kaushik Nadikuditi https://hg.python.org/cpython/rev/d84268ed62ac New changeset 84d1e5a4b1c5 by Martin Panter in branch 'default': Issue #16484:

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, I looked on 3.5 change and missed that in 3.6 you test both tkinter.Entry and ttk.Entry. -- ___ Python tracker

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy: entry=entry as much as any name=expression pair to print the value of variable entry on test failure, either "entry=)" or "entry=)", as in == FAIL: test_paste_entry

[issue27299] urllib does not splitport while putrequest realhost to HTTP headers

2016-06-11 Thread Xiang Zhang
Xiang Zhang added the comment: The standard[1] says the Host header is OK to include port. Why not use 'https://www.github.com'? [1] https://tools.ietf.org/html/rfc7230#section-5.4 -- nosy: +xiang.zhang ___ Python tracker

[issue27299] urllib does not splitport while putrequest realhost to HTTP headers

2016-06-11 Thread gr zhang
New submission from gr zhang: h.putheader('Host', "www.github.com:443") # this will make errcode 405, if urllib lib splitport first, and this will set Host ---> www.github.com and get 200 code. h.endheaders(None) errcode, errmsg, headers = h.getreply() print errcode --

Re: the global keyword:

2016-06-11 Thread Ned Batchelder
On Saturday, June 11, 2016 at 11:38:33 PM UTC-4, Steven D'Aprano wrote: > On Sun, 12 Jun 2016 11:26 am, Random832 wrote: > > > On Sat, Jun 11, 2016, at 20:09, MRAB wrote: > >> Not true. Importing doesn't copy the value. > >> > >> Importing a name creates a new name in the local scope that refers

Re: the global keyword:

2016-06-11 Thread Ned Batchelder
On Saturday, June 11, 2016 at 8:13:50 PM UTC-4, Marcin Rak wrote: > On Saturday, 11 June 2016 19:09:29 UTC-5, MRAB wrote: > > On 2016-06-12 00:50, Random832 wrote: > > > On Sat, Jun 11, 2016, at 19:44, Marcin Rak wrote: > > >> So my question is, how the heck is it possible that I get 5 as the

Re: the global keyword:

2016-06-11 Thread Steven D'Aprano
On Sun, 12 Jun 2016 11:26 am, Random832 wrote: > On Sat, Jun 11, 2016, at 20:09, MRAB wrote: >> Not true. Importing doesn't copy the value. >> >> Importing a name creates a new name in the local scope that refers to >> the same object that the imported name referred to. MRAB is correct here.

[issue27292] Warn users that os.urandom() can return insecure values

2016-06-11 Thread Larry Hastings
Larry Hastings added the comment: This is not a release blocker. -- priority: release blocker -> normal ___ Python tracker ___

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2016-06-11 Thread Kaushik Nadikuditi
Kaushik Nadikuditi added the comment: - fixed broken test - test_mixed_case_module_names_are_lower_cased - tested on Windows, Mac, Ubuntu - thank you Martin Panter for suggestions. -- components: +Tests -Documentation type: -> compile error Added file:

[issue17900] Recursive OrderedDict pickling

2016-06-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: At this point, we can drop it. PyYAML will just have to deal with it. -- assignee: rhettinger -> ___ Python tracker

[issue27136] sock_connect fails for bluetooth (and probably others)

2016-06-11 Thread Martin Panter
Martin Panter added the comment: Revision 3f49e89be8a9 seems to be the cause of an x86 Tiger buildbot failure: http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/10924/steps/test/logs/stdio == FAIL:

[issue24136] document PEP 448: unpacking generalization

2016-06-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset a7e04b4e51b2 by Martin Panter in branch '3.5': Issue #24136: Document generalized unpacking, PEP 448 https://hg.python.org/cpython/rev/a7e04b4e51b2 New changeset 4cf3389cd8e6 by Martin Panter in branch 'default': Issue #24136: Merge unpacking doc

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-06-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Proposed fix based on STINNER and Nick's earlier comments and the simple reproducer turned into a test. Nick - your most recent comment makes me wonder if this shouldn't be doing more. this does make both hang_bug*.py examples do something reasonable. I'm

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-06-11 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: gregory.p.smith -> ncoghlan ___ Python tracker ___

how to record path in well format and easy to read?

2016-06-11 Thread meInvent bbird
https://gist.github.com/hoyeunglee/3fea29ed4aadb5dbc11c41f9a36070dc i discover my code can not record the path because i do recursive call at the end of function however, i want to do full combination at the end of function before calling recursive call, for seeing the result path, choose call

Re: the global keyword:

2016-06-11 Thread Random832
On Sat, Jun 11, 2016, at 20:12, Marcin Rak wrote: > What about variables that are user defined classes? Are they referenced > or copied? It will reference the same object, but if the variable is reassigned in the original module it will still not update the imported variable. --

Re: the global keyword:

2016-06-11 Thread Random832
On Sat, Jun 11, 2016, at 20:09, MRAB wrote: > Not true. Importing doesn't copy the value. > > Importing a name creates a new name in the local scope that refers to > the same object that the imported name referred to. Yes, the value of a variable is a reference to an object. Can we not have

[issue25782] CPython hangs on error __context__ set to the error itself

2016-06-11 Thread Larry Hastings
Larry Hastings added the comment: I'm not the right person to decide this. As RM, all I can do is decide whether or not to hold up a release based on the bug. The answer: no. Since this isn't fixed yet in the 3.5 branch, 3.5.2 will go out without it being fixed. Sorry folks. --

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-06-11 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- dependencies: +CPython hangs on error __context__ set to the error itself ___ Python tracker ___

[issue25782] CPython hangs on error __context__ set to the error itself

2016-06-11 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- stage: commit review -> patch review ___ Python tracker ___

[issue25782] CPython hangs on error __context__ set to the error itself

2016-06-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Patch review: I see two competing solutions with differing behaviors. Yury's raises a RuntimeError in the loop situation. Serhiy's simply reorders the exception context to put the referred to one at the front of the chain in the event of a loop. The 3.5

[issue24086] Configparser interpolation is unexpected

2016-06-11 Thread Łukasz Langa
Łukasz Langa added the comment: This is solved upstream in setuptools by disabling configparser interpolation. -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue14209] pkgutil.iter_zipimport_modules ignores the prefix parameter for packages

2016-06-11 Thread Łukasz Langa
Łukasz Langa added the comment: Done. Fix is going to be present for 3.5.2 and 3.6. Thank you, James. -- resolution: -> fixed status: open -> closed versions: +Python 3.5, Python 3.6 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker

[issue14209] pkgutil.iter_zipimport_modules ignores the prefix parameter for packages

2016-06-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9649acf7d472 by Łukasz Langa in branch '3.5': Issue #14209: pkgutil.iter_zipimport_modules ignores the prefix for packages https://hg.python.org/cpython/rev/9649acf7d472 New changeset 389b7456a053 by Łukasz Langa in branch 'default': Merge 3.5,

[issue15468] Edit docs to hide hashlib.md5()

2016-06-11 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue15468] Edit docs to hide hashlib.md5()

2016-06-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1cfd627bee05 by Gregory P. Smith in branch 'default': Clarify that md5 is in the algorithms_guaranteed list despite what https://hg.python.org/cpython/rev/1cfd627bee05 -- ___ Python tracker

[issue15468] Edit docs to hide hashlib.md5()

2016-06-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 13ea0a1d7dde by Gregory P. Smith in branch 'default': issue15468 - use sha256 instead of md5 or sha1 in the examples. https://hg.python.org/cpython/rev/13ea0a1d7dde -- nosy: +python-dev ___ Python

[issue27095] Simplify MAKE_FUNCTION

2016-06-11 Thread Demur Rumed
Demur Rumed added the comment: mkfu4 implements #27140. It doesn't special case 1-tuples into `BUILD_MAP 1` It may be easier to have `BUILD_CONST_KEY_MAP 1` peepholed if it's really preferable to strength reduce I'm also noticing that it could've been suggested to go to the extreme with

[issue27291] two heap corruption issues when running modified pyc code.

2016-06-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Executing code in any form from untrusted sources can do arbitrary things. If someone can corrupt .pyc data before python executes it, they are just as likely to be able to corrupt other things leading to more direct exploits not even requiring the CPython

[issue22558] Missing doc links to source code for Python-coded modules.

2016-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, new issue, make me nosy, assign to me if allowed, upload patch. Start with "This is a follow to #22558." -- ___ Python tracker

[issue27294] Better repr for Tkinter event objects

2016-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you want more, say so, and I will do them after resting. -- Added file: http://bugs.python.org/file43352/tk-win-key-events.txt ___ Python tracker

Re: the global keyword:

2016-06-11 Thread Marcin Rak
On Saturday, 11 June 2016 19:09:29 UTC-5, MRAB wrote: > On 2016-06-12 00:50, Random832 wrote: > > On Sat, Jun 11, 2016, at 19:44, Marcin Rak wrote: > >> So my question is, how the heck is it possible that I get 5 as the last > >> value printed? the global test_var (global to Test.py) I set to 44

Re: the global keyword:

2016-06-11 Thread Marcin Rak
On Saturday, 11 June 2016 18:51:11 UTC-5, Random832 wrote: > On Sat, Jun 11, 2016, at 19:44, Marcin Rak wrote: > > So my question is, how the heck is it possible that I get 5 as the last > > value printed? the global test_var (global to Test.py) I set to 44 when I > > ran some_function()??? does

[issue22558] Missing doc links to source code for Python-coded modules.

2016-06-11 Thread Yoni Lavi
Yoni Lavi added the comment: Thank you Terry, Nathan and David for your work on this. Sorry about the whitespace issue, I indeed forgot to run patchcheck when I prepared the 3rd patch. Tery, would you like me to prepare a patch for the follow-on you suggested? If so, given that this one is

Re: the global keyword:

2016-06-11 Thread MRAB
On 2016-06-12 00:50, Random832 wrote: On Sat, Jun 11, 2016, at 19:44, Marcin Rak wrote: So my question is, how the heck is it possible that I get 5 as the last value printed? the global test_var (global to Test.py) I set to 44 when I ran some_function()??? does anyone have a clue they could

[issue27194] Tarfile superfluous truncate calls slows extraction.

2016-06-11 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for the patch, Jason. This is now merged and will be available in 3.5.2 and 3.6. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue27194] Tarfile superfluous truncate calls slows extraction.

2016-06-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset b63474aa8a5f by Łukasz Langa in branch '3.5': Issue #27194: superfluous truncate calls in tarfile.py slow down extraction https://hg.python.org/cpython/rev/b63474aa8a5f New changeset a4f918de25e5 by Łukasz Langa in branch 'default': Merge 3.5,

Re: the global keyword:

2016-06-11 Thread Random832
On Sat, Jun 11, 2016, at 19:44, Marcin Rak wrote: > So my question is, how the heck is it possible that I get 5 as the last > value printed? the global test_var (global to Test.py) I set to 44 when I > ran some_function()??? does anyone have a clue they could throw my way? Importing a variable

the global keyword:

2016-06-11 Thread Marcin Rak
Hi to all. I have the following file named Solver.py: * from Test import some_function, my_print from Test import test_var some_function() my_print() print(test_var) * and I have the following Test.py:

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: The two stable buildbots that failed on test_idle before do not now: AMD64 SnowLeapard 1403, AMD64 Win 7 2258. -- stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue25733] Code and IDLE should catch all compile errors.

2016-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Code patch, still needs tests. ppperry, thanks. I may create a temporary big file when large memory tests are allowed. -- keywords: +patch stage: needs patch -> test needed Added file: http://bugs.python.org/file43351/catch_all_syntax_errors.diff

[issue27221] multiprocessing documentation is outdated regarding method picklability

2016-06-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks for the Rietveld comments. I have attached a new patch. -- Added file: http://bugs.python.org/file43350/issue27221-cr.patch ___ Python tracker

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-11 Thread ppperry
Changes by ppperry : -- nosy: -ppperry ___ Python tracker ___ ___ Python-bugs-list

[issue27025] More human readable generated widget names

2016-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "1" looks too similar to "l". -- ___ Python tracker ___ ___

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: ppperry, when I changed this to a doc issue, I added IDLE back as a component because, as I said in my last message, I want to include the facts revealed here in the IDLE doc. -- nosy: +ppperry ___ Python tracker

[issue27294] Better repr for Tkinter event objects

2016-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Next patch decodes the state attribute. Modifier names can be platform depended, please test on Windows. What modifiers correspond Shift, Ctrl, Alt, Win, CapsLock, etc? -- Added file:

[issue24136] document PEP 448: unpacking generalization

2016-06-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks for writing a better patch. The patch looks good to me and it builds correctly. -- ___ Python tracker ___

[issue27025] More human readable generated widget names

2016-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with back-compatibility, suppression of '1' suffix, and numbering, which makes suppressed '1' common. I prefer '1' rather that '0' prefix. Visually, '1' leaves more space between digit and word. Semantically, each component represents 1 of

[issue25733] Code and IDLE should catch all compile errors.

2016-06-11 Thread ppperry
ppperry added the comment: OverflowError is raised when one attempts to compile a string of 2**31 or more characters. -- ___ Python tracker ___

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-11 Thread ppperry
Changes by ppperry : -- components: -IDLE ___ Python tracker ___ ___ Python-bugs-list

[issue27288] secrets should use getrandom() on Linux

2016-06-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I'm interested in implementing this for 3.6, but I'm not sure exactly what the changes are that were decided upon. Is the following accurate? 1. Nothing changes in os (all the necessary changes were made in 3.5.2 already). 2. On Linux 3.17+ only, we add a new

[issue27291] two heap corruption issues when running modified pyc code.

2016-06-11 Thread Park Alex
Park Alex added the comment: oops, I cannot modify reply even I wrote it, want to fix tiny typo. I don't want to bother you guys, I respect python-dev as always. Thanks, -- Alex -- ___ Python tracker

[issue27213] Rework CALL_FUNCTION* opcodes

2016-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I was going to write a patch myself, but since I'm sure in your skills, I yield it to you. -- ___ Python tracker ___

[issue27291] two heap corruption issues when running modified pyc code.

2016-06-11 Thread Park Alex
Park Alex added the comment: I totally agreed with your opinion. So I hesitated before reporting the issue (I thought) It's kinda, we have different point of view. As far as I can tell, python could be corrupted with .pyc like heap-use-after-free, buffer overrun and so on. Again, I agreed

[issue27095] Simplify MAKE_FUNCTION

2016-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now with adding BUILD_CONST_KEY_MAP I think MAKE_FUNCTION can be more compact. -- ___ Python tracker ___

[issue27140] Opcode for creating dict with constant keys

2016-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, I left it for symmetry and for easier modifying if we will add more restrictions on using BUILD_CONST_KEY_MAP. Thank you for your reviews Demur and Benjamin. -- ___ Python tracker

[issue27140] Opcode for creating dict with constant keys

2016-06-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 27b0dbaf0ea8 by Serhiy Storchaka in branch 'default': Issue #27140: Added BUILD_CONST_KEY_MAP opcode. https://hg.python.org/cpython/rev/27b0dbaf0ea8 -- nosy: +python-dev ___ Python tracker

[issue27291] two heap corruption issues when running modified pyc code.

2016-06-11 Thread ppperry
Changes by ppperry : -- title: two heap corruption issue -> two heap corruption issues when running modified pyc code. ___ Python tracker

[issue27291] two heap corruption issue

2016-06-11 Thread STINNER Victor
STINNER Victor added the comment: Hi, corrupted .pyc files are known to be abel to crash Python. What is the point of your bug report? If you are able to execute untrusted .pyc, you can already execute arbitrary code, no? IMHO we should document the limitation of the security of CPython.

[issue10839] email module should not allow some header field repetitions

2016-06-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think we should consider this as an API design bug and backport the fix. This seems to be the exact cause of this week's email address leak at LetsEncrypt: *

[issue27288] secrets should use getrandom() on Linux

2016-06-11 Thread Brett Cannon
Brett Cannon added the comment: It should be mentioned that Guido really doesn't like the idea of os.getrandom() as it exposes stuff where we would rather simply tell people to use the secrets module. -- ___ Python tracker

[issue27288] secrets should use getrandom() on Linux

2016-06-11 Thread Tim Peters
Tim Peters added the comment: I think it's clear Guido would say "#1". The thrust of all his comments to date is that it was a mistake to change the semantics of os.urandom() on Linux (and one other platform? don't really care), and that in 3.6+ only `secrets` should _try_ to supply

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2016-06-11 Thread Oren Milman
Changes by Oren Milman : Added file: http://bugs.python.org/file43347/patchedCPythonTestOutput.txt ___ Python tracker ___

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2016-06-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +mark.dickinson, serhiy.storchaka ___ Python tracker ___

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2016-06-11 Thread Oren Milman
New submission from Oren Milman: current state 1. In Objects/longobject.c in _PyLong_AsUnsignedLongMask, in case v is a multiple-digit int, _PyLong_AsUnsignedLongMask iterates over all of its digits (going from the most to the least significant digit) and does (for

[issue27294] Better repr for Tkinter event objects

2016-06-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 61a92a102b2d by Serhiy Storchaka in branch 'default': Issue #27294: Improved repr for Tkinter event objects. https://hg.python.org/cpython/rev/61a92a102b2d -- nosy: +python-dev ___ Python tracker

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2016-06-11 Thread Oren Milman
Changes by Oren Milman : Added file: http://bugs.python.org/file43348/CPythonTestOutput.txt ___ Python tracker ___

[issue27291] two heap corruption issue

2016-06-11 Thread Park Alex
Park Alex added the comment: all of .pyc files had been altered by fuzzer. original py code is following: $ cat helloworld.py def hello(s=0x4142434445464748): print s if type(s) == str: print s.encode('hex') print repr(s) else: s = str(s) print len(s) <<

[issue27140] Opcode for creating dict with constant keys

2016-06-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: Okay, I think it's fine then. However, you have a for loop in compiler_subkwargs which only executes once. -- ___ Python tracker

[issue27294] Better repr for Tkinter event objects

2016-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Right. This is why I suggested leaving anything we are not sure of to a later patch, after gaining more experience (and thought). However, 'state' behaved strangely in my experiments. In a sequence of about 900 events, it started as 8 (Left Alt according to

[issue22253] ConfigParser does not handle files without sections

2016-06-11 Thread Pedro Lacerda
Pedro Lacerda added the comment: I also never found a mixture of sectionless options followed by sectioned options. So an unnamed section that is also the DEFAULTSECTION will probably work. In this patch when `default_section=None` is passed to `RawConfigParser` it will parse top level

[issue27291] two heap corruption issue

2016-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: poc.zip contains only precompiled files. Could you please provide source files? -- ___ Python tracker ___

[issue27291] two heap corruption issue

2016-06-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +haypo, rhettinger, serhiy.storchaka, stutzbach ___ Python tracker ___

[issue27295] heaps library does not have support for max heap

2016-06-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry James, we don't grow the APIs without sufficient demonstrated need; otherwise, we end-up with API sprawl. People with actual use cases haven't requested behavior (and the occasional one-off gets by negating the numeric argument). That is why the

pytz and Python timezones

2016-06-11 Thread Johannes Bauer
Hi there, first off, let me admit that I have a hard time comprehensively wrapping my head around timezones. Everything around them is much more complicated than it seems, IMO. That said, I'm trying to do things the "right" way and stumbled upon some weird issue which I can't explain. I'm unsure

[issue26556] Update expat to 2.2.1

2016-06-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset d8a0a016d8d4 by Benjamin Peterson in branch '2.7': upgrade expt to 2.1.1 (closes #26556) https://hg.python.org/cpython/rev/d8a0a016d8d4 New changeset bb3ce78572f5 by Benjamin Peterson in branch '3.4': upgrade expt to 2.1.1 (closes #26556)

[issue27294] Better repr for Tkinter event objects

2016-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The key state can be interesting for mouse events too. Ctrl-Click, Shift-Move. Maybe it is worth to omit the output of state=0. Agreed, the 4 mouse positions are pretty noisy. Maybe omit root_x and root_y? But mouse position can be relevant for such key

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Oh right, requires('gui') does not work at module level in 2.7. This should fix. Will try to check next round of bot builds. -- ___ Python tracker

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 274308a3b8b6 by Terry Jan Reedy in branch '2.7': Issue #5124: For 2.7, move requires('gui') from module level to setUpClass. https://hg.python.org/cpython/rev/274308a3b8b6 -- ___ Python tracker

[issue27294] Better repr for Tkinter event objects

2016-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Summary: Though I would like to see some refinements, this looks really useful as is and I would like it applied soon even if refinements have to wait for a second patch. Moving the window did not generate a printed event. I like the compact way of handling

[issue27277] Fatal Python error: Segmentation fault in test_exceptions

2016-06-11 Thread Rohit Mediratta
Rohit Mediratta added the comment: It's set to 1000, I didnt change during install, so it's likely set to the default value. >>> import sys >>> sys.getrecursionlimit() 1000 I also have a lot of memory free (87G) to run scripts (should be able to handle without running into issues)

[issue26565] [ctypes] Add value attribute to non basic pointers.

2016-06-11 Thread Memeplex
Memeplex added the comment: Martin, there were two reasons: 1. Conciseness: addressof(p.contents) vs. p.value. 2. Uniformity: I expect the value of a pointer to be the address it points to. Then Eryk pointed out that p.value has already another meaning for simple pointer types, so (2) can't

[issue20508] IndexError from ipaddress._BaseNetwork.__getitem__ has no message

2016-06-11 Thread Gareth Rees
Gareth Rees added the comment: Thank you for applying this patch. -- ___ Python tracker ___ ___

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-11 Thread Ned Deily
Ned Deily added the comment: Terry, the 2.7 version of the test changes is causing buildbot and test_idle failures when the "gui" condition is not met. See, for example, http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%202.7/builds/1400. -- stage: resolved -> needs patch

[issue27297] Add support for /dev/random to "secrets"

2016-06-11 Thread Donald Stufft
Donald Stufft added the comment: > It's just that the manpage for urandom (and in fact the comments in the > source code for /dev/random and /dev/urandom) both recommend using > /dev/random for these long-lived cryptographic keys. It's a hedge because of the bad behavior of /dev/urandom on

[issue27294] Better repr for Tkinter event objects

2016-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Testing now. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27025] More human readable generated widget names

2016-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated. 1. The prefix "0" is used for generated names. This keeps the old rule (generated names start from a digit and are not valid Python identifier) and looks less striking than "_". 2. Lowercased Python class name is used as a base name for

  1   2   >