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

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

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' than goto, would not use goto, and certainly do use 'return

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
Idle (does have source tracking) Eclipse + pydev Eric3 (Linux only) The problem I have with any of them (as well as my own debugger) is their speed: I believe they all use bdb that is currently fairly slow stepping over extensive amount of code Regards, Philippe Tran Tuan Anh wrote: > Hi a

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

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 some kind of stu

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, Apr 23

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
I forced the installation and it worked I'm using 2.4.1 Regards, Philippe James wrote: > It does for me. I just installed through it. > > http://pydev.sourceforge.net/updates/ > > I am having some other problems though. When I run it, I get ... > > sys:1: DeprecationWarning: Non-ASCII ch

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

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 actively > develop?)

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

2005-04-28 Thread Philippe C. Martin
How about using the csv module instead of splitting ? [EMAIL PROTECTED] wrote: > What you want I guess is to read first all lines of the file into a > string as you did, and then let the split method split it based on > newlines only - see example below. > > Then you use split again to put all

Re: Pydev Refactoring Feature in Eclipse

2005-05-03 Thread Philippe C. Martin
Hi, I am using Eclipse 3.0.2 with Pydev 0.9.3 under Mandrake 10.1 and it works OK. Is 3.1M3 stable?, I see their latest milestone/stable is 3.1M6 - might want to upgrade. Regards, Philippe querejeto wrote: > Folks: > > I cannot get a refactoring menu to show up on my Eclipse (3.1M3, > Wi

Re: OOP

2005-05-03 Thread Philippe C. Martin
Try this: http://pigseye.kennesaw.edu/~dbraun/csis4650/A&D/UML_tutorial/ [EMAIL PROTECTED] wrote: > Hey yall, > I'm new to Python and I love it. Now I can get most of the topics > covered with the Python tutorials I've read but the one thats just > stumping me is Object Orientation. I can't get

Re: tkinter and threads

2005-05-04 Thread Philippe C. Martin
I might be wrong, but my experience is to keep all tkinter calls in the main thread and use queues to have other threads tell the main one what to do. Regards, Philippe Nir Aides wrote: > Hello, > > In Tkinter, is it safe to call widget.after(time, callback) from another > thread (other than

Re: python+windows/linux -> write stdout text to always on top text?

2005-05-04 Thread Philippe C. Martin
I understand you wish to reroute stdout to some object than can write to a window - correct ? If so, this is what I do with tkinter class SC_Log_Stdout: #*** def __init__(self, p_log_text): self.__m_log_text

SC-Corporate-ID released

2005-05-06 Thread Philippe C. Martin
Dear all, I am very pleased to announce the release of SC-Corporate-ID. SC-Corporate-ID is a commercial Smart Card security system that can be extended by the user using the Python language. SC-Corporate-ID is written in Python and wxPython for the most part (except for the PCSC wrapper, the GIN

Re: hard memory limits

2005-05-07 Thread Philippe C. Martin
Hi, Why don't you catch the exception and print the trace ? Regards, Philippe Maurice LING wrote: > John Machin wrote: >> On Sat, 07 May 2005 02:29:48 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: >> >> >>>On Sat, 07 May 2005 11:08:31 +1000, Maurice LING <[EMAIL PROTECTED]> >>>wrote: >>> >

Re: Ask for a tools to protect my .pyc file :)

2005-05-07 Thread Philippe C. Martin
Is it stable ? I tried it a few months ago and it crashed on my code I do not code that badly ;-) Regards, Philippe [EMAIL PROTECTED] wrote: > pyobfuscate > > http://www.lysator.liu.se/~astrand/projects/pyobfuscate/ -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python regex Doc (was: Python documentation moronicities)

2005-05-07 Thread Philippe C. Martin
This is nice! I just might understand regex eventually. Xah Lee wrote: > erratum: > > the correct URL is: > http://xahlee.org/perl-python/python_re-write/lib/module-re.html > > Xah > [EMAIL PROTECTED] > â http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Encryption with Python?

2005-05-07 Thread Philippe C. Martin
I use http://www.amk.ca/python/code/crypto.html Regards, Philippe Blake T. Garretson wrote: > I want to save some sensitive data (passwords, PIN numbers, etc.) to > disk in a secure manner in one of my programs. What is the > easiest/best way to accomplish strong file encryption in Python?

Re: Encryption with Python?

2005-05-07 Thread Philippe C. Martin
PS: remmember that single DES has been brocken. If you're also interested in signature, this is an interesting article (a big upsate if true) http://it.slashdot.org/article.pl?sid=05/02/16/0146218&tid=93 Regards, Philippe Philippe C. Martin wrote: > I use http://www.amk.ca

Re: Encryption with Python?

2005-05-14 Thread Philippe C. Martin
Hi, I am a very happy user of http://www.amk.ca/python/code/crypto.html Regards, Philippe Blake T. Garretson wrote: > I want to save some sensitive data (passwords, PIN numbers, etc.) to > disk in a secure manner in one of my programs. What is the > easiest/best way to accomplish strong fil

Re: A new to Python question

2005-05-14 Thread Philippe C. Martin
Hi, You're thinking you're passing the arguments as reference (look at mutable vs non-mutable) Your function returns the values in a tupple (x,y,...); you need to fetch the values from that tupple Regards, Philippe David wrote: > Hi I'm trying to teach myself python and so far to good, bu

Re: A new to Python question

2005-05-14 Thread Philippe C. Martin
Yes, I gathered. We all get our habits from somewhere :-) Regards, Philippe Bernd Nawothnig wrote: > On 2005-05-14, Philippe C. Martin wrote: > >> You're thinking you're passing the arguments as reference > > That is the way Fortran handles them: > > [

Re: Jesus said, "I am the way, the truth and the life: no one can come to the Father(God)(in Heaven), but by me." (John 14:6) This means that if you die without trusting in Jesus Christ as your Lord and Saviour you will die in your sins and be forever sepa

2005-05-16 Thread Philippe C. Martin
No need to, just give the guy a glass of water and he'll fix it for you Mike Meyer wrote: > [EMAIL PROTECTED] (Mike brown) writes: > >> In article <[EMAIL PROTECTED]>, "Bubba" <[EMAIL PROTECTED]> >> wrote: >> >>> I'm so glad you've decided what everyone believes >>> >> >> >> >> Some of us

Extracting pickle from Python

2005-05-16 Thread Philippe C. Martin
Hi, How would one go about extracting the pickle module from Python (ex: to make a .a or a .dll) ? Thanks Philippe -- http://mail.python.org/mailman/listinfo/python-list

Sorting x lists based on one list

2005-05-17 Thread Philippe C. Martin
Hi, I'm looking for an easy algorithm - maybe Python can help: I start with X lists which intial sort is based on list #1. I want to reverse sort list #1 and have all other lists sorted accordingly. Any idea is welcome. Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-lis

Re: Sorting x lists based on one list ... maybe an example would make sense:

2005-05-17 Thread Philippe C. Martin
l1 = ['a','b','c'] l2 = ['toto','titi','tata'] # 'toto' refers to 'a', 'titi' to b' l3 = ['foo','bar','doe'] # 'foo' refers to 'a' I want

Re: Sorting x lists based on one list ... maybe an example would make sense:

2005-05-17 Thread Philippe C. Martin
Philippe Peter Otten wrote: >> Philippe C. Martin wrote: >> >>> I'm looking for an easy algorithm - maybe Python can help: >>> I start with X lists which intial sort is based on list #1. >>> I want to reverse sort list #1 and have all other lists sorted

Re: Sorting x lists based on one list ... maybe an example would make sense:

2005-05-17 Thread Philippe C. Martin
I will look at that merge/unmerge thing Peter Otten wrote: >> Philippe C. Martin wrote: >> >>> I'm looking for an easy algorithm - maybe Python can help: >>> I start with X lists which intial sort is based on list #1. >>> I want to reverse

Re: Sorting x lists based on one list ... maybe an example would make sense:

2005-05-17 Thread Philippe C. Martin
I had no clue this was feasible! Python folks should get the Nobel price ! Larry Bates wrote: > Why not merge the lists together using zip() and then > sort. > > info=zip(l1, l2, l3) > info.sort() > info.reverse > > Larry Bates > > Philippe C. Martin wrot

Re: How to learn OO of python?

2005-05-18 Thread Philippe C. Martin
You might want to look at this first: http://pigseye.kennesaw.edu/~dbraun/csis4650/A&D/UML_tutorial/ http://uml.tutorials.trireme.com/ could ildg wrote: > I have learned python for over a month. > I heard that it was very easy to learn, but when I tried to know OO of > python, I found it re

Re: newbie running IDLE with command line arguments

2005-05-18 Thread Philippe C. Martin
I might be missing it, but I do not see anyway to set command line params in IDLE. You might hage to set the values in your code: host, port, message = 'localhost', 9000, .; crypto wrote: > Hi, > > I am trying to use IDLE in order to test my program. My program is the > following: > >

Re: How to learn OO of python?

2005-05-18 Thread Philippe C. Martin
PS: if you're under linux, try umbrello: you design your classes with a graphical tool and umbrello will generate the code (Python too) for you. Philippe C. Martin wrote: > You might want to look at this first: > > http://pigseye.kennesaw.edu/~dbraun/csis4650/A&D/UM

Re: Newbie python design question

2005-05-22 Thread Philippe C. Martin
Hi, I C I usually use switch for my FSMs, in Python however I usually use if + elif Your question makes me realize it would be trivial to use a dictionnary in case the FSM had too many states, the key being the state and the item the method to handle the state. Regards, Philippe Mich

Re: passing arguments

2005-05-22 Thread Philippe C. Martin
Hi, look at sys.argv Regards, Philippe Jeff Elkins wrote: > I'm sure this is obvious, but how the heck do pass an argument(s) to a > python script from the command line? > > Thanks, > > Jeff Elkins -- http://mail.python.org/mailman/listinfo/python-list

Python 2.4.1 installation problem

2005-05-24 Thread Philippe C. Martin
Hi, I am trying to install 2.4.1 on a new machine and have the following problems. 1) I'm on MDK 10.1 2) The system had 2.3.4 installed in /usr , I deleted the lib 3) I ran ./configure --prefix=/usr, then make, then make install, everything went OK If I run Python, I get File "/etc/pythonrc.py

Re: Python 2.4.1 installation problem

2005-05-24 Thread Philippe C. Martin
I had not realized (silly me) that Python might need external libraries in order to support specific modules. I have installed the bz2 and readline devel packages re-configured/made and everythin os now working. Philippe C. Martin wrote: > Hi, > > I am trying to install 2.4.1

SCF Bundle released

2005-05-26 Thread Philippe C. Martin
Dear all, I am very happy to announce the release of SCFB: a python development toolkit for Smart Cards. SCFB comes with all necessary tools to easily get a Smart Card application running. SCFB also includes the necessary Smart Card and their software interface. SCFB is the tool we use to deve

Re: Case Sensitive, Multiline Comments

2005-05-26 Thread Philippe C. Martin
Hi, A1: because some people find it very useful ? I know I do A2: they exist: """ Regards, Philippe Elliot Temple wrote: > Hi I have two questions. Could someone explain to me why Python is > case sensitive? I find that annoying. Also, why aren't there > multiline comments? Would adding

Trying to understand pickle.loads withou class declaration

2005-05-28 Thread Philippe C. Martin
Hi, Shuffling files around in my project, I notice I broke everything when I stopped declaring classes in a program that "pickled.loaded" existing pickled object of type "classes". The error message being that the class(es) was unknown. However, I _think_, I did manage to do the following in the

Re: Trying to understand pickle.loads withou class declaration

2005-05-28 Thread Philippe C. Martin
I confirm that all I have to do in order to successfully load a pickled object of class A is to declare class A: def __init__(self): pass Although the object has tons of fields Quid ? Regards, Philippe Philippe C. Martin wrote: > Hi, > > Shuffling files around in m

Re: Getting value of radiobutton trouble

2005-05-28 Thread Philippe C. Martin
Hi, I think your second call to Tk() does it: this works although the look is different: from Tkinter import * class GetVariant: def __init__(self): self.root = Tk() self.mainframe = Frame(self.root,bg="yellow") self.mainframe.pack(fill=BOTH,expand=1) s

Re: Getting value of radiobutton trouble

2005-05-28 Thread Philippe C. Martin
Button(self.root,text="click me",command=self.getvar).pack() def getvar(self): print 'HRE' a=GetVariant(self.root) d = OneButton() d.root.mainloop() Philippe C. Martin wrote: > Hi, > > I think your second call to Tk() does

Re: Getting value of radiobutton trouble

2005-05-28 Thread Philippe C. Martin
PS: Since your starting with TKinter, and although I do not know what your goal is, I suggest you take a look at wxPython: it is _wonderfull_ ! (no offence to TCL/TK) Regards, Philippe VK wrote: > Philippe C. Martin wrote: >> Hi, >> >> I think your second call to Tk(

Re: scipy for python 2.4

2005-05-28 Thread Philippe C. Martin
In order to help, I just tried to compile it, and it seems to have a bunch of dependencies to worry about: [EMAIL PROTECTED] SciPy_complete-0.3.2]# python setup.py install fftw_info: NOT AVAILABLE dfftw_info: NOT AVAILABLE FFTW (http://www.fftw.org/) libraries not found. Directori

Re: String manipulations

2005-05-28 Thread Philippe C. Martin
Multiply them by 1 ? Lorn wrote: > I'm trying to work on a dataset that has it's primary numbers saved as > floats in string format. I'd like to work with them as integers with an > implied decimal to the hundredth. The problem is that the current > precision is variable. For instance, some n

Re: Getting value of radiobutton trouble

2005-05-28 Thread Philippe C. Martin
ant",command=self.call) >> self.var.pack(expand=1,side=BOTTOM) >> >> >> >> def call(self): >> print dir(self.v) >> self.variant = self.v.get() >> print 'Input => "%s"' % self.varian

Re: Trying to understand pickle.loads withou class declaration

2005-05-29 Thread Philippe C. Martin
Thanks, Philippe Sébastien Boisgérault wrote: > Even > > class A: > pass > > should do the trick. Only the instance attributes are saved by a > pickle, > not the methods or the class itself. The unpickler tries to merge the > saved data and the class/method info that is not saved

Re: plotting with Python

2005-05-30 Thread Philippe C. Martin
Look at wxPython Regards, Philippe Rolf Wester wrote: > Hi, > > I have a Python console application that is intended to be used > interactively and I have to add plotting capabilities (multiple XY plots > and if possible 2D-surface plots). I'm loocking for a reasonably fast > plotting librar

Re: exit after process exit

2005-05-31 Thread Philippe C. Martin
os.popen ? Regards, Philippe [EMAIL PROTECTED] wrote: > Hello, > > I would like to run a python process and wait until the process exit. > How can I do it? > > For example I would like to run a.exe. and wait until a.exe exit. > > Sincerely Yours, > Pujo -- http://mail.python.org/mailman/

csv and iterator protocol

2005-06-04 Thread Philippe C. Martin
Hi, I have the following working program: 1) I import data in csv format into internal data structures (dict + list) 2) I can export back to csv 3) I can store my internal data using pickle+bz2 4) I can reload it. Hovever I notice a factor 10 size loss using pickle. So I would like to bzip/sto

Re: csv and iterator protocol

2005-06-05 Thread Philippe C. Martin
Thanks Kent, I had a bug in my test program: it works fine with strings Philippe Kent Johnson wrote: > Philippe C. Martin wrote: >> Can I initialize csv with input data stored in RAM (ex: a string) ? - so >> far I cannot get that to work. Or to rephrase the question, what

Re: circular import Module

2005-06-08 Thread Philippe C. Martin
That's the only way out I found with some module import problem using code generated by wxDesigner. Josef Meile wrote: >>>Circular import does not work on module level, but you can >>>import the module in a method: >>> >>>file1.py: >>>import file2 >>> >>> >>> >>>file2.py: >>># import file1 #

Generating HTML from python

2005-06-09 Thread Philippe C. Martin
Hi, I wish to use an easy way to generate reports from wxPython and feel wxHtmlEasyPrinting could be a good solution. I now need to generate the HTML wxHtmlEasyPrinting can print: I need to have a title followed by lines of text that do not look too ugly. If possible I would like to use an existi

Re: Generating HTML from python

2005-06-09 Thread Philippe C. Martin
PS: I am looking at the formatter module which seems to be related to HTML somehow, but without any code sample I'm a bit lost Philippe C. Martin wrote: > Hi, > > I wish to use an easy way to generate reports from wxPython and feel > wxHtmlEasyPrinting could be a good solution

Re: Generating HTML from python

2005-06-09 Thread Philippe C. Martin
I'll take a pick thanks - I like the fact it's buit-in (no extra installation) Michele Simionato wrote: > You could generate your report in reStructuredText > format (Google is your friend) and then convert > them in HTML, PS, PDF, etc. > > Michele Simionato -- http://mail.python.o

Re: Generating HTML from python

2005-06-09 Thread Philippe C. Martin
Thanks a bunch, I'm currently playing with HTMLGen (great but not in Python distrib ...) and it look very good - Yet your code example looks simple enough for me to look at that alternative. Thomas Guettler wrote: > Am Thu, 09 Jun 2005 12:43:19 + schrieb Philippe C. Martin:

howto send html mails using smtplib

2005-06-09 Thread Philippe C. Martin
Hi, I have the following problem: 1) I can use smtplib to send text messages 2) I can generate html 3) I want to email the html and want it to be seen by the email client as html. However, when I receive the message, the email client displays it as text (code hereunder) - I assume it has to do wi

Re: Generating HTML from python

2005-06-09 Thread Philippe C. Martin
Thanks Kent Johnson wrote: > Philippe C. Martin wrote: >> Hi, >> >> I wish to use an easy way to generate reports from wxPython and feel >> wxHtmlEasyPrinting could be a good solution. >> >> I now need to generate the HTML wxHtmlEasyPrinting can print

re: howto send html mails using smtplib

2005-06-10 Thread Philippe C. Martin
Tim, You are most correct, replace_header did the trick. Thanks a bunch. Philippe Tim Williams wrote: > "Philippe C. Martin" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> I have the following problem: >> 1) I can use smtplib to send

Re: Generating HTML from python

2005-06-10 Thread Philippe C. Martin
Thanks Walter Dörwald wrote: > Cappy2112 wrote: >> I looked at HTMLGen a while ago- I didn't see what the advantage was. >> I wrote soem code similar to the example above, to generate a page.. >> It worked out fine. >> >> However, I want to add HTML ouput to many of my other python programs, >>

Re: Generating HTML from python

2005-06-10 Thread Philippe C. Martin
PS: Just wanted to add that HTMLGen works very well and outputs html that wxHtmlEasyPrinting and my email client have not problem reading (I output student grades, missing assignments, ... in tables). The one gitch is they do not have any installation program (that I've seen) for windows. Regards

Release announcement

2005-06-10 Thread Philippe C. Martin
Dear all, I am very happy to anounce the release of SnakeCard's School-ID, a school/university Smart Card based security solution that can be extended using Python or other languages that can "talk" to Python modules. The current release includes the following features: Student/Faculty Identific

Re: case/switch statement?

2005-06-11 Thread Philippe C. Martin
I _love_ Python! Leif K-Brooks wrote: > Joe Stevenson wrote: >> I skimmed through the docs for Python, and I did not find anything like >> a case or switch statement. I assume there is one and that I just >> missed it. Can someone please point me to the appropriate document, or >> post an exam

What is different with Python ?

2005-06-11 Thread Philippe C. Martin
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very pragmatic - 3) I usually move forward when I get the gut feeling I am correct - 4) Most likely because of

Re: Dealing with marketing types...

2005-06-11 Thread Philippe C. Martin
This is the never ending story of the cyclic (I'm being redundant) life cycle of many companies: R&D driven versus Marketing driver. My belief is that none work as the trades do not attempt to reach the same goal: 1) R&D should not try to define products 2) Marketing should not try to impose the t

Re: What is different with Python ?

2005-06-11 Thread Philippe C. Martin
Python than C/C++ just as I know my product (I will not describe it here as I am not marketing) would not exist today were it not for Python. 4) Yes I agree a mix ("... well spiced soup ...") seems to be the answer but my brain somehow wants to formalize it. Regards, Philippe Phili

Re: What is different with Python ?

2005-06-11 Thread Philippe C. Martin
I can mention here, that > from my experience, Python seems not to be > the language of choice for the very beginners, > who prefere another approaches which are > mostly variants of Basic. > > Claudio > > "Philippe C. Martin" <[EMAIL PROTECTED]> schrieb im

Re: What is different with Python ?

2005-06-11 Thread Philippe C. Martin
> PS: http://jove.prohosting.com/~zahlman/cpp.html So you're saying they only use perl in Taiwan ;-) Tom Anderson wrote: > On Sat, 11 Jun 2005, Philippe C. Martin wrote: > >> Yet for the first time I get (most) of my questions answered by a >> language I did not kno

Re: What is different with Python ?

2005-06-12 Thread Philippe C. Martin
Python if no one were here to implement its VM, I have not looked at the code, but I gather it is fairly complex and does require an amount of "low level" skills. Regards, Philippe Roy Smith wrote: > "Philippe C. Martin" <[EMAIL PROTECTED]> wrote: >> Yet,

Re: What is different with Python ?

2005-06-12 Thread Philippe C. Martin
Taking stuff for granted in unrelated to progress. I agree that the "trade" of software engineering evolves and that, thanks to hardware advances, we _usually_ can now "object orient" our software, add billions of abstraction layers, and consume memory without a second thought. But the trade evolv

recursive import list

2005-06-13 Thread Philippe C. Martin
Hi, I have a fairly large project going on and would like to figure out automatically from the source which files are being imported. ex: find_out mymain.py Is there an easy way to achieve that ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: What is different with Python ?

2005-06-13 Thread Philippe C. Martin
> So you're arguing that a CS major should start by learning electronics > fundamentals, how gates work, and how to design hardware(*)? Because > that's what the concrete level *really* is. Start anywhere above that, > and you wind up needing to look both ways. Some very good schools still believe

Re: What is different with Python ?

2005-06-13 Thread Philippe C. Martin
> I don't buy that. I think there's a world of difference between knowing > what something does and how it does it; a black-box view of the memory > system (allocation + GC) is perfectly sufficient as a basis for > programming using it. That black-box view should include some idea of how > long the

Re: searching for IDE

2005-06-13 Thread Philippe C. Martin
pydev for eclipse ? alexrait1 wrote: > I need an IDE for python that has the ability to show the filds of a > class when I write "." > Just the way it works in eclipse/JBuilder with java or visual studio > with c++ > For now I treid eric3 and IDLE they don't do this... -- http://mail.python.org

Re: case/switch statement?

2005-06-13 Thread Philippe C. Martin
Any speed issue ? [EMAIL PROTECTED] wrote: > Philippe C. Martin wrote: >> Leif K-Brooks wrote: >> >> > Joe Stevenson wrote: >> >> I skimmed through the docs for Python, and I did not find anything >> >> like >> >> a case or switch st

Re: recursive import list

2005-06-14 Thread Philippe C. Martin
Mike Meyer wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: >>> I have a fairly large project going on and would like to figure out >>> automatically from the source which files are being imported. >> If you use your own import function, like below, you could create a >> list of all import

Re: eclipse, pydev and wxpython - standard output redirection ?

2005-06-14 Thread Philippe C. Martin
app = MyApp(False) app.MainLoop() will keep wxWidgets from using its own window. Grzegorz wrote: > Hello, I'm using eclipse with pydev plugin, I'm working on a program using > wxpython . > When I'm executing that application standard error output does not show in > eclipse console window - w

<    1   2   3