Re: Method behavior for user-created class instances

2008-07-14 Thread crazychimp132
On Jul 14, 9:04 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Greetings. > > > I am looking for a way to achieve method behavior for a class I > > created. That is, it has a __call__ method, so can be called like a > > function. But I also want it to be treated as a met

Re: trying to use sax for a very basic first xml parser

2008-07-14 Thread Miki
Hello, > Could it be that I have to install the same python version Blender was > compiled with? I have no idea. May I suggest you ask in the blender list? HTH, -- Miki <[EMAIL PROTECTED]> http://pythonwise.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Converting from local -> UTC

2008-07-14 Thread Gabriel Genellina
En Mon, 14 Jul 2008 12:06:30 -0300, Keith Hughitt <[EMAIL PROTECTED]> escribió: On Jul 12, 12:52 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: En Fri, 11 Jul 2008 15:42:37 -0300, Keith Hughitt   <[EMAIL PROTECTED]> escribió: > I am having a little trouble figuring out how to convert a pyt

Re: Problems Returning an HTTP 200 Ok Message

2008-07-14 Thread Gabriel Genellina
En Mon, 14 Jul 2008 17:46:12 -0300, samwyse <[EMAIL PROTECTED]> escribió: On Jul 11, 3:46 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: As Guy Davidson has already pointed out, this is a problem in the meter That would have been me, not Guy. Indeed, sorry the misattribution! -- Gabrie

Re: a module.pth question

2008-07-14 Thread Gabriel Genellina
En Mon, 14 Jul 2008 08:26:49 -0300, oyster <[EMAIL PROTECTED]> escribi�: My py24 is installed in h:\python24 I installed pyglet(http://pyglet.org/) in H:\pure_pylib\Multimedia\pyglet-1.0\, if I do [code] import sys sys.path.append(r'H:\pure_pylib\Multimedia\pyglet-1.0') import pyglet [/code]

Re: how can I use exec with main module globals?

2008-07-14 Thread Gabriel Genellina
En Sat, 12 Jul 2008 16:15:36 -0300, Akathorn Greyhat <[EMAIL PROTECTED]> escribi�: Hello, this is my first message in the group. Welcome! I'm spanish so my english sometimes is really bad, sorry =( I have a problem and I hope someone has the answer. I'm trying to make an in-game python i

Re: iterator clone

2008-07-14 Thread Kay Schluehr
On 13 Jul., 08:53, Yosifov Pavel <[EMAIL PROTECTED]> wrote: > Whats is the way to clone "independent" iterator? I can't use tee(), > because I don't know how many "independent" iterators I need. copy and > deepcopy doesn't work... > > --pavel You can try generator_tools http://pypi.python.org/pyp

Re: How to write a custom tracer/profiler?

2008-07-14 Thread Gabriel Genellina
En Mon, 14 Jul 2008 23:48:20 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribi�: The main logic will issue a number of calls to the DS in order to get the data it needs and then carry out some calculations. I want to have a non-intrusive way to find out all the DS data requested by the mai

Re: iterator clone

2008-07-14 Thread Yosifov Pavel
On 14 июл, 23:36, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 13 juil, 12:05, Yosifov Pavel <[EMAIL PROTECTED]> wrote: > (snip) > > > defcloneiter( it ): > > """return (clonable,clone)""" > > return tee(it) > > This might as well be written as > > cloneiter = tee > > Or yet better,

Re: Python pack and unpack question

2008-07-14 Thread Mark Tolonen
"joe shoemaker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] If you have the following: data = unpack('>L', sock.recv(4)) Does this line of code means that incoming data is big endian and unpack it to endianess of local machine? If local machine is little endian, then big

Re: new itertools functions in Python 2.6

2008-07-14 Thread Raymond Hettinger
On Jul 14, 1:26 pm, Mensanator <[EMAIL PROTECTED]> wrote: > ##  Combinations with replacement > ##  - > ##  aaa aab aac aad aae abb abc abd abe acc acd ace > ##  add ade aee bbb bbc bbd bbe bcc bcd bce bdd bde > ##  bee ccc ccd cce cdd cde cee ddd dde dee eee > ## > ##  

<    1   2