[issue14516] test_tools assumes BUILDDIR=SRCDIR

2012-12-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: Test_tools passes for me with the tip of the default branch and BUILDDIR!=SRCDIR. I'm currently running a 2.7 test run, but AFAIK this issue is fixed. -- ___ Python tracker

[issue7320] Unable to load external modules on build slave with debug python

2012-12-30 Thread Brian Curtin
Changes by Brian Curtin : -- resolution: -> out of date stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker ___ ___

[issue16821] bundlebuilder broken in 2.7

2012-12-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: BTW. bundlebuilder is deprecated and is no longer present in py3k. Also: IDLE.app for python 2.7 is build using bundlebuilder, and that app works just fine. -- ___ Python tracker

[issue16821] bundlebuilder broken in 2.7

2012-12-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: It would be nice to have a simple self-contained example, especially one that could be converted to a testcase later on. Using the pysvn workbench should be good enough to find the problem though (assuming it is open source). Is there a download URL for this

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2012-12-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: The logical location for installing and embedded Tcl/Tk is either in {sys.prefix}/lib (for a unix install of Tk) or in Python.framework/Versions/X.Y/Frameworks (for a Tcl/Tk framework install). In either case Tcl/Tk would be installed *inside* Python.framewor

[issue16801] Preserve original representation for integers / floats in docstrings

2012-12-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: 20+ years of Python success suggest this isn't a problem that needs solving. AFAICT, other languages haven't found a need to preserve number representation either. Likewise, Linux itself doesn't preserve the original form of a chmod call. I recommend clo

[issue16659] Pure Python implementation of random

2012-12-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Brett, if all the other Python implementations already have a working implementation of random, what purpose is served by adding a pure python version of the Mersenne Twister than won't be run by anyone? -- ___ P

[issue2405] Drop w9xpopen and all dependencies

2012-12-30 Thread Brian Curtin
Brian Curtin added the comment: This was fixed in #14470. -- nosy: +brian.curtin resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Remove using of w9xopen in subprocess module ___ Python tracker

[issue7735] socket.create_connection() creates IPv6 DNS requests even when built with --disable-ipv6

2012-12-30 Thread Daniel Shahaf
Daniel Shahaf added the comment: Victor, thanks for the summary. I view things a little differently, so I'll offer my POV: 1. The OPs (Evan and Ralf) build with --disable-ipv6. 2. --disable-ipv6 disables support for IPv6 sockets. (as per Martin, and AFAIK as per the common meaning of that fl

[issue16823] Python crashes on running tkinter code with threads

2012-12-30 Thread Sarbjit singh
New submission from Sarbjit singh: I have written a python tkinter code using threads so as the tkinter wizard updates automatically by tkinter mainloop running in the main thread and background process running in separate thread. But I noticed, that python crashes after some time when running

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-30 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for your report, Wolfgang. The `clean()` method is now fixed. The `update()` situation is more complicated, however. The mapping protocol defines that mapping.update({'a': 'b', 'c': 'd'}) and mapping.update(a='b', c='d') are equivalent to m

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc5adc08f1a8 by Łukasz Langa in branch '3.2': Fixes `parser.clean()` reported in issue #16820. http://hg.python.org/cpython/rev/dc5adc08f1a8 New changeset 4fc2fea807e6 by Łukasz Langa in branch '3.3': Merged `parser.clean()` fix (issue #16820) from

[issue12004] PyZipFile.writepy gives internal error on syntax errors

2012-12-30 Thread Ben Morgan
Ben Morgan added the comment: Okay, I've emailed a contributor agreement. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16320] Establish order in bytes/string dependencies

2012-12-30 Thread Meador Inge
Meador Inge added the comment: Sorry, the BYTESTR_DEPS dependencies were already there pre-8beaa9a37387. I am still curious why they are needed. -- ___ Python tracker ___ _

[issue16320] Establish order in bytes/string dependencies

2012-12-30 Thread Meador Inge
Meador Inge added the comment: The cleanup of BYTESTR_DEPS and UNICODE_DEPS seems reasonable, but can you explain the rationale behind removing the additional dependencies on formatter_unicode.c? Why were those dependencies ever needed (I can't see the dependencies from reading formatter_unic

[issue15803] Incorrect docstring on ConfigParser.items()

2012-12-30 Thread Łukasz Langa
Changes by Łukasz Langa : -- resolution: -> fixed stage: patch review -> committed/rejected ___ Python tracker ___ ___ Python-bugs-li

[issue15803] Incorrect docstring on ConfigParser.items()

2012-12-30 Thread Łukasz Langa
Łukasz Langa added the comment: Patch committed. Thanks for your report, Nathan. -- status: open -> closed ___ Python tracker ___ ___

[issue15803] Incorrect docstring on ConfigParser.items()

2012-12-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 850503a117a9 by Łukasz Langa in branch '3.2': Fixes issue #15803: incorrect `ConfigParser.items()` docstring http://hg.python.org/cpython/rev/850503a117a9 New changeset cc277b25eae7 by Łukasz Langa in branch '3.3': Merged fix for #15803 from 3.2 htt

[issue7735] socket.create_connection() creates IPv6 DNS requests even when built with --disable-ipv6

2012-12-30 Thread Daniel Shahaf
Changes by Daniel Shahaf : -- title: python creates IPv6 DNS requests even when built with --disable-ipv6 -> socket.create_connection() creates IPv6 DNS requests even when built with --disable-ipv6 ___ Python tracker

[issue16802] fileno argument to socket.socket() undocumented

2012-12-30 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16801] Preserve original representation for integers / floats in docstrings

2012-12-30 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-12-30 Thread STINNER Victor
STINNER Victor added the comment: I spoke with schmir on IRC about this issue because he considers the request as valid, and he doesn't understand why the issue was closed with "wont fix". -- schmir use case: - a network where IPv6 doesn't work (for an unknown reason) - a Linux system with

[issue16747] Remove 'file' type reference from 'iterable' glossary entry

2012-12-30 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13951] Document that Seg Fault in .so called by ctypes causes the interpreter to Seg Fault

2012-12-30 Thread Meador Inge
Meador Inge added the comment: Georg's proposal seems reasonable to me sans one very minor nit. I think the e.g. bit is better off parenthesized: There are, however, enough ways to crash Python with :mod:`ctypes`, so you -should be careful anyway. +should be careful anyway. The :mod:`faultha

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2012-12-30 Thread Daniel Shahaf
Daniel Shahaf added the comment: BTW, maybe I'm just confused, but I'm a little surprised that C pickling -> Python unpickling works: the C __reduce__ returns a 3-element tuple, which according to pickle docs[1] must either be a dictionary or be passed to __setstate__; it's not a dictionary an

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-30 Thread Łukasz Langa
Changes by Łukasz Langa : -- assignee: -> lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue3871] cross and native build of python for mingw* hosts

2012-12-30 Thread Roumen Petrov
Roumen Petrov added the comment: Jason Huntley wrote: > Jason Huntley added the comment: > > Finally! I was able to get all building on mingw64, gcc 4.7.2, and python > 3.3. I had to take everybody's work here a little further, and I have > produced a new patch which will build python33 using t

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2012-12-30 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: -serwy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue1653416] OS X print >> f, "Hello" produces no error on read-only f: normal?

2012-12-30 Thread Ned Deily
Ned Deily added the comment: An update: the problem with OS X behavior appears to have been fixed between OS X 10.6 and 10.7. As of 10.7, print to a read-only file also fails as on linux: >>> print >> f, "Hi" Traceback (most recent call last): File "", line 1, in IOError: [Errno 9] Bad file

[issue16783] sqlite3 accepts strings it cannot (by default) return

2012-12-30 Thread William D. Colburn
William D. Colburn added the comment: What it should do is be consistent (predictable) in it's handling of input and output. If it accepts unicode and outputs unicode, then it should accept unicode and output unicode, not accept garbage and then barf. Valid data should be consistantly valid, an

[issue16689] stdout stderr redirection mess

2012-12-30 Thread Ralf Schmitt
Ralf Schmitt added the comment: flushing stdout may help before writing to stderr (or at least when writing a traceback). see http://utcc.utoronto.ca/~cks/space/blog/programming/HowToWriteToStderr for a discussion. I don't think it's unreasonable to implement that in python core. --

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2012-12-30 Thread Daniel Shahaf
Daniel Shahaf added the comment: Attached. Differences to previous version: - Avoid the test___all__ issue (#16817) by manipulating sys.modules directly - Support pickling interoperability between the C and Python implementations -- Added file: http://bugs.python.org/file28502/i16

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-12-30 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Updated patch including test fixes is in attachment. -- Added file: http://bugs.python.org/file28501/issue10527-3.patch ___ Python tracker __

[issue1674555] sys.path in tests contains system directories

2012-12-30 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9586] "warning: comparison between pointer and integer" in multiprocessing build on Tiger

2012-12-30 Thread Ned Deily
Changes by Ned Deily : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue12915] Add inspect.locate and inspect.resolve

2012-12-30 Thread Berker Peksag
Berker Peksag added the comment: Attaching new patch to address Vinay Sajip's suggestions on Rietveld. Thank you, Vinay. -- Added file: http://bugs.python.org/file28500/issue12915_v2.diff ___ Python tracker __

[issue14516] test_tools assumes BUILDDIR=SRCDIR

2012-12-30 Thread Roumen Petrov
Roumen Petrov added the comment: No - it is broken. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue16822] execv (et al.) should invoke atexit handlers before executing new code

2012-12-30 Thread Ned Batchelder
New submission from Ned Batchelder: If I register an atexit handler, and then call os.execv, the handler is not invoked before my process changes over to the new program. Shouldn't it be? My program is ending, so my atexit handlers should be invoked. This is based on this coverage.py bug:

[issue16821] bundlebuilder broken in 2.7

2012-12-30 Thread Barry Alan Scott
Barry Alan Scott added the comment: I'm using the pysvn workbench sources to find the problem. Test cases for Mac Apps are not that simple. You need a GUI framework for starters. But I'm happy to test any candidate fix using workbench. As I said a code inspection of the changes since 2.6 will

[issue16821] bundlebuilder broken in 2.7

2012-12-30 Thread Ned Deily
Ned Deily added the comment: Barry, can you provide a simple test case that demonstrates the failures you see? -- assignee: -> ronaldoussoren components: +Macintosh nosy: +ned.deily, ronaldoussoren stage: -> test needed type: performance -> behavior __

[issue16817] test___all__ affects other tests by doing too much importing

2012-12-30 Thread Eli Bendersky
Changes by Eli Bendersky : -- title: test___all__ has to save and restore sys.modules while it does all the importing -> test___all__ affects other tests by doing too much importing ___ Python tracker

[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

2012-12-30 Thread Eli Bendersky
Eli Bendersky added the comment: I'm renaming the issue to just mention the problem, not the initially proposed solution (following the python-dev discussion). -- ___ Python tracker ___

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2012-12-30 Thread Ed Campbell
Changes by Ed Campbell : -- nosy: +esc24 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2012-12-30 Thread Samuel John
Samuel John added the comment: Sounds reasonable, but please put the libs not in a place that might conflict with a Tk installed by other means (e.g. homebrew's Tk is a `/usr/local`). -- nosy: +samueljohn ___ Python tracker

[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

2012-12-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue7300] Unicode arguments in str.format()

2012-12-30 Thread Eric V. Smith
Eric V. Smith added the comment: I agree that we should close this as "won't fix" in 2.7. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue7300] Unicode arguments in str.format()

2012-12-30 Thread STINNER Victor
STINNER Victor added the comment: Another option is to decide that this issue will *not* be fixed in Python 2, and Python 3 *is* the good solution if you have this issue. Doing the work twice can cause new problems, formatting an argument twice may return two different values :-( It may have a

[issue16821] bundlebuilder broken in 2.7

2012-12-30 Thread Barry Alan Scott
New submission from Barry Alan Scott: bundlebuild in pytthon 2.7 fails to create usable applications. After examining the code there are a number of coding errors: 1. optimize will puts the -O in the wrong place in the argv 2. Modules.zip is never added to the path The bunderbuilder in 2.6 can

[issue16061] performance regression in string replace for 3.3

2012-12-30 Thread STINNER Victor
STINNER Victor added the comment: str_replace_1char.patch: why not implementing replace_1char_inplace() in stringlib, with one version per character type (UCS1, UCS2, UCS4)? I prefer unicode_2.patch algorithm because it's simpler: only one loop (vs two loops for str_replace_1char.patch, with a

[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2012-12-30 Thread Carsten Klein
Carsten Klein added the comment: I have created a patch for Python 2.7.3 that fixes the issue for that release, too. -- Added file: http://bugs.python.org/file28499/python2.7.3.diff ___ Python tracker

[issue6975] symlinks incorrectly resolved on Linux

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Antoine, how about this mosquito? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue16061] performance regression in string replace for 3.3

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > As __ap__ says, it would be nice to have a comment. Oh, I thought I had already done this. -- ___ Python tracker ___ __

[issue14373] C implementation of functools.lru_cache

2012-12-30 Thread Alexey Kachayev
Alexey Kachayev added the comment: Updated diff with: * fix object leaks * tp_clear * additional test for maxsize < 0 I also reimplemented multithreading test (fixed error and added skip rule). But actually, I'm not sure that it's enough for ensuring thread-safety of clear operation. I'm wo

[issue11344] Add os.path.splitpath(path) function

2012-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Please review. This function is very important for many applications > (and it hard to get right). The pathlib module (PEP 428) has such functionality built-in. -- ___ Python tracker

[issue16061] performance regression in string replace for 3.3

2012-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: 64-bit windows results: 3.3 patched 925 (-90%) 97 1 'a' 'b' 'c' 881 (-54%) 4052 'a' 'b' 'c' 623 (-51%) 3083 'a' 'b' 'c' 482 (-48%) 2524 'a' 'b' 'c' 396 (-44%) 2235 'a' 'b' 'c' 344 (-40%) 2086 'a' 'b' 'c' 306 (-38%)

[issue11344] Add os.path.splitpath(path) function

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please review. This function is very important for many applications (and it hard to get right). -- ___ Python tracker ___ __

[issue16061] performance regression in string replace for 3.3

2012-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: 64-bit linux results: 3.2 3.3 patch 133 (-28%) 1343 (-93%) 96 1 'a' 'b' 'c' 414 (-9%)704 (-47%) 3752 'a' 'b' 'c' 319 (-8%)491 (-40%) 2933 'a' 'b' 'c' 253 (-7%)384 (-39%) 2354 'a' 'b' 'c' 216 (-8%)320 (-

[issue16061] performance regression in string replace for 3.3

2012-12-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: As __ap__ says, it would be nice to have a comment. -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue16773] int() half-accepts UserString

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is definitely non-trivial. 1-argument int() works with UserString because __int__() method is defined for UserString (as __float__(), as __complex__()). I.e. UserString looks as number-like for it. Unfortunately there is no way to make a class be string

[issue16061] performance regression in string replace for 3.3

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I going speed up other cases for replace(), but for now I have only this patch. Is it good? Should I apply it to 3.3 as there is a 3.3 regression? -- keywords: +3.3regression ___ Python tracker

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What variant of patches should I commit? Or prepare other? -- ___ Python tracker ___ ___ Python-bug

[issue8745] zipimport is a bit slow

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Catalin, are you going to continue? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue16379] SQLite error code not exposed to python

2012-12-30 Thread Daniel Shahaf
Daniel Shahaf added the comment: New patch fixing indentation of versionadded markup. -- Added file: http://bugs.python.org/file28497/i16379-v3.diff ___ Python tracker ___ __

[issue15861] ttk.Treeview "unmatched open brace in list"

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Have you reviewed the patch? Is it good? -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7300] Unicode arguments in str.format()

2012-12-30 Thread Ezio Melotti
Ezio Melotti added the comment: 2.6 only gets security fixes. > My patch converts the format string to unicode using the default > encoding. It's inconsistent with str%args: str%args converts str to > unicode using the ASCII charset (if a least one argument is an unicode > string), not the de

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-12-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue16379] SQLite error code not exposed to python

2012-12-30 Thread Daniel Shahaf
Daniel Shahaf added the comment: A couple of random eyebrow-raisers I noticed while working on v2: - sqlite3.Warning is a subclass of Exception, rather than sqlite3.Error or builtins.Warning. (Also, the docs say "will raise a Warning", intending to refer to sqlite3.Warning, but the lack of

[issue16379] SQLite error code not exposed to python

2012-12-30 Thread Daniel Shahaf
Daniel Shahaf added the comment: New patch, with better docs and less error leaks, per Ezio's review. -- Added file: http://bugs.python.org/file28496/i16379-v2.diff ___ Python tracker __

[issue7300] Unicode arguments in str.format()

2012-12-30 Thread Pedro Algarvio
Pedro Algarvio added the comment: This is not a 2.7 issue only: >>> import sys >>> sys.version_info (2, 6, 5, 'final', 0 >>> 'Foo {0}'.format(u'bár') Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 1: ordinal

[issue16645] Wrong test_extract_hardlink() in test_tarfile.py

2012-12-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue16645] Wrong test_extract_hardlink() in test_tarfile.py

2012-12-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 503b889668fc by Serhiy Storchaka in branch '2.7': Issue #16645: Fix hardlink extracting test for tarfile. http://hg.python.org/cpython/rev/503b889668fc New changeset d42bf4faf3d1 by Serhiy Storchaka in branch '3.2': Issue #16645: Fix hardlink extrac

[issue16804] python3 -S -m site fails

2012-12-30 Thread Meador Inge
Meador Inge added the comment: Whoops, the 'quit' case is actually intended and is documented (http://docs.python.org/3.4/library/site.html): """ or additions to the builtins. To explicitly trigger the usual site-specific additions, call the site.main() function. """ I think the right way to

[issue16773] int() half-accepts UserString

2012-12-30 Thread Ezio Melotti
Ezio Melotti added the comment: Not sure this is worth fixing, unless the fix is trivial. -- ___ Python tracker ___ ___ Python-bugs-li

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-30 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue16645] Wrong test_extract_hardlink() in test_tarfile.py

2012-12-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- Removed message: http://bugs.python.org/msg178416 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue16645] Wrong test_extract_hardlink() in test_tarfile.py

2012-12-30 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue2350] 'exceptions' import fixer

2012-12-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is something people can easily convert in there 2.x code, so I don't think the need for it is great. -- assignee: collinwinter -> ___ Python tracker __

[issue2350] 'exceptions' import fixer

2012-12-30 Thread Berker Peksag
Berker Peksag added the comment: I've converted Benjamin's patch to extended diff format, fixed some PEP 8 violations and typos, removed the {get, set}_prefix usage, added more tests and updated the documentation. -- nosy: +berker.peksag Added file: http://bugs.python.org/file28494/issue

[issue16741] `int()`, `float()`, etc think python strings are null-terminated

2012-12-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue14373] C implementation of functools.lru_cache

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Alexey, as I see, you have missed some Antoine's comments (and my comments about whitespaces). Please, be more careful. -- ___ Python tracker ___

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-30 Thread Wolfgang Scherer
New submission from Wolfgang Scherer: configparser.ConfigParser.clean() always fails: >>> cfg = configparser.ConfigParser() >>> if not hasattr(configparser.ConfigParser, 'clear'): ... configparser.ConfigParser.clear = configparser_clear_compat >>> cfg.clear() #doctest: +ELLIP

[issue16741] `int()`, `float()`, etc think python strings are null-terminated

2012-12-30 Thread Matthew Barnett
Matthew Barnett added the comment: I've attached a small additional patch for truncating the UTF-8. I don't know whether it's strictly necessary, but I don't know that it's unnecessary either! (Better safe than sorry.) -- Added file: http://bugs.python.org/file28492/issue16741#2.patch

[issue15083] Rewrite ElementTree tests in a cleaner and safer way

2012-12-30 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16783] sqlite3 accepts strings it cannot (by default) return

2012-12-30 Thread Ezio Melotti
Ezio Melotti added the comment: > Treating invalid data as sometimes valid and sometime as invalid is a > problem. What is valid is defined by your application. AFAIU sqlite3 defaults to utf-8, but it's able to work with latin1 data as well. The fact that you are mixing utf-8 and latin1 is

[issue16804] python3 -S -m site fails

2012-12-30 Thread Meador Inge
Meador Inge added the comment: Yeah, it is a result of the fix for issue11591 (changeset a364719e400a). Incidentally, the decision was made to forgo writing a testcase in favor of proof by inspection :-) There are also other consequences of that change: ./python.exe -S Python 3.4.0a0 (

[issue6010] unable to retrieve latin-1 encoded data from sqlite3

2012-12-30 Thread Ezio Melotti
Ezio Melotti added the comment: While trying to reproduce the issue I noticed this while inserting values: import sqlite3 db = sqlite3.connect(':memory:') cur = db.cursor() cur.execute("create table foo (x)") # this works fine cur.execute(u"insert into foo values ('café')".encode('latin1')) # th

[issue16819] IDLE b"" method completion incorrect

2012-12-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file28491/idle_bytes_completion.patch ___ Python tracker ___

[issue16819] IDLE b"" method completion incorrect

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which fixes this issue. It is applicable for all version, except "uU" can be removed from string of string prefix characters in 3.2. -- nosy: +kbk stage: -> patch review ___ Python tracker

[issue15948] Unchecked return value of I/O functions

2012-12-30 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue16814] use --directory option of make in describing how to build the docs

2012-12-30 Thread Ezio Melotti
Ezio Melotti added the comment: FWIW even if I heard about the one-liner a few times already I can't really seem to remember it, and prefer to do "cd Doc" anyway. Using "cd Doc" also makes all the subsequent commands shorter (e.g. opening files, running other make targets). The patch proposed

[issue16819] IDLE b"" method completion incorrect

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Same for u'' on 2.7. Completion list doesn't contain "isdecimal" and "isnumeric". -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python track

[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

2012-12-30 Thread R. David Murray
R. David Murray added the comment: It would help because import_fresh_module would have updated sys.modules to be the module under test, and would not restore the previously existing entry in sys.modules until after your test had completed. -- ___ P

[issue16672] improve tracing performances when f_trace is NULL

2012-12-30 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2012-12-30 Thread Eli Bendersky
Eli Bendersky added the comment: I've added some (currently pyET specific) pickling tests. Daniel, could you re-generate the patch? Note that for the C version of pickling you can now enable the pickle test. Point to consider - can elements pickled in C be unpickled in Python and vice versa? I

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2012-12-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71508fc738bb by Eli Bendersky in branch '3.3': For Issue #16076: make sure that pickling of Element objects is tested, and do http://hg.python.org/cpython/rev/71508fc738bb New changeset 5a38f4d7833c by Eli Bendersky in branch 'default': For issue #1

[issue15948] Unchecked return value of I/O functions

2012-12-30 Thread Marek Šuppa
Marek Šuppa added the comment: Any update on this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

2012-12-30 Thread Eli Bendersky
Eli Bendersky added the comment: David, how would this help pickle not find _elementtree though? It's already in sys.modules *before* fresh_import is used, because test___all__ put it there. I'm experimenting with just deleting _elementtree from sys.modules before running the tests, so far wit

[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

2012-12-30 Thread Eli Bendersky
Changes by Eli Bendersky : -- Removed message: http://bugs.python.org/msg178576 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

2012-12-30 Thread Eli Bendersky
Eli Bendersky added the comment: David, how would this help pickle not find _elementtree though? It's already in sys.modules *before* fresh_import is used, because test___all__ put it there. I'm experimenting with just deleting _elementtree from sys.modules before running the tests, so far wit

[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

2012-12-30 Thread R. David Murray
R. David Murray added the comment: Hmm. What if we made import_fresh_module a context manager, so that the restore of the original module in sys.modules only happened at the end of the context? -- ___ Python tracker

  1   2   >