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
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
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 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
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
c with variants).
--
Regards/Gruesse,
Peter Maas, Aachen
E-mail 'cGV0ZXIubWFhc0B1dGlsb2cuZGU=\n'.decode('base64')
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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.
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
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
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
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
[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/
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
e not too hard to implement and surely not
break old code :)
Peter Maas, Aachen
--
http://mail.python.org/mailman/listinfo/python-list
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
cape.com/assist/net_sites/pushpull.html for
information about HTTP push.
Peter Maas, Aachen
--
http://mail.python.org/mailman/listinfo/python-list
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
#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
eastlink.ca/~gisdev/scite-1.67-setup-3.exe
Peter Maas, Aachen
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
line to get rid of annoying
line breaks. :)
Peter Maas, AAchen
--
http://mail.python.org/mailman/listinfo/python-list
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
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=\
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
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
" 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')
---
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,
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
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
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
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
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
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
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
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
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
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
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
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(
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.
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
101 - 151 of 151 matches
Mail list logo