[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 dicki...@gmail.com: -- assignee: - marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6713 ___ ___

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

2009-09-12 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6108 ___ ___ Python-bugs-list

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

2009-09-12 Thread Vincent Legoll
Vincent Legoll vincent.leg...@gmail.com 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 rep...@bugs.python.org

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

2009-09-12 Thread Raphaël Barrois
New submission from Raphaël Barrois xelnor_pyt...@melix.net: 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

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

2009-09-12 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de 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 rep...@bugs.python.org

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

2009-09-12 Thread Akira Kitada
Akira Kitada akit...@gmail.com 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:

[issue1294959] Problems with /usr/lib64 builds.

2009-09-12 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: I think this is duplicate of issue858809. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___

[issue1019715] distutils ignores configure's --includedir

2009-09-12 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: I think this is duplicate of issue858809. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1019715 ___

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

2009-09-12 Thread Pertti Kellomäki
Pertti Kellomäki pertti.kellom...@tut.fi 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

[issue6873] posix_lchown: possible overflow of uid, gid

2009-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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.

[issue6831] 2to3 assignment division conversion

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

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

2009-09-12 Thread Santhosh Thottingal
New submission from Santhosh Thottingal santhosh.thottin...@gmail.com: 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

[issue6831] 2to3 assignment division conversion

2009-09-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org 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

[issue2650] re.escape should not escape underscore

2009-09-12 Thread Björn Lindqvist
Björn Lindqvist bjou...@gmail.com 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

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

2009-09-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue6896] Intermittent failures in test_mailbox

2009-09-12 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: 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

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

2009-09-12 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

[issue6574] List the __future__ features in a table

2009-09-12 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +georg.brandl stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6574 ___

[issue6897] imaplib fails during login

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

[issue6574] List the __future__ features in a table

2009-09-12 Thread Georg Brandl
Georg Brandl ge...@python.org 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

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

2009-09-12 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2009-09-12 Thread mkp
mkp mkpmkpmkp9...@gmail.com added the comment: on python2.5 / mac os x 10.5.7: $ cat main.c #include stdio.h #include python.h int main() { int i; for (i=0; i10; i++) { printf(--- %d ---\n, i); Py_Initialize(); PyRun_SimpleString(import ctypes);

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-12 Thread Alan Isaac
Alan Isaac alan.is...@gmail.com 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 rep...@bugs.python.org

[issue6898] Unicode Error

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

[issue6898] Unicode Error

2009-09-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Change your terminal's encoding. -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6898

[issue6898] Unicode Error

2009-09-12 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2009-09-12 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2009-09-12 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com 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

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-12 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com 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 rep...@bugs.python.org

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-12 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6844 ___ ___ Python-bugs-list