Re: n-body problem at shootout.alioth.debian.org

2006-10-07 Thread Peter Maas
y language so should be allowed in a shoot-out. The global arrays in the Perl program are on the same track. -- Regards/Gruesse, Peter Maas, Aachen E-mail 'cGV0ZXIubWFhc0B1dGlsb2cuZGU=\n'.decode('base64') -- http://mail.python.org/mailman/listinfo/python-list

Re: n-body problem at shootout.alioth.debian.org

2006-10-07 Thread Peter Maas
Giovanni Bajo wrote: > Did you try using an old-style class instead of a new-style class? The original program has an old style class, changing it to a new style class increases run time by 25% (version is 2.4.3 btw). -- Regards/Gruesse, Peter Maas, Aachen E-mail 'cGV0ZXIubWFhc0B1dGl

Re: n-body problem at shootout.alioth.debian.org

2006-10-07 Thread Peter Maas
ead of lists increases runtime by 19%! If it weren't for the shootout I would of course take psyco and numpy. -- Regards/Gruesse, Peter Maas, Aachen E-mail 'cGV0ZXIubWFhc0B1dGlsb2cuZGU=\n'.decode('base64') -- http://mail.python.org/mailman/listinfo/python-list

Re: New-style classes slower than old-style classes? (Was: n-body problem at shootout.alioth.debian.org)

2006-10-08 Thread Peter Maas
re right, 2.5 is better than 2.4. But the runtime penalty for using new-style classes remains. -- Regards/Gruesse, Peter Maas, Aachen E-mail 'cGV0ZXIubWFhc0B1dGlsb2cuZGU=\n'.decode('base64') -- http://mail.python.org/mailman/listinfo/python-list

Re: New-style classes slower than old-style classes? (Was: n-body problem at shootout.alioth.debian.org)

2006-10-08 Thread Peter Maas
Peter Maas schrieb: > 1 runs of nbody.py, time in sec Correction: 1 iterations of advance(). -- Regards/Gruesse, Peter Maas, Aachen E-mail 'cGV0ZXIubWFhc0B1dGlsb2cuZGU=\n'.decode('base64') -- http://mail.python.org/mailman/listinfo/python-list

Re: Python component model

2006-10-10 Thread Peter Maas
c with variants). -- Regards/Gruesse, Peter Maas, Aachen E-mail 'cGV0ZXIubWFhc0B1dGlsb2cuZGU=\n'.decode('base64') -- http://mail.python.org/mailman/listinfo/python-list

Re: Python component model

2006-10-10 Thread Peter Maas
lliest being the indentation issue) and maybe we should take the silliness into account instead of laughing about those silly folks. I for my part would be happy to see a Delphi-like RAD tool for Python, a reference implementation for web programming as part of the standard library, Jython 2.5, Pyth

Re: Python component model

2006-10-11 Thread Peter Maas
Bruno Desthuilliers wrote: > Peter Maas wrote: [...] >> a reference implementation for web programming as part of the standard >> library, > > wsgiref is part of the 2.5 stdlib. Yes, but it's not an implementation. Think of something like Tomcat for the Java Servlet S

Re: Python component model

2006-10-11 Thread Peter Maas
ertain > other languages seem particularly inclined to indulge in. I don't think so because advocates tend to use arguments just because they are handy, not because they don't know better. -- Regards/Gruesse, Peter Maas, Aachen E-mail 'cGV0ZXIubWFhc0B1dGlsb2cuZGU=\n'.decode('base64') -- http://mail.python.org/mailman/listinfo/python-list

Re: Python component model

2006-10-12 Thread Peter Maas
Kay Schluehr wrote: > Peter Maas wrote: >> How many programmers don't use Python because of the self issue? > > The only reason I know why self shall not be inforced is reducing the > number of troll postings. The only method that works to reduce the number of troll posti

Re: Python component model

2006-10-12 Thread Peter Maas
is important for Python's survival. -- Regards/Gruesse, Peter Maas, Aachen E-mail 'cGV0ZXIubWFhc0B1dGlsb2cuZGU=\n'.decode('base64') -- http://mail.python.org/mailman/listinfo/python-list

explicit self revisited

2006-11-11 Thread Peter Maas
ject): a = "" # static variable .b = 0 # instance variable This could replace parameterless __init__ methods. Methods without leading dots could be considered static without a staticmethod decorator. For backward compatibility this behaviour should be explicitly activated e.g.

Re: explicit self revisited

2006-11-13 Thread Peter Maas
Michele Simionato wrote: > Peter Maas wrote: >> All these reasons are valid and retained by the following suggestion: let >> self be represented by the dot > > This suggestion has been discussed in the past (I remember having the > same idea myself when I first learned P

Re: explicit self revisited

2006-11-13 Thread Peter Maas
e instance unless you have an explicit name > for it. (And if you are thinking of creating more magic syntax that > implicitly returns self, just don't bother.) No magic. Just a dot. But perhaps a dot is too tiny. We could take JUST_ME or ME_AND_BOBBY_MCGEE instead, of course as a reserved k

Re: Import bug: Module executed twice when imported!

2006-06-30 Thread Peter Maas
mport statement in that it does not use the module administration -- it reads the file unconditionally and does not create a new module. - end - I claim this as a well documented (and thus exspectable) Python behaviour. execfile() just executes a file uncondition

Re: What do you want in a new web framework?

2006-08-29 Thread Peter Maas
Cliff Wells wrote: > On Wed, 2006-08-23 at 22:13 +0200, Peter Maas wrote: >> Alex Martelli wrote: [...] >>> I have already suggested to the BDFL that he can remedy this situation >>> in Py3k: all he has to do, of course, is to add a LOT more keywords. >> Here is a

Re: What do you want in a new web framework?

2006-08-29 Thread Peter Maas
[EMAIL PROTECTED] wrote: >> Here is another remedy: he adds one of the frameworks to the standard >> library :) >> >> Peter Maas, Aachen > > But there are already 3 ;-) > > http://docs.python.org/lib/module-BaseHTTPServer.html > http://docs.python.org/

Re: What do you want in a new web framework?

2006-09-02 Thread Peter Maas
Alex Martelli wrote: > Peter Maas <[EMAIL PROTECTED]> wrote: > >> Cliff Wells wrote: >>> On Wed, 2006-08-23 at 22:13 +0200, Peter Maas wrote: >>>> Alex Martelli wrote: >> [...] >>>>> I have already suggested to the BDFL that he can reme

Re: Test for number?

2006-09-04 Thread Peter Maas
e not too hard to implement and surely not break old code :) Peter Maas, Aachen -- http://mail.python.org/mailman/listinfo/python-list

Re: Create TarFile using python

2006-09-12 Thread Peter Maas
t work. Did you look here?: http://docs.python.org/lib/tar-examples.html Peter Maas, Aachen -- http://mail.python.org/mailman/listinfo/python-list

Re: "Dynamic" website content

2006-01-22 Thread Peter Maas
cape.com/assist/net_sites/pushpull.html for information about HTTP push. Peter Maas, Aachen -- http://mail.python.org/mailman/listinfo/python-list

Re: beta.python.org content

2006-01-26 Thread Peter Maas
at there are no religious motives in this remark :) - I really liked the different looking Pythons in the logo corner. Couldn't they find asylum somewhere in the new site? - I would prefer stronger, less flimsy colours. But apart from these superficial points: well done :) Peter M

Re: beta.python.org content

2006-01-26 Thread Peter Maas
#x27;t like the shape. Snakes and right angles - it's a contradiction. This is just my personal taste. Peter Maas, Aachen -- http://mail.python.org/mailman/listinfo/python-list

Re: What editor shall I use?

2006-02-09 Thread Peter Maas
eastlink.ca/~gisdev/scite-1.67-setup-3.exe Peter Maas, Aachen -- http://mail.python.org/mailman/listinfo/python-list

Re: html entity to unicode

2006-02-10 Thread Peter Maas
ions of HTML general entities [...] name2codepoint A dictionary that maps HTML entity names to the Unicode codepoints. New in version 2.3. codepoint2name A dictionary that maps Unicode codepoints to HTML entity names. New in version 2.3. Peter Maas Aachen -- http://mail.python.org/mailman/listinfo/python-list

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Peter Maas
duple simplex simple I wouldn't mind calling (1,) a simple but I'm not a native English speaker so I have no idea wether it sounds ridiculous to English ears. If simple is too simple for you just call it simplum or simplon or simplex. ;) Peter Maas, Aachen -- http://mail.python.org/mailman/listinfo/python-list

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Peter Maas
ve word rather than a Latin import. > Though I suspect "single" is correct. Consider coronary bypass > operations -- single, double, triple, quadruple... That's OK but single stems from singularis (one-of-a-kind) rather than from simplex (onefold) and doesn't fit as nic

Re: how do you pronounce 'tuple'?

2006-02-13 Thread Peter Maas
Peter Maas schrieb: > But tuples mean threefold, twofold etc. and the Latin equivalents > are triplex duplex simples. triplex duplex simplex Peter Maas, Aachen -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 354: Enumerations in Python

2006-03-01 Thread Peter Maas
is a *type* without values, therefore a type that cannot be instantiated i.e. a useless type. I don't like Python enums at all. It is kind of "I want to have that C++ thing, too". In Python enums can be emulated so there's no need to have syntactical support for them. Peter M

Re: Python advocacy in scientific computation

2006-03-06 Thread Peter Maas
acts as an editable data container you can return modified *contents* (list elements etc.) to the caller, exactly like in Java and different from C/C++. Peter Maas, AAchen -- http://mail.python.org/mailman/listinfo/python-list

Re: Python advocacy in scientific computation

2006-03-06 Thread Peter Maas
line to get rid of annoying line breaks. :) Peter Maas, AAchen -- http://mail.python.org/mailman/listinfo/python-list

Re: blabla

2005-05-23 Thread Peter Maas
Noud Aldenhoven schrieb: > Python rulz and sorry for this spam... news.test is made for testing :) -- --- Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0 E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.d

Re: Newbie Here

2005-05-31 Thread Peter Maas
sadmin tasks (backup scripts) - web applications (replacing asp/php) -- --- Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0 E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\

Re: Newbie Here

2005-05-31 Thread Peter Maas
though "anything any major programming language is used for" is probably too wide. I would e.g. exclude device drivers, router firmware etc. ;) -- --- Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-24

Re: The need to put "self" in every method

2005-06-02 Thread Peter Maas
ing this way? See section 1.4.4 in http://www.python.org/doc/faq/general.html -- --- Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0 E-mail 'cGV0ZX

Re: The need to put "self" in every method

2005-06-02 Thread Peter Maas
" and post it weekly in this newsgroup :) -- --- Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0 E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64') ---

Re: What is different with Python ?

2005-06-13 Thread Peter Maas
el languages including python e.g. by using a large string as a memory model. Proceeding to bare metal will follow driven by curiosity. -- --- Peter Maas, M+R Infosysteme, D-52070 Aachen,

Re: What is different with Python ?

2005-06-14 Thread Peter Maas
Andrea Griffini schrieb: > On Mon, 13 Jun 2005 13:35:00 +0200, Peter Maas <[EMAIL PROTECTED]> > wrote: > > >>I think Peter is right. Proceeding top-down is the natural way of >>learning. > > > Depends if you wanna build or investigate. Learning is

Re: What is different with Python ?

2005-06-14 Thread Peter Maas
Andrew Dalke schrieb: > Peter Maas wrote: > >>I think Peter is right. Proceeding top-down is the natural way of >>learning (first learn about plants, then proceed to cells, molecules, >>atoms and elementary particles). > > > Why in the world is that way &q

Re: What is different with Python ?

2005-06-15 Thread Peter Maas
Magnus Lycka schrieb: > Peter Maas wrote: > >> Learning is investigating. By top-down I mean high level (cat, >> dog, table sun, sky) to low level (molecules, atoms, fields ...). > > > Aha. So you must learn cosmology first then. I don't think so. ;) I was

Re: is laziness a programer's virtue?

2007-04-21 Thread Peter Maas
hich is > to Larry's credit), when compared to the motherfucking Pythoners (who > knew SHIT) as well as many of the self-appointed lisp bigwig > characters. Be careful not to damage the English language by making "motherfucking" a compliment :) -- Regards

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-19 Thread Peter Maas
gmentation and less understanding in the programming world so I don't like them. I also don't like non-ascii domain names where the same arguments apply. Let the data be expressed with Unicode but the logic with ASCII. -- Regards/Gruesse, Peter Maas, Aachen E-mail 'cGV0ZXIubWFhc0B1dGlsb2c

scipy 0.52 det crashes python

2007-04-17 Thread Peter Maas
I tried some scipy examples using scipy 0.52, numpy 1.02 and python 2.5 on a WinXP SP2 machine. numpy.linalg.det() works but scipy.linalg.det() crashes python. Has anybody experienced this and can point me to a solution? Thanks for your help. Peter Maas, Aachen -- http://mail.python.org/mailman

Re: scipy 0.52 det crashes python

2007-04-18 Thread Peter Maas
Robert Kern schrieb: > Most likely your build of scipy was built with an ATLAS library that uses SSE2 > instructions (IIRC) while your processor doesn't support those instructions. > The > solution is to rebuild scipy with an ATLAS library built for your platform. Thanks, Rober

Re: Missing interfaces in Python...

2006-04-18 Thread Peter Maas
think interfaces can definitely be useful. > > so with interfaces, missing methods will suddenly appear out of thin > air ? He probably means that with interfaces one could test compliance with the interface as a whole instead of testing each member and each signature as a single piece. Pet

Re: Missing interfaces in Python...

2006-04-18 Thread Peter Maas
Roy Smith schrieb: > Python is a very dynamic language. Java is a very static language. What is the difference between "static" and "very static"? Is Java more static than Fortran I? ;) Peter Maas, Aachen -- http://mail.python.org/mailman/listinfo/python-list

Re: Can Python installation be as clean as PHP?

2006-05-10 Thread Peter Maas
n most situations (2-3x). Look at http://dada.perl.it/shooutout for win32 and http://shooutout.alioth.debian.org for linux. Peter Maas, Aachen -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming language productivity

2006-05-21 Thread Peter Maas
delimiter pairs. Python indent/unindent would of course also count as block delimiters. I think this would be a more precise measure for software size. Peter Maas, Aachen. -- http://mail.python.org/mailman/listinfo/python-list

Re: python interfaces

2008-01-05 Thread Peter Maas
out extensive code studies. This is a good thing. Interfaces have nothing to do with multiple inheritance and are not about type safety in the first place. They just tell you how to connect, how to plug in. -- Regards/Gruesse, Peter Maas, Aachen E-mail 'cGV0ZXIubWFhc0B1dGlsb2cuZGU=\n'.decode(&#

Re: python interfaces

2008-01-05 Thread Peter Maas
ain for the added clutter and inconvenience. An interface is a software specification allowing you to use a software package without extensive code studies. This is a good thing. Interfaces have nothing to do with multiple inheritance. They just tell you how to connect, how to plug in.

Re: convert hex to decimal

2006-03-09 Thread Peter Maas
nto the following format: 0.0038.. I know > how to covert 26 to 38 but I haven't figured out how to pad it or place Have look at ljust/rjust(width[, fillchar]) > the decimal point between the while number and the decimal. What's a while number? Peter Maas, Aachen -- http://mail.python.org/mailman/listinfo/python-list

<    1   2