[issue1602] windows console doesn't print or input Unicode

2013-09-15 Thread Glenn Linderman
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

[issue1602] windows console doesn't print or input Unicode

2013-09-15 Thread Terry J. Reedy
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

[issue14927] add Do not supply 'int' argument to random.shuffle docstring

2013-09-15 Thread Georg Brandl
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

[issue12085] subprocess.Popen.__del__ raises AttributeError if __init__ was called with an invalid argument list

2013-09-15 Thread Serhiy Storchaka
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

[issue19022] Improve handling of type.__abstractmethods__ descriptor

2013-09-15 Thread Nick Coghlan
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 ___

[issue19022] Improve handling of type.__abstractmethods__ descriptor

2013-09-15 Thread Nick Coghlan
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

[issue18994] Inside fcntl module, we does not check the return code of all_ins function

2013-09-15 Thread Charles-François Natali
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

[issue18994] Inside fcntl module, we does not check the return code of all_ins function

2013-09-15 Thread Vajrasky Kok
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

[issue19020] Regression: Windows-tkinter-idle, unicode, and 0xxx filename

2013-09-15 Thread Serhiy Storchaka
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

[issue19014] Allow memoryview.cast() for empty views

2013-09-15 Thread Stefan Krah
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

[issue18950] Miscellaneous fixes for the sunau module

2013-09-15 Thread Serhiy Storchaka
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 ___

[issue18877] tkinter askopenfilenames does not work in Windows library folder

2013-09-15 Thread Serhiy Storchaka
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 ___

[issue18877] tkinter askopenfilenames does not work in Windows library folder

2013-09-15 Thread Serhiy Storchaka
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

[issue3405] Add support for the new data option supported by event generate (Tk 8.5)

2013-09-15 Thread Serhiy Storchaka
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 ___

[issue6181] Tkinter.Listbox several minor issues

2013-09-15 Thread Serhiy Storchaka
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 ___

[issue13519] Tkinter rowconfigure and columnconfigure functions crash if minsize, pad, or weight is not None

2013-09-15 Thread Serhiy Storchaka
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 ___

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2013-09-15 Thread Serhiy Storchaka
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

[issue12558] Locale-dependent exception for float width argument to Tkinter widget constructor

2013-09-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12558 ___ ___

[issue19023] ctypes docs: Unimplemented and undocumented features

2013-09-15 Thread Sye van der Veen
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),

[issue19023] ctypes docs: Unimplemented and undocumented features

2013-09-15 Thread Sye van der Veen
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 ___

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-09-15 Thread Serhiy Storchaka
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 ___

[issue12558] Locale-dependent exception for float width argument to Tkinter widget constructor

2013-09-15 Thread Serhiy Storchaka
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).

[issue3015] tkinter with wantobjects=False has been broken for some time

2013-09-15 Thread Serhiy Storchaka
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

[issue18877] tkinter askopenfilenames does not work in Windows library folder

2013-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also #3015 and #5712. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18877 ___ ___ Python-bugs-list

[issue6225] Fixing several minor bugs in Tkinter.Canvas and one in Misc._configure

2013-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also #19020. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6225 ___ ___ Python-bugs-list mailing list

[issue1602742] itemconfigure returns incorrect text property of text items

2013-09-15 Thread Serhiy Storchaka
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

[issue8010] tkFileDialog.askopenfiles crashes on Windows 7

2013-09-15 Thread Serhiy Storchaka
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 ___

[issue19024] Document asterisk (*), splat or star operator

2013-09-15 Thread anatoly techtonik
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

[issue1602] windows console doesn't print or input Unicode

2013-09-15 Thread Drekin
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

[issue19024] Document asterisk (*), splat or star operator

2013-09-15 Thread anatoly techtonik
anatoly techtonik added the comment: tag:easy -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19024 ___ ___ Python-bugs-list mailing list

[issue19024] Document asterisk (*), splat or star operator

2013-09-15 Thread Ezio Melotti
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

[issue19025] Deleting attribute of Enum gives misleading error message

2013-09-15 Thread Vajrasky Kok
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

[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2013-09-15 Thread A.M. Kuchling
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

[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2013-09-15 Thread Antoine Pitrou
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

[issue18704] IDLE: PEP8 Style Check Integration

2013-09-15 Thread R. Jayakrishnan
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

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-09-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16043 ___ ___

[issue17104] Tk() not defined in Tkinter module

2013-09-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Tkinter -None status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17104 ___

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread A.M. Kuchling
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

[issue15363] Idle/tkinter ~x.py 'save as' fails. closes idle

2013-09-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Tkinter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15363 ___ ___

[issue19025] Deleting attribute of Enum gives misleading error message

2013-09-15 Thread R. David Murray
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:

[issue16040] nntplib: unlimited readline() from connection

2013-09-15 Thread Barry A. Warsaw
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

[issue19025] Deleting attribute of Enum gives misleading error message

2013-09-15 Thread Barry A. Warsaw
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

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread A.M. Kuchling
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

[issue19025] Deleting attribute of Enum gives misleading error message

2013-09-15 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- assignee: - ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19025 ___ ___

[issue17764] Support http.server passing bind address via commend line argument

2013-09-15 Thread Roundup Robot
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 ___

[issue17764] Support http.server passing bind address via commend line argument

2013-09-15 Thread Senthil Kumaran
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 -

[issue18704] IDLE: PEP8 Style Check Integration

2013-09-15 Thread Raymond Hettinger
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 -

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread Serhiy Storchaka
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

[issue19026] OrderedDict should not accept dict as parameter

2013-09-15 Thread anatoly techtonik
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 =

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread Serhiy Storchaka
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

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread Serhiy Storchaka
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 ___

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread Barry A. Warsaw
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

[issue19026] OrderedDict should not accept dict as parameter

2013-09-15 Thread Raymond Hettinger
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: -

[issue16038] ftplib: unlimited readline() from connection

2013-09-15 Thread A.M. Kuchling
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

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread Barry A. Warsaw
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

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-09-15 Thread Barry A. Warsaw
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.

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread Roundup Robot
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

[issue19026] OrderedDict should not accept dict as parameter

2013-09-15 Thread anatoly techtonik
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

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread R. David Murray
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

[issue19027] undefined symbol: _PyParser_Grammar

2013-09-15 Thread Armin Rigo
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

[issue19026] OrderedDict should not accept dict as parameter

2013-09-15 Thread anatoly techtonik
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

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread A.M. Kuchling
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 ___

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread Serhiy Storchaka
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

[issue19026] OrderedDict should not accept dict as parameter

2013-09-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19026 ___ ___

[issue19025] Deleting attribute of Enum gives misleading error message

2013-09-15 Thread Ethan Furman
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

[issue19025] Deleting attribute of Enum gives misleading error message

2013-09-15 Thread Ethan Furman
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

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread R. David Murray
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

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread R. David Murray
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

[issue19026] OrderedDict should not accept dict as parameter

2013-09-15 Thread Raymond Hettinger
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,

[issue18594] C accelerator for collections.Counter is slow

2013-09-15 Thread Anoop Thomas Mathew
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:

[issue18594] C accelerator for collections.Counter is slow

2013-09-15 Thread Anoop Thomas Mathew
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

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread Barry A. Warsaw
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

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread Barry A. Warsaw
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 ___

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread Barry A. Warsaw
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! --

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread R. David Murray
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

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread R. David Murray
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

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread Barry A. Warsaw
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

[issue19026] OrderedDict should not accept dict as parameter

2013-09-15 Thread anatoly techtonik
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

[issue18945] Name collision handling in tempfile is not covered by tests

2013-09-15 Thread Roundup Robot
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

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread R. David Murray
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

[issue18998] iter() not working in ElementTree

2013-09-15 Thread Eli Bendersky
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

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-09-15 Thread Barry A. Warsaw
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

[issue16038] ftplib: unlimited readline() from connection

2013-09-15 Thread A.M. Kuchling
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

[issue4636] bdist_wininst installer with install script raises exception

2013-09-15 Thread Dan Nicholson
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

[issue18989] reuse of enum names in class creation inconsistent

2013-09-15 Thread Ethan Furman
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

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14984 ___

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14984 ___

[issue13888] test_builtin failure when run after test_tk

2013-09-15 Thread Serhiy Storchaka
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

[issue18989] reuse of enum names in class creation inconsistent

2013-09-15 Thread Roundup Robot
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

[issue19027] undefined symbol: _PyParser_Grammar

2013-09-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19027 ___

[issue16037] httplib: header parsing is not unlimited

2013-09-15 Thread Arfrever Frehtes Taifersar Arahesis
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

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread Barry A. Warsaw
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

[issue16038] ftplib: unlimited readline() from connection

2013-09-15 Thread Arfrever Frehtes Taifersar Arahesis
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 ___

[issue16039] imaplib: unlimited readline() from connection

2013-09-15 Thread Arfrever Frehtes Taifersar Arahesis
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 ___

[issue16040] nntplib: unlimited readline() from connection

2013-09-15 Thread Arfrever Frehtes Taifersar Arahesis
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 ___

[issue16041] poplib: unlimited readline() from connection

2013-09-15 Thread Arfrever Frehtes Taifersar Arahesis
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

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread Arfrever Frehtes Taifersar Arahesis
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 ___

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-09-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16043 ___

[issue16039] imaplib: unlimited readline() from connection

2013-09-15 Thread A.M. Kuchling
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

[issue18515] zipfile._ZipDecryptor generates wasteful crc32 table on import

2013-09-15 Thread Daniel Holth
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   2   >