New submission from Marco Buttu:
The range documentation is not PEP-8 compatible:
range.__doc__.splitlines()[-1]
'Returns a virtual sequence of numbers from start to stop by step.'
range.__reversed__.__doc__
'Returns a reverse iterator.'
range.index.__doc__.splitlines()[-1]
'Raises
New submission from Marco Buttu:
As reported in the title:
complex.conjugate.__doc__.splitlines()[-1]
'Returns the complex conjugate of its argument. (3-4j).conjugate() == 3+4j.'
complex.__format__.__doc__.splitlines()[-1]
'Converts to a string according to format_spec.'
They should have
Changes by Marco Buttu marco.bu...@gmail.com:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19068
___
___
Python-bugs-list
New submission from Marco Buttu:
As reported in the title:
float.as_integer_ratio.__doc__.splitlines()[2]
'Returns a pair of integers, whose ratio is exactly equal to the original'
float.as_integer_ratio.__doc__.splitlines()[4]
'Raises OverflowError on infinities and a ValueError on NaNs.'
Terry J. Reedy added the comment:
When the patch to #12085 is changed, as has been agreed, I think, this issue
should go away.
Moving the deletion of builtins to later in the shutdown process has be
discussed and maybe implemented.
--
___
Python
Nick Coghlan added the comment:
My F19 system (which works) shows gdb-7.6-34, while the new debugging output
Antoine added shows 7.3.50.20110722-16.fc16 on F16
Maybe the new gdb version check needs to be looking for 7.4+ rather than 7.3+?
--
___
Nick Coghlan added the comment:
Hmm, I also noticed some issues with 2.7/3.2 on the RHEL 6 buildbot (similar to
those previously reported in issue 15043).
I'll keep tinkering with it.
--
keywords: +buildbot
___
Python tracker rep...@bugs.python.org
Georg Brandl added the comment:
Using the warning directive can be backported from the 3.x docs.
For 3.x, it's already prominent enough. Your screen border is not everyone's
screen border.
--
nosy: +georg.brandl
versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.3, Python 3.4,
anatoly techtonik added the comment:
The scope of warning is wrong. It is not a warning for open() call, and that's
why it is easy to miss.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19061
Roundup Robot added the comment:
New changeset 1d850260a356 by Georg Brandl in branch '2.7':
Closes #19061: make shelve security warning consistent between 2.x and 3.x.
http://hg.python.org/cpython/rev/1d850260a356
--
nosy: +python-dev
resolution: - fixed
stage: - committed/rejected
Georg Brandl added the comment:
Oh, please. It's big and red and directly below the open() description, how
could you miss it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19061
___
Nick Coghlan added the comment:
Looks like the RHEL 6 failures may have just been a change on the OS side that
reintroduced the need for this old workaround:
http://docs.python.org/devguide/faq.html#how-do-i-update-my-auto-load-safe-path-to-allow-test-gdb-to-run
I restored that FAQ, applied
Roundup Robot added the comment:
New changeset 7a8616f21f26 by Georg Brandl in branch '2.7':
Closes #19043: remove detailed listing of versions from license files
http://hg.python.org/cpython/rev/7a8616f21f26
--
nosy: +python-dev
resolution: - fixed
stage: patch review -
Roundup Robot added the comment:
New changeset 59b6c3280827 by Georg Brandl in branch '3.3':
Closes #19043: remove detailed listing of versions from license files
http://hg.python.org/cpython/rev/59b6c3280827
--
___
Python tracker
New submission from Graham Dumpleton:
When a weakref.proxy() is used to wrap a class instance which implements in
place operators, when one applies the in place operator to the proxy, one could
argue the variable holding the proxy should still be a reference to the proxy
after the in place
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +ncoghlan, tim.peters
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19070
___
___
anatoly techtonik added the comment:
On Sun, Sep 22, 2013 at 12:42 PM, Georg Brandl rep...@bugs.python.orgwrote:
Oh, please. It's big and red and directly below the open() description,
how could you miss it?
I believe that it is pretty easy with mobile browser due to screen
constraints. Can
Georg Brandl added the comment:
I believe that it is pretty easy with mobile browser due to screen
constraints. Can you test this on your mobile devices?
Sorry, but we don't adapt the docs *content* to any specific device. You
should never only read just a screenful in any case. This is
anatoly techtonik added the comment:
223 people + me out of 1422 disagree with you both.
http://stackoverflow.com/questions/101268/hidden-features-of-python
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19024
anatoly techtonik added the comment:
To narrow the point of conflict, I say that argument unpacking *operators*
should have a prominent place in Python documentation that people can link
to. Current page
http://docs.python.org/3/tutorial/controlflow.html#unpacking-argument-lists is
about
Nick Coghlan added the comment:
Ouch :P
Perhaps the least-incompatible fix would be to switch to returning the proxy if
the object returned is the proxied object (which would do the right thing for
proxies to mutable objects), while preserving the current behaviour when the
in-place
Roundup Robot added the comment:
New changeset caa16423b324 by Nick Coghlan in branch 'default':
Close #19047: weakref doc cleanups
http://hg.python.org/cpython/rev/caa16423b324
--
nosy: +python-dev
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
Oleg Oshmyan added the comment:
But the thing is, builtins are already supposed to be the very last thing
destroyed at shutdown.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19021
___
New submission from Graham Dumpleton:
In the documentation for Python 2.X at:
http://docs.python.org/2/extending/extending.html#a-simple-example
it says:
The self argument points to the module object for module-level functions; for a
method it would point to the object instance.
In
anatoly techtonik added the comment:
On Sun, Sep 22, 2013 at 2:11 PM, Georg Brandl rep...@bugs.python.orgwrote:
Georg Brandl added the comment:
I believe that it is pretty easy with mobile browser due to screen
constraints. Can you test this on your mobile devices?
Sorry, but we don't
Nick Coghlan added the comment:
Unfortunately, there's currently no good place for this kind of detailed syntax
reference documentation to go. The library reference doesn't cover syntax, the
tutorial doesn't go into detailed semantics, and the language reference is
written more for language
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +loewis, ncoghlan, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19071
___
___
Georg Brandl added the comment:
me[1] open() function description is a wrong place for warning that is
related to a whole module
you[2] common, it is visible, that's the point anyway
me[3] it is not visible on mobile
you[4] we do not support mobile
Your complaint was that it is located
Antoine Pitrou added the comment:
This would be an useful improvement. Do you want to post a patch? See
guidelines at http://docs.python.org/devguide/
--
nosy: +belopolsky, ghaering, lemburg, pitrou
stage: - needs patch
type: - enhancement
versions: +Python 3.4 -Python 3.3
anatoly techtonik added the comment:
On Sun, Sep 22, 2013 at 2:57 PM, Georg Brandl rep...@bugs.python.orgwrote:
Georg Brandl added the comment:
me[1] open() function description is a wrong place for warning that is
related to a whole module
you[2] common, it is visible, that's the point
anatoly techtonik added the comment:
I having a snippet to fix that, should I open a new issue for patch?
Please open a new issue.
Reference is welcome.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
Roundup Robot added the comment:
New changeset 2e1335245f8f by Nick Coghlan in branch 'default':
Close #18626: add a basic CLI for the inspect module
http://hg.python.org/cpython/rev/2e1335245f8f
--
nosy: +python-dev
resolution: - fixed
stage: needs patch - committed/rejected
status:
Nick Coghlan added the comment:
Thanks for the initial patch Claudiu - I tweaked it a bit before committing it.
* as you suggested, displaying the source is the default, with a --details
option to display the formatted info instead
* changed the displayed details (e.g. only displaying the
New submission from Graham Dumpleton:
The classmethod decorator when applied to a function of a class, does not
honour the descriptor binding protocol for whatever it wraps. This means it
will fail when applied around a function which has a decorator already applied
to it and where that
New submission from Graham Dumpleton:
Python 3 introduced __qualname__. This attribute exists on class types and also
instances of certain class types, such as functions. For example:
def f(): pass
print(f.__name__)
print(f.__qualname__)
class Class: pass
print(Class.__name__)
Antoine Pitrou added the comment:
I guess this would be a harmless improvement in any case.
--
nosy: +pitrou
stage: - needs patch
type: behavior - enhancement
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
koobs added the comment:
Attaching an initial patch with the following changes:
- Update comment
- Add original (#1600860) and current issue ID references
- Remove sys.platform conditional
- Remove NOOP sysconfig.get_config_var call (Reported by: birkenfeld)
This results in all platforms
Roundup Robot added the comment:
New changeset 6d6d68c068ad by Jason R. Coombs in branch 'default':
Issue #18978: Allow Request.method to be defined at the class level.
http://hg.python.org/cpython/rev/6d6d68c068ad
New changeset 2b2744cfb08f by Jason R. Coombs in branch 'default':
Issue #18978:
New submission from anatoly techtonik:
http://docs.python.org/2/faq/gui.html - this page misses info about PySide.
--
assignee: docs@python
components: Documentation
messages: 198279
nosy: docs@python, techtonik
priority: normal
severity: normal
status: open
title: Add PySide to GUI FAQ
Roundup Robot added the comment:
New changeset 7f13d5ecf71f by Jason R. Coombs in branch 'default':
Issue #18978: Update docs to reflect explicitly the ability to set the
attribute at the class level.
http://hg.python.org/cpython/rev/7f13d5ecf71f
--
Jason R. Coombs added the comment:
I just want to say thanks for working on this. I also have needed this
functionality for various needs in the past. To fulfill my needs, I wrote this
implementation:
Brett Cannon added the comment:
``python3 perf.py -fb mako_v2 ../opt/python ../x32opt/python`` obviously
assuming you are specifying Python 3 interpreters. =)
Feel free to tweak any docs you think should be touched up to make that more
obvious.
--
assignee: brett.cannon - pitrou
Antoine Pitrou added the comment:
Well... It wasn't really obvious to me :-)
Why shouldn't the child interpreter decide which lib to use, though? perf.py
is just an executable script (and its shebang specifies python, not python3).
--
___
Python
Changes by Brett Cannon br...@python.org:
--
priority: normal - low
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19074
___
Brett Cannon added the comment:
I say we just delete that page. Trying to keep up with GUI toolkits is a losing
battle (as shown by this bug report) and not worth our time and effort to try
to maintain. Search engines are your friend in this instance.
--
nosy: +brett.cannon
Brett Cannon added the comment:
Originally that didn't work too well because the benchmark suite could run
Python 2 and Python 3 benchmarks simultaneously, but I don't know if that still
works after the 2/3 merge.
As for having interpreter under test make the choice of what version to use is
Christian Heimes added the comment:
The wiki is probably a better place for such information.
--
nosy: +christian.heimes
versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.5
___
Python tracker rep...@bugs.python.org
anatoly techtonik added the comment:
So, is deque a faster replacement for Queue.Queue or not?
--
nosy: +techtonik
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15329
___
Alexander Belopolsky added the comment:
Sounds like a reasonable request, but the proposed code does not seem to work
for the Eastern hemisphere (negative tz offsets.)
I am not very familiar with sqlite module. What timestamp format does it use?
Isn't it some varian of ISO 3339? See issue
Terry J. Reedy added the comment:
The StackOverflow question and answer about function calls is 5 years old and
therefore out of date with respect to #12531, which specifically added index
entries for function calls.
Perhaps my Python 3 symbol glossary Python3 Syntax Symbol Uses
Daniel Urban added the comment:
I like the 3rd alternative the most. It seems to me, that __abstractmethods__
is currently an undocumented implementation detail of ABCs. The 1st alternative
would cause every type to have an empty __abstractmethods__ (which is
technically correct, but probably
Alexander Belopolsky added the comment:
See also #5907.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1820
___
___
Python-bugs-list mailing
Sunny added the comment:
I've rewritten the source_synopsis function to use the tokenize module.
It should now work with triple single quotes and hopefully all the other cases
where __doc__ returns a string.
Since tokenize.tokenize needs a file object that is opened in binary mode, in
the
anatoly techtonik added the comment:
If only wiki had a theme like Sphinx docs.. But I agree that static FAQ look
dead compared to wiki or stackoverflow.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19074
Eli Bendersky added the comment:
+1 to delete
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19074
___
___
Python-bugs-list
New submission from Jason Yeo:
My university uses python to teach sorting algorithms. It will be great if the
turtledemo comes with a visualization of some of the algorithms. I have
attached a patch for it.
--
components: Demos and Tools
files: animation.diff
keywords: patch
messages:
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19075
___
___
Python-bugs-list
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +gregorlingl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19075
___
___
Richard Oudkerk added the comment:
Thanks for the doc cleanup -- I am rather busy right now.
Note that stuff does still get replaced by None at shutdown, and this can still
produce errors, even if they are much harder to trigger. If I run the
following program
import _weakref
import
Terry J. Reedy added the comment:
+lots on ending News Merge Hell. After too many bad experiences, I now avoid
pushing non-Idle patches that require a News entry. Even for those who do not
mind merge conflicts, there is still the waste of time.
The premise of non-checkout code management is
Barry A. Warsaw added the comment:
Okay, this one is quite odd. It's definitely a timing issue.
If I put a `import time; time.sleep(1)` at the beginning of
test_retrlines_too_line() -- i.e. first line of the method -- then the test
reliably passes. If I put a `print(len(line))` just before
Barry A. Warsaw added the comment:
Looks good for 2.6. The NEWS file hunk doesn't apply, but I'll fix that when I
commit this to 2.6.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16039
Roundup Robot added the comment:
New changeset 4190568ceda0 by Barry Warsaw in branch '2.6':
- Issue #16039: CVE-2013-1752: Change use of readline in imaplib module to
http://hg.python.org/cpython/rev/4190568ceda0
--
nosy: +python-dev
___
Python
Barry A. Warsaw added the comment:
Since the merge 2.6 - 2.7 did not apply cleanly, and had other problems. I
null merged the 2.6 changes. I'll leave it to Benjamin to work out whatever
patches 2.7 needs.
--
versions: -Python 2.6
___
Python
Barry A. Warsaw added the comment:
Please don't add 2.6 back to the Versions, unless there's actually something to
do for 2.6. AFAIK, this issue is resolved for 2.6.
--
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
Changes by Brett Cannon br...@python.org:
--
assignee: docs@python - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19074
___
___
Ezio Melotti added the comment:
Even for those who do not mind merge conflicts,
there is still the waste of time.
If you know what you are doing the waste is minimal. I sometimes import,
check, commit, merge, and push a patch on 3 branches in less than a minute (it
was a trivial patch that
Ezio Melotti added the comment:
Note that we have a somewhat similar HOWTO about using Python in the web:
http://docs.python.org/dev/howto/webservers.html
The HOWTO mentions at the top that it can't keep track of all the several web
framework and links to the wiki for a more updated page.
The
Antoine Pitrou added the comment:
Actually PySide is mentioned in the 3.x version of the docs.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19074
___
Ethan Furman added the comment:
Current patch has a little more code cleanup and a bunch more tests.
I copied and adapted test_property to test_VirtualAttribute, and
VirtualAttribute passes every test except the __slots__ test where __doc__ is
not supposed to copy. I think the problem there
Changes by Ethan Furman et...@stoneleaf.us:
Added file: http://bugs.python.org/file31846/issue19030.stoneleaf.04.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19030
___
Ethan Furman added the comment:
Okay, I changed my mind about __delattr__. Having it say AttributeError:
cannot delete Enum member is certainly nicer than AttributeError: MemberName
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset ed011b0d7daf by Ethan Furman in branch 'default':
Close #19025: Better error message when trying to delete an Enum member.
http://hg.python.org/cpython/rev/ed011b0d7daf
--
nosy: +python-dev
resolution: - fixed
stage: - committed/rejected
New submission from Michael Smith:
Pretty straightforward:
File
/usr/local/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/pdb.py,
line 675, in do_break
self.error(err, file=self.stdout)
TypeError: error() got an unexpected keyword argument 'file'
Sure enough,
Ethan Furman added the comment:
Posted a message on PyDev, but unless I get feedback saying it's a bad idea, or
I find some implementation issue, I'll go ahead and make the change.
So either a doc patch or an enum patch will be in alpha3. :)
--
Ethan Furman added the comment:
How about this note after the AutoNumber example?
.. note::
The :meth:`__new__` method, if defined, is used during creation of the Enum
members; it is then replaced by Enum's :meth:`__new__` which is used after
class creation for lookup of existing
Eli Bendersky added the comment:
LGTM, Ethan. You know how I feel about customization in general ;-) We should
give Enum a term or two in the stdlib to learn how it's being used and abused -
we can always *add* customization in the future.
--
___
Nick Coghlan added the comment:
I suggest DynamicClassAttribute for the descriptor name.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19030
___
Ethan Furman added the comment:
Yup, just trying to add some explanation on how it currently works.
Drekin, I'm sure you've already figured this out, but for those who may read
this in the future: what you need is a helper function:
def OptionalEnum(value):
could also be
Changes by Berker Peksag berker.pek...@gmail.com:
--
components: +Library (Lib)
nosy: +berker.peksag, georg.brandl
stage: - needs patch
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19076
80 matches
Mail list logo