Stefan Behnel added the comment:
@gene_wood: that's unrelated. This ticket is about attributes being rejected
incorrectly.
Fixing the example of the OP:
from xml.etree.ElementTree import *
svg = ElementTree(XML(
... svg width=12cm height=4cm viewBox=0 0 1200 400
Chandan Kumar added the comment:
Uploading the patch for the improvement to the name mangling section of the
Python tutorial. Please note that the modification is much smaller than I
proposed earlier.
--
keywords: +patch
Added file:
New submission from Bill:
This documentation section:
https://docs.python.org/3/faq/programming.html?highlight=octal#how-do-i-convert-a-string-to-a-number
seems still to refer to Python 2 octal representation rules. So I think it
needs updating.
--
assignee: docs@python
components:
Artur added the comment:
So what is logger level for if it's not used on calling handlers?
--
nosy: +artur.ambroziak
versions: +Python 2.7 -Python 2.4, Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1484
New submission from saaj:
I was chaning an implementation of the function that is passed to json.dumps to
extend serializable types. By a mistake (**return** instead of **raise**) it
turned into, which at its minum can be expressed as::
def d(obj):
return TypeError(repr(obj))
New submission from Max:
PEP8 doesn't verifies last line at all. Also W292 will never be checked.
Reproducible on PEP8 = 1.5.0
--
messages: 216072
nosy: f1ashhimself
priority: normal
severity: normal
status: open
title: PEP8 doesn't verifies last line.
type: behavior
Lars Gustäbel added the comment:
Okay, let me tell you why I reject your contribution at this point.
The patch you submitted may be well-suited for your purposes but it does not
meet the requirements of a standard library implementation because it is not
generic and comprehensive enough.
It
Mark Dickinson added the comment:
The pep8 tool is a third-party package: it isn't part of the core Python
project. You probably want to report this at the pep8 bugtracker:
http://github.com/jcrocholl/pep8/issues
--
nosy: +mark.dickinson
resolution: - 3rd party
status: open - closed
Roundup Robot added the comment:
New changeset fb7bc8fe0d49 by Eric V. Smith in branch '3.4':
Fix text about int() with octal numbers. Closes #21212.
http://hg.python.org/cpython/rev/fb7bc8fe0d49
New changeset 6107a727c60a by Eric V. Smith in branch 'default':
Merge 3.4: Fix text about int()
Eric V. Smith added the comment:
Fixed. Thanks!
--
nosy: +eric.smith
resolution: fixed -
stage: committed/rejected -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21212
Changes by Berker Peksag berker.pek...@gmail.com:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21212
___
R. David Murray added the comment:
Ok, I'll reopen the issue to do that.
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21169
___
Kushal Das added the comment:
Another patch with docs update and one line code comment.
--
Added file: http://bugs.python.org/file34815/issue21169_v7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21169
R. David Murray added the comment:
I think 'please review' was directed at anyone, and yes, using the review link
is one way to do a review, but when there isn't enough line-by-line commenting
to make the code review tool worth using you can just post on the issue. (And
when you do use the
New submission from Glenn Jones:
The package listed in the dev guide may not exist depending on the version of
Ubuntu. It may be necessary to use python3.3 or python3.4.
--
components: Devguide
messages: 216080
nosy: Glenn.Jones, ezio.melotti
priority: normal
severity: normal
status:
Roundup Robot added the comment:
New changeset bdde36cd9048 by R David Murray in branch '3.4':
#21169: add comment and doc update for getpass change.
http://hg.python.org/cpython/rev/bdde36cd9048
New changeset fe532dccf8f6 by R David Murray in branch 'default':
Merge: #21169: add comment and
R. David Murray added the comment:
I decided to tweak the language slightly, Kushal. If this isn't what you were
looking for, Martin, let me know.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21169
Eric Snow added the comment:
I was going to say we should consider changing the API of _PyBytes_Resize() and
_PyString_Resize(). However, having looked at the two functions, I guess it
makes sense.
Looking at the patch, I'd argue that we still need to set the string to NULL in
the error
Jessica McKellar added the comment:
Elias, thanks for your patch!
I think it's important to add the second part of Terry's suggestion which gives
the user a specific next step to take, namely:
Try help('help') for information on recognized strings or help(str) for help
on the str class.
Guido van Rossum added the comment:
This is nice (a backport 3.3 would be even nicer) but at least for the PyPI
repo version of Tulip I'd like to have work-around so people won't run into
this when they are using a slightly outdated Python version. I'll think
about which of my work-arounds is
Changes by Glenn Jones gl...@millenniumhand.co.uk:
--
keywords: +patch
Added file: http://bugs.python.org/file34816/ubuntu-build-dep.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21215
R. David Murray added the comment:
Since you are saying that it is sometimes necessary to use a different
package, perhaps we should be saying that in the devguide? And providing the
possible names.
--
nosy: +barry, r.david.murray
___
Python
Kristján Valur Jónsson added the comment:
I would also advocate for a better api, that leaves it up to the caller what to
do, much like realloc() does. A convenience macro that frees the block on
error could then be provided. But this is 2.7 and we don't change stuff there
:)
Can you
Glenn Jones added the comment:
On Ubuntu 13.10, using python3 did not install the dependencies (apt reported
using the python3-defaults source package instead of python3). The python3.4,
package does not exist, but the python3.3 package did work.
This may be that we're specifying the wrong
Changes by Eric V. Smith e...@trueblade.com:
--
type: enhancement - behavior
versions: +Python 2.7, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12546
___
Kushal Das added the comment:
New version of the patch which can be successfully applied to tip.
--
Added file: http://bugs.python.org/file34817/issue17498_v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17498
Eric Snow added the comment:
For example, in the patch binascii_b2a_uu() in Modules/binascii.c no longer
sets rv to NULL even though in one of the _PyString_Resize() error cases rv is
not automatically set to NULL. And simply setting rv to NULL would be
backward-incompatible as well.
Roundup Robot added the comment:
New changeset 8dc1b45bd467 by Mark Dickinson in branch '3.4':
Issue #20624: Exception docs wording tweak - clarify that it's okay to inherit
from a subclass of Exception.
http://hg.python.org/cpython/rev/8dc1b45bd467
New changeset 262204877004 by Mark Dickinson
Matt Chaput added the comment:
This patch is the same as my previous one, except instead of removing Netrc
usage from the ftplib.test() function, it replaces it with the netrc.netrc
object. Note that there are no existing tests for the ftplib.test() function.
Also did some very minor cleanups
Roundup Robot added the comment:
New changeset 520ce42ba2b8 by Eric V. Smith in branch '2.7':
Issue #12546: Allow \x00 as a fill character for builtin type __format__
methods.
http://hg.python.org/cpython/rev/520ce42ba2b8
--
nosy: +python-dev
___
Roundup Robot added the comment:
New changeset 445ef3b58109 by Michael Foord in branch '3.4':
Issue 20968. unittest.mock.MagicMock now supports division
http://hg.python.org/cpython/rev/445ef3b58109
--
nosy: +python-dev
___
Python tracker
Kristján Valur Jónsson added the comment:
This is _PyString_Resize(). I don't immediatlly see an error case where the
string isn't freed:
int
_PyString_Resize(PyObject **pv, Py_ssize_t newsize)
{
register PyObject *v;
register PyStringObject *sv;
v = *pv;
if (!PyString_Check(v)
Roundup Robot added the comment:
New changeset f729a0e90c4f by Mark Dickinson in branch '2.7':
Issue #20624: Merge exception docs tweak from 3.4 branch.
http://hg.python.org/cpython/rev/f729a0e90c4f
--
___
Python tracker rep...@bugs.python.org
Mark Dickinson added the comment:
Fixed. Closing.
--
resolution: - fixed
status: open - closed
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20624
___
Michael Foord added the comment:
Can you explain why we need to check for the call_count here? I don't
understand why this is needed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17826
Marek Stepniowski added the comment:
Added test to amathew's patch.
--
nosy: +mstepniowski
Added file:
http://bugs.python.org/file34819/minidom_space_char_in_namespace_with_test.patch
___
Python tracker rep...@bugs.python.org
Senthil Kumaran added the comment:
I verified the patch and this indeed corrects a nasty bug in sending a wrong
header when doing it a lower level HTTPSConnection to proxy and set_tunnel (bad
term) to the end host..I was worried as why we did not observe this earlier and
it seems to me that
Michael Foord added the comment:
Thanks!
--
assignee: - michael.foord
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20968
Sam Lucidi added the comment:
I've attempted to synthesize the ideas in this thread into a clearer
explanation of __main__. What I've written doesn't attempt to explain anything
else about module naming, but it does try to address the common package and
module uses of __main__.
--
R. David Murray added the comment:
I've made some review comments.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15104
___
___
Python-bugs-list
Changes by R. David Murray rdmur...@bitdance.com:
--
stage: needs patch - patch review
versions: +Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15104
___
Toshio Kuratomi added the comment:
Took a look at this and was able to reproduce it on Fedora Linux 20 and current
cpython head. It is somewhat random though. I'm able to get reasonably
consistent failures using image/jpeg and iterating the test case about 20 times.
Additionally, it looks
Roundup Robot added the comment:
New changeset 7c484551bce1 by Eric V. Smith in branch '3.4':
Issue #12546: Allow \x00 as a fill character for builtin type __format__
methods.
http://hg.python.org/cpython/rev/7c484551bce1
New changeset bd90e68dc81f by Eric V. Smith in branch 'default':
Closes
Eric V. Smith added the comment:
Fixed in 2.7, 3.4, 3.5.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12546
Sam Lucidi added the comment:
Thanks, I've revised the change based on your comments.
--
Added file:
http://bugs.python.org/file34822/clarify-__main__-documentation.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15104
Changes by R. David Murray rdmur...@bitdance.com:
--
Removed message: http://bugs.python.org/msg174146
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15916
___
Changes by R. David Murray rdmur...@bitdance.com:
--
Removed message: http://bugs.python.org/msg174145
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15916
___
jonathan ferretti added the comment:
Added note to timeit function briefly explaining how to avoid it the issue and
the cause
--
keywords: +patch
nosy: +jonathan.ferretti
type: enhancement - behavior
Added file: http://bugs.python.org/file34823/timeit.patch
Matt Chaput added the comment:
Simple patch to remove the underscore in tarfile.rst.
--
keywords: +patch
nosy: +maatt
Added file: http://bugs.python.org/file34824/issue21198.patch
___
Python tracker rep...@bugs.python.org
Matt Chaput added the comment:
The patch looks good to me.
--
nosy: +maatt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21146
___
___
Roundup Robot added the comment:
New changeset 5992d2c9522c by Eric V. Smith in branch 'default':
Issue #20480: Add ipaddress.reverse_pointer. Patch by Leon Weber.
http://hg.python.org/cpython/rev/5992d2c9522c
--
nosy: +python-dev
___
Python tracker
Changes by Eric V. Smith e...@trueblade.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20480
___
R. David Murray added the comment:
Well, with the new website the url now returns a 404, so I guess we can close
this. If someone wants to see it restored as a historical document, that would
be an issue for the web site bug tracker. But, since other essays exist, it
looks like it was a
Kushal Das added the comment:
Updated patch with builtins module.
--
versions: +Python 3.4 -Python 3.5
Added file: http://bugs.python.org/file34825/issue17660_v3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17660
Roundup Robot added the comment:
New changeset 39ee3286d187 by Senthil Kumaran in branch '3.4':
Issue #7776: Fix ``Host:'' header and reconnection when using
http.client.HTTPConnection.set_tunnel().
http://hg.python.org/cpython/rev/39ee3286d187
New changeset 2c9af09ba7b8 by Senthil Kumaran in
Barry A. Warsaw added the comment:
The `python3` binary package is a sort of meta package that brings in the
interpreter (and some ancillary stuff) for all supported Python 3 versions.
For Ubuntu 14.04 that will be just python3.4. But if you want to build the
interpreter from source (e.g.
Changes by Eric V. Smith e...@trueblade.com:
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13598
___
___
Ned Deily added the comment:
I don't think it was a conscious decision. Unlike most of the others, the link
for this essay is to the 2.2 docs tree. I'm guessing there was a redirect
there that has gone AWOL.
--
___
Python tracker
Senthil Kumaran added the comment:
This is fixed in 3.4 and 3.5 (finally). I will port it to 2.7 as well.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7776
___
Benjamin Peterson added the comment:
3.3 is in security-fix only mode.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21209
___
Eric Snow added the comment:
Yeah, I missed the *pv = 0; line in the first error case.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20434
___
New submission from Julien Palard:
I just found that python consider linux implementation of getaddrinfo thread
safe :
./python2.6-2.6.8/Modules/socketmodule.c:180
/* On systems on which getaddrinfo() is believed to not be thread-safe,
Yury Selivanov added the comment:
3.3 is in security-fix only mode.
Yeah, but this is a core language bug. I believe some people may be stuck on
3.3 with broken 'yield from' for whatever reason, which will cause hard to find
bugs in 3.3 compatible libraries (like asyncio/tulip). I think we
Benjamin Peterson added the comment:
On Mon, Apr 14, 2014, at 10:20, Yury Selivanov wrote:
Yury Selivanov added the comment:
3.3 is in security-fix only mode.
Yeah, but this is a core language bug. I believe some people may be stuck
on 3.3 with broken 'yield from' for whatever reason,
Changes by Guido van Rossum gu...@python.org:
--
nosy: -gvanrossum
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17009
___
___
Python-bugs-list
Mark Dickinson added the comment:
The docs[1] for SSL_set_ecdh_auto say: These functions were first added to
OpenSSL 1.0.2. From looking at Modules/_ssl.c, it looks as though we're
trying to use them when the version is = 0.9.8.
[1]
Sam Lucidi added the comment:
Here's a patch which changes the entry in the index to encoding declarations
(source file) per Terry's third point.
--
keywords: +patch
nosy: +mansam
Added file: http://bugs.python.org/file34826/encoding-declarations-index.patch
Guido van Rossum added the comment:
I think I have to add a work-around to Tulip anyway, because I don't want to
have to tell people you must upgrade your Python 3.3 otherwise this problem
can happen (if upgrading was easy for them they would be on 3.4 :-). So I
don't care much if the 3.3
Antoine Pitrou added the comment:
The docs[1] for SSL_set_ecdh_auto say: These functions were first
added to OpenSSL 1.0.2. From looking at Modules/_ssl.c, it looks as
though we're trying to use them when the version is = 0.9.8.
If that was the issue at hand we would get a compile error, no?
New submission from Thomas Ballinger:
https://gist.github.com/thomasballinger/10666031
inspect.getsourcelines incorrectly guesses what lines correspond
to the function foo
see getblock in inspect.py
once it finds a lambda, def or class it finishes it then stops
so get getsourcelines returns
Thomas Ballinger added the comment:
The code object's co_lnotab is how inspect should be getting the sourcelines
of the code, instead of looking for the first codeblock.
I'm looking at this now, thanks to Yhg1s for the above.
--
___
Python tracker
Roundup Robot added the comment:
New changeset 7e2708484ea5 by Andrew Kuchling in branch '3.4':
#18518: mention that including a return statement changes/breaks the behaviour
http://hg.python.org/cpython/rev/7e2708484ea5
--
nosy: +python-dev
___
Matt Chaput added the comment:
Patch on top of dbudinova's that attempts to replace the concatenation of
strings with a verbose regex.
--
nosy: +maatt
Added file: http://bugs.python.org/file34827/issue20491_verbose.patch
___
Python tracker
Mark Dickinson added the comment:
Yep, true. Ignore me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21015
___
___
Python-bugs-list mailing
Caelyn McAulay added the comment:
Here is a patch to add the requested documentation to code.h - I expanded it to
specify (as per the conversation in this issue) that co_name is used in both
hash and comparisons while co_firstlineno is used only in comparisons.
I do not attempt explain the
Changes by Mark Dickinson dicki...@gmail.com:
--
Removed message: http://bugs.python.org/msg216123
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21015
___
Kristján Valur Jónsson added the comment:
Ok, are we good to go then?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20434
___
___
R. David Murray added the comment:
OK, so the devguide currently has
sudo apt-get build-dep python3
which did something on Glenn's machine, but did not enable him to build the
optional packages. So the question is, what should we put in the devguide as
the correct build-dep to install?
jmaki added the comment:
loewis, r.david.murray: Please proceed in terms of #3--The specific example
does not work on Windows. I am using python 2.7.6 on Windows 7.
Below is the failing message that happens immediately on startup, specifically,
when hitting this line:
Changes by Éric Araujo mer...@netwok.org:
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17660
___
___
R. David Murray added the comment:
The suggestion was to make this a footnote, not a note. Also, it should
probably say that the stmt is executed inside a function, meaning that instead
of being a syntax error it changes the return value of the internal timeit
function.
I understand
Christian Hudon added the comment:
As far as I can see, this is now tested by the following tests in test_runpy:
test_run_module_in_namespace_package
test_run_package_in_namespace_package
test_run_namespace_package
test_run_namespace_package_in_namespace_package
(These new tests were in
New submission from Jeff Ramnani:
The unittest, test_ssl.test_default_ecdh_curve, is failing on OS X (and FreeBSD
9).
The test fails with the error message:
==
ERROR: test_default_ecdh_curve (test.test_ssl.ThreadedTests)
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21215
___
___
Python-bugs-list
Ned Deily added the comment:
Thanks for the report. This is being tracked in Issue21015.
--
nosy: +ned.deily
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - support SSL_CTX_set_ecdh_auto on newer OpenSSLs
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
stage: needs patch - patch review
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18628
___
A.M. Kuchling added the comment:
BTW, this change is also relevant to 2.7. Previously I wouldn't have bothered
to commit it to 2.7 since the branch was largely closed, but now we're talking
about some corporate maintainer eventually going through and backporting fixes
to the newly-extended
Terry J. Reedy added the comment:
help() uses lib/pydoc.py and pydoc tests are in test/test_pydoc.py
I think tests for things help does that pydoc does not do (help on topics?)
should be in site.py.
--
___
Python tracker rep...@bugs.python.org
Barry A. Warsaw added the comment:
On Apr 14, 2014, at 05:47 PM, R. David Murray wrote:
OK, so the devguide currently has
sudo apt-get build-dep python3
which did something on Glenn's machine, but did not enable him to build the
optional packages. So the question is, what should we put in
Éric Araujo added the comment:
Isn’t there a buffering argument in open that can be used to avoid line
buffering?
--
nosy: +eric.araujo
versions: +Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
Glenn Jones added the comment:
I've attached a patch that uses the original default DocTestFinder and does not
raise an exception when there are no tests.
--
nosy: +Glenn.Jones
Added file: http://bugs.python.org/file34829/issue15916-no-exception.patch
A.M. Kuchling added the comment:
I dislike footnotes and prefer to put things in the text whenever possible.
The text for this change struck as relevant enough -- it notes a property of
the *stmt* parameter -- that it doesn't belong in a footnote. (I'd be happy to
just make it a paragraph
Zachary Ware added the comment:
Ok, debugging again with better breakpoints, I see what I missed before, so
here's a new patch that does things a little differently. This patch sets the
TCL_LIBRARY envvar just before calling Tcl_FindExecutable, and unsets it after
the call. The $tcl_library
Andrew Scheller added the comment:
Éric - appears to be only Doc/library/tarfile.rst that is affected.
Matt - looks like your simple patch contains a lot more than you intended?!
--
___
Python tracker rep...@bugs.python.org
New submission from Stéphane Wirtel:
When I build the documentation, I get a warning about the NEWS file. Just add a
new patch for this warning.
(sphinx) make html
sphinx-build -b html -d build/doctrees -D latex_paper_size= . build/html
Making output directory...
Running Sphinx v1.2.2
Stéphane Wirtel added the comment:
Here is the patch for this bug.
--
keywords: +patch
Added file: http://bugs.python.org/file34833/issue21219_1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21219
Changes by Senthil Kumaran sent...@uthcode.com:
--
resolution: - fixed
stage: test needed - committed/rejected
versions: +Python 3.5 -Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7776
Changes by Sam Lucidi man...@csh.rit.edu:
Added file:
http://bugs.python.org/file34831/clarify-__main__-documentation-backticks.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15104
___
Yury Selivanov added the comment:
Guido: please take a look at the patch corowrapper_01.patch.
--
Added file: http://bugs.python.org/file34832/corowrapper_01.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21209
Changes by Zachary Ware zachary.w...@gmail.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21219
___
___
Python-bugs-list
1 - 100 of 251 matches
Mail list logo