A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/105246.html below:

Class Variable Question

Class Variable QuestionAlex Martelli aleaxit at yahoo.com
Wed Apr 11 17:03:23 EDT 2001
"D-Man" <dsh8290 at rit.edu> wrote in message
news:mailman.987012138.32047.python-list at python.org...
> On Wed, Apr 11, 2001 at 11:56:07AM +0200, Alex Martelli wrote:
>
> ...
>
> | gain a bit more flexibility, but not much usefulness) -- other
> | compile-time-typesafe languages such as Java (if it had some
> | way to have constrained generics) would let you use 'Object'
> | as the value-type, so you could in fact add anything.
>
> Almost :
>
> not  'int' , 'char' , 'float' , 'double' , 'byte' , 'short' , 'long' ,
> and any of the above (including Object) in array form.

Right -- the primitive-vs-Object split.


> This is one reason I really like Python's object model much better
> than Java's.

Python has its own type/class split, of course, but I agree
it is less damaging than Java's.


Alex




More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4