[issue6524] tarfile module missing decompression support?

2009-07-19 Thread Henrik ravn
New submission from Henrik ravn : When doing the following with python 2.6.2 on Windows Vista SP1: >>> import tarfile >>> tf = tarfile.TarFile("sometarfile.tar.bz2") Traceback (most recent call last): File "", line 1, in tf = tarfile.TarFile("sometarfile.tar.bz2") File "C:\Python26\lib

[issue6523] smtplib exception smtp.connect TypeError encode_plain

2009-07-19 Thread Leonard Kevin McGuire Jr
New submission from Leonard Kevin McGuire Jr : -- SYSTEM INFORMATION - module: smtplib system: linux python3.0 -V Python 3.0.1+ - TEST CASE PYTHON SOURCE - import smtplib smtp = smtplib.SMTP() smtp.connect('mail.myserver.org') smtp.login('myusername', 'mypassword') -

[issue6163] [HP-UX] ld: Unrecognized argument: +s -L

2009-07-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: Michael, I am not sure how you patch applies, is "elif" meant to be "if" ? e.g. a gcc compiler under hp-us case ? -- ___ Python tracker ___ ___

[issue6516] reset owner/group to root for distutils tarballs

2009-07-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: what would be the use case for that ? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue1436346] yday in datetime module

2009-07-19 Thread Jubaraj Borgohain
Jubaraj Borgohain added the comment: I have completed the following two new features for the datetime module (the changes are attached as a patch): a. Added a method yday() b. Added date.fromyday(year,yday), which returns a date object. The other features requested are already available. The tes

[issue6520] urllib.urlopen does not have timeout parameter where as urllib2.urlopen has

2009-07-19 Thread Skip Montanaro
Skip Montanaro added the comment: I suspect that was a conscious decision. Back when it was first written urllib2 was supposed to eventually replace urllib I think. Dunno if that's still true, but if so I could see why this feature wasn't added to urllib.urlopen. -- nosy: +skip.montan

[issue6522] docs for unittest.expectedFailure do not syntactically show it's a decorator

2009-07-19 Thread Brett Cannon
New submission from Brett Cannon : If you look at the docs for the unittest.expectedFailure decorator you will notice it shows a set of empty parentheses since it is set with a function directive. But since it's a decorator those empty parentheses are not accurate. If you want to view the doc

[issue5262] PythonLauncher considered harmfull

2009-07-19 Thread Kevin Walzer
Kevin Walzer added the comment: I disagree that this is a bad idea--it's helpful to be able to double- click a GUI script and launch it automatically. I realize one can just fire up Terminal and go "python myscript.py," but I missed this functionality when it was broken and would be unhappy to

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2009-07-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2009-07-19 Thread Ezio Melotti
Ezio Melotti added the comment: Here's a new patch. I added a could of @skipUnless in test_sqlite because two tests were failing. I couldn't notice this before because I didn't have _sqlite3 and these tests were skipped. Thanks to R. David Murray for reporting the problem. In test_zipimport,

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-19 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks, now all the tests pass. However I had intermittent failures (with a really useful error message) on test_docxmlrpc: $ ./python Lib/test/regrtest.py -v test_docxmlrpc test_docxmlrpc test_autolink_dotted_methods (test.test_docxmlrpc.DocXMLRPCHTTPGETServer)

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: submitted revision 74098 and revision 74099 which should fix your issue. Oh, and revision 74100 and revision 74101 as well (insufficient testing on my part, tsk. tsk.) -- ___ Python tracker

[issue3244] multipart/form-data encoding

2009-07-19 Thread Alex Z.
Changes by Alex Z. : -- nosy: +alexz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue4200] atexit module not safe in Python 3.0 with multiple interpreters

2009-07-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2009/7/19 Graham Dumpleton : > > Graham Dumpleton added the comment: > > I know this issue is closed, but for this patch, the code: > > +    modstate = get_atexitmodule_state(module); > + > +    if (modstate->ncallbacks == 0) > +        return; > > was added

[issue6509] re.py - encounter unexpected str-object

2009-07-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue6521] Contradictory documentation for email.mime.text.MIMEText

2009-07-19 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: georg.brandl -> barry nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue6521] Contradictory documentation for email.mime.text.MIMEText

2009-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Apparently it doesn't: >>> message = MIMEText(u"héhé", _charset="utf-8") Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.6/email/mime/text.py", line 30, in __init__ self.set_payload(_text, _charset) File "/usr/lib64/py

[issue6521] Contradictory documentation for email.mime.text.MIMEText

2009-07-19 Thread Antoine Pitrou
New submission from Antoine Pitrou : It is not obvious whether encoding of an unicode argument will happen or not: « [...] No guessing or encoding is performed on the text data. Changed in version 2.4: The previously deprecated _encoding argument has been removed. Encoding happens implicitly ba

[issue6415] warnings.warn segfaults on bad formatted string

2009-07-19 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue4200] atexit module not safe in Python 3.0 with multiple interpreters

2009-07-19 Thread Graham Dumpleton
Graham Dumpleton added the comment: I know this issue is closed, but for this patch, the code: +modstate = get_atexitmodule_state(module); + +if (modstate->ncallbacks == 0) +return; was added. Is there any condition under which modstate could be NULL. Haven't touched Python 3

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Kristján, zlib is only built when the required development headers (.h files for the zlib library) are available. -- nosy: +pitrou ___ Python tracker __

[issue6492] xml.etree does not escape CR, LF and TAB characters within attribute values

2009-07-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> effbot nosy: +effbot ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6504] infinite recursion from calling builtins.open()

2009-07-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, we conditionally import the "locale" module in order to guess the encoding when it is not specified by the caller. We can't import it at module initialization time because it would cause bootstrapping issues. The Python equivalent of the logic expressed in

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-07-19 Thread Winfried Plappert
Winfried Plappert added the comment: I have the problem described in issue6512 and here is some information Python version - hand compiled on Ubuntu 9.04: Python 3.1 (r31:73572, Jul 18 2009, 11:13:40) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.