[issue12916] Add inspect.splitdoc
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 compatibility...there may be people who discovered it and have been importing it from pydoc.) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12916 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21207] urandom persistent fd - not re-openned after fd close
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 os;os.urandom(1);os.closerange(3,256);fd = open('/dev/zero');print(os.urandom(10)) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21207 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17861] put opcode information in one place
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20874] Tutorial section on starting python is out of date
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 http://bugs.python.org/issue20874 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17498] error responses from server are masked in smtplib when server closes connection
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 SMTPServerDisconnected errors until the next command. http://hg.python.org/cpython/rev/842014ab1c06 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17498 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21198] Minor tarfile documentation bug
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21198] Minor tarfile documentation bug
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17498] error responses from server are masked in smtplib when server closes connection
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17498 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12916] Add inspect.splitdoc
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 rep...@bugs.python.org http://bugs.python.org/issue12916 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs
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 issue. FreeBSD 9.2 (koobs' buildslave) apparently does not have this problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21015 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12916] Add inspect.splitdoc
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21204] multiprocessing example does not work on Windows
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21204] multiprocessing example does not work on Windows
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9374] urlparse should parse query and fragment for arbitrary schemes
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8931] '#' has no effect with 'c' type
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21217] inspect.getsourcelines finds wrong lines when lambda used argument to decorator
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 object. inspect.getsourcelines can also take a class, which cannot use co_lnotab as there is no associated code object. @ballingt and I paired on this patch. Some open questions about inspect.getsource not created or addressed by this patch: - Is this a bug that should be patched in previous versions as well? - the docs for say it can take a traceback. What is the correct behavior here? There aren't any tests at the moment. We suggest the line of code that caused the traceback, i.e. the line at tb.tb_lineno - We added tests of decorated classes. The source of decorated classes does not include the decorators, which is different than the usual behavior of decorated functions. What is the correct behavior here? - inspect.getblock and inspect.BlockFinder use the term block in a way that is inconsistent with its typical use in the interpreter (that is, in ceval.c). Should this be renamed? If so, to what? (chunk?) -- keywords: +patch nosy: +akaptur stage: - patch review versions: -Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file34857/issue21217.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21217 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18262] ZipInfo.external_attr are not documented
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: +Alex.Lord versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file34858/Issue18262_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18262 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15104] Unclear language in __main__ description
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. http://hg.python.org/cpython/rev/14e874736d3a -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15104 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18262] ZipInfo.external_attr are not documented
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10523] argparse has problem parsing option files containing empty rows
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 being interpreted as empty strings and assigned to arguments. The third case, despite being very similar to the first, results in argparse exiting with an error message. Internally, what is happening is, after taking the 'foo' and 'baz' arguments and assigning them 'bar' and 'quux' respectively, it reads in an argument , which it does not recognize. And produces the following error message: argparse_example.py: error: unrecognized arguments: The error message, in it's current form, is kind of opaque. For the third case, if we move the blank line to between 'bar' and '-baz', the same error results, as again it tried to interpret the blank line as an argument. If we move the blank line to the start of the file, same thing again. If we move the blank line between '-foo' and 'bar', instead the error reads: argparse_example.py: error: unrecognized arguments: bar - which is at least somewhat comprehensible. The question is, how should blank lines be handled? Should they be accepted as possible values for arguments? If they fall into spaces where arguments (versus values for arguments) are expected, should we skip them? If the current handling is fine, I would propose updating the documentation to add the following after the paragraph that begins Arguments read from a file ...: By default, blank lines are interpreted as empty strings. An empty string is not an acceptable argument; but it is an acceptable value for an argument. And changing the way that the error from argparse is displayed so that it is more obvious what argparse_example.py: error: unrecognized arguments: means. -- nosy: +math_foo Added file: http://bugs.python.org/file34860/argparse_example.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10523 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10983] Errors in http.client.HTTPConnection class (python3)
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10983] Errors in http.client.HTTPConnection class (python3)
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21191] os.fdopen() may eat file descriptor and still raise exception
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 tracker rep...@bugs.python.org http://bugs.python.org/issue21191 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21227] Decimal class error messages for integer division aren't good
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 recent call last): File stdin, line 1, in module decimal.InvalidOperation: [class 'decimal.DivisionImpossible'] getcontext().prec=50 Decimal(10**29)%1 Decimal('0') Same for `Decimal(10**29)//1` This is a logical problem: Alice has a 100-digit number which begins with 1543256. What is the last digit? But I found the error hard to understand. Searching for DivisionImpossible didn't turn up anything immediate (it wasn't added to the official docs?). I was most of the way through writing out a question to StackOverflow when it clicked. (Also, why is it an InvalidOperation that holds an exception as a message? Never saw that before.) Suggestions: - Improve docs with further examples. The examples of InvalidOperation are logical MATH errors (e.g. division by 0), not logical PROGRAMMING errors. - Uh, maybe the error message could be changed to something like, The answer you seek lies beyond the mantissa. Or more sanely, Not enough precision to compute the answer. Or something else that hints to me to look into precision. -- assignee: docs@python components: Documentation, Library (Lib) messages: 216253 nosy: docs@python, leewz priority: normal severity: normal status: open title: Decimal class error messages for integer division aren't good type: enhancement versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21227 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21228] Missing enumeration of HTTPResponse Objects methods of urllib.request.urlopen's http.client.HTTPResponse?
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 http.client.HTTPResponse object which has the following HTTPResponse Objects methods. For ftp, file, and data urls and requests explicity handled by legacy […] - The first sentence seemed to imply that something is supposed to be specified if I understand correctly. Is it me missing something ? -- assignee: docs@python components: Documentation messages: 216254 nosy: EvensF, docs@python priority: normal severity: normal status: open title: Missing enumeration of HTTPResponse Objects methods of urllib.request.urlopen's http.client.HTTPResponse? type: enhancement versions: Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21228 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings
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 tracker rep...@bugs.python.org http://bugs.python.org/issue15916 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21229] Path used for HTTP PUT request doesn't match the description
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 of 21.12. http.client — HTTP protocol client (for Python 3.3.5, Python 3.4.0, and Python 3.5a0) the last example is described this way (change httplib for http.client for Python 3.2+): # This creates an HTTP message # with the content of BODY as the enclosed representation # for the resource http://localhost:8080/foobar ... import httplib BODY = ***filecontents*** conn = httplib.HTTPConnection(localhost, 8080) conn.request(PUT, /file, BODY) response = conn.getresponse() print response.status, response.reason 200, OK Is it possible that the request method should have been called this way: conn.request(PUT, /foobar, BODY) ^^ Thank you -- assignee: docs@python components: Documentation messages: 216257 nosy: EvensF, docs@python priority: normal severity: normal status: open title: Path used for HTTP PUT request doesn't match the description type: enhancement versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21229 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21228] Missing enumeration of HTTPResponse Objects methods of urllib.request.urlopen's http.client.HTTPResponse?
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1191964] asynchronous Subprocess
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1704474] optparse tests fail under Jython
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 and argparse superceeded optparse. So the differences between the two code bases should be minimal. Obviously you can't test against jython3, since it doesn't exist, but what you can do is make the patch based on the python2 optparse, and then see if the patch applies cleanly to python3. It probably won't, but as far as I can see from a quick diff, most of the changes will be related to the changes between python2 syntax and python3 syntax, and will be easy to forward port even without being able to test it directly against jython. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1704474 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21230] imghdr does not accept adobe photoshop mime type
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 image begins with the following data: '\xff\xd8\xff\xee\x00\x0eAdobe\x00d\x00\x00\x00\x00\x00\xff\xed\x008Photoshop ' I've attached the image in question to this bug report. There's two functions for asserting an image is JPEG format, test_jpeg and test_exif. I'd like to propose another function for resolving Adobe Photoshop image formats. Unless, of course, this is expected behavior? Thanks! -- components: email files: image.jpeg messages: 216260 nosy: barry, benjamin.peterson, faiz, r.david.murray priority: normal severity: normal status: open title: imghdr does not accept adobe photoshop mime type type: enhancement versions: Python 2.7 Added file: http://bugs.python.org/file34862/image.jpeg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21230 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1
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 different from a real generator's send() method, but I think that send() to a coroutine is an internal detail anyway, so I can live with that, and I don't see another work-around. When you commit, can you do upstgream (Tulip) first? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21209 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21228] Missing enumeration of HTTPResponse Objects methods of urllib.request.urlopen's http.client.HTTPResponse?
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21229] Path used for HTTP PUT request doesn't match the description
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21215] build-deps instructions for Ubuntu
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 rep...@bugs.python.org http://bugs.python.org/issue21215 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21215] build-deps instructions for Ubuntu
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20578] BufferedIOBase.readinto1 is missing
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 _pyio.BuffereadReader.{readinto,readinto1} in terms of the new helper method and, as a side effect, also increases their performance. Performance of the _pyio implementation on my system is: pre-patch: readinto: 5.130e+00 seconds readinto1 not available post-patch: readinto: 2.039e+00 seconds readinto1: 1.995e+00 seconds -- Added file: http://bugs.python.org/file34863/issue20578_r3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20578 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20578] BufferedIOBase.readinto1 is missing
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15795] Zipfile.extractall does not preserve file permissions
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 documentation...probably an em-dash, which is written in sphinx as '---'. Also, please remove the news entry from the patch, it will just make it harder to apply (and is in the wrong place anyway...we add entries at the top of the appropriate section, not the bottom). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15795 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21228] Missing enumeration of HTTPResponse Objects methods of urllib.request.urlopen's http.client.HTTPResponse?
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 tracker rep...@bugs.python.org http://bugs.python.org/issue21228 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12916] Add inspect.splitdoc
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21229] Path used for HTTP PUT request doesn't match the description
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1
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 you do upstgream (Tulip) first? Sure, this patch was for tulip code. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21209 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1
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': syncio.tasks: Fix CoroWrapper to workaround yield-from bug in CPython 3.4.1 http://hg.python.org/cpython/rev/13ff8645be57 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21209 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1
Changes by Yury Selivanov yselivanov...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21209 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21231] Issue a python 3 warning when old style classes are defined.
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 defined. type: enhancement versions: Python 2.7 Added file: http://bugs.python.org/file34865/old-style-classes.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21231 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21229] Path used for HTTP PUT request doesn't match the description
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 http://bugs.python.org/issue21229 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21229] Path used for HTTP PUT request doesn't match the description
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 http://bugs.python.org/issue21229 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20983] Python 3.4 'repair' Windows installation does not install pip setuptools packages
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 question there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20983 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21192] Idle: Print filename when running a file from editor
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 ' + code.co_filename + '\n') if self.tkconsole.executing: self.interp.restart_subprocess() def restart_subprocess(self, with_cwd=False): if was_executing: console.write('\n') console.showprompt() halfbar = ((int(console.width) - 16) // 2) * '=' console.write(halfbar + ' RESTART ' + halfbar) The 2 problems I see with the patch are that 1) it prints prematurely and 2) it does not replace RESTART. Both should be solved by passing the title string to restart_process as a new 'title' arg (title=' RESTART '). The halfbar expression should use len(title). I believe 16 is 9 (len(' RESTART ')) + 4 (len(' ')) + 3 (console.width (80) - 77). So halfbar = ((int(console.width) - len(title) - 7) // 2) * '=' I think the bar would be better without a prompt before it. If console.showprompt() is deleted, 7 becomes 3. I will code this later. -- assignee: - terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21192 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com