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:

shelve seg error

2005-12-06 Thread Philippe C. Martin
Hi, I just installed (compiled) Python 2.4.2 under Suse 10. The following code generates a seg error: import shelve print shelve.open ('test') I assume this has to do with the db behind shelve. How do I go about tracing/fixing the problem ? Regards, Philippe -- http://mail.python.org/mailm

Re: shelve seg error

2005-12-06 Thread Philippe C. Martin
PS: This code however works, which seems to me means the problem is with the default database used by shelve ... which one is it ? import shelve import gdbm def gdbm_shelve(filename, flag="c"): return shelve.Shelf(gdbm.open(filename, flag)) db = gdbm_shelve("dbfile")

Re: shelve seg error

2005-12-06 Thread Philippe C. Martin
Can I ask anydb which db it's using ? Regards, Philippe On Tue, 06 Dec 2005 15:07:19 +0100, Fredrik Lundh wrote: > Philippe C. Martin wrote: > >> This code however works, which seems to me means the problem is with the >> default database used by shelve ... whic

Re: shelve seg error

2005-12-07 Thread Philippe C. Martin
OK, Thanks On Tue, 06 Dec 2005 15:41:08 +0100, Fredrik Lundh wrote: > Philippe C. Martin wrote: > >> Can I ask anydb which db it's using ? > > the page says > > If the database file already exists, the whichdb module is used to > determine its >

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++){ > > ... -- ____

Tkinter zoom box

2005-01-03 Thread Philippe C. Martin
: no zoom box 4) Mandrake 10.1/Gnome 2.6/Python 2.4: zoom box shows I know that sounds strange, but I am fairly certain this is what happened. Is there a way to _force_ that zoom box ? Regards, Philippe -- * Philippe C. Martin SnakeCard LLC www.snakecard.com

Tkinter zoom box = maximize/unmaximize box/button

2005-01-03 Thread Philippe C. Martin
By zoom box I meant one of the top right button/box one uses to maximize/unmaximize the current window. -- * Philippe C. Martin SnakeCard LLC www.snakecard.com * -- http://mail.python.org/mailman/listinfo/python-list

Re: How to access database?

2005-01-04 Thread Swaroop C H
/writing/DB-API.html HTH, -- Swaroop C H Blog: http://www.swaroopch.info/ -- http://mail.python.org/mailman/listinfo/python-list

smtp question

2005-01-05 Thread Philippe C. Martin
ak if not line: break msg = msg + line print "Message length is " + repr(len(msg)) server = smtplib.SMTP('smtp.sbcglobal.yahoo.com') server.set_debuglevel(1) server.login ('x','yyy') server.sendmail(fromaddr, toaddrs, 'Subject:from python\n\n'+msg) s

smtp: one more question

2005-01-05 Thread Philippe C. Martin
>Email client = Evolution: the "From" field is blank >Email client = KMail: the "To" field is blank I also notice that emails sent to myself get trashed by my provider - could that be related ? -- ******* Philippe C. Martin Snake

Re: smtp question - using email module

2005-01-05 Thread Philippe C. Martin
Thank you all for your help - an yes! the email module is _very_ nice. Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: Developing Commercial Applications in Python

2005-01-07 Thread Philippe C. Martin
ce it on this list :-) Regards, Philippe -- ******* Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Tkinter: passing parameters to menu commands

2005-01-07 Thread Philippe C. Martin
event style object, is there some type of Tkinter call that would let my method know the menu id selected ? Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: passing parameters to menu commands

2005-01-07 Thread Philippe C. Martin
(label = 'IN', command=lambda:self.__Dec('IN')) . . . Yet I have a question: If I replace the menu creation code as below, and since __Insert appends the string p_string into a text widget that is created _after_ the menu creation; the method __Dec s

Re: Tkinter: passing parameters to menu commands (looping through a list)

2005-01-07 Thread Philippe C. Martin
list = ['ATR','IN'] for i in l_dec_list: l_dec.add_command(label = i, command= lambda: self.__Dec(i)) Any clue ? Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: passing parameters to menu commands (looping through a list)

2005-01-07 Thread Philippe C. Martin
>>l_dec.add_command(label=i, command=lambda x=i: self.__Dec(x)) Woof! I'd better do my homework on lambda ! Thanks, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: "A Fundamental Turn Toward Concurrency in Software"

2005-01-08 Thread Philippe C. Martin
ocus the performance of a system solely on its CPU's. Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

printing line numbers for debugging purpose

2005-01-08 Thread Philippe C. Martin
Hi, All of the methods from my program return None on error (i.e; I do not want to assert and have the program exit). Is it possible to print the current source file name/line number ? ex: in C/C++ I would use the macros __FILE__ and __LINE__. Regards, Philippe

fetching method names from a class, and the parameter list from a method

2005-01-10 Thread Philippe C. Martin
Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing huve ge Sets() to disk

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

Re: fetching method names from a class, and the parameter list from a methodRe: fetching method names from a class, and the parameter list from a method

2005-01-11 Thread Philippe C. Martin
>>> import inspect >>> help(inspect) Thanks, I have not seen the func params yet, but the default values are so Regards, Philippe -- ******* Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.or

Re: Game programming in Python

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

Re: Help Optimizing Word Search

2005-01-11 Thread Mike C. Fletcher
rogram needs to take in a random list of no more than 10 letters, and find all possible mutations that match a word in my dictionary (80k words). However a wildcard letter '?' is also an acceptable character which increases the worst case time significantly. So if the letters are ['a&#

Re: encryption/decryption help

2005-01-12 Thread Philippe C. Martin
Did you look at pycrypto ? http://www.amk.ca/python/code/crypto.html Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: encryption/decryption help

2005-01-12 Thread Philippe C. Martin
, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

file uploading via urllib2 (multipart/form-data)

2005-01-13 Thread Clark C. Evans
Hello. I was wondering if anyone has built a module that works with urllib2 to upload file content via POST multipart/form-data. I'm aware of ASPN 146306, however, I need to use urllib2 beacuse I'm using HTTP Digest over SSL. Cheers, Clark -- http://mail.python.org/mailman/listinfo/python-list

how to find site-packages path

2005-01-17 Thread Philippe C. Martin
Hi, I am using my own install script for my software and am looking for a flawless way to figure out where python, and more specifically site-packages is installed. Any clue ? Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com

Re: how to find site-packages path (Michael Hoffman) - use distutils

2005-01-17 Thread Philippe C. Martin
is shoudl be easy enough) 2) copy already compiled (.pyc) and source (.py) files to those directories 3) create directories and copy files in a directory kept in an environment variable Can distutils do this for me ? Regards, Philippe -- *** Philippe C. Mar

Re: how to find site-packages path (Michael Hoffman) - use distutils

2005-01-18 Thread Philippe C. Martin
egards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Tkinter in thread hangs on windows but not on Linux

2005-01-18 Thread Philippe C. Martin
) l_st = ScrolledText(l_f) l_st.pack(side=TOP, expand=YES, fill=BOTH) l_st.insert(END,self.__m_msg) l_r.mainloop() . . . l_d = SC_DOCS('A MESSAGE', 'A TITLE') l_d.start() . . . -- ******* Philippe C. Martin SnakeCard LLC www.snakecard.com ***

Re: hex notation funtion

2005-01-18 Thread Philippe C. Martin
Would that do it? for i in my_byte_string: = atoi(binascii.hexlify(i),16) Regards, Philippe On Tue, 18 Jan 2005 20:43:44 +0200, tertius wrote: > Hi, > > Is there a builtin function that will enable me to display the hex > notation of a given binary string? (example below) > > man

Re: how to find site-packages path (Michael Hoffman) - use distutils

2005-01-18 Thread Philippe C. Martin
derstand how to change the sys.path. So until I have found a clean cross platform solution I'm going to have to stick to site-packages. Best regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mai

Re: Tkinter in thread hangs on windows but not on Linux

2005-01-18 Thread Philippe C. Martin
Well this is what is on the top of my script: from Tkinter import * import threading from ScrolledText import * I still hang under XP wish I had 2K to test. I almost sounds like tkinter does not get refresh events anymore. I'll keep at it On Tue, 18 Jan 2005 12:42:21 -0800, Kamilche

Re: Tkinter in thread hangs on windows but not on Linux

2005-01-18 Thread Philippe C. Martin
Actually, the following link: http://www.astro.washington.edu/owen/TkinterSummary.html seems to say my code is illegal - so I'm now just launching a modless window from the main thread - _seems_ to work On Tue, 18 Jan 2005 11:45:28 +0100, Philippe C. Martin wrote: > Hi, > > I

Re: how to find site-packages path (Michael Hoffman) - use distutils/modified

2005-01-19 Thread Philippe C. Martin
changes. Then you get a --remove-source options to >>most of the commands. You can also selectively override what gets >>removed if you want by changing the is_removable function >>I hope this is useful for what you're wanting to do >>David -- *

Re: [OT] Good C++ book for a Python programmer

2005-01-19 Thread Philippe C. Martin
I suggest you google 'C++ tutorial' Regards, Philippe On Wed, 19 Jan 2005 04:08:16 -0800, [EMAIL PROTECTED] wrote: > I'm picking up C++ again after years of using almost nothing but > Python. I'm frankly enjoying the experience, and it's certainly > deepenin

Re: What's the best python web-developer's editor

2005-01-21 Thread Philippe C. Martin
ourceforge.net/projects/sourcenav) when I need to browse through a project (although I could use emacs TAGS, I find snavigator to be the best free solution out there to parse large projects) Regards, Philippe -- *** Philippe C. Martin SnakeCar

Re: Class introspection and dynamically determining function arguments

2005-01-21 Thread Mike C. Fletcher
the window would be returned an instance of the class. The actual application I'm interested in writing would either have simple type attributes (int, string, etc.), or attributes using types already defined in a c-extension, although I'd prefer not to restrict the functionality to t

Re: Class introspection and dynamically determining function arguments

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

Weakref.ref callbacks and eliminating __del__ methods

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

Re: Weakref.ref callbacks and eliminating __del__ methods

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

Re: Weakref.ref callbacks and eliminating __del__ methods

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

Re: Weakref.ref callbacks and eliminating __del__ methods

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

Re: What is print? A function?

2005-01-24 Thread Philippe C. Martin
nto the above write method' -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

RE:"private" variables a.k.a. name mangling (WAS: What is print? A function?)

2005-01-24 Thread Philippe C. Martin
id of that stuff Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

RE: Why I use private variables (WAS: RE:"private" variables a.k.a. name mangling?)

2005-01-24 Thread Philippe C. Martin
The real reason behind my using private variables is so they do not appear in the epydoc generated documentation and confuse my users. Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org

RE: Why I use private variables (WAS: RE:"private" variables a.k.a. name mangling?)

2005-01-24 Thread Philippe C. Martin
using it would go againts 'law' 1). 3) I wish I had one, but there is only one Isaac Asimov after all :-) Regards, Philippe On Mon, 24 Jan 2005 11:45:34 -0500, Jeremy Bowers wrote: > On Mon, 24 Jan 2005 15:35:11 -0600, Philippe C. Martin wrote: > >> The real reason

Re: "private" variables a.k.a. name mangling (WAS: What is print? A function?)

2005-01-25 Thread Philippe C. Martin
Well I _was_ a bit slow on that one ! So I will happily stick to the double underscore. Regards, Philippe Le mardi 25 janvier 2005 Ã 10:28 +, Simon Brunning a Ãcrit : > On Mon, 24 Jan 2005 12:17:13 -0600, Philippe C. Martin > <[EMAIL PROTECTED]> wrote: > > > &g

Re:Crypto in Python: (Was: What's so funny? WAS Re: rotor replacement)

2005-01-25 Thread Philippe C. Martin
. It is a _long_ and tedious process. Like you I would love to see crypto support built into python but it _might_ have an impact on its distribution. Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com ***

Re: How to input one char at a time from stdin?

2005-01-25 Thread Swaroop C H
character. How do I deal with this? This is exactly what you need: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/134892 Title: "getch()-like unbuffered character reading from stdin on both Windows and Unix" This recipe was a lifesaver for me once :-) Regards, -- Swaroop C H B

Re: MySQLdb

2005-01-25 Thread Swaroop C H
L[1] [1]: http://dev.mysql.com/doc/mysql/en/load-data.html -- Swaroop C H Blog: http://www.swaroopch.info Book: http://www.byteofpython.info -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQLdb

2005-01-25 Thread Swaroop C H
en a duplicate key value is found, and the rest of the text file is ignored. With LOCAL, the default behavior is the same as if IGNORE is specified; this is because the server has no way to stop transmission of the file in the middle of the operation. " P.S. Its best to take this discussion off

Re: Crypto in Python: (Was: What's so funny? WAS Re: rotor replacement)

2005-01-25 Thread Philippe C. Martin
p://www.bis.doc.gov/encryption/) I hope to get a positive response this week (wish me luck!) Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: Hello

2005-01-27 Thread Swaroop C H
your ISP's news server, *then* you can subscribe > to comp.lang.python. If you can't find a Usenet server, try news.gmane.org -- Swaroop C H Blog: http://www.swaroopch.info Book: http://www.byteofpython.info -- http://mail.python.org/mailman/listinfo/python-list

Yet another Python commercial application

2005-01-28 Thread Philippe C. Martin
SnakeCard release SCF 1.0: a smart card simulation and Q&A platform based on Python. (I said I would :-) sorry but I'm walking on air Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.or

Re: naive doc question

2005-01-30 Thread Philippe C. Martin
are using mozilla or firefox, I suggest you try this documentation sidebar: http://projects.edgewall.com/python-sidebar/ Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

serializing data structures

2005-01-31 Thread Philippe C. Martin
different major release of python (ex 2.3 and 2.4) on both side of the socket. I once wrote something in C to do that, but since python usually has a solution for me Any clue ? Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com

Re: serializing data structures

2005-01-31 Thread Philippe C. Martin
Thanks a lot. Regards, Philippe On Tue, 01 Feb 2005 00:20:01 +0100, Martin v. Löwis wrote: > Philippe C. Martin wrote: >> I once wrote something in C to do that, but since python usually has a >> solution for me > > If you use arbitrary data structures, yo

Re: serializing data structures (Martin v. L?wis)

2005-01-31 Thread Philippe C. Martin
Thanks a lot. Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: PyCon signature advertising

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

Regular expression match objects - compact syntax?

2005-02-03 Thread Johann C. Rocholl
its own local m, so it didn't update the outer m. I couldn't use 'global m' either because the whole thing, including the outer m, happens to be inside a function, too. How do you people handle this? Thanks for your time, Johann C. Rocholl -- http://mail.python.org/mailman/listinfo/python-list

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

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

pickle/marshal internal format 'life expectancy'/backward compatibility

2005-02-05 Thread Philippe C. Martin
responsible for retrieving the information from the card might evolve as well as the python release it relies upon. Is there a commitment for python releases to be able to interpret 'older' pickle/marshal internal formats ? Regards, Philippe -- *** Philippe

Python scripts a PC Interfacing equipment

2005-02-06 Thread Pramode C E
Hello, The Phoenix project aims to bring low cost PC-based experimental Physics to the classroom. Read a short intro here: http://linuxgazette.net/111/pramode.html Regards, Pramode --- -- http://mail.python.org/mailman/listinfo/python-list

Python choice of database

2005-06-20 Thread Philippe C. Martin
Hi, I am looking for a stand-alone (not client/server) database solution for Python. 1) speed is not an issue 2) I wish to store less than 5000 records 3) each record should not be larger than 16K As I start with Python objects, I thought of using shelve, but looking at the restrictions (record

Re: Python choice of database

2005-06-20 Thread Philippe C. Martin
Well that would be shelve I guess ... with the restrictions I mentioned. Regards, Philippe Erik Max Francis wrote: > Philippe C. Martin wrote: > >> I am looking for a stand-alone (not client/server) database solution for >> Python. >> >> 1) speed is not an is

Re: Python choice of database

2005-06-20 Thread Philippe C. Martin
Thank you all for your answers. A pure Python would have beenmy first choice. yet I now feel I should spend some time looking at PySQLite (I like the fact it's pre-compiled for Windows). Thanks. Philippe Philippe C. Martin wrote: > Hi, > > I am looking for a stand-alone (not

Re: Python choice of database

2005-06-20 Thread Philippe C. Martin
You mean pickling a dictionnary of 5000/16K objects ? Erik Max Francis wrote: > Philippe C. Martin wrote: > >> Well that would be shelve I guess ... with the restrictions I mentioned. > > I was talking about pickle, not shelve. > -- http://mail.python.org/mailman/listinfo/python-list

Re: Python choice of database

2005-06-20 Thread Philippe C. Martin
OK, I'll try that too. Regards, Philippe Erik Max Francis wrote: > Philippe C. Martin wrote: > >> You mean pickling a dictionnary of 5000/16K objects ? > > Yes. You said speed was not an issue; pickling only 5000 objects, each > no more than 16 kB, is easily hand

Re: Python choice of database

2005-06-20 Thread Philippe C. Martin
> 1. 5000 files -- my personal favourite. You got a point William Park wrote: > Philippe C. Martin <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I am looking for a stand-alone (not client/server) database solution >> for Python. >> >> 1) speed

Re: Python choice of database

2005-06-20 Thread Philippe C. Martin
Thanks, I'm looking at KirbyBase also but wonder if it can handle bitmaps (I could always pickle it first I guess). Regards, Philippe John Abel wrote: > Philippe C. Martin wrote: > >>Thank you all for your answers. >> >>A pure Python would have beenmy first ch

Re: Python choice of database

2005-06-20 Thread Philippe C. Martin
Correct, that's not a constraint right now. Paul Rubin wrote: > "Philippe C. Martin" <[EMAIL PROTECTED]> writes: >> 1) speed is not an issue >> 2) I wish to store less than 5000 records >> 3) each record should not be larger than 16K > > You don&

Re: Python choice of database

2005-06-20 Thread Philippe C. Martin
Yes, I agree, but as most of the customer base I target uses the O/S that cannot be named ;-) , file names could become a problem just as 'ln -s' is out of the question. Yet, this might be the best trade-off. Regards, Philippe Oren Tirosh wrote: > Philippe C. Martin wrote: >

Re: Python choice of database

2005-06-21 Thread Philippe C. Martin
I guess I use databases to store data ;-) and I do not wish to worry about the type of data I'm storing. That's why I love to pickle. I understand that during an optimization phase, decisions might be taken to handle data otherwise. Regards, Philippe GMane Python wrote: > For my databa

Re: UML to Python/Java code generation

2005-06-21 Thread Philippe C. Martin
Try this: http://uml.sourceforge.net/index.php Regards, Philippe Maurice LING wrote: > Hi, > > Is there any UML tools that is able to take UML and generate Python codes? > > Cheers > Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: Running Python interpreter in Emacs

2005-06-23 Thread Philippe C. Martin
t (if the point is to have access to the output). Regards, Philippe Rex Eastbourne wrote: > Hi, > > I'm interested in running a Python interpreter in Emacs. I have Python > extensions for Emacs, and my python menu lists "C-c !" as the command > to run the inte

Re: Running Python interpreter in Emacs

2005-06-24 Thread Philippe C. Martin
Hi, Since I'm a Linux user, I went through the following procedure: I installed emacs 20.7.1 and Python 2.4 I installed python-mode 1.0A into site-lisp I added c:\python24 to my path I put this .emacs on c:\ (see further down - I'm sure you don't need half of it) And everyhing

Re: Running Python interpreter in Emacs

2005-06-24 Thread Philippe C. Martin
I do not think there is any need to tell emacs where Python is; besides having python.exe in your Windows $PATH. Regards, Philippe Rex Eastbourne wrote: > I have the following in my .emacs: > > (add-to-list 'load-path "C:\Program Files\Python24") > > Is that

Big problem fetching members from dynamically loaded module

2005-06-25 Thread Philippe C. Martin
Hi, I'm getting pretty desperate here: The code below crashes on the last line (but works from a shell). The class 'BC' exists and the loop on self.__BC_EXEC_LIST passes fine. It's got to be something really stupid but I've been looking at it too long I guess. Any clue would be quite welcome.

Re: Big problem fetching members from dynamically loaded module

2005-06-25 Thread Philippe C. Martin
Hi, Hopefully to make things clearer: this works from a shell: In [23]:from SC.CARDS.BC import * In [24]:l = inspect.getmembers(eval('BC')) #l will get all members from class 'BC' whereas the code referenced below gets an exception saying 'BC' is not defined. Th

Re: Big problem fetching members from dynamically loaded module

2005-06-25 Thread Philippe C. Martin
version of 'XYZ' What puzzles me furher is that the 'exec' of commands such as 'sc_bc = BC()' do work as I use them further in 'XYZ' whereas the exec of 'from xxx import *' does not _seem_ to do anything. Grrr! I feel more stupid every day ! Any

Re: Excellent Site for Developers

2005-06-25 Thread Philippe C. Martin
Hi, Not being from anglo-saxon heritage, I keep wondering why spammers always (or very often) get called 'trolls' ? I mean fantasy fiction has brought us many hugly beasts (goblin, warlock, orc, dark elf ) The trolls, as I recall, grow back their limns once those have been cut by the nice fo

Re: Excellent Site for Developers

2005-06-25 Thread Philippe C. Martin
Sorry, limbs (plus I check in a dictionnary first!) Philippe C. Martin wrote: > limns -- http://mail.python.org/mailman/listinfo/python-list

Re: Big problem fetching members from dynamically loaded module

2005-06-25 Thread Philippe C. Martin
: File "SC_Shell.py", line 1095, in ? l_d = SC_Shell() File "SC_Shell.py", line 326, in __init__ self.__Make_Menu_Area() File "SC_Shell.py", line 828, in __Make_Menu_Area l = inspect.getmembers(eval(c)) File "", line 0, in ? NameError: name 'BC&#

Re: Excellent Site for Developers

2005-06-25 Thread Philippe C. Martin
Woof! And I thought my english was improving ! I'm laughing very hard right now, thanks ! Philippe Skip Montanaro wrote: > > Philippe> Not being from anglo-saxon heritage, I keep wondering why > Philippe> spammers always (or very often) get called 'trolls' ? > > Fishing from a boa

Re: Big problem fetching members from dynamically loaded module

2005-06-25 Thread Philippe C. Martin
I meant live, not leave ! (this is getting pretty bad) Philippe C. Martin wrote: > OK Peter, first of all thanks. > > You seem to be German and although I leave in the states, I'm French and > your english is clearly far more advanced than mine: I have yet to > unde

Re: Big problem fetching members from dynamically loaded module

2005-06-26 Thread Philippe C. Martin
module would then be accessed via getattr(): > > member = getattr(module, member_name) > I will study that. Many thanks Philippe Peter Otten wrote: > Philippe C. Martin wrote: > >> OK Peter, first of all thanks. >> >> You seem to be German and although

Re: Running Python interpreter in Emacs

2005-06-26 Thread Philippe C. Martin
Hi, I was refering to the Windows $PATH which you can modify in the same dialog. To make sure it's done properly, open a console (cmd.exe) and type python Regards, Philippe Rex Eastbourne wrote: > I went to My Computer | Properties | Advanced | Environment Variables > and added

Re: Boss wants me to program

2005-06-27 Thread Philippe C. Martin
As well as wxDesigner (great!) http://www.roebling.de/ Regards, Philippe Björn Lindström wrote: > Apple Grew <[EMAIL PROTECTED]> writes: > >> I think since speed is not such an issue (I heard that python can make >> faster GUI programs) you should use Visual Basic. It is very well >> suited

SCF 1.1 with BasicCard support released

2005-06-27 Thread Philippe C. Martin
Dear all, I am very happy to announce the release of SCF 1.1, a Python based Smart Card development framework for Windows® and Linux. SCF 1.1 introduces support for BasicCard® Enhanced and Professional under GNU/Linux and Windows®. All commands are supported as well as firmware image parsing so y

Re: Plain text email?

2005-06-27 Thread Philippe C. Martin
Hi, I had the exact opposite problem :-) Hope this helps Regards, Philippe # def Mail(self,p_data): #data is string of text you = wx.GetTextFromUser('EMAIL ADDRESS','ID') if len(you) == 0:

Re: Which kid's beginners programming - Python or Forth?

2005-06-27 Thread Philippe C. Martin
Hi, A couple links ... http://www.summerland.uku.co.uk/ http://pylogo.org/ http://www.python.org/sigs/edu-sig/ BORT wrote: > Please forgive me if this is TOO newbie-ish. > > I am toying with the idea of teaching my ten year old a little about > programming. I started my search with somethin

Re: Better console for Windows?

2005-06-27 Thread Philippe C. Martin
Hi, You might want to check out ipyhton. http://ipython.scipy.org Regards, Philippe Brett Hoerner wrote: > This is a pretty basic, mostly un-python-related question, although I'm > asking because of Python. > > Is there a different shell I can use (other than cmd.com) to run Python > in, wh

Re: Better console for Windows?

2005-06-27 Thread Philippe C. Martin
Ho! I thought the shell commands in ipython (cd, lx ) might cut it. Regards, Philippe Brett Hoerner wrote: > > > Philippe C. Martin wrote: >> You might want to check out ipyhton. > > I use it. :) I love it. When I meant console I meant the shell app >

Re: ANN: PyDev 0.9.5 released

2005-06-28 Thread Philippe C. Martin
Thanks Fabio, I take this opportunity to ask what I could be doing wrong with pylint: my PYTHONPATH is good (I think), my code compiles and passes pylint when I run it by hand. Yet pylint in pydev does not seem to think the modules I include and usually derive from exist. Any clue ? Regards, Ph

Embedding python in C

2005-06-28 Thread Philippe C. Martin
Hi, Is there a program out there that would generate the C code to instantiate objects and call them: ex: miracle.exe -i mymodule.py -o module_internface.c ? I seem to recall a _yes_ to that but I got a memory overflow :-) Thanks, Philippe -- http://mail.python.org/mailman/listinfo/python

Re: I need help figuring out how to fix this code.

2005-06-28 Thread Philippe C. Martin
Hi, 1) check the spacing before if name == "Nathan": 2) put a ':' after else Regards, Philippe Nathan Pinno wrote: > Hi all, > > I need help figuring out how to fix my code. I'm using Python 2.2.3, and > it keeps telling me invalid syntax in the if name == "Nathan" line. Here > is the cod

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-06-28 Thread c d saunter
Michael Hoffman ([EMAIL PROTECTED]) wrote: : muldoon wrote: : > Americans consider having a "British accent" a sign of sophistication : > and high intelligence. Many companies hire salespersons from Britain to : > represent their products,etc. Question: When the British hear an : > "American accent

Re: Embedding python in C - newbie

2005-06-28 Thread Philippe C. Martin
Just to make sure i'm clear as I've been told about swig and pyrex: I don't want to eventually have a python script call C modules, but rather a main.c make calls to python functionnalities. I did add newbie in the title :-) Regards, Philippe Philippe C. Martin wrote: > H

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