[issue27378] remove ref to Phil Schwartz's 'Kodos' in regex HOWTO

2016-06-23 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue27378] remove ref to Phil Schwartz's 'Kodos' in regex HOWTO

2016-06-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 23182404a85c by Berker Peksag in branch '3.5': Issue #27378: Remove an outdated reference from regex HOWTO https://hg.python.org/cpython/rev/23182404a85c New changeset 21cb299a9626 by Berker Peksag in branch 'default': Issue #27378: Merge from 3.5

[issue27364] Deprecate invalid unicode escape sequences

2016-06-23 Thread Emanuel Barry
Emanuel Barry added the comment: I found the cause of the failed assertion, an invalid escape sequence slipped through in a file. Patch attached (also with Serhiy's comments). It worries me a little though that pure Python code can cause a hard crash. Ok, it worries me a lot. Please don't

[issue27371] Runaway memory consumption using tkinter update()

2016-06-23 Thread Jeremy Blow
Jeremy Blow added the comment: Confirmed the problem is with Tk/MacOS. Running a simple TCL script yielded the same behavior in terms of memory. The hunt goes elsewhere... Thank you R. David for the suggestion. ``` package require Tk while 1 { update } ``` # MacOS 10.9.4 /Users/jeremy$

[issue27364] Deprecate invalid unicode escape sequences

2016-06-23 Thread Emanuel Barry
Emanuel Barry added the comment: Thanks, didn't find that one. Apparently Guido's stance is "Make this a silent warning, then we can discuss about preventing it later", which happens to be what I'm doing here. -- ___ Python tracker

[issue27364] Deprecate invalid unicode escape sequences

2016-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There was a long discussion on Python-Dev. [1] Guido taken part in it. [1] http://comments.gmane.org/gmane.comp.python.devel/151612 -- nosy: +serhiy.storchaka ___ Python tracker

[issue27380] IDLE: add base Query dialog with ttk widgets

2016-06-23 Thread Terry J. Reedy
New submission from Terry J. Reedy: The custom popup entry dialogs in config_sec and config_help have a common structure and overlapping code. When one hits OK and the entry is not valid, both display a specific message and let the user edit the entry (or Cancel). File => Load Module, on the

[issue27364] Deprecate invalid unicode escape sequences

2016-06-23 Thread Emanuel Barry
Emanuel Barry added the comment: Yes, it's in use in an awful lot of places (see my patch). The proper fix is to use raw strings, or, if you need actual escapes in the same string, manually escape them. However, as you'll see by looking at the patch, the vast majority of cases are fixed by

[issue20842] pkgutil docs should reference glossary terms not PEP 302

2016-06-23 Thread Martin Panter
Martin Panter added the comment: See also Issue 26896. Apparently some of the terms you are linking are used wrongly. -- nosy: +martin.panter ___ Python tracker

[issue26537] ConfigParser has optionxform, but not sectionxform

2016-06-23 Thread Xiang Zhang
Xiang Zhang added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27377] Add smarter socket.fromfd()

2016-06-23 Thread Martin Panter
Martin Panter added the comment: Maybe if the patch was regenerated with Mercurial off a public revision, it would work with Rietveld. I have seen non-Mercurial patches work too though. Perhaps this one doesn’t because the line numbers are off compared to the default branch? See also Issue

[issue13344] closed sockets don't raise EBADF anymore

2016-06-23 Thread Martin Panter
Martin Panter added the comment: According to strace, Python 3 is calling send(-1, ...): sendto(-1, "x", 1, 0, NULL, 0) = -1 EBADF (Bad file descriptor) A related discrepancy between Python 2 and 3 is how the socket.makefile() objects affect the original socket. In Python 2: >>> f =

[issue27365] Allow non-ascii chars in IDLE NEWS.txt (for contributor names)

2016-06-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset cbc6407fa393 by Terry Jan Reedy in branch '2.7': Issue #27365: Add blank lines. to 2.7 test_editmenu https://hg.python.org/cpython/rev/cbc6407fa393 -- ___ Python tracker

[issue27371] Runaway memory consumption using tkinter update()

2016-06-23 Thread Jeremy Blow
Jeremy Blow added the comment: That seems like a good idea, will do so and report back findings. Hey, good meeting you at PyCon, by the way. Met you at the freelance open space. :-) -- ___ Python tracker

[issue27371] Runaway memory consumption using tkinter update()

2016-06-23 Thread R. David Murray
R. David Murray added the comment: You might want to try stripping it further, and see if you can reproduce it just using tk, without python involved. -- nosy: +r.david.murray title: Runaway memory consumption using update() -> Runaway memory consumption using tkinter update()

[issue27363] Complex with negative zero imaginary part

2016-06-23 Thread Vedran Čačić
Vedran Čačić added the comment: Funny, I thought the "repr invariant" was exactly the opposite thing, that _eval_ (or literal_eval) of repr should give back the starting object. And that's what I intended to preserve here. It's obviously broken now. Ok, alternate suggestion: can at least

[issue27376] Add mock_import method to mock module

2016-06-23 Thread SilentGhost
Changes by SilentGhost : -- nosy: +michael.foord stage: -> patch review ___ Python tracker ___

[issue27377] Add smarter socket.fromfd()

2016-06-23 Thread SilentGhost
SilentGhost added the comment: The patch applies cleanly, not sure why the rietveld link doesn't appear. Perhaps because of the extension? In test, I noticed, that you're not testing that OSError is raised, perhaps something to add? -- nosy: +SilentGhost

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread Stefan Krah
Changes by Stefan Krah : -- components: +Tests -Build, Installation resolution: fixed -> duplicate status: open -> closed type: compile error -> behavior ___ Python tracker

[issue27378] remove ref to Phil Schwartz's 'Kodos' in regex HOWTO

2016-06-23 Thread Matt Morrison
New submission from Matt Morrison: In the Regular Expressions HOWTO (https://docs.python.org/3/howto/regex.html#performing-matches, Doc/howto/regex.rst), there is the following paragraph: = You can learn about this by interactively experimenting with the :mod:`re` module. If you have

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread raphi rose
Changes by raphi rose : -- resolution: -> fixed ___ Python tracker ___ ___

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread raphi rose
raphi rose added the comment: ok great, thanks for your help! -- components: +Build, Installation -Tests resolution: duplicate -> status: closed -> open type: behavior -> compile error ___ Python tracker

[issue27377] Add smarter socket.fromfd()

2016-06-23 Thread Neil Schemenauer
Changes by Neil Schemenauer : Removed file: http://bugs.python.org/file43523/fromfd2.txt ___ Python tracker ___

[issue27377] Add smarter socket.fromfd()

2016-06-23 Thread Neil Schemenauer
Neil Schemenauer added the comment: Add documentation for new functions. -- Added file: http://bugs.python.org/file43524/fromfd2.txt ___ Python tracker

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread Stefan Krah
Stefan Krah added the comment: Ah, so the tests pass when you run them manually but "make test" fails. This looks like https://bugs.python.org/issue26837 , which is fixed in the next release. You can just ignore this failure, it's harmless. [BTW, using autoremove is fine.] --

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread raphi rose
raphi rose added the comment: also, after installing this library liblzma-dev it said that i had redundant files (not in those words) and that I should run "apt-get autoremove," which I did, this may have been what caused the other failures? -- ___

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread raphi rose
raphi rose added the comment: the test_ssl rrose@intern:~/temp/Python-3.5.1$ ./python -m test -v test_ssl == CPython 3.5.1 (default, Jun 23 2016, 15:03:20) [GCC 4.8.4] == Linux-3.13.0-88-generic-x86_64-with-debian-jessie-sid little-endian == hash algorithm: siphash24 64bit ==

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread raphi rose
raphi rose added the comment: the test_httplib rrose@intern:~/temp/Python-3.5.1$ ./python -m test -v test_httplib == CPython 3.5.1 (default, Jun 23 2016, 15:03:20) [GCC 4.8.4] == Linux-3.13.0-88-generic-x86_64-with-debian-jessie-sid little-endian == hash algorithm: siphash24 64bit ==

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread raphi rose
raphi rose added the comment: the test_nntplib rrose@intern:~/temp/Python-3.5.1$ ./python -m test -v test_nntplib == CPython 3.5.1 (default, Jun 23 2016, 15:03:20) [GCC 4.8.4] == Linux-3.13.0-88-generic-x86_64-with-debian-jessie-sid little-endian == hash algorithm: siphash24 64bit ==

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread raphi rose
raphi rose added the comment: hmm, well i installed all the ones you told me to, ran make test again, and now it comes up with ERROR: test_article_head_body (test.test_nntplib.NetworkedNNTPTests) -- Traceback (most recent call

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread Stefan Krah
Stefan Krah added the comment: I think you need tcl8.4-dev and tk8.4-dev and perhaps zlib1g-dev. Actually the point is that it's expected that some modules don't build if the corresponding libraries aren't installed. -- ___ Python tracker

[issue20674] Update comments in dictobject.c

2016-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Completely remove all reference to strings as it is normally completely wrong. In three runs of list(map(hash, ("namea", "nameb", "namec", "named"))) I get [-7801965690653662103, -712276634514874737, 4394438508544812081, -6975951345912708912] [-1171799829,

[issue27377] Add smarter socket.fromfd()

2016-06-23 Thread Neil Schemenauer
New submission from Neil Schemenauer: When implementing server software that inherits a socket via a file descriptor, it is useful to be able to query the descriptor and find out what kind of socket has been passed. This can be done with getsockopt() and getsockname(). Python does not

[issue27172] Undeprecate inspect.getfullargspec()

2016-06-23 Thread Nick Coghlan
Nick Coghlan added the comment: OK, as per the above discussion, I've changed the title of this issue to be to undeprecate inspect.getfullargspec(). That change involves two pieces: - change the documented deprecation of inspect.getfullargspec() to instead be a recommendation to avoid using

[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-06-23 Thread Ryan Petrello
Ryan Petrello added the comment: Nick, That seems reasonable to me :) I've updated my library to just use inspect.getfullargspec for Py3. Thanks for taking the time to walk through this with me! -- ___ Python tracker

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread raphi rose
raphi rose added the comment: the only one listed as dev was "tcl-snack-dev - Sound extension to Tcl/Tk and Python/Tkinter - development files," or instead of doing that one should i just use "python3-tk - Tkinter - Writing Tk applications with Python 3.x" and put a "-dev" at the end of the

[issue27376] Add mock_import method to mock module

2016-06-23 Thread Eyal Posener
New submission from Eyal Posener: Add mock_import method. A helper function to mask ``ImportError``s on a scoped code, using the ``with`` statement, or in method a method used as a decorator. Failed imports will be ignored, unless specified by the *do_not_mock* argument. The *do_not_mock*

[issue20842] pkgutil docs should reference glossary terms not PEP 302

2016-06-23 Thread Jaysinh shukla
Jaysinh shukla added the comment: Submitting the patch for this issue. I observed the last message of respected Kushal but because the message was posted too earlier decided to submit patch. Thanks! -- keywords: +patch nosy: +jaysinh.shukla Added file:

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread Stefan Krah
Stefan Krah added the comment: You need to install at least these development libraries: sudo apt-get install libssl-dev liblzma-dev libbz2-dev libreadline-dev libgdbm-dev libffi-dev Possibly some are missing in this list, tkinter and zip for example. Use "apt-cache search tkinter" to figure

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread raphi rose
Changes by raphi rose : -- components: -Tests ___ Python tracker ___ ___

[issue27350] Compact and ordered dict

2016-06-23 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file43520/compact-dict.patch ___ Python tracker ___

[issue27375] error in "make test", while trying to install python on linux computer

2016-06-23 Thread raphi rose
New submission from raphi rose: I am using ubuntu 14.04, and I am trying to install a newer version of python, instead of 2.7.6 I'm trying to use 3.5.1. to do this I downloaded the tar.xz file, extracted it to a directory in my computer (not the /usr/local/bin/). I then went into the terminal

[issue27344] zipfile *does* support utf-8 filenames

2016-06-23 Thread Daniel Holth
Daniel Holth added the comment: The documentation should read The ZIP file format supports Unicode filenames. If you have unicode filenames, zipfile will encode them to and from utf-8 internally, but if you pass bytes filenames to write() then they will be stored without a specified encoding.

[issue27364] Deprecate invalid unicode escape sequences

2016-06-23 Thread Antti Haapala
Antti Haapala added the comment: it is handy to be able to use `\w` and `\d` in non-raw-string *regular expressions*, without too much backslashitis. Seems to be in use in Python standard library as well, for example in csv.py -- nosy: +ztane ___

[issue27344] zipfile *does* support utf-8 filenames

2016-06-23 Thread Daniel Holth
Daniel Holth added the comment: " ... zipfile will encode them to and from utf-8 internally, and the encoding is marked in a standard flag inside the archive member." -- ___ Python tracker

[issue27344] zipfile *does* support utf-8 filenames

2016-06-23 Thread Daniel Holth
Daniel Holth added the comment: The current documentation says "Note There is no official file name encoding for ZIP files. If you have unicode file names, you must convert them to byte strings in your desired encoding before passing them to write(). WinZip interprets all file names as

[issue27373] logging.handlers.SysLogHandler with TCP not working on rsyslog5.8

2016-06-23 Thread Vinay Sajip
Vinay Sajip added the comment: If it works fine with rsyslog 8.19 but fails with rsyslog 5.8, what exactly is logging doing wrong? How is rsyslog configured in the two cases? How exactly was the fail.log generated (I know you said tcpdump was used, but can you provide more detail)? I'm not

[issue27364] Deprecate invalid unicode escape sequences

2016-06-23 Thread Emanuel Barry
Emanuel Barry added the comment: Now I have! I found nothing on Python-Dev, but apparently it's been discussed on Python-ideas before: https://mail.python.org/pipermail/python-ideas/2015-August/035031.html Guido hasn't participated in that discussion, and most of it was "This will break

[issue27344] zipfile *does* support utf-8 filenames

2016-06-23 Thread R. David Murray
R. David Murray added the comment: OK, what do you propose as a documentation change? The current doc is accurate, but incomplete. New phrasing could include something about the two de-facto standards but that one can not be sure that filenames will be in one of those two encodings. Issue

[issue27374] Cygwin: Makefile does not install DLL import library

2016-06-23 Thread Erik Bray
New submission from Erik Bray: When building Python on Cygwin, both a libpython-X.Y.dll and a libpython-X.Y.dll.a are created (see https://cygwin.com/cygwin-ug-net/dll.html). The latter is an "import library" consisting of stubs for functions in the DLL so that it can be linked to statically

[issue27033] Change the decode_data default in smtpd to False

2016-06-23 Thread R. David Murray
R. David Murray added the comment: Yes. Thanks, Serhiy. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue27364] Deprecate invalid unicode escape sequences

2016-06-23 Thread R. David Murray
R. David Murray added the comment: Have you searched the python-dev and python-ideas archives for the previous discussions of this issue? I don't remember for sure, but I think Guido might have made a ruling (not that the discussion couldn't be reopened if he has, but, well...) --

[issue27363] Complex with negative zero imaginary part

2016-06-23 Thread R. David Murray
R. David Murray added the comment: Breaking the repr invariant would be bad. Agree with rejection. -- nosy: +r.david.murray resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue14354] Crash in _ctypes_alloc_callback

2016-06-23 Thread Berker Peksag
Changes by Berker Peksag : -- components: +ctypes -Benchmarks stage: -> resolved superseder: -> ctypes: unions as arguments ___ Python tracker

[issue27373] logging.handlers.SysLogHandler with TCP not working on rsyslog5.8

2016-06-23 Thread 吴冉波
New submission from 吴冉波: logging.handlers.SysLogHandler with TCP not working on rsyslog5.8, but newer version rsyslog8.19 is fine. I use SysLogHandler with TCP to send message to remote rsyslog server failed, but success with bash below: echo "<133>$0[$$]: Test syslog message from Netcat" |

[issue27371] Runaway memory consumption using update()

2016-06-23 Thread SilentGhost
Changes by SilentGhost : -- nosy: +gpolo, serhiy.storchaka ___ Python tracker ___ ___

[issue14061] Misc fixes and cleanups in archiving code in shutil and test_shutil

2016-06-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: -Python 3.4 Added file: http://bugs.python.org/file43517/shutil_make_archive_misc_2.patch ___ Python tracker

[issue25572] _ssl doesn't build on OSX 10.11

2016-06-23 Thread Caleb Hattingh
Caleb Hattingh added the comment: I struggled with this issue, and eventually found the recommendations about linking with homebrew's OpenSSL on StackOverflow or similar, and then only later found this issue here (and with it the link to the devguide); but the *first* places I looked were the