On Oct 9, 9:46 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Thu, 9 Oct 2008 06:37:04 -0700 (PDT), WaterWalk <[EMAIL PROTECTED]> wrote:
> >Until Python 2.5, the exception object still uses ansi string. Thus,
> >in the following example:
>
> >f = open(u"\u6d4b.log")
>
> >Suppose the file
On Thu, 9 Oct 2008 06:37:04 -0700 (PDT), WaterWalk <[EMAIL PROTECTED]> wrote:
Until Python 2.5, the exception object still uses ansi string. Thus,
in the following example:
f = open(u"\u6d4b.log")
Suppose the file to open does not exist, the output message of the
exception maybe like:
[Errno 2
Until Python 2.5, the exception object still uses ansi string. Thus,
in the following example:
f = open(u"\u6d4b.log")
Suppose the file to open does not exist, the output message of the
exception maybe like:
[Errno 2] No such file or directory: u'\u6d4b.log'
This is not a clear message.
I fina