[issue9750] sqlite3 iterdump fails on column with reserved name

2010-09-02 Thread Marko Kohtala
Marko Kohtala added the comment: Here is a patch that may resolve the bug. -- keywords: +patch Added file: http://bugs.python.org/file18721/sqlite3bug.patch ___ Python tracker __

[issue9750] sqlite3 iterdump fails on column with reserved name

2010-09-02 Thread Marko Kohtala
New submission from Marko Kohtala : Sqlite3 fails to dump a database with column names that are keywords. -- components: Extension Modules files: sqlite3bug.py messages: 115420 nosy: Marko.Kohtala priority: normal severity: normal status: open title: sqlite3 iterdump fails on column with

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-09-02 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a patch (developed jointly with Terry Reedy) for 2.7 that adds an 'autojunk' parameter to SequenceMatcher's constructor. The parameter is True by default which retains the current behavior in 2.6 and earlier, but can be set by the user to False to di

[issue9749] tuple-to-list conversion

2010-09-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, this isn't a bug. I think you've rediscovered a property of mutable objects. See http://docs.python.org/tutorial/controlflow.html#default-argument-values for an example. -- nosy: +rhettinger resolution: -> invalid status: open -> closed

[issue7005] ConfigParser does not handle options without values

2010-09-02 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Commited as r84443 (release27-maint), r8 (py3k) -- status: open -> closed ___ Python tracker ___ ___

[issue7005] ConfigParser does not handle options without values

2010-09-02 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Attached fix & test for Python 2; adjusting to Python 3 is trivial. The test could be added to 2.6 as well to protect against regressions there, though that's unlikely to be a significant issue. -- Added file: http://bugs.python.org/file18718/issu

[issue9739] Output of help(...) is wider than 80 characters

2010-09-02 Thread Case Van Horsen
Case Van Horsen added the comment: According to PEP 7, the first line of the doc string should contain the signature of the function, then there should be a blank line, and then the rest of the doc string. There may be tools that extract the signature line. The patch just decreases the line l

[issue7005] ConfigParser does not handle options without values

2010-09-02 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: I've attached a diagnostic script that I ran with Python 2.4..3.2 (current py3k HEAD); there are two output variants: "old style": [section] option = None "new style": [section] option This is the output I get when running this script f

[issue9749] tuple-to-list conversion

2010-09-02 Thread Pyry Säilä
Changes by Pyry Säilä : -- components: -None ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9749] tuple-to-list conversion

2010-09-02 Thread Pyry Säilä
New submission from Pyry Säilä : As I am new to Python and programming as a whole, I do not have extensive knowledge of how to correctly report a bug. And as such I must apologize for the inconvenience. My lack of knowledge makes this only an assumption, but... --- >>>l [(1, 4, 7), (2, 5, 8)

[issue9748] .inputrc magic-space breaks interactive mode

2010-09-02 Thread stephenk
New submission from stephenk : Adding the following line to ~/.inputrc for bash commandline usage will break the python interactive interpreter. Specifically, you can no longer type "space" characters: Space: magic-space This is fairly serious for bash users, because once you've lived with

[issue9748] .inputrc magic-space breaks interactive mode

2010-09-02 Thread stephenk
Changes by stephenk : -- components: None nosy: stephenk priority: normal severity: normal status: open title: .inputrc magic-space breaks interactive mode type: behavior versions: Python 2.6, Python 3.1 ___ Python tracker

[issue9747] os.getresgid() documentation mentions "user ids", not "group ids"

2010-09-02 Thread Neil Tallim
New submission from Neil Tallim : Super-low-priority (it's obvious from context and unlike to confuse anyone who knows what they're looking at), but the os module's description for getresgid() is "Return a tuple (rgid, egid, sgid) denoting the current process’s real, effective, and saved user

[issue7141] 2to3 should add from __future__ import print_statement

2010-09-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: I rejecting, mostly to avoid feature creep. (This shouldn't be too difficult to accomplish with a shell script.) You could also look at 3to2. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue9719] build_ssl.py: cannot find 'asm64/*.*'

2010-09-02 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: When I disabled r83335, openssl build fails: set ASM=ml64 /c /Cp /Cx /Zi crypto\x86_64cpuid.pl tmp64\x86_64cpuid.asm ml64 /c /Cp /Cx /Zi /Fotmp64\x86_64cpuid.obj tmp64\x86_64cpuid.asm Assembling: tmp64\x86_64cpuid.asm MASM : fatal error A1000:cannot op

[issue843590] 'macintosh' encoding alias for 'mac_roman'

2010-09-02 Thread Ned Deily
Ned Deily added the comment: Martin, the typo was fixed subsequently by r84231. -- nosy: +ned.deily ___ Python tracker ___ ___ Pytho

[issue5404] Cross-compiling Python

2010-09-02 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue7005] ConfigParser does not handle options without values

2010-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: This one is strange. Trying to set a None value through set() raises 'TypeError: option values must be strings' on both Python 3.2 and 2.7. A string value of 'None' behaves as expected (e.g. correctly). -- ___ Python

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: Patch updated: - _UNSET removed from docs in favor of a more natural syntax (square brackets around optional arguments) - _COMPATIBLE left in the docs because I find less magical in that case (+ it's already covered in the docs what this special case means) - fi

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-09-02 Thread Łukasz Langa
Changes by Łukasz Langa : Removed file: http://bugs.python.org/file18458/issue9421.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue9740] Support for HTTP 1.1 persistent connections throughout the standard library

2010-09-02 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue9738] Document the encoding of functions bytes arguments of the C API

2010-09-02 Thread Dave Malcolm
Dave Malcolm added the comment: > I think either of these is correct: > - a UTF-8-encoded string > - a string encoded in UTF-8 Possibly use the word "buffer" here, rather than "string", as "string" may suggest the "str" type. Or even: "NUL-terminated buffer of UTF-8-encoded bytes", or whatnot

[issue9738] Document the encoding of functions bytes arguments of the C API

2010-09-02 Thread Éric Araujo
Éric Araujo added the comment: I think either of these is correct: - a UTF-8-encoded string - a string encoded in UTF-8 -- nosy: +eric.araujo ___ Python tracker ___ _

[issue9730] base64 docs refers to strings instead of bytes

2010-09-02 Thread R. David Murray
R. David Murray added the comment: See issue 4769, which would partially fix this problem if implemented correctly. The docs should still be given a thorough review to use the appropriate bytes/string language. There is a way to do automated testing of the code in the docs, but nobody has d

[issue7077] SysLogHandler can't handle Unicode

2010-09-02 Thread Remi Broemeling
Remi Broemeling added the comment: Attaching UTFFixedSysLogHandler, which is a sub-class of logging.handlers.SysLogHandler. The sub-class re-implements the emit() code to put the BOM in the right place (a re-implementation of r84218 and r84222). Can be used with existing Python codebases as

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-09-02 Thread Misael Henriquez
Misael Henriquez added the comment: Thanks for your attention to this issue. It sounds like you're onto something regarding the stand-in function not getting exported. I'm not sure what to check next, though. >From pyconfig.h: /* Define to 1 if you have the `round' function. */ /* #undef H

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-09-02 Thread Misael Henriquez
Misael Henriquez added the comment: The check for round failed during configure. I included a bit of that in my second note above. Here's a bit more of the output: collect2: ld returned 1 exit status configure:11989: $? = 1 configure: failed program was: | /* confdefs.h */ | #define _GNU_SOU

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-09-02 Thread Mark Dickinson
Mark Dickinson added the comment: Ah. Reading your second message more closely, you're presumably getting a 'no' there. Could you double check that 'HAVE_ROUND' is not defined in pyconfig.h? In that case, what's supposed to happen is that there's a substitute 'round' function defined in Pyt

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-09-02 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. There should be a configure-time test for 'round'. Could you look for a line something like: checking for round... yes in the configure output and tell me whether you've got a 'yes' or a 'no' there? -- assignee: -> mark.dickinson _

[issue9746] All sequence types support .index and .count

2010-09-02 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : In the list of operations supported by all sequence types, the .index and .count methods should be included. They are defined by the collections.Sequence ABC that all sequences support. (except for range objects, but that will be fixed in Issue9213) ---

[issue9741] msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary

2010-09-02 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review stage: -> patch review versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker ___

[issue9213] range purports to implement the Sequence ABC, but is missing index and count methods

2010-09-02 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Thank you for the patch. The patch doesn't handle the case where the object being searched for is !PyLong_CheckExact. For example, the user might pass in a sub-type of int. The existing range_contains supports that case, so it seems like we should suppor

[issue959576] Can't build Python on POSIX w/o $HOME

2010-09-02 Thread Éric Araujo
Changes by Éric Araujo : -- stage: unit test needed -> committed/rejected status: pending -> closed ___ Python tracker ___ ___ Python

[issue7299] setup.py install doesn't honor PYTHONUSERBASE

2010-09-02 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> invalid stage: -> committed/rejected status: pending -> closed ___ Python tracker ___ ___

[issue9745] MSVC .pdb files not created by python 2.7 distutils

2010-09-02 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> tarek components: +Distutils nosy: +eric.araujo, tarek versions: +Python 3.1, Python 3.2 ___ Python tracker ___ _

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-09-02 Thread Ned Deily
Changes by Ned Deily : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue8265] test_float fails on ARM Linux EABI with soft floating point

2010-09-02 Thread Matthias Klose
Matthias Klose added the comment: I checked with gcc-4.4 from the 4.4 branch, and with a recent build from the trunk. The check fails with -O0, and succeeds with -O1 and higher. Is the testcode from r82957 really using the optimization flags? -- _

[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-02 Thread Eric Smith
Eric Smith added the comment: Amaury: Good point. The Windows version is failing, too. A print statement at the end doesn't get executed. -- ___ Python tracker ___ _

[issue9664] Make gzip module not require that underlying file object support seek

2010-09-02 Thread Matt Kraai
Matt Kraai added the comment: I don't know the gzip format well enough, but I was hoping that it would be possible to iterate through the lines of a gzip-compressed stream without having to use any of the functions that would require seeking. -- nosy: +kraai _

[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-02 Thread Alex
Alex added the comment: This seems to be another case of "C stack depth not reflected in the stack counter". -- nosy: +alex ___ Python tracker ___ __

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-09-02 Thread Misael Henriquez
Misael Henriquez added the comment: The problem appears to be the lack of a round function in Solaris 9. This compiles find in Solaris 10, but I need it in Solaris 9. configure:11989: checking for round configure:11989: gcc -o conftest -g -O2 conftest.c -lresolv -lsocket -lnsl -lrt -ldl -

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2010-09-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: closing because it is too late to backport this to 2.7. It is available as a backport in http://code.google.com/p/python-subprocess32/. As for the idea of not using SIG_IGN and installing a default no-op handler, that is another approach. signal.getsignal

[issue9745] MSVC .pdb files not created by python 2.7 distutils

2010-09-02 Thread John Ehresman
New submission from John Ehresman : .pdb files are not created because /pdb:None is set as an option on line 415 of msvc9compiler.py. Removing the /pdb:None works to write the .pdb file and allow symbols to be loaded in the VS 2008 debugger in the one extension I tried. Anyone know why /pdb:

[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: On Windows, a stack overflow often causes the program to silently exit. Try to add some print statement at the end and see if it executes. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-02 Thread Eric Smith
Eric Smith added the comment: I can duplicate this as a segmentation fault under 2.7 on Mac OS, but not under Windows 2.6 (ActiveState). What platform are you using, and what output do you see? -- nosy: +eric.smith ___ Python tracker

[issue9212] dict_keys purports to implement the Set ABC, but is missing the isdisjoint method

2010-09-02 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Also, credited Daniel Urban for the patch in r84436 (forgot that the first time around -- sorry!). -- ___ Python tracker ___

[issue9212] dict_keys purports to implement the Set ABC, but is missing the isdisjoint method

2010-09-02 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Meant to add: I made some relatively minor changes to Daniel Urban's patch. Mostly, I rearranged the order of a few things to avoid unnecessary work (e.g., only compute "len_other" if we've already checked that "other" is a set). Thank you Daniel for the

[issue9212] dict_keys purports to implement the Set ABC, but is missing the isdisjoint method

2010-09-02 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Committed to py3k in r84435. Raymond, do you want to look the commit over before I merge it into 3.1 and 2.7? -- ___ Python tracker ___

[issue9042] Gettext cache and classes

2010-09-02 Thread v_peter
v_peter added the comment: Here's a second patch with key = (class_, os.path.abspath(mofile))) -- Added file: http://bugs.python.org/file18713/class_cache2.diff ___ Python tracker

[issue7077] SysLogHandler can't handle Unicode

2010-09-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue7077] SysLogHandler can't handle Unicode

2010-09-02 Thread Remi Broemeling
Remi Broemeling added the comment: I was encountering the logging.handlers.SysLogHandler bug described by Georg Brandl yesterday/today -- it took quite a while to track down the issue as I assumed it would be in either my code or possibly the framework code (Django). I didn't take into accou

[issue9744] calling __getattribute__ with wrong instance causes hang up

2010-09-02 Thread Lily
Changes by Lily <2ch.ow...@gmail.com>: -- versions: +Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9744] calling __getattribute__ with wrong instance causes hang up

2010-09-02 Thread Lily
New submission from Lily <2ch.ow...@gmail.com>: Look for example file. Current behaviour: one file is started, A.__getattribute__ will be called repeatedly. Entire application will not react on KeyboardInterrupt. Expected behaviour: exception to be raised "TypeError: unbound method __getattri

[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-02 Thread Lily
New submission from Lily <2ch.ow...@gmail.com>: Recursively getting __call__ method from existing __call__ causes interpreter infinitely grow in memory and calling resulting __call__.__call__...__call__.__call__() chain results in crash. Platform: Windows 7 (x64) Version: Python 2.7 (r27:82525

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-09-02 Thread Misael Henriquez
New submission from Misael Henriquez : building 'math' extension$ gcc -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/src/python/Python-2.7/Include -I/usr/local/src/python/Python-2.7 -c /usr/local/src/pytho

[issue9741] msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary

2010-09-02 Thread Timothy Lee
New submission from Timothy Lee : This bug can potentially lead to generation of invalid mo files when msgfmt.make() is invoked more than once. The bug has always been present in the source code. The included patch should be applied to all maintained branches. -- components: Demos an

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-02 Thread Sébastien Sablé
Sébastien Sablé added the comment: Hi, Here is a patch that solves this problem. It was tested with Python 2.6.6 on AIX 6.1. The same problem applies to Python 2.7 and 3.x, but since the syntax has been changed in configure.in for Python 2.7 and 3.x, I need to adapt a little bit my patch (c

[issue5109] array.array constructor very slow when passed an array object.

2010-09-02 Thread Meador Inge
Meador Inge added the comment: Overall, this patch look reasonable. I tested on py3k and the the tests pass. I also did a few micro-benchmarks to verify the speedup. One question I do have, though, is whether the 'len' calculation modifications are necessary? This looks like an attempt t

[issue941346] AIX shared library fix

2010-09-02 Thread Sébastien Sablé
Sébastien Sablé added the comment: Le 01/09/2010 00:16, Antoine Pitrou a écrit : > In dynamic builds, there seem to be lots of messages such as: > > ld: 0711-224 WARNING: Duplicate symbol: .PyLong_FromString > ld: 0711-224 WARNING: Duplicate symbol: PyLong_FromString > > Are you sure this is nor

[issue9042] Gettext cache and classes

2010-09-02 Thread Éric Araujo
Éric Araujo added the comment: This would avoid the issue with different classes having the same name, but otherwise would not make that much of a difference. -- ___ Python tracker

[issue9042] Gettext cache and classes

2010-09-02 Thread Robert Lehmann
Robert Lehmann added the comment: Wouldn't constructing the key as a tuple of (class_, mofile) be much cleaner than making up an artificial key? -- nosy: +lehmannro ___ Python tracker _

[issue1673007] urllib2 requests history + HEAD support

2010-09-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: New features can only go in 3.2. From a quick look, the patch looks ok. -- nosy: +pitrou versions: -Python 2.7, Python 3.1 ___ Python tracker __

[issue7796] No way to find out if an object is an instance of a namedtuple

2010-09-02 Thread Éric Araujo
Éric Araujo added the comment: To make sure I understand: StructSeq is the C-pendent of named tuples, and a NamedTuple ABC would have to work with StructSeqs too? -- ___ Python tracker

[issue1673007] urllib2 requests history + HEAD support

2010-09-02 Thread Éric Araujo
Éric Araujo added the comment: Only stable (2.7 and 3.1) and development versions (3.2) get bug fixes. -- ___ Python tracker ___ __

[issue9740] Support for HTTP 1.1 persistent connections throughout the standard library

2010-09-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Do you think you could provide a patch? -- nosy: +orsenthil, pitrou stage: -> needs patch versions: -Python 3.3 ___ Python tracker ___ ___

[issue9740] Support for HTTP 1.1 persistent connections throughout the standard library

2010-09-02 Thread ipatrol
ipatrol added the comment: No, httplib actually creates a second connection with the same object. Neither is their support in urllib, urllib2, nor in any of the HTTP servers. This would be really useful for a bot connected to an API. -- resolution: works for me -> status: pending ->

[issue9740] Support for HTTP 1.1 persistent connections throughout the standard library

2010-09-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: It seems that httplib is exactly what you need: http://docs.python.org/library/httplib.html#examples -- nosy: +amaury.forgeotdarc resolution: -> works for me status: open -> pending ___ Python tracker

[issue1673007] urllib2 requests history + HEAD support

2010-09-02 Thread ipatrol
ipatrol added the comment: Can this be somehow implemented as a bugfix patch as well on other versions? -- nosy: +ipatrol versions: +Python 2.7, Python 3.1 ___ Python tracker

[issue9740] Support for HTTP 1.1 persistent connections throughout the standard library

2010-09-02 Thread ipatrol
New submission from ipatrol : HTTP 1.1 introduced persistent connections nearly six years ago. Yet this resource saving and speed improving option is not available in the standard library. Can this be added? -- components: Library (Lib) messages: 115365 nosy: ipatrol priority: normal s

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2010-09-02 Thread Mitar
Mitar added the comment: GHC Haskell compiler is currently opting for a different solution: installing an default empty handler which is cleared by exec automatically and signal handler is restored back to SIG_DFL: http://hackage.haskell.org/trac/ghc/ticket/4274 -- nosy: +mitar

[issue8743] set() operators don't work with collections.Set instances

2010-09-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Rough cut at a first patch is attached. Still thinking about whether Set operations should be accepting any iterable or whether they should be tightened to expect other Set instances. The API for set() came from set.py which was broadly discussed and wide

[issue2459] speedup for / while / if with better bytecode

2010-09-02 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue7141] 2to3 should add from __future__ import print_statement

2010-09-02 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > it's not really the point of 2to3 to port apps to 2.6. +1 -- nosy: +giampaolo.rodola ___ Python tracker ___ __

[issue9739] Output of help(...) is wider than 80 characters

2010-09-02 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/