Re: News on versions modules for Python-2.5?

2006-10-06 Thread MC
Hi again! Thank you, for all answers & contribs. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

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

2006-10-07 Thread MC
Hi! dotNET can use (call) COM-servers In pywin, there are exemple of COM-server, in Python, who can run (on-the-fly) Python code. This give a way for run Python's scripts from dotNET, Excel, Word, Internet-Explorer (HTA), C#, etc. I have try all these things, with success. -- @-salutations

Re: News on versions modules for Python-2.5?

2006-10-12 Thread MC
Hi! Ok. Downloaded. Thanks -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Restart a Python COM Server

2006-10-17 Thread MC
Hi! It is the normal behavior of COM. Note that, Python being dynamic, you can modify Python script, OF THE INTERIOR, during execution. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python scripts in Windows Explorer

2006-10-20 Thread MC
Hi! I use this little batch: @echo off cd \dev\python viewarg.py %* I copy/paste the batch-file on the desktop, like icon. Then, from Win-explorer, drag_and_drop & copy_and_paste run OK. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: I like python.

2006-10-20 Thread MC
Hi! Sorry, I don't understand well english. But, try to rename your script, from .py to .pyw (sample : titi.py ==> titi.pyw). -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

subprocess decoding?

2006-10-28 Thread MC
Hi! On win-XP (french), when I read subprocess (stdout), I must use differents decoding (cp1252,cp850,cp437, or no decoding), depending of the "launch mode" of the same Python's script: - from command-line - from start+run - from icon - by Python-COM-server - etc. (.py & .pyw can also

Re: Integrating Python with Fortran

2006-10-31 Thread MC
Hi! in afternoon: http://calcul.math.cnrs.fr/article.php3?id_article=150 -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Javascript is turning into Python?!

2006-11-03 Thread MC
Hi! > (ECMAscript), then, well I haven't seen any progress there. 1) in IE-7, the last release (of JScript) has few evolutions (more important, a new garbage collector) 2) in Windows, with Active-Scripting, it's possible to integrate JScript in Python, call JScript's functions from Python's co

Re: Programming Language that is Spreadsheet/Table Based

2006-11-03 Thread MC
Hi! You can expand VBA/Excel with Python, with Pywin32 for to make a dynamic COM server. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: how do I pass values between classes?

2006-11-03 Thread MC
Hi! Look Candygram (http://candygram.sourceforge.net/) Candygram has features who will fun for you (like inter-threads-comunication). -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to tell what is the IP of my PC .

2006-11-09 Thread MC
http://monip.org/ -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: [Article] OpenOffice.org and Python

2006-09-05 Thread MC
Thanks! But: - and Python 2.4.x? - I have Python 2.4 and then "embbed Python 2.3 of OOo" ; how install some things in this last Python? I dream to call Pywin32 from OOo... - when I drive OOo from Python, via COM/Ole-automation, many things not run (getStruct...); no solution? -- @-salut

Re: windev vs python SOS

2006-09-28 Thread MC
Bonjour ! Comme tu es français, tu me coprendras. Alors : - windev est fermé, et protégé par des dongles. Résultat : dongle perdu, en panne, ou volé, il faut racheter une licence (c'est arrivé à un ami) - le langage de windev est beaucoup moins évolué que Python. Et, quand je dis beaucoup,

Re: windev vs python SOS

2006-09-29 Thread MC
Thank you, Jean-Marc, for translation. I am not capable of this work. :-) -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: windev vs python SOS

2006-09-29 Thread MC
Thanks. The essential, is that peoples (& you) can understand. Bbut, perso, I don't understand the message translated (much unknowed words...) -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: file backup in windows

2006-11-22 Thread MC
Hi! " are your friend. See, also: filepath = '"%HOMEPATH%\\LocalSettings\\Application Data\\Microsoft\\Outlook\\*"' and %USERPROFILE% %APPDATA% etc. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Try to stop thread Using flag

2006-11-25 Thread MC
http://candygram.sourceforge.net/ -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Plugin for Web Browser

2006-12-05 Thread MC
Bonjour ! Pour IE, il y a des exemples de plugins, fournis avec PyWin32. Pour FF (comme pour Opera), je ne sais pas. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Plugin for Web Browser

2006-12-06 Thread MC
Bonsoir ! > As-tu des connaissances en C++ ? avec Visual C++ ? Ben, non, je ne pratique pas ces machins. Par contre, je pense qu'il existe une autre démarche, qui consiste à générer, à la volée, en Python, des sortes d'applets java/javascript. Avantages : rien à installer ; milti-navigateurs In

Re: Why does Python never add itself to the Windows path?

2006-12-24 Thread MC
Hi! +1 -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Python - C# interoperability

2007-01-09 Thread mc
Is there an easy way to compile a Python class (or set of classes) into a .DLL that a C# program can call? Or otherwise to use an existing library of Python classes from a C# program as seamlessly as possible? -- http://mail.python.org/mailman/listinfo/python-list

Re: Comments appreciated on Erlang inspired Process class.

2007-06-01 Thread MC
Hi! Look Candygram : http://candygram.sourceforge.net/ -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: FTP Date Format Function

2007-06-14 Thread MC
Thank. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Do eval() and exec not accept a function definition? (like 'def foo: pass) ?

2007-06-23 Thread MC
Hi! Try with change all '\r\n' by '\n' -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3.0 or 3000 ....is it worth waiting??? Newbie Question

2007-07-03 Thread MC
Hi! >> non-Ascii characters in identifiers > > And this change may be already in a Python 2.x before P3K. Good new! (if it's True...) -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: ActivePython

2007-07-03 Thread MC
Hi! > Why might one choose to use ActivePython instead of using the free CPython? quiet installation? -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: IDEs for COM scripting: C# v. Python v. Iron Python v. JPython

2007-07-05 Thread MC
Hi! > No. The IDIspatch-interface explicitely lists what methods with what > arguments it has. So code completion is possible there as well. Sorry, I think different. In VS, assists use TLB for find methods & arguments. Dynamic-server can't have TLB. Other way for verify : try a Makepy on a COM

Re: Windows, subprocess.Popen & encodage

2007-05-08 Thread MC
Thank you. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Sending a JavaScript array to Python script?

2007-05-17 Thread MC
Hi! Which context? I know to do interact Python <=> Jscript, with Internet-Explorer+COM ; but I don't know with others environment. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax Question - list multiplication

2007-08-19 Thread MC
Classic -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: How to free memory ( ie garbage collect) at run time with Python 2.5.1(windows)

2007-08-27 Thread MC
Hi! For windows, I had a soft for this (reduce_memory.exe). Sorry, it's not write with Python. If you want, I will give a URL for download it. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Horace Lives!

2007-08-31 Thread MC
Mégalo! -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: JavaScript

2007-08-31 Thread MC
Hi! I know "how to", but only with IE on windows. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: [python-win32] How can I get the parentWindow.document object?

2007-09-02 Thread MC
Hi! > ie = win32com.client.Dispatch("InternetExplorer.Application") > doc=ie.Document.parentWindow.document Use bridge variable : window=ie.Document.parentWindow And work with : print window.Document.body.name -- @-salutations Michel Claveau -- http://mail.python.org/mailman/li

Re: [python-win32] How can I get the parentWindow.document object?

2007-09-02 Thread MC
Re! Sorry! The good exemple is : ie = win32com.client.Dispatch("InternetExplorer.Application") window=ie.Document.parentWindow print window.name another : window.alert("Aalleerrtt") -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: shared memory pointer

2007-09-10 Thread MC
Hi! I agree ; on windows mmap use Memory-Mapped-file, who use virtual memory. And shared memory use physical memory. The difference is OS an not Python -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread MC
Salut! Heureusement qu'il y a qq français pour faire un peu de ménage... -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: zip list with different length

2007-04-04 Thread MC
Hi! Brutal, not exact answer, but: a = range(5) b = range(3) print zip(a+[None]*(len(b)-len(a)),b+[None]*(len(a)-len(b))) -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python - C# interoperability

2007-01-10 Thread mc
Thanks to all who responded. It appears that there may be a solution as follows: use jythonc to turn Python program into Java bytecode use Microsoft's jbimp to turn Java bytecode into .NET DLL It sounds roundabout, but I am investigating. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Windows installation

2007-11-22 Thread MC
Hi! > 1.5.1 Sure? 1.5.1? For Python 2.5, look ActiveState. Their distrib have silent option. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Compiling fails on Mac OS X 10.5

2008-01-12 Thread mc
Hi! I'm trying to compile on my Macbook with OS X 10.5. I have all updates and Xcode 3.0 installed. I checked python out with: svn checkout http://svn.python.org/projects/python/branches/py3k After that I did "./configure" in the created "py3k" dir. Everything went fine. But make fails with the

Re: Compiling fails on Mac OS X 10.5

2008-01-12 Thread mc
On Jan 12, 5:34 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote: > On Jan 12, 9:41 am, mc <[EMAIL PROTECTED]> wrote: > > > > > Hi! > > I'm trying to compile on my Macbook with OS X 10.5. I have all updates > > and Xcode 3.0 installed. > &g

Re: is python Object oriented??

2009-01-29 Thread MC
Hi! Il se trouve que Chris Rebert a formulé : Python has functions, which are not associated with a class functions are methods of builtin... -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: is python Object oriented??

2009-01-31 Thread MC
Re ‘builtin’ is not a class. I think "object" ; not only "class" And "builtin" is an object. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Very Slow PythonWin 2.6.1 Startup on Windows XP SP3

2008-12-18 Thread MC
Hi! Perhaps, if you copy DLL in others strategic places, it's better... -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Make Python create a tuple with one element in a clean way

2008-05-11 Thread MC
Hi! You want 2*(3+4) to return (7,7)? For have that: 2*(3+4,) -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Mathematical Python Library

2008-04-07 Thread mc
I'm looking for a library which can do mathematical stuff like solving equations. Or calculation the nulls of a function and so on. Does anyone know one? Thanks in advance! -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling Python code from inside php

2008-04-23 Thread MC
Hi! If you are under Windows, you can: - call Python's functions via Active-Scripting - call a Python COM server (functions or properties) For that, use Pywin32. And, in all cases, call functions can use parameters. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/lis

Re: windows explorer integration

2009-07-11 Thread MC
Hi! Possible! With Pywin32. I see two ways: - add a "toolBar" ; see the exemple for Internet-Explorer (it run for both, IE & explorer) - add an entry in the context menu (right click) @-salutations -- Michel Claveau -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listi

Re: Having trouble setting up an extremely simple server...

2013-11-21 Thread Cilantro MC
On Thursday, November 21, 2013 9:33:13 PM UTC-5, Roy Smith wrote: > In article <9e773107-5a6c-486b-bef2-186101d8f...@googlegroups.com>, > > cilantr...@gmail.com wrote: > > > > > I'm attempting to set up an extremely simple server that receives a string, > > > and returns a string. However, I

Installing addition libraries in Portable Python 2.7 on Windows

2014-03-16 Thread laguna-mc
I am new in Python, I have Portable Python 2.7.5.1 installed on Windows 7. I want to install additional libraries: python-magic libmagic libfuzzy pyqtgraph I downloaded package, saved on hard drive, unzipped, find setup.py and tried install via Command Prompt: Python-Portable.exe setup.py inst

Re: Installing addition libraries in Portable Python 2.7 on Windows

2014-03-16 Thread laguna-mc
It'slike a chain, eachnew modulepulls afew othermodules.I can postpone get-pip.py onthe very last stage, now I want to install python-magic, libmagic, libfuzzy, pyqtgraph. How to do this? - Original Message - From: Mark Lawrence Sent: 03/16/14 05:06 PM To: python-list@python.org Subject:

Error when installing matplotlib-1.3. on Windows

2014-03-16 Thread laguna-mc
I'm trying to install matplotlib from locally stored source archive file (Portable Python 2.7 on Windows): pip install E:\matplotlib-1.3.1.win32-py2.7.exe Got error, below is log: E:\Portable Python 2.7.5.1\App\Scripts\pip run on 03/17/14 03:10:16 Exception: Traceback (most recent call last):

Installing binwalk on Portable Python

2014-03-17 Thread laguna-mc
Portable Python 2.7 for Win32 and installed on USB flash drive. I want install Binwalk tool, it have a few depencencies, I installed it first (numpy, matplotlib, libmagic, python-magic) Then I tried to install binwalk from locally stored source archive file, I tried two ways: pip install E:\Por

Re: Installing binwalk on Portable Python

2014-03-17 Thread laguna-mc
I tried: pip install "E:\Portable Python 2.7.5.1\binwalk-1.3.0\src\setup.py" Error: E:\Portable Python 2.7.5.1\App\Scripts\pip run on 03/17/14 22:53:51 Exception: Traceback (most recent call last): File "E:\Portable Python 2.7.5.1\App\lib\site-packages\pip\basecommand.py", line 122, in main st

Re: Installing binwalk on Portable Python

2014-03-17 Thread laguna-mc
alled using pip. - Original Message - From: Peter Mawhorter Sent: 03/17/14 11:07 PM To: laguna-mc Subject: Re: Installing binwalk on Portable Python On Mon, Mar 17, 2014 at 1:58 PM, wrote: > I tried: pip install "E:\Portable Python > 2.7.5.1\binwalk-1.3.0\src\setup.py" >

Installing ssdeep on Portable Python

2014-03-20 Thread laguna-mc
Portable Python 2.7 for Windows, the Python application have dependency on ssdeep-2.10, which is a binary exe. The ssdeep (libfuzzy) installation example was shown for Linux platform only: a) libfuzzy can be installed via apt-get:    $ sudo apt-get install libfuzzy2 b) to install libfuzzy

Installing ssdeep on Portable Python /advice

2014-03-20 Thread laguna-mc
Portable Python 2.7 for Windows, the Python application have dependency on ssdeep-2.10, which is a binary exe. The ssdeep (libfuzzy) installation example was shown for Linux platform only: a) libfuzzy can be installed via apt-get:    $ sudo apt-get install libfuzzy2 b) to install libfuzzy

Re: Installing ssdeep on Portable Python /advice

2014-03-22 Thread laguna-mc
http://ssdeep.sourceforge.net/usage.html the installation described in aboved document is for Linux only. Well, I need experiment and see errors. Regards, > - Original Message - > From: Mark H Harris > Sent: 03/22/14 05:32 AM > To: python-list@python.org > Subject: Re: Installing ssdeep

Re: Unpacking U-Boot image file

2014-04-09 Thread laguna-mc
I know about Binwalk, it can run on Linux OS only. I am looking for Python script that can run on Windows too. Thank you. - Original Message - From: Adnan Sadzak Sent: 04/09/14 11:37 PM To: trewio Subject: Re: Unpacking U-Boot image file Oh then see Craig's page [0]. You can find in deep

Re: Python and STL efficiency

2006-08-22 Thread Mc Osten
Jeremy Sanders <[EMAIL PROTECTED]> wrote: > It must be the debugging, the compiler or a poor STL implementation. With > gcc 4 it runs instantly on my computer (using -O2), even with 10x the > number of values. $ gcc --version i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 53

Re: Python and STL efficiency

2006-08-22 Thread Mc Osten
Tim N. van der Leeuw <[EMAIL PROTECTED]> wrote: > I'm curious though, if on the OP's machine the slowed-down Python > version is still faster than the C++ version. I tested both on my machine (my other post in the thread) -- blog: http://www.akropolix.net/rik0/blogs | Uccidete i filosofi, site

Re: Python and STL efficiency

2006-08-22 Thread Mc Osten
Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Python's memory allocator is also quite fast, compared to most generic > allocators... In fact also in the two "slow" versions Python outperforms C++. I didn't notice it in the first place. -- blog: http://www.akropolix.net/rik0/blogs | Uccidete i fil

Re: Python and STL efficiency

2006-08-22 Thread Mc Osten
Tim N. van der Leeuw <[EMAIL PROTECTED]> wrote: > But your C++ program outputs times in seconds, right? So all > compilations except for the first two give results in less than a > second, right? (meaning the optimizations of your standard-compilation > give worst results than -O3?) Yes. It's in

Re: Python and STL efficiency

2006-08-22 Thread Mc Osten
Tim N. van der Leeuw <[EMAIL PROTECTED]> wrote: > Oh boy; yes indeed the slow python is faster than the fast C++ > version... Must be something really awful happening in the STL > implementation that comes with GCC 3.4! And the Python version does the very same number of iterations than the C++ o

Re: Python and STL efficiency

2006-08-22 Thread Mc Osten
Tim N. van der Leeuw <[EMAIL PROTECTED]> wrote: > NB: Your code now tests for address-equality. Does it also still test > for string-equality? It looks to me that it does, but it's not quite > clear to me. It does it. set b(a.begin(), a.end()); set c; // well ordered set (b is ordered by

Re: Python and STL efficiency

2006-08-22 Thread Mc Osten
Tim N. van der Leeuw <[EMAIL PROTECTED]> wrote: > My conclusion from that is, that the vector<> or set<> implementations > of GCC are far superior to those of VC++ 6, but that memory allocation > for GCC 3.4.5 (MinGW version) is far worse than that of MSCRT / VC++ 6. > (And Python still smokes the

Re: Python and STL efficiency

2006-08-22 Thread Mc Osten
Tim N. van der Leeuw <[EMAIL PROTECTED]> wrote: > And the results of IronPython (1.0rc2) are just in as well: I can't test this one. > > And for Python 2.5: > [EMAIL PROTECTED] ~/My Documents/Python > $ /cygdrive/c/Python25/python.exe SpeedTest.py > Begin Test > Number of unique string objects:

Re: Python and STL efficiency

2006-08-22 Thread Mc Osten
Ray <[EMAIL PROTECTED]> wrote: > I'm using VC++ Express, I didn't care to tweak the optimizations, I > merely chose the "Release" configuration for the executable. It's > blazing fast, taking only 30+ ms each run. Of course it is faster. We are looping 100 times, you just 1. -- blog: h

Re: Python and STL efficiency

2006-08-22 Thread Mc Osten
Ray <[EMAIL PROTECTED]> wrote: > Not really, see my test, in my other post in the same thread. I'm using > VC++ Express 2005. If we're comparing with Python 2.5 I think it's just > fair that for C++ we're using the latest as well. In your test, you are looping 1 times, we looped 100. In P

Re: Python and STL efficiency

2006-08-22 Thread Mc Osten
<[EMAIL PROTECTED]> wrote: > That's to say, > python is still much faster? Yes it is. But of course you can't sat that "Python is faster than C++". We found that the code to do this, written in the most natural way, is a lot faster in Python. However, if you optimze the code, C++ gets almost as f

Re: Python and STL efficiency

2006-08-23 Thread Mc Osten
Ray <[EMAIL PROTECTED]> wrote: > Certainly--I was not comparing 100 against 1. Referring to the > OP's statement: "However, while the python code gave the result almost > instantly, the C++ code took several seconds to run!" 30ms sounds like > a definite improvement over several seconds!

Re: Python and STL efficiency

2006-08-23 Thread Mc Osten
GHUM <[EMAIL PROTECTED]> wrote: > Proofed @ EuroPython > 2006 in CERN, near the LHC Beta, in the same room many Nobel laurates > gave their presentations before. Have you some link? I suppose it's kind of a joke they did or something like that... -- blog: http://www.akropolix.net/rik0/blogs |

Re: Python and STL efficiency

2006-08-23 Thread Mc Osten
Ray <[EMAIL PROTECTED]> wrote: > Yeah, my guess would be either he used the Debug configuration or he > actually created a Managed executable instead of a pure Win32 > application. Sigh, now I can't wait to get home and try it out :) Can be. But I suppose a Managed should not get *that* slow. Ir

Re: Python and STL efficiency

2006-08-23 Thread Mc Osten
Tim N. van der Leeuw <[EMAIL PROTECTED]> wrote: > I have to admit to a stupid mistake, for which I feel quite ashamed - I > got the loop-size wrong in the Python code. So all Python results > posted by me were off by a factor of 10 :-( > I feel quite bad about that! Well, this makes *my* results

Re: Python and STL efficiency

2006-08-23 Thread Mc Osten
Ray <[EMAIL PROTECTED]> wrote: > Great to know that my model of how the world works is still correct! > (at least in relation to Python and C++!) :) So please explain my results. I loop the same number of times. -- blog: http://www.akropolix.net/rik0/blogs | Uccidete i filosofi, site: http://

Re: Python and STL efficiency

2006-08-24 Thread Mc Osten
Neil Cerutti <[EMAIL PROTECTED]> wrote: > Those of you experiencing a temporary obsession with this topic > are encouraged to study The Great Language Shootout, until the > obsession goes away. ;) I think that everybody knows GLS. However, when I have results different from what I expected, I try

Re: Python and STL efficiency

2006-08-24 Thread Mc Osten
Neil Cerutti <[EMAIL PROTECTED]> wrote: > Those of you experiencing a temporary obsession with this topic > are encouraged to study The Great Language Shootout, until the > obsession goes away. ;) I think that everybody knows GLS. However, when I have results different from what I expected, I try

Re: Running Python script from C++ code(.NET)

2006-09-24 Thread Mc Osten
volcano <[EMAIL PROTECTED]> wrote: > A trivial question - I have a working Python script that I have to > invoke from C++ code. No fancy stuff - just run the whole script with > its parameters. No callbacks, no signalling - nada, just > stupid,primitive, straightforward call. In a unix based env

Re: Is Python a Zen language?

2006-02-28 Thread Mc Osten
On 26 Feb 2006 14:55:04 -0800, Andrea Griffini wrote: > IMO another language that would be hard to classify is COBOL ... but > for other reasons :-) According to Dijkstra: "The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offence." That makes Cobol

Re: Is it better to use class variables or pass parameters?

2006-03-01 Thread Mc Osten
On 1 Mar 2006 11:32:02 -0800, Derek Basch wrote: > This one has always bugged me. Is it better to just slap a "self" in > front of any variable that will be used by more than one class method > or should I pass around variable between the methods? I think there is no clear "general" answer. A cri

Re: Path completion in 'raw-input'?

2006-03-01 Thread Mc Osten
On Wed, 01 Mar 2006 10:00:43 -0800, Johannes Graumann wrote: > There's also the rlcompleter module, but in the interest of better platform > agnosis I'd like to stick with cmd ... I would have suggested readline.. This works on Windows: Th

Re: Threading - will threads run in parallel?

2006-03-01 Thread Mc Osten
On 28 Feb 2006 11:20:05 -0800, SolaFide wrote: > (get() is a function which waits for a ping on a specific port, thus > stopping the program for a while.) It's a busy wait? -- USB Priests for only 10$ -- http://mail.python.org/mailman/listinfo/python-list

Re: sockets, where can I find documentation?

2006-03-03 Thread Mc Osten
On Fri, 03 Mar 2006 11:41:05 GMT, John Pote wrote: > Where can I get the various papers mentioned in the manual? And as I like > books sitting on the shelf can someone recommend a book on sockets. Unix Network Programming by Stevens -- USB Priests for only 10$ -- http://mail.python.org/mailma

Re: how do you move to a new line in your text editor?

2006-03-03 Thread Mc Osten
On Thu, 02 Mar 2006 18:58:50 GMT, John Salerno wrote: > I use UltraEdit right now, and it is possible to convert spaces and tabs > back and forth, but it's just an extra step. I wouldn't definitely suggest UltraEdit to code Python. Probably you should try scite. I'm using TextMate (but it's M

Re: how do you move to a new line in your text editor?

2006-03-03 Thread Mc Osten
On Fri, 03 Mar 2006 16:48:11 GMT, John Salerno wrote: > Why do you say that? Because I tried it and it just lacks a lot of functionality you get with TextMate or Emacs. It is quite stupid when indenting, just to name one. -- USB Priests for only 10$ -- http://mail.python.org/mailman/listinfo/p

Writing event handler for dropdown list in python

2007-11-23 Thread mc . pandey
Hi, I am new to python, Can someone help me with writing event handler for a dropdown list in python. i have one function to create dropdown list in a file def dropdown_options(self,title,options,name,value = None): ret = "\n"+ title.title() + " \n" if (options != []):

how to write event handler for dropdown list

2007-11-23 Thread mc . pandey
Hi, I am new to python, Can someone help me with writing event handler for a dropdown list in python. i have one function to create dropdown list in a file def dropdown_options(self,title,options,name,value = None): ret = "\n"+ title.title() + " \n" if (options != []):

Re: Simulation Programming Skills and Python

2006-03-07 Thread Mc Osten
On Mon, 06 Mar 2006 10:48:46 -0500, Richard Blackwood wrote: > Two, is > Python a good language for simulation programming? Civilization 4 is (partly) written in Python. I suppose they thought Python was a good language for that. I said partly because as far as I know some code is C++ for speed

python simplejson decoding

2011-03-02 Thread Arthur Mc Coy
Hi all, I'm trying an example (in attached file, I mean the bottom of this message). First, I create a list of 3 objects. Then I do: PutJSONObjects(objects) objects = GetJSONObjects() PutJSONObjects(objects, "objects2.json") 1) PutJSONObjects(objects) method creates objects.json file (by de

Re: arbitrary precision linear algebra

2011-03-02 Thread Arthur Mc Coy
What do you mean by "arbitrary precision" ? Each method of calculating of something has its own precision... -- http://mail.python.org/mailman/listinfo/python-list

Re: arbitrary precision linear algebra

2011-03-02 Thread Arthur Mc Coy
On Mar 2, 5:26 pm, Ben123 wrote: > On Mar 2, 9:04 am, Arthur Mc Coy <1984docmc...@gmail.com> wrote: > > > What do you mean by "arbitrary precision" ? Each method of calculating > > of something has its own precision... > > If you are unfamiliar with arbi

Re: python simplejson decoding

2011-03-02 Thread Arthur Mc Coy
copy nested information. I will see later. Now, when the testing environment is ready, I go for real world application. Thank you! Kostia On Mar 2, 4:24 pm, Peter Otten <__pete...@web.de> wrote: > Arthur Mc Coy wrote: > > Hi all, > > > I'm trying an example (in attach

Re: arbitrary precision linear algebra

2011-03-02 Thread Arthur Mc Coy
> Are you saying python cares whether I express a number as 0.001 or > scaled by 10^5 to read 100? If this is the case, I'm still stuck. I > need the full range of eigenvalues from 1 to 1E-300, so the entire > range could be scaled by 1E300 but I would still need better precision > than 1E19 If py

Re: python simplejson decoding

2011-03-04 Thread Arthur Mc Coy
Good day people, So I have python file which can handle json data to put and get back it from a file say objects.json. Great. Now I want to run this code from within C++ application. I used swig to wrap the C++ class, which wants to call python code. It works fine, because when I import native p

import python module from C++ code

2011-03-04 Thread Arthur Mc Coy
Hi all, I have a C++ application. I have a .cpp file which is not a main program, but a class where I want to call python script (doSomething.py file). I'm using embed python like in a tutorial here: http://www.codeproject.com/KB/cpp/embedpython_1.aspx But the tutorial is bad. It does not expla

Re: import python module from C++ code

2011-03-04 Thread Arthur Mc Coy
hon? > > ~/santa > > [1] http://docs.python.org/extending/ > > On Fri, Mar 4, 2011 at 8:27 AM, Arthur Mc Coy <1984docmc...@gmail.com>wrote: > >> Hi all, >> >> >> I have a C++ application. I have a .cpp file which is not a main >> program, but a clas

Re: import python module from C++ code

2011-03-04 Thread Arthur Mc Coy
The problem is "how to write python module under SWIG for C++ application" Nor SWIG documentation neither embeding python documentation does not answer to this. If you can help, please, share your idea. Arthur -- http://mail.python.org/mailman/listinfo/python-list

Re: import python module from C++ code

2011-03-04 Thread Arthur Mc Coy
Using simple words: I have mymodule.py file and c++ application. mymodule.py file contains two classes A and B. A class is a custom data type. B class contains functions putJSON, getJSON which I want to run from within C++ code. These functions are members of class B. So I need to import mymodule.p

  1   2   >