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
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
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
___
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
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
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
___
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
___
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
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
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
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
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
___
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
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
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
___
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
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:
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.
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
___
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
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
___
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
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
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
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
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
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
___
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
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
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
___
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
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
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
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
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
___
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
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
___
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
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
___
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
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
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
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
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
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':
Changes by Yury Selivanov yselivanov...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21209
___
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
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
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
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
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 ' +
201 - 251 of 251 matches
Mail list logo