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

Named pipes in threads

2004-12-12 Thread Philippe C. Martin
HI, I currently have a "working" script that uses sockets to handle threads communications - the problem is that it gives me obvious problems in handling free ports (launching the script more than once ). Is thread named pipes communication allowed ? Regards, Philippe -- http://mail.pyth

Re: Named pipes in threads

2004-12-12 Thread Philippe C. Martin
>>Replace the sockets with a queue of strings. >>http://docs.python.org/lib/module-Queue.html >>Write your Send and Recv functions in terms of Queue.get() and Queue.put(); And those entry points seem to reentrant too !!! Thanks a lot, you made my day (I say that a lot on this mailing lis

Re: Named pipes in threads

2004-12-12 Thread Philippe C. Martin
>>What are you trying to do?  Perhaps if you backed up and described >>the "what" we could make better recommendations about the "ho Just trying to have a GUI thread (tkinter) talk back and forth with a debugger derived object threaded (bdb). No I have not tried yet as sometimes things seem to

Re: Python 3.0

2004-12-14 Thread Edward C. Jones
Chris wrote: Okay, color me stupid, but what is everyone referencing when they mention Python 3.0? I didn't see any mention of it on the Python site. http://www.python.org/peps/pep-3000.html (which happens to be the first hit if you search for "python 3.0" in the search box on python.org...) Oka

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

2004-12-15 Thread Mike C. Fletcher
English Win2K Platform SDK. Don't know of any *good* way to figure out the keys in a version-agnostic manner. Suggestions welcome... (2) I don't now what people mean when talking about "msvcr71.lib". There's no such file on my machine. BUT there IS a "msvcrt.

bdb question

2004-12-16 Thread Philippe C. Martin
Hi, I am trying to fix the following problem: 1) I have a gui thread + a background thread that intantiates a bdb child. 2) When I wish to quit in the middle of a debugged program, I roughly do the following: 2.a) set_quit() 2.b) kill my bdb child 2.c) stop my background thread I notice that

Re: BASIC vs Python

2004-12-16 Thread Philippe C. Martin
>>and it was the only interpreter I've ever used that had no compilation >>phase whatsoever) is no easier to deal with than compiled C. Ditto for >>the various flavors of LISP I've worked with. I do find working with an interpreter easier than with a compiler. A

sgmllib problem & proposed fix.

2004-12-17 Thread C. Titus Brown
Hi all, while playing with PBP/mechanize/ClientForm, I ran into a problem with the way htmllib.HTMLParser was handling encoded tag attributes. Specifically, the following HTML was not being handled correctly: Small (6) The 'value' attr was being given the escaped value, not the correct unescaped

Re: sgmllib problem & proposed fix.

2004-12-17 Thread C. Titus Brown
Whoops! Forgot an executable example ;). Attached, and also available at http://issola.caltech.edu/~t/transfer/test-enc.py http://issola.caltech.edu/~t/transfer/test-enc.html Run 'python test-enc.py test-enc.html' and note that htmllib.HTMLParser-based parsers give different outpu

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

2004-12-10 Thread Mike C. Fletcher
[EMAIL PROTECTED] wrote: Hi all, I've been wondering if there's anything on the drawing board about patching distutils/msvccompiler.py so that it can compile Python extensions using the free Visual C++ toolkit instead of the entire Visual C++ development environment. I've

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

2004-12-15 Thread Philippe C. Martin
I'm struggling myself and have bought: "Mastering Regular Expressions" 2nd Edition, O'REILLY Jeffrey E. F. Friedl I covers the reg exp concepts + applications in various languages (mostly PERL but some Python also) -- ***** Philippe C. Martin SnakeCard L

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: Boo who? (was Re: newbie question)

2004-12-21 Thread Philippe C. Martin
Sorry but I really feel this incredible waste of energy is polluting an, otherwise, excellent and helpful mailing list. Best regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: list IndexError

2004-12-22 Thread Mike C. Fletcher
do source[:] = result[:] with any of those patterns. If you really do need/want in-place modification, these patterns are quite serviceable in many instances: # keep in mind, scans list multiple times, can be slow while 'e' in source: source.remove('e') or (and th

Re: list IndexError

2004-12-22 Thread Mike C. Fletcher
;) ... >>> def ishwor( source ): ... for item in source: ... if item == 'd': ... source.remove( item ) ... >>> d = ['a','b','c','d','e'] >>> ishwor( d ) >>> d ['a

Re: Killing a python thread with a signal

2004-12-23 Thread Philippe C. Martin
, but I added a 'QUIT-STYLE' command in my script when I want the thread to exit so it wakes up. Regards, Philippe -- ***** Philippe C. Martin SnakeCard LLC www.snakecard.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: Python on Linux

2004-12-27 Thread Philippe C. Martin
>> On Red Hat 9, Python is installed by default and it's version is 2.2.2 >> If I want to upgrade Python to 2.3.4(newer version), how could I do? >> If I compile source code of Python, how do I uninstall the old version? >> I tried rpm packages but failed with dependence. >I didn't try the rpm's.

python metrics program/script sample

2004-12-27 Thread Philippe C. Martin
Hi, I am looking for an eric3/linux compatible alternative to checking code metrics (ex: true lines of code count) Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: python metrics program/script sample

2004-12-27 Thread Philippe C. Martin
>>I don't know what "eric3/linux compatible" might be, I'm not sure >>what this would be an alternative _to_, and I don't know what you >>mean by "true" lines of code count, but the only thing I've >>noticed lately that counts lines of Python code, and I'm fairly >>sure it would run fine on Linux,

Re: python metrics program/script sample

2004-12-27 Thread Philippe C. Martin
pylint looks good! thanks Philippe -- http://mail.python.org/mailman/listinfo/python-list

RFC 2965 cookies, cookielib, and mailman.

2004-12-27 Thread C. Titus Brown
Hi all, just spent some time playing with cookielib in Python 2.4, trying to get the cookielib example [0] to work with my mailman admindb page. The problem was that cookies weren't getting saved. The issue turned out to be that mailman sends out RFC 2965 [1] cookies, which are by default rejected

Re: what would you like to see in a 2nd edition Nutshell?

2004-12-29 Thread c d saunter
advice or request about a 2nd edition of the : Nutshell, this is the right time for y'all to let me know. Feedback is : welcome, either privately or right here. Thanks in advance -- _and_ : apologies in advance because I know I just won't be able to accomodate : all the requests/advic

Re: How to pass parameter when importing a module?

2005-03-20 Thread Swaroop C H
lib == 'optimized' > from myModule_op import * Suggestion: Maybe you use builtin `__import__` to load a module ? Note that in this way, you'll have to use the module name prefix. -- Swaroop C H Blog: http://www.swaroopch.info Book: http://www.byteofpython.info -- http://mail.python.org/mailman/listinfo/python-list

Re: Submission for Python Limmerick Contest

2005-03-22 Thread Swaroop C H
On 22 Mar 2005 11:44:03 -0500, Roy Smith wrote: > A tuple, a dict, and a list, > And whitespace which mus'n't be missed. > Imported together, > And stirred with a feather, > Yields a language whose name must be hissed! Nice! +1 -- Swaroop C H Blog: http://www.

Re: FW: Python help group

2005-03-22 Thread Swaroop C H
nt in students] ['Jill', 'John'] >>> See `help(list.sort)` for details. -- Swaroop C H Blog: http://www.swaroopch.info Book: http://www.byteofpython.info -- http://mail.python.org/mailman/listinfo/python-list

Re: how to apply "mvc" pattern to gui-design in python

2005-03-28 Thread Swaroop C H
p://pygtkmvc.sourceforge.net/index.php/Main/Features -- Swaroop C H Blog: http://www.swaroopch.info Book: http://www.byteofpython.info -- http://mail.python.org/mailman/listinfo/python-list

Re: html tags and python

2005-03-28 Thread Swaroop C H
ster.com/JavaScript/Scripts_and_Programs/Calendars/ IMHO, using Javascript is a better idea for this particular purpose instead of writing a lot of checking in Python. -- Swaroop C H Blog: http://www.swaroopch.info Book: http://www.byteofpython.info -- http://mail.python.org/mailman/listinfo/python-list

Re: passing input to running loop

2005-03-28 Thread Swaroop C H
project I would > try to make a IRCbot. I am not sure if you want to write the program completely from scratch. If not, you could perhaps use the Twisted IRC module to do most of your work :) http://twistedmatrix.com/documents/current/api/twisted.protocols.irc.html Regards, -- Swaroop C H Blo

Re: convert user input to Decimal objects using eval()?

2005-03-28 Thread Swaroop C H
y? Also, why not simply use Decimal('1.000') + Decimal('0.111') ? -- Swaroop C H Blog: http://www.swaroopch.info Book: http://www.byteofpython.info -- http://mail.python.org/mailman/listinfo/python-list

Re: why and when we should do it?

2005-03-29 Thread Swaroop C H
sed as a placeholder so that you can add code later. > why and when we should inherit Object? You can inherit from Object if you want to have a 'new-style class'. See http://www.python.org/doc/newstyle.html -- Swaroop C H Blog: http://www.swaroopch.info Book: http://www.byteofp

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

2005-04-01 Thread Swaroop C H
On Apr 1, 2005 8:14 PM, Greg Lindstrom <[EMAIL PROTECTED]> wrote: > How do I read the data from a file in a zip archive? http://www.devshed.com/c/a/Python/Python-UnZipped Regards, -- Swaroop C H Blog: http://www.swaroopch.info Book: http://www.byteofpython.info -- http://mail.p

Module subprocess: How to "communicate" more than once?

2005-04-01 Thread Edward C. Jones
I have a program named "octave" (a Matlab clone). It runs in a terminal, types a prompt and waits for the user to type something. If I try # Run octave. oct = subprocess.Popen("octave", stdin=subprocess.PIPE) # Run an octave called "startup". oct.communicate("startup") # Change directory inside o

Re: pagecrawling websites with Python

2005-04-02 Thread Swaroop C H
x27;t have an answer to your particular question, but maybe you can have a look at how the HarvestMan works: http://freshmeat.net/projects/harvestman Regards, -- Swaroop C H Blog: http://www.swaroopch.info Book: http://www.byteofpython.info -- 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: re module non-greedy matches broken

2005-04-04 Thread Swaroop C H
On Apr 4, 2005 10:06 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: > > what book or books on regexes > A standard is Mastering Regular Expressions, 2nd ed, by xxx (sorry, forget) Mastering Regular Expressions, by Jeffrey Friedl See http://www.regex.info/ Regards, -- Swaroop

Re: Calling a Perl Module from Python

2005-04-06 Thread Swaroop C H
7;t). You've just discovered the only limitation of Python (in my view) - it doesn't have a module repository to rival CPAN. AFAIK, there isn't any reliable way to call Perl modules from Python. -- Swaroop C H Blog: http://www.swaroopch.info Book: http://www.byteofpython.info -- http://mail.python.org/mailman/listinfo/python-list

numarray.array can be VERY slow

2005-04-10 Thread Edward C. Jones
#! /usr/bin/env python """Should this program take 4.3 seconds to run? I have a Linux PC with an AMD Athlon XP 2000+ chip (1.7Gh). I use Python 2.4.1 and numarray 1.2.3, both compliled from source.""" import time, numarray from numarray.numerictypes import * nested = [] for i in range(8):

Re: numarray.array can be VERY slow

2005-04-10 Thread Edward C. Jones
Steven Bethard wrote: > As mentioned, this has nothing to do with numarray, and everything to > do with your inexplicable use of lists. Why don't you just write this > as: > > arr = numarray.ones((8, 8, 256, 256), Float64) The code I posted was simplified from a larger program which I have now re

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

Using python from a browser

2005-04-14 Thread Philippe C. Martin
Hi, I have a python script I wish to call from various browsers (IE; Mozilla, Firefox ..) on Windows & Linux. I read that IE had the capability to embedd Python scripts, but what about the others ? Regards, Philippe -- * Philippe C. Martin Snake

Re: Using python from a browser

2005-04-14 Thread Philippe C. Martin
Hi, >> What do you mean ? Is that a client-side or server-side script ? Client side >>Where ? Programming Python - O'Reilly - 2nd edition - by Mark Lutz - Paragraph "Teaching IE about Python" - Pages 922-925 Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python from a browser/security hole

2005-04-14 Thread Philippe C. Martin
Since I need to access a local/client device from the page and that I wish to be cross-platform; does that mean Java is my only way out ? Regards, Philippe Neil Hodgson wrote: > Philippe: > >> I read that IE had the capability to embedd Python scripts, but what >> about the others ? > >

Re: Using python from a browser/security hole

2005-04-15 Thread Philippe C. Martin
Neil, Would Jpython let me do that ? Would java let me call an external Python script - which in turn would access my device ? Thanks Philippe Neil Hodgson wrote: > Philippe: > >> Since I need to access a local/client device from the page and >> that I wish to be cross-platform; does that m

Re: Using python from a browser/security hole

2005-04-15 Thread Philippe C. Martin
I'll take a lok, thanks Roel Schroeven wrote: > Philippe C. Martin wrote: > >> Since I need to access a local/client device from the page and that I >> wish to be cross-platform; does that mean Java is my only way out ? > > Or you could try Jython (http://w

Re: Using python from a browser/security hole

2005-04-15 Thread Philippe C. Martin
nt-side web page. Either way (plug-in or java > applet with privileges) your user will have to agree to give access to > the hardware. > > -Jim > > On 4/15/05, Philippe C. Martin <[EMAIL PROTECTED]> wrote: > > Neil, > > > > Would Jpython let me do that ? >

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

2005-04-20 Thread Philippe C. Martin
I do not want to pollute the debate but: -) I remember a software QA managanager responsible for "C" coding rules also not allowing us to use 'break', 'continue', or 'return' (in the middle of a function). Although I find them 'cleaner' t

Re: goto statement

2005-04-20 Thread Philippe C. Martin
Loop bodies (for break) Grant Edwards wrote: > On 2005-04-20, Philippe C. Martin <[EMAIL PROTECTED]> wrote: > >> Although I find them 'cleaner' than goto, would not use goto, >> and certainly do use 'return' in the middle of functions, I >> als

Re: Faster os.walk()

2005-04-20 Thread Philippe C. Martin
How about rerouting stdout/err and 'popening" something like /bin/find -name '*' -exec a_script_or_cmd_that_does_what_i_want_with_the_file {} \; ? Regards, Philippe fuzzylollipop wrote: > du is faster than my code that does the same thing in python, it is > highly optomized at the os leve

Re: Python Debugger with source code tracking ability

2005-04-20 Thread Philippe C. Martin
Hi all, > > I am new to Python and desperated to look for a good Python debugger. > I mean a debugger with source coding tracking. For C/C++, emacs and > gud offers execellent development env. The source code tracking is > extremely useful for recursive functions. > > I have

Re: goto statement

2005-04-20 Thread Philippe C. Martin
lden wrote: > Philippe C. Martin wrote: >> I do not want to pollute the debate but: >> >> -) I remember a software QA managanager responsible for "C" coding rules >> also not allowing us to use 'break', 'continue', or 'return' (in the >>

Does numarray search for blas and lapack during installation?

2005-04-23 Thread Edward C. Jones
I have a PC with Debian sid installed. I install all my Python stuff in /usr/local. I just installed numarray 1.3.1. Blaslite and lapacklite were compiled. Did the installation process search for blas and lapack? -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Graphic editor within an MFC app. I have a wxPython prototype, that...

2005-04-24 Thread Philippe C. Martin
Does that mean you are using C++/C# and not Python ? I also guess you do not wish MFC and wxWindows to coexist in the same .exe as the reasons for conflict are many (GDI port, main event loop .) Then do you simply wish to "map" your wxindows calls to equivalent MFC calls with so

Re: Using Ming on Windows

2005-04-24 Thread Philippe C. Martin
I never managed to link my python extensions (mingw .a) with python and broke down and bought Visual/C++ as it is the compiler used by Python. Yet some people seem to have managed: http://uucode.com/texts/python-mingw/python-mingw.html Regards, Philippe Jack Diederich wrote: > On Sat,

Re: what is the best way to determine system OS?

2005-04-25 Thread Philippe C. Martin
How about popen of 'uname -r' ? Regards, Philippe googleboy wrote: > Hi there. > > I am writing a little app tha tI would like to make cross-platform > (debian, RH, Fedora, Solaris, AIX, etc) > > Originally I decided to check what uname returned, as I didn't think it > mattered beyond the de

Re: what is the best way to determine system OS?

2005-04-25 Thread Philippe C. Martin
Well, At least I discovered os.uname :-) Thanks, Philippe Sion Arrowsmith wrote: > Philippe C. Martin <[EMAIL PROTECTED]> wrote: >>How about popen of 'uname -r' ? > > os.uname()[2] is probably a better way (ie it doesn't spawning > another process) of

Re: cross platform printing - using a GUI ?

2005-04-25 Thread Philippe C. Martin
If you're in need of a GUI, then wxPython might be your cross-platform printing solution. Regards, Philippe David Isaac wrote: >> Alan Isaac wrote: >> > What is the current best practice for cross platform printing of > PostScript >> > files from Python? > > "Warren Postma" <[EMAIL PROTECTED

Re: ANN: PyDev 0.9.3 released

2005-04-25 Thread Philippe C. Martin
Hi, For some reason, Eclipse automatic search for updating existing features does not see it Regards, Philippe Fabio Zadrozny wrote: > Hi All, > > PyDev - Python IDE (Python development enviroment for Eclipse) version > 0.9.3 has just been released. > > Check the homepage (http://py

Re: ANN: PyDev 0.9.3 released

2005-04-25 Thread Philippe C. Martin
recationWarning: Non-ASCII character '\x90' in file > C:\Python24\python.exe on line 1, but no encoding declared; see > http://www.python.org/peps/pep-0263.html for details > File "C:\Python24\python.exe", line 1 > MZ?$,000$0 0n.pdbAÂ330ÂÂ3Â::0Â3ÂÂ3Â >

Re: Python, Perl & PDF files

2005-04-25 Thread Philippe C. Martin
This is highly frustrating !! Did Athena come to help or not ? Christos TZOTZIOY Georgiou wrote: > On Mon, 25 Apr 2005 10:32:11 -0400, rumours say that rbt > <[EMAIL PROTECTED]> might have written: > >>I do not seek to provoke. Sorry if my question comes across that way to >>you. > > Thank

Lexicographical sort for numarray

2005-04-26 Thread Edward C. Jones
Suppose arr is a two dimensional numarray array. Suppose we do the following: def rowsort(arr): a = arr.tolist() a.sort() return numarray.array(a) Can this sort be done efficiently in numarray? This function is called "rowsort" in MatLab. -- http://mail.python.org/mailman/listinfo/py

Re: Which IDE is recommended?

2005-04-27 Thread Philippe C. Martin
I really like eclipse + pydev Regards, Philippe monkey wrote: > Read through python site for programming tool, really plenty of choices > :-) (For c++, I just can't breath with very very limited choices) > > Tried Spe, it come with wxGlade built-in very nice(is Spe still a

Re: how can I sort a bunch of lists over multiple fields?

2005-04-28 Thread Philippe C. Martin
(a, b, ndx): > - if a[ndx] < b[ndx]: > -return -1 > -elif a[ndx] > b[ndx]: > - return 1 > -else: > -return 0 > - > -def cmp_0(a, b): > -return cmp_index(a, b, 0) > - > -def cmp_1(a, b): > -return cmp_index(a, b, 1) >

Re: Pythonic love

2016-03-08 Thread Javier Novoa C.
justin walters writes: > Sorry about the top posting. I'm new to mailing lists. I should just reply > to the python-list@python.org address then? > > Also, thank you for the generator clarification. > On Mar 8, 2016 9:09 AM, "jmp" wrote: ^ that's top posting always reply inline or at the bo

Re: Plotting multiple datasets with gnuplot

2014-05-12 Thread s . c . wouters
On Friday, October 9, 2009 12:12:54 PM UTC+2, Gabriel Genellina wrote: > En Fri, 09 Oct 2009 06:36:45 -0300, Rob Garrett > escribiï¿oe: > > > I'm trying to get gnuplot to display multiple data series on a single > > plot using gnuplot in python. I've searched around and haven't found > > a sol

Re: Moving to Python 3.x

2015-05-09 Thread Jason C. McDonald
code to run on both Py2 and Py3. NINJA-IDE (an open source Python IDE) will lint your code so it'll run in both. -- Jason C. McDonald (CodeMouse92) [CEO, Lead Dev @ MousePaw Games] -- https://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

Python Imaging Library 1.x - 64bit setup file for Python 2.7.2.

2014-09-25 Thread Pinter, Karina /C
Dear Team, I am working as a software analyst at ExxonMobil. I received a software request for Python Imaging Library 1.x and the user needs a 64bit setup file for Python 2.7.2. Can I download it somewhere? Thanks in advance. Best Regards, Karina Pinter ExxonMobil BSC Hungary Kft. Software A

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

Simple legend code no longer works after upgrade to Ubuntu 11.10

2011-12-12 Thread C Barrington-Leigh
rom pylab import * plot([0,0],[1,1],label='Ubuntu 11.10') Before I upgraded to 2.7.2+ / 4 OCt 2011, the following code added a comment line with a legend. Now, the same code makes the legend appear "off-screen", ie way outside the axes limits. Can anyone help? And/or is there a new way to add a ti

Simple legend code no longer works after upgrade to Ubuntu 11.10

2011-12-12 Thread C Barrington-Leigh
""" Before I upgraded to 2.7.2+ / 4 OCt 2011, the following code added a comment line to an axis legend using matplotlib / pylab. Now, the same code makes the legend appear "off-screen", ie way outside the axes limits. Can anyone help? And/or is there a new way to add a title and footer to the le

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: Robotics and parallel ports

2005-12-15 Thread c d saunter
er's Bonanza" Seperatly: USB needn't be so hard... This little board of tricks http://www.dlpdesign.com/usb/usb245.shtml gives you a parallel interface from USB 1.1, and a C library on the PC (which can be accessed from Python with ctypes) - data rate is similar to the parallel port,

Re: Robotics and parallel ports

2005-12-17 Thread c d saunter
Isaac T Alston ([EMAIL PROTECTED]) wrote: : Thanks for everyone's tips and hints. I WILL MAKE THIS WORK! I think I'll : take your advice and use the serial port instead of the parallel port - I : won't have that much data to send (in comparison with, for example, : industrial level applications). A

Announcement: mrquery finds duplicate images

2005-12-19 Thread Edward C. Jones
program, you need: Familiarity with the standard UNIX commands Linux (other UNIX systems may work) Python 2.4 or later (2.2 or 2.3 may work) Experience programming with Python To know how to compile C programs (preferably with gcc) Warning: this program is new, buggy and command-line oriented. -- http://mail.python.org/mailman/listinfo/python-list

tutorials on xslt

2005-12-28 Thread Iyer, Prasad C
Hi, Is there any tutorial available for python-xslt processing. It would be really helpful regards prasad chandrasekaran This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addre

Widget that displays a directory tree?

2006-01-12 Thread Edward C. Jones
Do any of the Python GUIs have a super-high-level widget that displays a directory tree? Most file managers or editors have this type of window. -- 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
?view=markup Note, however, that if you goal is to create a simple C-level pointer of machine ints you'll need to use Numpy or a similar system that implements such a type. Have fun, Mike ankit wrote: >Is it possible to limit the size of list in python. >I want to make list of 5 el

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
Brian Cole wrote: >Thanks for the tip. I got the following error message when trying to >run your profiler. > > ... > File "c:\Documents and Settings\coleb2\My > Documents\software\Python24\Lib\site >-packages\runsnakerun\hotshotreader.py", line 95, in loadHots

Re: Fastest Way To Loop Through Every Pixel

2006-07-28 Thread c d saunter
Chaos ([EMAIL PROTECTED]) wrote: : He is the code #Actions here : myCol = (0.3 * image.GetRed(thisX, thisY)) + (0.59 * : image.GetGreen(thisX, thisY)) + (0.11 * image.GetBlue(thisX, thisY)) : if myCol < darkestCol: :darkestCol = myCol :possX = thisX :possY = thisY You really don't wa

Re: Resource temporarily unavailable launching idle under cygwin

2006-08-08 Thread Juan C. Méndez
The "rebase" process worked.  Thanks, Jason.  The other previously posted solution of uninstalling and reinstalling Python did not.    On 8/8/06, Jason Tishler <[EMAIL PROTECTED]> wrote: Juan C.,On Mon, Aug 07, 2006 at 11:47:33AM -0700, jcmendez wrote:> Hello everyone.  Trying

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: ANN: wxPython 2.7.1.3

2006-10-27 Thread Johann C. Rocholl
Hi Robin, You may want to use a spell checker for announcements and for the wxpython.org website. For example, the first paragraph of your announcement contains the words "plust" and "pacakges", and the word "pacakge" can also be found on the following pages: www.wxpython.org/download.php www.wxp

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

XML-RPC server with xmlrpclib and mod_python

2006-06-01 Thread Johann C. Rocholl
Hi all, I'm wondering what would be the best way to write an XML-RPC server using mod_python with Apache 2.0. I want the mod_python environment because the rest of my project is web-based, and Apache gives me multi-threading and everything. My first attempt implements XML-RPC introspection. Pleas

Writing PNG with pure Python

2006-06-09 Thread Johann C. Rocholl
Just in case anybody has the same problem, here's my first attempt at implementing a subset of the PNG spec in pure Python. I license it to you under the terms of the GNU GPL. http://trac.browsershots.org/browser/trunk/shotfactory/lib/image/png.py It encodes RGB images with 24 bits per pixel into

Re: Writing PNG with pure Python

2006-06-09 Thread Johann C. Rocholl
> You should really also include the alpha channel. Without that, PNG is > crippled IMHO. I have now added simple transparency (marking one color as transparent with a tRNS chunk). If anybody wants full alpha channel support, ask kindly or send me a patch. I would like to avoid duplicating all the

Re: Writing PNG with pure Python

2006-06-09 Thread Johann C. Rocholl
Alan Isaac schrieb: > It's your code, so you get to license it. > But if you wish to solicit patches, > a more Pythonic license is IMHO more likely > to prove fruitful. What license would you suggest? After some reading at [1] and [2] and [3], I found that the Academic Free License (version 2.1) a

Re: Writing PNG with pure Python

2006-06-09 Thread Johann C. Rocholl
The MIT license is enticingly short and simple, thank you for the tip. I have now decided to license my project (including the pure python PNG library) under the Apache License 2.0 which is less restrictive than the GPL in terms of sublicensing. The Apache License looks modern and well-maintained

Re: Writing PNG with pure Python

2006-06-12 Thread Johann C. Rocholl
> Just in case anybody has the same problem, here's my first attempt at > implementing a subset of the PNG spec in pure Python. I license it to > you under the terms of the GNU GPL. Update: the code is now licensed under the Apache License 2.0. > http://trac.browsershots.org/browser/trunk/shotfac

<    2   3   4   5   6   7   8   9   10   11   >