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

2014-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ZipFile's constructor and ZipFile.open() can raise NotImplementedError, RuntimeError, EOFError, IOError, OSError or its subclasses, or any exception raised from underlying file object, including TypeError and AttributeError. ZipExtFile.read() can raise zlib.

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe the patch works slightly better on my system with the above mentioned block uncommented. The problem being addressed is this. The editor sendx a set command to the vertical scrollbar after *any* action that affects the lines displayed. We intercept t

[issue21448] Email Parser use 100% CPU

2014-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I found a bug in my patch. Following code from email.parser import Parser BLOCKSIZE = 8192 s = 'From: \nFoo: ' s += 'x' * ((-len(s) - 1) % BLOCKSIZE) + '\rBar: ' s += 'y' * ((-len(s) - 1) % BLOCKSIZE) + '\x85Baz: ' s += 'z' * ((-len(s) - 1) % BLOCKSIZE) + '\n\

[issue22083] Refactor PyShell's breakpoint related methods

2014-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The _here methods are the event handlers for the right click context menu options. Set_breakpoint, as a separate method, is only needed in the restore_file_breaks (from breakpoint file) method. I gather that you are thinking of using set/clear_breakpoint when

[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2

2014-08-05 Thread Berker Peksag
Berker Peksag added the comment: > Does this fix the extra margin visible in broken-deprecated-removed-2.png? Yes. > Is there something in the HTML that causes the extra margin (e.g. an empty > ? I checked the HTML output first, but it was fine. Here's the HTML output of the deprecate-remove

[issue22153] There is no standard TestCase.runTest implementation

2014-08-05 Thread Martin Panter
New submission from Martin Panter: The documentation for "unittest.TestCase" says "the standard implementation of the default 'methodName', runTest(), will run every method starting with 'test' as an individual test". However: >>> from unittest import * >>> class Test(TestCase): ... def te

[issue11664] Add patch method to unittest.TestCase

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

[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2

2014-08-05 Thread Ezio Melotti
Ezio Melotti added the comment: Does this fix the extra margin visible in broken-deprecated-removed-2.png? Is there something in the HTML that causes the extra margin (e.g. an empty ? If that is the reason I think fixing the HTML is better. -- nosy: +ezio.melotti _

[issue1322] platform.dist() has unpredictable result under Linux

2014-08-05 Thread Berker Peksag
Berker Peksag added the comment: Here's an updated patch (based on Vajrasky's patch, thanks!). Changes: - Updated deprecation schedule 1. pending deprecation in 3.5 2. deprecation in 3.6 3. removal in 3.7 - Added tests - Added a whatsnew entry - Moved warnings import to dist() and linux_d

[issue14534] Add method to mark unittest.TestCases as "do not run".

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

[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2

2014-08-05 Thread Berker Peksag
Changes by Berker Peksag : Added file: http://bugs.python.org/file36282/broken-deprecated-removed.png ___ Python tracker ___ ___ Python-bugs-l

[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2

2014-08-05 Thread Berker Peksag
Changes by Berker Peksag : Added file: http://bugs.python.org/file36283/broken-deprecated-removed-2.png ___ Python tracker ___ ___ Python-bugs

[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2

2014-08-05 Thread Berker Peksag
New submission from Berker Peksag: The attached patch fixes the problem for me. Tested with Firefox 30.0 and Chrome 35.0.1916.153 on Ubuntu. -- components: Demos and Tools files: deprecated-removed.diff keywords: patch messages: 224902 nosy: berker.peksag, georg.brandl priority: normal

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

2014-08-05 Thread Jason Heeris
Jason Heeris added the comment: Sorry, that was run with Python 2.7.5+ on Ubuntu. -- ___ Python tracker ___ ___ Python-bugs-list maili

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

2014-08-05 Thread Jason Heeris
Jason Heeris added the comment: Okay, I've attached two files: 1. Scheme.zip, from issue 5701 2. "zftest.py", a script that you run in the same dir as "Scheme.zip" to produce this: $ python zftest.py Extracting: 1!SCHEME.Z64 Traceback (most recent call last): File "zftest.py", line 8, in

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

2014-08-05 Thread Jason Heeris
Changes by Jason Heeris : Added file: http://bugs.python.org/file36280/zftest.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2014-08-05 Thread Jason Heeris
Changes by Jason Heeris : Added file: http://bugs.python.org/file36279/Scheme.zip ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2014-08-05 Thread Ezio Melotti
Ezio Melotti added the comment: FWIW #5701 has a test zipfile (I haven't tried it though). If I'm reading the code right, the compression method is specified and checked in the __init__, so we should know if the compression method was available long before we reach .read(). I will be happy to

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

2014-08-05 Thread Jason Heeris
Jason Heeris added the comment: @Ezio I am pretty sure it was read(). I couldn't submit the file I used as an example, so I'll see if I can construct a minimal example to post here. -- ___ Python tracker

[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)

[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

[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

[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

[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()

[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

[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

[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 ___ ___

[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 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 ___ _

[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

[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

[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.

[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 ___ ___

[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

[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

[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

[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

[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

[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

[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
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

[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

[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

[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

[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://

[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 ___ __

[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

[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

[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

[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 _

[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:

[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

[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 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? --

[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

[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

[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 __

[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

[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

[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 ___

[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 ___ __

[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

[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

[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

[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:

[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 ___

[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

[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

[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

[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

[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

[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

[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 -

[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 _

[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 ___

[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

[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

[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

[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

[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

[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

[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

[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 ___

[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 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 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

[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

[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

[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

[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

[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 _

[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 ___

[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

[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

[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 __

[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

[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

[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

[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 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 __

  1   2   >