[issue5337] Scanner class in re module undocumented

2009-03-31 Thread Matthew Barnett
Matthew Barnett added the comment: One of the limitations is that it identifies what matched by using capture groups, so if the expressions provided contain captures then it gets confused! :-) I handled that by 1) rejecting named captures and 2) changing unnamed captures into non-captures. ---

[issue5563] Document bdist_msi

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Committed in r70905. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python

[issue909005] asyncore fixes and improvements

2009-03-31 Thread Josiah Carlson
Josiah Carlson added the comment: Just to make this clear, Aleksi is proposing close() should be called automatically by some higher-level functionality whether a user has overridden handle_close() or not. With the updated asyncore warning suppression stuff, overriding handle_close() for the

[issue5633] fix for timeit when the statment is a string and the setup is not (and tests)

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: I'll look at it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1651995] sgmllib _convert_ref UnicodeDecodeError exception, new in 2.5

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Committed in r70906. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue5630] Update CObject API so it is safe and regular

2009-03-31 Thread Lisandro Dalcin
Lisandro Dalcin added the comment: Two questions: 1) Why do you prefer to pass destructor as a first argument? 2) Do we really need two different calls for providing a context pointer? Why no just one call and pass a NULL context? A comment: Suppose one wants to implement export/import modul

[issue3427] urllib documentation: urlopen().info() return type

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Committed in r70907. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python

[issue1161031] Neverending warnings from asyncore

2009-03-31 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: If you're talking about r70904 then you did a different thing than the one I suggested. -- ___ Python tracker ___

[issue5617] Unicode printing in gdb post-mortem sessions

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Added in r70912. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5583] Optional extensions in setup.py

2009-03-31 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r70910 and r70914 -- priority: -> normal status: open -> closed ___ Python tracker ___ ___ Pyt

[issue5018] Overly general claim about sequence unpacking in tutorial

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: I've just removed the paragraph about the asymmetry in r70915. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5619] Pass MS CRT debug flags into subprocesses

2009-03-31 Thread Jesse Noller
Jesse Noller added the comment: Committed to py3k, 26 maint, trunk, 3k maint r70908 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue909005] asyncore fixes and improvements

2009-03-31 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I agree with Josiah but I must say that the handle_close() documentation is a bit misleading. Currently it states: > handle_close() >Called when the socket is closed. I'd change it with something like this: "Called when the asynchronous loop detects t

[issue3087] Clean up Demos and Tools

2009-03-31 Thread Brett Cannon
Brett Cannon added the comment: This is not really a bug so closing. -- nosy: +brett.cannon resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue1665206] Hangup when using cgitb in a thread while still in import

2009-03-31 Thread Brett Cannon
Brett Cannon added the comment: The freeze is occurring from cgitb importing from within the html function. That is hitting the import lock that is being held in bar. Moving the imports out of the functions to the top of the module should fix this. -- priority: normal -> low stage: ->

[issue978604] wait_variable hangs at exit

2009-03-31 Thread Guilherme Polo
Guilherme Polo added the comment: Using this patch I noticed two problems appeared when running WaitTest.py 1) Closing the window results in: "_tkinter.TclError: can't invoke "tkwait" command: application has been destroyed" which I'm not considering as a bug, maybe the user can get confused a

[issue5628] TextIOWrapper fails with SystemError when reading HTTPResponse

2009-03-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r70928. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5635] test_sys reference counting fails while tracing

2009-03-31 Thread David Christian
New submission from David Christian : test_sys refcount test checks that assigning None to a local variable n increases the references to None by exactly 1. However sys.settrace is set, then the frame object must be instantiated to be passed to the trace object. This increments the reference co

[issue5155] Multiprocessing.Queue created by sub-process fails when used in sub-sub-process ("bad file descriptor" in q.get())

2009-03-31 Thread Beau Butler
Beau Butler added the comment: Quick note: Have tracked this down to what appears to be buggy behaviour on the part of os.pipe() when called from within a Process. First invocation of os.pipe() in a Process returns (0,x) - stdin(?) resulting in the 'bad file descriptor' error. Interactive prom

[issue3392] subprocess fails in select when descriptors are large

2009-03-31 Thread Frank Chu
Frank Chu added the comment: Updated with new patch. I moved the try: except logic in the module initialization step so I get a global has_poll, similar to the global mswindows already there. I now use a try/except/else to be more robust (not needed now since it's only "has_poll = True", but I

[issue5228] multiprocessing not compatible with functools.partial

2009-03-31 Thread Jack Diederich
Jack Diederich added the comment: Fixed rev 70931. Happy pickling! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue1730959] telnetlib: A callback for monitoring the telnet session

2009-03-31 Thread Jack Diederich
Jack Diederich added the comment: class MyTelnet(Telnet): def read_until(self, *args) txt = Telnet.read_until(self, *args) sys.stdout.write(txt) return txt Hope that helps, closing the bug. -- nosy: +jackdied resolution: -> wont fix status: open -> closed __

[issue5628] TextIOWrapper fails with SystemError when reading HTTPResponse

2009-03-31 Thread Senthil
Senthil added the comment: Nope, this is not yet fixed. $ ./python Python 3.1a1+ (py3k:70929, Mar 31 2009, 19:18:12) [GCC 4.3.2] on linux2 ... ... >>> f_bytes = urllib.request.urlopen("http://www.python.org";) >>> f_string = io.TextIOWrapper(f_bytes,"iso-8859-1") >>> print(f_string.read()) Tr

[issue5635] test_sys reference counting fails while tracing

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Committed in r70933. Thanks! -- nosy: +georg.brandl resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue5628] TextIOWrapper fails with SystemError when reading HTTPResponse

2009-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: urllib.response.addinfourl doesn't seem to implement the required ABC (BufferedIOBase) properly. It misses the read1() method. Also, it claims not to be readable: >>> f_bytes = urllib.request.urlopen("http://www.python.org/";) >>> f_bytes.readable() False

[issue5628] TextIOWrapper fails with SystemError when reading HTTPResponse

2009-03-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: -> high resolution: accepted -> type: -> behavior versions: +Python 3.1 ___ Python tracker ___

[issue5636] csv.reader next() method missing

2009-03-31 Thread Tony Joblin
New submission from Tony Joblin : On windows using 3.0.1 the csv.reader.next() public method is missing. The documentation says that this method should exist and it does exist in previous versions. There is a __next__ method available and constructs like: for row in reader print(row) st

[issue4886] test/regrtest.py contains error on __import__

2009-03-31 Thread R. David Murray
R. David Murray added the comment: regrtest is an internal tool for testing python, and is not suited to be used as a general testing framework. You would be far better off using one of the 3rd party packages designed for that task. We don't have the resources to support use of regrtest for an

[issue5353] Improve IndexError messages with actual values

2009-03-31 Thread R David Murray
Changes by R David Murray : -- nosy: +r.david.murray -bitdancer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5637] 2to3 does not convert urllib.urlopen to urllib.request.urlopen

2009-03-31 Thread Senthil
New submission from Senthil : In Py2x, have this code: import urllib s = urllib.urlopen('http://www.python.org') print s Run 2to3, on this, refactoring works only on import urllib and print statements. @@ -1,3 +1,3 @@ -import urllib +import urllib.request, urllib.parse, urllib.error s = urlli

[issue2409] regrtest should not just skip imports that fail

2009-03-31 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file9760/issue2409.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5636] csv.reader next() method missing

2009-03-31 Thread Martin v. Löwis
Martin v. Löwis added the comment: I don't think that's a bug in the code, but in the documentation. Iterators in 3.x are implemented with __next__ methods, and the next() builtin. -- assignee: -> georg.brandl components: +Documentation -Windows nosy: +georg.brandl, loewis _

[issue2409] regrtest should not just skip imports that fail

2009-03-31 Thread R. David Murray
R. David Murray added the comment: Fixed as of r70930 on trunk and shortly thereafter on the py3k branch. I did this at the pycon sprint, and unfortunately I only discovered this issue and your patches after I was done. So thank you for your work and I'm sorry it didn't actually get used (it w

[issue978604] wait_variable hangs at exit

2009-03-31 Thread Guilherme Polo
Guilherme Polo added the comment: Ah.. number 2 is problematic. Before continuing lets reduce the previous WaitTest.py to this (which shows the same problems): import Tkinter root = Tkinter.Tk() waitVar = Tkinter.BooleanVar() root.after(3000, lambda: waitVar.set(True)) root.wait_variable(wait

[issue2259] Poor support other than 44.1khz, 16bit audio files?

2009-03-31 Thread R. David Murray
R. David Murray added the comment: If you can provide a small audio file that demonstrates the problem that might be enough to get both of these issues moving, since I could write a test using that. -- ___ Python tracker

[issue5628] TextIOWrapper fails with SystemError when reading HTTPResponse

2009-03-31 Thread Jeremy Hylton
Jeremy Hylton added the comment: I just wanted to mention that the current head of py3k returns an http.client.HTTPResponse and not a urllib.respone.addinfourl. That doesn't mean it is the right thing to pass to TextIOWrapper. It's an instance of RawIOBase. -- ___

[issue4535] Build / Test Py3K failed on Ubuntu 8.10

2009-03-31 Thread Senthil
Senthil added the comment: Ubuntu 8.10; On Python 3.0.1 (r301:69556, Mar 31 2009, 22:18:10) [GCC 4.3.2] on linux2 297 tests OK. 26 tests skipped: test_bz2 test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses test_dbm_gnu test_dbm_ndb

[issue5628] TextIOWrapper fails with SystemError when reading HTTPResponse

2009-03-31 Thread Senthil
Senthil added the comment: Jeremy Hylton wrote: >  That doesn't mean it is the right thing to pass to TextIOWrapper.  It's an > instance of RawIOBase. I guess, you meant " That doesn't mean it is *not* the right thing to pass to TextIOWrapper". --

[issue5601] webbrowser doesn't just open browsers

2009-03-31 Thread Mitchell Model
Mitchell Model added the comment: The problem is not so much that I think people should use it for file URLs, it's that the behavior when they do can be quite confusing. Perhaps a note that webbrowser is not meant for file URLs and that it's behavior is undefined if it is? -- -- -

[issue5353] Improve IndexError messages with actual values

2009-03-31 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray -r.david.murray-old ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue5110] Printing Unicode chars from the interpreter in a non-UTF8 terminal raises an error (Py3)

2009-03-31 Thread Ezio Melotti
Ezio Melotti added the comment: In the first message I said that this breaks the PEP3138 because I thought that the solution was to change the default error-handler to 'backslashreplace', but this was already proposed and refused. sys.displayhook provides a way to change the behavior of the int

[issue992389] attribute error after non-from import

2009-03-31 Thread Guido van Rossum
Guido van Rossum added the comment: I'm sorely tempted to apply the Van Lindberg clause to the last two responses by Torsten and Nick. If there was an easy solution it wouldn't have been open for five years. If you don't believe me, post a fix. I'll even accept a fix for the importlib package

[issue5601] webbrowser doesn't just open browsers

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: That would be nice. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue5628] TextIOWrapper fails with SystemError when reading HTTPResponse

2009-03-31 Thread Senthil
Senthil added the comment: With the changes r70935, this works. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue5630] Update CObject API so it is safe and regular

2009-03-31 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +ajaksu2 type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue5638] test_httpservers fails CGI tests if --enable-shared

2009-03-31 Thread Tony Nelson
New submission from Tony Nelson : test_httpservers fails the CGI tests if Python was built as a shared library (./config --enable-shared) and not yet installed. To run such a Python without installing it, the command line must define LD_LIBRARY_PATH to point to the build directory. I see that t

[issue5628] TextIOWrapper fails with SystemError when reading HTTPResponse

2009-03-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please note that passing a instance of RawIOBase (as HTTPResponse) is to TextIOWrapper is *not* supported. You must first wrap the raw IO in a BufferIOBase instance. -- ___ Python tracker

[issue4535] Build / Test Py3K failed on Ubuntu 8.10

2009-03-31 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1659171] Calling tparm from extension lib fails in Python 2.5

2009-03-31 Thread Daniel Diniz
Daniel Diniz added the comment: Thanks, Richard! If someone confirms it, please reopen. -- resolution: -> out of date stage: test needed -> committed/rejected status: pending -> closed ___ Python tracker _

[issue1641] asyncore delayed calls feature

2009-03-31 Thread Guido van Rossum
Guido van Rossum added the comment: At the language summit last Thursday there was widespread disappointment with the changes to asyncore.py in 2.6, which broke almost all code that actually uses it. Unfortunately, the documented API is lame, so everybody depended on undocumented internals, and

[issue2578] additional unittest type equality methods

2009-03-31 Thread Guido van Rossum
Guido van Rossum added the comment: I absolutely do not want it to warn by default in 3.1. PendingDeprecationError is fine. -- ___ Python tracker ___ ___

[issue2522] locale.format() problems with decimal separator

2009-03-31 Thread R. David Murray
R. David Murray added the comment: Fixed in r70936/r70938. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue5601] webbrowser doesn't just open browsers

2009-03-31 Thread Mitchell Model
Mitchell Model added the comment: whoops Sorry for the garbage in the previous message. -- -- --- Mitchell -- Added file: http://bugs.python.org/file13533/unnamed ___ Python tracker ___

[issue5578] unqualified exec in class body

2009-03-31 Thread Martin v. Löwis
Martin v. Löwis added the comment: Reopening. The following piece of code changed it behavior between 2.5 and 2.6: def f(): a = 2 class C: exec 'a = 42' abc = a return C print f().abc In 2.6, this returns 2, because static analysis determines that the read of 'a' comes from f'

[issue5624] Py3K branch import _winreg instead of winreg

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Committed in r70943. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5627] PyDict_SetItemString() fails when the second argument is null

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: I am not sure why you consider this a bug. You should certainly not pass NULL pointers around where the docs do not explicitly allow this. -- nosy: +georg.brandl resolution: -> wont fix status: open -> pending ___ Pyt

[issue5631] Distutils "upload" command does not show up in --help-commands output.

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Committed in r70944. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue1725295] Line ending bug SimpleXMLRPCServer

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: CGI specifies \r\n line ends anyway, so this patch goes in the wrong direction. -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker _

[issue3763] Python 3.0 beta 2 : json and urllib not working together?

2009-03-31 Thread Senthil
Senthil added the comment: This is superseded by issue4136. -- resolution: -> wont fix superseder: -> merge json library with latest simplejson 2.0.x ___ Python tracker ___ ___

[issue3763] Python 3.0 beta 2 : json and urllib not working together?

2009-03-31 Thread Senthil
Senthil added the comment: This is superseded by issue4136. -- nosy: +bob.ippolito status: open -> closed ___ Python tracker ___ ___ P

[issue5627] PyDict_SetItemString() fails when the second argument is null

2009-03-31 Thread Euler Taveira de Oliveira
Euler Taveira de Oliveira added the comment: I know that it is a good programming practice checking null pointers but sometimes programmers are lazy. ;) I still think that high level functions should check for null pointers. -- ___ Python tracker <

[issue5639] Support TLS SNI extension in ssl module

2009-03-31 Thread Phil Pennock
New submission from Phil Pennock : With TLS it is possible to have the client use an extension (defined in RFC 4366, and RFC 3546 before that) to indicate to the server which hostname it believes it is talking to. The server can then choose TLS certificates accordingly. This makes virtual-hosti

[issue1681974] mkdtemp fails on Windows if username has non-ASCII character

2009-03-31 Thread Markus Niemistö
Markus Niemistö added the comment: Well, it's not me. As I stated in the problem description, Windows (2000 at least) uses path c:\documents and settings\\local settings\temp as default temp dir, where also python tries to make temp dirs. Now for example if user name is "niemistö", then the temp

<    1   2   3