Re: What is print? A function?

2005-01-24 Thread david . tolpin
Is it possible to create own statements, such that it would be possible to do: printDebug test ? This question is well addressed in a neighbour group comp.lang.lisp . -- http://mail.python.org/mailman/listinfo/python-list

cgi.py?

2005-05-29 Thread david . tolpin
Hi, I've looked into cgi.py from 2.4's distribution, and its contents puzzle me. In parse_header, the first line splits on ';': plist = map(lambda x: x.strip(), line.split(';')) but header parameters may contain semicolon in quoted strings: Content-Type: image/jpeg;

Re: What is different with Python ? (OT I guess)

2005-06-15 Thread david . tolpin
Oh well, I guess it's a bit late to try to rename the Computer Science discipline now. The best I've heard is Informatics -- I have a vague impression that this is a more European name for the field. The word Informatics had been invented by a Soviet computer scientist Andrey Ershov

Re: FAQ 1.7.3 : How can I have modules that mutually import each other

2005-03-21 Thread david . tolpin
programming language (such as Common Lisp, for example) demands. David Tolpin http://davidashen.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with national characters

2005-03-31 Thread david . tolpin
Is there a way around this problem? put import sys sys.setdefaultencoding('UTF-8') into sitecustomize.py in the top level of your PYTHONPATH . -- http://mail.python.org/mailman/listinfo/python-list

Re: pyvm -- faster python

2005-05-12 Thread david . tolpin
I don't think Python can ever beat carefully coded C for running speed, but it can and should aim for parity with compiled Lisp. But common lisp compilers often beat C compilers in speed for similar tasks of moderate complexity. In particular, CMUCL beats GCC in numerical computations. David

Re: Python features

2005-05-12 Thread david . tolpin
There are three main types of programming languages. * Imperative * Functional * Declarative animals are divided into: * those that belong to the Emperor, * embalmed ones, * those that are trained, * suckling pigs, * mermaids, * fabulous ones, * stray dogs, * those included