[issue5348] Documentation of format implies only strings and numbers are acceptable arguments

2009-02-23 Thread Eric Smith
Eric Smith added the comment: I looked and don't see where this error is. In fact, I don't see format() mentioned at all on the 2.6.1 page for builtin functions (http://docs.python.org/library/functions.html), which is a problem. What page are you looking at? __

[issue5348] Documentation of format implies only strings and numbers are acceptable arguments

2009-02-23 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r69895, r69896. (Added format() to the 2.x builtins doc in the latter.) -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue1054967] bdist_deb - Debian packager

2009-02-23 Thread Lukas Lueg
Lukas Lueg added the comment: Count me in -- nosy: +ebfe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue5019] Specifying common controls DLL in manifest

2009-02-23 Thread Martin v. Löwis
Martin v. Löwis added the comment: Here is a demo of how to make a nested DLL bind to comctl32 v6, even if the main application binds to a different version of comctl. The DLL has a ISOLATIONAWARE_MANIFEST_RESOURCE_ID resource. To see what happens, run Release\bindtest.exe, and invoke File/test

[issue5349] abstractmethod vs C++ pure virtual

2009-02-23 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r69901. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-02-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: After Bill added SSL's unwrap() method I modified my previous patch so that it shutdown the SSL layer before closing the data connection. I successfully tested it against proftpd, vsftpd and pyftpdlib TLS server [1]. If some python developer could give me an

[issue5350] Modification to "pairwise" in itertools recipes

2009-02-23 Thread Matteo Dell'Amico
New submission from Matteo Dell'Amico : I feel that the "pairwise" recipe could be slightly more elegant if "for elem in b: break" became a simpler next(b) (or b.next() for Python 2.x). It is also more natural to modify the recipes to suit one's needs (e.g., returning items with a given gap betwe

[issue5350] Modification to "pairwise" in itertools recipes

2009-02-23 Thread Georg Brandl
Georg Brandl added the comment: Assigning to Raymond. Note that "for elem in b: break" and "next(b)" are not equivalent when b is empty/exhausted. -- assignee: georg.brandl -> rhettinger nosy: +rhettinger ___ Python tracker

[issue5351] Python tutorial error

2009-02-23 Thread Tsue
New submission from Tsue : Hi, Dont know if this is the right place for this kind of bug report. I just started with python last week, so I've been using the Built in tutorial. However, I came across a major issue, and though it took me a while, I figured it out. The excersise on Reading and Wr

[issue5351] Python tutorial error

2009-02-23 Thread Georg Brandl
Georg Brandl added the comment: What exactly would you want to change? There's a parenthetical remark "an existing file with the same name will be erased" just after the 'w' is described. -- nosy: +georg.brandl ___ Python tracker

[issue5350] Modification to "pairwise" in itertools recipes

2009-02-23 Thread Matteo Dell'Amico
Matteo Dell'Amico added the comment: Georg, you're right, there's a StopIteration to catch. My thinko was mistaking the function for a generator where the exception propagation would have done the right thing. The amended version now becomes next(b) for x, y in zip(a, b): yield x, y ...which i

[issue5351] Python tutorial error

2009-02-23 Thread Tsue
Tsue added the comment: Hi Georg, Needs to be clearer... Everything else up until this point is easy to read and understand. I think its more and issue of suddenly changing the structure of the text than the text itself. It actually feels rushed. One major thing, for me at least, at Methods of

[issue5350] Modification to "pairwise" in itertools recipes

2009-02-23 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5352] Missing 'non overlapping' clause in str.count documentation

2009-02-23 Thread Matteo Dell'Amico
New submission from Matteo Dell'Amico : The str.count (http://docs.python.org/dev/py3k/library/stdtypes.html) documentation does not report that it returns the number of *non-overlapping* instances. For example, I expected 'aaa'.count('aa') to be 2 and not 1. Compare this with the string module d

[issue5352] Missing 'non overlapping' clause in str.count documentation

2009-02-23 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r69905. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue5353] Improve IndexError messages with actual values

2009-02-23 Thread Terry J. Reedy
New submission from Terry J. Reedy : Currently: >>> l=[]; l[1] # 3.0.1 ... IndexError: list index out of range Assuming that negative indexes are converted before the range test is made, I would like to see "IndexError: list index 1 not in range(0)", ie, "IndexError: list index {0} not in range(

[issue5348] Documentation of format implies only strings and numbers are acceptable arguments

2009-02-23 Thread Mitchell Model
Mitchell Model added the comment: Sorry -- I was too quick to include 2.6 and 2.7 in the bug tracker entry. I usually check 3 vs 2.6 but since format is in 2.6 I didn't check the 2.6 doc page to discover, as you did, that it wasn't documented. -- -- --- Mitchell Added file: http

[issue725149] _sre.MAGIC

2009-02-23 Thread daniel garay
daniel garay added the comment: I need help to resolve this problem caused when program a scheduled task whit CRONTAB, generated result: Traceback (most recent call last): File "ftp_eme.py", line 12, in ? import datetime, os, ftplib File "/usr/local/lib/python2.6/ftplib.py", line 46, in

[issue5243] Missing dependency in distutils build

2009-02-23 Thread Patrick Gerken
Patrick Gerken added the comment: Thank you, tarek The sys.path should have been obvious. Added file: http://bugs.python.org/file13159/test_install_lib.py ___ Python tracker ___ ___

[issue5350] Modification to "pairwise" in itertools recipes

2009-02-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Applied in r69908 . -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue4565] Rewrite the IO stack in C

2009-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oh, and test_largefile and test_debussy as well :) Le dimanche 22 février 2009 à 23:00 +, Antoine Pitrou a écrit : > Antoine Pitrou added the comment: > > There's also test_univnewlines, I think. ___ Python tracker

[issue5350] Modification to "pairwise" in itertools recipes

2009-02-23 Thread David W. Lambert
David W. Lambert added the comment: Nice. I had thought of this a while ago but found counter example, probably using the empty iterator def f(): raise StopIteration yield I didn't realize "next" had optional argument. ___ Python tracker

[issue5350] Modification to "pairwise" in itertools recipes

2009-02-23 Thread Georg Brandl
Georg Brandl added the comment: Shame on me, I forgot about the optional argument too. ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4565] Rewrite the IO stack in C

2009-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: test_largefile is done. One more question: what shall we do with _pyio.OpenWrapper? Should it become the default exported "open" object? ___ Python tracker _

[issue5354] Add test.support.import_python_only

2009-02-23 Thread Nick Coghlan
New submission from Nick Coghlan : Add test.support.import_python_only as per http://mail.python.org/pipermail/python-dev/2009-February/086387.html Also add an equivalent to test.test_support in 2.x (I haven't checked yet if importlib is available in 2.x, so the implementation may need to be a l

[issue725149] SRE bugs with capturing groups in negative assertions

2009-02-23 Thread Georg Brandl
Georg Brandl added the comment: Please do not hijack existing issues. In the case of this problem, do not open an issue at all, but ask in a Python mailing list or newsgroup. -- components: +Regular Expressions -Windows nosy: +georg.brandl title: _sre.MAGIC -> SRE bugs with capturing gr

[issue5351] Python tutorial error

2009-02-23 Thread Georg Brandl
Georg Brandl added the comment: I'm sorry, but isn't it a bit nonsensical to talk about file I/O if you don't have files that contain anything? Also, it should be clear that the object "f" is just the same that was opened before. Yes, this is a tutorial, but no, it is not meant to educate a per

[issue5350] Modification to "pairwise" in itertools recipes

2009-02-23 Thread Matteo Dell'Amico
Matteo Dell'Amico added the comment: great Raymond! :) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5354] Add test.support.import_python_only

2009-02-23 Thread Brett Cannon
Brett Cannon added the comment: On Mon, Feb 23, 2009 at 13:19, Nick Coghlan wrote: > > New submission from Nick Coghlan : > > Add test.support.import_python_only as per > http://mail.python.org/pipermail/python-dev/2009-February/086387.html > > Also add an equivalent to test.test_support in 2.

[issue5355] Expat parser error constants are string descriptions

2009-02-23 Thread Suraj Barkale
New submission from Suraj Barkale : All the error constants in `xml.parsers.expat.errors` are strings. However, when expat raises an ExpatError exception, ExpatError.code attribute is a number. There seems to be no way of associating ExpatError with a corresponding error code from `xml.parsers.ex

[issue5355] Expat parser error constants are string descriptions

2009-02-23 Thread Suraj Barkale
Suraj Barkale added the comment: In the snippet `ElementTree.parse('')` should be replaced by `ElementTree.fromstring('')`. ___ Python tracker ___

[issue5356] Use of the `curses' resource not enabled

2009-02-23 Thread Steve Owens
New submission from Steve Owens : I just did an SVN checkout of the 2.7 source, ran the following in order: configure make make test When I run make test it gets to the lines: test_curses test_curses skipped -- Use of the `curses' resource not enabled but I have ncurses installed and enabled.

[issue5356] Use of the `curses' resource not enabled

2009-02-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: You have to pass the -ucurses options to regrtest.py. See regrtest.py -h. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker _

[issue5357] Last paragraph of urllib.request.urlopen documentation is garbled

2009-02-23 Thread Mitchell Model
New submission from Mitchell Model : The last two sentences of the last paragraph of the documentation of urllib.request.urlopen are shown below. I have broken up the text to comment on places where it appears to be garbled. It might be easier to just rewrite the two sentences rather than tryi

[issue5356] Use of the `curses' resource not enabled

2009-02-23 Thread Steve Owens
Steve Owens added the comment: Benjamin, I ran the regrtest.py file with the -ucurses option and didn't get the error. However, I don't see how it is possible to send the -ucurses option through via the make file. Steve Owens > > Benjamin Peterson added the comment: > > You have to pass the

[issue5356] Use of the `curses' resource not enabled

2009-02-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Mon, Feb 23, 2009 at 8:02 PM, Steve Owens wrote: > > Steve Owens added the comment: > > Benjamin, > > I ran the regrtest.py file with the -ucurses option and didn't get the error. > > However, I don't see how it is possible to send the -ucurses option >

[issue5356] Use of the `curses' resource not enabled

2009-02-23 Thread Steve Owens
Steve Owens added the comment: I know that this issue is not valid, but I believe that it ought to be searchable since I am sure I am not the last person to ask this question and I don't think the knowledge is currently documented any where. ___ Python tracke

[issue5356] Use of the `curses' resource not enabled

2009-02-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Mon, Feb 23, 2009 at 8:36 PM, Steve Owens wrote: > > Steve Owens added the comment: > > I know that this issue is not valid, but I believe that it ought to be > searchable since I am sure I am not the last person to ask this question > and I don't think

[issue4565] Rewrite the IO stack in C

2009-02-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Mon, Feb 23, 2009 at 2:26 PM, Antoine Pitrou wrote: > test_largefile is done. Thanks. > One more question: what shall we do with _pyio.OpenWrapper? > Should it become the default exported "open" object? No, I think it was just meant to be used when _py

[issue5337] Scanner class in re module undocumented

2009-02-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Any opinions on whether this was intended to be exposed? -- assignee: georg.brandl -> effbot nosy: +effbot, rhettinger ___ Python tracker ___

[issue5351] Python tutorial error

2009-02-23 Thread Tsue
Tsue added the comment: I'm not new to computers, but I am very new to python and its symantics. I dont mean to be silly about this, but I do think little things count in the world. If lets say the file being loaded was the README file, then at least there would be some material to display. I'm

[issue3446] center, ljust and rjust are inconsistent with unicode parameters

2009-02-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: In Py2.x, I think the desired behavior should match str.join(). If either input in unicode the output is unicode. If both are ascii, ascii should come out. For Py3.x, I think the goal was to have str.join() enforce that both inputs are unicode. If either

[issue4847] csv fails when file is opened in binary mode

2009-02-23 Thread John Machin
John Machin added the comment: Sorry, folks, we've got an understanding problem here. CSV files are typically NOT created by text editors. They are created e.g. by "save as csv" from a spreadsheet program, or as an output option by some database query program. They can have just about any charac

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-02-23 Thread Jeff Oyama
Jeff Oyama added the comment: Thank you Giampaolo, it works just as I was hoping, =] I tested it on glftpd using python 2.6.1. Added file: http://bugs.python.org/file13161/unnamed ___ Python tracker ___