[issue1121] Document inspect.getfullargspec()

2007-09-11 Thread Georg Brandl
Changes by Georg Brandl: -- assignee: -> georg.brandl nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1122] PyTuple_Size and PyTuple_GET_SIZE return type documentation incorrect

2007-09-11 Thread Georg Brandl
Changes by Georg Brandl: -- assignee: -> georg.brandl nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1144] parsermodule validation out of sync with Grammar

2007-09-11 Thread David Binger
New submission from David Binger: >>> parser.sequence2st(parser.suite("class A(object): pass").tolist()) Traceback (most recent call last): File "", line 1, in parser.ParserError: Expected node type 326, got 329. --- The Grammar in python 3 uses "arglist" instead of "testlist" for class defi

[issue1123] split(None, maxsplit) does not strip whitespace correctly

2007-09-11 Thread Nir Soffer
Nir Soffer added the comment: There is a problem only when maxsplit is smaller than the available splits. In other cases, the docs and the behavior match. __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-11 Thread Thomas Lee
New submission from Thomas Lee: The current implementation of str.join requires that the parameters passed to it be string/unicode values. A suggestion to allow it to accept parameters of any type came up in PEP 3100. Implemented for Unicode using the attached patch. It would be trivial to add t

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-11 Thread Thomas Lee
Thomas Lee added the comment: Oh and an example of usage: # before the patch ', '.join([str(x) for x in [1, 2, 3]]) # after the patch ', '.join([1, 2, 3]) __ Tracker <[EMAIL PROTECTED]> __ __

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-11 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- keywords: +patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1146] TextWrap vs words 1-character shorter than the width

2007-09-11 Thread sam
New submission from sam: >>> from textwrap import wrap >>> wrap("foobarbaz reallylongwordgoeshere", width = 10) ['foobarbaz r', 'eallylongw', 'ordgoesher', 'e'] >>> print [len(s) for s in _] [11, 10, 10, 1] This only seems to happen when the first word on the line is exactly one character shorte

[issue1056] test_cmd_line starts python without -E

2007-09-11 Thread Nick Coghlan
Nick Coghlan added the comment: Fixed for 2.6 in rev 58103 (Is the head still being merged to the py3k branch? Or does this need to be forward-ported manually?) -- nosy: +ncoghlan resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]

[issue1739468] Add a -z interpreter flag to execute a zip file

2007-09-11 Thread Nick Coghlan
Nick Coghlan added the comment: I like PJE's approach, and the patch works for me. About the only thing I'd change is to switch the expression in PyImport_GetImporter to a simple chain of if-statements in order to: - silence the warning from GCC about an unused value - make it more obvious t

[issue1147] string exceptions inconsistently deprecated/disabled

2007-09-11 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: Python 2.5 deprecated raising string exceptions. It also added the throw method to generator objects which can be used to raise an exception, including a string exception. Raising an exception with this method doesn't issue a deprecation warning. It loo

[issue1739468] Add a -z interpreter flag to execute a zip file

2007-09-11 Thread Paul Moore
Paul Moore added the comment: PJE's patch looks OK. I agree with Nick that the chain of &&s in PyImport_GetImporter should be expanded into a chain of ifs. As it stands, the code is needlessly obfuscated. _ Tracker <[EMAIL PROTECTED]>

[issue1148] TypeError on join - httplib mixing str and bytes

2007-09-11 Thread Eduardo Padoan
New submission from Eduardo Padoan: To reproduce: >>> import httplib >>> conn = httplib.HTTPConnection("www.python.org") >>> conn.request("GET", "/index.html") >>> r1 = conn.getresponse() >>> r1.read() Traceback (most recent call last): File "", line 1, in File "/home/eopadoan/pub/py3k/Lib/

[issue1142] code sample showing errors reading large files with py 2.5/3.0

2007-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: Folks, please focus on one issue at a time, and don't post such long transcripts. I know Py3k text I/O is very slow; it's written in Python and uses UTF-8 as the default encoding. We've got a summer of code student working on an accelerating this. (And if he

[issue1149] fdopen does not work as expected

2007-09-11 Thread Luís Pedro Coelho
New submission from Luís Pedro Coelho: from os import * def Fork(): b = fork() if b < 0: raise Exception('fork() failed') return b r,w=pipe() b = Fork() if b == 0: dup2(w,1) close(w) execlp('echo',\ 'echo',\ 'Hello world') else: for line in fdopen

[issue1150] Rename PyBUF_WRITEABLE to PyBUF_WRITABLE

2007-09-11 Thread Guido van Rossum
New submission from Guido van Rossum: Because writeable is not an English word; writable is. Other names should be fixed as well. -- messages: 55830 nosy: gvanrossum severity: normal status: open title: Rename PyBUF_WRITEABLE to PyBUF_WRITABLE versions: Python 3.0 _

[issue1141] reading large files

2007-09-11 Thread Ben Beasley
Ben Beasley added the comment: I ran Richard Christen's script from msg55784 on Ubuntu Feisty Fawn (64-bit) with both Python 2.5.1 and Python 3.0a1 (for the latter, I had to change xrange to range). (2, 5, 1, 'final', 0) 2007-09-11 11:39:08 (500, 7.3925600051879883) (1000, 15.06888103485

[issue1141] reading large files

2007-09-11 Thread Ben Beasley
Ben Beasley added the comment: See the BDFL's comment in msg55828. "I know Py3k text I/O is very slow; it's written in Python and uses UTF-8 as the default encoding. We've got a summer of code student working on an accelerating this. (And if he doesn't finish we have another year to work on it

[issue1130] Idle - Save (buffer) - closes IDLE and does not save file (Windows XP)

2007-09-11 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser: -- assignee: -> kbk keywords: +py3k nosy: +kbk __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1151] "TypeError: expected string, bytes found" instead of KeyboardInterrupt

2007-09-11 Thread Eduardo Padoan
New submission from Eduardo Padoan: On revision 54803, interactive mode, on linux: if type ctrl+c you type ctrl+c, it should raise KeyboardInterrupt, but "TypeError: expected string, bytes found" printed. Also, I could *not* catch it doing: >>> try: ... while True: pass ... except KeyboardIn

[issue1147] string exceptions inconsistently deprecated/disabled

2007-09-11 Thread Brett Cannon
Changes by Brett Cannon: -- assignee: -> brett.cannon nosy: +brett.cannon __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1147] string exceptions inconsistently deprecated/disabled

2007-09-11 Thread Brett Cannon
Brett Cannon added the comment: Fixed on the trunk in rev. 58108. Need to change 2.5 to raise a warning. -- priority: -> normal versions: -Python 2.6 __ Tracker <[EMAIL PROTECTED]> __ _

[issue1147] string exceptions inconsistently deprecated/disabled

2007-09-11 Thread Brett Cannon
Brett Cannon added the comment: Rev. 58109 covers 2.5. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Pyt

[issue1152] Bug in documentation for SimpleXMLRPCServer

2007-09-11 Thread Frank Millman
New submission from Frank Millman: I spotted a minor bug in the documentation to SimpleXMLRPCServer. Background: xmlrpclib.py has the following - # This class is available as ServerProxy and Server. New code should # use ServerProxy, to avoid confusion. # ... cla

[issue1142] code sample showing errors reading large files with py 2.5/3.0

2007-09-11 Thread christen
christen added the comment: Bug is still there but pb is solved, simply use oepn('file', 'U') see outputs : fichin=open('test.txt','U') ===> (2, 5, 0, 'final', 0) 2007-09-12 08:00:43 (500, 9.31236239624) (1000, 22.31236239624) (1500, 35.094000101089478) (2000, 47.8123

[issue1152] Bug in documentation for SimpleXMLRPCServer

2007-09-11 Thread Georg Brandl
Changes by Georg Brandl: -- assignee: -> georg.brandl nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1035] bytes buffer API needs to support read locking and/or PyBUF_LOCKDATA

2007-09-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Attaching the most recent patch (minor update from the second one i sent to the python-3000 mailing list to initialize ob_readonly_exports = 0 in the appropriate places). Current mailing list discussion is pointing out that the name LOCKDATA means something ot