Vector classes

2007-04-22 Thread Mizipzor
During my coding Ive found two vector classes on the internet. Ive modified them both a little but the do both have advantages and disadvantages. vector1: http://rafb.net/p/4FVdh699.html vector2: http://rafb.net/p/0KShGu30.html With 1, I can typ vec.x and vec.y, very nice. With 2, I need to do ve

Re: Unicode problem in BeautifulSoup; worked in Python 2.4, fails in Python 2.5.

2007-02-04 Thread Mizipzor
On Feb 4, 11:39 pm, John Nagle <[EMAIL PROTECTED]> wrote: > I'm running a website page through BeautifulSoup. It parses OK > with Python 2.4, but Python 2.5 fails with an exception: > > Traceback (most recent call last): >File "./sitetruth/InfoSitePage.py", line 268, in httpfetch > se

Missing member

2007-02-04 Thread Mizipzor
I have some troubles with a member variable that seems to be missing in a class. In short, heres what I do; class A is the parent class, B inherits from A and C inherits from B (hope I used the right words there). Now, I create an instance of C, which calls A's __init__ which in turn creates all th

Re: "Subscribing" to topics?

2007-02-04 Thread Mizipzor
On Feb 4, 9:55 pm, Toby A Inkster <[EMAIL PROTECTED]> wrote: > You discovered wrong -- Google does not provide a free newsserver. They no > doubt *have* several newsservers, but don't provide direct access to them > either free, or for a fee. They only provide a web interface to access the > conten

Re: "Subscribing" to topics?

2007-02-04 Thread Mizipzor
On Feb 4, 10:51 am, hg <[EMAIL PROTECTED]> wrote: > Mizipzor wrote: > > Is there a way to "subscribe" to individual topics? im currently > > getting bombarded with daily digests and i wish to only receive a mail > > when there is activity in a topi

Parameter lists

2007-02-04 Thread Mizipzor
Consider the following snippet of code: == class Stats: def __init__(self, speed, maxHp, armor, strength, attackSpeed, imagePath): self.speed = speed self.maxHp = maxHp self.armor = armor self.strength = strength self.attackSpeed

"Subscribing" to topics?

2007-02-04 Thread Mizipzor
Is there a way to "subscribe" to individual topics? im currently getting bombarded with daily digests and i wish to only receive a mail when there is activity in a topic that interests me. Can this be done? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Writing "pythonish" code

2007-02-02 Thread Mizipzor
Hi, this is my first mail to the list (and any list for that matter) so any pointers on errors from my part would be appreciated. Im more used to forums. To start off, Ive read some python documents and done some small apps so I think I can say I know it semi-well, and I know c++ very well. But I