[issue12916] Add inspect.splitdoc

2014-04-14 Thread R. David Murray
R. David Murray added the comment: The patch looks good, but 'splitdoc' needs to remain a valid name for the function in the pydoc namespace. You could just add 'splitdoc = inspect.splitdoc' after the import statements. (The reason it needs to remain valid is for backward

[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-14 Thread Steven Hiscocks
Steven Hiscocks added the comment: Just to add for those interested: a possible work around solution is using os.path.sameopenfile to check fds against another known fd for urandom. And for those wish to have a bit of fun (and maybe a security consideration): python -c import

[issue17861] put opcode information in one place

2014-04-14 Thread Kushal Das
Kushal Das added the comment: New patch with proper changesets. -- Added file: http://bugs.python.org/file34855/issue17861_v4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17861 ___

[issue20874] Tutorial section on starting python is out of date

2014-04-14 Thread Rafael Mejia
Rafael Mejia added the comment: I've resubmitted the patch with the minimum lines changed and no trailing white space. -- Added file: http://bugs.python.org/file34856/issue_20874_2.patch ___ Python tracker rep...@bugs.python.org

[issue17498] error responses from server are masked in smtplib when server closes connection

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3c441e9ccf87 by R David Murray in branch '3.4': #17498: Defer SMTPServerDisconnected errors until the next command. http://hg.python.org/cpython/rev/3c441e9ccf87 New changeset 842014ab1c06 by R David Murray in branch 'default': Merge #17498: Defer

[issue21198] Minor tarfile documentation bug

2014-04-14 Thread Matt Chaput
Changes by Matt Chaput m...@whoosh.ca: Removed file: http://bugs.python.org/file34824/issue21198.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21198 ___

[issue21198] Minor tarfile documentation bug

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: Oops! Yes, I accidentally included a bunch of other crap. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21198 ___

[issue17498] error responses from server are masked in smtplib when server closes connection

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Thanks, Kushal. Sorry it took so long to get this committed :) -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed type: - behavior versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3

[issue12916] Add inspect.splitdoc

2014-04-14 Thread Yury Selivanov
Yury Selivanov added the comment: I don't like this idea. inspect module is about introspection, and not about interpreting its results. I'd keep this function in pydoc and document it if there is noticeable demand for it. -- ___ Python tracker

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-14 Thread Stefan Krah
Stefan Krah added the comment: FreeBSD 9.0 has the same broken install: $ openssl version OpenSSL 0.9.8y 5 Feb 2013 $ ls /usr/include/openssl/ecd* /usr/include/openssl/ecdh.h /usr/include/openssl/ecdsa.h I'm inclined to view this as an OS

[issue12916] Add inspect.splitdoc

2014-04-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Yury and David, please, can you discuss about this point, or just close this ticket if this one is useless. Thank you -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12916

[issue21204] multiprocessing example does not work on Windows

2014-04-14 Thread R. David Murray
R. David Murray added the comment: If you look at the source code for 2.7, it is clear that patch has been applied. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21204 ___

[issue21204] multiprocessing example does not work on Windows

2014-04-14 Thread R. David Murray
R. David Murray added the comment: To clarify, the commit in that issue is in 2.7. So if there is something else that isn't in 2.7, it is a different issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21204

[issue9374] urlparse should parse query and fragment for arbitrary schemes

2014-04-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Reviewed the issue and correct rollbacks and commits were applied. This ticket should be closed. Thanks! -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9374

[issue8931] '#' has no effect with 'c' type

2014-04-14 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- title: '#' has no affect with 'c' type - '#' has no effect with 'c' type ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8931 ___

[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator

2014-04-14 Thread A Kaptur
A Kaptur added the comment: This patch adds tests demonstrating broken behavior inspect.getsource and inspect.getsourcelines of decorators containing lambda functions, and modifies inspect.getsourcelines to behave correctly. We use co_lnotab to extract line numbers on all objects with a code

[issue18262] ZipInfo.external_attr are not documented

2014-04-14 Thread Alex Lord
Alex Lord added the comment: Here's a documentation patch for 2.7 that informs the users that Zipfile.extra and Zipfile.extraall don't save permissions and that Zipfile.writestr will use ZipInfo.extra_attr or default to chmod permission set of 0600. -- keywords: +patch nosy:

[issue15104] Unclear language in __main__ description

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 008486e18e90 by R David Murray in branch '3.4': #15104: add backtick code markup. http://hg.python.org/cpython/rev/008486e18e90 New changeset 14e874736d3a by R David Murray in branch 'default': Merge: #15104: add backtick code markup.

[issue18262] ZipInfo.external_attr are not documented

2014-04-14 Thread Alex Lord
Alex Lord added the comment: And here's the 3.4 and 3.5 patch -- Added file: http://bugs.python.org/file34859/Issue18262_34_35.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18262 ___

[issue10523] argparse has problem parsing option files containing empty rows

2014-04-14 Thread Caelyn McAulay
Caelyn McAulay added the comment: The current behaviour takes empty lines and interprets them as empty strings. The attached demonstration script shows the error occurring. The first case is a simple example to illustrate what happens in the general case. The second case shows empty lines

[issue10983] Errors in http.client.HTTPConnection class (python3)

2014-04-14 Thread Nikolaus Rath
Nikolaus Rath added the comment: This issue can be closed. The testcases have been added in 39ee3286d187. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10983 ___

[issue10983] Errors in http.client.HTTPConnection class (python3)

2014-04-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, they indeed are. Thank you! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10983

[issue21191] os.fdopen() may eat file descriptor and still raise exception

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 339c79791b65 by Benjamin Peterson in branch '2.7': when an exception is raised in fdopen, never close the fd (changing on my mind on #21191) http://hg.python.org/cpython/rev/339c79791b65 -- ___ Python

[issue21227] Decimal class error messages for integer division aren't good

2014-04-14 Thread leewz
New submission from leewz: Python's `decimal.Decimal` doesn't seem to like taking modulo or intdiv of large Decimals by integers (where large depends on how many digits are internally stored). from decimal import * getcontext().prec 28 Decimal(10**29)%1 Traceback (most

[issue21228] Missing enumeration of HTTPResponse Objects methods of urllib.request.urlopen's http.client.HTTPResponse?

2014-04-14 Thread Evens Fortuné
New submission from Evens Fortuné: In the Python Library documentation, in section 21.6. urllib.request — Extensible library for opening URLs, in the description of the urllib.request.urlopen() function it is writen: - […] For http and https urls, this function returns a

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 57fb5441a4aa by R David Murray in branch 'default': #15916: if there are no docstrings, make empty suite, not an error. http://hg.python.org/cpython/rev/57fb5441a4aa -- nosy: +python-dev ___ Python

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Thanks, Glenn. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15916 ___

[issue21229] Path used for HTTP PUT request doesn't match the description

2014-04-14 Thread Evens Fortuné
New submission from Evens Fortuné: In the Python Standard Library, at the end of : - Section 20.7.3. Examples of 20.7. httplib — HTTP protocol client (for Python 2.7.6) - Section 20.10.3. Examples of 20.10. http.client — HTTP protocol client (for Python 3.2.5) - Section 21.12.3. Examples

[issue21228] Missing enumeration of HTTPResponse Objects methods of urllib.request.urlopen's http.client.HTTPResponse?

2014-04-14 Thread Evens Fortuné
Evens Fortuné added the comment: I forgot to tell that it is in section 20.5. urllib.request — Extensible library for opening URLs for Python 3.2.5 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21228

[issue1191964] asynchronous Subprocess

2014-04-14 Thread Josiah Carlson
Changes by Josiah Carlson josiah.carl...@gmail.com: Added file: http://bugs.python.org/file34861/subprocess_5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1191964 ___

[issue1704474] optparse tests fail under Jython

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Well, we want it to apply to python3 as well, since we want to see jython support python3 eventually :) Also, optparse is present in python3 for backward compatibility reasons only...there were very few changes between the time python3 branched from python2

[issue21230] imghdr does not accept adobe photoshop mime type

2014-04-14 Thread Faiz Abbasi
New submission from Faiz Abbasi: Python 2.7 I noticed a recurring bug we've had attempting to send a particular JPEG image in emails: email.mime.image.__init__ unknown: Could not guess image MIME subtype After looking into the imghdr.what and tests source code, I noticed that this JPEG

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Guido van Rossum
Guido van Rossum added the comment: OK, looks good. I tried your test with my earlier workaround and the wrapper got deallocated too early, proving that my workaround was indeed wrong and your test is useful. I am still concerned theoretically that the CoroWrapper.send() signature is

[issue21228] Missing enumeration of HTTPResponse Objects methods of urllib.request.urlopen's http.client.HTTPResponse?

2014-04-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hello Evens, If you can, then please attach a doc to this and we and fix this soon. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21228

[issue21229] Path used for HTTP PUT request doesn't match the description

2014-04-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: A simple docs patch would definitely help here. Thanks for the bug report. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21229 ___

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 84ccbb961f26 by R David Murray in branch 'default': #21215: update debian/ubuntu build-dep instructions. http://hg.python.org/devguide/rev/84ccbb961f26 -- nosy: +python-dev ___ Python tracker

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Thanks, Glenn. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21215 ___

[issue20578] BufferedIOBase.readinto1 is missing

2014-04-14 Thread Nikolaus Rath
Nikolaus Rath added the comment: Attached is an updated patch that - removes the code duplication in _pyio.BufferedIOBase - adds an internal _readinto helper method to _pyio.BufferedReader that makes the implementation similar to io.BufferedReader. - implements

[issue20578] BufferedIOBase.readinto1 is missing

2014-04-14 Thread Nikolaus Rath
Changes by Nikolaus Rath nikol...@rath.org: Added file: http://bugs.python.org/file34864/benchmark_r3.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20578 ___

[issue15795] Zipfile.extractall does not preserve file permissions

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Thanks. The patch contains a number of lines that are not wrapped to 80, which is one of our requirements. It would be great to get that fixed. (In the documentation, you can use \ to wrap the prototype line.) There is non-ascii in one place in the

[issue21228] Missing enumeration of HTTPResponse Objects methods of urllib.request.urlopen's http.client.HTTPResponse?

2014-04-14 Thread Evens Fortuné
Evens Fortuné added the comment: I don't quite understand what you are asking me. You need a copy of the document ? You can find an example at this link: https://docs.python.org/3/library/urllib.request.html#urllib.request.urlopen -- ___ Python

[issue12916] Add inspect.splitdoc

2014-04-14 Thread R. David Murray
R. David Murray added the comment: The precedent has already been set by the 'cleandoc' function, I think. This one seems to go right along with that one. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12916

[issue21229] Path used for HTTP PUT request doesn't match the description

2014-04-14 Thread Evens Fortuné
Evens Fortuné added the comment: Do you have some documentation on how to do a docs patch ? I'm sorry this is the first time I'm reporting a bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21229

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Yury Selivanov
Yury Selivanov added the comment: [...] CoroWrapper.send() signature is different from a real generator's send() method, but I think that send() to a coroutine is an internal detail anyway [...] Yeah, and since it's used in debug mode only, I think we should be safe. When you commit, can

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c35d3616df5 by Yury Selivanov in branch '3.4': asyncio.tasks: Fix CoroWrapper to workaround yield-from bug in CPython 3.4.1 http://hg.python.org/cpython/rev/0c35d3616df5 New changeset 13ff8645be57 by Yury Selivanov in branch 'default':

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21209 ___

[issue21231] Issue a python 3 warning when old style classes are defined.

2014-04-14 Thread Alex Gaynor
New submission from Alex Gaynor: This will assist in porting applications from Python2 to Python3. -- files: old-style-classes.diff keywords: patch messages: 216273 nosy: alex priority: normal severity: normal status: open title: Issue a python 3 warning when old style classes are

[issue21229] Path used for HTTP PUT request doesn't match the description

2014-04-14 Thread Kushal Das
Kushal Das added the comment: You should have a look at the following guides: https://docs.python.org/devguide/docquality.html https://docs.python.org/devguide/patch.html -- nosy: +kushal.das ___ Python tracker rep...@bugs.python.org

[issue21229] Path used for HTTP PUT request doesn't match the description

2014-04-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Sure, here is the information on how to create a patch - https://docs.python.org/devguide/ It could feel that there are multiple steps, but the process is easy. -- ___ Python tracker rep...@bugs.python.org

[issue20983] Python 3.4 'repair' Windows installation does not install pip setuptools packages

2014-04-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: Don: This is not a helpdesk system, but a bug tracker; the difference is that we don't help you here, but you help us. If you need help yourself, I suggest subscribing to python-list, at https://mail.python.org/mailman/listinfo/python-list and posting a

[issue21192] Idle: Print filename when running a file from editor

2014-04-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have not tried your patch yet, but the relevant code seems to be class ModifiedInterpreter(InteractiveInterpreter): def runcode(self, code): if code.co_filename[0] != '': ## your patch self.tkconsole.write('Executing ' +

<    1   2   3