Eric Snow added the comment:
It does not necessarily require a metaclass. You can accomplish it using a
custom descriptor:
class classattr:
def __init__(self, getter):
self.getter = getter
def __get__(self, obj, cls):
return self.getter(cls)
FWIW, this is a descriptor
Changes by Marc Schlaich marc.schla...@googlemail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20954
___
___
Marc Schlaich added the comment:
This was fixed in #19284 for Python 3.4 (without having possible consequences
in mind). I have updated my patch accordingly.
Maybe it's worth to port my test case to Python 3.4.
Removed Python 3.3 as it isn't in bugfix maintenance anymore.
--
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com:
Removed file: http://bugs.python.org/file34467/Issue20112_py27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20112
___
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com:
Removed file: http://bugs.python.org/file34469/Issue20112_py34.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20112
___
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com:
Removed file: http://bugs.python.org/file34468/Issue20112_py33.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20112
___
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com:
Added file: http://bugs.python.org/file34481/Issue20112_py34.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20112
___
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com:
Added file: http://bugs.python.org/file34482/Issue20112_py33.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20112
___
Anastasia.Filatova added the comment:
Thank you, Eric for your comments! I see now what doese the 'review' link mean
:) You are right the send_error should be a method not a class variable. I
changed it in a new patch. As regards the responses I prefer don't change it to
a class attribute
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com:
Added file: http://bugs.python.org/file34483/Issue20112_py27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20112
___
Changes by andy.ma andy.ju...@gmail.com:
--
nosy: +andyma
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17110
___
___
Python-bugs-list mailing
STINNER Victor added the comment:
namedtuple_source.patch: Replace _source attribute wasting memory with a
property generating the source on demand. The patch adds also unit test for the
verbose attribute (which is public and documented, even it is said to be
outdated).
The patch removes
New submission from andy.ma:
The Python Tkinter Resources link(http://www.python.org/topics/tkinter/)
resides in the topic of tkinter — Python interface to
Tcl/Tk(http://docs.python.org/2/library/tkinter.html) is currently broken.
It redirects to https://www.python.org/topics/tkinter/; which
Christian Heimes added the comment:
Yes, Python 3.4 can load and use CRLs.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8813
___
STINNER Victor added the comment:
Yes, Python 3.4 can load and use CRLs.
Great work Christian, I was expecting this feature since many years :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8813
Christian Heimes added the comment:
It was *really* trivial. I just had to expose two simple OpenSSL APIs to enable
/ disable CRL. All versions of Python could already load the CRLs but CRL
checks could not be enabled.
--
___
Python tracker
STINNER Victor added the comment:
It was *really* trivial. I just had to expose two simple OpenSSL APIs to
enable / disable CRL.
It was trivial thanks to all the work done before around SSLContext. For
example, Python 2.7 doesn't have SSLContext, so adding support for CRL in
Python 2.7 is
Berker Peksag added the comment:
I've updated the tests to match the changes in issue 12009 and documentation a
bit.
--
nosy: +berker.peksag
versions: +Python 3.5 -Python 3.3
Added file: http://bugs.python.org/file34485/issue11416.diff
___
Python
Anastasia.Filatova added the comment:
Now argparse documentation includes a paragraph about advantages of argparse
module over optparse module.
--
keywords: +patch
nosy: +Anastasia.Filatova
Added file: http://bugs.python.org/file34486/Issue17462_py27.patch
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com:
Added file: http://bugs.python.org/file34487/Issue17462_py33.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17462
___
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com:
Added file: http://bugs.python.org/file34488/Issue17462_py34.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17462
___
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:
Removed file:
http://bugs.python.org/file34439/classbrowser-improvements-v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20827
___
Éric Araujo added the comment:
Thanks for the patch, will apply.
--
assignee: docs@python - eric.araujo
stage: needs patch - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17462
the mulhern added the comment:
I feel that I worded this in a way that makes it look like I'm asking for an
enhancement, not reporting a bug, so I'll try again.
The documentation for 2.7.6 and 3.4.0 says:
Using this decorator requires that the class’s metaclass is ABCMeta or is
derived from
the mulhern added the comment:
Thanks for the fix.
When you say having repr raise is a pretty unusual occurrence you probably
mean having repr raise should be a pretty unusual occurrence.
I think its more usual than you realize and the regression in 3.4 will have
consequences.
--
Claudiu.Popa added the comment:
Hello. In 3.3 you can instantiate META class, because it does not properly say
that it wants abc.ABCMeta as a metaclass. For this, you have to write your
class as such:
class META(metaclass=abc.ABCMeta):
@abc.abstractmethod
def _junk(self):
...
Changes by Romuald Brunet romuald.bru...@gmail.com:
--
nosy: +Romuald
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7980
___
___
Python-bugs-list
New submission from Adrian Teng:
A particular usage pattern of hashlib will cause a memory leak.
This leaks:
import hashlib
import sys
if __name__ == '__main__':
data_sha1 = hello world
data_md5 = hello world
for i in xrange(int(1e6)):
hashlib.sha1(data_sha1)
R. David Murray added the comment:
The fact that you say the method is _junk(self) and say the other classes
don't override it makes me think you are thinking that methods with the same
name are different from a subclasses perspective if they have different
signatures. In Python this is not
Serhiy Storchaka added the comment:
LGTM.
--
stage: patch review - commit review
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19009
___
New submission from Johannes Baiter:
It seems that when creating a MagicMock the magic '__truediv__' method is not
replaced with a mock:
import mock
foo = mock.MagicMock()
foo / 2
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: unsupported operand type(s) for
Eric Snow added the comment:
Both abstractnethod and abstractproperty work by setting __isabstractmethod__
to True on the decorated function. Then type.__new__ looks for any attributes
of the current class (including inherited ones) that have __isabstractmethod__
set to True. The signature
Roundup Robot added the comment:
New changeset be1e015a8405 by Zachary Ware in branch '2.7':
Issue #20966: Fix Tkinter Resources link
http://hg.python.org/cpython/rev/be1e015a8405
New changeset f28f63c5d30a by Zachary Ware in branch '3.4':
Issue #20966: Fix Tkinter Resources link
Zachary Ware added the comment:
Fixed, thanks for the report!
--
nosy: +zach.ware
type: resource usage - behavior
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20966
Eric Snow added the comment:
Oops, typos.
Both abstractmethod and abstractproperty work by setting
__isabstractmethod__ to True on the decorated function. Then type.__new__
That should be type.__call__ or object.__new__, I don't remember which.
looks for any attributes of the current class
R. David Murray added the comment:
Did you reopen the issue accidentally? The bug has been fixed.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20918
___
Johannes Baiter added the comment:
Attached is a patch that fixes the issue for me.
--
keywords: +patch
Added file: http://bugs.python.org/file34490/mock_truediv.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20968
New submission from Christian Clauss:
http://docs.python.org/3/download.html has an EPUB version of the Python docs
but the Author of the document is set to Unknown so this text appears on the
cover page and is repeated on the top of every other page throughout the
document (in the iBooks app
Johannes Baiter added the comment:
I just noticed that I put the magic method names in the wrong place in the
patch.
Attached is a fix that adds 'truediv' to the global 'numberics' variable, this
way '__rtruediv__' and '__itruediv__' will be correctly mocked as well.
--
Added file:
Xavier de Gaye added the comment:
test_statistics also defines a load_tests() function that builds unittest tests
from doctests with doctest.DocTestSuite() and also fails in refleak mode. The
above regrtest.diff patch also fixes the test_statistics in refleak mode.
--
R. David Murray added the comment:
Or, in 3.4, class META(abc.ABC).
OK, since Eric agrees that this is python-ideas material, we'll close this
issue for now. If you get consensus for it on python-ideas, the issue can be
reopened (or a new one started, whichever turns out to be appropriate).
Jim Jewett added the comment:
Is this really only 3.4? Since it is security-related, it seems like it should
be at least considered for older versions as well.
--
nosy: +Jim.Jewett
___
Python tracker rep...@bugs.python.org
Jim Jewett added the comment:
I'm putting it back to release blocker, because 3.3 should decide whether to
fix it/call it security/remove itself from the list.
The patch contains several small changes. I like the spelling fix (gsip -
gzip) in a test method, but otherwise, I prefer the
STINNER Victor added the comment:
I'm unable to reproduce your issue with Python 2.7.5:
$ python memoryleak_min.py
[256720896.0, 15740928.0, 139264.0]
[256724992.0, 15962112.0, 139264.0]
[256724992.0, 15966208.0, 139264.0]
[256724992.0, 15966208.0, 139264.0]
(...)
[256724992.0, 15966208.0,
Adrian Teng added the comment:
Python 2.7.3, Red Hat Enterprise Linux Server release 5.5, with kernal
2.6.18-308.el5
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20967
___
Jim Jewett added the comment:
What is the status here?
As best I can tell from a skim,
(a) It should be broken into at least three separate issues. (Though maybe
some can just be closed instead of separated?)
(b) None of them are security holes, so we missed 2.5 and 2.6, and should now
Jim Jewett added the comment:
I am changing this from High to Release blocker, because I think 3.3 should
make an explicit decision about whether to remove itself from the Affected
Versions list.
3.4 probably should too, since it is now in bug-fix mode.
Then this issue can go back to
STINNER Victor added the comment:
Python 2.7.3, Red Hat Enterprise Linux Server release 5.5, with kernal
2.6.18-308.el5
So your version is older than mine. Let me check Misc/NEWS... Oh...
Issue #15219: Fix a reference leak when hashlib.new() is called with invalid
parameters.
in the What's
STINNER Victor added the comment:
I am changing this from High to Release blocker, because I think 3.3
should make an explicit decision about whether to remove itself from the
Affected Versions list.
I don't understand. Which release does it block? There is no scheduled release
in short
Jim Jewett added the comment:
This is an enhancement, so I am changing the affected version from 3.3 to 3.5.
It is python-only, which works well with the cheeseshop.
That said, the patch is truly short; if that is really sufficient, it could
almost go into the documentation as a recipe.
Jim Jewett added the comment:
What is the status of this?
Have any of the changes been applied?
Are any of the other patches still appropriate?
Is this now dependent on any other issues/any non-doc updates?
--
nosy: +Jim.Jewett
___
Python tracker
Saimadhav Heblikar added the comment:
The old file had a typo and i have removed it.
The new file does everything stated in msg213722 and also has the errors
removed.
I have added tests for the little change in code to pyclbr.its called
test_string_source.
All the tests related to pyclbr pass
Antoine Pitrou added the comment:
The patch adds new public APIs (C macros), I don't think it should be committed
to the maintenance branches.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20440
Xavier de Gaye added the comment:
There is at least one other place (do_break) where this same problem could
crop up.
Also in do_retval. And the exception is silently ignored in do_p and do_pp when
repr() fails, which is not correct.
A solution could be to have a message_safe method to be
New submission from Aaron Meurer:
I hope it's OK to report documentation issues on this tracker. Reading
http://docs.python.org/3.4/library/argparse.html#prog I had to do a double
take. The documentation states, By default, ArgumentParser objects uses
sys.argv[0] to determine how to display
Larry Hastings added the comment:
Yeah, I'm not accepting this for 3.4 at this point, and I bet the other RMs
feel the same way.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20440
___
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13697
___
___
Python-bugs-list
Chris Rebert added the comment:
So, nobody seems to have cared enough about the policy change to weigh in
during the intervening year and ~3mos...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16329
Chris Rebert added the comment:
FWIW, I’m +1 for a doc section about how to achieve strict mode with special
arguments and callbacks (if the recent doc patch does not already have that)
The docs added by that patch do indeed cover this:
New submission from Jasvir Singh:
HTML output of python difflib is in HTML1 which is outdated now. I am working
on updating this library and I'll submit a patch as soon as possible.
--
components: Library (Lib)
messages: 213992
nosy: Jasvir.Singh
priority: normal
severity: normal
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - mimetypes does not support webm type
___
Python tracker rep...@bugs.python.org
Georg Brandl added the comment:
Yes, this is new feature territory.
--
priority: release blocker - high
versions: +Python 3.5 -Python 2.7, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20440
Ezio Melotti added the comment:
This is a new feature, so it can go only in 3.5.
Updating the generated HTML sounds like a good idea, however we must consider
if this might cause any problems related to backward compatibility.
If you are going to do this, please use (valid) HTML5.
--
Nitika Agarwal added the comment:
Hi,
http://docs.python.org/devguide/compiler.html
Is this the link of the devguide that needs to be updated?
--
nosy: +nitika
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19316
Éric Araujo added the comment:
Yes, it’s that file. The source is compiler.rst in this repository:
http://hg.python.org/devguide
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19316
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20967
___
___
Python-bugs-list mailing list
Jasvir Singh added the comment:
Why we can't add this in 2.7?
Major projects and OS supporting 2.7 now and I am updating this because I am
need of feature for 2.7.
Can't we do it like release new version with new name(or something like). If
one wants to download it, he/she can download using
R. David Murray added the comment:
You missed the part where it says no matter where it is called from. That
is, the path is stripped off. The sentence could be changed to emphasize that
(the :ref:`~os.basename` of sys.argv[0]).
The backslash is indeed a bit odd and probably should be
Nitika Agarwal added the comment:
I am able to find some errors in the link i just gave in the previous message,
so should i submit a patch highlighting those errors ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19316
Claudio Freire added the comment:
I can confirm the issue is in urllib's open: it fails to close() the HTTP
connection, leaving it to the GC to do it.
If addinfourl (and friends) is altered to carry a reference to the HTTP
connection and close it on close(), the leak is fixed.
I have a patch
Éric Araujo added the comment:
The task here is to work from Ezio’s patch* and edit it to take into account
Terry’s replies and your own opinions about what wording is best.
* http://docs.python.org/devguide/faq.html#how-do-i-apply-a-patch
--
___
New submission from Mikhail:
The Windows x86-64 MSI Installer (python-3.4.0.amd64.msi,
python-3.3.4.amd64.msi...) does not install python3X.dll in windows\system32 or
windows\SysWOW64 folder.
I select an option install for all users
Windows 7 64 bit
(The Windows x86 MSI installer works
Eric Snow added the comment:
Also be sure the have Raymond's sign-off before committing anything for this. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19640
___
Serhiy Storchaka added the comment:
Please try this patch. Perhaps it fixes audioop issues.
--
keywords: +patch
nosy: +serhiy.storchaka
Added file: http://bugs.python.org/file34493/audioop_signed_left_shift.patch
___
Python tracker
Ezio Melotti added the comment:
Yes, you could make patches for Python 3.5 and release a PyPI package that
includes these changes and it's compatible with older versions. The same has
been done for other modules as well (e.g. unittest2 includes features that are
available on recent versions
Benjamin Peterson added the comment:
No, it still gives
/home/benjamin/dev/python/3.4/Modules/audioop.c:1811:9: runtime error: left
shift of negative value -22
/home/benjamin/dev/python/3.4/Modules/audioop.c:1811:9: runtime error: left
shift of negative value -22
A.M. Kuchling added the comment:
The bug got so complicated, with so many variations and failure modes, that I
just lost track of what to do next.
Let's reboot. Problem #1 is that the single-file mailboxes subvert their own
fcntl locking by writing to a temp. file and renaming; David's
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1599254
___
Giampaolo Rodola' added the comment:
Patch in attachment.
--
Added file: http://bugs.python.org/file34494/devpoll2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18931
___
Nitika Agarwal added the comment:
-This document does not touch on how parsing works beyond what is needed to
explain what is needed for compilation. It is also not exhaustive in terms of
the how the entire system works. You will most likely need to read some source
to have an exact
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20970
___
___
Python-bugs-list
R. David Murray added the comment:
I propose that we add a new keyword argument to SMTP's __init__, 'decode_data'.
This would be set to True by default, and would preserve the current behavior
of passing utf-8 decoded data to process_message.
Setting it to True would mean that
Jasvir Singh added the comment:
Ok Ezio Melotti, I'll start working on it :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20971
___
___
paul j3 added the comment:
Yes, the documentation is accurate but a bit vague. It doesn't say how 'it
uses sys.arg[0]'. The example implies it uses 'basename'. So the question is,
whether that implementation detail should be more explicit?
--
nosy: +paul.j3
Stéphane Wirtel added the comment:
This bug has not been fixed in 2.7.6 on OSX 10.9.2.
--
nosy: +matrixise
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7980
___
Romuald Brunet added the comment:
This is a patch attempt to fix issue: import the _strptime module at time /
datetime module load instead of method call.
Please note that the test is not fully reliable: it may pass without the patch
/ on current version, since threaded execution isn't
R. David Murray added the comment:
I didn't mean the basename reference as exposing an implementation detail (I
didn't look) but rather as a shorthand for explaining what regardless of where
the program was invoked from means.
--
___
Python tracker
Charles-François Natali added the comment:
Could you regenerate it without --git (it doesn't show under the review
tool)?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18931
___
New submission from Auke Willem Oosterhoff:
The comparison methods of _TotalOrderingMixin don't have nice implementation.
Some of them raises a NotImplementedError. A few aren't covered in the tests.
The comment suggests that these methods has been implemented this way because
of issue 10042
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com:
--
title: Implement proper comparison operations for in _TotalOrderingMixin in
ipaddres module. - Implement proper comparison operations for in
_TotalOrderingMixin in ipaddress module.
___
New submission from Jim Jewett:
http://docs.python.org/3.4/library/email.html#package-history
The table ends with email version 5.1, distributed with Python 3.2, and
compatible with Python 3.0 to 3.2.
Since Python 3.3 and 3.4 also distribute 5.1.0, I'm betting that the actual
compatibility
Antoine Pitrou added the comment:
I agree with Ezio. Also, editor support is a moving target, and our guidelines
may actually become obsolete.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20062
dani added the comment:
changed honor-non-breaking-spaces.patch:
used \N{NO-BREAK SPACE} instead of \xa0
added test for \N{NARROW NO-BREAK SPACE}
--
nosy: +dbudinova
Added file: http://bugs.python.org/file34497/new_textwrap.patch
___
Python tracker
Martin Panter added the comment:
Does the fix for Issue 12692 work for you? Namely this revision
http://hg.python.org/cpython/rev/92656b5df2f2. It was backported to C Python
3.3.4 as I understand.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Hmm, I'm not sure where those explanations belong but I'm not sure should be in
the sys module docs (especially as they are quite lengthy, and they also apply
to other data such as os.environ). Perhaps the Unicode HOWTO?
--
Yury Selivanov added the comment:
Why there is no 'review' link for the new patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18931
___
___
Mikhail added the comment:
Python installation log included.
MSI (s) (48:2C) [01:28:13:006]: Executing op:
SetTargetFolder(Folder=C:\Windows\system32\)
MSI (s) (48:2C) [01:28:13:006]: Executing op: SetSourceFolder(Folder=1\)
MSI (s) (48:2C) [01:28:13:006]: Executing op:
Antoine Pitrou added the comment:
Agreed. How about In documentation such as the current article...
It's better, but how about simply In this article?
I concur with reducing unnecessary abstraction. No sure what you mean
by true form. Do you mean show the glyph which the code point
Éric Araujo added the comment:
Alright.
--
keywords: +easy
title: Should the devguide document emacs/vim support? - Remove emacs page
from devguide
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20062
Guido van Rossum added the comment:
review links are only generated for patches that apply cleanly (I don't
know to which branch)
On Tue, Mar 18, 2014 at 2:37 PM, Yury Selivanov rep...@bugs.python.orgwrote:
Yury Selivanov added the comment:
Why there is no 'review' link for the new patch?
1 - 100 of 137 matches
Mail list logo