Re: 64 bit Python

2005-02-14 Thread Mike C. Fletcher
be problems with creating an individual string of multiple GB as well, for the same reason. Just an idea, Mike ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com

Re: "Collapsing" a list into a list of changes

2005-02-04 Thread Mike C. Fletcher
list(changes(data )) which is quite readable/elegant IMO. Have fun, Mike ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com PyCon is coming... -- http://mail.python.org/mailm

Re: PyCon signature advertising

2005-02-01 Thread Mike C. Fletcher
of the new continents when the spring arrives. It is only there that all will be revealed. It is only there that you shall find peace. Joy to the Python world! Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http

Re: Weakref.ref callbacks and eliminating __del__ methods

2005-01-24 Thread Mike C. Fletcher
Tim Peters wrote: [Mike C. Fletcher] I'm looking at rewriting parts of Twisted and TwistedSNMP to eliminate __del__ methods (and the memory leaks they create). A worthy goal! Well, as of now it seems to have eliminated the last leaks in TwistedSNMP, and that's likely going to

Re: Weakref.ref callbacks and eliminating __del__ methods

2005-01-24 Thread Mike C. Fletcher
ct (close btree if necessary)""" self() and we store one of these as self.close in the OIDStore instance' dictionary. self.close = Closer( self ) If the user explicitly calls storage.close() we don't want the __del__ trying to re-close the storage late

Re: Weakref.ref callbacks and eliminating __del__ methods

2005-01-23 Thread Mike C. Fletcher
Alex Martelli wrote: Mike C. Fletcher <[EMAIL PROTECTED]> wrote: weakref.ref( self, self.close ) but the self.close reference in the instance is going away *before* the object is called. Uh -- what's holding on to this weakref.ref instance? I guess the weakreference

Weakref.ref callbacks and eliminating __del__ methods

2005-01-23 Thread Mike C. Fletcher
ereabouts, so I gather there must be *some* way of handling the problem generally. The thing is, weakref callbacks trigger *after* the object is deconstructed, while __del__ triggers before... must be something clever I'm missing. Throw an old doggie a bone? Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Class introspection and dynamically determining function arguments

2005-01-22 Thread Mike C. Fletcher
Bengt Richter wrote: On Fri, 21 Jan 2005 20:23:58 -0500, "Mike C. Fletcher" <[EMAIL PROTECTED]> wrote: On Thu, 20 Jan 2005 11:24:12 -, "Mark English" <[EMAIL PROTECTED]> wrote: ... Does the BasicProperty base class effectively register itself as an

Re: Class introspection and dynamically determining function arguments

2005-01-21 Thread Mike C. Fletcher
t to pick out which names match the parameters for a function in order to pass them in to the function/method/callable object. That said, doing this for __init__'s with attribute values from an object's dictionary doesn't really seem like the proper way to approach the proble

Re: Help Optimizing Word Search

2005-01-11 Thread Mike C. Fletcher
x27;,'b','c'] check a, b, c, ab, ac, ba, bc, ca, cb, abc, acb, bac, bca, cab, cba where only a, ba and cab would be added to the dict of words. If the letters are ['?','?'] check a-z, aa, ab, ac, ad, ..., az, ba, bb, bc, bd, ..., zz ...

Re: Game programming in Python

2005-01-11 Thread Mike C. Fletcher
=game HTH, Mike ________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing huve ge Sets() to disk

2005-01-10 Thread Mike C. Fletcher
could construct a sorted list in memory that would approximate what I *think* you're thinking of as a dictionary-without-an-index. Good luck, Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: list IndexError

2004-12-23 Thread Mike C. Fletcher
Fredrik Lundh wrote: Mike C. Fletcher wrote: yeah actually i saw what Fedrik had to say above. I created a sliced copy of the l & did my homework within the for loop You might want to check it again before you hand it in ;) ... ... that's not the code he quoted in the

Re: list IndexError

2004-12-22 Thread Mike C. Fletcher
at all (though each deletion causes a memcopy of all pointers from that element in the list onward, that's a fairly faster operation). It's going to avoid new memory allocation much of the time, and doesn't have the "scan the whole list for each deletion" overhead of the "while x in list" version. Anyway, have fun, Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: list IndexError

2004-12-22 Thread Mike C. Fletcher
cted results, but they are generally not going to raise IndexErrors due to off-the-end-of-the-list operations). Good luck, Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: python & nurbs

2004-12-19 Thread Mike C. Fletcher
where you'd find it. Many 3D modelers will let you create nurbs surfaces. IIRC Rhino was the pre-eminent NURBs-focused modeler a few years ago. Good luck, Mike ________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://b

Re: Step by step: Compiling extensions with MS Visual C++ Toolkit 2003 - msvccompiler-patch.txt (0/1)

2004-12-15 Thread Mike C. Fletcher
t how to make this work across SDK versions somehow. Thanks for the report, Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: save an opengl canvas (wxPython)

2004-12-14 Thread Mike C. Fletcher
ow to do it? TIA Zunbeltz ________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: building python extensions with .net sdk compiler?

2004-12-11 Thread Mike C. Fletcher
ude a vcvars32.bat that sets appropriate ones) if the VS lookup failed. Which is what the patch here: http://www.vrplumber.com/programming/mstoolkit/ does. Have fun, Mike ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com

Re: Compiling Python 2.4 extensions with free VC++ Toolkit

2004-12-10 Thread Mike C. Fletcher
Python. Just an FYI, Mike ________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling Python 2.4 extensions with free VC++ Toolkit

2004-12-10 Thread Mike C. Fletcher
oing a reply-to-all to catch the mailing-list. Might want to fix that... Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: [Newby] Problem with compilation.

2004-12-09 Thread Mike C. Fletcher
platforms. ... ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: 3D plotting library / OpenGL

2004-12-07 Thread Mike C. Fletcher
hoping for was a toolkit that worked cross-platform and assumed OpenGL is available, leaving me to pass it the OpenGL context and a few other essentials, or something that made a scene graph that I could render as I wish. ... ____ Mike C. Fletcher Des

<    1   2