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

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

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 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
Hi, this is what I have: (autoload 'python-mode "python-mode" "Python mode." t) (setq auto-mode-alist (append '(("\\.\\(py\\)$" . python-mode)) auto-mode-alist)) Plus, you can always spawn a shell then call your script (if the point is to have access to the out

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 is working fine:

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 enough? I didn't see anything s

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
x27; is not defined > What happened in lines 1 through 22? My guess would be just import inspect and after that QUID ? Thanks and regards, Philippe Peter Otten wrote: > Philippe C. Martin wrote: > >> l = inspect.getmembers(eval('BC')) #THIS CRASHES - the cla

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 c:\program fil

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

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

Re: Embedding python in C - newbie

2005-06-28 Thread Philippe C. Martin
Sorry, it is still not clear when I reread it: 1) I have a bunch of Python working modules 2) I need to compile "something" so external C applications can access 1) Thanks, Philippe Philippe C. Martin wrote: > Just to make sure i'm clear as I've been told about sw

Re: Embedding python in C

2005-06-28 Thread Philippe C. Martin
Thanks, I cannot get the demo to compile, but I joined their list. Thanks Philippe Chris Lambacher wrote: > pyrex can be used for embedding too. > http://www.freenet.org.nz/python/embeddingpyrex/ > > On 6/28/05, Philippe C. Martin <[EMAIL PROTECTED]> wrote: >> Actual

Re: Seeking IDE

2005-06-30 Thread Philippe C. Martin
Linux: Eric3 All: Eclipe: my choice (might be tough to get into) Nick Mountford wrote: > Hi, > > Complete newb to Python and programming, looking for an open source > IDE to download. Any suggestions? > > Thanks, > > Nick -- http://mail.python.org/mailman/listinfo/python-list

Re: Seeking IDE

2005-06-30 Thread Philippe C. Martin
oops: "eclipse" Philippe C. Martin wrote: > Linux: Eric3 > All: Eclipe: my choice (might be tough to get into) > > > > Nick Mountford wrote: > >> Hi, >> >> Complete newb to Python and programming, looking for an open source >> IDE t

Re:

2005-07-01 Thread Philippe C. Martin
Being a C programmer before a C++ I am not certain my opinon qualifies. Yet I have seen myself avoiding C++ contracts lately because I dread going back to that type of work: why use silex when you got a match ? Adriaan Renting wrote: > I'm not a very experienced Python programmer yet, so I m

Re: How to display Values of a file

2005-07-05 Thread Philippe C. Martin
I think you'll have to go through extensions: http://starship.python.net/crew/mhammond/ Regards, Philippe Kakushi wrote: > Hi my name is Andrew beginning/intermediate Python User. I am using a > win xp computer Python 2.4 > > I would like to write a python application that would allow me to

adding a character to the last string element of a list

2005-07-05 Thread Philippe C. Martin
Hi, I have the following question: l = ['ABCDE','FGHI'] l[1:] #returns ['FGHI'] l[1:][0] #return 'FGHI' a = l[1:][0] + 'J' #a becomes 'FGHIJ' l[1:][0] += 'J' #NO ERROR BUT l[1:][0] == 'FGHI' What am I missing ? Thanks, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: adding a character to the last string element of a list

2005-07-05 Thread Philippe C. Martin
Thanks, I though it was a reference (tough to implement I'm sure) Regards, Philippe Peter Hansen wrote: > Philippe C. Martin wrote: >> l = ['ABCDE','FGHI'] > > Okay so far... > >> l[1:] #returns ['FGHI'] > > Which is a _

RE: adding a character to the last string element of a list

2005-07-05 Thread Philippe C. Martin
I guess my slicing was wrong, l[-1] worked Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: adding a character to the last string element of a list

2005-07-06 Thread Philippe C. Martin
Thanks, Philippe Peter Hansen wrote: > Philippe C. Martin wrote: >> I guess my slicing was wrong, l[-1] worked > > Note that that's _not_ a slice, however, but a reference to the last > element in the list. > > You'd have to subclass list to be able to do

Re: I am a Java Programmer

2005-07-06 Thread Philippe C. Martin
I see you got many good/funny answers already. Test Python for two WE and you'll be able to help yourself very well ... I've been through an equivalent process. Regards, Philippe [EMAIL PROTECTED] wrote: > I am a java programmer and I want to learn Python Please help me. -- http://mail.py

Re: Lisp development with macros faster than Python development?..

2005-07-06 Thread Philippe C. Martin
Almost sounds like a racist comment - sorry if I misunderstood Antoon Pardon wrote: > Op 2005-07-06, Michele Simionato schreef <[EMAIL PROTECTED]>: >> Fuzzyman: >>> So Lisp is for really good programmers, and Python is for >>> mediocre programmers ? >> >> >> Python is *also* for mediocre p

Options to integrate Python modules into native windows applications

2005-07-07 Thread Philippe C. Martin
Hi, I am looking for the pros and cons as to how to integrate a Python module into a Windows native application. So far I have looked at 1) coding the C wrapper myself 2) using Pyrex 3) go for pywin32 and COM Thanks, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Options to integrate Python modules into native windows applications

2005-07-07 Thread Philippe C. Martin
Thanks Larry, I want to: 1) Modify my code as little as possible 2) Please/reassure the lambda VB or VC++ oriented company Regards, Philippe Larry Bates wrote: > Other methods (services, sockets, pipes, etc.) > can also work well, but it depends on what you > want to do and how you wish to

RE: Thoughts on Guido's ITC audio interview

2005-07-07 Thread Philippe C. Martin
> For me, performance is the minor issue. Usability is the major issue. If > find Eclipse to be highly unusable, so I don't use it. I find it to be the best option out there -- http://mail.python.org/mailman/listinfo/python-list

Re: Options to integrate Python modules into native windows applications

2005-07-08 Thread Philippe C. Martin
Hi, Thanks for your answers, has anyone also used .net for Python ? Regards, Philipe Philippe C. Martin wrote: > Hi, > > I am looking for the pros and cons as to how to integrate a Python module > into a Windows native application. > > So far I have looked at > >

Re: Options to integrate Python modules into native windows applications

2005-07-08 Thread Philippe C. Martin
Thanks Michel et salutations. Your english is fine. A+ Philippe Do Re Mi chel La Si Do wrote: > Re Hi ! > > > I had only test (little) Python for .Net ; OK, it's run. It is possible to > make winform from Python. And I had try to use Python for .Net from my > COM-server, and from VBscript.

pywin32 com server "cash" question

2005-07-12 Thread Philippe C. Martin
Hi, I just got the pywin32 "hello world" COM server to install and I did manage to use it from VB 6.0. However, there are some glitches I do not comprehend: 1) at one point I got a python runtime error telling me the "testcomserver" was not found - I got rid of that problem by deleteting the app

Re: pywin32 com server "cash" question

2005-07-12 Thread Philippe C. Martin
Sorry: "Cache", not "Cash" Philippe C. Martin wrote: > Hi, > > I just got the pywin32 "hello world" COM server to install and I did > manage to use it from VB 6.0. > > However, there are some glitches I do not comprehend: > > 1) at

Re: What is your favorite Python web framework?

2005-07-17 Thread Philippe C. Martin
http://cheetahtemplate.org/ Admin wrote: > On Sun, 17 Jul 2005 19:15:49 -0300, Sybren Stuvel > <[EMAIL PROTECTED]> wrote: > >> http://www.unrealtower.org/mycheetah > > "Error 404 while looking up your page AND when looking for a suitable 404 > page. Sorry! > No such file /var/www/www.unrealt

returning list of strings from Python COM to Visual basic 6

2005-07-20 Thread Philippe C. Martin
Hi, Is it possible ? ex: return ['1','2'] If so which type should I use in VB ? dim res as ??? Set testObj = CreateObject("") res = testObj.AMethodThatReturnsAListOfStrings() Thanks, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: returning list of strings from Python COM to Visual basic 6

2005-07-20 Thread Philippe C. Martin
Sorry, it was in the book: Variant ! Regards; Philippe Philippe C. Martin wrote: > Hi, > > Is it possible ? > > ex: return ['1','2'] > > If so which type should I use in VB ? > > dim res as ??? &

Re: returning list of strings from Python COM to Visual basic 6

2005-07-20 Thread Philippe C. Martin
7;instance' can not be converted to a COM VARIANT" Is there a way out ? Thanks, Philippe Philippe C. Martin wrote: > Hi, > > Is it possible ? > > ex: return ['1','2'] > > If so which type should I use in VB ? > >

Re: returning list of strings from Python COM to Visual basic 6

2005-07-21 Thread Philippe C. Martin
L PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of > > Philippe C. Martin > > Sent: Thursday, July 21, 2005 1:42 AM > > To: python-list@python.org > > Subject: Re: returning list of strings from Python COM to > > Visual basic 6 > > > > > > I ca

Re: returning list of strings from Python COM to Visual basic 6

2005-07-21 Thread Philippe C. Martin
I guess that also means (which makes sense) that the returned object has to be registered as a COM object. However, in my case, I just needed that object to pass it to yet another object, I did not need to use it from VB Regards, Philippe Philippe C. Martin wrote: > Thanks a bu

How to find Python path in Visual C++ install wizard

2005-08-13 Thread Philippe C. Martin
Hi, I realize this is not really a Python question but ... I am trying to setup an .msi for my software (Python code (.pyc) + drivers) to make installation easier for Windows users. I am using the installer that comes with V. C++ 7.1. I would like to find the way to make sure Python is installe

Re: How to find Python path in Visual C++ install wizard

2005-08-13 Thread Philippe C. Martin
Thanks you all. As my software has python "executables" and libraries + c++ libs, the HKEY_LOCAL should be myt way out. Best regards, Philippe Philippe C. Martin wrote: > Hi, > > I realize this is not really a Python question but ... > > I am trying to setu

which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Hi, I am looking for the reg path that is modified/created by the pyton installer to associate *.pyc with python.exe as I wish to associate *.pyc with pythonw.exe Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Hi, I am looking for the reg path that is modified/created by the pyton installer to associate *.pyc with python.exe as I wish to associate *.pyc with pythonw.exe Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Keir, I forgot to mention that I want to do it automatically from my application's installer. Regards, Philippe keirr wrote: > Philippe, > > You wrote: I wish to associate *.pyc with pythonw.exe > > is there some reason why Tools->Folder Options->File Types (from a > Windows Explorer me

Re: which reg values modified my python installer under windows

2005-09-06 Thread Philippe C. Martin
Yes Keir, Thanks a lot. Regards; Philippe keirr wrote: > Philippe, > > Windows file associations are in > HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts > > Hope that helps you. > > All the best, > > Keir. -- http://mail.python.org/mailman/listinfo/python

Re: How to protect Python source from modification

2005-09-12 Thread Philippe C. Martin
Hi, Why not just releasing the *.pyc ? Regards, Philippe Frank Millman wrote: > Hi all > > I am writing a multi-user accounting/business system. Data is stored in > a database (PostgreSQL on Linux, SQL Server on Windows). I have written > a Python program to run on the client, which uses w

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

2005-02-06 Thread Philippe C. Martin
ilippe On Sun, 06 Feb 2005 02:20:34 -0500, Adam DePrince wrote: > On Sat, 2005-02-05 at 17:04, Tim Peters wrote: >> [Philippe C. Martin] >> > I am looking into using the pickle format to store object/complex data >> > structures into a smart card as it would make

socket question

2005-02-07 Thread Philippe C. Martin
ss that I can ping but has no name. How can I do that ? Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: socket question

2005-02-07 Thread Philippe C. Martin
Thanks you! that did it. PS: the 'wrong' info I got seems to be in the official howtos http://www.amk.ca/python/howto/sockets/ Regards, Philippe On Mon, 07 Feb 2005 18:23:28 +0100, Diez B. Roggisch wrote: >> A couple things to notice: we used socket.gethostname() so that the >> socket woul

Re: socket question

2005-02-07 Thread Philippe C. Martin
Yes it was. Regards, Philippe On Mon, 07 Feb 2005 21:30:28 +, Steve Horsley wrote: > Philippe C. Martin wrote: >> Thanks you! that did it. >> > > That makes me wonder what socket.gethostname() was returning. > It wasn't 'localhost', was it?

Re: socket question

2005-02-07 Thread Philippe C. Martin
Thanks, it was a bind problem: socket.gethostname() returns 'localhost' where '' is was was needed. Regards, Philippe On Mon, 07 Feb 2005 11:02:13 -0800, Kartic wrote: > > Philippe C. Martin wrote: >> >> My problem is that I cannot connect to my serv

broke tkinter

2005-02-08 Thread Philippe C. Martin
Any clue! Regards, Philippe -- *********** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: broke tkinter

2005-02-08 Thread Philippe C. Martin
I'll check, thanks. Philippe On Tue, 08 Feb 2005 18:03:11 +, wes weston wrote: > Philippe C. Martin wrote: >> Hi, >> >> I decided to clean my system and rebuild python from scratch. >> >> I downloaded tk8.4.9, tcl8.4.9 and Python2-4.tar.bz2

dos box appears when clicking .pyc

2005-02-12 Thread Philippe C. Martin
Hi, For a few months now, I have been used .pyc script under XP without getting the "DOS" box. I just re-installed the scripts on another XP box and am now getting the DOS box ! Something to do with the registry ? Regards, Philippe -- *** Philippe

could that be a mutable object issue ?

2005-02-19 Thread Philippe C. Martin
m_rw.books, I see my 'appends' in there, yet the pickled object does not change. Any clue ? Thanks Philippe -- *********** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: could that be a mutable object issue ?

2005-02-19 Thread Philippe C. Martin
Yes, and that is my initial problem: I seem to write correctly that 'pickle string' to a device, by when I read it back, the appended information is gone. On Sat, 19 Feb 2005 19:13:58 +0100, Fredrik Lundh wrote: > Philippe C. Martin wrote: > >> print 'LEN OF

Re: could that be a mutable object issue ?

2005-02-19 Thread Philippe C. Martin
You are correct and I still don't know Python (sigh). Thanks Philippe On Sat, 19 Feb 2005 15:51:18 -0500, Kent Johnson wrote: > Philippe C. Martin wrote: >> If I do this: >> >> >> >> print 'LEN OF BOOK BEFORE APPEND: ', len(pickle.dumps(se

Re: python API wrapper for C++ API

2004-11-30 Thread Philippe C. Martin
Hi, How about first using a C to C++ wrapper: *** #ifdef __cplusplus extern "C" { /* I really dislike this - iwj. */ #endif void * init (void) { return new myobj() } 3D_fun1 (void * p_obj) { My_OBJ * l_obj = (My_OBJ *)

Regexp question

2004-12-01 Thread Philippe C. Martin
_not_ between brackets or parenthesis i.e; 'xx xx xx xx xx xx xx' knowing that the intial string could be: [yy yy yy yy yy yy yy] xx xx xx xx xx xx xx (zz zz zz zz) Any clue ? Regards, Philippe -- * Philippe C. Martin SnakeCard LLC www.snakecard

Re: How did you learn Python?

2004-12-03 Thread Philippe C. Martin
I used those: http://diveintopython.org/ http://www.fzu.cz/texty/ruzne/python/ http://www.pythonware.com/library/tkinter/introduction/ Then O'Reilly 'Programming Python' Regards, Philippe -- ********* Philippe C. Martin SnakeCard LLC ww

byte code generated under linux ==> bad magic number under windows

2004-12-06 Thread Philippe C. Martin
wrong ? are the pyc plateform dependant ? and if so must I generate one version for each version of Linux, windows .. ? Regards, Philippe -- ********* Philippe C. Martin SnakeCard LLC www.snakecard.com * -- http://mail.python.org/mailman/listinfo/python-list

Loading a file only once into an object and being able to access it from other modules

2004-12-07 Thread Philippe C. Martin
like the file not to be loaded on import or class instantiation, but only once (on first import or class instantiation). Currently I have the loading code in the class __init__. Is there a clean way to do this (I'd like to avoid global)? Regards, Philippe -- *

Re: Loading a file only once into an object and being able to access it from other modules

2004-12-07 Thread Philippe C. Martin
Thank you all for your answers, I guess I would not have made Python 101:-) As far as I was concerned, importing a module twice would have resulted in loading the file twice. Regards, Philippe -- * Philippe C. Martin SnakeCard LLC www.snakecard.com

Re: Loading a file only once into an object and being able to access it from other modules - still have a problem

2004-12-09 Thread Philippe C. Martin
816, when I see 'LOADING' then I also see a fully populated dictionary. But when I see (second or more time) 'DICT ALREADY LOADED', then my dict is emtpy What else am I not understanding ? Regards, Philippe -- * Philippe C. Martin SnakeCard LLC www.

Re: Loading a file only once into an object and being able to access it from other modules - still have a problem

2004-12-09 Thread Philippe C. Martin
__Load method "loads" self.DICTIONNARIES. So now my understanding is that __Load needs to load SC_ISO_7816.DICTIONNARIES, and children classes will have to refer to SC_ISO_7816.DICTIONNARIES if they want to see something. I'll give it a shot right now. Thank you! Philippe -- *

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

bdb question

2004-12-16 Thread Philippe C. Martin
my debugged program keeps running to its end although the above seems to eventually work. Any clue ? Regards, Philippe -- * Philippe C. Martin SnakeCard LLC www.snakecard.com * -- http://mail.python.org/mailman/listinfo/python-list

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 _long_ time ago, I recall a boss

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

<    1   2   3   >