Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: strang thing:

Reply
Thread Tools

Re: strang thing:

 
 
Chris Angelico
Guest
Posts: n/a
 
      09-06-2011
2011/9/6 守æ*ªå¾…å…” <>:
> Â*Â*Â* file = open(filename,'r')


> when iÂ* addÂ*Â*Â* (date,open,high,low,close,vol,adjclose) = (row[0], row[1],


You're assigning to the name "open", which is shadowing the built-in
of the same name. The second time through the loop, you're not calling
the usual open() function, you're trying to call your string. That's
what your error is telling you.

Hope that helps!

ChrisA
 
Reply With Quote
 
 
 
 
W. eWatson
Guest
Posts: n/a
 
      09-07-2011
CA, Did you respond to my off-NG msg about FORTRAN? Perhaps it's caught
in my spam on the net.
 
Reply With Quote
 
 
 
 
Chris Angelico
Guest
Posts: n/a
 
      09-07-2011
On Wed, Sep 7, 2011 at 12:43 PM, W. eWatson <> wrote:
> CA, Did you respond to my off-NG msg about FORTRAN? Perhaps it's caught in
> my spam on the net.


No, I didn't; as someone else pointed out, you'll get better results
asking on a dedicated Fortran list.

ChrisA
 
Reply With Quote
 
W. eWatson
Guest
Posts: n/a
 
      09-07-2011
On 9/6/2011 7:48 PM, Chris Angelico wrote:
> On Wed, Sep 7, 2011 at 12:43 PM, W. eWatson<> wrote:
>> CA, Did you respond to my off-NG msg about FORTRAN? Perhaps it's caught in
>> my spam on the net.

>
> No, I didn't; as someone else pointed out, you'll get better results
> asking on a dedicated Fortran list.
>
> ChrisA

OK.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
strang function pointer from faq book (help) tomailmelookatbottom@rediffmail.com C++ 3 03-30-2005 08:36 AM
Very Strang XML problem Tjerk Wolterink XML 1 11-12-2004 05:28 PM
strang behaviour std:vector and XString in VC6.0 Stijn Oude Brunink C++ 3 11-12-2004 01:38 PM
Strang problem during vcr recording of a dvd. .Jack Brody DVD Video 5 06-28-2004 06:11 AM
a strang problem when i change a globe variable's value David Java 4 09-12-2003 05:37 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57