Re: Sometimes the python shell cannot recognize the presence of anattribute.

Discussion in 'Python' started by Justin Park, Mar 30, 2010.

  1. Justin Park

    Justin Park Guest

    Sorry, my mistake.

    The real problem is this.
    When I started working on the package, somehow all of indentations were
    made by space-bars instead of using tabs.
    But when I am implementing my own on top of it, I still use tabs to make
    indentations.

    This is causing a problem.
    I have to either conform to their style and change all my tabs to the
    space-bars making up those spaces,
    or change all indentations in the previous implementations by tabs.
    But both the previous implementations and what I am going to do are also
    so large that either way is not going to be efficient.

    What can I do in order to resolve this issue?

    Thanks,
    Justin.

    Justin Park wrote:
    > Sometimes when I am working on an already generated package,
    > the python shell cannot perceive the presence of an attribute that I
    > implemented on top of what was there.
    >
    > Is there a way to have it perceive newly created attributes?
    >
    > Thanks,
    > Justin.
    >
    >
     
    Justin Park, Mar 30, 2010
    #1
    1. Advertisements

  2. Justin Park

    Aahz Guest

    In article <>,
    Justin Park <> wrote:
    >
    >The real problem is this. When I started working on the package,
    >somehow all of indentations were made by space-bars instead of using
    >tabs. But when I am implementing my own on top of it, I still use tabs
    >to make indentations.


    Stop using TAB. Allowing TAB was a mistake. Spaces are the One True
    Way when formatting Python code.
    --
    Aahz () <*> http://www.pythoncraft.com/

    "It is easier to optimize correct code than to correct optimized code."
    --Bill Harlan
     
    Aahz, Apr 12, 2010
    #2
    1. Advertisements

  3. Simon Brunning, Apr 12, 2010
    #3
    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. Nehmo Sergheyev
    Replies:
    1
    Views:
    691
    Andrew Urquhart
    May 9, 2004
  2. Marcin Vorbrodt

    ::std sometimes needed, sometimes not

    Marcin Vorbrodt, Sep 16, 2003, in forum: C++
    Replies:
    24
    Views:
    1,101
    Jerry Coffin
    Sep 17, 2003
  3. Replies:
    1
    Views:
    654
    gkelly
    Nov 29, 2006
  4. Randy Smith
    Replies:
    2
    Views:
    674
    Randy Smith
    Apr 24, 2007
  5. Stef Mientki
    Replies:
    0
    Views:
    320
    Stef Mientki
    Oct 18, 2008
  6. Justin Park
    Replies:
    0
    Views:
    331
    Justin Park
    Mar 30, 2010
  7. Sébastien Barthélemy

    __file__ is sometimes absolute, sometimes relative

    Sébastien Barthélemy, Oct 1, 2010, in forum: Python
    Replies:
    1
    Views:
    780
    Arnaud Delobelle
    Oct 1, 2010
  8. paul reed

    Custom Control Width sometimes has a value...sometimes doesn't

    paul reed, Feb 17, 2004, in forum: ASP .Net Building Controls
    Replies:
    8
    Views:
    341
    Jeffrey Tan[MSFT]
    Feb 21, 2004
Loading...