Re: strang thing:

Discussion in 'Python' started by Chris Angelico, Sep 6, 2011.

  1. 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
     
    Chris Angelico, Sep 6, 2011
    #1
    1. Advertisements

  2. Chris Angelico

    W. eWatson Guest

    Re: strange thing:

    CA, Did you respond to my off-NG msg about FORTRAN? Perhaps it's caught
    in my spam on the net.
     
    W. eWatson, Sep 7, 2011
    #2
    1. Advertisements

  3. Re: strange thing:

    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
     
    Chris Angelico, Sep 7, 2011
    #3
  4. Chris Angelico

    W. eWatson Guest

    Re: strange thing:

    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.
     
    W. eWatson, Sep 7, 2011
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David
    Replies:
    4
    Views:
    575
    David
    Sep 12, 2003
  2. Tjerk Wolterink

    Very Strang XML problem

    Tjerk Wolterink, Nov 12, 2004, in forum: XML
    Replies:
    1
    Views:
    511
    Richard Tobin
    Nov 12, 2004
  3. Stijn Oude Brunink
    Replies:
    3
    Views:
    683
    Ron Natalie
    Nov 12, 2004
  4. Replies:
    3
    Views:
    427
    Karl Heinz Buchegger
    Mar 30, 2005
  5. Gustavo G. Rondina

    malloc's strang behavior

    Gustavo G. Rondina, Jul 21, 2004, in forum: C Programming
    Replies:
    11
    Views:
    648
    Keith Thompson
    Jul 23, 2004
  6. Nicole
    Replies:
    36
    Views:
    1,489
    Awful Dog Autry
    Mar 1, 2009
  7. Zam
    Replies:
    1
    Views:
    443
    Mark Schupp
    Mar 14, 2005
  8. hehongyu2000

    Strang browser behavior

    hehongyu2000, Oct 4, 2005, in forum: ASP General
    Replies:
    5
    Views:
    264
    Evertjan.
    Oct 5, 2005
Loading...