[issue21973] Idle should not quit on corrupted user config files

2014-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: config-xyz.bad? I have not look at the tests, but they should be relevant, just in need of changing to using mock message boxes from idle_test/mock_tk.py. -- ___ Python tracker _

[issue22120] Return converter code generated by Argument Clinic has a warning for unsigned types

2014-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: larry.fix.unsigned.int.return.-1.converter.cast.1.txt LGTM. Victor, looks as you should open new issue for fix_warnings.patch. This is large patch and requires long time for careful review and may be discussion. -- assignee: -> larry components: +Bu

[issue22133] IDLE: Set correct WM_CLASS on X11

2014-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > And for turtledemo and other gui demos too. No, this is not needed because they are not installed as separate applications and have not specific .desctop file. As said on https://wiki.gnome.org/Projects/GnomeShell/ApplicationBased: """ To ensure the GNOME

[issue22130] Logging fileConfig behavior does not match documentation

2014-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 17e1af9ad66c by Vinay Sajip in branch '2.7': Issue #22130: Corrected fileConfig() documentation. http://hg.python.org/cpython/rev/17e1af9ad66c New changeset 734d5ab0ce6a by Vinay Sajip in branch '3.4': Issue #22130: Corrected fileConfig() documentat

[issue22120] Return converter code generated by Argument Clinic has a warning for unsigned types

2014-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c949e0115e2 by Larry Hastings in branch 'default': Issue #22120: For functions using an unsigned integer return converter, http://hg.python.org/cpython/rev/9c949e0115e2 -- nosy: +python-dev ___ Python tr

[issue22120] Return converter code generated by Argument Clinic has a warning for unsigned types

2014-08-05 Thread Larry Hastings
Larry Hastings added the comment: Fixed and closed. I'm assuming Victor will break the other patch out into its own issue. Since IIUC there's no code in 3.4 that uses an unsigned integer return converter, I'm not backporting the fix. -- resolution: -> fixed stage: commit review -> r

[issue22127] performance regression in socket getsockaddrarg()

2014-08-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: I have updated my patch per the review. -- Added file: http://bugs.python.org/file36267/skip_idna.diff ___ Python tracker ___ _

[issue22127] performance regression in socket getsockaddrarg()

2014-08-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: Serhiy: your patch still changes the type of exception, for s.sendto(b'hello',(u'thisisaverylongstringthisisaverylongstringthisisaverylongstringthisisaverylongstring', 4242)) You get a UnicodeError now, but a socket.gaierror then. This is because the name e

[issue22136] Fix _tkinter compiler warnings on MSVC

2014-08-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: Serhiy: See http://svn.python.org/projects/external/tcl-8.6.1.0/generic/tclDecls.h where it now is EXTERN CONST86 Tcl_ObjType * Tcl_GetObjType(const char *typeName); I think the patch is wrong as it stands, as "const" is not a reserved word in C89. Instead,

[issue22139] python windows 2.7.8 64-bit wrong binary version

2014-08-05 Thread Andreas Richter
New submission from Andreas Richter: Having the following problem. 1. Download 2.7.8 64-bit windows msi 2. Install it 3. Run python ... says it's 2.7.6 4. Execute import hmac 5. Error Output: C:\prototype>python Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] on win32

[issue22139] python windows 2.7.8 64-bit wrong binary version

2014-08-05 Thread Andreas Richter
Andreas Richter added the comment: Also note Even though I install 2.7.8 msi the python command line says that it's running 2.7.5 -- ___ Python tracker ___ _

[issue22133] IDLE: Set correct WM_CLASS on X11

2014-08-05 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: >>Is "class_='IDLE'" works when only IDLE for Python 3 (not for Python 2) is >>installed? Shouldn't it be 'IDLE3'? I tried class_="IDLE"(or any other string) for python2 repo build, and it works. Most applications on Gnome set it to just the name of the

[issue22127] performance regression in socket getsockaddrarg()

2014-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Serhiy: your patch still changes the type of exception, for Oh, really. > I'm fine with either being applied. Antoine? May be apply your Argument Clinic friendly patch to 3.5 and simple patch to earlier versions? -- _

[issue22140] "python-config --includes" returns a wrong path (double prefix)

2014-08-05 Thread Michael Dussere
New submission from Michael Dussere: Our python is installed on a shared directory that is accessed through a symbolic link. $ which python3.4-config /Produits/publics/x86_64.Linux.RH6/python/3.4.1/bin/python3.4-config $ ls -al /Produits lrwxrwxrwx 1 root root 13 Oct 31 2013 /Produits -> /nfs

[issue22130] Logging fileConfig behavior does not match documentation

2014-08-05 Thread Brendan Meeder
Brendan Meeder added the comment: Hi there, I appreciate the change to documentation but still find the updated wording misleading. Existing loggers are not "left enabled," implying that existing loggers that were disabled before the call to fileConfig remain disabled after the call to file

[issue22136] Fix _tkinter compiler warnings on MSVC

2014-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Serhiy: See > http://svn.python.org/projects/external/tcl-8.6.1.0/generic/tclDecls.h > where it now is > EXTERN CONST86 Tcl_ObjType * Tcl_GetObjType(const char *typeName); Oh, my fault. I did not notice that my tcl workspace was switched to 8.3 branch. > I

[issue22127] performance regression in socket getsockaddrarg()

2014-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Martin's approach looks better to me; also, it could be exported for other modules (for example, the ssl module also requests idna encoding at one place). I don't know if this should be fixed in 3.4. It's a performance improvement, not really a bug fix. -

[issue22136] Fix _tkinter compiler warnings on MSVC

2014-08-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: I see. So the patch is fine indeed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue22127] performance regression in socket getsockaddrarg()

2014-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset bc991d4f9ce7 by Martin v. Löwis in branch 'default': Issue #22127: Bypass IDNA for pure-ASCII host names (in particular for numeric IPs). http://hg.python.org/cpython/rev/bc991d4f9ce7 New changeset 0b477934e0a1 by Martin v. Löwis in branch 'default

[issue22127] performance regression in socket getsockaddrarg()

2014-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 49085b746029 by Martin v. Löwis in branch 'default': Issue #22127: fix typo. http://hg.python.org/cpython/rev/49085b746029 -- ___ Python tracker __

[issue22127] performance regression in socket getsockaddrarg()

2014-08-05 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22127] performance regression in socket getsockaddrarg()

2014-08-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: I agree that this doesn't need to be back ported to 3.4, in particular as there is a minor semantic change (for invalid labels, it might perform a DNS lookup, instead of rejecting them right away). -- ___ Python tr

[issue22133] IDLE: Set correct WM_CLASS on X11

2014-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think we should use class_="IDLE3" (or class_="Idle3") on Python 3. I did not check, but I suppose this should has following effects on Gnome Shell: * Gnome Shell should display IDLE icon from desktop file in different places. * When IDLE is launched, click

[issue21965] Add support for Memory BIO to _ssl

2014-08-05 Thread Ben Darnell
Ben Darnell added the comment: Looks good to me. I've added exarkun and glyph to the nosy list since Twisted's experience with PyOpenSSL may provide useful feedback even though Twisted will presumably stick with what they've got instead of switching to this new interface. -- nosy: +e

[issue21965] Add support for Memory BIO to _ssl

2014-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, this would allow ProactorEventLoop to support SSL, since it decouples the SSL protocol handling from the actual socket I/O. -- nosy: +sbt ___ Python tracker __

[issue22139] python windows 2.7.8 64-bit wrong binary version

2014-08-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you please print sys.executable? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list m

[issue20056] Got deprecation warning when running test_shutil.py on Windows NT 6

2014-08-05 Thread Vajrasky Kok
Vajrasky Kok added the comment: Okay, here is the problem. In Windows, you get DeprecationWarning if you pass bytes object to method such as os.lstat. foo.py == import os os.lstat(b"C:\\Users\\vajrasky\\Code\\cpython\\python.bat") C:\Users\vajrasky\Code\cpython>python.bat -Wdefault foo.py

[issue20056] Got deprecation warning when running test_shutil.py on Windows NT 6

2014-08-05 Thread Zachary Ware
Zachary Ware added the comment: Perhaps you could change the test to catch the warning and confirm its presence on Windows? -- ___ Python tracker ___

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-08-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I like it. Thanks for the contribution! Assigning to myself since I plan on working to land this in 3.5. -- assignee: -> barry ___ Python tracker _

[issue22136] Fix _tkinter compiler warnings on MSVC

2014-08-05 Thread Zachary Ware
Zachary Ware added the comment: Thank you both for the reviews! Embarrassingly, I just realized that I didn't post the patch I meant to; in quickly reconstructing the patch after accidentally destroying a previous version, I made it "Tcl_ObjType const *SomeType;" instead of "const Tcl_ObjType

[issue22139] python windows 2.7.8 64-bit wrong binary version

2014-08-05 Thread Zachary Ware
Zachary Ware added the comment: This seems very odd; I'm skeptical that this is a bug with Python or its installer. A few questions to try to narrow things down: 1) Did you already have a version of Python installed, what version, and where? 2) Where did you install 2.7.8? 3) What output do yo

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8af80d68bcdc by Barry Warsaw in branch 'default': - Issue #21539: Add a *exists_ok* argument to `Pathlib.mkdir()` to mimic http://hg.python.org/cpython/rev/8af80d68bcdc -- nosy: +python-dev ___ Python tra

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-08-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22136] Fix _tkinter compiler warnings on MSVC

2014-08-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: "const T" and "T const" are the same type. This compiles, and all variables have the same type: int main() { const volatile int a; const int volatile b; int const volatile c; volatile int const d; volatile int const etc; } Even "volatile short const

[issue21972] Bugs in the lexer and parser documentation

2014-08-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: The ellipsis is also mentioned: "A sequence of three periods has a special meaning as an ellipsis literal." -- ___ Python tracker ___

[issue22136] Fix _tkinter compiler warnings on MSVC

2014-08-05 Thread Zachary Ware
Zachary Ware added the comment: I see. There doesn't appear to be anything in PEP 7 about this; do we have a style preference for this that applies here? Or should I just shut up and commit it? :) -- ___ Python tracker

[issue21972] Bugs in the lexer and parser documentation

2014-08-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: The PEP 401 joke actually works: >>> from __future__ import barry_as_FLUFL >>> 3<>4 True I'll add a smiley -- ___ Python tracker ___

[issue21972] Bugs in the lexer and parser documentation

2014-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 57740d19f5c2 by Martin v. Löwis in branch 'default': Issue #21972: Make it clear that the PEP 401 future import works, http://hg.python.org/cpython/rev/57740d19f5c2 -- nosy: +python-dev ___ Python tracker

[issue22141] rlcompleter.Completer matches too much

2014-08-05 Thread Lorenz Quack
New submission from Lorenz Quack: Example: >>> completer = rlcompleter.Completer() >>> class A(object): ... def foo(): pass ... def foobar(): pass >>> completer.complete("A.foo(", 0) 'A.foo(' >>> completer.complete("A.foo(", 1) 'A.foobar(' I consider the last match a bug. The root of

[issue22142] PEP 465 operators not described in lexical_analysis

2014-08-05 Thread Martin v . Löwis
New submission from Martin v. Löwis: As a side comment in #21972, it was noted that @= is not currently documented as an assignment operator. In addition, @ is mentioned as a delimiter, but not as an operator. https://docs.python.org/3.5/reference/lexical_analysis.html -- messages: 22

[issue21972] Bugs in the lexer and parser documentation

2014-08-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: I've moved the @ operator into #22142. With that, it seems to me that all aspects of this report are resolved. François-René, for the future, please submit an individual bug report for each independent issue; this makes it easier tracking what has and hasn't

[issue21972] Bugs in the lexer and parser documentation

2014-08-05 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22136] Fix _tkinter compiler warnings on MSVC

2014-08-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: Grepping through the source shows that currently, the const always goes before the type (for char, wchar_t, Py_UCS2, and int). So please do this style adjustment and commit. -- ___ Python tracker

[issue22143] rlcompleter.Completer has duplicate matches

2014-08-05 Thread Lorenz Quack
New submission from Lorenz Quack: Example: >>> import rlcompleter >>> completer = rlcompleter.Completer() >>> class A(object): ... foo = None >>> class B(A): ... pass >>> b = B() >>> print([completer.complete("b.foo", i) for i in range(4)]) ['b.foo', 'b.foo', 'b.foo', None] I would expec

[issue22143] rlcompleter.Completer has duplicate matches

2014-08-05 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review type: -> behavior versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___

[issue22141] rlcompleter.Completer matches too much

2014-08-05 Thread Lorenz Quack
Lorenz Quack added the comment: attached the mini patch changing the regular expression in the proposed way -- keywords: +patch Added file: http://bugs.python.org/file36269/rlcompleter.diff ___ Python tracker _

[issue22144] ellipsis needs better display in lexer documentation

2014-08-05 Thread François-René Rideau
New submission from François-René Rideau: As a followup to http://bugs.python.org/issue21972 The ellipsis (three dots) should be displayed in the box on top of section 2.6 of the reference manual, and not just in the text below: https://docs.python.org/3.5/reference/lexical_analysis.html -

[issue22133] IDLE: Set correct WM_CLASS on X11

2014-08-05 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: "Saimadhav, please try class_="Idle" (title case). I suppose that IDLE's activity bar entry will be named "IDLE" (upper case), because Gnome Shell will get the name from IDLE's desktop file (/usr/share/applications/idle.desktop)." No. It stays "Idle". Also

[issue22145] <> in parser spec but not lexer spec

2014-08-05 Thread François-René Rideau
New submission from François-René Rideau: As another follow up to http://bugs.python.org/issue21972 <> is mentioned in the parser spec: https://docs.python.org/3.5/reference/grammar.html But not in the lexer spec: https://docs.python.org/3.5/reference/lexical_analysis.html Either is a mistake

[issue22114] You cannot call communicate() safely after receiving an exception (EINTR or EAGAIN)

2014-08-05 Thread Amrith Kumar
Amrith Kumar added the comment: The issue turned out to be something funky in monkey patching. os.read() shouldn't be getting called if the monkey patch was correct in the first place. -- resolution: -> not a bug status: open -> closed ___ Python t

[issue22136] Fix _tkinter compiler warnings on MSVC

2014-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ed237478fcc by Zachary Ware in branch 'default': Closes #22136: Fix MSVC compiler warnings introduced by #22085 http://hg.python.org/cpython/rev/7ed237478fcc -- nosy: +python-dev resolution: -> fixed stage: commit review -> resolved status

[issue22136] Fix _tkinter compiler warnings on MSVC

2014-08-05 Thread Zachary Ware
Zachary Ware added the comment: Done and done. Thank you very much, Martin. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue22085] Drop support of Tk 8.3

2014-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ed237478fcc by Zachary Ware in branch 'default': Closes #22136: Fix MSVC compiler warnings introduced by #22085 http://hg.python.org/cpython/rev/7ed237478fcc -- ___ Python tracker

[issue20056] Got deprecation warning when running test_shutil.py on Windows NT 6

2014-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: with self.assertWarns(DeprecationWarning) if windows else contextlib.ExitStack(): shutil.rmtree(victim) -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue20977] pyflakes: undefined "ctype" in 2 except blocks in the email module

2014-08-05 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue21448] Email Parser use 100% CPU

2014-08-05 Thread R. David Murray
R. David Murray added the comment: Serhiy: there was an issue with /r/n going across a chunk boundary that was fixed a while back, so there should be a test for that (I hope). As for how to handle line breaks, backward compatibility applies: we have to continue to do what we did before, and it

[issue22142] PEP 465 operators not described in lexical_analysis

2014-08-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___ Pyth

[issue22118] urljoin fails with messy relative URLs

2014-08-05 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue22118] urljoin fails with messy relative URLs

2014-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: The thing is, urljoin() isn't HTTP-specific, and such URLs *may* make sense for other protocols. -- nosy: +pitrou ___ Python tracker ___ __

[issue22137] Test imaplib API on all methods specified in RFC 3501

2014-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps you need to close the client connection explicitly? (i.e. shutdown()) -- ___ Python tracker ___

[issue21448] Email Parser use 100% CPU

2014-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should this be categorized as a security issue? You could easily DoS a server with that (email.parser is used by http.client to parse HTTP headers, it seems). -- nosy: +christian.heimes, pitrou ___ Python tracker

[issue22130] Logging fileConfig behavior does not match documentation

2014-08-05 Thread Vinay Sajip
Vinay Sajip added the comment: Actually, 'left enabled' means that they are left in an enabled state when the fileConfig() code is finished with them. This is unconnected with whatever state they might have had before the call to fileConfig(). I'm not sure it's worth belabouring the point too

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-08-05 Thread Tuikku Anttila
Tuikku Anttila added the comment: Added mention that an error might also be raised if the method is not available. -- Added file: http://bugs.python.org/file36270/22046_1.patch ___ Python tracker __

[issue21091] EmailMessage.is_attachment should be a method

2014-08-05 Thread R. David Murray
R. David Murray added the comment: is_multipart is *not* part of the provisional API, though; only is_attachment is. So per my understanding of the provisional rules, we should either make is_attachment a method in both 3.4 maint and 3.5, or make is_multipart emit a deprecation warning in 3.5

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-08-05 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue22118] urljoin fails with messy relative URLs

2014-08-05 Thread Mike Lissner
Mike Lissner added the comment: @pitrou, I haven't delved into URLs in a long while, but the general idea is: scheme://domain:port/path?query_string#fragment_id When would it ever make sense to have something up a level from the root of the domain? --

[issue22129] Please add an equivalent to QString::simplified() to Python strings

2014-08-05 Thread R. David Murray
R. David Murray added the comment: Actually, we more or less already do have this function in the stdlib, (I'd guess it is for pretty much the same reason that QT has it), except ours can also truncate sensibly to a given width: >>> import textwrap >>> textwrap.shorten(' lots\t of\nwhites

[issue22118] urljoin fails with messy relative URLs

2014-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, according to RFC 3986, it seems you are right and we should remove extraneous leading "/../" and "/./" components in the path. http://tools.ietf.org/html/rfc3986#section-5.4 -- nosy: +ncoghlan ___ Python tr

[issue22118] urljoin fails with messy relative URLs

2014-08-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22137] Test imaplib API on all methods specified in RFC 3501

2014-08-05 Thread Milan Oberkirch
Milan Oberkirch added the comment: Okay that was stupid from me (it was 5am when I submitted it), sorry. -- Added file: http://bugs.python.org/file36271/imaplib_test_rfc3501v2.patch ___ Python tracker _

[issue22146] Error message for __build_class__ contains typo

2014-08-05 Thread A Kaptur
New submission from A Kaptur: One of the error messages for __build_class__ has an extra underscore in the middle. -- files: build_class_typo.patch keywords: patch messages: 224874 nosy: akaptur priority: low severity: normal status: open title: Error message for __build_class__ contain

[issue22146] Error message for __build_class__ contains typo

2014-08-05 Thread Alex Gaynor
Alex Gaynor added the comment: Patch LGTM. -- nosy: +alex versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue22118] urljoin fails with messy relative URLs

2014-08-05 Thread Demian Brecht
Demian Brecht added the comment: I've only had a couple minutes to look into this so far, but the bug does indeed seem to be valid across all versions. In fact, the line "# XXX The stuff below is bogus in various ways..." in urljoin tipped me off to something potentially being askew ;) Unless

[issue22118] urljoin fails with messy relative URLs

2014-08-05 Thread Mike Lissner
Mike Lissner added the comment: @demian.brecht, that'd make me very pleased if you took this over. I won't have time to devote to it, unfortunately. -- ___ Python tracker ___ __

[issue22146] Error message for __build_class__ contains typo

2014-08-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset de287a94b486 by Zachary Ware in branch '3.4': Issue #22146: Fix typo in __build_class__ error message http://hg.python.org/cpython/rev/de287a94b486 New changeset d85fcf23549e by Zachary Ware in branch 'default': Closes #22146: Merge with 3.4 http://

[issue22146] Error message for __build_class__ contains typo

2014-08-05 Thread Zachary Ware
Zachary Ware added the comment: Fixed, thanks for the report and patch! -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-lis

[issue22128] patch: steer people away from codecs.open

2014-08-05 Thread Frank van Dijk
Changes by Frank van Dijk : Added file: http://bugs.python.org/file36273/codecsopen2a.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue22128] patch: steer people away from codecs.open

2014-08-05 Thread Frank van Dijk
Changes by Frank van Dijk : Added file: http://bugs.python.org/file36274/codecsopen3a.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue22147] PosixPath() constructor should not accept strings with embedded NUL bytes

2014-08-05 Thread Isaac Schwabacher
New submission from Isaac Schwabacher: This is listed as a python3.4 issue even though I only tried this on the python2.7 backport because I don't have a python3 handy, but I was not able to find an indication, either here or elsewhere, that this had been addressed. Please forgive me if it ha

[issue20586] Argument Clinic: functions with valid sig but no docstring have no __text_signature__

2014-08-05 Thread Zachary Ware
Zachary Ware added the comment: Something about like this? Note that this does change the behavior in the case where the whole docstring is empty but provided (such as when WITH_DOC_STRINGS == 0; see the changed line in test_capi). -- Added file: http://bugs.python.org/file36275/issue

[issue22147] PosixPath() constructor should not accept strings with embedded NUL bytes

2014-08-05 Thread Isaac Schwabacher
Isaac Schwabacher added the comment: Further digging reveals that the issue with `open()` was fixed in #13848 (the bug was in the `io` module). I still believe that this should fail in the `pathlib.Path` constructor, but this is less of a security issue. -- type: security -> behavior

[issue13553] Tkinter Tk args and Gnome Shell application name

2014-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The resolution of this issue should be to properly document the Tk class. The 3.4 docs currently say: "class tkinter.Tk(screenName=None, baseName=None, className='Tk', useTk=1) The Tk class is instantiated without arguments. This creates a toplevel widget

[issue22133] IDLE: Set correct WM_CLASS on X11

2014-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: > We should change window class also for other toplevel windows (from stack > viewer to calltip). Grepping idlelib for 'toplevel, there are about 10. Do all of the Toplevels get put on the activity bar? I would not expect that popups like calltip would. I ex

[issue22148] frozen.c should #include instead of "importlib.h"

2014-08-05 Thread John Beck
New submission from John Beck: Background: on Solaris, we build Python and various modules 64-bit. To make this work with our general 64-bit changes, we use foo/64 as the path for our shared objects (.so files) rather than foo, for various values of foo (e.g., "/usr/lib", "/usr/lib/python3.4", et

[issue22145] <> in parser spec but not lexer spec

2014-08-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: Neither nor. <> is a conditional token, conditional on the prior future import. This is the nature of PEP 236: some syntax might be part of the language in one module, but not in another, in the same version of the language. In general, the documentation shou

[issue22149] the frame of a suspended generator should not have a local trace function

2014-08-05 Thread Xavier de Gaye
New submission from Xavier de Gaye: When tracing, the frame of a suspended generator should not have an f_trace function as there is no way to delete the frame f_trace attribute in that case even though tracing may have been disabled. The patch relies on the fact that whenever the generator is

[issue22144] ellipsis needs better display in lexer documentation

2014-08-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't think that ... is a delimiter. Instead, it is a literal of the ellipsis class. -- nosy: +loewis ___ Python tracker ___ ___

[issue21039] pathlib strips trailing slash

2014-08-05 Thread Isaac Schwabacher
Isaac Schwabacher added the comment: This may be only syntactic sugar, but it is POSIX-specified syntactic sugar: according to http://pubs.opengroup.org/onlinepubs/9699919799/. trailing slashes in pathnames are semantically meaningful in pathname resolution. Tilde escapes are not mentioned.

[issue22148] frozen.c should #include instead of "importlib.h"

2014-08-05 Thread Shawn
Changes by Shawn : -- nosy: +swalker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue22148] frozen.c should #include instead of "importlib.h"

2014-08-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue17923] test glob with trailing slash fail on AIX 6.1

2014-08-05 Thread David Edelsohn
David Edelsohn added the comment: I tried the patch with Python-2.7.8 and it fixes the test_glob failure. Thanks! -- ___ Python tracker ___ _

[issue17923] test glob with trailing slash fail on AIX 6.1

2014-08-05 Thread David Edelsohn
David Edelsohn added the comment: The failure also occurs with Python 3 and the patch fixes test_glob for those releases. -- ___ Python tracker ___ _

[issue17923] test glob with trailing slash fail on AIX 6.1

2014-08-05 Thread koobs
koobs added the comment: David, reproducible on 3.4 and default? We can use Version to reflect where changes need to be committed -- nosy: +koobs ___ Python tracker ___ ___

[issue22118] urljoin fails with messy relative URLs

2014-08-05 Thread Demian Brecht
Demian Brecht added the comment: Here's an initial patch with a fix that passes all the test cases other than the ones that are incorrect based on examples and pseudocode in RFC 3986. I haven't checked obsoleted RFCs yet to ensure consistency, but will do so when I get a chance (likely tomorro

[issue21448] Email Parser use 100% CPU

2014-08-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Should this be categorized as a security issue? > You could easily DoS a server with that > (email.parser is used by http.client to parse HTTP > headers, it seems). I think it makes sense to treat this as a security issue. I don't have a preference abou

[issue22128] patch: steer people away from codecs.open

2014-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't think it's useful to tell people: > * use codecs.open() on Python 2.4, 2.5, 2.6 > * use io.open() on Python 2.7 (io is too slow on 2.6 to be a real alternative > to codecs.open()) > * use open() on Python 3.4+ Instead we can tell them to use io.open()

[issue22149] the frame of a suspended generator should not have a local trace function

2014-08-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +belopolsky, benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19645] decouple unittest assertions from the TestCase class

2014-08-05 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22118] urljoin fails with messy relative URLs

2014-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It /does/ break backwards compatibility, but it seems that previous > logic was incorrect (based on my upcoming checking for consistency > between RFCs). As such, I'm not sure that it should be fixed < 3.5. > Thoughts? Actually, the logic seems to be correct a

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-08-05 Thread Ezio Melotti
Ezio Melotti added the comment: After further investigation it seems to me that read can't raise NotImplementedError. ZipFile also won't raise it, but will raise a RuntimeError: >>> zipfile.ZipFile('spam.zip', 'w', compression=zipfile.ZIP_BZIP2) RuntimeError: Compression requires the (missing)

  1   2   >