Re: favourite editor

2007-02-12 Thread Stef Mientki
that such problems will be resolved when I release the remote debugging facility, which should happen quite soon. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Question

2007-02-12 Thread Stef Mientki
Bjoern Schliessmann wrote: Stef Mientki wrote: - in Delphi the GUI design itself is done in a graphical environment, making it much easier and faster RAD possible with Python, too. - auto-scaling of components on a form is very easy (so if the user changes form size ..) Just

Re: favourite editor

2007-02-11 Thread Stef Mientki
, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: pycallgraph 0.2.0

2007-02-10 Thread Stef Mientki
: - is there a way to limit the number of nodes ? - pycallgraph. nodes are non-information (maybe you can find another way to place your signature ;-) - how do I exclude modules/files/objects (sorry I'm still a newbie in Python) cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Question

2007-02-09 Thread Stef Mientki
will explain the rest Delphi is a (dying) proprietary, MS-Windows-only[1] software relying on a low-level language. Well it may be dying, but for the moment it beats Python with a factor of 10, when it comes to user (the majority of PC users) friendly GUI ;-) cheers Stef Mientki -- http

Re: pycallgraph 0.1.0

2007-02-09 Thread Stef Mientki
Gerald Kaszuba wrote: Hi I've just released the first version of Python Call Graph. I haven't tested it too much so don't expect it not to crash :) An example of its output is: http://pycallgraph.slowchop.com/files/examples/mongballs-client.png It's easy to use... you just need

Re: Best Free and Open Source Python IDE

2007-02-09 Thread Stef Mientki
, a simple 2 dimensional array of features would become too large ;-) Maybe a first split would be the required OS ? Next split could be editor-features and IDE features ? just some thoughts, of a some months old newbie, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editor

2007-02-07 Thread Stef Mientki
[EMAIL PROTECTED] wrote: On Feb 6, 11:01 pm, Stef Mientki [EMAIL PROTECTED] wrote: BBands wrote: No, no, no, this is not an invitation to the editor wars. I have been using José Cláudio Faria's superb Tinn-R,http://www.sciviews.org/Tinn-R/, with the R language,http://www.r-project.org

Re: Python editor

2007-02-07 Thread Stef Mientki
limodou wrote: Maybe you can try ulipad. thanks, although it doesn't look bad, and it certainly must have been a huge job doing this with Tcl/Tk, I don't think it can compete with PyScripter, except on Linux ;-) succes, cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python

Re: electronics and python

2007-02-06 Thread Stef Mientki
coupling - the most promising combination is Python+Modelica, some seem to have it workin - and there's another one, can't remember as an exercise I tried to build a PIC simulator, works, but it is slow. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editor

2007-02-06 Thread Stef Mientki
these features and much more. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling J from Python

2007-02-05 Thread Stef Mientki
don't see any advantage. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHONPATH or any other way to set seachpath (winXP) ?

2007-02-04 Thread Stef Mientki
invisible to me ;-) cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHONPATH or any other way to set seachpath (winXP) ?

2007-02-04 Thread Stef Mientki
Jussi Salmela wrote: Stef Mientki kirjoitti: Is it possible to change the searchpath for modules on the flight, under winXP ? What do you mean by *on the flight*: inside IDLE? using the command line? No, I run Python, embedded from within a Delphi program. Most preferred is some command

Re: PYTHONPATH or any other way to set seachpath (winXP) ?

2007-02-04 Thread Stef Mientki
from the Delphi interface, both Idle and PyScripter reflect a change PYTHONPATH after a restart. But my Delphi program needs a reboot :-( I'll ask around in the Python4Delphi newsgroup. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Subscribing to topics?

2007-02-04 Thread Stef Mientki
/index.htm It has one major disadvantage for newbies, if a message without the proper tag arrives, it is blocked and can be manual added to the list by the moderator. cheers, (and sorry for all the stupid newbie posts, which probably is not of your interest ;-) Stef Mientki -- http

Re: PYTHONPATH or any other way to set seachpath (winXP) ?

2007-02-04 Thread Stef Mientki
Just a note, If you run the module from different location, it may not always work. The '..' is relative to the location you are running the module from, the current directory, and not relative to the location of the module is at. thanks for the tip Ron, I didn't realized .. was literal

PYTHONPATH or any other way to set seachpath (winXP) ?

2007-02-03 Thread Stef Mientki
Is it possible to change the searchpath for modules on the flight, under winXP ? Most preferred is some command to extend the searchpath. (the environment variable PYTHONPATH needs a reboot) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

how to free an object/var ?

2007-01-30 Thread Stef Mientki
If I create a large array of data or class, how do I destroy it (when not needed anymore) ? Assign it to an empty list ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to free an object/var ?

2007-01-30 Thread Stef Mientki
James Stroud wrote: Stef Mientki wrote: If I create a large array of data or class, how do I destroy it (when not needed anymore) ? Assign it to an empty list ? thanks, Stef Mientki It will be gc'd when you leave the scope or you can call del() to explicitly get rid of the object

howto redirect and extend help content ?

2007-01-28 Thread Stef Mientki
The M-point triangular window. == old help text Is that possible ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: howto redirect and extend help content ?

2007-01-28 Thread Stef Mientki
a system (based on Python) for which no knowledge of Python is needed. When they put the cursor on the name of a function (in some pre-processing language, preferably something like LabView), the help text will be shown automatically in a separate window, without typing any commands. cheers, Stef

Re: working model of a microcoded computer

2007-01-28 Thread Stef Mientki
of complex circuits, can do without such a simulation :-( But still I see a good practical use of it, for educational and debugging purposes, if you would implement one of those small micro-controllers (e.g. PIC). succes, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: best package for a physical simulation?

2007-01-23 Thread Stef Mientki
don't know if there's already something touchable ;-) cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

(newbie) new version install (winXP) ?

2007-01-22 Thread Stef Mientki
only the higher version of a certain package ? Is that done by simply copying them ? Should I make a backup (of what) ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Windows Editors

2007-01-22 Thread Stef Mientki
Any text editor is only as good as the programmer who uses it. ;) Yes but an IDE is different ;-) cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Windows Editors

2007-01-22 Thread Stef Mientki
Jarek Zgoda wrote: Stef Mientki napisał(a): Any text editor is only as good as the programmer who uses it. ;) Yes but an IDE is different ;-) Would it make me better Fortran programmer? ;) I can't judge for you, ... ... maybe you are already at the top ;-) I can only speak for myself

Re: Python Windows Editors

2007-01-21 Thread Stef Mientki
in direct proportion to its value. there a too many (good) IDE's for Python ;-) maybe we should give them a ranking, I tried 2 of them, and only was stable enough: PyScripter http://mmm-experts.com/Products.aspx?ProductID=4 cheers, Stef Mientki -- http://mail.python.org

Re: Anyone has a nice view_var procedure ?

2007-01-18 Thread Stef Mientki
thanks Gabriel str(key)[7:-2] = key.__name__ I didn't know that one Nice to see you built a useful tool! It's a great way to learn a language. Yes, and this group is helping me a whole lot, thanks ! cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Would a Dutch speaker please check this wiki page please?

2007-01-17 Thread Stef Mientki
to setup a wiki, but that's too soon to give it a judgement. cheers, Stef Mientki Thx, Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Anyone has a nice view_var procedure ?

2007-01-17 Thread Stef Mientki
]) print line cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Anyone has a nice view_var procedure ?

2007-01-16 Thread Stef Mientki
Adam wrote: Stef Mientki wrote: hello, Is there some handy/ nice manner to view the properties of some variable ? As a newbie, I often want to see want all the properties of a var, and also some corner values (large arrays) etc. Probably it's not so difficult, but I don't see how

Anyone has a nice view_var procedure ?

2007-01-15 Thread Stef Mientki
and an array. An array has a shape, a string not etc. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Portable Python - free portable development environment !

2007-01-13 Thread Stef Mientki
and something like Enthought edition will be there :) with even more packages and options :) at least that is my goal for the future :) But I must say I will also always be carefull with size of the distro :) thats also important right? :) Coming from MatLab, that's not the most important

Re: Portable Python - free portable development environment !

2007-01-12 Thread Stef Mientki
the Enthought-edition ? cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: globals accros modules

2007-01-11 Thread Stef Mientki
And tell them about all beautiful things in Python, but tell them that they are going to loose all their globals ??? It's a feature. Globals are definitively a BadThing(tm). cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: globals accros modules

2007-01-11 Thread Stef Mientki
Ugly_MatLab_Globals.py global var1 global var2 /file Ugly_MatLab_Globals.py all other py-files in the project import Ugly_MatLab_Globals def some_function(): import Ugly_MatLab_Globals /all other files in the project (btw who owns the BadThing tm ;-) cheers, Stef Mientki -- http://mail.python.org/mailman

Re: Need better run/edit method. I have to restart the shell after every script change.

2007-01-11 Thread Stef Mientki
? cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: globals accros modules

2007-01-11 Thread Stef Mientki
Bruno Desthuilliers wrote: Stef Mientki a écrit : Bruno Desthuilliers wrote: stef a écrit : (snip) You can explain your collegaes, that - the startindex of arrays changes from 1 to 0 - slices are upto, instead of including the final border - indention is thé key And tell them about all

Re: (newbie) Is there a way to prevent name redundancy in OOP ?

2007-01-06 Thread Stef Mientki
Steven Bethard wrote: Stef Mientki wrote: Not sure I wrote the subject line correct, but the examples might explain if not clear [snip] class pin2: def __init__ (self, naam): self.Name = naam aap2 = pin2('aap2') # seems completely redundant to me. print aap2.Name You can

howto overload with a NOP (empty statement)

2007-01-06 Thread Stef Mientki
with an empty statement. I could write a nonsense dummy statement, like A= 3, but isn't there another way ? thanks, Stef Mientki class device: def execute (self): print 'execute not yet implemented for', self.Name class Power_Supply (device): def execute (self): ; -- http

still struggling, howto use a list-element as a name ?

2007-01-06 Thread Stef Mientki
In the example below, pin is an object with a number of properties. Now I want 1- an easy way to create objects that contains a number of these pin 2- an multiple way to access these pin, i.e. device.pin[some_index] device.some_logical_name ad 1: a dictionary (as pinlist in the

Re: still struggling, howto use a list-element as a name ?

2007-01-06 Thread Stef Mientki
class Power_Supply(device): pinlist = { 0: ('GND', _DIG_OUT, _par2), 1: ('VCC', _DIG_OUT, _par33) } I may be confused about what you're after, but wouldn't something like this work? (I don't know what a _par2 object is; I've named it something here.)

Re: still struggling, howto use a list-element as a name ?

2007-01-06 Thread Stef Mientki
Jussi Salmela wrote: Bruno Desthuilliers kirjoitti: Stef Mientki a écrit : In the example below, pin is an object with a number of properties. Now I want 1- an easy way to create objects that contains a number of these pin 2- an multiple way to access these pin, i.e. device.pin

Re: still struggling, howto use a list-element as a name ? Sory, hit send button to early

2007-01-06 Thread Stef Mientki
Stef Mientki wrote: Jussi Salmela wrote: Bruno Desthuilliers kirjoitti: Stef Mientki a écrit : In the example below, pin is an object with a number of properties. Now I want 1- an easy way to create objects that contains a number of these pin 2- an multiple way to access these pin, i.e

(newbie) Is there a way to prevent name redundancy in OOP ?

2007-01-05 Thread Stef Mientki
= pin2('aap2') # seems completely redundant to me. print aap2.Name print 'aap2' Can this be achieved without redundancy ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

function without brackets ?

2007-01-03 Thread Stef Mientki
If I call a parameterless function without brackets at the end, the function is not performed, but ... I don't get an error message ??? Is this normal behavior ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: function without brackets ?

2007-01-03 Thread Stef Mientki
Hope this helps, thanks You all guys, It's perfectly clear to me now ! cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: list/dictionary as case statement ?

2007-01-03 Thread Stef Mientki
thanks again, for all your fast and very adequate responses !! cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Difference between __init__ (again) and nothing ...

2007-01-02 Thread Stef Mientki
What's the difference between using __init__ and using nothing, as the examples below. Python-1 class cpu: PC = 4 Python-2 class cpu: def __init__: self.PC = 4 thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Difference between __init__ (again) and nothing ...

2007-01-02 Thread Stef Mientki
Marc 'BlackJack' Rintsch wrote: In [EMAIL PROTECTED], Stef Mientki wrote: What's the difference between using __init__ and using nothing, as the examples below. class cpu: PC = 4 This is a *class attribute*. It's the same for all instances of `cpu`. class cpu: def __init__

list/dictionary as case statement ?

2007-01-02 Thread Stef Mientki
: ('MOV', function1, ...), 2: ('ADD', function2, ), 3: ('MUL', class3.function3, ) } def function1 # do something complex Is this possible ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: list/dictionary as case statement ?

2007-01-02 Thread Stef Mientki
that out. Thanks Gary and Grant, this principle really works like a charm. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
an unwanted issue in software. But in the meanwhile I've reading further and I should replace that by some other great things: - the very efficient way, comment is turned into help information - the (at first sight) very easy, but yet quit powerfull OOPs implemetation. cheers, Stef Mientki -- http

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
I'm not sure about SciPy, Yes SciPy allows it too ! but lists in standard Python allow this: array = [1, 2, 3, 4] array[2:5] [3, 4] That's generally a good thing. You're not perhaps by origin an analog engineer ;-) cheers, Stef Mientki -- http://mail.python.org/mailman

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
Mathias Panzenboeck wrote: A other great thing: With rpy you have R bindings for python. forgive my ignorance, what's R, rpy ? Or is only relevant for Linux users ? cheers Stef So you have the power of R and the easy syntax and big standard lib of python! :) --

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
Doran, Harold wrote: R is the open-source implementation of the S language developed at Bell laboratories. It is a statistical programming language that is becoming the de facto standard among statisticians. Thanks for the information I always thought that SPSS or SAS where thé standards. Stef

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
I think of SAS and R as being like airliners and helicopters -- I like that comparison,... .. Airplanes are inherent stable, .. Helicopters are inherent not-stable ;-) cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

probably a stupid question: MatLab equivalent of diff ?

2006-12-29 Thread Stef Mientki
) input, it also detects rising edges. Probably a stupid question, but I still have troubles, digging to huge amount of information about Python. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Wow, Python much faster than MatLab

2006-12-29 Thread Stef Mientki
functions available, like a simple mean - reducing datatype if it's allowed (booleans of 1 byte) thanks for all your help, probably need some more in the future, cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: persistant gloabl vars (very newbie) ?

2006-12-28 Thread Stef Mientki
Erik Johnson wrote: but it's still not quit handy # initialization file (init1.py) import time; xx = 44 # main file was print xx x=time.time() # main file should become print init1.xx x=init1.time.time() so even for the standard functions like time I've to include the preceeding

How to return a simple variable from a function (still newbie) ?

2006-12-28 Thread Stef Mientki
I want to return a simple variable from a function, not using the function result. Is that in any way possible ?? The code below is from O'Reilly, Learning Python, and there seems no way to return a simple var like z in the example below. Is that true ? thanks, Stef Mientki Python def

Re: How to return a simple variable from a function (still newbie) ?

2006-12-28 Thread Stef Mientki
Carsten Haese wrote: On Thu, 2006-12-28 at 15:28 +, Paul Hummer wrote: You'd have to either pass the variables by reference into the function, [...] In Python, all function calls are call by reference. Period. The key difference between Python and other programming languages is in the

Re: How to return a simple variable from a function (still newbie) ?

2006-12-28 Thread Stef Mientki
, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

persistant gloabl vars (very newbie) ?

2006-12-27 Thread Stef Mientki
very clumsy to run line by line in the command line interpreter. Is there a way to run the initialization code from a script(file) once, to achieve the same effect ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: persistant gloabl vars (very newbie) ?

2006-12-27 Thread Stef Mientki
# initialization file (init1.py) import time; xx = 44 # main file was print xx x=time.time() # main file should become print init1.xx x=init1.time.time() so even for the standard functions like time I've to include the preceeding module init1 :-( cheers, Stef Mientki -- http://mail.python.org/mailman

Re: regular expression

2006-12-24 Thread Stef Mientki
expressions are easy to write, but can be almost impossible to read back ! I once had a program to generate and evaluate regular expressions, but can't find it anymore :-( If someone has links to regex generators/evaluators, I'ld be much obliged. cheers. Stef Mientki -- http://mail.python.org

Re: file/directory format/size help

2006-12-24 Thread Stef Mientki
#1 What type of file is the file? Is it a movie, image, or text document? In the Windows world, one simply looks at the file extension (e.g. .gif, .avi, .txt, etc.) and hopes that it is correct. or simply use TRID: http://mark0.net/soft-trid-e.html Stef Mientki -- http://mail.python.org

<    2   3   4   5   6   7