Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #26448

Re: Eclipse and the Python plugin

Date 2012-08-03 18:04 +0100
From lipska the kat <lipskathekat@yahoo.co.uk>
Newsgroups comp.lang.python
Subject Re: Eclipse and the Python plugin
References <-rSdnaVYT4PNKobNnZ2dnUVZ7r2dnZ2d@bt.com> <ece207ea-ef0c-4b69-aa12-ecdd80318a34@a4g2000vbt.googlegroups.com> <doSdnZCNi6scbobNnZ2dnUVZ7sOdnZ2d@bt.com> <501bff1b$0$29978$c3e8da3$5496439d@news.astraweb.com>
Message-ID <BsWdnXs5T4oJmYHNnZ2dnUVZ8rOdnZ2d@bt.com> (permalink)

Show all headers | View raw


On 03/08/12 17:40, Steven D'Aprano wrote:
> On Fri, 03 Aug 2012 16:51:26 +0100, lipska the kat wrote:
>
>> I can write a
>> Python class and call it Foo and save it in a file called Bar and it's
>> no big deal (at least Eclipse doesn't get excited) If I try that in Java
>> the sky falls in.
>
> :)
>
> Correct. Python does not require, or even encourage, the one-class-per-
> file rule of Java.

snip

Well it's actually one public class per file, you can have as many 
package visible classes as you like not to mention inner classes and 
anonymous classes, but I know what you mean.

I used to know a developer who though that any file (class) that 
contained more lines of code than could fit on an A4 sheet of paper at 
10 points was too large ... a little extreme perhaps.

> Mind you, both of those are seriously large, Decimal has 117 methods and
> Context around 70-80 (I stopped counting). So as I said, that's about the
> upper limit for what I consider reasonable in a single module.

117 methods seems a lot doesn't it. I'm still trying to get my head 
around Python packages, I think Eclipse will help me with this and the 
whole module mix of functions and classes is taking a while to get used 
to. The standard included libraries are pretty impressive though and it 
is certainly easier to write quick throwaway prototypes in Python. I 
guess this will become even quicker once I understand the language better.

lipska

-- 
Lipska the Kat: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Eclipse and the Python plugin lipska the kat <lipskathekat@yahoo.co.uk> - 2012-08-03 12:34 +0100
  Re: Eclipse and the Python plugin Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-03 13:10 +0100
    Re: Eclipse and the Python plugin lipska the kat <lipskathekat@yahoo.co.uk> - 2012-08-03 13:23 +0100
      Re: Eclipse and the Python plugin Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-03 13:40 +0100
        Re: Eclipse and the Python plugin lipska the kat <lipskathekat@yahoo.co.uk> - 2012-08-03 14:32 +0100
  Re: Eclipse and the Python plugin rusi <rustompmody@gmail.com> - 2012-08-03 06:54 -0700
    Re: Eclipse and the Python plugin lipska the kat <lipskathekat@yahoo.co.uk> - 2012-08-03 16:51 +0100
      Re: Eclipse and the Python plugin Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-08-03 16:40 +0000
        Re: Eclipse and the Python plugin lipska the kat <lipskathekat@yahoo.co.uk> - 2012-08-03 18:04 +0100
          Re: Eclipse and the Python plugin rusi <rustompmody@gmail.com> - 2012-08-03 21:54 -0700
    Re: Eclipse and the Python plugin Temia Eszteri <lamialily@cleverpun.com> - 2012-08-03 13:05 -0700
  Re: Eclipse and the Python plugin Cousin Stanley <cousinstanley@gmail.com> - 2012-08-03 23:29 +0000
    Re: Eclipse and the Python plugin lipska the kat <lipskathekat@yahoo.co.uk> - 2012-08-04 08:46 +0100

csiph-web