[issue13754] str.ljust and str.rjust do not exactly describes original string return

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The short doc strings do not mention the issue either way. I think it ok to leave them as they are. While the claim is how the functions *should* operate, I verified that it is how they *do* operate in all three branches. -- assignee:

[issue13753] str.join description contains an incorrect reference to argument

2012-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: docs@python - terry.reedy keywords: +easy, patch nosy: +terry.reedy versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13753

[issue13748] Allow rb literals as an equivalent to br

2012-01-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: +1 for raw bytes, which reads much nicer to me than bytes raw. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13748 ___

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2012-01-11 Thread Faheem Mitha
Faheem Mitha fah...@faheem.info added the comment: What is the status on this? It contains to be an issue. See http://bugs.python.org/issue13751 and http://bugs.python.org/issue13760 -- nosy: +fmitha ___ Python tracker rep...@bugs.python.org

[issue13753] str.join description contains an incorrect reference to argument

2012-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13753 ___ ___ Python-bugs-list

[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2012-01-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Can you give the exact steps of what you did to demonstrate the problem? Also, there are two OS X installers for Python 3.2.2. Which one did you install? (The two lines of version information when starting Python is enough to identify which one it

[issue13752] add a unicode.casefold() method

2012-01-11 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- stage: - needs patch title: add a casefold() method - add a unicode.casefold() method ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13752 ___

[issue13761] Add flush keyword to print()

2012-01-11 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: Add a flush keyword argument to print(), defaulting to False. If true, output will be flushed immediately. See http://mail.python.org/pipermail/python-ideas/2012-January/013340.html -- assignee: georg.brandl components: Interpreter

[issue13754] str.ljust and str.rjust do not exactly describes original string return

2012-01-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3aed8787ce5c by Terry Jan Reedy in branch '2.7': Closes #13754 String returned if less than *or equal to* x 3 http://hg.python.org/cpython/rev/3aed8787ce5c New changeset 3f2e5fd17b76 by Terry Jan Reedy in branch

[issue13753] str.join description contains an incorrect reference to argument

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: See #13754 for commits (not here because 'close' != 'closes' or closed') -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13753

[issue13761] Add flush keyword to print()

2012-01-11 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13761 ___ ___

[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2012-01-11 Thread Atsushi Shibata
Atsushi Shibata shib...@webcore.co.jp added the comment: The procedure is following. 1. type python in the terminal.app to launch interactive mode. 2. type 'あ' in it. And I use Mac OS X 64-bit/32-bit Installer (3.2.2) for Mac OS X 10.6 and 10.7. Here is the first 2 lines of initial message.

[issue4630] IDLE no longer respects .Xdefaults insertOffTime

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The idea and design look good to me. I will test on Windows when I am able to do so in development builds (unless someone beats me ;-). -- nosy: +terry.reedy versions: +Python 2.7, Python 3.3 ___

[issue4630] IDLE: add cursor noblink option

2012-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: IDLE no longer respects .Xdefaults insertOffTime - IDLE: add cursor noblink option ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4630

[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2012-01-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I am not familiar with the Japanese input methods available in OS X. But using copy and paste with an US UTF-8 locale, it seems to work. Perhaps there is a different locale in effect? Python 3.2.2 (v3.2.2:137e45f15c0b, Sep 3 2011, 17:28:59) [GCC

[issue13703] Hash collision security issue

2012-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: Patch version 5 fixes test_unicode for 64-bit system. Victor, I don't think the randomization idea is going anywhere. The code has many issues: * it is exceedingly complex * the method would need to be implemented

[issue13472] devguide doesn’t list all build dependencies

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13472 ___ ___

[issue13440] Explain the status quo wins a stalemate principle in the devguide

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13440 ___ ___

[issue12907] Update test coverage devguide page

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12907 ___ ___

[issue13703] Hash collision security issue

2012-01-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment:  * it is exceedingly complex Which part exactly? For hash(str), it just add two extra XOR.  * the method would need to be implemented for all hashable Python types It was already discussed, and it was said that only hash(str)

[issue12296] Minor clarification in devguide

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12296 ___ ___

[issue13762] missing section: how to contribute to devguide

2012-01-11 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: I struggled to find how to contribute to the devguide. I even struggled to find where the VCS is. I think it would be kool if there was a section for this info (it's not always fun to search the intertubes). -- components:

[issue13124] Add Running a Build Slave page to the devguide

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13124 ___ ___

[issue12409] Moving Documenting Python to Devguide

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12409 ___ ___

[issue13275] Recommend xml.etree for XML processing

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13275 ___ ___

[issue13275] Recommend xml.etree for XML processing

2012-01-11 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: @Araujo bit offtopic, but which XML library have you found most elegant? Is it available in the stdlib? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13275

[issue13763] rm obsolete reference in devguide

2012-01-11 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: this line: commonly abbreviated svn, after the program name was once changed to: commonly abbreviated hg, after the program name and it no longer makes sense -- components: Devguide files: rm-obsolete-reference.patch

[issue13764] Misc/build.sh is outdated... talks about svn

2012-01-11 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: I am wondering what else is outdated in that file. Is it still useful? -- components: Build messages: 151052 nosy: tshepang priority: normal severity: normal status: open title: Misc/build.sh is outdated... talks about svn

[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2012-01-11 Thread Atsushi Shibata
Atsushi Shibata shib...@webcore.co.jp added the comment: Thank you for testing on your environment :-). I'll make sure the difference that caused the issue. I changed the status to pending. I'll come back to this issue when I find the crue. Thanks anyway ! -- status: open - pending

[issue13765] Distutils does not put quotes around paths that contain spaces when compiling with MSVC

2012-01-11 Thread Almar Klein
New submission from Almar Klein almar.kl...@gmail.com: I found an easy to solve bug in distutils, which is causing problems with compiling Cython code on Windows. I have reproduced this on Python 2.6 and Python 3.2 (32 bit). The problem occurs with the native msvc compiler. Using gcc (MinGW)

[issue13766] explain the relationship between Lib/lib2to3/Grammar.txt and Grammar/Grammar

2012-01-11 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: Lib/lib2to3/Grammar.txt seems like a modified copy of Grammar/Grammar. Can you state so somewhere, maybe in the beginning of Lib/lib2to3/Grammar.txt (the Note section). One problem with the way it is now, is that there are changes

[issue13762] missing section: how to contribute to devguide

2012-01-11 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hello Tshepang, The current section is at: http://docs.python.org/devguide/docquality.html#helping-with-the-developer-s-guide reachable from the mainpage looking for helping with documentation. it may be a little to condense but it is a

[issue13762] missing section: how to contribute to devguide

2012-01-11 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: I guess I should have looked more carefully. Thanks and sorry for the noise. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13762

[issue2175] Expat sax parser silently ignores the InputSource protocol

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2175 ___ ___ Python-bugs-list

[issue12779] Update packaging documentation

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12779 ___ ___

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2012-01-11 Thread Floris Bruynooghe
Changes by Floris Bruynooghe floris.bruynoo...@gmail.com: -- nosy: +flub ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1975 ___ ___

[issue13767] Would be nice to have a future import that turned off old except style

2012-01-11 Thread Zaheer Merali
New submission from Zaheer Merali zaheermer...@gmail.com: It would be nice to have a future import to be able to prevent people in code doing: try: except Exception, e: and make people do: try: except Exception as e: -- components: Interpreter

[issue13762] missing section: how to contribute to devguide

2012-01-11 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- resolution: - invalid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13762 ___ ___

[issue13767] Would be nice to have a future import that turned off old except style

2012-01-11 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: If you run python with the -3 flag you should get a warning about that. If you combine it with -We you should be able to get an error instead of a warning. Note however that both the flags are not specific for the except but also

[issue13767] Would be nice to have a future import that turned off old except style

2012-01-11 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Unfortunately, that would be a new feature, so it is not acceptable to Python 2.7. -- nosy: +benjamin.peterson resolution: - rejected status: open - closed ___ Python tracker

[issue13703] Hash collision security issue

2012-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: * it is exceedingly complex Which part exactly? For hash(str), it just add two extra XOR. I'm not talking specifically about your patch, but the

[issue13703] Hash collision security issue

2012-01-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: OTOH, the collision counting patch is very simple, doesn't have the performance issues and provides real protection against the attack. I don't know about real protection: you can still slow down dict construction by 1000x (the number of

[issue13703] Hash collision security issue

2012-01-11 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: * the method would need to be implemented for all hashable Python types It was already discussed, and it was said that only hash(str) need to be modified. Really ? What about the much simpler attack on integer hash values ? You only have

[issue13768] Doc/tools/dailybuild.py available only on 2.7 branch

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: tshepang priority: normal severity: normal status: open title: Doc/tools/dailybuild.py available only on 2.7 branch versions: Python 2.6, Python 3.1, Python 3.2, Python 3.3 ___ Python

[issue13703] Hash collision security issue

2012-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Mark Shannon wrote: Mark Shannon m...@hotpy.org added the comment: * the method would need to be implemented for all hashable Python types It was already discussed, and it was said that only hash(str) need to be modified. Really ?

[issue13703] Hash collision security issue

2012-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: OTOH, the collision counting patch is very simple, doesn't have the performance issues and provides real protection against the attack. I don't know about real

[issue13769] json.dump(ensure_ascii=False) return str instead of unicode

2012-01-11 Thread Марк Коренберг
New submission from Марк Коренберг socketp...@gmail.com: $ ipython In [1]: type(json.dumps({'a':'b'}, ensure_ascii=False)) Out[1]: type 'str' In [2]: type(json.dumps({'a':u'b'}, ensure_ascii=False)) Out[2]: type 'unicode' --- Documentation: If ensure_ascii is False, then the

[issue13770] python3 json: add ensure_ascii documentation

2012-01-11 Thread Марк Коренберг
New submission from Марк Коренберг socketp...@gmail.com: Please fix documentation about ensure_ascii. Does it have any meaning in python3? -- assignee: docs@python components: Documentation messages: 151067 nosy: docs@python, mmarkk priority: normal severity: normal status: open title:

[issue13770] python3 json: add ensure_ascii documentation

2012-01-11 Thread Марк Коренберг
Changes by Марк Коренберг socketp...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13770 ___ ___

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2012-01-11 Thread Tal Einat
Tal Einat talei...@gmail.com added the comment: I'd just like to weigh in and say that this is a major issue for me at the moment. Not being able to indiscriminately pickle/unpickle exceptions is making my parallel-processing work very painful, because of problematic stdlib exceptions. I'm

[issue13703] Hash collision security issue

2012-01-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: On my slow dev machine 1000 collisions run in around 22ms: python2.7 -m timeit -n 100 dict((x*(2**64 - 1), 1) for x in xrange(1, 1000)) 100 loops, best of 3: 22.4 msec per loop Using this for a DOS attack would be rather noisy, much unlike

[issue13703] Hash collision security issue

2012-01-11 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: [Antoine] Also, how about false positives? Having legitimate programs break because of legitimate data would be a disaster. This worries me, too. [MAL] Yes, which is why the patch should be disabled by default (using an env var) in

[issue13703] Hash collision security issue

2012-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Mark Dickinson wrote: Mark Dickinson dicki...@gmail.com added the comment: [Antoine] Also, how about false positives? Having legitimate programs break because of legitimate data would be a disaster. This worries me, too. [MAL]

[issue13771] HTTPSConnection __init__ super implementation causes recursion error

2012-01-11 Thread Michael Mulich
New submission from Michael Mulich michael.mul...@gmail.com: While working on porting wsgi_intercept to Python 3 I came across a recursion issue with http.client.HTTPSConnection. The following is an lesser extraction of the traceback: Traceback (most recent call last): File

[issue13771] HTTPSConnection __init__ super implementation causes recursion error

2012-01-11 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Library (Lib) -None nosy: +orsenthil versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13771 ___

[issue13703] Hash collision security issue

2012-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: On my slow dev machine 1000 collisions run in around 22ms: python2.7 -m timeit -n 100 dict((x*(2**64 - 1), 1) for x in xrange(1, 1000)) 100 loops, best of 3:

[issue13703] Hash collision security issue

2012-01-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: [MAL] Yes, which is why the patch should be disabled by default (using an env var) in dot-releases. Are you proposing having it enabled by default in Python 3.3? I would personally prefer 3.3 and even 3.2 to have proper randomization

[issue13761] Add flush keyword to print()

2012-01-11 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: In the python-ideas discussion people have argued that flush=False should or could be interpreted as definitely do not flush which is unimplementable (the buffer may be full, or the stream may be unbuffered, and there is no way to tell a

[issue13758] compile() should not encode 'filename' (at least on Windows)

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: My supposition that compile() rejects some real file names appears correct: from python-list ME: Is this a filename that could be an actual, valid filename on your system? OP: Yes it is. open works on that file. --

[issue13734] Add a generic directory walker method to avoid symlink attacks

2012-01-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Here's an updated version. Note that I'm not pushing towards changing the current behavior pertaining to symlinks to directories, because if we change this, this will break code. For example to count the number of lines of all the

[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-01-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I noticed that if bind() fails (in this case with EADDRINUSE), the socket isn't closed (FD leak). Well it would probably be closed when the connection object is destroyed, but the patch looks ok anyway. --

[issue11633] Document that print may need explicit flushing

2012-01-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bc043cef94f2 by Terry Jan Reedy in branch '3.2': Closes #11633 Clarify print buffering. http://hg.python.org/cpython/rev/bc043cef94f2 New changeset fb0d61fd1753 by Terry Jan Reedy in branch 'default': Merge with 3.2

[issue11633] Document that print may need explicit flushing

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: #13761 proposes to add flush=False param with option for True. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___

[issue13769] json.dump(ensure_ascii=False) return str instead of unicode

2012-01-11 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13769 ___ ___

[issue13761] Add flush keyword to print()

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I added a couple of lines to the 3.2, 3.3 print doc in #11633. When a change is made here, they could be updated to something like: Output buffering is normally determined by *file*. Use flush=True to force immediate output to a device such as

[issue13761] Add flush keyword to print()

2012-01-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: There is a reason: we don't usually check the type of flag arguments; just their truth value is used. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13761

[issue13761] Add flush keyword to print()

2012-01-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Here is a patch. One open question is whether failure in flush() should be reraised (as implemented in the patch), or ignored (as in input()). -- keywords: +patch Added file: http://bugs.python.org/file24203/flush.patch

[issue11418] Method's global scope is module containing function definition, not class.

2012-01-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 10a5165103f9 by Terry Jan Reedy in branch '2.7': Minor correction. Closes #11418 http://hg.python.org/cpython/rev/10a5165103f9 New changeset 32ea3675fba2 by Terry Jan Reedy in branch '3.2': Minor correction. #11418

[issue12409] Moving Documenting Python to Devguide

2012-01-11 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hi, i'm at last back with some work to show; I've integrated all the Documenting python doc into devguide, and the commits are in this sandbox: http://hg.python.org/sandbox/morph-devguide/shortlog/a92d431ef749 (`documenting` branch). I

[issue13772] listdir() doesn't work with non-trivial symlinks

2012-01-11 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Note how _getfinalpathname works and calling listdir on the final path name also works: os.symlink(.\\test, Lib\\bar) os.listdir(Lib\\bar)[:4] Traceback (most recent call last): File stdin, line 1, in module NotADirectoryError: [Error 267]

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2012-01-11 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: New patch with title casing mappings added. -- Added file: http://bugs.python.org/file24204/full-casemapping.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12736

[issue13773] Support sqlite3 uri filenames

2012-01-11 Thread poq
New submission from poq p...@gmx.com: URIs are an extensible way to pass options to SQLite. See: http://www.sqlite.org/uri.html Patch adds a keyword argument uri to sqlite3.connect which causes the filename to be parsed as a URI if set to True. -- components: Extension Modules files:

[issue13773] Support sqlite3 uri filenames

2012-01-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Hi, I will let others discuss the feature itself, here are already some comments about your patch: - In module_connect(), the ability to pass factory as a positional argument is broken, please restore the previous code; I'm afraid

[issue13761] Add flush keyword to print()

2012-01-11 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I'd ignore the failure. It could easily mask some other more interesting error. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13761

[issue13703] Hash collision security issue

2012-01-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I must be missing something, but how is raising an exception when a collision threshold is reached a good thing? Basically, we're just exchanging a DoS for another (just feed the server process with ad-hoc data and he'll commit

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-01-11 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've found a bug in the curses module that is causing problems: diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -2056,7 +2056,8 @@ {encoding,

[issue13681] Aifc read compressed frames fix

2012-01-11 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hi Oleg, thanks for your interest in aifc module! I think that if the fix for audioop has a reason for itself to exists, then another issue (for that only) has to be filed and set the accordingly dependency on this one. -- nosy:

[issue13763] rm obsolete reference in devguide

2012-01-11 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: But we may explain what's behind: after the mercury chemical element symbol - what do you think? -- nosy: +sandro.tosi stage: - patch review ___ Python tracker rep...@bugs.python.org

[issue13763] rm obsolete reference in devguide

2012-01-11 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: If 'program' refers to the executable, the sentence is still valid. -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13763

[issue13773] Support sqlite3 uri filenames

2012-01-11 Thread poq
poq p...@gmx.com added the comment: Thanks for your comments. You're right, I didn't consider positional arguments. Here's a patch that addresses your comments. Should I also rewrap modified lines that were already much too long? I also noticed fixed an unrelated typo in

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2012-01-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f7e05d205a52 by Benjamin Peterson in branch 'default': use full unicode mappings for upper/lower/title case (#12736) http://hg.python.org/cpython/rev/f7e05d205a52 -- nosy: +python-dev

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2012-01-11 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12736 ___

[issue13761] Add flush keyword to print()

2012-01-11 Thread Cameron Simpson
Changes by Cameron Simpson c...@zip.com.au: -- nosy: +cameron ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13761 ___ ___ Python-bugs-list mailing

[issue13772] listdir() doesn't work with non-trivial symlinks

2012-01-11 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13772 ___ ___

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-01-11 Thread Nam Nguyen
Nam Nguyen bits...@gmail.com added the comment: Ronald's patch does fix the segmentation fault with clang-compiled Python. But this bug report seems to be about LLVM-GCC not compiling correctly. -- ___ Python tracker rep...@bugs.python.org

[issue13774] json.loads raises a SystemError for invalid encoding on 2.7.2

2012-01-11 Thread Julian Berman
New submission from Julian Berman julian+python@grayvines.com: import json json.loads({}, [1, 2, 3]) Traceback (most recent call last): File input, line 1, in module File /usr/local/Cellar/python/2.7.2/lib/python2.7/json/__init__.py, line 339, in loads return

[issue13775] Access Denied message on symlink creation misleading for an existing file/directory target.

2012-01-11 Thread Santoso Wijaya
New submission from Santoso Wijaya santoso.wij...@gmail.com: Consider: os.symlink('.\\test', 'Lib\\bar') Traceback (most recent call last): File stdin, line 1, in module WindowsError: [Error 5] Access is denied: '.\\test' Where Lib\\bar is previously created. The symlink creation is rightly

[issue13775] Access Denied message on symlink creation misleading for an existing file/directory target.

2012-01-11 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Simple patch. -- keywords: +patch Added file: http://bugs.python.org/file24208/issue13775_py33.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13775

[issue13772] listdir() doesn't work with non-trivial symlinks

2012-01-11 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: I think this is because Lib\\bar is NOT being created as a directory symlink, but rather as a regular one. As such, the documentation for symlink where it states the optional `target_is_directory=False` argument should be

[issue13761] Add flush keyword to print()

2012-01-11 Thread Cameron Simpson
Cameron Simpson c...@zip.com.au added the comment: I'm against ignoring a flush failure. What happened to errors should never pass silently? IMO, if we get as far as calling flush and having an exception occur, a more interesting error hasn't yet occurred. I really dislike things that fail

[issue13772] listdir() doesn't work with non-trivial symlinks

2012-01-11 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Confirmed (on latest py33 build): os.listdir('Lib\\bar')[:4] Traceback (most recent call last): File stdin, line 1, in module NotADirectoryError: [Error 267] The directory name is invalid: 'Lib\\bar\\*.*' [61658 refs] ... after

[issue11633] Document that print may need explicit flushing

2012-01-11 Thread Cameron Simpson
Changes by Cameron Simpson c...@zip.com.au: -- nosy: +cameron ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___ ___ Python-bugs-list mailing

[issue13772] listdir() doesn't work with non-trivial symlinks

2012-01-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think this is because Lib\\bar is NOT being created as a directory symlink, but rather as a regular one. Ha! I didn't even know about that option. Thanks for noticing. As such, the documentation for symlink where it states the optional

[issue13761] Add flush keyword to print()

2012-01-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think it should be re-raised (or rather, let pass through as in the patch). If you are asking for a flush you want to know why it failed. (it shouldn't ever fail on normal files, anyway) -- nosy: +pitrou

[issue13761] Add flush keyword to print()

2012-01-11 Thread Cameron Simpson
Cameron Simpson c...@zip.com.au added the comment: Flush can fail of disc full or any number of low level things that prevent the OS getting the data into the on-disc file. Speaking for myself, I certainly want to know if that happens. -- ___

[issue13761] Add flush keyword to print()

2012-01-11 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Ok, I'm fine with passing through the exception from flush(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13761 ___

[issue13761] Add flush keyword to print()

2012-01-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13761 ___

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2012-01-11 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4806 ___ ___ Python-bugs-list

[issue11944] Function call with * and generator hide exception raised by generator.

2012-01-11 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11944 ___ ___ Python-bugs-list

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2012-01-11 Thread Martin Panter
Martin Panter vadmium...@gmail.com added the comment: I haven’t tried to understand what the patches do, but Issue 5218 looks like a very similar problem with a patch including a test case. -- ___ Python tracker rep...@bugs.python.org

  1   2   >