Re: Why list.reverse() modifies the list, but name.replace() does not modify the string?

2018-09-03 Thread Mike C
Yes, I forgot that strings are immutable. I can't change anything in the string. Silly me! Thank you very much, I appreciate it. I guess sometimes it just take an outsider to take you outside the box. And all is answered. :) From: Python-list on behalf of Mark

Re: Why list.reverse() modifies the list, but name.replace() does not

2018-09-05 Thread Mike C
Yes, I forgot that strings are immutable. I can't change anything in the string. Silly me! Thank you very much, I appreciate it. I guess sometimes it just take an outsider to take you outside the box. And all is answered. :) From: Python-list on behalf of Mark La

Re: Overwhelmed by the Simplicity of Python. Any Recommendation?

2018-11-04 Thread Mike C
Same here. Debugging in Python is annoying, I like to step through my code line by line, it's impossible to do it with object-oriented programming language. Also, there's no good REPL IDE. Spyder barely works with some basic features. PyCharm, the most popular, takes too long to start, and you

Logistic Regression Define X and Y for Prediction

2019-11-12 Thread Mike C
Hi All, I have the below code. X = df.iloc[:, [4, 403]].values​ y = df.iloc[:, 404].values Dummy Data looks like: host Mnemonic 12.234.13.6 start 22.22.44.67 something 23.44.44.14 begin When I define the X and Y values for prediction in the train and test data,

Re: Logistic Regression Define X and Y for Prediction

2019-11-14 Thread Mike C
Hi Jason, I will try it out... Nothing in the documentation tells a person. Thanks From: Python-list on behalf of Jason Friedman Sent: Wednesday, November 13, 2019 7:19 PM Cc: [email protected] Subject: Re: Logistic Regression Define X and Y for Predicti

Re: adding a simulation mode

2012-07-04 Thread Mike C. Fletcher
the thing should return globalsub.subs( shutil.copytree, fake_copytree ) $ pip install globalsub HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org

Re: pygame - importing GL - very bad...

2013-01-03 Thread Mike C. Fletcher
used by the small variations from C OpenGL, making the API look entirely different wouldn't be a good direction to move, IMO. 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: pylint, was Re: pygame - importing GL - very bad...

2013-01-03 Thread Mike C. Fletcher
one: Does not match PEP8 recommended style" making it clear that this is *not* an error, it is a *style* related *warning*. 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: handling return codes from CTYPES

2013-01-21 Thread Mike C. Fletcher
take a pointer to a data-value to fill in their data, but not *your* function. That pattern looks like: result = c_short(0) my_ctypes_function( ..., byref(result) ) print result.value i.e. you have to pass the variable into the function (as a reference/pointer). HTH, Mike -- __

Re: handling return codes from CTYPES

2013-01-21 Thread Mike C. Fletcher
On 13-01-21 11:52 AM, Steve Simmons wrote: Mike, Thanks for your response - I was puzzled by one part of it though... On 21/01/2013 15:14, Mike C. Fletcher wrote: That's because you've just discarded the object you created I (mis?)understood from the ctypes document

Re: XSLT to Python script conversion?

2012-02-13 Thread Mike C. Fletcher
rate.py, model.py and templates/section.kid files are all you need to look at to understand the docbook processing. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://ma

Re: py2exe and OpenGL problem

2005-09-25 Thread Mike C. Fletcher
in the library.zip, but I still >get the same error. > >Anyone have any ideas or suggections? > > -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Teenagers of busses do *what*?

2005-09-29 Thread Mike C. Fletcher
t scared and fix your society. Entirely off-topic, 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: Merging sorted lists/iterators/generators into one stream of values...

2005-10-06 Thread Mike C. Fletcher
iterators[1][0]) == 1: iterators.sort() continue if __name__ == "__main__": s1 = [10, 20, 30, 40, 50] s2 = [15, 25] s3 = [17, 27, 37] s4 = [] for value in inorder(cmp, s1, s2, s3, s4): print value Anyway, have fun, Mike --

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-07 Thread Mike C. Fletcher
value in inorder(cmp, s1, s2, s3, s4): print value s1 = [{'a':'b'}, {'a':'e'}] s2 = [{'a':'d'}, {'a':'z'}] def comp( a,b ): return cmp( a['a'],b['a']) for value in in

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-10 Thread Mike C. Fletcher
It's never used AFAICS. >def merge_by_sort(streams): > sources = [[s.next(), i, s.next] for i, s in enumerate(streams)] > while sources: >sources.sort(reverse=True) >best_source = sources[-1] > yield best_source[0] >try: best_source[0] = b

Re: graphic memory & animation

2005-10-17 Thread Mike C. Fletcher
ct direction to take? If so is it easy to interface with Python > (it seems PyOpenGL is not freeware...) PyOpenGL has a BSD-style license, that's about as 'free' as one can get in the freeware sense. Just a note, Mike -- ____ M

Re: System tray Icon

2005-10-24 Thread Mike C. Fletcher
an app run with just a system tray Icon??? any help > would be greatly appreciated. I have no clue where to start. -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.pyth

Re: 3d Transformation

2005-11-29 Thread Mike C. Fletcher
er-level stuff. Anyway, hope this helps, 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: Favorite flavor of Linux? (for python or anything else)

2005-12-04 Thread Mike C. Fletcher
on version, but once you know that, Pythonicity in Gentoo is pretty straightforward. Anyway, just a vote that's trying very hard to keep on-topic for the python list, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http:

Re: new in programing

2005-12-09 Thread Mike C. Fletcher
r the last variable name). HTH, Mike Efrain Marrero wrote: >i want to now how to do this in python >this is java > > >for(int i=1 ; i<=lim ; i++){ > > for(int j=i+1; j<=lim+1; j++){ > > ... -- ____

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: 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: 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: 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: 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

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: 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

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-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: 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: "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: Proposal: reducing self.x=x; self.y=y; self.z=z boilerplate code

2005-07-02 Thread Mike C. Fletcher
r) and BasicProperty packages, as well as in Traits (originally part of a 2D graphics package), and Zope's FieldProperty (and PEAK, though as always with PEAK, it's somewhat weird in there ;) ). All of those are largish systems (or used in largish systems), btw. Just my thoughts, 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: Frankenstring

2005-07-12 Thread Mike C. Fletcher
st as a C-engine tokeniser, so I'd personally spend more time on elegance than on speed... Anywho, 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: Fire event when variable is Set/Get

2005-07-24 Thread Mike C. Fletcher
7;re not Open-Source). Have fun, Mike -- ________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com """Demonstration of observable properties""" from dispatch import dispatcher from basicproperty import basic clas

Re: Selection, picking with PyOpenGL?

2005-07-30 Thread Mike C. Fletcher
nameStack and a registered set of name:node values (self.selectable). It will use those to populate the event objects that show up in the OpenGLContext mouse-event-handling APIs. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Co

Re: Metaclasses and class variables

2005-08-04 Thread Mike C. Fletcher
s, name, bases, dictionary ): dictionary[ 'classvar' ] = cls.newClassVar[:] del cls.newClassVar[:] return super( meta, cls ).__new__( cls, name, bases, dictionary ) __metaclass__ = meta classvar = meta.newClassVar or something along those lines... Um, ick, but HTH, Mi

Re: PyOpenGL

2005-08-10 Thread Mike C. Fletcher
s between points. If it's a regular x,y grid, you can readily construct the polygons, if not, you get into something a little more fuzzy. 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: Decorator and Metaclasses Documentation

2005-08-21 Thread Mike C. Fletcher
r.com/programming/ Though the don't go into extreme detail on decorators (they are basically syntactic sugar for a particular type of descriptor). HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com htt

Re: Decorator and Metaclasses Documentation

2005-08-22 Thread Mike C. Fletcher
bruno modulix wrote: >Mike C. Fletcher wrote: >(snip) > > >>Though the don't go into extreme detail on decorators (they are >>basically syntactic sugar for a particular type of descriptor). >> >> >> >Err... Could you elaborate on this ? Dec

Re: python image thumbnail generator?

2005-08-27 Thread Mike C. Fletcher
* generate images for sources that don't yet have (or are newer than) their thumbnail you should be fine. >(4) Am I talking about re inventing the wheel? > > Probably. ZPhotoSlides (a Zope product) provides thumnailing, slideshows and the like, probably closer to what you'd want fo

Re: Pointers and ctypes

2005-08-29 Thread Mike C. Fletcher
e version of ctypes in CVS HEAD will allow you to pass in a c_ulong where the argtype is ctypes.POINTER(c_ulong). 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: File parser

2005-08-30 Thread Mike C. Fletcher
tried various parsing tools and EBNF grammars but VB6 >isn't really an EBNF-esque syntax in all cases, so I needed something >else. > ... You may find this project interesting to play with: http://vb2py.sourceforge.net/index.html Have fun, Mike -- ____

Re: Has anybody tried to make a navigation like Google?

2005-09-05 Thread Mike C. Fletcher
JOIN voip.voipaccount USING (voipaccount_id) %(wheres)s %(orders)s %(limits)s """) The UI then offers the user the ability to increase offset (page forward), decrease offset (page backward), and re-sort (change the ordering fields). You disable the paging if you've reached either end of the record-set (offset<0 offset >= total-1), obviously. Anyway, hope that helps, 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: improvements for the logging package

2005-09-13 Thread Mike C. Fletcher
priate if we're worried about emulation by users. Anyway, I realise Skip probably was using "in Py3K" in the "some unimaginably far-off time" sense, but just in case he wasn't I felt I should pipe up... 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: 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: Probably over my head... Trying to get Font Names

2005-02-17 Thread Mike C. Fletcher
ppreciated. S ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com PyCon is coming... -- http://mail.python.org/mailman/listinfo/python-list

Re: 3d graphics

2005-02-18 Thread Mike C. Fletcher
aph engine written in Python. HTH, Mike ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com PyCon is coming... -- http://mail.python.org/mailman/listinfo/python-list

Re: Probably over my head... Trying to get Font Names

2005-02-18 Thread Mike C. Fletcher
HTH, Mike ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com PyCon is coming... -- http://mail.python.org/mailman/listinfo/python-list

Re: Probably over my head... Trying to get Font Names

2005-02-18 Thread Mike C. Fletcher
f you then find problems with it not being able to find Numeric, install the Numpy release. HTH, Mike ________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com PyCon is co

Re: yield_all needed in Python

2005-03-01 Thread Mike C. Fletcher
ppens with: [ for yield from foogen1(arg3) ] would then have to be defined... that might make it too complex an change. Oh well. Have fun all, Mike ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com

Re: Python becoming less Lisp-like

2005-03-15 Thread Mike C. Fletcher
When you have metaprogramming to do, it is *such* a relief when you can get it done in Python without resorting to C. Have fun all, Mike ________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com

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

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: Compiling Python 2.4 extensions with free VC++ Toolkit

2004-12-10 Thread Mike C. Fletcher
Jody Burns wrote (with Peter): See Mike C. Fletcher's post and http://www.vrplumber.com/programming/mstoolkit/ for a way to do it very easily (you have to be able to use the GNU patch tool, but that's not difficult at all). --Jody ... not been able to get into hacking on the core

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: 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: 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: 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: 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: 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: 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-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: twistedSnmp and hexadecimal values ...

2005-03-30 Thread Mike C. Fletcher
n artefact of how we store and process the results of the TwistedSNMP queries, not TwistedSNMP itself. BTW, more detail in a question (what result you got, what result you expected, what you did to get the result) is generally a good idea. HTH, Mike

Re: Newbiw - PypenGL and OpenGLContext

2005-03-30 Thread Mike C. Fletcher
o explicitly return this""" return self.sg if __name__ == "__main__": MainFunction( TestContext ) There are other retained-mode/scenegraph engines available besides OpenGLContext, you can find a listing of some of them here: http://www.vrplumb

Re: Extracting Font Outline informations

2005-04-04 Thread Mike C. Fletcher
x27;t find anything ... > > bye ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: preallocate list

2005-04-13 Thread Mike C. Fletcher
he out-of-favour functional form for the mapping. 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

Any movement on FreeBSD segfaults when using threads?

2005-04-18 Thread Mike C. Fletcher
can begin to debug it. Thanks for any information, 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 Object Systems

2014-08-11 Thread Mike C. Fletcher
few dozen more "object systems" out there. You'll also likely find about a thousand metaclasses these days. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- h

Re: logging: warn() methods and function to be deprecated.

2011-10-24 Thread Mike C. Fletcher
named method in the instance? Anyway, I personally don't see this as worth the breakage. Just my $0.02, 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: logging: warn() methods and function to be deprecated.

2011-10-26 Thread Mike C. Fletcher
On 11-10-26 05:12 AM, Vinay Sajip wrote: > Mike C. Fletcher vrplumber.com> writes: > >> I actually consider .warning() a nit :) . After all, it's 3 extra >> characters :) , and *who* actually reads documentation instead of just >> poking around and finding

Re: logging: warn() methods and function to be deprecated.

2011-10-26 Thread Mike C. Fletcher
se you could just use the logging key as well as a piece of data. I'll withdraw the suggestion that it is not a trivial thing to add to 2to3, though I'll leave the implementation to someone else. Have fun, Mike -- ____ Mike C. Fletcher Desi

Re: memory leaks - tools and docs

2011-11-24 Thread Mike C. Fletcher
eliae dumps to produce visualizations of the memory used in the process. HTH, Mike https://launchpad.net/meliae http://www.vrplumber.com/programming/runsnakerun/ -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://

Re: subprocess module and long-lived subprocesses

2012-01-20 Thread Mike C. Fletcher
some reason the process isn't reading your input fast enough). I think everyone winds up with their own wrapper around subprocess after they use it for more than a short period... 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: PyOpengl text rendering with autocad font

2005-12-15 Thread Mike C. Fletcher
r is asking for .shx will allow it. >If somebody wants to help me :-) >Thanks. > > 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: Limiting the size of List and making it Homogeneous

2006-01-13 Thread Mike C. Fletcher
kind of behavior ? > >Thanks > > -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Extracting results from a large hotshot profile

2006-01-16 Thread Mike C. Fletcher
le that actually does the incremental loading, you could use that to produce a view by writing code to display the results statically. 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: Extracting results from a large hotshot profile

2006-01-16 Thread Mike C. Fletcher
lso be cases where a recursive call to the interpreter gets a whole separate stack... or maybe there's something going on with threads intermixing to create greater depth. Let me know if that helps, Mike -- Mike C. Fletcher Designer,

Re: 3D Vector Type Line-Drawing Program

2006-10-10 Thread Mike C. Fletcher
around, but generally people are either focused on making it look good or making it editable. 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: Beginner Python OpenGL difficulties

2006-05-29 Thread Mike C. Fletcher
S that are waiting for me to get my posterior in gear with Win32 testing to be released. Not sure if that would change anything for you, though. 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: simpleparse parsing problem

2006-09-02 Thread Mike C. Fletcher
gt; expr:= termlist, ( operator, termlist )+ > I *believe* you wanted that to be *, not + Best way to write a SimpleParse grammar is from the ground up, using test cases, so test each thing you think you're parsing. Makes it much easier to spot situations like this. HTH, Mike -

Re: does anybody earn a living programming in python?

2006-09-26 Thread Mike C. Fletcher
are putting together today in all those big institutions. 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: "fork and exit" needed?

2006-11-30 Thread Mike C. Fletcher
python which is how Linux knows what interpreter to use for the script. 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: pyopengl glShaderSourceARB error

2006-12-09 Thread Mike C. Fletcher
ay of lengths) parameters are pulled from the list-of-strings you pass. 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: Metaclass uses?

2006-12-15 Thread Mike C. Fletcher
taclasses-pycon.pdf 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: Traceback of hanged process

2007-01-08 Thread Mike C. Fletcher
You can also use the signal module to similar effect. Works well in Twisted, at least: http://blog.vrplumber.com/835 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: OpenGL

2006-01-22 Thread Mike C. Fletcher
PyOpenGL these days is focusing on the OpenGL-ctypes implementation, which hopefully will let far more people work on the source-code (and add features and coverage of more extensions). Have fun, Mike -- ____ Mike C. Fletcher Designer, VR Plumb

Re: OpenGL

2006-01-22 Thread Mike C. Fletcher
l the system how to do basic operations; get an array's size, shape, data-type, convert to a given data-format, build an "empty" array of a given size, that kind of thing. I haven't written a numarray one yet, but it should be a fairly trivial change from the Numpy/scipy-core

Re: Collecting snmp data - threads, processes, twisted?

2006-02-07 Thread Mike C. Fletcher
devices you'll likely want to batch the queries into ~ 200 simultaneous queries and/or use multiple protocols (gives you more OS-level buffering). Have fun, Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com htt

Re: Where do they tech Python officialy ?

2007-07-23 Thread Mike C. Fletcher
d suggest just learning "normal" Python first, *then* moving onto the hardcore stuff. 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: Call for advice on how to start PyOpenGL!

2007-08-20 Thread Mike C. Fletcher
t/showfiles.php?group_id=5988&package_id=221827 [3] http://www.google.com/codesearch?q=lang%3Apython -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Question: wxpython and 3d engine example with model load ?

2007-08-23 Thread Mike C. Fletcher
get panda3d and wxPython working together I don't see a soya + wxPython page in a few seconds of googling, so I guess finding that is left as an exercise for the reader. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vr

Re: Python GUI + OpenGL

2007-03-02 Thread Mike C. Fletcher
7;ll have to find a DLL for that if you need it. 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: interpreting glyph outlines from ttfquery?

2007-03-22 Thread Mike C. Fletcher
t the whole thing to a consistent array with numpy.array (or Numeric.array). That is, the 's' is just an artefact of how the calculation was done, the values are all 2-element coordinates, some as Python tuples, some as 2-element Numeric/numpy "short" arrays. 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: PyDispatcher question

2007-04-05 Thread Mike C. Fletcher
rather than __del__ methods, to avoid garbage cycles, btw. 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: Understanding Python's interpreter

2007-04-07 Thread Mike C. Fletcher
thon-list, and new compiler writers are just as important educational targets as new Python programmers. Have fun, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.

Re: TwistedMatrix missing OpenSSL?

2007-10-05 Thread Mike C. Fletcher
lto:[EMAIL PROTECTED]>> wrote: -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: pygame and python 2.5

2007-02-09 Thread Mike C. Fletcher
rg/ctypes/ 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: Saving PyOpenGl figures as ps

2007-02-11 Thread Mike C. Fletcher
ing an off-screen buffer (pbuffer or MESA) for the rendering, which may (depending on implementation) allow for higher resolutions. If you want a true vector graphic (PS, EPS) you'll need to use something like GL2PS. http://www.geuz.org/gl2ps/ HTH, Mike -- _____

Re: Dlls

2007-02-18 Thread Mike C. Fletcher
ers to use those "raw" functions, but they should work perfectly well. That is, you have to pass the right data-type, but then you'd have to do that in assembler too. 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

  1   2   >