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: python-list@python.org Subject: Re: Logistic Regression Define X and Y for Predicti

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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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-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: PyDispatcher on sourceforge doesn't play nice with easy_install

2010-03-30 Thread Mike C. Fletcher
PyPI. That should now work properly with easy_install. 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: Python for newbies (Pythno users group in Macedonia)

2010-03-13 Thread Mike C. Fletcher
108/ 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: Library support for Python 3.x

2010-01-27 Thread Mike C. Fletcher
Interestingly, at PyGTA Myles mentioned that he'd found his first-ever Python 3.x-only library! Which he then converted to Python 2.x, because he actually wanted to use it in real code :) . Projects which haven't ported to Python 3.x aren't necessarily dead, they&#x

Re: PyOpenGL and graphics card support

2009-10-01 Thread Mike C. Fletcher
nt name,glGetString(name) 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: Twisted 100% event driven or hybrid?

2009-09-23 Thread Mike C. Fletcher
ey will let your application remain responsive to network events during the processing. 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: Python and 3d

2009-09-13 Thread Mike C. Fletcher
ceneGraph, Crystal Space, etc) should all have content loaders, though I haven't played with them enough to be able to say what formats they support. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplu

Re: Observer implementations

2009-06-17 Thread Mike C. Fletcher
Tobias Weber wrote: > In article , > "Mike C. Fletcher" wrote: > > >> See PyDispatcher for code to do this. >> > > That was the original problem. Got it now: if used inside the class > definition dispatcher.connect will raise "cannot

Re: Observer implementations

2009-06-16 Thread Mike C. Fletcher
, but I haven't had to change anything in a rather long time. It pretty much just works. Enjoy, 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 Installation

2009-05-31 Thread Mike C. Fletcher
tion of endless must be broken ;) :) , 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: ANN: SuPy 1.6

2009-02-23 Thread Mike C. Fletcher
if there's anything else you feel should be said about the program, let me know. http://www.vrplumber.com/py3d.py#supy Have fun, Mike -- ________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumb

Re: OpenGL in TK

2009-02-17 Thread Mike C. Fletcher
headache of maintenance has vastly outweighed my interest. 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: Python 3D CAD -- need collaborators, or just brave souls :)

2009-02-10 Thread Mike C. Fletcher
ecide you want to go your own way. You may want to check out PythonCAD as well, which IIRC does 2D-only CAD. Anyway, hope this was some help. 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: PyOpenGL double-buffered hardware surface

2008-10-05 Thread Mike C. Fletcher
lay module. If wxPython, see their GLcanvas object. If GLUT, see glutInitDisplayMode, etceteras. Good luck, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.o

Re: Some questions about PyOpenGL and wxPython

2008-09-21 Thread Mike C. Fletcher
e doing to know what's wrong there. glColor should be working. 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 Tutorial?

2008-07-25 Thread Mike C. Fletcher
x27;s also tutorials that are not wxPython specific on the PyOpenGL documentation page. 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: simpleparse - what is wrong with my grammar?

2008-02-25 Thread Mike C. Fletcher
Laszlo Nagy wrote: ... > Is there any way I can specify precedence tables? Or do I have to use > a different parser generator then? You normally specify them as top_precedence/second_precedence/last_precedence sets. SimpleParse' limitation is with ambiguity, not with precedence. SimpleParse wi

Re: simpleparse - what is wrong with my grammar?

2008-02-24 Thread Mike C. Fletcher
t;&"/"@") word:= [a-zA-Z], [a-zA-Z0-9_]* the ?- lookahead is reasonably inefficient, but lookahead is always going around discarding partial results anyway, so it's no worse than most other formulations. 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: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Mike C. Fletcher
dmitrey wrote: > Hi all, > the url http://torquedev.blogspot.com/2008/02/changes-in-air.html > (blog of a game developers) > says IronPython is faster than CPython in 1.6 times. > Is it really true? > On certain platforms, I believe so, for certain types of operations. Not sure if Mono also pr

Re: PyOpenGL

2008-02-04 Thread Mike C. Fletcher
ur import until after you have the context setup and see if that lets glGetString return a valid pointer. 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: TopSort in Python?

2008-01-20 Thread Mike C. Fletcher
ore I knew the name IIRC)). > P.S. we have revived a thread started in 1999! > For some of us 1999 is well into our Pythonic life-cycle :) Have fun, Mike -- ________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http:

Re: GUI development with 3D view

2007-12-10 Thread Mike C. Fletcher
machines that have problems with the 3.x alphas so far. Tempus fugit, 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: Screen Shots?

2007-12-04 Thread Mike C. Fletcher
> > Any help would be greatly appreciated If you are using Pygame (you don't say which GUI library you are using), you can draw the mini-map into a surface and then re-blit the surface to the screen each time you want to display it. HTH, Mike -- ___

Re: dependency algorithm

2007-11-14 Thread Mike C. Fletcher
ut that's pretty trivial to change. 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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: 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: 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: 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: "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: 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: 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: 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: 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: Using python for a CAD program

2006-05-21 Thread Mike C. Fletcher
to the model. You could then have the simulation yield the interpreter lock and seldom block the rest of the process (save when it touches a Python object (i.e. the updates coming from or going to the queue)). 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: State of the "Vaults of Parnassus"

2006-05-14 Thread Mike C. Fletcher
Last I heard he had someone who was helping him every once in a while to review the new submissions, but that was quite a while ago. I don't *think* there's any discarding, but rather a delay so long in publishing that it would feel like a discard... Take care, Mike -- ___

Re: Can I control Video Card by using Python under linux?

2006-03-31 Thread Mike C. Fletcher
some suggestion. > Thanks! > You are probably looking for the "gstreamer" package. It has Python bindings available. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumb

Re: Cheese Shop: some history for the new-comers

2006-03-11 Thread Mike C. Fletcher
unication appropriately. When/if the user "gets" that the Package Index is the Cheese Shop they can feel great having pierced that bubble, but don't force them to pierce it to get the software they need. Just my two cents, 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: Speed of data structures in python

2006-03-10 Thread Mike C. Fletcher
abled. Simpler (static) scenegraphs where there's lots of traversal between nodes should be a much bigger win for converting the whole thing to a single display list. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder h

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

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

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

  1   2   >