[issue3525] Changes to exceptions not reflected in tutorial examples.

2008-08-07 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, applied in r65594. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3523] Reverse quotes in Python 3.0 tutorial

2008-08-07 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, applied in r65593. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3522] zip() function example in tutorial

2008-08-07 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, applied in r65592. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3429] urllib.urlopen() return type

2008-08-07 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Agreed. -- resolution: -> works for me status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3519] Evaluation order example lacks suffix

2008-08-07 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, fixed in r65591. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3506] Change buffer/memoryview DeprecationWarning

2008-08-07 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: In r65584 I changed the warning to not mention memoryview(); it just says that buffer() does not exist in 3.0. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <

[issue896052] symtable module not documented

2008-08-07 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- nosy: +brett.cannon ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-li

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: Just to be clear: any octet would seem to be allowed in the "path" of an "http" URL, but any non-ASCII octet must be percent-encoded. So the URL itself is still an ASCII string, considered opaquely. ___ Pyt

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: Looks like the failing test in test_http_cookiejar is just a bad test; it attempts to build an HTTP request object from an invalid URL, yet still seem to expect to be able to extract a cookie from the response headers for that request. I'd expe

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Bill Janssen
Changes by Bill Janssen <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11076/unnamed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Bill Janssen
Changes by Bill Janssen <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11078/unnamed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: Now I'm looking at the failing test_http_cookiejar test, which fails because it encodes a non-UTF-8 byte, 0xE5, in a path segment of a URI. The question is, does the "http" URI scheme allow non-ASCII (say, Latin-1) octets in path segments? IANA

[issue3525] Changes to exceptions not reflected in tutorial examples.

2008-08-07 Thread Jim Sizelove
Jim Sizelove <[EMAIL PROTECTED]> added the comment: The conversations that led to the removal of __getitem__ from Exceptions can be found in issue2291 and issue2379. ___ Python tracker <[EMAIL PROTECTED]>

[issue3525] Changes to exceptions not reflected in tutorial examples.

2008-08-07 Thread Jim Sizelove
New submission from Jim Sizelove <[EMAIL PROTECTED]>: PEPs 3109 and 3110 describe changes to Exceptions. The attached patch file makes changes to the tutorial to bring it in line with the changes to errors and exceptions implemented in Python 3.0. I'll make a comment about the .args of exceptio

[issue896052] symtable module not documented

2008-08-07 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: I notice that symtable is still in 3.0, still not in the index, and I presume still not documented. The help(symtable) says it defines classes Symbol SymbolTable Class(SymbolTable) Function(symbolTable) so it seems to be used for parsing. Is

[issue3524] IOError when attempting negative seek in file (Python 3.0 tutorial)

2008-08-07 Thread Jim Sizelove
New submission from Jim Sizelove <[EMAIL PROTECTED]>: The Input and Output section of the Python 3.0 tutorial (http://docs.python.org/dev/3.0/tutorial/inputoutput.html) shows an example of seeking in a negative direction from the end of a file. I get an IOError when attempting to run the example

[issue3466] urllib2 should support HTTPS connections with client keys

2008-08-07 Thread Senthil
Changes by Senthil <[EMAIL PROTECTED]>: -- nosy: +orsenthil ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing list

[issue3523] Reverse quotes in Python 3.0 tutorial

2008-08-07 Thread Jim Sizelove
New submission from Jim Sizelove <[EMAIL PROTECTED]>: The Input and Output section of the tutorial says: "Reverse quotes (``) are equivalent to repr(), but they are no longer used in modern Python code and are removed in future versions of the language." Is now that future time with Python 3.0?

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: On Thu, Aug 7, 2008 at 4:23 PM, Guido van Rossum <[EMAIL PROTECTED]>wrote: > > >> However I fear that this middle ground will in practice cause: > >> > >> (a) more in-the-field failures, since devs are notorious for testing > >> with ASCII only

[issue3522] zip() function example in tutorial

2008-08-07 Thread Jim Sizelove
New submission from Jim Sizelove <[EMAIL PROTECTED]>: The zip() function is now a generator in Python 3.0. There is an example of using the zip() function in the Python 3.0 tutorial, http://docs.python.org/dev/3.0/tutorial/datastructures.html. When running the example, I got: >>> mat = [[1, 2,

[issue3429] urllib.urlopen() return type

2008-08-07 Thread Senthil
Senthil <[EMAIL PROTECTED]> added the comment: I agree with Benjamin on this issue, describing what is a "File like Object" is so much un-needed in Python and especially at urlopen function. Users have been able to understand and use it properly from a long time. -- nosy: +orsenthil ___

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: On Thu, Aug 7, 2008 at 3:58 PM, Bill Janssen <[EMAIL PROTECTED]> wrote: > Bill Janssen <[EMAIL PROTECTED]> added the comment: >> Your original proposal was to make unquote() behave like >> unquote_to_bytes(), which would require changes to v

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: > Your original proposal was to make unquote() behave like > unquote_to_bytes(), which would require changes to virtually every app > using unqote(), since almost all apps assume the result is a (text) > string. Actually, careful apps realize t

[issue3521] file.readline: bad exception recovery

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Good catch! This looks pretty simple to fix; I think a type check is missing (actually several, there are at least two implementations in io.py). In fact, the 2.6 version of io.py already has the necessary checks. (But merging those forwa

[issue3521] file.readline: bad exception recovery

2008-08-07 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: WinXP, 3.0b2 >>>f=open('somefile', 'r') >>>f.readline(somefloat) Traceback (most recent call last): File "", line 1, in f.readline(1.0) File "C:\Program Files\Python30\lib\io.py", line 1766, in readline return line[:endpos] Type

[issue3520] New Global Module Index glitch on WinXP

2008-08-07 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: New to beta2 (a4,b1 worked fine as I remember). It is possible that I installed xp sp3 in between. In any case, I keep xp updated as per MS downloads. Windows XP: open Start/Python3.0/Python Manuals to get 'Python v3.0b2 documentation' wind

[issue3519] Evaluation order example lacks suffix

2008-08-07 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: Language reference/ Expressions/ Evaluation order ... In the following lines, expressions will be evaluated in the arithmetic order of their suffixes: ... func(expr1, expr2, *expr3, **expr4) The omission of a suffix from the function expres

[issue3460] PyUnicode_Join could perhaps be simpler

2008-08-07 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: I've committed the patch in r65583. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: On Thu, Aug 7, 2008 at 2:17 PM, Bill Janssen <[EMAIL PROTECTED]> wrote: > > Bill Janssen <[EMAIL PROTECTED]> added the comment: > > My main fear with this patch is that "unquote" will become seen as > unreliable, because naive software tryin

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: On 2008-08-07 23:17, Bill Janssen wrote: > Bill Janssen <[EMAIL PROTECTED]> added the comment: > > My main fear with this patch is that "unquote" will become seen as > unreliable, because naive software trying to parse URLs will encounter

[issue3419] multiprocessing module is racy

2008-08-07 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: On Aug 7, 2008, at 5:26 PM, Mark Dickinson <[EMAIL PROTECTED]> wrote: > > Mark Dickinson <[EMAIL PROTECTED]> added the comment: > > Adding Richard Oudkerk to the nosy list in case he can shed any > light on > this. > > Should this be consid

[issue3419] multiprocessing module is racy

2008-08-07 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Adding Richard Oudkerk to the nosy list in case he can shed any light on this. Should this be considered a release-blocker? -- nosy: +roudkerk ___ Python tracker <[EMAIL PROTECTED]>

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: My main fear with this patch is that "unquote" will become seen as unreliable, because naive software trying to parse URLs will encounter uses of percent-encoding where the encoded octets are not in fact UTF-8 bytes. They're just some set of by

[issue3419] multiprocessing module is racy

2008-08-07 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Hmmm. That last message wasn't too coherent; I really shouldn't try to post at 2:30am. Summary: the refcounting logic in the Server class is flawed. In Server.create(), the initial refcount of a newly-created shared object is set to No

[issue3506] Change buffer/memoryview DeprecationWarning

2008-08-07 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le mercredi 06 août 2008 à 20:12 +, Guido van Rossum a écrit : > +1. buffer() stinks. memoryview() rules. They don't hvae the same use > cases. > > Is there truly nobody else who understands PEP 3118 well enough? PEP 3118 is not very

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: Just to reply to Antoine's comments on my patch: - it would be nice to have more unit tests, especially for the various bytes/unicode possibilities, and perhaps also roundtripping (Matt's patch has a lot of tests) Yes, I completely agree. - q

[issue2470] Need fixer for dl (removed) -> ctypes module

2008-08-07 Thread Thomas Heller
Thomas Heller <[EMAIL PROTECTED]> added the comment: I can review and try out the fixer if someone provides a patch. OTOH I have never used the dl module. Note that dl exposed a lot of RTLD_ constants that ctypes does not yet, so there should be a patch for ctypes also. ___

[issue1288615] Python code.interact() and UTF-8 locale

2008-08-07 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le jeudi 07 août 2008 à 18:52 +, Karen Tracey a écrit : > Karen Tracey <[EMAIL PROTECTED]> added the comment: > > Cool, thanks! Do I take it from the Versions setting that the fix will > be available in the next 2.6 beta but not get propa

[issue1288615] Python code.interact() and UTF-8 locale

2008-08-07 Thread Karen Tracey
Karen Tracey <[EMAIL PROTECTED]> added the comment: Cool, thanks! Do I take it from the Versions setting that the fix will be available in the next 2.6 beta but not get propagated to prior releases? (I'm not very familiar with this issue tracker so am just trying to understand what the various f

[issue3517] PATCH - Providing fullfsync on supported platforms

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Thanks, checked into the trunk as r65581. -- resolution: -> accepted status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue1288615] Python code.interact() and UTF-8 locale

2008-08-07 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Fixed in r65578. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3517] PATCH - Providing fullfsync on supported platforms

2008-08-07 Thread Ian Charnas
Ian Charnas <[EMAIL PROTECTED]> added the comment: Sounds fair enough. I was looking forward to the glitz and glamor of the os module, but I'll settle for a good seat in fcntl. Here's a patch implementing just that. -ian Added file: http://bugs.python.org/file11074/fullfsync_fcntl.patch

[issue1346874] httplib simply ignores CONTINUE

2008-08-07 Thread Rick Harris
Rick Harris <[EMAIL PROTECTED]> added the comment: I'm implemented the behavior described by Mike above with a patch to 2.6. The patch will raise an ExpectationFailed before sending the body if the server responds with a 417 (Expectation Failed). This patch should only modify behavior for reques

[issue3517] PATCH - Providing fullfsync on supported platforms

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: I'm sorry to have lead you this way, but since there is no fullfsync() system call, IMO you should just make the F_FULLFSYNC constant available. That should go into fcntlmodule.c. -- nosy: +gvanrossum _

[issue1717] Get rid of more refercenes to __cmp__

2008-08-07 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Additionally, there are still lots of references to __cmp__ in the library which should be ripped out. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3516] string formatting quirk using %.%

2008-08-07 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I'd rather see it this way: It is a programming error if a format string contains a reference to a nonexisting dictionary key, no matter what formatting specifier is used. The implementation is quite consistent here. -- nosy: +georg.bra

[issue3518] multiprocessing: BaseManager.from_address documented but doesn't exist

2008-08-07 Thread Mark Dickinson
New submission from Mark Dickinson <[EMAIL PROTECTED]>: The BaseManager.from_address method is documented at: http://docs.python.org/dev/library/multiprocessing.html#multiprocessing.ma nagers.BaseManager.from_address but it looks as though this method doesn't actually exist. In contrast, the

[issue3512] Change fsync to use fullfsync on platforms (like OS X) that have/need it

2008-08-07 Thread Ian Charnas
Ian Charnas <[EMAIL PROTECTED]> added the comment: Done. See 3517 http://bugs.python.org/issue3517 On Thu, Aug 7, 2008 at 12:53 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Guido van Rossum <[EMAIL PROTECTED]> added the comment: > > Based on discussion in python-dev, I'm rejecting this p

[issue3517] PATCH - Providing fullfsync on supported platforms

2008-08-07 Thread Ian Charnas
New submission from Ian Charnas <[EMAIL PROTECTED]>: Python currently provides os.fsync to call the POSIX 'fsync' on platforms that support it. While this function forces the operating system to force a file buffer to the storage device, data may still be waiting in the hardware write buffers on

[issue3516] string formatting quirk using %.%

2008-08-07 Thread nadav
nadav <[EMAIL PROTECTED]> added the comment: The main problem with this is that the following code does not make any sense: "%(a)%" % dict(a=3) It has no semantic meaning (take the dictionary paramater a, and do nothing with it). It must be a user bug (except in very wierd cases). I agree that

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: On Thu, Aug 7, 2008 at 8:03 AM, Matt Giuca <[EMAIL PROTECTED]> wrote: > > Matt Giuca <[EMAIL PROTECTED]> added the comment: > > I'm also attaching a "metapatch" - diff from patch 7 to patch 8. This is > to give a rough idea of what I changed

[issue3512] Change fsync to use fullfsync on platforms (like OS X) that have/need it

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Based on discussion in python-dev, I'm rejecting this patch. Open a new one if you want to make F_FULLSYNC available. -- resolution: -> rejected status: open -> closed ___ Python tracker <[EMAI

[issue3516] string formatting quirk using %.%

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: It's straightforward if you consider the implementation of the requirement that %% renders a single percent sign: the second % is parsed just like any other formatting code (i, d, f, etc.) and the stuff between the first % and the formatting

[issue3514] pickle segfault with infinite loop in __getattr__

2008-08-07 Thread Erick Tryzelaar
Erick Tryzelaar <[EMAIL PROTECTED]> added the comment: > Guido van Rossum <[EMAIL PROTECTED]> added the comment: > > Does this occur in 2.6 or 2.5? It doesn't in python 2.5. The RuntimeError manages to get printed out. I don't have 2.6 installed to test against at the moment. Here's the equivale

[issue3514] pickle segfault with infinite loop in __getattr__

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Does this occur in 2.6 or 2.5? -- nosy: +gvanrossum ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3512] Change fsync to use fullfsync on platforms (like OS X) that have/need it

2008-08-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: IMO it would be better not to confuse matters my having os.fsync() call fullfsync(); it's better to add a separate os.fullfsync() call on platforms that support it. That way the application can choose. I suppose Apple had a reason for chan

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Matt Giuca
Matt Giuca <[EMAIL PROTECTED]> added the comment: I'm also attaching a "metapatch" - diff from patch 7 to patch 8. This is to give a rough idea of what I changed since the review. (Sorry - This is actually a diff between the two patches, so it's pretty hard to read. It would have been nicer to d

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Matt Giuca
Matt Giuca <[EMAIL PROTECTED]> added the comment: Following Guido and Antoine's reviews, I've written a new patch which fixes *most* of the issues raised. The ones I didn't fix I have noted below, and commented on the review site (http://codereview.appspot.com/2827/). Note: I intend to address al

[issue3270] test_multiprocessing: test_listener_client flakiness

2008-08-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Hello. I also experienced test_multiprocessing hang on win2k and I workarounded this by this adhok patch. Index: Lib/multiprocessing/connection.py === --- Lib/multiprocessing/

[issue1342811] Tkinter.Menu.delete doesn't delete command of entry

2008-08-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The patch is fine, please apply (also to the 2.5 and 3.0 branches). Don't forget a Misc/NEWS entry. -- assignee: loewis -> schuppenies resolution: -> accepted ___ Python tracker <[EMAIL PROTECTED

[issue3513] test_multiprocessing hangs without this patch on win2k

2008-08-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I'll close this entry because this seems to be duplicate of issue3270. -- resolution: -> duplicate status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Matt Giuca
Matt Giuca <[EMAIL PROTECTED]> added the comment: > The important is that the defaults are safe. If users want to override > the defaults and produce potentially invalid URIs, there is no reason to > discourage them. OK I think that's a fairly valid argument. I'm about to head off so I'll post t

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le jeudi 07 août 2008 à 13:42 +, Matt Giuca a écrit : > The reasoning is this: if we allow non-ASCII characters to be escaped, > then we allow quote to generate invalid URIs (URIs are only allowed to > have ASCII characters). It's one thin

[issue3210] subprocess.Popen does not release process handles if process cannot be started

2008-08-07 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue3210] subprocess.Popen does not release process handles if process cannot be started

2008-08-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Hello. I had lecture about exception & frames on issue3515. When Lib/subprocess.py (814)'s CreateProcess() raises exception, p2cread will be freed by refcount GC, but it never happen before os.remove() because sys.exc_traceback holds refer

[issue3515] refcount gc bug?

2008-08-07 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: You don't need to raise another exception, calling sys.exc_clear() should be fine. But a cleaner way to write your example is: def foo(): with open("a.txt", "w") as io: raise RuntimeError() "with" will automatically close the fil

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Matt Giuca
Matt Giuca <[EMAIL PROTECTED]> added the comment: A reply to a point on GvR's review, I'd like to open for discussion. This relates to whether or not quote's "safe" argument should allow non-ASCII characters. > Using errors='ignore' seems like a mistake -- it will hide errors. I > also wonder wh

[issue3515] refcount gc bug?

2008-08-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I understand. Thank you. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list

[issue3516] string formatting quirk using %.%

2008-08-07 Thread nadav
New submission from nadav <[EMAIL PROTECTED]>: >>> "%.%s" % () '%s' >>> "%(a).%(b)s" % dict(a=2) '%(b)s' >>> "%(a).%(b)s" % dict(a=2, b=3) '%(b)s' >>> "%(a).%(b)s" % dict() Traceback (most recent call last): File "", line 1, in -toplevel- "%(a).%(b)s" % dict() KeyError: 'a' this is counter

[issue3515] refcount gc bug?

2008-08-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > Hmm, when exception occurs in some frame, its reference will be > retained even after exiting function? Correct. When a traceback is produced, all frames get linked, be able to print later the traceback with source code information. Each f

[issue3515] refcount gc bug?

2008-08-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: >But still I'm little confused why this code prints "del". Oh, sorry, kick me. "del" should be printed when interpreter exits. :-) ___ Python tracker <[EMAIL PROTECTED]>

[issue3515] refcount gc bug?

2008-08-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Hmm, when exception occurs in some frame, its reference will be retained even after exiting function? Indeed, extra exception fixed problem. import os def foo(): io = open("a.txt", "w") raise RuntimeError() try: foo() except:

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Matt Giuca
Matt Giuca <[EMAIL PROTECTED]> added the comment: Dear GvR, New code review comments by mgiuca have been published. Please go to http://codereview.appspot.com/2827 to read them. Message: Hi Guido, Thanks very much for this very detailed review. I've replied to the comments. I will make the cha

[issue1288615] Python code.interact() and UTF-8 locale

2008-08-07 Thread Antoine Pitrou
Changes by Antoine Pitrou <[EMAIL PROTECTED]>: -- keywords: +patch nosy: +pitrou type: -> behavior versions: -Python 2.3, Python 2.4, Python 2.5 ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3515] refcount gc bug?

2008-08-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The interpreter holds onto sys.exc_traceback even after the except block. This refers to the frame, which refers to the file object. -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]>

[issue3515] refcount gc bug?

2008-08-07 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: I'm not sure this is bug or not, but shouldn't `io' be collected by refcount GC? This happens on python2.5 but doesn't happend on python3.0. import os def foo(): io = open("a.txt", "w") raise RuntimeError() try: foo() excep

[issue3514] pickle segfault with infinite loop in __getattr__

2008-08-07 Thread Erick Tryzelaar
New submission from Erick Tryzelaar <[EMAIL PROTECTED]>: I found a segfault in pickle.load when you overload __getattr__ and create yourself a infinite loop in the latest svn checkout of python 3: import pickle class Foo: def __getattr__(self, key):

[issue3210] subprocess.Popen does not release process handles if process cannot be started

2008-08-07 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: -- nosy: +ocean-city ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list m