Re: Python IDE/Eclipse

2011-08-27 Thread UncleLaz
On Aug 26, 5:18 pm, Dave Boland  wrote:
> I'm looking for a good IDE -- easy to setup, easy to use -- for Python.
>   Any suggestions?
>
> I use Eclipse for other projects and have no problem with using it for
> Python, except that I can't get PyDev to install.  It takes forever,
> then produces an error that makes no sense.
>
> An error occurred while installing the items
>    session context was:(profile=PlatformProfile,
> phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install,
> operand=null --> [R]org.eclipse.cvs 1.0.400.v201002111343,
> action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBu 
> ndleAction).
>    Cannot connect to keystore.
>    This trust engine is read only.
>    The artifact file for
> osgi.bundle,org.eclipse.cvs,1.0.400.v201002111343 was not found.
>
> Any suggestions on getting this to work?
>
> Thanks,
> Dave

I use Aptana Studio 3, it's pretty good and it's based on eclipse
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Why do class methods always need 'self' as the first parameter?

2011-09-01 Thread UncleLaz
On Aug 31, 5:35 pm, "T. Goodchild"  wrote:
> I’m new to Python, and I love it.  The philosophy of the language (and
> of the community as a whole) is beautiful to me.
>
> But one of the things that bugs me is the requirement that all class
> methods have 'self' as their first parameter.  On a gut level, to me
> this seems to be at odds with Python’s dedication to simplicity.
>
> For example, consider Python’s indent-sensitive syntax.  Although
> other languages didn’t use indentation to specify scope, programmers
> always used indentation anyways.  Making indentation took a common
> practice, made it a rule, and the result was a significantly improved
> signal-to-noise ratio in the readability of Python code.
>
> So why is 'self' necessary on class methods?  It seems to me that the
> most common practice is that class methods *almost always* operate on
> the instance that called them.  It would make more sense to me if this
> was assumed by default, and for "static" methods (methods that are
> part of a class, but never associated with a specific instance) to be
> labelled instead.
>
> Just curious about the rationale behind this part of the language.

It's required to make distinction between objects inside the calss and
outside of it. Seems pretty logical to me.
-- 
http://mail.python.org/mailman/listinfo/python-list