[issue6844] BaseException DeprecationError raises inappropriately

2009-09-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-12 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: FWIW, I'm waiting to hear about the acceptability of adding fields to the exception structure(s) before I work on this patch. -- ___ Python tracker ___

[issue6108] unicode(exception) behaves differently on Py2.6 when len(exception.args) > 1

2009-09-12 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Perhaps also worth noting is that in Python 2.4 as well, str(exception) and unicode(exception) returned the same thing. Unlike some other exception changes in 2.6, this doesn't seem to be a return to older behavior, but just a new behavior. (Or maybe no o

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

2009-09-12 Thread Ezio Melotti
Ezio Melotti added the comment: I fixed the machine and tried the file that you uploaded, but nothing changed. This is what I used (traceback.print_exc() prints to stderr, so the traceback should be visible): $ while ./python Lib/test/regrtest.py -v test_docxmlrpc.py; do :; done > /dev/null U

[issue6898] Unicode Error

2009-09-12 Thread Ezio Melotti
Ezio Melotti added the comment: It looks like you are using the Windows terminal, that, afaik, is not able to display the characters you are trying to print. This is because its default encoding - cp1252 - can encode only a small subset of the Unicode characters. If changing the encoding of the

[issue6898] Unicode Error

2009-09-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: Change your terminal's encoding. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker ___ __

[issue6898] Unicode Error

2009-09-12 Thread vitvn
New submission from vitvn : >>>viet= "â ă á à ấ ầ ắ ằ ạ ậ ặ " >>>print(viet) Traceback (most recent call last): File "tiengviet.py", line 4, in print(viet) File "I:\python\python.v3.1_portable\App\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,sel

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-12 Thread Alan Isaac
Alan Isaac added the comment: Since you are working on this, can you see if http://bugs.python.org/issue6108 is related or in any case can be fixed at the same time? Thanks. -- ___ Python tracker ___

[issue6869] Embedded python crashed on 4th run, if "ctypes" is used

2009-09-12 Thread mkp
mkp added the comment: on python2.5 / mac os x 10.5.7: $ cat main.c #include #include int main() { int i; for (i=0; i<10; i++) { printf("--- %d ---\n", i); Py_Initialize(); PyRun_SimpleString("import ctypes"); Py_Finalize(); } return 0; }

[issue5511] zipfile - add __exit__ attribute to make ZipFile object compatible with with_statement

2009-09-12 Thread Ezio Melotti
Ezio Melotti added the comment: I think there should also be one or more tests that check if the file is closed correctly after the __exit__, in normal conditions and possibly in different situations (e.g. when an error is raised ). Unlike regular file objects, ZipFile objects don't have a 'clos

[issue6574] List the __future__ features in a table

2009-09-12 Thread Georg Brandl
Georg Brandl added the comment: Accepted, except for two things: * I'd drop the "a0" suffix for the mandatory version. "2.2" instead of "2.2.0a0" is much better to comprehend. * Why the ugly markup with the PEP refs? ``:pep:`number`: blah`` should work well. For 3k, all previous future featur

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-09-12 Thread Tom
Changes by Tom : -- nosy: +qwavel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue6897] imaplib fails during login

2009-09-12 Thread geremy condra
New submission from geremy condra : Getting the following issue- this code: #! /usr/bin/env python3 import getpass, imaplib M = imaplib.IMAP4_SSL("imap.gmail.com") M.login(, ) M.select() typ, data = M.search(None, 'ALL') for num in data[0].split(): typ, data = M.fetch(num, '(RFC822)')

[issue6574] List the __future__ features in a table

2009-09-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +georg.brandl stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

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

2009-09-12 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r74754 (trunk) and r74755 (py3k). -- keywords: -needs review, patch resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue6896] Intermittent failures in test_mailbox

2009-09-12 Thread Ezio Melotti
New submission from Ezio Melotti : While running test.regrtest, test_mailbox failed with the error: test test_mailbox failed -- Traceback (most recent call last): File "/home/wolf/py3k/Lib/test/test_mailbox.py", line 116, in test_discard self.assertEqual(len(self._box), 1) AssertionError:

[issue6875] add os.close() suggestion to mkstemp documentation

2009-09-12 Thread R. David Murray
R. David Murray added the comment: Because if you want the Python file object, you should use TemporaryFile or NamedTemporaryFile. mkstemp is a lower level (closer to the os) interface, and is provided because Python has a philosophy of providing those low level interfaces when possible. Note

[issue2650] re.escape should not escape underscore

2009-09-12 Thread Björn Lindqvist
Björn Lindqvist added the comment: In my app, I need to transform the regexp created from user input so that it matches unicode characters with their ascii equivalents. For example, if someone searches for "el nino", that should match the string "el ñino". Similarly, searching for "el ñino" shou

[issue6831] 2to3 assignment division conversion

2009-09-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: That would not always be correct because __div__ implements a "default" division that doesn't exist in Py3k. It's easiest to implement __floordiv__ and __truediv__ in for 2.x for correct behavior there, too. -- resolution: -> wont fix status: open -

[issue6895] locale._parse_localename fails when localename does not contain encoding information

2009-09-12 Thread Santhosh Thottingal
New submission from Santhosh Thottingal : locale._parse_localename fails when the locale name is in xx_YY format. For example when the system locale is Malayalam(India), ml_IN we get the following result >>> locale._parse_localename("ml_IN") Traceback (most recent call last): File "", line 1,

[issue6831] 2to3 assignment division conversion

2009-09-12 Thread Jonas Byström
Jonas Byström added the comment: I would like something like a regexp-replace of def[ \t]*__idiv__\((.*?)\) into def __floordiv__(\1): self.__truediv__() def __truediv__(\1) -- ___ Python tracker ___

[issue6873] posix_lchown: possible overflow of uid, gid

2009-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: > You are saying that if I pass a long to the i argument parser it will > cause a problem. But if I passed a int, it will be same as before and > overflow will not be detected at all. Correct. So you should use the l argument parser. -- __

[issue6863] Wrong linker command if CXX set to "ccache g++"

2009-09-12 Thread Pertti Kellomäki
Pertti Kellomäki added the comment: The linker is usually called via a compiler, which arranges for compiler specific libraries to be included in the linking. See e.g. section 10.2 in the GNU Make manual: Linking a single object file n is made automatically from n.o by running the linker (usua

[issue1019715] distutils ignores configure's --includedir

2009-09-12 Thread Akira Kitada
Akira Kitada added the comment: I think this is duplicate of issue858809. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue1294959] Problems with /usr/lib64 builds.

2009-09-12 Thread Akira Kitada
Akira Kitada added the comment: I think this is duplicate of issue858809. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue6863] Wrong linker command if CXX set to "ccache g++"

2009-09-12 Thread Akira Kitada
Akira Kitada added the comment: Aren't CC and CXX variables just for compilers? """ CC Program for compiling C programs; default `cc'. CXX Program for compiling C++ programs; default `g++'. """ http://www.gnu.org/software/make/manual/make.html#index-CXX-848 -- nosy: +akitada _

[issue6856] allow setting uid and gid when creating tar files

2009-09-12 Thread Lars Gustäbel
Lars Gustäbel added the comment: I applied the patch with some more small fixes to the trunk (r74750) and the py3k branch (r74751). -- resolution: -> accepted status: open -> closed ___ Python tracker

[issue6894] urllib2 doesn't respect "no_proxy" environment (python2.6.2)

2009-09-12 Thread Raphaël Barrois
New submission from Raphaël Barrois : I discovered recently that urllib2 doesn't respect the "no_proxy" environment variable on linux (and on other platforms too, I think). Here is an example of the problem : - Set http_proxy and no_proxy environment variables (for instance no_proxy="localhost

[issue6875] add os.close() suggestion to mkstemp documentation

2009-09-12 Thread Vincent Legoll
Vincent Legoll added the comment: The real question I had is why mkstemp return an os-level opened file descriptor instead of a python file object... -- ___ Python tracker ___ __

[issue6108] unicode(exception) behaves differently on Py2.6 when len(exception.args) > 1

2009-09-12 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6713] Integer & Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-12 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt