python is a python
python is a python
...When Python *Eggs* better than Python *distutils*?? What's Eggs?
I have been using distuils for a while and was wondering when
Python Eggs (new project) is better?
So basically Python Eggs precompiles and compresses
binaries for you so you just have to load it to run
"email@example.com" <firstname.lastname@example.org> writes:
> I have been using distuils for a while and was wondering when Python
> Eggs (new project) is better?
Python Eggs, and the 'setuptools' package, are still new, so they're
not yet a core part of Python.
"The primary benefits of Python Eggs are:
* They enable tools...Python's __getattr__, Perl's autoload, Ruby's method_missing, and Smalltalk's #doesNotUnderstand
I'm still new here, and I just completed reading CLTL's documentation
on packages and On Lisp's documentation on CLOS.
It doesn't appear that Lisp has the equivalent of Python's
__getattr__, Perl's autoload, Ruby's method_missing, and Smalltalk's
#doesNotUnderstand. That is, there is no way I can do this (without
new-function being defined):
and have it call some other function like this:
whose returning value will be evaluated as the value of new-function.
Or did I miss something?
Jonathan Gardner <...Python C extension providing... Python's own API?
Does anyone know if it would be possible to create a CPython extension
-- or use the ctypes module -- to access Python's own embedding API
(http://docs.python.org/api/initialization.html &c.)? Could a Python
program itself create a sub-interpreter, and work with it with all the
privileges and capabilities that an actual C program would have?
I realize that this may be a bit too... mystical? ... for a lot of
people's tastes, but I'm just curious if it's possible. :)
On Mar 26, 12:21 pm, "Adam Atlas" <a...@atlas.st> wrote:
> Does anyone know if it would ...So, what's the real story on Python 2 vs Python 3?
The Python.org site says that the future is Python 3, yet whenever I try
something new in Python, such as Tkinter which I am learning now,
everything seems to default to Python 2. By this I mean that, whenever I
find that I need to install another package, it shows up as Python 2
unless I explicitly specify Python 3.
What's the deal? If I want to make a distributable software package,
should it be 2 or 3? Enquiring minds want to know.
In article <XT7vu.64127$Qi4.email@example.com>,
Travis McGee <firstname.lastname@example.org> wrote:
> The Python.org site says that the ...RE: Python's garbage collection was Re: Python reliability
Tom Anderson wrote:
> Except that in smalltalk, this isn't true: in ST, every variable
> *appears* to contain a reference to an object, but implementations
> may not actually work like that. In particular, SmallTalk 80 (and
> some earlier smalltalks, and all subsequent smalltalks, i think)
> handles small integers (those that fit in wordsize-1 bits)
> differently: all variables contain a word, whose bottom bit is a tag
> bit; if it's one, the word is a genuine reference, and if it's zero,
> the top bits of the word contain a signed integer.
This type of im...The Python's regex different from Perl's ,I want know what's the different?
The Python's regex different from Perl's ,I want know what's the
> The Python's regex different from Perl's ,I want know what's the
bash$ diff <(lynx -dump http://perldoc.perl.org/perlre.html)
<(lynx -dump http://docs.python.org/library/re.html)
Had you tried the great Google in the sky, you might have found
such pages as:
or even a popular book on the subject:
The regular expression syntax is ...Invoking Python from Python
I have a need to create a Python script on the fly from another Python
program and then execute the script so created. Do I need to invoke
Python through os.spawnl or is there a better way?
Am Tue, 08 Nov 2005 08:10:25 -0800 schrieb John Henry:
> Hi all,
> I have a need to create a Python script on the fly from another Python
> program and then execute the script so created. Do I need to invoke
> Python through os.spawnl or is there a better way?
creating source code with a script, is no good solution.
Once I had to maintain lisp code which stored its data in lisp code, too
(incl. conditions and loops). It was a nightmare.
Please explain what you want to do, and we will find a better solution.
Thomas G�ttler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
Spam Catcher: email@example.com
In article <firstname.lastname@example.org>,
Thomas Guettler <email@example.com> wrote:
>creating source code with a script, is no good solution.
>Once I had to maintain lisp code which stored its data in lisp code, too
>(incl. conditions and loops). It was a nightmare.
>Please explain what you want to do, and we will find a better solution.
Yes and no. There are times when it's justified. I ENTIRELY
agree, though, that many people who *think* that's what they...Python mascot? How about a Pythoneer?
I've been thinking that a good Python mascot might help in raising
public awareness of Python.
The problem with a snake as a mascot is that it is not anthropomorphic
enough. An effective mascot has to have something approximating two
arms, two legs, and a head, so that he can be put into various
interesting situations and adventures. (At the very least, he has to
be able to work a keyboard and a mouse!) Good examples can be found
in some of the imaginative things that have been done with Linux's
So a snake is out.
So are Terry Gilliam's wonderful cartoons for the Flyin...Regular Toronto Python User's Group meeting: Using CouchDB from Python
This month we're going to have a presentation from Myles Braithwaite on
how to use the CouchDB system from Python. According to Myles this is
the stuff he couldn't get to when he presented the library at TLUG last
month. CouchDB is an Erlang-coded distributed "document oriented"
database with bi-directional replication mechanisms. There is a Python
API and Myles will be discussing how you go about actually using CouchDB
in your projects (hopefully he'll cover the "why you'd want to do that"
stuff too :) ).
We'll meet at Linux Caffe, at the corner of Harbord and Grace, one block
South of Christie station, at 7:00pm. We'll start the formal
presentation at 7:15. Directions are available on the website's
Have fun all,
Mike C. Fletcher
Designer, VR Plumber, Coder
...Python to Python communication
I have a group of Python programms which I want to teach to "talk to each
All run on Windows, on the same computer or in the same intranet.
Security of communication is not an issue (encryption on lower level
protocols / intra computer communication). Partially these programs are
It is important that the communcation is "only an added feature", I am
not willing to spend big memory / computing ressources on it.
So I googled and came up with at least the following opportunities:
XMLRPC - quite "simple" to implement within python, contained in my
favourite web framework Quixote / medusa
SOAP - around the same amount of work as XMLRPC
----> these two are fully buzzword compatible to enterprise communication
needs. But are they really lightwight and needed?
Banana - within the twisted framework. Is described as high performance
with very litte ressources. From my scanning of twisted it is meanwhile
possible to integrate it within wxPython and you only need to sell the
soul of your firstborn for it; but I got the impression twisted rather
needs a total commitment than a "I just need some banana, man"
pyro - Python Remote Objects. Irmen de Jong has a "get Firefox" icon on
it's page and he plays with the name "pyro", which makes a good
impression. It looks rather "ripe", but: he is talking about "pyro 4.0"
which will be incompatible with pyro ...Your Million Dollar Python Project at the Toronto Python User's Group on Tuesday
We'll be having our regular Toronto Python User's Group (PyGTA) at our
regular location, Linux Caffe, at our regular time, 7pm on the Third
Tuesday of the month. This month's topic is:
If you had up to 1 million dollars to spend on a Python project,
what would you spend it on?
What features would you like to see? What changes do you feel need
to be made? Would you spend the money on advertising, optimization,
libraries, frameworks, concurrency, alternative implementations, or
infrastructure? What keeps you from using Python everywhere, and
what could you do to fix that? Would you spend the money on making
a killer commercial project? Would you hire programmers, put out
code bounties, or just donate money to projects?
Linux Caffe is located at the corner of Grace and Harbord, one block
South of Christie station, details on the web-site at http://www.pygta.org.
Mike C. Fletcher
Designer, VR Plumber, Coder
...Embedding Python in Python
I've been programming in Python for a couple of weeks now and am quite
impressed with the language - it was very easy to learn (it actually
reminds me a lot of programming in BASIC many many years ago - it's
very fast to hack together a couple lines of code in interactive
mode). I'm throwing together a simple little game (sort of a MUD-type
thing) as my first 'big' project, and I thought it would be cool to be
able to script the game in Python.
Basically, I want to be able to type scripts in from within the game
and attach them to objects, monsters, rooms, whatever. N...Dr. Dobb's Python-URL!
QOTW: "Generally, you should always go for whatever is clearest/most easily
read (not just in Python, but in all languages)." - Timothy Delaney
"You will find as your programming experience increases that the different
languages you learn are appropriate for different purposes, and have
different advantages and disadvantages. Python excels at expressing
algorithms in an unambiguous and easily-readable way." - Steve Holden
Is Python a viable extension language for Java? Ravi Teja
expertly outlines the possibilities:
http://groups.google.com/group/comp....Dr. Dobb's Python-URL!
QOTW: "A good rule of thumb is: The less non-python stuff you have around,
the better. Non-python parts of any given system are invariably the ones
causing most of the problems :-)." --Ville Vainio
"The Language Reference [http://www.python.org/doc/current/ref/ref.html]
is very readable, not excessively formal, and well worth a read." -- alan
Will Stuyvesant asks how to protect his software from prying eyes when
offering trial versions of commercial software.
http://firstname.lastname@example.org...Dr. Dobb's Python-URL!
QOTW: "I've tried many ways over the years to represent equations legibly
using Python and [it is] my experience that case sensitivity, while
certainly no panacea, helps." -- Tim Hochberg
"What's your pet deprecation candidate? I have always thought `backticks`
as repr has got to be the most useless feature around." -- Ville Vainio
Peter Hansen suggests "Imagine never having to think up variable names
more complicated than 'foo'."
Patrick Maupin ad...Dr. Dobb's Python-URL!
Editor's note: "Python-URL!" is minimal. It doesn't support advertisements,
we never allow the subscribers' addresses to be used for other purposes, we
don't claim infallibility, and we even take a couple weeks off some years.
Occasionally, though--not as often as the US enters a shooting war, say,
but more frequently than IBM hires a new CEO--we pause for a sufficiently
important correction or announcement. This year, we apologize for
inexplicably changing Oliver Schoenborn's name a couple of weeks ago to
"Philip". Also, has anyone indexed Python bl...Dr. Dobb's Python-URL!
QOTW: "Well, I haven't yet seen a definition of 'Integrated Development
Environment' which would exclude Emacs..." - Slawomir Nowaczyk
"Let me tell you: There are times when I'm really glad that as a German,
I'm not supposed to possess any sense of humour at all." - Georg Brandl
Pythoneers will be talking about certification for quite a while:
Greg Wilson's "Software Carpentry" is an important resource
(even though I bristle at Greg's bad-mouthing of vi and emacs):
The Internet Hosting Cooperative supports "any and every thing
Enthought Traits allow powerful GUI technique, and they're more
usefully documented than many realize:
Everything Python-related you want is probably one or two clicks away in
Python.org's Python Language Website is the traditional
center of Pythonia
...Dr. Dobb's Python-URL!
QOTW: "Given these criteria, my recommendations for a first programming
language would be Python or Scheme." - Peter Norvig (some time ago, but
referenced on comp.lang.lisp this week)
"however if you want more visual effect with less hassle, consider learning
Python instead. with Python you can get some graphical stuff working almost
out-of-the box, while with Lisp it's matter of luck if particular thing will
work on your system :)." -- Alex Mizrahi (on comp.lang.lisp)
Those in California get to hear what Python's "benevolent dictator"
does in his day job:
...something which isn't fully explained in the Google Master Plan:
And for the sake of intercontinental relevance, our European pick of
events has to be the Plat_Forms Web development contest in Germany:
... although RuPy also certainly deserves attention:
(November 30th is a big day: it's the Plat_Forms registration deadline
*and* Guido's talk, as well as the last day of Ingeniweb in Paris, ...)
"Pitivi ...Dr. Dobb's Python-URL!
QOTW: "I'd love it if we could come up with a different term for these
beasts than 'new style classes'." --Barry Warsaw
"Then let me suggest ectomorphic classes, as opposed to the previous
endomorphic classes. Roll-your-own classes can be called mesomorphic
classes. Extension classes can be called paleomorphic classes. Then
there's a precise term for each kind, and bystanders are automically
informed by the very terminology used that their lives are too short to
worry about the distinctions being drawn <wink>." --Tim Peters
http://mail.pytho...Dr. Dobb's Python-URL!
QOTW: "The site that I worked on spent TWO MILLION U.S. DOLLARS on its web
server hardware. OK, it used Java servlets that are even slower than Python,
but you have to understand that there's a point after which you can no longer
pretend that hardware is free." -- Paul Rubin
"Monte Carlo sampling is no way to understand code." -- Gordon McMillan
Martin v. Loewis clarifies what entities might "compete" with Python
Peter Otten determines to find the simplest way of automat...Dr. Dobb's Python-URL!
QOTW: "If we get 2.3.3c1 out in early December, we could release 2.3.3 final
before the end of the year, and start 2004 with a 100% bug-free codebase
<wink>." -- Tim Peters
"cjOr proWe vbCould vbSettle prpFor noEnglish prpIn adjHungarian
noNotation :-)" -- noPeter
Jack Jensen reveals that python on mac continues as an osx option only
starting with python2.4.
There's an upgrade of mod_python available that addresses a potential
httpd crash for both HTTP Server 2.0...Dr. Dobb's Python-URL!
QOTW: "You can gain substantial speed-ups in very certain cases, but the
main point of Pyrex is ease of wrapping, not of speeding-up." - Simon Percivall
"The rule of thumb for all your Python Vs C questions is ...
1.) Choose Python by default. . . ." - Ravi Teja
Do you remember Python's early (notice the mention of traversal of the
World-Wide Web. All of it!) days? Guido invites your reminiscences:
Paul Boddie wraps up the "how can I compile Python?" FAQ as
authoritatively as possible (at least for the moment):
Nick Craig-Wood contributes a Process definition to access a Linux
process table programmatically:
Embedding Python? Initialization is more subtle than first appears.
Stefan Schukat explains an example which arises when working with
pysqlite has a create_function. Gerhard Haering illustrates its use:
Everything Python-related you want is probably one or two clicks away in
Python.org's Python Language We...Dr. Dobb's Python-URL!
QOTW: "...I want to reserve .var for the "with" statement (a la VB)."
--Guido van Rossum
"...at some point in the future Python *will* grow (optional) type
declarations for all sorts of things (arguments, local variables,
instanc e variables)."
--Guido van Rossum
The developer list responds to a request for Master Thesis ideas with a
multitude of python wish lists.
Marc-Andre Lemburg offers what must be the definitive answer on
accessing a MS Access data...