[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?

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.
Watch the message box, and the dialog created from within the DLL. For
comparison, rename the manifest.0 to .manifest, and watch the message
box also change its button style. Tested on XP.

The sources are built with VS2008. To simplify the experiment, both the
main application and the DLL links msvcrt statically.

Added file: http://bugs.python.org/file13155/bindtest.zip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ok on the patch I could start
writing tests and documentation.

[1] http://code.google.com/p/pyftpdlib/source/browse/trunk/demo/tls_ftpd.py

--
keywords: +patch
Added file: http://bugs.python.org/file13156/ftplib.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 between them, or convert the recipe to
k-wise iteration).

--
assignee: georg.brandl
components: Documentation
messages: 82626
nosy: della, georg.brandl
severity: normal
status: open
title: Modification to "pairwise" in itertools recipes

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Writing Files isnt very clear on the object
f. And it isnt even stated, that the use of 'w' in the code will
actually over right the file, not append to it. Which didnt seem
logical, but I guess thats why 'r+' is there.

Please correct this in the docs, its a bit frustrating for a nooob.

--
components: None
messages: 82628
nosy: Tsuedesu
severity: normal
status: open
title: Python tutorial error
versions: Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 is not that attractive anymore, also because it's slower. Sorry
for the error.

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 File object -
it sudden expects that I have loaded an object 'f', the real odd
thing, it doesnt say that this file should contain some lines. See,
this is a tutorial, and up until here, it seemed to assume
non-programmer audience.

Be clearer, that's all I'm really asking.

BTW: Thanks for the create work, I look forward to learning more about
Python and programming in it.

Tsue.
(I know I'm a noob and a pain)

On Mon, Feb 23, 2009 at 3:47 PM, Georg Brandl  wrote:
>
> 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 
> 
> ___
>

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 documentation,
where the non-overlapping clause is reported.

--
assignee: georg.brandl
components: Documentation
messages: 82632
nosy: della, georg.brandl
severity: normal
status: open
title: Missing 'non overlapping' clause in str.count documentation

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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({1})".format(,
len()).

The 'in' operator still works with Py3 range objects, so the suggested
Python-level check is still valid.

I did not add 2.6/3.0 only because I don't know if improved error
messages are acceptable in bug-fix releases.

Same request for other sequence IndexError messages:
>>> t=(); t[0]
IndexError: tuple index out of range

>>> s=''; s[0] # 3.0
IndexError: string index out of range

>>> b=b''; b[0]
IndexError: index out of range # *** 'bytes' uniquely missing here ***

>>> ba=bytearray(b); ba[0]
IndexError: bytearray index out of range

Is the check factored out as a macro (or function) so one change would
change all of these?

Similar errors with dict (tersely) give the bad key already:
>>> d={}; d[1]
...
KeyError: 1

-
The may be superficially similar to request #654558, but that was vague
and was closed as a duplicate of #569574, which is definitely about a
different issue.  I did not see anything else in the search results.

--
components: Interpreter Core
messages: 82634
nosy: tjreedy
severity: normal
status: open
title: Improve IndexError messages with actual values
type: feature request
versions: Python 2.7, Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/file13157/unnamed

___
Python tracker 

___
Re: [issue5348] Documentation of format implies
only strin
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

___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ?
import socket
  File "/usr/local/lib/python2.6/socket.py", line 50, in ?
import _ssl
  File "/usr/local/lib/python2.6/_ssl.py", line 58, in ?
import textwrap
  File "/usr/local/lib/python2.6/textwrap.py", line 10, in ?
import string, re
  File "/usr/local/lib/python2.6/string.py", line 81, in ?
import re as _re
  File "/usr/local/lib/python2.6/re.py", line 105, in ?
import sre_compile
  File "/usr/local/lib/python2.6/sre_compile.py", line 17, in ?
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
AssertionError: SRE module mismatch
No message, no subject; hope that's ok

--
components: +Windows -Regular Expressions
nosy: +daniel_py
title: SRE bugs with capturing groups in negative assertions -> _sre.MAGIC
type:  -> compile error
versions: +Python 2.6 -Python 2.3
Added file: http://bugs.python.org/file13158/ftp_eme.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 little different)

--
assignee: ncoghlan
messages: 82643
nosy: brett.cannon, ncoghlan
priority: normal
severity: normal
status: open
title: Add test.support.import_python_only
type: feature request

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 groups in negative assertions

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 person
completely new to computers about files etc.

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.x (I haven't checked
> yet if importlib is available in 2.x, so the implementation may need to
> be a little different)

Importlib is in 2.7.

Added file: http://bugs.python.org/file13160/unnamed

___
Python tracker 

___On Mon, Feb 23, 2009 at 13:19, Nick Coghlan 
rep...@bugs.python.org> 
wrote:

New submission from Nick Coghlan ncogh...@gmail.com>:

Add test.support.import_python_only as per
http://mail.python.org/pipermail/python-dev/2009-February/086387.html"; 
target="_blank">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 little different)Importlib is in 2.7. 

___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.expat.errors.

Following code snippet should print "Ignore empty file" but in Python
2.6 it raises ExpatError.

from xml.etree import ElementTree
from xml.parsers import expat

try:
ElementTree.parse('')
except expat.ExpatError as e:
if e.code == expat.errors.XML_ERROR_NO_ELEMENTS:
print "Ignore empty file"
else:
raise

--
components: XML
messages: 82648
nosy: suraj
severity: normal
status: open
title: Expat parser error constants are string descriptions
type: behavior
versions: Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.  In fact I was using the
python curses library on my machine when I was running the latest Fedora
YUM install of Python.  

So I am not sure if anyone knows what might be responsible for this message.

--
components: Build
messages: 82650
nosy: st...@integrityintegrators.net
severity: normal
status: open
title: Use of the `curses' resource not enabled
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 trying to make the 
corrections I'm suggesting.

The urlopen function from the previous version,

"the previous version" --> "previous versions"

Python 2.6 and earlier, of the module urllib has been discontinued as 
urlopen can return the file-object as the previous.

 either one or more words are missing from the end of the 
sentence or the last part of the sentence starting with "as" needs 
repair

The proxy handling, 

"handling" --> "handler"?

which in earlier 

"earlier" --> "earlier versions"?

was passed as a dict parameter to urlopen can be availed 

need comma after "urlopen"

"availed" --> "obtained"
or better, perhaps: "can be obtained by using ProxyHandler 
objects" instead of "by the use of"

by the use of ProxyHandler objects.

--
assignee: georg.brandl
components: Documentation
messages: 82652
nosy: MLModel, georg.brandl
severity: normal
status: open
title: Last paragraph of urllib.request.urlopen documentation is garbled
versions: Python 3.0, Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 -ucurses options to regrtest.py. See regrtest.py -h.
>
> --
> nosy: +benjamin.peterson
> resolution:  -> invalid
> status: open -> closed
>
> ___
> Python tracker 
> 
> ___
>

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
> through via the make file.

To enable all the options, you can use "make testall". Otherwise you
can give custom switches to regrtest.py with the TESTOPTS variable.
"make test TESTOPTS=-ucurses"

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the knowledge is currently documented any where.

I added a note to the README in r69924. I hope that does the trick.

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 _pyio is the builtin
open implementation.

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 simply saying, the tutorial does not actual show what happens, it
implies the reader has some knowledge of programming and what is
required to do the tutorial and get the same outputs. I dont read
minds, and I only figured out what was going on after watching the
file byte size go to zero, or destroying a copy of the README file. It
would simply be good writing to be more explicit and accurate, more
detail is better than less. If this is an issue in improving the
tutorial, then, I have been asking too much.

- just on a side note, does the file need to be reloaded each time an
EOF is reached when using f.read or f.readlines?

Tsue.

On Mon, Feb 23, 2009 at 11:52 PM, Georg Brandl  wrote:
>
> 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 person
> completely new to computers about files etc.
>
> ___
> Python tracker 
> 
> ___
>

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 are bytes, then you have to know the
encoding.

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 character in a field,
including \r and \n. Fields containing those characters should be quoted
(just like a comma) by the csv file producer. A csv reader should be
capable of reproducing the original field division. Here for example is
a dump of a little file I just created using Excel 2003:

C:\devel\csv>\python26\python -c "print repr(open('book1.csv','rb').read())"
'Field1,"Field 2 has a\nvery long\nheading",Field3\r\n1.11,2.22,3.33\r\n'

Inserting \n into a text field in Excel (using Alt-Enter) is a
well-known user trick.

Here's what we get from Python 2.6.1:
C:\devel\csv>\python26\python -c "import csv; print
repr(list(csv.reader(open('book1.csv','rb'"
[['Field1', 'Field 2 has a\nvery long\nheading', 'Field3'], ['1.11',
'2.22', '3.33']]
and the same by design all the way back to Python 2.3's csv module and
its ancestor, the ObjectCraft csv module.

However with Python 3.0.1 we get:
C:\devel\csv>\python30\python -c "import csv;
print(repr(list(csv.reader(open('book1.csv','rb')"
Traceback (most recent call last):
  File "", line 1, in 
_csv.Error: iterator should return strings, not bytes (did you open the
file in text mode?)

This sentence in the documentation is NOT an error: """If csvfile is a
file object, it must be opened with the ‘b’ flag on platforms where that
makes a difference."""

The problem *IS* a "biggie".

This paragraph in the documentation (evidently introduced in 2.5) is
rather confusing:"""The parser is quite strict with respect to
multi-line quoted fields. Previously, if a line ended within a quoted
field without a terminating newline character, a newline would be
inserted into the returned field. This behavior caused problems when
reading files which contained carriage return characters within fields.
The behavior was changed to return the field without inserting newlines.
As a consequence, if newlines embedded within fields are important, the
input should be split into lines in a manner which preserves the newline
characters.""" Some examples of what it is talking about would be a very
good idea.

--
nosy: +sjmachin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___Thank you Giampaolo, it works just as I was hoping, =] I tested it on glftpd 
using python 2.6.1. 
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com