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

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

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

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

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

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

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

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:

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

Non hashable object (without __dict__)

2011-04-20 Thread Arthur Mc Coy
Hello, I have a C++ application, I used SWIG to call the python code. I pass myModule.myObject object to the method of python code and what to store it in JSON format. The problem is when I do: o = myModule.myObject() inside python, the o object has __dict__ property, but if I take the passed

Re: How to get python class serializable and well parsed by JSON

2011-03-11 Thread Arthur Mc Coy
Currently trying to pick up my ava http://en.gravatar.com/christinasanders21 for StackOverflow, which site I found very good for my questions, didn't I? Yes, and there are problem when adding a picture. Web admins should be careful. Can anyone explain me my problem ? : Christina -- http:/

Re: How to get python class serializable and well parsed by JSON

2011-03-11 Thread Arthur Mc Coy
Common guys, help me, sweet heart to finish my job and go with my friend in the bar. Today we have a blues night :) Love it! Christina -- http://mail.python.org/mailman/listinfo/python-list

How to get python class serializable and well parsed by JSON

2011-03-11 Thread Arthur Mc Coy
Hi people, I've created very nice post here: http://stackoverflow.com/questions/5274690/how-to-get-python-class-serializable-and-well-parsed-by-json-custom-encoder-deco Yes, there are solutions over the internet, but nothing works for my custom types. If you could answer, please read it. Be happ

Re: python data types in c++ code

2011-03-06 Thread Arthur Mc Coy
In short, the answer is to use PyObject dictionary ? -- http://mail.python.org/mailman/listinfo/python-list

Re: python data types in c++ code

2011-03-06 Thread Arthur Mc Coy
Stephan, you are lead developer over there :))) It's marketing, however very nice solution.. I will propose my bosses to rediscover their world assumptions. You know, they are still using SVN, they are very loosely coupled to the past. I have to wash their brains... Meantime still battling with Py

Re: python data types in c++ code

2011-03-06 Thread Arthur Mc Coy
Stefan, great suggestion !! I will definitely bookmark this page and consider later. But my project dictate me use SWIG. I'm almost near the happy subend. Very curios on question I asked in previous message. Dear all, I love you too much :) Arthur -- http://mail.python.org/mailman/listinfo/pyth

Re: python data types in c++ code

2011-03-06 Thread Arthur Mc Coy
Ok people, I do: for (Py_ssize_t i = 0; i< PyList_Size(py_list); ++i) { PuObject* obj = PyList_GetItem(py_list, i); if (obj != NULL) { // howto get obj properties of different types (map, list, string, int, bool) ? } } Very clear code. The question i

python data types in c++ code

2011-03-06 Thread Arthur Mc Coy
Hi all, Ok, I managed to work with c++ data types in python and can store serialize c++ objects to store in json. Now the task is backward. I wrote a c++ code to get the list of objects using again python interface. The list of objects is returned. PyList. But I can't see how to convert PyObjec

Re: c++ data types in python script

2011-03-06 Thread Arthur Mc Coy
Great! The solution is to use self.benchmarks = list(object.benchmarks). Now I'm battling with time_t type. C++ time_t converts to python int but it causes memore leaks due to destructor absence. I'm trying to figure it out. If anyone know, please share your thoughts. Be happy :) Arthur -- htt

c++ data types in python script

2011-03-06 Thread Arthur Mc Coy
Hi people, I've used SWIG module to embed python inside c++ app. I pass a list of objects (with lots of different properties of types string, float, custom types like URL, Software and finally of list of strings). Now I'm in python. URL and Software has str() method that converts their value to s

Re: import python module from C++ code

2011-03-04 Thread Arthur Mc Coy
Still need the answer to the question: " howto embed given python file (which contains python class and its members) into the c++ application ? " I have to pass the arguments from c++ to python and back so I need to do conversions. They are ok. Fails PyImport_Import(my_module) call saying "No modu

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

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

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

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

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

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

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

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

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

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: [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: [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: 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: Horace Lives!

2007-08-31 Thread MC
Mégalo! -- @-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: Syntax Question - list multiplication

2007-08-19 Thread MC
Classic -- @-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: 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: 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: 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: FTP Date Format Function

2007-06-14 Thread MC
Thank. -- @-salutations Michel Claveau -- 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: 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: Windows, subprocess.Popen & encodage

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

ANN: pywinauto 0.3.7 now released

2007-04-10 Thread Mark Mc Mahon
e wheel movements to be made. * menuwrapper.Menu.GetProperties() now returns a dict like all other GetProperties() methods. This dict for now only has one key 'MenuItems' which contains the list of menuitems (which had been the previous return value). Thanks Mark ----

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: 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: why brackets & commas in func calls can't be ommited? (maybe it couldbe PEP?)

2007-03-22 Thread Enrico &#x27;Mc Osten' Franchi
<[EMAIL PROTECTED]> wrote: > But I think in some situations Ruby allows to omit them, solving some > of the "impossibile" problems shown in this thread. This makes Ruby a > bit better than Python to create application-specific mini languages, > that are quite useful in some situations. Yes. Howev

Re: Best Free and Open Source Python IDE

2007-02-08 Thread Enrico &#x27;Mc Osten' Franchi
Srikanth <[EMAIL PROTECTED]> wrote: > All I need is a good IDE, I can't find something like Eclipse (JDT). > Eclipse has a Python IDE plug-in but it's not that great. Have you tried the 'full' plugin (you have to pay about 30 $ IIRC or something like that)? My favourite Python editor is TextMate

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

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

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

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

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: 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: 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: 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-06 Thread MC
Hi again! Thank you, for all answers & contribs. -- @-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: 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-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: 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: [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: 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: 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-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: > 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
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: > 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-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-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
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
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:

  1   2   >