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

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy 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: docs@python -> t

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

2012-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: docs@python -> terry.reedy keywords: +easy, patch nosy: +terry.reedy versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___

[issue13748] Allow rb"" literals as an equivalent to br""

2012-01-11 Thread Georg Brandl
Georg Brandl added the comment: +1 for "raw bytes", which reads much nicer to me than "bytes raw". -- nosy: +georg.brandl ___ Python tracker ___

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

2012-01-11 Thread Faheem Mitha
Faheem Mitha 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 ___

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

2012-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2012-01-11 Thread Ned Deily
Ned Deily 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 is.) ---

[issue13752] add a unicode.casefold() method

2012-01-11 Thread Georg Brandl
Changes by Georg Brandl : -- stage: -> needs patch title: add a casefold() method -> add a unicode.casefold() method ___ Python tracker ___ _

[issue13761] Add flush keyword to print()

2012-01-11 Thread Georg Brandl
New submission from Georg Brandl : 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 Core keywords: easy

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

2012-01-11 Thread Roundup Robot
Roundup Robot 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 '3.2': #13754 String returned if les

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

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: See #13754 for commits (not here because 'close' != 'closes' or closed') -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue13761] Add flush keyword to print()

2012-01-11 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2012-01-11 Thread Atsushi Shibata
Atsushi Shibata 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. Python 3.2.2 (v3.2.2:

[issue4630] IDLE no longer respects .Xdefaults insertOffTime

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy 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 ___ Python tracker

[issue4630] IDLE: add cursor noblink option

2012-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: IDLE no longer respects .Xdefaults insertOffTime -> IDLE: add cursor noblink option ___ Python tracker ___ _

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

2012-01-11 Thread Ned Deily
Ned Deily 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 4.2.1 (Apple In

[issue13703] Hash collision security issue

2012-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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 for all hasha

[issue13472] devguide doesn’t list all build dependencies

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12907] Update test coverage devguide page

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13703] Hash collision security issue

2012-01-11 Thread STINNER Victor
STINNER Victor 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) need to be modified. >  * it

[issue12296] Minor clarification in devguide

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13762] missing section: how to contribute to devguide

2012-01-11 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : 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: Devguide messages: 1

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

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12409] Moving "Documenting Python" to Devguide

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13275] Recommend xml.etree for XML processing

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13275] Recommend xml.etree for XML processing

2012-01-11 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: @Araujo bit offtopic, but which XML library have you found most elegant? Is it available in the stdlib? -- ___ Python tracker ___ __

[issue13763] rm obsolete reference in devguide

2012-01-11 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : 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 keywords: patch mess

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

2012-01-11 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : 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 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 : 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) works fine. The probl

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

2012-01-11 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : 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 done to Grammar/Gra

[issue13762] missing section: how to contribute to devguide

2012-01-11 Thread Sandro Tosi
Sandro Tosi 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 good start (and it seems

[issue13762] missing section: how to contribute to devguide

2012-01-11 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: I guess I should have looked more carefully. Thanks and sorry for the noise. -- status: open -> closed ___ Python tracker ___ ___

[issue2175] Expat sax parser silently ignores the InputSource protocol

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12779] Update packaging documentation

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[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 : -- nosy: +flub ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[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 : 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 Core messages: 151058 nosy

[issue13762] missing section: how to contribute to devguide

2012-01-11 Thread Sandro Tosi
Changes by Sandro Tosi : -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2012-01-11 Thread Ezio Melotti
Ezio Melotti 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 generate/affect other warni

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

2012-01-11 Thread Benjamin Peterson
Benjamin Peterson 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 added the comment: STINNER Victor wrote: > > STINNER Victor 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 whole idea and the needed changes in g

[issue13703] Hash collision security issue

2012-01-11 Thread Antoine Pitrou
Antoine Pitrou 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 allowed collision

[issue13703] Hash collision security issue

2012-01-11 Thread Mark Shannon
Mark Shannon 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 to se

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

2012-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- 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 tracker

[issue13703] Hash collision security issue

2012-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Mark Shannon wrote: > > Mark Shannon 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 th

[issue13703] Hash collision security issue

2012-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou 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

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

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

[issue13770] python3 & json: add ensure_ascii documentation

2012-01-11 Thread Марк Коренберг
New submission from Марк Коренберг : 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: python3 & json: add

[issue13770] python3 & json: add ensure_ascii documentation

2012-01-11 Thread Марк Коренберг
Changes by Марк Коренберг : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2012-01-11 Thread Tal Einat
Tal Einat 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 surprised this hasn'

[issue13703] Hash collision security issue

2012-01-11 Thread Antoine Pitrou
Antoine Pitrou 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 > send

[issue13703] Hash collision security issue

2012-01-11 Thread Mark Dickinson
Mark Dickinson 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 dot-releases. Are y

[issue13703] Hash collision security issue

2012-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Mark Dickinson wrote: > > Mark Dickinson 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 th

[issue13771] HTTPSConnection __init__ super implementation causes recursion error

2012-01-11 Thread Michael Mulich
New submission from Michael Mulich : 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 ".../wsgi_intercept/test/test_httplib.py

[issue13771] HTTPSConnection __init__ super implementation causes recursion error

2012-01-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Library (Lib) -None nosy: +orsenthil versions: -Python 3.4 ___ Python tracker ___ ___ Pyt

[issue13703] Hash collision security issue

2012-01-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou 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 loo

[issue13703] Hash collision security issue

2012-01-11 Thread Antoine Pitrou
Antoine Pitrou 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 (either Paul

[issue13761] Add flush keyword to print()

2012-01-11 Thread Guido van Rossum
Guido van Rossum 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 write() call to s

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

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy 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 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 files under a directo

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

2012-01-11 Thread Antoine Pitrou
Antoine Pitrou 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. -- ___ P

[issue11633] Document that print may need explicit flushing

2012-01-11 Thread Roundup Robot
Roundup Robot 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 http://hg.python.org/cpython/rev

[issue11633] Document that print may need explicit flushing

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: #13761 proposes to add flush=False param with option for True. -- ___ Python tracker ___ ___ Python

[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 : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue13761] Add flush keyword to print()

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy 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 a screen." Unl

[issue13761] Add flush keyword to print()

2012-01-11 Thread Georg Brandl
Georg Brandl 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 ___

[issue13761] Add flush keyword to print()

2012-01-11 Thread Georg Brandl
Georg Brandl 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 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 http://hg.python.org/cpython/rev/

[issue12409] Moving "Documenting Python" to Devguide

2012-01-11 Thread Sandro Tosi
Sandro Tosi 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 took the files from def

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

2012-01-11 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 "", line 1, in NotADirectoryError: [Error 267] The directo

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

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

[issue13773] Support sqlite3 uri filenames

2012-01-11 Thread poq
New submission from poq : 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: sqlite-uri.

[issue13773] Support sqlite3 uri filenames

2012-01-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 there is no better

[issue13761] Add flush keyword to print()

2012-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: I'd ignore the failure. It could easily mask some other more interesting error. -- ___ Python tracker ___ ___

[issue13703] Hash collision security issue

2012-01-11 Thread Charles-François Natali
Charles-François Natali 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 suicide). Sure, the cal

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

2012-01-11 Thread Ronald Oussoren
Ronald Oussoren 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", (getter)PyCursesWindow_get

[issue13681] Aifc read compressed frames fix

2012-01-11 Thread Sandro Tosi
Sandro Tosi 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: +sandro.tosi __

[issue13763] rm obsolete reference in devguide

2012-01-11 Thread Sandro Tosi
Sandro Tosi 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 _

[issue13763] rm obsolete reference in devguide

2012-01-11 Thread Ezio Melotti
Ezio Melotti added the comment: If 'program' refers to the executable, the sentence is still valid. -- type: -> enhancement ___ Python tracker ___ _

[issue13773] Support sqlite3 uri filenames

2012-01-11 Thread poq
poq 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 Lib/sqlite3/test/hooks.py... --

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

2012-01-11 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

[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 : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue13761] Add flush keyword to print()

2012-01-11 Thread Cameron Simpson
Changes by Cameron Simpson : -- nosy: +cameron ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2012-01-11 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2012-01-11 Thread Nam Nguyen
Nam Nguyen 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 _

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

2012-01-11 Thread Julian Berman
New submission from Julian Berman : >>> import json >>> json.loads("{}", [1, 2, 3]) Traceback (most recent call last): File "", line 1, in File "/usr/local/Cellar/python/2.7.2/lib/python2.7/json/__init__.py", line 339, in loads return cls(encoding=encoding, **kw).decode(s) File "/usr/

[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 : Consider: >>> os.symlink('.\\test', 'Lib\\bar') Traceback (most recent call last): File "", line 1, in WindowsError: [Error 5] Access is denied: '.\\test' Where Lib\\bar is previously created. The symlink creation is rightly rejected, but with a misleadi

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

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

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

2012-01-11 Thread Santoso Wijaya
Santoso Wijaya 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 automatically detect whether the s

[issue13761] Add flush keyword to print()

2012-01-11 Thread Cameron Simpson
Cameron Simpson 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 silently. If t

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

2012-01-11 Thread Santoso Wijaya
Santoso Wijaya added the comment: Confirmed (on latest py33 build): >>> os.listdir('Lib\\bar')[:4] Traceback (most recent call last): File "", line 1, in NotADirectoryError: [Error 267] The directory name is invalid: 'Lib\\bar\\*.*' [61658 refs] ... after manually deleting the file-symlink

[issue11633] Document that print may need explicit flushing

2012-01-11 Thread Cameron Simpson
Changes by Cameron Simpson : -- nosy: +cameron ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2012-01-11 Thread Antoine Pitrou
Antoine Pitrou 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 > `target_is_d

[issue13761] Add flush keyword to print()

2012-01-11 Thread Antoine Pitrou
Antoine Pitrou 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 ___ Py

[issue13761] Add flush keyword to print()

2012-01-11 Thread Cameron Simpson
Cameron Simpson 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. -- ___ Python tracker

[issue13761] Add flush keyword to print()

2012-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: Ok, I'm fine with passing through the exception from flush(). -- ___ Python tracker ___ ___ Pytho

[issue13761] Add flush keyword to print()

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

[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 : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2012-01-11 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2012-01-11 Thread Martin Panter
Martin Panter 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 __

  1   2   >