Re: installing python on a server?

2006-02-10 Thread Terry Hancock
than Zope, and there's maybe a dozen different ones to choose from. Easier to learn, but probably more work in the long run if you have to do a lot of script work on your site. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org

Re: apostrophe or double quote?

2006-02-08 Thread Terry Hancock
to use single quotes, using double quotes only when a single quote is embedded in the string. Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: A problem with some OO code.

2006-02-05 Thread Terry Hancock
with that. More to the point, though, classes are instance factories in Python. It's almost as if a class is nothing more than a special category of functions that return instances. I don't know if I've helped at all, but I hope so. ;-) Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi

Re: Another try at Python's selfishness

2006-02-05 Thread Terry Hancock
as almost Python, but stupidly designed, because of stuff like this. My apologies to Javascript fans, I acknowledge that my opinion is subjective. ;-) Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo

Re: Importing a class, please help...

2006-02-05 Thread Terry Hancock
and you are launching the latter when you meant the former? In any case, C Python cannot load Java classes (that's the main raison d'etre for Jython). -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: translating PHP to Python

2006-02-05 Thread Terry Hancock
) and Python scripts in Zope. Of course, there are a dozen other ways to do web-programming in Python, too. Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I dynamically create functions without lambda?

2006-02-03 Thread Terry Hancock
On Fri, 3 Feb 2006 09:39:39 +0100 Fredrik Lundh [EMAIL PROTECTED] wrote: Terry Hancock wrote: Frankly this paper sounds like a bid for the Journal of Irreproducible Results that somehow got accidentally submitted to a serious journal http://www.improbable.com/ig/ig-pastwinners.html

Re: would it be feasable to write python DJing software

2006-02-03 Thread Terry Hancock
anything but such glue code. For me, who no longer writes *any* C code, not having to write the C code is a big win. And I think this is the PoV relevant to the OP. Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org

Re: Another try at Python's selfishness

2006-02-02 Thread Terry Hancock
any *more* complicated. I still see newbie-friendliness as a MAJOR plus for Python -- it increases the chance that users of your software will become contributors. I mean, even Perl was probably pretty simple in the beginning. ;-) -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http

Re: would it be feasable to write python DJing software

2006-02-02 Thread Terry Hancock
you access to the embedded metadata in Ogg files, which sounds like it might be useful in your application. Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling a string as a function.

2006-02-02 Thread Terry Hancock
as motd() Whatever motd() is. Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I dynamically create functions without lambda?

2006-02-02 Thread Terry Hancock
a serious journal, but I'm taking it at face value). Of course, you *could* conclude that I'm just unskilled and unaware of it for believing this -- but that's the beauty of all self-reinforcing delusions, isn't it. ;-) Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http

Re: PIL and transparent GIFs

2006-02-01 Thread Terry Hancock
perfectly, but I may have been doing something wrong. Can't recover it at the moment, but some search engine work might turn it up. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: OO conventions

2006-02-01 Thread Terry Hancock
is an art, not a science. Object-oriented style is a subjective and fuzzy aesthetic term, and what is most clear depends on what you've seen before, and what you're trying to be clear about. Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http

Re: python-list@python.org

2006-01-31 Thread Terry Hancock
to LINUX (slowly) by customer demand (!) and I guess don't want to do new COM projects. FWIW, for me, Windows only=write off, so I'm glad you're not going this route. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman

Re: Have you any idea how to make window transparent using pygame?

2006-01-30 Thread Terry Hancock
this sort of thing. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: triple quoted strings as comments

2006-01-30 Thread Terry Hancock
comment too -- I think this loses you a little more time). But it's pretty trivial in practice, because every subsequent time, it's gone. z = x + y At least, this is how I understand it. Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com

Re: Using non-ascii symbols

2006-01-29 Thread Terry Hancock
problem by now. Maybe it was a lot harder than expected. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: beta.python.org content

2006-01-29 Thread Terry Hancock
On Sat, 28 Jan 2006 09:47:20 -0800 Scott David Daniels [EMAIL PROTECTED] wrote: Terry Hancock wrote: On Fri, 27 Jan 2006 13:44:19 -0800 Scott David Daniels [EMAIL PROTECTED] wrote: Paragraph 3 in Why Python: and later in that paragraph, I'd change: ... extensions that provide

Re: Python module for LX200 telescope command set

2006-01-29 Thread Terry Hancock
in coordinates and make sure the counterweight doesn't smack you in the head. ;-)). Now that I'm out of it, though, I would like to be able to do some types of amateur observing for fun (and for my kids). Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http

Re: beta.python.org content

2006-01-27 Thread Terry Hancock
someone reads who is imagining that *they* are going to have to learn this language (not pay someone else to). Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: beta.python.org content

2006-01-27 Thread Terry Hancock
like the PyPy logo should surely be an Ouroboros! -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: beta.python.org content

2006-01-27 Thread Terry Hancock
, or weren't film students, the answer is Yes, my aunt has one. Ironically, this is now funny for exactly the opposite reason from the way it was intended! -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Using non-ascii symbols

2006-01-27 Thread Terry Hancock
that was the point behind the graffiti system for the Palm Pilot). -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Using non-ascii symbols

2006-01-26 Thread Terry Hancock
-- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Using non-ascii symbols

2006-01-25 Thread Terry Hancock
it will remain underused so long as English remains the most popular international trade language. In the meantime, though, I predict many luddites will scream But it doesn't work on my vintage VT-220 terminal! (And I may even be one of them). Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi

Re: ZODB and Zope on one Linux machine, how?

2006-01-25 Thread Terry Hancock
- ZODB 3.2.10 (same as in Zope 2.7.8) - Zope 2.7.8 - Plone 2.1.1 ... all built from source on Debian Woody. The first option, if it works, would require that the ZODB used by your application is the same as what Zope uses, of course. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http

Re: Dominant color PIL

2006-01-23 Thread Terry Hancock
know if you should do that on a 1600x1200 wallpaper tho :D I think he's thinking of how to get the values for the master image. Terry Hancock wrote: On Sun, 22 Jan 2006 21:07:45 +0100 Sebastjan Trepca [EMAIL PROTECTED] wrote: I was wondering is it possible to find out which colour

Re: Dominant color PIL

2006-01-22 Thread Terry Hancock
. ;-) Seriously, that ought to do it. Bear in mind that you need to use the right sampling mode (IIRC, you want ANTIALIAS). Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Who is www.python.org for? (was Re: New Python.org website ?)

2006-01-22 Thread Terry Hancock
the market for this site. I'm already sold on Python, after all, I just want something useful that I can use to stay up-to-date, and to find other Python resources if they move, get created, or if I just lose track of the URLs. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-19 Thread Terry Hancock
to move a lamp you had shut off the power and rewire your house? Safe abstraction levels are a big time-saver. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-19 Thread Terry Hancock
with respect to them, and depend on their literal value (not their identity as an object in memory). If objects NEED to only be compared by identity, then they should leave __eq__ alone and identity will be used when they are compared. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-19 Thread Terry Hancock
the airport, enthralled to watch the planes launching, but strangely disappointed. One turned to the other, and said Aww, that one didn't blow up either. ;-) Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org

Re: New Python.org website?

2006-01-19 Thread Terry Hancock
. In reality, though, it is accidental, and very slight resemblance. If you can somehow manage to take offense at that, then please go get some counseling. Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo

Re: OT: excellent book on information theory

2006-01-19 Thread Terry Hancock
a cross b I don't remember where this is posted. The trick was in overloading the , , or | to interact specially with operator objects. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: excellent book on information theory

2006-01-19 Thread Terry Hancock
On Wed, 18 Jan 2006 18:31:35 -0800 [EMAIL PROTECTED] (Alex Martelli) wrote: Terry Hancock [EMAIL PROTECTED] wrote: ... Nothing at all. But I still prefer tales of people who have hacked their DVD players to be multi-region :-) It isn't illegal in Canada anyway. And yes, it would

Re: New Python.org website?

2006-01-19 Thread Terry Hancock
that would be rather more constructive. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-19 Thread Terry Hancock
-- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-19 Thread Terry Hancock
is. Same above. Although the deeper meaning an ellipsis shows an omission is preserved. The ellipsis in the recursive definition substitutes for a literal representation which is conceptually infinite (although due to recursion limits is really finite). -- Terry Hancock ([EMAIL PROTECTED]) Anansi

Re: OT: excellent book on information theory

2006-01-18 Thread Terry Hancock
On Wed, 18 Jan 2006 07:58:10 + Steve Holden [EMAIL PROTECTED] wrote: Terry Hancock wrote: On Tue, 17 Jan 2006 13:28:15 + Steve Holden [EMAIL PROTECTED] wrote: They know that the average American could work it out. They also know that the average American doesn't like to do

Re: OT: excellent book on information theory

2006-01-18 Thread Terry Hancock
On Wed, 18 Jan 2006 07:55:50 + Steve Holden [EMAIL PROTECTED] wrote: Alex Martelli wrote: Terry Hancock [EMAIL PROTECTED] wrote: ... due to the Evil Conspiracy of region-coding, I couldn't watch the British DVD even if I were to import it (Well, yeah I could, but it would

Re: OT: excellent book on information theory

2006-01-18 Thread Terry Hancock
it. Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: excellent book on information theory

2006-01-17 Thread Terry Hancock
this). Now I don't suppose I should really get my nose all out of joint over this sort of thing, but it's symbolic of a lot of things that are wrong with the world right now. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman

Re: OT: excellent book on information theory

2006-01-17 Thread Terry Hancock
somebody to fiddle with the prose, fiddle they will. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: On Numbers

2006-01-16 Thread Terry Hancock
suspect this is the sort of decision that was viewed as too tricky. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Spelling mistakes!

2006-01-12 Thread Terry Hancock
On Wed, 11 Jan 2006 06:57:06 + Steve Holden [EMAIL PROTECTED] wrote: Terry Hancock wrote: [...] The ideal of don't repeat yourself seems to get nudged out by repeat yourself exactly once when it's really important to get it right. ;-) I suppose most readers aren't old enough

Re: Spelling mistakes!

2006-01-10 Thread Terry Hancock
On 9 Jan 2006 11:21:10 GMT Antoon Pardon [EMAIL PROTECTED] wrote: Op 2006-01-06, Terry Hancock schreef [EMAIL PROTECTED]: On 6 Jan 2006 07:30:41 -0800 KraftDiner [EMAIL PROTECTED] wrote: in an init method I declare a variable self.someLongName later in a different method of the class

Re: Spelling mistakes!

2006-01-08 Thread Terry Hancock
or something? (We don't appreciate your code anymore). ;-) I suppose some smart alec is going to argue that it goes down in value because an authority declared it unworthy. Would be about par for the course. ;-) -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com

Re: Is 'everything' a refrence or isn't it?

2006-01-07 Thread Terry Hancock
carries the conotation of being a simple string, although you could argue that it doesn't have to mean that). -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie with some doubts.

2006-01-07 Thread Terry Hancock
so that they don't interfere with each other. We call these things class instances in Python instead of objects, because object applies to *all data* in Python, even simple things like the number '1'. Class instances are specifically objects defined as a member of a class. -- Terry Hancock

Re: Spelling mistakes!

2006-01-06 Thread Terry Hancock
! Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Spelling mistakes!

2006-01-06 Thread Terry Hancock
a dictionary how? Use a dictionary by looking up words in it to check the spelling. D'oh! I was thinking a dictionary like {}. Yeah, I meant like Websters', should've been clearer, I guess, given the venue of this discussion. ;-) -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http

Re: Spelling mistakes!

2006-01-06 Thread Terry Hancock
are hard to break. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Is 'everything' a refrence or isn't it?

2006-01-06 Thread Terry Hancock
On Fri, 06 Jan 2006 20:49:06 +1100 Steven D'Aprano [EMAIL PROTECTED] wrote: On Thu, 05 Jan 2006 22:18:39 -0600, Terry Hancock wrote: Consider this: def do_nothing(x): pass huge_tuple = (None,) * 1**4 do_nothing(huge_tuple) If Python made a copy of huge_tuple before

Re: Which is the best GTK

2006-01-06 Thread Terry Hancock
* in Python, you want PyGTK. Otherwise, best GUI is very much a matter of opinion, you'll find champions for every one. Tkinter is perhaps the easiest to get simply because it comes with Python, but wxPython, PyGTK and others are still very popular. -- Terry Hancock ([EMAIL PROTECTED]) Anansi

Re: Is 'everything' a refrence or isn't it?

2006-01-05 Thread Terry Hancock
'], or spam.ham, for example). Not tuple or string because they are immutable, and so don't have assignable references. Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python article in Free Software Magazine

2006-01-03 Thread Terry Hancock
for a nice figure, too, which Free Software Magazine needs more of. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling GPL code from a Python application

2006-01-03 Thread Terry Hancock
binding. Thus their own arguments contradict their desire to control your use of the software. Mind you, I'm not necessarily rooting for either side of this -- I'm just interpreting what I've read. The GPL is a fascinating read, BTW, and it isn't particularly long. ;-) Cheers, Terry -- Terry Hancock

Re: check if class really implements api?

2006-01-03 Thread Terry Hancock
, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling GPL code from a Python application

2006-01-03 Thread Terry Hancock
a natural exercise of freedom 0. Given that Google has been using this fact extensively, and they have not been sued over it, I think it's a fairly clearly established interpretation, whether it is popular or not (but of course it's not a legal precedent until somebody does sue and loses). -- Terry

Re: SyntaxError: invalid syntax

2005-12-27 Thread Terry Hancock
really want or not depends on how the module is meant to be used (is it a module or a script?). Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Indentation/whitespace

2005-12-23 Thread Terry Hancock
are. It encourages good separation between templates and code, which is supposed to be a good thing according to the Zope Zen. ;-) -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: putenv

2005-12-19 Thread Terry Hancock
not really any less advisable than scripting in csh to begin with. ;-) Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: adding vectors

2005-12-19 Thread Terry Hancock
hard enough ;-). -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Why and how there is only one way to do something?

2005-12-15 Thread Terry Hancock
that you have important requirements for doing things a certain way. We assume that you are mature enough to know the difference between breaking the rules accidentally and breaking the rules on purpose. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http

Re: Documentation suggestions

2005-12-08 Thread Terry Hancock
to use Jython and run on the visitor's machine, shouldn't you? -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Documentation suggestions

2005-12-06 Thread Terry Hancock
shouldn't count that much on that point. OTOH, I *would* be a user of the friendlier Language Reference, so I'm in favor of that. Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: PythonMagick on Windows

2005-12-06 Thread Terry Hancock
how ImageMagick does it -- Postscript and PDF rendering is delegated to ghostscript. So naturally, calling it directly is faster. Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax

2005-11-26 Thread Terry Hancock
of unintentionally clobbering local names. So it's certainly riskier in the sense of likely to cause bugs. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Timeout for regular expression

2005-11-23 Thread Terry Hancock
for that. Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython Licence vs GPL

2005-11-23 Thread Terry Hancock
implementation concept is based on alleviating a fear of litigation -- it forms the basis of a defense. It is *not* a legal requirement, AFAICT. Of course, IANAL. ;-) Cheers, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org

Re: Any royal road to Bezier curves...?

2005-11-21 Thread Terry Hancock
, probably. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Can you set a class instance's attributes to zero by setting the instance to zero?

2005-11-19 Thread Terry Hancock
A to the object 0 so there's no way it can mutate the object A. However, you could create an object Origin to use as a vector zero: Origin = Vector(0,0) Or if you want to be shorter, more poetic, and make future maintainers curse you, you can call it O: O = Vector(0,0) ;-) -- Terry Hancock ([EMAIL

XUL behavior in Python via XPCOM, Mozilla

2005-11-12 Thread Terry Hancock
, including a claim that a release was targeted for early November (2005), to provide this. Now I can't find it again. Anyway, I was hoping someone on c.l.p / python.org would have a reliable reference on this. Thanks, Terry -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http

Re: XUL behavior in Python via XPCOM, Mozilla

2005-11-12 Thread Terry Hancock
On Sat, 12 Nov 2005 15:27:01 -0500 Jean-Paul Calderone [EMAIL PROTECTED] wrote: On Sat, 12 Nov 2005 14:25:51 -0600, Terry Hancock [EMAIL PROTECTED] wrote: I recently saw a claim that Mozilla XUL behaviors (normally scripted in Javascript) can (or perhaps will) be scriptable in Python

Re: XUL behavior in Python via XPCOM, Mozilla

2005-11-12 Thread Terry Hancock
can use script=application/x-python in order to do behavior scripting in Python from within XUL running on top of Mozilla. I was also a little foggy about the relationship between these components (which I hope I've just spelled out for the record). Thanks for the replies, Terry -- Terry

Re: Using Which Version of Linux

2005-11-06 Thread Terry Hancock
the KDE/Gnome menus, that may be interesting. I've seen a lot of conflicting and inconsistent layouts, and I'm not sure how I would do it, given the chance. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.com -- http://mail.python.org/mailman/listinfo/python

[no subject]

2005-11-04 Thread Terry Hancock
-called software piracy is that the recording and movie industry has been trying very hard to conflate copyright violation with theft -- but the former is only a civil offense, and the latter criminal. Big difference. -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http

[no subject]

2005-11-04 Thread Terry Hancock
there. -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Importing Modules

2005-11-02 Thread Terry Hancock
precautions to prevent major collisions, even if you expect it to be the plugin author's responsibility to avoid them (e.g. establish interface rules for plugins and a formal API for interacting with your program). -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http

Re: An FAQ Please Respond

2005-11-02 Thread Terry Hancock
/ -- blender site and developers' forum Since Blender embeds its own Python interpreter, there is some question as to what exactly it means by recognizing an installed Python. I'm guessing it only uses the library. Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks

Re: Python's website does a great disservice to the language

2005-11-01 Thread Terry Hancock
, though, what would you change about it? It's not flashy, but works extremely well. You can say the same for Python itself -- I think that may be its best quality. So how better to show that than by having a site with the same character? -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi

Re: Microsoft Hatred FAQ

2005-10-28 Thread Terry Hancock
it's dangerous to let extremists go unchallenged, lest they be believed to lack opposition. Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Re: output from external commands

2005-10-25 Thread Terry Hancock
that at the time it was the only one that actually included code that did what the OP wanted. I think Mr. Lundh's point was only that the output from glob.glob is already guaranteed to be strings, so using either '%s'%f or str(f) is superfluous. -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi

Re: Microsoft Hatred FAQ

2005-10-24 Thread Terry Hancock
different lists and topic-related sites. The two lists I happened to check are years out of date (one was from 1994!) and do not even list Microsoft. -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo

Re: Microsoft Hatred FAQ

2005-10-24 Thread Terry Hancock
abdicating all right to change them. People who believe this really need, therefore, to shut up. ;-D -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: output from external commands

2005-10-24 Thread Terry Hancock
(in keystrokes) as '%s'%f, making the just a matter of opinion. -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

UI Design, XUL, Blender

2005-10-22 Thread Terry Hancock
be a lot of help. I assume it goes without saying that I'm looking at Python as an integration language. In my ideal design, the M,V, and C components are separate Python modules, so that the communications are all at the Python level. Cheers, Terry -- Terry Hancock ( hancock

Re: Zope and Persistence

2005-10-22 Thread Terry Hancock
need to write a Product, not work in the ZMI at all. But you don't. Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Abstract Methods Abstract Class

2005-10-21 Thread Terry Hancock
for PyProtocols or Zope to follow up on that). -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs Ruby

2005-10-21 Thread Terry Hancock
in the Python version a feature present in the standard Java library (scheduling a thread to run at specified intervals and time out). Strip the Javadoc/docstrings out and it's about at that 5:1 ratio. This claim seems pretty dubious to me. Why? -- Terry Hancock ( hancock at anansispaceworks.com

Re: [PIL]: Question On Changing Colour

2005-10-17 Thread Terry Hancock
lower). Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: bizarro world (was Re: Python Doc Problem Example: sort() (reprise))

2005-10-17 Thread Terry Hancock
are: 1 cup of fat-free milk, free, and free pizza. .replace('crowd', 'angry mob') ;-D -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-17 Thread Terry Hancock
of the problems I described above. OTOH, the Linux environment I describe is run-of-the-mill Debian Sarge with KDE. -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGame Web hosts

2005-10-14 Thread Terry Hancock
). Or, probably more useful to you, you could just provide games that people can download. This is what actually happens with an applet, of course, so there's no actual saving of bandwidth by running it on your server. What is saved is the hassle of installing the software once it's downloaded. -- Terry

Re: Jargons of Info Tech industry

2005-10-13 Thread Terry Hancock
-getting step. Well, this is already happening at the level of my mail client. I gather you have something more centralized in mind? -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: When someone from Britain speaks, Americans hear a British accent...

2005-10-11 Thread Terry Hancock
On Tuesday 11 October 2005 09:37 am, Grant Edwards wrote: On 2005-10-10, Terry Hancock [EMAIL PROTECTED] wrote: Likewise, dude is often used when addressing a female but almost never when speaking about one in the third person. This I have never witnessed. That's bizarre. At least

Re: Python name lookups / Interning strings

2005-10-11 Thread Terry Hancock
, however, 'a==b' must do an actual string comparison, and is therefore somewhat slower. -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: [PIL]: Question On Changing Colour

2005-10-11 Thread Terry Hancock
rgb_new # the new color you want to replace rgb_base with rgb_new = hsv_to_rgb( (new_hue,) + rgb_to_hsv(rgb_base)[1:]) Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

Re: When someone from Britain speaks, Americans hear a British accent...

2005-10-10 Thread Terry Hancock
, but the real story behind things like that is kind of interesting, IMHO. ;-) And I think the original joke is pretty dead by now. ;-) -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   >