2008/8/28 Steve Holden <[EMAIL PROTECTED]>:
> Guido van Rossum wrote:
>> On Wed, Aug 27, 2008 at 6:21 PM, Steven D'Aprano <[EMAIL PROTECTED]>
wrote:
>>> On Thu, 28 Aug 2008 08:39:01 am Georg Brandl wrote:
Fredrik Lundh schrieb:
> (using 3.0a4)
>
> >>> exec(open("file.py"))
>
>
On Fri, 29 Aug 2008, Greg Ewing wrote:
Steven D'Aprano wrote:
I don't think M.__file__ should lie and say it was loaded from a file that
it wasn't loaded from. It's useful to be able to look at a module and see
what file it was actually loaded from.
On the other hand, it could be useful to
Steven D'Aprano wrote:
I don't think M.__file__ should lie and say it was loaded from a file
that it wasn't loaded from. It's useful to be able to look at a module
and see what file it was actually loaded from.
On the other hand, it could be useful to be able to find
the source file for a mod
Guido van Rossum wrote:
> On Wed, Aug 27, 2008 at 6:21 PM, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>> On Thu, 28 Aug 2008 08:39:01 am Georg Brandl wrote:
>>> Fredrik Lundh schrieb:
(using 3.0a4)
>>> exec(open("file.py"))
Traceback (most recent call last):
File "
On Thu, 28 Aug 2008 01:38:14 pm Guido van Rossum wrote:
> On Wed, Aug 27, 2008 at 6:21 PM, Steven D'Aprano <[EMAIL PROTECTED]>
wrote:
...
> > I don't think M.__file__ should lie and say it was loaded from a
> > file that it wasn't loaded from. It's useful to be able to look at
> > a module and see
On Wed, Aug 27, 2008 at 6:21 PM, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Thu, 28 Aug 2008 08:39:01 am Georg Brandl wrote:
>> Fredrik Lundh schrieb:
>> > (using 3.0a4)
>> >
>> > >>> exec(open("file.py"))
>> >
>> > Traceback (most recent call last):
>> >File "", line 1, in
>> > TypeErro
On Thu, 28 Aug 2008 08:39:01 am Georg Brandl wrote:
> Fredrik Lundh schrieb:
> > (using 3.0a4)
> >
> > >>> exec(open("file.py"))
> >
> > Traceback (most recent call last):
> >File "", line 1, in
> > TypeError: exec() arg 1 must be a string, file, or code object, not
> > TextIOWrapper
> >
> >
2008/8/27 Fredrik Lundh <[EMAIL PROTECTED]>:
> Fredrik Lundh wrote:
>
>> (using 3.0a4)
>
> ahem. I could have sworn that I installed a beta, but I guess the Windows
builds weren't fully synchronized when I did that. I still get the same
error after updating to 3.0b2, though.
It's still there. It
Georg Brandl wrote:
Fredrik Lundh schrieb:
(using 3.0a4)
>>> exec(open("file.py"))
Traceback (most recent call last):
File "", line 1, in
TypeError: exec() arg 1 must be a string, file, or code object, not
TextIOWrapper
so what's "file" referring to here?
(the above works under 2.5,
Fredrik Lundh schrieb:
> (using 3.0a4)
>
> >>> exec(open("file.py"))
> Traceback (most recent call last):
>File "", line 1, in
> TypeError: exec() arg 1 must be a string, file, or code object, not
> TextIOWrapper
>
> so what's "file" referring to here?
>
> (the above works under 2.5, of c
Fredrik Lundh wrote:
(using 3.0a4)
ahem. I could have sworn that I installed a beta, but I guess the
Windows builds weren't fully synchronized when I did that. I still get
the same error after updating to 3.0b2, though.
(the download page still says "This is an alpha release", btw.)
_
(using 3.0a4)
>>> exec(open("file.py"))
Traceback (most recent call last):
File "", line 1, in
TypeError: exec() arg 1 must be a string, file, or code object, not
TextIOWrapper
so what's "file" referring to here?
(the above works under 2.5, of course)
___
12 matches
Mail list logo