[issue5639] Support TLS SNI extension in ssl module

2009-09-04 Thread Phil Pennock
Phil Pennock added the comment: wrapssl(server_hostname=True/False/String) looks good to me. Your arguments for enabling by default are compelling, for P3k. -- ___ Python tracker __

[issue6837] Mark the compiler package as deprecated

2009-09-04 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Bugs are no longer being fixed in the compiler package. To me, that says it should be regular-deprecated. People with no short term plans of switching to Python 3 will still want to avoid the compiler package. They should be told about the deprecation to

[issue1115886] os.path.splitext don't handle unix hidden file correctly

2009-09-04 Thread Alexandru Munteanu
Alexandru Munteanu added the comment: I've read parts of the python-dev discussions, but I don't agree with this change: mimetypes.guess_type() now recognises '.ogg' as None. -- nosy: +optimix ___ Python tracker

[issue6703] cross platform failure and silly test in doctest

2009-09-04 Thread Chris Withers
Chris Withers added the comment: Hmm, I don't think tests will fail, however, there are cryptic docs for this... http://docs.python.org/library/doctest.html#basic-api I don't really get what module_relative is about and I've always run into the non- cross-platform issue above when passing an

[issue6840] genericpath: _splitext returns '.ext', '' instead of '', '.ext'

2009-09-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: Have a look at http://bugs.python.org/issue1115886. -- nosy: +benjamin.peterson resolution: -> works for me status: open -> closed ___ Python tracker __

[issue6840] genericpath: _splitext returns '.ext', '' instead of '', '.ext'

2009-09-04 Thread Alexandru Munteanu
New submission from Alexandru Munteanu : Having a '.ogg' filename, _splitext returns '.ogg' as base and empty extension. Probably it should return empty base and '.ogg' extension. Lib/genericpath.py:99 - Why "skip all leading dots" ? I attach a possible patch (with tests). -- component

[issue1353344] python.desktop

2009-09-04 Thread Matías
Matías added the comment: Added the spanish translation. -- nosy: +mribecky Added file: http://bugs.python.org/file14833/python.desktop ___ Python tracker ___

[issue6839] zipfile can't extract file

2009-09-04 Thread Kim Kyung Don
New submission from Kim Kyung Don : The following exception occured when I tried to extract on Windows. "zipfile.BadZipfile: File name in directory "test\test2.txt" and header "test/test2.txt" differ." It seems like problem about slash. I tested using by zipfile Revision 72893. -- ___

[issue6839] zipfile can't extract file

2009-09-04 Thread Kim Kyung Don
Changes by Kim Kyung Don : -- components: Library (Lib), Windows files: test.zip nosy: NewerCookie severity: normal status: open title: zipfile can't extract file type: behavior versions: Python 2.6 Added file: http://bugs.python.org/file14832/test.zip __

[issue6824] help for a module should list supported platforms

2009-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: *most* modules are platform independent, and for those, I do not think anything needs to be said. I agree with OP that it would be nice if interactive help indicated platform dependencies, if and when such is not done now. I have no idea if any of such additio

[issue6837] Mark the compiler package as deprecated

2009-09-04 Thread Brett Cannon
Brett Cannon added the comment: The package is not going to be removed from 2.x at this point since 2.7 will most likely be the last major release of the line. But it does have a Py3k warning which is good enough in this situation. -- nosy: +brett.cannon resolution: -> wont fix statu

[issue6795] decimal.py: minor issues && usability

2009-09-04 Thread Facundo Batista
Facundo Batista added the comment: Issue 1: +1 to raise ValueError Issue 3: -0 to change actual behaviour Thanks! -- ___ Python tracker ___

[issue6239] c_char_p return value returns string, not bytes

2009-09-04 Thread Thomas Heller
Thomas Heller added the comment: Commited as svn rev 74664 (py3k) and rev 74665 (release31-maint). -- stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue5831] Doc mistake : threading.Timer is *not* a class

2009-09-04 Thread Manuel Kaufmann
Manuel Kaufmann added the comment: I deleted this function and I renamed the class _Timer to Timer. I attached the patch -- keywords: +patch nosy: +humitos Added file: http://bugs.python.org/file14831/threading.Issue.5831.patch ___ Python tracker

[issue6838] httplib's _read_chunked extremely slow for lots of chunks

2009-09-04 Thread Chris Withers
Chris Withers added the comment: Fix merged to 2.6, 3.1 and 3.2 branches. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue6838] httplib's _read_chunked extremely slow for lots of chunks

2009-09-04 Thread Chris Withers
Chris Withers added the comment: Fix for trunk committed in r74655. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue6838] httplib's _read_chunked extremely slow for lots of chunks

2009-09-04 Thread Chris Withers
New submission from Chris Withers : As the comment in this method suggests, accumulating the value by repeated string concatenation is slow. Appending to a list speeds this up dramatically. To quantify this, downloading a 110Mb file from Apache take: ~3s using Internet Explorer 2.2s using wge

[issue6837] Mark the compiler package as deprecated

2009-09-04 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list maili

[issue6829] Frendly error message when inheriting from function

2009-09-04 Thread R. David Murray
R. David Murray added the comment: That would still be special-casing, you'd just be special casing three things instead of one, nor does that exhaust the list of things for which you might get this kind of error. However, the code that generates the error message contains the following comment

[issue6829] Frendly error message when inheriting from function

2009-09-04 Thread anatoly techtonik
Changes by anatoly techtonik : -- status: closed -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue6829] Frendly error message when inheriting from function

2009-09-04 Thread anatoly techtonik
anatoly techtonik added the comment: Ok, but why not to change the message to less cryptic "Impossible to inherit class from function(), string or int"? -- ___ Python tracker __

[issue6837] Mark the compiler package as deprecated

2009-09-04 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : According to http://docs.python.org/library/compiler.html, the compiler package is deprecated. However, importing the compiler package does not emit a deprecation warning. It should, to convey this information to people who are actually trying to use th

[issue6836] Mismatching use of memory APIs

2009-09-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: using the debugmalloc patch provided, I found only this one case when running the testsuite. Patch is provided. It is the simple solution of duplicating the string in this case. A more cumbersome solution would be to allocate the "encoding" using Py

[issue6836] Mismatching use of memory APIs

2009-09-04 Thread Nick Coghlan
Nick Coghlan added the comment: Poking the timbot - this seems like a good idea to me (and it also means C extension developers would be able to use a debug build of Python to look for errors in their own use of these APIs). -- nosy: +tim_one ___ Pyt

[issue6836] Mismatching use of memory APIs

2009-09-04 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : There are instances in python where memory allocated using one api (PyMem_*) is freed using the other (PyObject_*). The provided patch (suggested for submission once we fix all instances) illustrates this. It is sufficient to fire up python_d and "im

[issue6777] Python 2.6 tutorial still recommends using Exception.message attribute

2009-09-04 Thread Georg Brandl
Georg Brandl added the comment: Thanks, corrected in r74653. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5365] add conversion table to time module docs

2009-09-04 Thread Georg Brandl
Georg Brandl added the comment: I don't think that is too helpful; for one thing, the description of strptime and strftime is too vague. -- status: open -> closed ___ Python tracker

[issue6756] ftplib documentation does not document what the acct parameter is used for

2009-09-04 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74652. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue5101] test_funcattrs truncated during unittest conversion

2009-09-04 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r74650, r74651 (3k). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue2576] httplib read() very slow due to lack of socket buffer

2009-09-04 Thread Chris Withers
Chris Withers added the comment: Yep, having done some more extensive profiling, it looks like my issue is different: all the time is being spent in httplib's HTTPResponse._read_chunked. That wouldn't be a symptom of this issue, would it? -- ___ P

[issue1208304] urllib2's urlopen() method causes a memory leak

2009-09-04 Thread clemens pecinovsky
clemens pecinovsky added the comment: i also ran into the problem of cyclic dependencies. i know if i would call gc.collect() the problem would be solved, but calling gc.collect() takes a long time. the problem is the cyclic dependency with r.recv=r.read i have fixed it localy by wrapping the

[issue6829] Frendly error message when inheriting from function

2009-09-04 Thread Georg Brandl
Georg Brandl added the comment: You'll get a similar message when trying to inherit from e.g. a string or an int. I see no compelling reason to special-case functions here. -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ P

[issue5275] BaseCookie.load doesn't create Morsel objects for mappings

2009-09-04 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74647. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5221] help related topic doesn't exist

2009-09-04 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74645. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue977470] Deleted files are reinstalled

2009-09-04 Thread Georg Brandl
Georg Brandl added the comment: Closing as "won't fix". -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker ___ __

[issue6824] help for a module should list supported platforms

2009-09-04 Thread Ritesh Raj Sarraf
Ritesh Raj Sarraf added the comment: I never said that I think it is not cross-platform. My point is, it should be good to list down a module's dependency in the python help docs. Like: tempfile Supported Platforms: ALL Exception: On Platform foo, feature tempfile.bar() is not available. ---

[issue5080] PyArg_Parse* should raise TypeError for float parsed with integer format

2009-09-04 Thread Georg Brandl
Georg Brandl added the comment: +1. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue5064] compiler.parse raises SyntaxErrors without line number information

2009-09-04 Thread Georg Brandl
Georg Brandl added the comment: In light of > The compiler package is deprecated in favor of builtin AST. and > It seems a patch would be an enormous undertaking, I guess it's best to close this as "won't fix". -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed

[issue5047] Remove Monterey support from configure.in

2009-09-04 Thread Georg Brandl
Georg Brandl added the comment: Committed in r74644. -- nosy: +georg.brandl resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue6824] help for a module should list supported platforms

2009-09-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: What makes you think that the tempfile module is not cross-platform? -- ___ Python tracker ___ ___