[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Ned Deily
Ned Deily added the comment: LGTM. The patch does prevent the crash in IDLE which is certainly an improvement until such time as someone investigates having Tk/tkinter fully support non-BMP characters. -- ___ Python tracker rep...@bugs.python.org

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 0 and None must be different. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17200 ___

[issue5308] cannot marshal objects with more than 2**31 elements

2013-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5308 ___

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2013-02-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13555

[issue16991] Add OrderedDict written in C

2013-02-15 Thread Eric Snow
Eric Snow added the comment: Are there any objections to this unittest cleanup patch? I'd like to commit it separately prior to anything that will go in for the C OrderedDict. -- Added file: http://bugs.python.org/file29077/cleanup-test-collections.diff

[issue17208] add note/warning about daemon threads

2013-02-15 Thread Antoine Pitrou
New submission from Antoine Pitrou: People are generally not aware of the properties of daemon threads. I suggest to add a note such as the following: « Daemon threads are abruptly stopped at shutdown. Their resources (such as open files, database transactions, etc.) may not be released

[issue16991] Add OrderedDict written in C

2013-02-15 Thread Eric Snow
Eric Snow added the comment: Incidently, I'm just about done with the OrdereDict patch. I'm attaching the current one. At present it passes the unit tests, but I have two memory-related issues and a number of open questions (that I don't think are critical). The patch has the unittest

[issue16991] Add OrderedDict written in C

2013-02-15 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: Removed file: http://bugs.python.org/file28839/cleanup-test-collections.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16991 ___

[issue16991] Add OrderedDict written in C

2013-02-15 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: Removed file: http://bugs.python.org/file28956/odict.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16991 ___

[issue17208] add note/warning about daemon threads

2013-02-15 Thread Tim Golden
Tim Golden added the comment: +1 This is essentially the answer to the naive user's question: Why would anyone *not* use daemon threads given that they're less hassle to manage? -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org

[issue979407] urllib2 digest auth totally broken

2013-02-15 Thread Michele Orrù
Michele Orrù added the comment: Isn't this issue fixed and tested on Lib/test/test_urllib2.py:1304? -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue979407 ___

[issue17209] get_wch() doesn't handle KeyboardInterrupt

2013-02-15 Thread raymontag
New submission from raymontag: If I've initialized a window in curses, try to get a single character with get_wch() and press Ctrl+C, the program crashes even if I handle KeyboardInterrupt. Here's a code example. import curses scr = curses.initscr() try: char = scr.get_wch() except

[issue17209] get_wch() doesn't handle KeyboardInterrupt

2013-02-15 Thread raymontag
Changes by raymontag kkoe...@posteo.de: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17209 ___ ___ Python-bugs-list mailing

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: +1 for a keyword argument I also have to add a limit to GzipDecodedResponse(). Python 2.6 and 3.1 are not affected by the issue. The problematic code was added in 2.7 and 3.2. -- ___ Python tracker

[issue17201] Use allowZip64=True by default

2013-02-15 Thread Ramchandra Apte
Ramchandra Apte added the comment: LGTM. -- nosy: +Ramchandra.Apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17201 ___ ___ Python-bugs-list

[issue17210] documentation of PyUnicode_Format() states wrong argument type requirements

2013-02-15 Thread Stefan Behnel
New submission from Stefan Behnel: The current documentation says: PyObject* PyUnicode_Format(PyObject *format, PyObject *args) Return value: New reference. Return a new string object from format and args; this is analogous to format % args. The args argument must be a tuple.

[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Ramchandra Apte
Ramchandra Apte added the comment: @Ned Deily Tk, at least on my system, doesn't render Unicode characters, even within BMP correctly but the characters are kept (cut-and-paste works correctly) What you mean by support. -- nosy: +Ramchandra.Apte ___

[issue17179] Incorrect use of type function in types.new_class

2013-02-15 Thread Ramchandra Apte
Ramchandra Apte added the comment: @Daniel Urban Me too. -- nosy: +Ramchandra.Apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17179 ___ ___

[issue17179] Incorrect use of type function in types.new_class

2013-02-15 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17179 ___ ___

[issue17211] pkgutil.iter_modules and walk_packages should return a namedtuple

2013-02-15 Thread Ramchandra Apte
New submission from Ramchandra Apte: Will attach a patch soon. -- components: Library (Lib) messages: 182143 nosy: Ramchandra.Apte priority: normal severity: normal status: open title: pkgutil.iter_modules and walk_packages should return a namedtuple type: enhancement versions: Python

[issue17211] pkgutil.iter_modules and walk_packages should return a namedtuple

2013-02-15 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17211 ___ ___

[issue17211] pkgutil.iter_modules and walk_packages should return a namedtuple

2013-02-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brett.cannon, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17211 ___ ___

[issue7145] UTF-16 BOM is not written by socket.makefile (but is expected by read)

2013-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, I would suggest won't fix. -- resolution: - wont fix status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7145 ___

[issue16991] Add OrderedDict written in C

2013-02-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why did you copy test_collections.py instead of just creating a new file? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16991 ___

[issue6426] imaplib.IMAP4 command illegal in this state is unhelpful error message

2013-02-15 Thread R. David Murray
R. David Murray added the comment: The issue 1605192 fix was applied to 2.7. -- nosy: +r.david.murray resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - Make Imap Error more helpful ___ Python

[issue6497] Support for digital Cinema/film DPX and Kodak Cineon image file formats in imghdr module

2013-02-15 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: Removed file: http://bugs.python.org/file14520/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6497 ___

[issue16991] Add OrderedDict written in C

2013-02-15 Thread Eric Snow
Eric Snow added the comment: Why did you copy test_collections.py instead of just creating a new file? To preserve the history of changes to the bulk of the code in test_ordereddict.py. -- ___ Python tracker rep...@bugs.python.org

[issue17163] Fix test discovery for test_file.py

2013-02-15 Thread Roundup Robot
New submission from Roundup Robot: New changeset 9b3c5085b4a4 by Ezio Melotti in branch '3.3': #17163: test_file now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/9b3c5085b4a4 New changeset f289e40b3d70 by Ezio Melotti in branch 'default': #17163:

[issue17163] Fix test discovery for test_file.py

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: - ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17163

[issue17167] python man page contains $Date$ in page footer

2013-02-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17167 ___

[issue16525] wave file module does not support 32bit float format

2013-02-15 Thread Harvey Ormston
Harvey Ormston added the comment: I see that this issue applies to Python 3.4. Nevertheless, I am now using the submitted patch (http://bugs.python.org/file28122/wave_float_issue16525.patch) with Python 2.7. I find that the patched module fails when calling getwavformat(), becuase the

[issue17178] In all.__doc__ and any.__doc__ need to clarify the behaviour with an empty iterable like in documentation

2013-02-15 Thread Éric Araujo
Éric Araujo added the comment: If someone wants to write the patch for this, feel free to ask (here or on the core-mentorship friendly mailing list) if you need help finding the right C file or anything else. -- components: +Interpreter Core -Documentation keywords: +easy nosy:

[issue17177] Document/deprecate imp

2013-02-15 Thread Éric Araujo
Éric Araujo added the comment: I’ve always perceived imp as an implementation detail of the import system that people were sometimes forced to use to get to some things. Now that we have importlib, deprecating (with a nice long compatibility-with-warnings period) sounds good. Would checking

[issue17167] python man page contains $Date$ in page footer

2013-02-15 Thread Éric Araujo
Éric Araujo added the comment: Agreed with Ned, this sounds like a job for the release script to me. I think we avoid manual edition of dates in the HTML docs thanks to Sphinx; we could generate the man page with Sphinx too (if there were enough advantages than just this issue). --

[issue979407] urllib2 digest auth totally broken

2013-02-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: let me check that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue979407 ___ ___ Python-bugs-list mailing

[issue17177] Document/deprecate imp

2013-02-15 Thread Brett Cannon
Brett Cannon added the comment: Checking with the other VMs wouldn't benefit anyone. They still have to implement whatever is necessary from _imp in order for importlib to work. Otherwise it's just another stdlib module. -- ___ Python tracker

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-02-15 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list

[issue17178] In all.__doc__ and any.__doc__ need to clarify the behaviour with an empty iterable like in documentation

2013-02-15 Thread Ankur Ankan
Ankur Ankan added the comment: I am a beginner and want to write the patch for this issue, so please help me find the right C file. Thanks. -- nosy: +Ankur.Ankan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17178

[issue17178] In all.__doc__ and any.__doc__ need to clarify the behaviour with an empty iterable like in documentation

2013-02-15 Thread Ankur Ankan
Ankur Ankan added the comment: I guess I have found it. It's bltinmodule.c . -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17178 ___ ___

[issue17143] trace.py uses _warn without importing it

2013-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f8b5fcbf07e by Ezio Melotti in branch '3.3': #17143: fix a missing import in the trace module. Initial patch by Berker Peksag. http://hg.python.org/cpython/rev/3f8b5fcbf07e New changeset 46e9f668aea9 by Ezio Melotti in branch 'default': #17143:

[issue17143] trace.py uses _warn without importing it

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! I changed a couple of things: 1) test_deprecated_usage was printing the usage on stderr while running the tests -- I changed it to use a StringIO and added a minimal test to check that the usage is actually written;

[issue17172] Add turtledemo to IDLE menu

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: I left a comment in rietveld. I hope the File menu is the right place for this. I think that's the best place where to put it. I had to move the code in Lib/turtledemo.py after if __name__ ==... into main(). Why? Should this be added to

[issue17143] trace.py uses _warn without importing it

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: The windows buildbots are failing with the following error: ERROR: test_deprecated_find_strings (test.test_trace.TestDeprecatedMethods) -- Traceback (most recent call last): File

[issue17175] update PEP 430

2013-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset f306777e0b6d by Ezio Melotti in branch 'default': #17175: remove outdated paragraph about issue #8040 from PEP 430. Patch by Tshepang Lekhonkhobe. http://hg.python.org/peps/rev/f306777e0b6d -- nosy: +python-dev

[issue8040] documentation pages should link to other versions of the same page

2013-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset f306777e0b6d by Ezio Melotti in branch 'default': #17175: remove outdated paragraph about issue #8040 from PEP 430. Patch by Tshepang Lekhonkhobe. http://hg.python.org/peps/rev/f306777e0b6d -- ___

[issue17175] update PEP 430

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement ___ Python tracker

[issue17177] Document/deprecate imp

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: Basically I need to figure out what imp's role is supposed to be in the face of importlib. If it's not even clear for you, even if you eventually figure that out, having two import-related modules is likely to be confusing for users. OTOH deprecating/removing

[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The characters tk can render depends on the font you tell it to use. On my Windows IDLE, I have Options Font Face set to Lucida Sans Unicode, though I am not sure what has the widest coverage. This page

[issue17208] add note/warning about daemon threads

2013-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset e63c4bc81d9f by Antoine Pitrou in branch '2.7': Issue #17208: add a note about the termination behaviour of daemon threads. http://hg.python.org/cpython/rev/e63c4bc81d9f -- nosy: +python-dev ___ Python

[issue17177] Document/deprecate imp

2013-02-15 Thread Brett Cannon
Brett Cannon added the comment: I would probably document the deprecation but otherwise leave it alone at the module level. Considering I only documented imp.find_module() and .load_module() as documented thanks to their funky interfaces making nearly impossible to do a direct translation I

[issue17208] add note/warning about daemon threads

2013-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8753a3be4a3c by Antoine Pitrou in branch '3.2': Issue #17208: add a note about the termination behaviour of daemon threads. http://hg.python.org/cpython/rev/8753a3be4a3c New changeset 917ae89e59ce by Antoine Pitrou in branch '3.3': Issue #17208:

[issue17208] add note/warning about daemon threads

2013-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17208 ___

[issue17178] Clarify empty iterable result in any/all.__doc__, as in manual

2013-02-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Titles should fit in the box if possible, and this can ;-). -- nosy: +terry.reedy title: In all.__doc__ and any.__doc__ need to clarify the behaviour with an empty iterable like in documentation - Clarify empty iterable result in any/all.__doc__, as

[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: The font used shouldn't affect the errors. Usually if a glyph is missing in the current font, either a placeholder (usually a box) is showed instead or the missing glyph is taken from another font (if possible). If you still want to do some tests, you can take

[issue17177] Document/deprecate imp

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: If you move them to importlib and just leave an alias in imp, you should still add a DeprecationWarning IMHO, even if you plan to remove them in Python 4. -- ___ Python tracker rep...@bugs.python.org

[issue17176] Document imp.NullImporter is NOT used anymore by import

2013-02-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17176 ___

[issue17178] Clarify empty iterable result in any/all.__doc__, as in manual

2013-02-15 Thread Ankur Ankan
Changes by Ankur Ankan ankuran...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file29080/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17178 ___

[issue17184] re.VERBOSE doesn't respect whitespace in '( ?Pfoo...)'

2013-02-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - re.VERBOSE whitespace behavior not completely documented versions: +Python 3.2, Python 3.3, Python 3.4 ___

[issue15606] re.VERBOSE whitespace behavior not completely documented

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: See also #17184. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15606 ___ ___ Python-bugs-list mailing list

[issue17178] Clarify empty iterable result in any/all.__doc__, as in manual

2013-02-15 Thread Ankur Ankan
Changes by Ankur Ankan ankuran...@gmail.com: Removed file: http://bugs.python.org/file29080/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17178 ___

[issue17179] Incorrect use of type function in types.new_class

2013-02-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: As far as I know, currently, the only valid 'keyword' argument for a class statement is 'metaclass' and that is so advanced that it is not mentioned in *8.7. Class definitions* but only in the linked section *3.3.3. Customizing class creation*. The

[issue17188] Document 'from None' in raise statement doc.

2013-02-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +benjamin.peterson, ezio.melotti type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17188 ___

[issue17178] Clarify empty iterable result in any/all.__doc__, as in manual

2013-02-15 Thread Ankur Ankan
Changes by Ankur Ankan ankuran...@gmail.com: Added file: http://bugs.python.org/file29081/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17178 ___

[issue17193] Use binary prefixes

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: +1 I left some comments on Rietveld. The SI standard says that there should be a space between the value and the unit, and I agree that while a no-break space would be better, a regular space is still better than no space at all. Applying this on 3.3 and

[issue17178] Clarify empty iterable result in any/all.__doc__, as in manual

2013-02-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f7eec78569c by Ezio Melotti in branch '2.7': #17178: update any()/all() docstrings to document their behavior with empty iterables. Patch by Ankur Ankan. http://hg.python.org/cpython/rev/0f7eec78569c New changeset 1d4849f9e37d by Ezio Melotti in

[issue17178] Clarify empty iterable result in any/all.__doc__, as in manual

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: docs@python - ezio.melotti components: +Documentation -Interpreter Core nosy: +ezio.melotti resolution: - fixed stage: needs patch - committed/rejected status: open - closed

[issue17183] Small enhancements to Lib/_markupbase.py

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: We should add some benchmarks to see if there is any difference between the two forms. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17183 ___

[issue17202] Add .bat line to .hgeol

2013-02-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +djc, ezio.melotti, loewis stage: - patch review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17202 ___

[issue17209] get_wch() doesn't handle KeyboardInterrupt

2013-02-15 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17209 ___ ___ Python-bugs-list mailing list

[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Ned Deily
Ned Deily added the comment: Also, there are differences in behavior among the various flavors of Tk. I know of at least four main flavors in use by current Python builds: Unix X11-based Tk 8.5, Windows Tk 8.5, OS X Cocoa Tk 8.5, OS X Carbon Tk 8.4. Some third-party distributors are

[issue17202] Add .bat line to .hgeol

2013-02-15 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +georg.brandl, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17202 ___ ___

[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tkinter is not compatible with Tcl/Tk 8.6 yet (issue16809). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13153 ___

[issue17202] Add .bat line to .hgeol

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: **.bat used to be there, but it was removed in 1762d79eab65. I have a very faint memory of some discussion about bat files and EOLs, but the best I could find was: http://mail.python.org/pipermail/python-dev/2012-May/119220.html

[issue17183] Small enhancements to Lib/_markupbase.py

2013-02-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Enhancement' issues are for visible behavior additions (or occasionally, changes). This is intended to be an invisible small speedup, hence it is a 'performance' issue, and gets a different title. As explained in #17170, the change will not be a speedup if

[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-15 Thread Ned Deily
Ned Deily added the comment: Serhiy, I'm aware of that; regardless, Tk 8.6 is starting to be used out in the field with tkinter. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13153 ___

[issue17187] Python segfaults from improperly formed and called function

2013-02-15 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17187 ___ ___ Python-bugs-list

[issue17183] Small enhancements to Lib/_markupbase.py

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: I would still do a benchmark, for these reasons: 1) IIRC rawdata might be the whole document (or at least everything that has not been parsed yet); 2) the '' is very likely to be found; This situation is fairly different from the one presented in #17170, where

[issue17193] Use binary prefixes

2013-02-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that we should contribute to ending the confusion. Searching KiB, MiB, GiB (with Google) gives a Wikipedia article as first or second hit, so the meanings of the abbreviations and terms are easily discoverable. -- nosy: +terry.reedy

[issue17202] Add .bat line to .hgeol

2013-02-15 Thread Zachary Ware
Zachary Ware added the comment: This seems to suggest that CRLF shouldn't be necessary. It's not necessary on .bat files without labels, but those with labels are subject to the (Windows) bug described in my first message and link. Adding an entry specifically for Doc/make.bat and any other

[issue17212] os.path.isfile() in Python 3.3 sometimes fails

2013-02-15 Thread G. Poore
New submission from G. Poore: os.path.isfile() sometimes incorrectly reports that a file does not exist under Python 3.3 (only tested under Windows). This may be encoding related. The issue only appears under a very particular set of circumstances; see comments in the attached script. The

[issue16041] poplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: RFC 1939 says: Responses in the POP3 consist of a status indicator and a keyword possibly followed by additional information. All responses are terminated by a CRLF pair. Responses may be up to 512 characters long, including the terminating

[issue16040] nntplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: RFC 3977 specifies: Command lines MUST NOT exceed 512 octets, which includes the terminating CRLF pair. However NNTP also have multi-line data blocks. The RFC says nothing about the maximum length of a data line. We may need two limits here, one for

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2013-02-15 Thread Lars Buitinck
Lars Buitinck added the comment: I'm sorry, I really don't understand this refcounts.dat file and I'm not going to hack it further. Does the patch as it currently stands solve the issue with CallMethod and CallFunction, or not? (It has the changes to the docs.) --

[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2013-02-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since switching from a simple custom cache to the generalized lru cache made a major slowdown, I think the change should be reverted. A dict + either occasional clearing or a circular queue and a first-in, first-out discipline is quite sufficient. There is no

[issue16039] imaplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: RFC 3501 and 2060 (IMAP 4rev1) don't specify a line length RFC 2683 says: A client should limit the length of the command lines it generates to approximately 1000 octets. For its part, a server should allow for a command line of at least 8000

[issue16037] httplib: header parsing is not delimited

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: CVE-2013-1752 Unbound readline() DoS vulnerabilities in Python stdlib -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16037 ___

[issue16038] ftplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: CVE-2013-1752 Unbound readline() DoS vulnerabilities in Python stdlib -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___

[issue16039] imaplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: CVE-2013-1752 Unbound readline() DoS vulnerabilities in Python stdlib -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16039 ___

[issue16040] nntplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: CVE-2013-1752 Unbound readline() DoS vulnerabilities in Python stdlib -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16040 ___

[issue16041] poplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: CVE-2013-1752 Unbound readline() DoS vulnerabilities in Python stdlib -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___

[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2013-02-15 Thread Ezio Melotti
Ezio Melotti added the comment: For 3.4 #14373 might solve the issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16389 ___ ___

[issue16042] smtplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: RFC 2821 says: command line The maximum total length of a command line including the command word and the CRLF is 512 characters. SMTP extensions may be used to increase this limit. reply line The maximum total length of a

[issue16042] smtplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: CVE-2013-1752 Unbound readline() DoS vulnerabilities in Python stdlib -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16042 ___

[issue16042] smtplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: Oh, next time I should read my own patch and responses first ... ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16042 ___

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: CVE-2013-1753 gzip bomb and unbound read DoS vulnerabilities in Python's xmlrpc library -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16043 ___

[issue12226] use HTTPS by default for uploading packages to pypi

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: CVE-2013-1754 Man-in-the-middle vulnerability in package upload feature of Python's distutils -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12226

[issue14373] C implementation of functools.lru_cache

2013-02-15 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list mailing list

[issue17192] libffi-3.0.12 import

2013-02-15 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: However internal copy of expat was updated in 2.7 and 3.2 branches about 2 weeks ago (issue #14340). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17192

[issue17206] Py_XDECREF() expands its argument multiple times

2013-02-15 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17206 ___ ___ Python-bugs-list mailing list

[issue1285086] urllib.quote is too slow

2013-02-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: Serhiy Storchaka added the comment: + append = res.append And then use 'append'? This speed up unquote_to_bytes by 15%. Thanks for the response. In fact, writing the whole _hextobyte verbatim would further increase the speed, but that would be huge

  1   2   >