Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sometimes the python shell cannot recognize the presence of an attribute.

1 view
Skip to first unread message

Justin Park

unread,
Mar 30, 2010, 6:50:18 PM3/30/10
to pytho...@python.org
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

unread,
Mar 30, 2010, 6:57:37 PM3/30/10
to pytho...@python.org
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.

Steve Holden

unread,
Mar 30, 2010, 7:52:25 PM3/30/10
to pytho...@python.org
Justin Park wrote:
> 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?
>
You might try Googling for "expandtabs". This isn't a new problem,
though I agree it can be very vexing when it's new to you ;-)

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS: http://holdenweb.eventbrite.com/

Aahz

unread,
Apr 12, 2010, 12:30:28 PM4/12/10
to
In article <mailman.1341.1269989...@python.org>,

Justin Park <h...@rice.edu> 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 (aa...@pythoncraft.com) <*> http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan

Simon Brunning

unread,
Apr 12, 2010, 1:43:14 PM4/12/10
to raraoz, python-list
2010/4/12 Ricardo Aráoz <rica...@gmail.com>:
> Because .....

... Guido says so: http://www.python.org/dev/peps/pep-0008/

--
Cheers,
Simon B.

0 new messages