Running function from Win32 dll

2009-11-30 Thread Nadav Chernin
Hi all, I want to run function from win32 dll. I used ctypes.windll.LoadLibrary to load the DLL. But I don't know how to select function and run it. Dll example attached (pylab.dll). It includes 2 functions: double Add(double a,double b) - adds 2 double numbers double Rand

Running function from win32 dll

2009-11-30 Thread Nadav Chernin
Hi all, I want to run function from win32 dll. I used ctypes.windll.LoadLibrary to load the DLL. But I don't know how to select function and run it. Thank you, Nadav -- http://mail.python.org/mailman/listinfo/python-list

Function parameters list

2009-12-01 Thread Nadav Chernin
Hello, all I need to know dynamically parameters of any function (prototype). Is there some way to get it? Thanks, Nadav -- http://mail.python.org/mailman/listinfo/python-list

Inspect module - getargspec raise TypeError for built-in functions

2009-12-01 Thread Nadav Chernin
Hi, all When I use getargspec(func) for user-defined function, all is working OK, but using it for built-in functions raise TypeError: >>> import sys >>> getargspec(sys.getsizeof) Traceback (most recent call last): File "", line 1, in getargspec(sys.getsizeof) File "C:\Pyth

RE: Python-list Digest, Vol 75, Issue 6

2009-12-01 Thread Nadav Chernin
Nadav Chernin wrote: > When I use getargspec(func) for user-defined function, all is working > OK, but using it for built-in functions raise TypeError: That's just fine and to be expected. It's not possible to inspect a C function. Only function

Help with function prototype

2009-12-03 Thread Nadav Chernin
Hi, all In past I asked about module - inspect, that can't to get me prototype of C-implemented functions ( usually all built-in functions ). But, still I see that all Python Editors ( IDLE for example ) can to show prototype of built-in functions - by tooltip. When you print for example: s

a=[1,2,3,4].reverse() - why "a" is None?

2009-10-12 Thread Nadav Chernin
-- http://mail.python.org/mailman/listinfo/python-list

RE: a=[1,2,3,4].reverse() - why "a" is None?

2009-10-12 Thread Nadav Chernin
Chris Withers wrote: ...becauase you were looking for: reversed([1,2,3,4]) OK, but my question is generic. Why when I use object's function that changed values of the object, I can't to get value of it on the fly without writing additional code? >>> a=[1,3,2,4] >>> a.so

Is somebody used Python in LabVIEW?

2009-10-13 Thread Nadav Chernin
Hi, I use Python as scripting tool in LabVIEW. I use lvpython.dll that include only built-in modules of python. But I need to use for example also urllib that is not included in lvpython.dll. How can I use it also? Thanks, Nadav -- http://mail.python.org/mailman/listinfo/python-list

How to know locals of script without running it

2009-10-26 Thread Nadav Chernin
Hi, all Is there a way to know locals of the script without running it? Thanks, Nadav -- http://mail.python.org/mailman/listinfo/python-list

regexp help

2009-11-04 Thread Nadav Chernin
Hello all, I'm trying to write regexp that find all files that are not with next extensions: exe|dll|ocx|py, but can't find any command that make it. Please, help me Nadav -- http://mail.python.org/mailman/listinfo/python-list

RE: regexp help

2009-11-04 Thread Nadav Chernin
Thanks, but my question is how to write the regex. -Original Message- From: simon.brunn...@gmail.com [mailto:simon.brunn...@gmail.com] On Behalf Of Simon Brunning Sent: ד 04 נובמבר 2009 18:44 To: Nadav Chernin; Python List Subject: Re: regexp help 2009/11/4 Nadav Chernin : > I’m try

RE: regexp help

2009-11-04 Thread Nadav Chernin
No, I need all files except exe|dll|ocx|py -Original Message- From: simon.brunn...@gmail.com [mailto:simon.brunn...@gmail.com] On Behalf Of Simon Brunning Sent: ד 04 נובמבר 2009 19:13 To: Nadav Chernin Cc: Python List Subject: Re: regexp help 2009/11/4 Nadav Chernin : > Thanks, but

Help with pprint

2009-11-25 Thread Nadav Chernin
Hello, I want to print list of lists in matrix format. So I use pprint with parameter 'width' for this target. For example : >>> data=[[1, 1, 1], [1, 1, 1], [1, 1, 1]] >>> pprint(data,width=20) [[1, 1, 1], [1, 1, 1], [1, 1, 1]] The problem that I don't know how to select width value

running Python code from external application

2011-02-22 Thread Nadav Chernin
Hello, I need to run Python code from external application. In this external application i have 2 options to run: DLL or COM. Can i create dll or com from the Python code? Or how can i use Python27.dll to call the script and get returned values? Thanks -- http://mail.python.org/mailman/listin

VT100 in Python

2009-09-14 Thread Nadav Chernin
Hi, everybody I'm writing program that read data from some instrument trough RS232. This instrument send data in VT100 format. I need only to extract the text without all other characters that describe how to represent data on the screen. Is there some library in python for converting VT100 str

Module inspection by name

2009-09-22 Thread Nadav Chernin
Hi all, a have easy question for python developers. Assume I have list of all objects: obj=dir() Now I want to know which object from "obj" list is module. I searched some method in module inspection, but there is not any method that get 'string' as parameters Any reply will be