Re: Python crash when trying to generate an Excel worksheet with VBA macros

2006-10-04 Thread hg
dan_roman wrote: > Hi, > I developed a script with a nice interface in Tkinter that allows me to > edit some formulas and to generate an Excel worksheet with VBA macros > within it. The script runs perfectlly in Office 2000, but in Office > 2003 crash at line: "wbc = workbook.VBProject.VBComponents

Re: Where is Python in the scheme of things?

2006-10-04 Thread hg
le Python is free (at least > for the package I am using - ActivePython). > > Please discuss where Python shines. > Gord > > Big three? ... not sure even Bill agrees with you. Code in Python and decide for yourself ... but again, nowadays, you're to compare with C#, V

Re: Where is Python in the scheme of things?

2006-10-04 Thread hg
hg wrote: > gord wrote: >> As a complete novice in the study of Python, I am asking myself where this >> language is superior or better suited than others. For example, all I see in >> the tutorials are lots of examples of list processing, arithmetic >> calcu

Re: How to execute a python script in .NET application

2006-10-06 Thread hg
Chandra wrote: > Hi, > > Is there a way to execute a python script(file) in ASP.NET application > (programmatically)?? > > Regards, > Chandra > pythondotnet@python.org ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter & systray

2006-10-09 Thread hg
know wxPython does that and I assume PyQT also does. I do not think Tkinter is more portable than the above two anymore ... just easier to install since built-in. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Funky file contents when os.rename or os.remove are interrupted

2006-10-10 Thread hg
want to test your problem on an NTFS file system and see if the problems are similar. Regards, hg -- http://mail.python.org/mailman/listinfo/python-list

nntplib tutorial

2006-10-11 Thread hg
Hi, Is there such a thing ? Trying to understand the various strings I get hereunder Thanks, hg from nntplib import * s = NNTP('news.central.cox.net') resp, count, first, last, name = s.group('comp.lang.python') print 'Group', name, 'has', count, &

Re: nntplib tutorial

2006-10-11 Thread hg
Gabriel Genellina wrote: > At Wednesday 11/10/2006 14:46, hg wrote: > >> Is there such a thing ? >> >> Trying to understand the various strings I get hereunder > > A basic understanding of the protocol would help a lot. The RFC 977 > itself is not so hard

Re: IDLE won't run

2006-10-12 Thread hg
Rob wrote: > I have Python 2.4.3 installed on Windows XP on both a real computer and a > virtual machine under VMware. Just recently, IDLE stopped working. I would > select IDLE from the start menu or right click on a .PY file and open it in > IDLE, but nothing happens. I just uninstalled Python

Re: Starting out.

2006-10-12 Thread hg
ntroduction to python (http://www.diveintopython.org/) ... and then there are a billion of good books. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: COM and Threads

2006-10-12 Thread hg
Teja wrote: > I have an application which uses COM 's Dispatch to create a COM based > object. Now I need to upgrade the application to a threaded one. But > its giving an error that COM and threads wont go together. Specifically > its an attribute error at the point where COM object is invoked. An

Re: COM and Threads

2006-10-12 Thread hg
Teja wrote: > hg wrote: > >> Teja wrote: >>> I have an application which uses COM 's Dispatch to create a COM based >>> object. Now I need to upgrade the application to a threaded one. But >>> its giving an error that COM and threads wont go together

Re: Where can I find good python code?

2006-10-13 Thread hg
me to read them and > I think they're good but seemed not so practical to me. > > Any recommendations? Sure, there are tons of pure-Python modules out there. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Loops Control with Python

2006-10-13 Thread hg
Paddy wrote: > Wijaya Edward wrote: >> Can we make loops control in Python? >> What I mean is that whether we can control >> which loops to exit/skip at the given scope. >> >> For example in Perl we can do something like: >> >> OUT: >> foreach my $s1 ( 0 ...100) { >> >> IN: >> foreach my $s

Re: wing ide vs. komodo?

2006-10-13 Thread hg
look of it seems very sparse for some reason. I'm testing them both now ... Wing IDE is in front (but I'm testing the pro version). hg -- http://mail.python.org/mailman/listinfo/python-list

Re: wing ide vs. komodo?

2006-10-13 Thread hg
arse for some reason. > > But that's really a good thing. > > -- Theerasak I'm really interested: my *small* company is ready to spend the ~300$ in the process, but Komodo looks _very_ sparse. How do you go about it? ... I have resources to look at it for one or two days. h

Re: wing ide vs. komodo?

2006-10-13 Thread hg
Theerasak Photha wrote: > On 10/13/06, hg <[EMAIL PROTECTED]> wrote: > >> I'm really interested: my *small* company is ready to spend the ~300$ in >> the process, but Komodo looks _very_ sparse. >> >> How do you go about it? ... I have resources to loo

Re: wing ide vs. komodo?

2006-10-13 Thread hg
Theerasak Photha wrote: > On 10/13/06, hg <[EMAIL PROTECTED]> wrote: > >> I have spend the past two years with eclipse/pydev ... a few issue are >> still troublesome to me (speed, search for definitions ... being a few >> of them) ... and until two days ago I ha

Re: Can I set up a timed callback without Tkinter or twisted or something?

2006-10-14 Thread hg
Hendrik van Rooyen wrote: > Hi, > > I want to do the equivalent of the after thingy in tkinter - setting up in > effect a timed call back. > > My use case is as a "supervisory" timer - I want to set up an alarm, which I > want to cancel if the expected occurrence occurs - but its not a GUI app. >

Re: ADO with Python

2006-10-16 Thread hg
Ralf wrote: > Is their anybody with xperience in using the both and can provide me with > some xamples. > > Thx a lot > Ralf > > I suggest you buy the book from Mark Hammond hg ex (major cut and paste): #***

Re: Newbie: datetime conversion question

2006-10-17 Thread hg
how about import time "%08X"% (int)(time.mktime(time.localtime())) hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie: datetime conversion question

2006-10-17 Thread hg
Carsten Haese wrote: > On Tue, 2006-10-17 at 08:49, hg wrote: >> import time >> "%08X"% (int)(time.mktime(time.localtime())) > > Have you not had your coffee yet or are you trying to win an obfuscated > python programming competition? ;) > >

Re: Python Web Site?

2006-10-17 Thread hg
Tim Chase wrote: >> Is there a problem with the Python and wxPython web sites? >> I cannot seem to get them up > > Sounds like someone needs some pyagra... > > (grins, ducks, and runs) > > the-red-or-blue-pill'ly yers, > > -tkc > > > >

Re: Python Web Site?

2006-10-17 Thread hg
to find some documentation... >> >> Thanks, >> Mike > I still do get mails from the list hg -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter won't play

2006-10-18 Thread hg
Carl Wenrich wrote: > I installed python 2.4.4 from source. When I try to > run the demo tkinter (hello.py) script, I get a > message saying my python may not be configured for Tk. Under *nix ? Make sure you have the tcl/tk source installed also. hg -- http://mail.python.org/mailman

Re: Komodo

2006-10-19 Thread hg
better ... :) > > Mark Can you suggest tools (.el) to add to emacs for large projects management / browsing ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: TNEF decoder

2006-08-29 Thread hg
Simon Forman wrote: > David Isaac wrote: >> I'm aware of >> http://cheeseshop.python.org/pypi/pytnef/ >> but it uses the tnef utility, and I'd like a pure Python solution >> (along the lines of http://www.freeutils.net/source/jtnef/ ). >> >> Is there one? >> >> Thanks, >> Alan Isaac > > A place I

Re: Python for Windows

2006-08-30 Thread hg
nk the current installer modifies at least the .py .pyw file association. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: active python windows

2006-08-30 Thread hg
his might be happening and > if it was possible to change it. > > > _ > PrivatePhone - FREE telephone number & voicemail. > A number so private, you can make it public. > http://www.privatephone.com >

mysqldb + multi-threading

2006-09-08 Thread hg
threads. My gut feeling is to use threads (note: each transaction is finite, so the process/thread die fairly quickly). Any insight ? hg -- http://mail.python.org/mailman/listinfo/python-list

Re: mysqldb + multi-threading

2006-09-09 Thread hg
hg wrote: > Hi, > > I am writing a transaction server (socket-based) under windows. > > I use mysqldb to log info into MySQL. > > It is all working and I need now to decide whether to use forks > (CreateProcess I guess) or threads. > > I saw in another thread

socket question

2006-09-13 Thread hg
Hi, I am not sure whether this is a python-related question. If I have device A than sends XX bytes to device B, and device B does a recv(XX) using the default timeout, what could make device B wake-up with less than XX bytes received ? Regards, hg -- http://mail.python.org/mailman/listinfo

Re: socket question

2006-09-13 Thread hg
Jean-Paul Calderone wrote: > On Wed, 13 Sep 2006 08:13:43 -0500, hg <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I am not sure whether this is a python-related question. >> >> If I have device A than sends XX bytes to device B, and device B does a >> recv(X

Re: socket question

2006-09-13 Thread hg
Diez B. Roggisch wrote: > hg wrote: > >> Hi, >> >> I am not sure whether this is a python-related question. >> >> If I have device A than sends XX bytes to device B, and device B does a >> recv(XX) using the default timeout, what could make device B w

Idle 1.1.3 class browser + a few questions

2006-09-13 Thread hg
Hi, Is there a way to: 1) open the class browser automatically on the file opening 2) have the class browser updated when functions/classes ... are added to the file 3) have a vertical scroll bar 4) have line numbers Thanks, Philippe -- http://mail.python.org/mailman/listinfo/python-list

socket and threading ... bad file descriptor

2006-09-14 Thread hg
descriptor in _dummy. I tried using plain threads with the same problem. Any clue ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: socket and threading ... bad file descriptor

2006-09-14 Thread hg
hg wrote: > Hi, > > I have two classes, one listens and accepts connections, gets the > socket, reads the first byte from the opened socket then launches a > thread (threading) and gives it the socket identifier. > > The first time the thread attempts to read from the give

Re: Looking for a reports module/project

2006-09-20 Thread hg
John Purser wrote: > Hello, > > I'm working on a script to gather data from our servers and then present > the data as part of daily maintenance. Pretty straight forward stuff. > However one of the limitations of an earlier design was presentation of > the data so I'm working to make this version

Re: ruby %w equivalent

2006-09-25 Thread hg
Antoine De Groote wrote: > Hi everybody, > > is there a python equivalent for the ruby %w operator? > %w{a b c} creates an array with strings "a", "b", and "c" in ruby... > > Thanks a lot > Regards, > antoine Why would they want to make such an obscure API ? ... didn't they have Python to learn

Re: ruby %w equivalent

2006-09-25 Thread hg
MonkeeSage wrote: > hg wrote: >> Why would they want to make such an obscure API ? ... didn't they have >> Python to learn from (I am truly amazed - nothing cynical ...just ... >> why ?) > > In ruby there are several special literal notations, just like pyt

Re: ruby %w equivalent

2006-09-25 Thread hg
hg wrote: > MonkeeSage wrote: >> hg wrote: >>> Why would they want to make such an obscure API ? ... didn't they have >>> Python to learn from (I am truly amazed - nothing cynical ...just ... >>> why ?) >> In ruby there are several special lit

Re: ruby %w equivalent

2006-09-25 Thread hg
MonkeeSage wrote: > hg wrote: >> But today ? what is the cost of replacing %w("blah blah") by >> Hi_I_Want_To_Split_The_String_That_Follows( "blah blah") > > How about r'blah', u'blah', """blah""", and

Re: I need Cryptogrphy in Python please .

2006-10-03 Thread hg
27;t find an > active mailing list and the last release are a couple of year old. > > Can some one guide me how to fix the problem above or point me to > another Cyrptography library that I can use easily ? > > Thanks. > I use pycrypto under *nix and Windows. Under wi

Re: Free Decompiler

2006-11-18 Thread hg
jim wrote: > where can I find a free decompile that I can run in windows xp > Hey Jim, where can you find a free "decompile" that you can run in windows xp ? hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python visual IDE

2006-11-22 Thread hg
done in wxDesigner at the beginning of the project, and seldom have to get back into it to twick the interface. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python visual IDE

2006-11-22 Thread hg
for other languages (never tried) : c++, c#, perl PPS: I'm not getting any money from them ;-) hg king kikapu wrote: > I didn't know about this product you mention (wxDesigner). > I download the trial and it seems pretty good, reminds me the wxGlade. > > So you make the G

utf - string translation

2006-11-22 Thread hg
27;à' is included in the extended ASCII table, and thus can be stored in one byte. Any clue ? hg # -*- coding: utf-8 -*- import string def convert(mot): print len(mot) print mot[0] print '%x' % ord(mot[1]) table = string.maketrans('àâäéèêëîïôöùüû',&

Re: utf - string translation

2006-11-22 Thread hg
Fredrik Lundh wrote: > hg wrote: > >> We noticed that len('à') != len('a') > > sounds odd. > >>>> len('à') == len('a') > True > > are you perhaps using an UTF-8 editor? > > to keep your sanity, no matter w

Re: utf - string translation

2006-11-22 Thread hg
hg wrote: > Fredrik Lundh wrote: >> hg wrote: >> >>> We noticed that len('à') != len('a') >> sounds odd. >> >>>>> len('à') == len('a') >> True >> >> are you perhaps using an UTF-8 editor? &

Re: utf - string translation

2006-11-22 Thread hg
Duncan Booth wrote: > hg <[EMAIL PROTECTED]> wrote: > >>> or in other words, put this at the top of your file (where "utf-8" is >>> whatever your editor/system is using): >>> >>># -*- coding: utf-8 -*- >>> >>> a

Re: utf - string translation

2006-11-22 Thread hg
Fredrik Lundh wrote: > hg wrote: > >> How would you handle the string.maketrans then ? > > maketrans works on bytes, not characters. what makes you think that you > can use maketrans if you haven't gotten the slightest idea what's in the > string? > >

Re: Simple threading

2006-11-23 Thread hg
pass > > if __name__ == "__main__": > main() > Run gets called only once: you need to put your logic in a "while True" or something equivalent/define some escape clause. Right now you just get into the implicit "else" and get out. hg im

Re: Active State and Komodo...

2006-11-24 Thread hg
here any other IDE's that are better, > in your opinion, than Eric version 3. I'm using gnome and eric is built > for KDE. I don't care it there open source or Id I have tp puchase one. > > Thanks again, > > Steve I like Eclipse/Pydev better hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Active State and Komodo...

2006-11-24 Thread hg
John Machin wrote: > Steve Thompson wrote: >> Hello all, >> >> I was wondering the differnced there were betwee Active State's python and >> the open source version of python. Would I have to unistall my opend souce >> python? Additonally, how does Active State's Komodo IDE vs. the eric3 IDE >> unl

pyxpcom

2006-11-27 Thread hg
Hi, Can one tell me what the status of this project is ?. I did google ... but not much out there. Regards, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: pyxpcom

2006-11-28 Thread hg
Trent Mick wrote: > hg wrote: >> Hi, >> >> Can one tell me what the status of this project is ?. I did google ... >> but not much out there. > > PyXPCOM source is in the main Mozilla CVS tree. It is being maintained > by Mark Hammond (the original developer of

Re: pyxpcom

2006-11-29 Thread hg
enging. > > Trent > Exactly ... are you saying I need to distribute Firefox compiled differently in order to achieve that ? This is less a python issue clearly if that is the case: would I have the same issues to resolve if I were to write the module in C++ ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python

2006-11-29 Thread hg
umber 2 from top to bottom and > extract it into a txt file... > > Does anyone know how i can create this type of script or has like a > sample that i can use.. I am having a hard time starting the script.. > > hope someone can help > > Thanks agian > You might wan

Re: pyxpcom

2006-11-29 Thread hg
Trent Mick wrote: > hg wrote: >> Trent Mick wrote: >>>> My need is as follows: I have developed an activex component to >>>> access a >>>> smart card on the client side / do some web site logon. >>>> >>>> Are xpcom / pyxpc

Re: python vs java & eclipse

2006-12-01 Thread hg
ed to change project as with Visual Studio, I just run/debug whatever I need with a few clicks ... have not touched Konsole in weeks. I also, after weeks of testing, decided to invest in the pydev extensions / the bugs it has found for me already justify the investment. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: python vs java & eclipse

2006-12-01 Thread hg
e IDE can bring functions that an editor, however powerful, cannot (I still use emacs). I have tried Komodo, Wing, Eric3, Idle, emacs, (not vi ;-) ), SPE, boa-constructor, and many more - I like most of them but am really addicted to eclipse + pydev. ... but even without pydev, I would not use java just because of eclipse. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: wxpython worked out but can't find api docs for download.

2006-12-02 Thread hg
krishnakant Mane wrote: > hello all. > finally I got the accessibility issue out from wxpython. actually > almost got it out, but that's another story. > now my problem is that I can't gind a downloadable version of wxpython > api reference for the latest version or the latest api reference at >

Re: evaluating gui modules, any experience on tkinter?

2006-12-02 Thread hg
- both very easy to learn and production libraries ... I never know whether PyQT is commercial or not under windows (trollteck changed their QT license I think). I strongly suggest looking at wxPython - and start with their demo package which runs also under *nix and windows. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: RAD for python

2006-12-04 Thread hg
progman wrote: > > is there a VB-alike tool for python to create forms?? http://wxglade.sourceforge.net/ http://boa-constructor.sourceforge.net/ http://www.activestate.com/Products/Komodo/ http://www.roebling.de/ hg -- http://mail.python.org/mailman/listinfo/python-list

get script path

2006-12-04 Thread hg
Hi, must I parse argv[0] to get it, or is there an easier way (that works under Windows and *nix)? Ex: python /home/hg/test/test.py ==> test.py #knows it is in /home/hg/test Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: get script path

2006-12-04 Thread hg
hg wrote: > Hi, > > must I parse argv[0] to get it, or is there an easier way (that works > under Windows and *nix)? > > Ex: > > python /home/hg/test/test.py ==> test.py #knows it is in /home/hg/test > > Thanks, > > hg got it: os.path.dirname(sy

Re: get script path

2006-12-04 Thread hg
Rob Wolfe wrote: > > hg wrote: >> Hi, >> >> must I parse argv[0] to get it, or is there an easier way (that works >> under Windows and *nix)? >> >> Ex: >> >> python /home/hg/test/test.py ==> test.py #knows it is in /home/hg/test > &g

Re: List of Events in wxPython

2006-12-06 Thread hg
d. Note that if you handle both SPIN and UP or DOWN events, you will be notified about each of them twice: first the UP/DOWN event will be receieved and then, if it wasn't vetoed, the SPIN event will be sent. See also hg -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-09 Thread hg
[EMAIL PROTECTED] wrote: > Okay, since everyone ignored the FAQ, I guess I can too... > > Mark Tarver wrote: >> How do you compare Python to Lisp? What specific advantages do you >> think that one has over the other? > > (Common) Lisp is the only industrial strength language with both pure > co

Re: can I download Python Imaging Library (PIL) for linux.

2006-12-11 Thread hg
[EMAIL PROTECTED] wrote: > can I download Python Imaging Library (PIL) for linux. http://effbot.org/downloads/Imaging-1.1.6.tar.gz -- http://mail.python.org/mailman/listinfo/python-list

RE: merits of Lisp vs Python

2006-12-11 Thread hg
[EMAIL PROTECTED] wrote: > > After 394 postings in this thread, you all have convinced me. I am > dropping all of my python code and switching to Lisp. > > thank-you > > > The information contained in this message and any attachment may be > proprietary, confidential, and privileged or subjec

Re: paramiko public key

2006-12-12 Thread hg
[EMAIL PROTECTED] wrote: > paramiko http://www.lag.net/paramiko/docs/ __str__ ? -- http://mail.python.org/mailman/listinfo/python-list

Embedding a shell / editor in a wxPython application

2006-12-12 Thread hg
Hi, Are there modules out there (ex: scintilla for editor ...) ? Thanks hg -- http://mail.python.org/mailman/listinfo/python-list

Re: how to bind a command to the open button

2006-12-12 Thread hg
susan wrote: > Hi, > Anybody knows how to bind a command to the open button at a file > browser dialog? I want to add selected files to a scrolllist. > > Like this: > > def browseFile(self): > > file = askopenfilename(filetypes = [("TDF Files", "*.TDF"), > ("All Files", "*.*")],multipl

Re: pycrypto 3DES keysize

2006-12-13 Thread hg
DES If that may reassure you ;-) I use PyCrypto to "talk" to smart cards without any problem. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: pycrypto 3DES keysize

2006-12-13 Thread hg
hg wrote: > Ning wrote: > >> I'm trying to write an IM client which sends encrypted messages to the >> server. I tried to use pycrypto library, but when I came to 3DES >> cypher I was confused about the keysize to use. In the standard it >> said that it sh

Re: Serial port failure

2006-12-15 Thread hg
t;><><><><><><><><><><><><><> > # Call the lane finder utility > NumLanes = GetNumLanes(Lanes) > #<><><><><><><><><><><><><><

Re: Serial port failure

2006-12-15 Thread hg
hen" > print "reconnect it and try again." > sys.exit(1) > > p.setBaudrate(19200) > p.setTimeout(3) #set timeout to 1.5 seconds > > # finish opening the port and assign a file handle > p.open() > return p > > > > On Dec 15, 1:07 pm

Re: Is htmlGen still alive?

2006-12-19 Thread hg
am not certain it is, but besides some deprecation warnings, it seems to be complete/functional hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Good Looking UI for a stand alone application

2006-12-19 Thread hg
test it on all platforms if I were you: no coding and you see stuff right away / decide whether it is a good choice. ... I know it is mine (although I must confess I never tried it on a mac). hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Can a Tkinter GUI check for abort script:

2006-12-19 Thread hg
that a python script or a .sh / .bat ? ... from what you're writing, it seems you're calling some external entity which just might launch a bunch of processes) So do you or not control the inner workings of that external script ? If you don't, then "killing" might be the way as posted / clearly the methord will change from environment to environment. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: array of class

2007-01-02 Thread hg
t; --- > > Here, this "classes" are all at the same position in memory. So there > are no different classes in the array. > > So I access with s1[0], s1[1], s1[2], etc. always the same data. > > Any idea? > > -- > Michael do you mean object ? your append should be append(Word()) as you need to create instances. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: array of class / code optimization

2007-01-03 Thread hg
. > > Maybe you know a source (URL) "Python for c/c++ programmers" or things > like that. > > > Yes, I konw whats an object is... A struct in C is unrelated to a struct in C++ as a struct in C++ _is_ a class. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: array of class / code optimization

2007-01-03 Thread hg
Neil Cerutti wrote: > On 2007-01-03, Jussi Salmela <[EMAIL PROTECTED]> wrote: >> hg kirjoitti: >>> mm wrote: >>> >>>> Yes, it was the (), equivalent to thiks like new() create new object >>>> from class xy. >>>>> s1.appen

Re: Problem Running Working Code on Mac

2007-01-04 Thread hg
'm traveling soon and need to be able to work on this on my > macbook, so it's down to panic time. Any help is GREATLY appreciated. > > Thanks, > Matt I'd get rid of the warnings first by installing the correct librairies (PyPar, MySQLDB, pgdb) who knows what the side effect are ? hg -- http://mail.python.org/mailman/listinfo/python-list

find a .py path

2007-01-05 Thread hg
Hi, Is there an easy way for a script being executed (from anywhere) to know where is is ... something in os.path ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: find a .py path

2007-01-05 Thread hg
hg wrote: > Hi, > > Is there an easy way for a script being executed (from anywhere) to know > where is is ... something in os.path ? > > Thanks, > > hg oops: os.path.abspath(sys.argv[0]) hg -- http://mail.python.org/mailman/listinfo/python-list

importing / loading a module / class dynamically

2007-01-05 Thread hg
plevel- eval ('import ' + s) File "", line 1 import test.py Any clue ? Thanks hg -- http://mail.python.org/mailman/listinfo/python-list

Re: find a .py path

2007-01-05 Thread hg
Laszlo Nagy wrote: > hg i'rta: >> Hi, >> >> Is there an easy way for a script being executed (from anywhere) to know >> where is is ... something in os.path ? >> > __file__ > > You can also use os.argv[0] but that is not the same... > &

Re: importing / loading a module / class dynamically

2007-01-05 Thread hg
hg wrote: > Hi, > > I have the following problem. > > I find in a directory hierarchy some files following a certain sets of > rules: > > .../.../../plugin/name1/name1.py > > .../.../../plugin/namen/namen.py > > each file will in turn have a clas

Re: importing / loading a module / class dynamically

2007-01-05 Thread hg
eval ('import ' + s) >> File "", line 1 >> import test.py >> Thanks, What I am doing is adding plugin support to PyCrust ... so I'm looking for a mechanism where anyone can develop a plugin and have it loaded by pycrust. the .py was a typo why the "...Have at least an empty plugin/name1/__init__.py file..." ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: importing / loading a module / class dynamically

2007-01-05 Thread hg
> Laszlo Many thanks Laszlo, it looks like I got it to work ... result will be on www.snakecard.com/PY for those interested ... in the next few days hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Undefined symbol __pure_virtual when importing MySQLdb

2007-01-05 Thread hg
and did see someone asking the same question, but > haven't found a good solution to this problem. Could anyone give me a > hint? Thanks a lot! Hi, I can only say that it runs fine under Mandriva 2007 ... and that Mandriva went to gcc V4 long after 9.2 ... maybe an issue here. Regards, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Why less emphasis on private data?

2007-01-08 Thread hg
that stupid, should you be programming > in any language? The most widely used language is still C, and there is > no concept of private data in C either, nor is it needed. void test(void) { static int i; } Do you agree that i is "private" to test ? hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Xah's Edu Corner: Introduction to 3D Graphics Programing

2007-01-09 Thread hg
Xah Lee wrote: > I don't know OpenGL, but i think it is a low-level crap, and have done > the industry huge irreparable damage the same way unix has. So you _are_ psychic ! is the end of the world be in 2007 ? -- http://mail.python.org/mailman/listinfo/python-list

Python 2.5 and stdin

2007-06-03 Thread hg
code is here: http://snakecard.com/rtb/ Any clue ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

pyexe "format"

2007-06-09 Thread hg
Hi, Is there a clean way to figure out that a .exe was actually generated by pyexe ? hg -- http://mail.python.org/mailman/listinfo/python-list

Re: pyexe "format"

2007-06-09 Thread hg
hg wrote: > Hi, > > Is there a clean way to figure out that a .exe was actually generated by > pyexe ? > > hg I should gave writtent "definite" instead of "clean" hg -- http://mail.python.org/mailman/listinfo/python-list

Re: pyexe "format"

2007-06-10 Thread hg
John Machin wrote: > On Jun 10, 11:25 am, John Machin <[EMAIL PROTECTED]> wrote: >> On Jun 10, 10:38 am, hg <[EMAIL PROTECTED]> wrote: >> >> > hg wrote: >> > > Hi, >> >> > > Is there a clean way to figure out that a .exe was actua

stdout/err and C extentions

2007-06-12 Thread hg
My_Stdout() print 'toto' import test_redir test_redir.test() **** Question: print 'toto' does go to "res.txt" while "Hello from an extention!\n" goes to the console. Any clue ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >