Glenn Linderman added the comment:
Hi Drekin. Thanks for your work in progressing this issue. There have been a
variety of techniques proposed for this issue, but it sounds like yours has
built on what the others learned, and is close to complete, together with issue
17620.
Is this in a form
Terry J. Reedy added the comment:
From reading the module,
import stream; stream.enable()
replaces sys.stdin/out/err with new classes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
Georg Brandl added the comment:
I would propose a leading underscore for these methods; they should make it
clear to the user that the parameter is meant to be private.
With this line in the docstring, I would wonder Why is the argument there in
the first place?! (because most people don't
Serhiy Storchaka added the comment:
As Victor suggested in msg136939 we can use a class attribute. This technique
is used in some other places in the stdlib (perhaps for other purposes). For
example in subprocess.Handle.
We should check all defined __del__-s in stdlib and fix them all if they
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +Yaroslav.Halchenko, benjamin.peterson, daniel.urban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19022
___
New submission from Nick Coghlan:
Issue 10006 pointed out that attempting to access object.__abstractmethods__
raises AttributeError. The solution was to ensure type.__abstractmethods__
*also* raises AttributeError.
This is thoroughly confusing, since the name is clearly visible in the output
Charles-François Natali added the comment:
I noticed this when converting the code to use PyModule_AddIntMacro().
Vajrasky, did you see Ezio's review on
http://bugs.python.org/review/18994/#ps9258 ?
--
___
Python tracker rep...@bugs.python.org
Vajrasky Kok added the comment:
Charles-François Natali, sorry I just noticed Ezio's comment. The all_ins
function return -1 on failure and 0 on success.
I use this form:
if (all_ins(m))
return NULL;
because I follow the example in Modules/posixmodule.c. If this form:
if
Serhiy Storchaka added the comment:
There are two methods: splitlist() and split(). The splitlist() method splits
only one level and always returns a tuple (even if it is empty or one-element).
The split() method splits recursive and can returns a string if it is not
splittable. I.e. result
Stefan Krah added the comment:
I agree that this cast should work. Perhaps disallowing zero strides
is enough -- I have to look at this more closely though.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19014
Serhiy Storchaka added the comment:
Update patch addresses Ezio's comment.
--
Added file: http://bugs.python.org/file31767/sunau.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18950
___
Serhiy Storchaka added the comment:
I guess tkinter.wantobjects is 0 for you?
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18877
___
Serhiy Storchaka added the comment:
This patch should fix the issue (as many other issues).
--
assignee: - serhiy.storchaka
keywords: +patch
stage: needs patch - patch review
versions: +Python 3.4
Added file: http://bugs.python.org/file31768/tkinter_Tkapp_CallResult.patch
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3405
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6181
___
Serhiy Storchaka added the comment:
I think this was fixed in issue16809.
--
nosy: +serhiy.storchaka
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13519
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +gpolo, serhiy.storchaka, terry.reedy
stage: - patch review
type: - behavior
versions: +Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18141
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12558
___
___
New submission from Sye van der Veen:
In the ctypes documentation, there's mention of a
BigEndianUnion/LittleEndianUnion that isn't actually implemented, and the
Arrays and pointers section just reads Not yet written.
The attached patch adds the (Big|Little)EndianUnion classes (with tests),
Changes by Sye van der Veen syeber...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file31769/75843d82f6cf.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19023
___
Serhiy Storchaka added the comment:
Is it still reproducible on 2.7?
--
nosy: +serhiy.storchaka
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
Serhiy Storchaka added the comment:
This is a bug in Tk. It uses locale-agnostic Tcl_GetDoubleFromObj() in most
places, but in some places (especially in canvas) it uses locale-dependent
strtod(). And that is even worse, strtod() is used even for parsing
comma-delimited floats (@-indices).
Serhiy Storchaka added the comment:
Looks as issue18877 is related to this. I have proposed for it a little
different patch than first Guilherme's patch.
As for removing wantobjects, we perhaps can do this only in 3.4.
--
nosy: +serhiy.storchaka
versions: +Python 3.3, Python 3.4
Serhiy Storchaka added the comment:
See also #3015 and #5712.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18877
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
See also #19020.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6225
___
___
Python-bugs-list mailing list
Serhiy Storchaka added the comment:
The patch for issue19020 fixes this issue.
--
nosy: +serhiy.storchaka
versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602742
Serhiy Storchaka added the comment:
Looks as a duplicate of issue5712.
--
nosy: +serhiy.storchaka
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8010
___
New submission from anatoly techtonik:
I'd say this is a critical documentation bug that leads to head bang when you
try to figure out what does '*' in code means.
This bug is two fold:
1. Define a dedicated place in documentation for '*' operator with examples. I
propose
Drekin added the comment:
Glenn Linderman: Yes I have built on what the others learned. For your
question, I made it and tested it in Python 3.3, it should also work in 3.4 and
what I've tried, it actually works. As Terry J. Reedy says you can just load
the module and enable the streams. I do
anatoly techtonik added the comment:
tag:easy
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19024
___
___
Python-bugs-list mailing list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
nosy: +ezio.melotti
stage: - needs patch
type: crash - enhancement
versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.5
___
Python tracker rep...@bugs.python.org
New submission from Vajrasky Kok:
from enum import Enum
class MyPet(Enum):
... CUTE_CAT = 1
... VIGOROUS_DOG = 2
... UGLY_BLOBFISH = 3
... PROMISCUOUS_BONOBO = 4
... def spam(cls): pass
...
del MyPet.CUTE_CAT
Traceback (most recent call last):
File stdin, line 1, in module
A.M. Kuchling added the comment:
Ping! I'd like to change the function name to clear_frames() and then commit
this. Antoine or anyone, want to disagree with using clear_frames() as the
name?
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Ping! I'd like to change the function name to clear_frames() and then
commit this. Antoine or anyone, want to disagree with using
clear_frames() as the name?
clear_frames() sounds fine to me :-)
--
___
Python
R. Jayakrishnan added the comment:
Thanks for showing great interest on this idea.
As usual, it seems this will going to be another nice project with IDLE for me.
Better to close this issue then, and create an appropriate initiation with the
suggested points(preferring a commencement by core
Changes by Barry A. Warsaw ba...@python.org:
--
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16043
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: +Tkinter -None
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17104
___
A.M. Kuchling added the comment:
The patch requires a little adjusting to apply against 2.6.
--
nosy: +akuchling
Added file: http://bugs.python.org/file31772/smtplib-2.6.patch
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: +Tkinter
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15363
___
___
R. David Murray added the comment:
Doesn't this confusion (here and in 19011) arise from the fact that the enum
class does *not* have CUTE_CAT attribute? That is, the error message is
correct, but surprising. Because, frankly, Enums are surprising in many ways ;)
--
nosy:
Barry A. Warsaw added the comment:
Any more thoughts on this bug w.r.t. 2.6.9? It seems that without a patch for
any version of Python, and with 2.6.9 coming soon, a fix for this just won't
make it into 2.6.9.
That doesn't bother me too much, and I'm willing to just knock this off the
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19025
___
___
Python-bugs-list mailing
A.M. Kuchling added the comment:
Here's a final proposed version of the patch for 2.6 that adds a test. Changes
made:
* code now raises SMTPResponseException instead of a new SMTPLineTooLong
exception; bwarsaw deemed that adding a new exception class was changing the
module API.
* we
Changes by Ethan Furman et...@stoneleaf.us:
--
assignee: - ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19025
___
___
Roundup Robot added the comment:
New changeset a248655c8261 by Senthil Kumaran in branch 'default':
Expose --bind argument for http.server, enable http.server to bind to a user
http://hg.python.org/cpython/rev/a248655c8261
--
nosy: +python-dev
___
Senthil Kumaran added the comment:
Found the patch suitable and had addressed Berker Pesag's review comments too.
Thanks for contributing, Malte Swart and thanks for submitting the contributor
agreement too.
--
nosy: +orsenthil
resolution: - fixed
stage: patch review -
Raymond Hettinger added the comment:
[TJR]
I am opposed to this specific proposal and
think this issue should be closed.
[Ramchandra Apte]
Agree with Terry Reedy.
[R. Jayakrishnan]
Better to close this issue then ...
I agree as well.
--
resolution: - rejected
status: open -
Serhiy Storchaka added the comment:
It is not important in the context of this issue, but readline(0) is blocked
and returns 1-character string. Move the length check above
self.sslobj.read(1). For readability you can also move the chr != \n inside
the loop:
while size is None
New submission from anatoly techtonik:
http://stackoverflow.com/questions/15733558/python-ordereddict-not-keeping-element-order
I wonder why OrderedDict accepts dict as parameter in a first place? OD is used
when order is important and if plain dict is supplied, the order is lost.
d =
Serhiy Storchaka added the comment:
It is not important in the context of this issue, but readline(0) is blocked
and returns 1-character string. Move the length check above
self.sslobj.read(1). For readability you can also move the chr != \n inside
the loop:
while size is None
Changes by Serhiy Storchaka storch...@gmail.com:
--
Removed message: http://bugs.python.org/msg197788
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16042
___
Barry A. Warsaw added the comment:
Patch looks great, thanks Andrew. All tests pass. Feel free to commit to the
2.6 branch along with a NEWS file entry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16042
Raymond Hettinger added the comment:
An OrderedDict is a dict subclass and needs to accept the same inputs as dict
methods. This is a guaranteed API and not a bug.
It is not the OrderedDict's fault if you supply an unordered input. It can't
add order after the fact.
--
assignee: -
A.M. Kuchling added the comment:
For 2.6 I'll make a revised version of Giampaolo's patch that doesn't add a new
exception class.
Rationale: Adding a new exception class changes the API of the module, which
we'd like to avoid. If someone is writing 2.6 code that wants to catch this
Barry A. Warsaw added the comment:
On Sep 15, 2013, at 04:47 PM, Serhiy Storchaka wrote:
It is not important in the context of this issue, but readline(0) is blocked
and returns 1-character string. Move the length check above
self.sslobj.read(1). For readability you can also move the chr != \n
Barry A. Warsaw added the comment:
I'm removing 2.6 from the Versions field since AFAIK we've resolved this issue
for 2.6. This way it'll be easier to scan the blockers for 2.6.9.
If anyone things we still have things to address for this issue in 2.6.9,
please reassign it or follow up.
Roundup Robot added the comment:
New changeset 8a6def3add5b by Andrew Kuchling in branch '2.6':
#16042: CVE-2013-1752: Limit amount of data read by limiting the call to
readline().
http://hg.python.org/cpython/rev/8a6def3add5b
--
nosy: +python-dev
anatoly techtonik added the comment:
I don't know if it is bug or feature. There are probably cases when order is
not important and OrderedDict is used, but I don't remember any.
Too bad Python doesn't have first class ordered mapping type, so that it could
report error if unordered arguments
R. David Murray added the comment:
I'm not sure what Serhiy means by is blocked, but the second half makes
sense: readline(0) on a file will return the empty string, but here it will
read one character and return it. Like he says, it doesn't break anything in
the context of this bug fix, but
New submission from Armin Rigo:
It is possible to get the working copy of Python 2.7 in a state such that any
attempt to do make ends with the error shown in the title. The working copy
is perfectly valid; it is a matter of getting the wrong timestamps on the files.
(Despite the error
anatoly techtonik added the comment:
Is it possible to make strict OrderedDict an optional feature? Like `from
features import strict_ordered_dict'?
--
status: closed - pending
___
Python tracker rep...@bugs.python.org
A.M. Kuchling added the comment:
I took Serhiy's suggestion and just moved up the 'if size' check in the loop.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16042
___
Serhiy Storchaka added the comment:
Also, what do you mean by readline(0) is blocked? Do you mean this is a
blocking call or something else?
Yes, I mean this is a blocking call.
Unless I'm missing something his replacement also has a bug, though: it won't
add the \n to the returned
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19026
___
___
Ethan Furman added the comment:
Perhaps a section in the docs about the differences from typical Python classes
is warranted:
- Enum members are virtual
- Enum members are singletons
- new Enum members (aka instances of an Enum class) cannot be created
- during class creation Enum
Ethan Furman added the comment:
As for the error messages (going in reverse order):
==
-- del cute_cat.name
Traceback (most recent call last):
...
AttributeError: can't delete attribute
R. David Murray added the comment:
For the security fix, the check should only be done if the file is the the
default .netrc. (Which would also make your error message correct...otherwise
it is not :) Also, it would make more sense for the 'prop =' to be inside the
'if posix'.
Barry, with
R. David Murray added the comment:
Note that I'll test it by hand before applying, and will write a test for 3.3
(where Mock is available to make testing practical).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14984
Raymond Hettinger added the comment:
In general, it is not possible for a hypothetical StrictOrderedDict to know
whether its input was ordered or not. For the specific case of dict, it is
possible, but the general case is of course completely general (i.e. if the
input has a keys() method,
Anoop Thomas Mathew added the comment:
40% faster collections.Counter() . Removed C accelerator. Patch attached.
Passes all tests. Results comparison follows.
--
keywords: +patch
nosy: +Anoop.Thomas.Mathew
Added file:
Anoop Thomas Mathew added the comment:
Performance comparison with and without patch applied.
--
Added file: http://bugs.python.org/file31775/performance_comparision.csv
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18594
Barry A. Warsaw added the comment:
On Sep 15, 2013, at 06:05 PM, R. David Murray wrote:
For the security fix, the check should only be done if the file is the the
default .netrc. (Which would also make your error message
correct...otherwise it is not :) Also, it would make more sense for the
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +benjamin.peterson, georg.brandl, larry
priority: high - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14984
___
Barry A. Warsaw added the comment:
On Sep 15, 2013, at 05:34 PM, Serhiy Storchaka wrote:
Oh, right. The correct code should be as I proposed in msg173413 or... as
Andrew has committed. Good.
Excellent. So we're good for this in 2.6. Thanks!
--
R. David Murray added the comment:
Here is a 2.6 specific patch. I've hand tested this.
--
keywords: +patch
Added file: http://bugs.python.org/file31776/netrc-2.6.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14984
R. David Murray added the comment:
I could write a 2.6 test for the permissions part, but not for the incorrect
owner part. Do you want one without the other?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14984
Barry A. Warsaw added the comment:
On Sep 15, 2013, at 06:51 PM, R. David Murray wrote:
I could write a 2.6 test for the permissions part, but not for the incorrect
owner part. Do you want one without the other?
Yeah, I guess you can't mock os or stat in 2.6. ;)
Let's test the permission
anatoly techtonik added the comment:
On Sun, Sep 15, 2013 at 9:25 PM, Raymond Hettinger
rep...@bugs.python.org wrote:
In general, it is not possible for a hypothetical StrictOrderedDict to know
whether its input was ordered or not.
Right. That's why it should not accept input that can only
Roundup Robot added the comment:
New changeset fa54069eb8c4 by Eli Bendersky in branch '2.7':
Close #18945: Add tests for tempfile name collision handling.
http://hg.python.org/cpython/rev/fa54069eb8c4
--
resolution: - fixed
stage: test needed - committed/rejected
status: open - closed
R. David Murray added the comment:
Hmm. Answering the doc question caused me to run into something that calls the
whole patch into question:
http://www.unix.com/unix-dummies-questions-answers/11326-netrc-refuses-password.html.
In that example, the ftp program only rejected reading the
Changes by Eli Bendersky eli...@gmail.com:
--
resolution: - works for me
stage: test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18998
Barry A. Warsaw added the comment:
After further contemplation and without objection from __ap__ and Crys on IRC,
I am de-targeting this for 2.6. I won't apply it for 2.6.9.
--
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
A.M. Kuchling added the comment:
2.6 version of the patch. Changes from Giampaolo's version of the patch:
* 2.6 didn't have FTP over TLS, so the patch changes slightly to adapt.
* Removed the LineTooLong exception class and just raise Error instead. (This
repeats the message text for Line
Dan Nicholson added the comment:
Right, that's what makes this difficult. If the stub exe of the target python
was used, then it wouldn't need to care about compatibility. However, what
you're running is the stub of the build python. So, when I distribute a
bdist_wininst exe, it's running the
Ethan Furman added the comment:
As David noted, this was discussed somewhere in the megathreads that was the
Enum PEP discussion.
As Georg noted changes to such a thoroughly discussed API should not be taken
lightly.
As Antoine noted the Enum class is more restricted than normal classes by
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14984
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
versions: +Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14984
___
Serhiy Storchaka added the comment:
This is due PyOS_InputHook. After commenting out EnableEventHook() tests are
passed.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13888
Roundup Robot added the comment:
New changeset 54ddd1124df8 by Ethan Furman in branch 'default':
Close #18989: enum members will no longer overwrite other attributes, nor be
overwritten by them.
http://hg.python.org/cpython/rev/54ddd1124df8
--
nosy: +python-dev
resolution: - fixed
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19027
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
title: httplib: header parsing is not delimited - httplib: header parsing is
not unlimited
versions: +Python 3.1
___
Python tracker rep...@bugs.python.org
Barry A. Warsaw added the comment:
FWIW, the Ubuntu manpage netrc(5) says:
password string
Supply a password. If this token is present, the auto-login
process will supply the specified string if the remote server
requires a password as part of
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
versions: +Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16038
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
versions: +Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16039
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
versions: +Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16040
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +barry
priority: critical - release blocker
versions: +Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16041
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
versions: +Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16042
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
versions: +Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16043
___
A.M. Kuchling added the comment:
Updated version of the patch against 2.6 that adds a test. Thanks for the fix,
Emil!
--
nosy: +akuchling
Added file: http://bugs.python.org/file31778/imaplib.txt
___
Python tracker rep...@bugs.python.org
Daniel Holth added the comment:
I am withdrawing zipfile-no-crc32.patch. It did not work correctly.
zdlazy.patch should go in. It avoids creating the rarely-needed crc32 table
until the first time it is needed, saving some memory and the majority of time
needed to import the module.
1 - 100 of 150 matches
Mail list logo