[issue20969] Author of EPUB version of Python docs is set to Unknown instead of PSF

2016-01-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in all branches for which documentation will be published / updated. -- assignee: docs@python -> orsenthil nosy: +orsenthil resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue26047] argparse.ArgumentError documentation wrong

2016-01-08 Thread SilentGhost
SilentGhost added the comment: Christof, you'd have to demonstrate the issue in more than just words. The returned status code is hard-coded to be 2 in the error method and it does end up being 2 when i run, could you post some output that led you to believe that it is 1? -- nosy:

[issue26047] argparse.ArgumentError documentation wrong

2016-01-08 Thread Christof Hanke
New submission from Christof Hanke: On https://docs.python.org/2/library/argparse.html (and on those of the 3.6-Version) it says at the bottom: """ ArgumentParser.error(message) This method prints a usage message including the message to the standard error and terminates the program

[issue26004] pip install lifetimes - throwing error and unable to install packages

2016-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Debashish: questions on using pip should be directed to python-list, also accessible as newsgroup gmane.comp.python.general at news.gmane.org. pip is otherwise maintained separately from CPython and has its own bug-reporting system. -- nosy:

[issue26036] Unnecessary arguments on smtpd.SMTPServer

2016-01-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Guido van Rossum
Guido van Rossum added the comment: I think this would be okay for 3.5.2 as well. -- versions: +Python 3.5 ___ Python tracker ___

[issue26001] Tutorial: write() does not expect string in binary mode

2016-01-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> patch review type: -> enhancement versions: +Python 3.6 ___ Python tracker ___

[issue25992] test_gdb fails on OSX

2016-01-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: test_gdb fails -> test_gdb fails on OSX ___ Python tracker ___

[issue26009] HTMLParser lacking a few features to reconstruct input exactly

2016-01-08 Thread Ezio Melotti
Ezio Melotti added the comment: What is your use case? Also note that new features can only go on 3.6. -- nosy: +ezio.melotti versions: +Python 3.6 -Python 2.7 ___ Python tracker

[issue26009] HTMLParser lacking a few features to reconstruct input exactly

2016-01-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed type: behavior -> enhancement ___ Python tracker ___

[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe performance enhancements are, by default, limited to 'default', but this one might be a good candidate for backport. -- nosy: +loewis, terry.reedy versions: +Python 3.6 ___ Python tracker

[issue25991] readline example eventually consumes all memory

2016-01-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti stage: -> needs patch type: resource usage -> enhancement versions: +Python 2.7, Python 3.5, Python 3.6 -Python 3.4 ___ Python tracker

[issue26024] Non-ascii Windows locale names

2016-01-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.5, Python 3.6 -Python 3.4 ___ Python tracker ___

[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker ___

[issue26037] Crash when reading sys.stdin.buffer in a daemon thread

2016-01-08 Thread Martin Panter
Martin Panter added the comment: But sys.stdin.buffer would be a BufferedReader -- nosy: +martin.panter ___ Python tracker ___

[issue23675] glossary entry for 'method resolution order' links to something with python 2.3 in the title

2016-01-08 Thread Martin Panter
Martin Panter added the comment: The wording looks good in spirit. I just have a couple nits to pick with the grammar: * Why change from “See” to “Refer”? “Refer to” would work better I think; but “See” was fine too IMO. * I think it is better without “document”. Just “See / Refer to <2.3

[issue25589] test_ascii_formatd fails on Mac when built with Intel compiler

2016-01-08 Thread Chris Hogan
Chris Hogan added the comment: The Intel compiler team is looking into this issue. I'll keep everyone updated here. -- ___ Python tracker ___

[issue25991] readline example eventually consumes all memory

2016-01-08 Thread Martin Panter
Martin Panter added the comment: What version of Readline are you using? Is it perhaps Editline (libedit)? When I experimented with Editline on Linux once, I think I saw the history file doubling in size every time I ran Python. Maybe that is what you are seeing. -- nosy:

[issue26050] Add new StreamReader.readuntil() method

2016-01-08 Thread Марк Коренберг
New submission from Марк Коренберг: See code discussion here: https://github.com/python/asyncio/pull/297 -- components: asyncio messages: 257776 nosy: gvanrossum, haypo, mmarkk, yselivanov priority: normal severity: normal status: open title: Add new StreamReader.readuntil() method

[issue25802] Finish deprecating load_module()

2016-01-08 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the review, Berker! I managed to figure out how to get the Examples links to work so that made it into the final version. -- status: open -> closed ___ Python tracker

[issue26025] Document pathlib.Path.__truediv__()

2016-01-08 Thread Brett Cannon
Brett Cannon added the comment: Turns out it is if you read the PurePath docs: https://docs.python.org/3/library/pathlib.html#operators -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue26053] regression in pdb output between 2.7 and 3.5

2016-01-08 Thread Doug Hellmann
New submission from Doug Hellmann: Under python 2.7 using the "run" command within pdb and passing it arguments causes those arguments to be printed out. Under 3.5, this is no longer true. $ python2.7 -m pdb pdb_run.py >

[issue26053] regression in pdb output between 2.7 and 3.5

2016-01-08 Thread Doug Hellmann
Doug Hellmann added the comment: I should also mention that I haven't tested early versions of 3.x to see where exactly the regression was introduced. -- ___ Python tracker

[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Martin Panter
Martin Panter added the comment: Personally I am skeptical if suggesting UTF-8 for the body data is a good idea, but I can go along with it, since other people want it. But I do strongly question whether it is right to suggest UTF-8 for header fields. The RFC

[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Guido van Rossum
Guido van Rossum added the comment: Martin, please make a patch along those lines! The only reason I generalized this to headers is that one of the three Requests issues referenced in the original post seemed to be about a header value (https://github.com/kennethreitz/requests/issues/1926).

[issue25958] Implicit ABCs have no means of "anti-registration"

2016-01-08 Thread Martin Panter
Martin Panter added the comment: I don’t have strong opinions about the Reversible class because I don’t imagine needing it. My instinct was __reverse__() is independent of __iter__(), so it should not be a subclass. But I don’t really mind either way. I did actually mean a version changed

[issue25677] Syntax error caret confused by indentation

2016-01-08 Thread Michael Layzell
Michael Layzell added the comment: Sorry for missing the review comments earlier, I didn't notice them (I've not used this bug tracker before - sorry). I've attached an updated patch which should not have the variable problem, and also takes some of the other review comments into account.

[issue26051] Non-data descriptors in pydoc

2016-01-08 Thread Antony Lee
New submission from Antony Lee: Consider the following minimal example: class readonlyprop: __init__ = lambda self, func: None __get__ = lambda self, inst, cls=None: None class C: def bar(self): pass @readonlyprop def foo(self):

[issue25802] Finish deprecating load_module()

2016-01-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset d733b6275e17 by Brett Cannon in branch 'default': Issue #25802: Add an examples section to importlib. https://hg.python.org/cpython/rev/d733b6275e17 -- ___ Python tracker

[issue26052] pydoc for __init__ with not docstring

2016-01-08 Thread Antony Lee
New submission from Antony Lee: For a class whose __init__ has no docstring, e.g. class C: def __init__(self, arg): pass pydoc outputs <... cropped ...> class C(builtins.object) | Methods defined here: | | __init__(self, arg) |

[issue26001] Tutorial: write() does not expect string in binary mode

2016-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Lines should be kept to about 80 chars. Both chunks needs a newline added. I think it okay to create short lines rather than re-wrapping the whole paragraph. -- nosy: +terry.reedy ___ Python tracker

[issue26007] Support embedding the standard library in an executable

2016-01-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed title: Request for Support for Embedding the Standard Library in an Executable -> Support embedding the standard library in an executable versions: +Python 3.6 ___ Python

[issue20397] distutils --record option does not validate existence of byte-compiled files

2016-01-08 Thread koobs
koobs added the comment: This needs review, commit, merge. We've back-ported and committed these patches against all of our FreeBSD Python ports (27,32,33,34,35) https://svnweb.freebsd.org/ports?view=revision=405569 -- stage: needs patch -> patch review versions: +Python 3.2, Python

[issue26053] regression in pdb output between 2.7 and 3.5

2016-01-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +georg.brandl ___ Python tracker ___ ___

[issue22138] patch.object doesn't restore function defaults

2016-01-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: This was an interesting issue. Thanks for the patch, Sean to fix this bug. I have committed it in 3.5 and 3.6. -- assignee: -> orsenthil nosy: +orsenthil resolution: -> fixed stage: commit review -> resolved status: open -> closed versions: +Python

[issue22138] patch.object doesn't restore function defaults

2016-01-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset b67ed559a7d3 by Senthil Kumaran in branch '3.5': Issue #22138: Fix mock.patch behavior when patching descriptors. Restore https://hg.python.org/cpython/rev/b67ed559a7d3 New changeset 9b21dfd71561 by Senthil Kumaran in branch 'default': merge from

[issue26055] sys.argv[0] is the python file, not ""

2016-01-08 Thread YoungBoy
New submission from YoungBoy: python tutorial 2.1.1 You can access this list by executing import sys. The length of the list is at least one; when no script and no arguments are given, sys.argv[0] is an empty string. but, when i try it, the sys.argv[0]is the filename,not empty string.

[issue26055] sys.argv[0] is the python file, not ""

2016-01-08 Thread random832
random832 added the comment: By "when no script [is] given", it is referring to the use in the interactive interpreter, not in a python file. -- nosy: +random832 ___ Python tracker

[issue26055] sys.argv[0] is the python file, not ""

2016-01-08 Thread YoungBoy
Changes by YoungBoy : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue15430] Improve filecmp documentation

2016-01-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: This bug report can be closed as the patch, written by me is no longer valid. The only useful addition it can bring is, exposing the BUFSIZE, but that is used transparently by the module and I think, it need not be exposed via documentation. --

[issue26053] regression in pdb output between 2.7 and 3.5

2016-01-08 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue26054] Unable to run scripts: idle3 -r script.py

2016-01-08 Thread David Jackson
New submission from David Jackson: [Raspberry Jessie] Idle3(4.2] If I open a idle3 shell (from menu) and enter >>import pandas as pd it accepts the command, but if I trying and run it from the shell>> idle3 -r script.py I get the following errors: Traceback (most recent call last): File

[issue26054] Unable to run scripts: idle3 -r script.py

2016-01-08 Thread David Jackson
David Jackson added the comment: The problem was I had a pandas.py and a pandas.pyc in my home directory. after deleting them everything seems to be working. -- resolution: -> not a bug ___ Python tracker

[issue26052] pydoc for __init__ with not docstring

2016-01-08 Thread Martin Panter
Martin Panter added the comment: I suspect this the same side effect of 3.5’s doc string inheritance that I mentioned in Issue 15582. The solution proposed was basically “write a custom doc string”, though I’m not sure that is always appropriate. -- keywords: +3.5regression nosy:

[issue26054] Unable to run scripts: idle3 -r script.py

2016-01-08 Thread Zachary Ware
Zachary Ware added the comment: Glad you got it figured out. It's a situation that can be tricky to debug, as your eyes tend to gloss over the paths given in the traceback. It's much easier to figure out after you've been bitten the first time, though! -- nosy: +zach.ware stage: ->

[issue11245] Implementation of IMAP IDLE in imaplib?

2016-01-08 Thread Erik Quaeghebeur
Changes by Erik Quaeghebeur : -- nosy: +equaeghe ___ Python tracker ___ ___

[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2016-01-08 Thread Martin Panter
Martin Panter added the comment: In python-dev I offered to make a patch to switch to https://self-signed.pythontest.net. Here is my patch so far. There is one outstanding problem though: test_get_ca_certs_capath() fails. I think it is because the self-signed certificate does not have a “CA

[issue26037] Crash when reading sys.stdin.buffer in a daemon thread

2016-01-08 Thread Марк Коренберг
Марк Коренберг added the comment: 16.2.4.3. Multi-threading FileIO objects are thread-safe to the extent that the operating system calls (such as read(2) under Unix) they wrap are thread-safe too. Binary buffered objects (instances of BufferedReader, BufferedWriter, BufferedRandom and

[issue19251] bitwise ops for bytes of equal length

2016-01-08 Thread Christian Heimes
Christian Heimes added the comment: Serhiy’s bitarray idea has another benefit. Bit masking is only haft of the story. Since Python's int type has no length information, it not possible to handle shifting with overflow and rotation. A bit array can provide bit shifting ops like rshift,

[issue23675] glossary entry for 'method resolution order' links to something with python 2.3 in the title

2016-01-08 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray ___ Python tracker ___ ___

[issue26048] New user in community

2016-01-08 Thread Divyang Patel
New submission from Divyang Patel: Greetings to all! Hi, please Guide me to understand how to contributing python ?? -- messages: 257752 nosy: devtechnofreak priority: normal severity: normal status: open title: New user in community type: enhancement

[issue19251] bitwise ops for bytes of equal length

2016-01-08 Thread Andrew Barnert
Andrew Barnert added the comment: There are a number of existing libraries on PyPI for bit arrays and bit sets. There are a lot more API choices than you'd think of in advance, and between them they explore most of the useful space. And I don't think any of them need to be in the stdlib.

[issue19251] bitwise ops for bytes of equal length

2016-01-08 Thread Martin Panter
Martin Panter added the comment: FWIW a long time ago I wanted fast XORing of 512-byte “sectors” of Rar files. Initially I think I used array.array with the largest word size available, or numpy if available. Later when I learnt more Python I discovered the int.from_bytes() trick, and used

[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Sergi Almacellas Abellana
New submission from Sergi Almacellas Abellana: By default, python xmlrpclib parser reads data by chunks of 1024 bytes [1], which leads to a lot of data concatenations when reading large data, which is very slow in python. Increasing the chuck size from 1024 bytes to a higher value makes

[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Cédric Krier
Cédric Krier added the comment: I don't think it is necessary to allow to customize the chunk size. Indeed Python should provide a good value by default that works for all platforms. -- nosy: +ced type: -> performance ___ Python tracker

[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Sergi Almacellas Abellana
Sergi Almacellas Abellana added the comment: And Also another patch for 2.7 branches -- Added file: http://bugs.python.org/file41535/python27.patch ___ Python tracker

[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Sergi Almacellas Abellana
Sergi Almacellas Abellana added the comment: I attach a patch to fix on default series -- keywords: +patch Added file: http://bugs.python.org/file41534/default.patch ___ Python tracker

[issue26037] Crash when reading sys.stdin.buffer in a daemon thread

2016-01-08 Thread Марк Коренберг
Марк Коренберг added the comment: sys.stdin sys.stdout sys.stderr ... These streams are regular text files ... -- ___ Python tracker ___

[issue26048] New user in community

2016-01-08 Thread Ezio Melotti
Ezio Melotti added the comment: Please check the devguide at https://docs.python.org/devguide/ and the python-mentorship mailing list. -- nosy: +ezio.melotti resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue25596] regular files handled as directories in the glob module

2016-01-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: Adding a doc patch. -- Added file: http://bugs.python.org/file41533/glob_scandir_doc.patch ___ Python tracker ___

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2016-01-08 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray ___ Python tracker ___ ___

[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2016-01-08 Thread Vincent Legoll
Vincent Legoll added the comment: Maybe if the server change is not approved you can still push the part of the patch that un-hardwire that server name everywhere... -- ___ Python tracker

[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Guido van Rossum
Guido van Rossum added the comment: BTW the error and traceback will look something like this: Traceback (most recent call last): File "", line 1, in File "/Users/guido/src/cpython/Lib/http/client.py", line 1138, in _send_request self.putheader(hdr, value) File

[issue26030] Use PEP8 in documentation examples

2016-01-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: +Python 3.6 ___ Python tracker ___

[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Emil Stenström
Emil Stenström added the comment: I think changing the error message is enough for the short term, and deprecation of automatic encoding is the correct way in the long term. A text that mention "utf-8" which will likely be the correct solution definitely gets my vote, so Guidos suggestion

[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Sergi Almacellas Abellana
Sergi Almacellas Abellana added the comment: I added a new patch which fixed comments -- Added file: http://bugs.python.org/file41536/default.patch ___ Python tracker

[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Sergi Almacellas Abellana
Changes by Sergi Almacellas Abellana : Removed file: http://bugs.python.org/file41534/default.patch ___ Python tracker ___

[issue19251] bitwise ops for bytes of equal length

2016-01-08 Thread Марк Коренберг
Марк Коренберг added the comment: Just mention it here :) https://github.com/KeepSafe/aiohttp/issues/686 -- nosy: +mmarkk ___ Python tracker ___

[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a patch. I noticed there are lots of other places where a similar encoding() call exists -- I wrapped them all using a helper function. Please review carefully. -- keywords: +patch Added file: http://bugs.python.org/file41537/utfpatch.diff

[issue26041] Update deprecation messages of platform.dist() and platform.linux_distribution()

2016-01-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___

[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2016-01-08 Thread Kartikaya Gupta
Kartikaya Gupta added the comment: Please note that this issue will affect Firefox 46 and up as well; we have enabled asynchronous scrolling as of Firefox 46. Bugzilla bug for this issue: https://bugzilla.mozilla.org/show_bug.cgi?id=997269 Announcement for asynchronous scrolling:

[issue26025] Document pathlib.Path.__truediv__()

2016-01-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti type: -> enhancement versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue26017] Update https://docs.python.org/3/installing/index.html to always quote arguments

2016-01-08 Thread Ezio Melotti
Ezio Melotti added the comment: I think it's enough to add a note that says that if the argument contains > (and possibly other) special characters, then it needs to be quoted. Examples that use > should also be quoted, but not the others one. -- nosy: +ezio.melotti