Re: __getattr__ and recursion ?

2008-05-01 Thread Stef Mientki
thanks Peter, for your perfect explanation, and By the way, looping over a dictionary destroys its key advantage, O(1) lookup. Use # untested if attr in self.extra_setters: self.extra_setters[attr](value) else: self.__dict__[attr] = value and something similar in __getattr__().

__getattr__ and recursion ?

2008-04-29 Thread Stef Mientki
with == 1 I'm not allowed to use for item in self.extra_getters : because it will result in an infinite recursion. But in the line indicated with == 2 , I am allowed ... ... why is this allowed ?? thanks, Stef Mientki

class or class-instance ?

2008-04-28 Thread Stef Mientki
an instance of that class else do nothing now I should be able to call the above procedure in either of the following ways: somefunction ( someclass ) or somefunction ( someclass () ) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: class or class-instance ?

2008-04-28 Thread Stef Mientki
There is a isclass in the module inspect. Diez thanks Diez, that's exactly what I was looking for. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: Python script to automate use of Google Translate? (or other translator)

2008-04-23 Thread Stef Mientki
Trent Nelson wrote: I have the need to occasionally translate a single word programatically. Would anyone have a Python script that would let me do this using Google (or another) translation service? As a matter of fact, yes, I do! This happens to be my most favourite piece of Python

Re: [SciPy-user] ANN: EPD - Enthought Python Distribution released

2008-04-22 Thread Stef Mientki
packages, but 8 of the 10 other packages are already in ETS ??? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

Re: Frame work for simple physics web applications

2008-04-19 Thread Stef Mientki
Rick Muller wrote: On Apr 19, 2:44 pm, globalrev [EMAIL PROTECTED] wrote: www.vpython.orgmight be what you are looking for. Except, if I'm not mistaken, vpython isn't a web framework. It would work if I wanted to write some python scripts and have other people run them, but I want

Re: How is GUI programming in Python?

2008-04-11 Thread Stef Mientki
Rune Strand wrote: On Apr 10, 3:54 am, Chris Stewart [EMAIL PROTECTED] wrote: ... Next, what would you say is the best framework I should look into? I'm curious to hear opinions on that. GUI-programming in Python is a neanderthal experience. What one may love with console scripts

Re: win-shortcuts, file associates and command-line parameters ?

2008-04-11 Thread Stef Mientki
Gabriel Genellina wrote: En Thu, 10 Apr 2008 16:03:28 -0300, Stef Mientki [EMAIL PROTECTED] escribió: under windows I tried to make a shortcut to a py -file, to run a program. So making a shortcut like this works perfect: D:\PyLab_Works.py But the problem is that I need to give

win-shortcuts, file associates and command-line parameters ?

2008-04-10 Thread Stef Mientki
the commandline parameters correctly, without explicitly specifying the python interpreter ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Python in High School

2008-04-03 Thread Stef Mientki
, but the second issue certainly is not. I'm right now working on a Labview like editor in Python, which does obey the demand for flatness of information. The first results can be seen here:http://oase.uci.kun.nl/~mientki/data_www/pylab_works/pw_animations_sc... cheers, Stef Mientki

Re: displaying execution of Python code

2008-04-03 Thread Stef Mientki
noahwatkins wrote: I'll start my question by describing my desired result. I will construct a GUI which will be used to open a Python script. I would then like to be able to display the Python script, execute it, and highlight the lines of the Python as they are executing. More technically,

Re: Python in High School

2008-04-02 Thread Stef Mientki
://oase.uci.kun.nl/~mientki/data_www/pylab_works/pw_animations_screenshots.html cheers, Stef Mientki And you are going to teach them Java? Oh, please don't. Let the colleges torture them. :=) -- http://mail.python.org/mailman/listinfo/python-list

class or inherited list ?

2008-03-28 Thread Stef Mientki
brackets and no quotes. What are others opinion about this ? thanks, Stef Mientki class super_list(list): pass def kwadraat ( value ) : return value * value x={} x['frequency']=33 x['functie']=kwadraat print x['functie'](2) y = super_list() y.frequency = 33 y.functie = kwadraat print

Re: class or inherited list ?

2008-03-28 Thread Stef Mientki
thanks Gabriel, Gabriel Genellina wrote: En Fri, 28 Mar 2008 12:15:45 -0300, Stef Mientki [EMAIL PROTECTED] escribió: Passing all kinds of data between objects, I'm looking for an elegant (and simple) way to pack the data. Now it looks to me that both the class and the inherited list

Re: class or inherited list ?

2008-03-28 Thread Stef Mientki
as well inherit from object. Good point, didn't notice that. Sorry, not a good point, by deriving from a list, I get all the list methods for nothing. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Class or dictionary ? (was: class or inherited list ?)

2008-03-28 Thread Stef Mientki
Sorry, although the code example was correct, the question was wrong. Stef Mientki Stef Mientki wrote: hello, Passing all kinds of data between objects, I'm looking for an elegant (and simple) way to pack the data. Now it looks to me that both the class and the inherited list, performs

Re: wxFormBuilder

2008-03-20 Thread Stef Mientki
sturlamolden wrote: I just discovered wxFormBuilder. After having tried several GUI builders for wx (including DialogBlocks, wxGlade, XRCed, Boa constructor), this is the first one I can actually use. To use it wxFormBuilder with wxPython, I generated an xrc resource and loaded it with

Is this valid ?

2008-03-19 Thread Stef Mientki
hello, by accident I typed a double value test, and to my surprise it seems to work. Is this valid ? a = 2 b = 2 a == b == 2 thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to pass the workspace ?

2008-03-14 Thread Stef Mientki
Thanks, Gary and Dennis, Dennis Lee Bieber wrote: On Thu, 13 Mar 2008 21:35:42 +0100, Stef Mientki [EMAIL PROTECTED] declaimed the following in comp.lang.python: The result of globals and locals in the file is eaxctly the same and none of them mentions 'NewVar' and 'beer' The result

Re: how to pass the workspace ?

2008-03-13 Thread Stef Mientki
Gary Herron wrote: Stef Mientki wrote: hello, I've GUI tree with drag and drop nodes, where each nodes contains a code snippet. Now I want to run one or more branches in that tree, so I enumerate over the nodes and have to run something like this: execfile ( node1 ) execfile ( node2

Re: wxPython/wxWidgets ok for production use ? (was Re: Quality assurance in Python projects containing C modules)

2008-03-11 Thread Stef Mientki
Gilles Ganault wrote: On Mon, 10 Mar 2008 11:27:06 -0400, Malcolm Greene [EMAIL PROTECTED] wrote: Any suggestions on an alternative Python client-side GUI library (pyQT ?) or tips on where I can find out more about wxPython/wxWidget problems? One thing that bothers me is that it seems like

how to pass the workspace ?

2008-03-11 Thread Stef Mientki
in node1, to node 2, etc ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython/wxWidgets ok for production use ?

2008-03-10 Thread Stef Mientki
Stefan Behnel wrote: Malcolm Greene wrote: My personal experience with wxPython has its ups and downs. Specifically when it comes to crashes, I wouldn't bet my life on it. I'm new to Python and getting ready to build a small client based application intended to run on Windows and

Re: wxPython: some help with DragDrop

2008-03-10 Thread Stef Mientki
Eric von Horst wrote: Hi, I need some advice on DragDrop. What I want to achieve is the following: - I have a window that is divided in two : on the left hand I have a wx.TreeCtlr and on the other hand a wx.StaticBitmap I want to be able to drag an item from the tree onto the

invert or not ?

2008-03-01 Thread Stef Mientki
hello, from the manual I read that a bitwise inversion should be done by invert. But from some experiments I see that not works equally well. Is this coincidence ? (The disadvantage of invert is that I've to import operators) thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for open source simulink clone in python

2008-02-24 Thread Stef Mientki
[EMAIL PROTECTED] wrote: Does anyone know of something like this? I've searched to no avail. GNUradio companion is promising but tied to gnuradio. not exactly, this is what I've found until now * Orange http://magix.fri.uni-lj.si/orange/screenshots.asp * Elefant

Any experience with Python on a PDA ?

2008-02-22 Thread Stef Mientki
hello, I wonder if anyone has (good ;-) experiences with Python on a PDA ? And if so, - what OS - what GUI thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: pyinstall and matplotlib

2008-02-19 Thread Stef Mientki
Traceback (most recent call last): File multicolor.py, line 11, in ? File pylab.pyc, line 1, in ? File matplotlib\pylab.pyc, line 222, in ? File matplotlib\backends\__init__.pyc, line 24, in pylab_setup File matplotlib\backends\backend_tkagg.pyc, line 7, in ? ImportError: No

Re: pyinstall and matplotlib

2008-02-17 Thread Stef Mientki
hi John, John Henry wrote: Anybody willing to help? I struggled the past few days with the same problem, and with the help of Werner Bruhin (wxPython list) I found a solution. I had 2 problems: - not finding mpl datapath - matplotlib insisted on installing backends that were distorted on

Re: SAGE for FPGA development

2008-02-14 Thread Stef Mientki
Blubaugh, David A. wrote: Bill, Let me first say that my FPGA experiences are of the following nature: 1.) Developed control algorithms onto a FPGA that were utilized to control a switch-reluctance motor (three-phase as well six-phase). 2.) I am currently in the process of developing

Re: SAGE for FPGA development

2008-02-14 Thread Stef Mientki
! But to be honest, I don't like LabView very much and would love to see an open source alternative ! succes, cheers, Stef Mientki David Blubaugh -Original Message- From: Stef Mientki [mailto:[EMAIL PROTECTED] Sent: Thursday, February 14, 2008 1:25 PM To: python-list

(websearch) script ?

2008-02-04 Thread Stef Mientki
of standard scripts on the web ? Just curious. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Does anyone else use this little idiom?

2008-02-03 Thread Stef Mientki
be careful, _ is thé translation function used in Il8N, Il10N localization / internationalization e.g. print _( hello ) cheers, Stef [EMAIL PROTECTED] wrote: Ruby has a neat little convenience when writing loops where you don't care about the loop index: you just do n.times do { ... some

Re: Will Python on day replace MATLAB?????????????????????????????????????????????????????

2008-02-01 Thread Stef Mientki
Blubaugh, David A. wrote: To All, I have been evaluating the python environment ever more closer. I believe I can interface python with a development environment known as the ImpulseC environment. The ImpulseC environment develops C to VHDL for FPGA development. I would especially

Re: get the size of a dynamically changing file fast ?

2008-01-24 Thread Stef Mientki
Gabriel Genellina wrote: En Wed, 23 Jan 2008 16:16:58 -0200, Stef Mientki [EMAIL PROTECTED] escribió: Yes, that's a small disadavantage of using a high-level language, where there's no flush available, and you assume it'll done automatically ;-) Uhm, there is a flush method for Python's

Re: A GUI framework for running simulations

2008-01-23 Thread Stef Mientki
, see some demos here (watch the demo at the bottom first): http://oase.uci.kun.nl/~mientki/data_www/pylab_works/pw_animations_screenshots.html (you can contact me offline if PyLab_Works looks interesting to you). cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: get the size of a dynamically changing file fast ?

2008-01-23 Thread Stef Mientki
and all problems are solved. cheers, Stef Mientki I almost asked if you were making sure you had flushed the data to the file...oh well. Yes, that's a small disadavantage of using a high-level language, where there's no flush available, and you assume it'll done

Re: get the size of a dynamically changing file fast ?

2008-01-22 Thread Stef Mientki
Mike Driscoll wrote: On Jan 17, 3:56 pm, Stef Mientki [EMAIL PROTECTED] wrote: hello, I've a program (not written in Python) that generates a few thousands bytes per second, these files are dumped in 2 buffers (files), at in interval time of 50 msec, the files can be read by another

Re: get the size of a dynamically changing file fast ?

2008-01-22 Thread Stef Mientki
Mike Driscoll wrote: On Jan 22, 3:35 pm, Stef Mientki [EMAIL PROTECTED] wrote: Mike Driscoll wrote: On Jan 17, 3:56 pm, Stef Mientki [EMAIL PROTECTED] wrote: hello, I've a program (not written in Python) that generates a few thousands bytes per second

Re: How to create graphs an embed them in GUI?

2008-01-17 Thread Stef Mientki
Heiko Niedermeyer wrote: Sorry for the fuzzy subject... Currently I'm writing a little programm to extract some chemical information out of a text file, and then present it in a pleasant way. The Extraction works so far, so now the presentation will be next. As I'm learning Python from

get the size of a dynamically changing file fast ?

2008-01-17 Thread Stef Mientki
behaviour, sometimes it works, and the data is collected each 50 .. 100 msec, sometimes 1 .. 1.5 seconds is needed to detect a change in filesize. I'm using python 2.4 on winXP. Is there a solution for this problem ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: getting absolute path ?

2008-01-10 Thread Stef Mientki
thanks Mike, with your links I managed to write some code that seems to work well. Still I stay surprised that these kind of functions are not available ;-) cheers, Stef [EMAIL PROTECTED] wrote: On Jan 9, 3:22 pm, Stef Mientki [EMAIL PROTECTED] wrote: hello, I'm trying to convert

getting absolute path ?

2008-01-09 Thread Stef Mientki
( file, abspath ) print line but it only covers files on local disk and just 1 link per line, so I guess it's a lot of trouble to catch all cases. Isn't there a convenient function for (OS independent preferable) ? Googled for it, but can't find it. thanks, Stef Mientki -- http

Some specific exec behavior ?

2008-01-01 Thread Stef Mientki
this works correct: def _func (x,y): return (1- x/2 + x**5 + y**3)*exp(-x**2-y**2) 2. an emtpy line at the end also generates an exception Is this behavior correct ? where should I find information about it ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: at what complexity, a comparison fails ?

2008-01-01 Thread Stef Mientki
Robert Kern wrote: Stef Mientki wrote: hello, I had a program that worked perfectly well. In this program modules were dynamically added, just by putting the file in a predefined directory. Now one of the interface mechanisms was to see if some parameter was changed in a an instance

Re: Some specific exec behavior ?

2008-01-01 Thread Stef Mientki
Gabriel Genellina wrote: En Tue, 01 Jan 2008 16:39:21 -0200, Stef Mientki [EMAIL PROTECTED] escribi�: I find 2 strange behaviors in exec-function, and I can't find anything in the documentation. (Python 2.4.3 Enthought edition) 1. A function definition may not span more than 1 line

Re: Python Trajectory Module?

2008-01-01 Thread Stef Mientki
[EMAIL PROTECTED] wrote: Greetings, I was wondering if there was a python Module/Library out there that handles some trajectory/physics stuff like moving an object along a straight path in an X,Y 2D (or 3D) plane or calculating parabolic arcs. I'd really settle for just the moving of an

at what complexity, a comparison fails ?

2007-12-31 Thread Stef Mientki
?? And in general, how complex might a list be to make a valid comparison, or what are the rules ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Python DLL in Windows Folder

2007-12-25 Thread Stef Mientki
Markus Gritsch wrote: On 25/12/2007, Tim Roberts [EMAIL PROTECTED] wrote: Ross Ridge [EMAIL PROTECTED] wrote: Chris Mellon [EMAIL PROTECTED] wrote: What the python installer is doing is the Right Thing for making the standard python dll available to third party

Re: why only an msi-installer for windows ?

2007-12-19 Thread Stef Mientki
Gabriel Genellina wrote: On 18 dic, 15:54, Stef Mientki [EMAIL PROTECTED] wrote: having a lot of trouble installing 2.5 (without affecting my stable 2.4), I wonder why there's only a msi installer for windows users ? What's your problem? I have five versions installed (2.1, 2.3, 2.4, 2.5

Re: why only an msi-installer for windows ?

2007-12-19 Thread Stef Mientki
Martin v. Löwis wrote: having a lot of trouble installing 2.5 (without affecting my stable 2.4), I wonder why there's only a msi installer for windows users ? What's your problem? I have five versions installed (2.1, 2.3, 2.4, 2.5 and svn) and they coexist peacefully. Just make sure when

Is there a simple way to parse this string ?

2007-12-19 Thread Stef Mientki
nested lists, represented by a string.) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

why only an msi-installer for windows ?

2007-12-18 Thread Stef Mientki
hello, having a lot of trouble installing 2.5 (without affecting my stable 2.4), I wonder why there's only a msi installer for windows users ? thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: is it possible to install 2 Python versions on windows XP ?

2007-12-18 Thread Stef Mientki
I finally found a way to let everything work: My base system is a stable Scipy installation, based on Python 2.4, with a few extra or updated libraries. This Python installation is completed with RPYC and PyScripter, to form a good workplace to develop GUI through wxPython. Installing of a

is it possible to install 2 Python versions on windows XP ?

2007-12-17 Thread Stef Mientki
to 2.4. Is there a safe way to install Python 2.5, without affecting the Python 2.4 version and the windows registry, on windows XP ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

how to include a tiny debug feature in my project ?

2007-12-13 Thread Stef Mientki
(The number of lines written by the user will be at most 20 lines) Is this a good approach ? If so, how can I execute each line separate ? If not, what other approach should I use ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

how to get module globals into a class ?

2007-12-09 Thread stef mientki
librray file. So I would like to move this statement to the base-class-file, but I can't figure out how to accomplish that. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Science list

2007-11-29 Thread Stef Mientki
Francesco Pietra wrote: It is true that suggestions may arrive from all directions. Nonetheless, this extremely useful list is so crowded that if checking email is not carried out every few hours, it is difficult to detect other messages in the plethora of pythons and spams arrived. What

Re: Very basic, sorting a list ???

2007-11-29 Thread Stef Mientki
Peter Decker wrote: On Nov 28, 2007 7:22 PM, stef mientki [EMAIL PROTECTED] wrote: print 'xx3',ordered_list.sort() The sort() method returns None. It sorts the list in place; it doesn't return a copy of the sorted list. Thank you all for the answers, I do understand now, although I

Re: Very basic, sorting a list ???

2007-11-29 Thread Stef Mientki
Hrvoje Niksic wrote: Stef Mientki [EMAIL PROTECTED] writes: although I find it rather non-intuitive. I didn't expect a copy, but a reference to itself wouldn't be asked too much ? If you didn't expect a copy, why rely on the return value? You could simply continue using the sorted list

Very basic, sorting a list ???

2007-11-28 Thread stef mientki
What am I doing wrong ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: why it is invalid syntax?

2007-11-22 Thread Stef Mientki
alf wrote: Hi, I wonder why it is an invalid syntax: if 1: if 1: if 1: print 1 File stdin, line 1 if 1: if 1: if 1: print 1 or if 1: for i in range(10): print i File stdin, line 1 if 1: for i in range(10): print i I would expect one could nest :

list of class initiations ?

2007-11-16 Thread stef mientki
(Shape): (self, x=20, y=20, x2=90, y2=90, type='rect' ): class Shape(ShapeEvtHandler): (self, x=[], y=[]): class ShapeEvtHandler: () within 1 file would be enough. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Scope_Plot, another plot library for real time signals.

2007-11-04 Thread Stef Mientki
description shows a more complex signal organization. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

[ANN] Scope_Plot, another plot library for real time signals.

2007-11-04 Thread Stef Mientki
description shows a more complex signal organization. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Is it possible to use a instance property as a default value ?

2007-11-01 Thread stef mientki
hello, I would like to use instance parameters as a default value, like this: class PlotCanvas(wx.Window): def __init__(self) self.Buf_rp = 0 self.Buf_wp = 0 def Draw ( self, x1 = self.Buf_rp, x2 = self.Buf_wp ) : is something like this possible ? thanks, Stef Mientki

Re: Is it possible to use a instance property as a default value ?

2007-11-01 Thread stef mientki
Chris Mellon wrote: On Nov 1, 2007 3:18 PM, stef mientki [EMAIL PROTECTED] wrote: hello, I would like to use instance parameters as a default value, like this: class PlotCanvas(wx.Window): def __init__(self) self.Buf_rp = 0 self.Buf_wp = 0 def Draw ( self, x1

how to convert tuple to a list of single values ?

2007-10-28 Thread stef mientki
names ;-) like this: dc.SetClippingRegion ( self._point2ClientCoord (p1, p2 ) ) Now that doesn't work, because - dc.SetClippingRegion() requires 4 integer parameters - _point2ClientCoord() returns a tupple of 4 integers I can't think of a solution, is there any ? thanks, Stef Mientki

Re: how to convert tuple to a list of single values ?

2007-10-28 Thread stef mientki
thanks Duncan, Matthieu and Ed (offlist), this is exactly what I was looking for. cheers, Stef Duncan Booth wrote: stef mientki [EMAIL PROTECTED] wrote: hello, The next piece of code bothers me: ptx, pty, rectWidth, rectHeight = self._point2ClientCoord (p1, p2

Re: how to iterate over sequence and non-sequence ?

2007-10-20 Thread stef mientki
Paul Hankin wrote: On Oct 19, 5:38 pm, stef mientki [EMAIL PROTECTED] wrote: ... snip hand-coded debugger I couldn't come up with a better solution ;-) Does pdb not suffice? thanks very much Paul, Never heard of that before, I looked it up, just 1 page in my book of 500 pages

Re: how to iterate over sequence and non-sequence ?

2007-10-20 Thread stef mientki
much for this and other answers. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to iterate over sequence and non-sequence ?

2007-10-20 Thread stef mientki
Steven D'Aprano wrote: On Fri, 19 Oct 2007 18:38:06 +0200, stef mientki wrote: I don't have pointers, I've just names (at least I think). Let me explain a little bit more, I want to simulate / debug a user program, the user program might look like this: x = 5 for i in xrange(10

how to iterate over sequence and non-sequence ?

2007-10-19 Thread stef mientki
1 signal. for value in signals : do something As this meant for real-time signals, I want it fast, so (I think) I can't afford extensive testing. Any smart solution there ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to iterate over sequence and non-sequence ?

2007-10-19 Thread stef mientki
Steven D'Aprano wrote: On Fri, 19 Oct 2007 16:19:32 +0200, stef wrote: Well I'm not collecting data, I'm collecting pointers to data. I beg to differ, you're collecting data. How that data is to be interpreted (a string, a number, a pointer...) is a separate issue. This

if instance exists problem ..

2007-10-17 Thread stef mientki
'wrong',type(ini) Why is that ? What should I do to the same simple test for existance ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

how to get my own namespace ?

2007-10-16 Thread stef mientki
I want to view my own namespace, i.e. to see the modules namespace in the module itself, is that possible ? I can use dir() but I read dir is just a convenience function, and besides I want key/value pairs. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get my own namespace ?

2007-10-16 Thread stef mientki
Robert Kern wrote: stef mientki wrote: I want to view my own namespace, i.e. to see the modules namespace in the module itself, is that possible ? I can use dir() but I read dir is just a convenience function, and besides I want key/value pairs. vars() will give you

why doesn't have this list a reply-to ?

2007-10-16 Thread stef mientki
and not to the individual. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

how to create a pointer, or is there a better solution ?

2007-10-13 Thread stef mientki
are complex items, no problem, I get pointers and can access them. But if these variables are simple, like integers, I get the value only once ;-) How can I create of dynamic pointers, even to simple variables ? Or is there a better way ? thanks, Stef Mientki -- http://mail.python.org/mailman

howto add a sub-directory to the searchpath / namespace ?

2007-10-10 Thread stef mientki
in the subdir1) ?? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: howto add a sub-directory to the searchpath / namespace ?

2007-10-10 Thread stef mientki
Larry Bates wrote: stef mientki wrote: hello, my program has become a bit large, and now I want to split the files over several subdirectories. So in the example shown below, I just moved the files f1.py and f2.py to a deeper subdirectory. basedirectory\ mainfile.py file1.py

Re: Howto Launch a windows application ?

2007-10-06 Thread stef mientki
I finally found out what was wrong: stef mientki wrote: hello, I'm trying to launch a windows application, but as many others on this list, I've some trouble. I read some other threads about this topic, but sorry, I still don't understand all this (never heard of pipes). When I use

Re: Howto Launch a windows application ?

2007-10-05 Thread stef mientki
Nicholas Bastin wrote: On 10/3/07, stef mientki [EMAIL PROTECTED] wrote: hello, I'm trying to launch a windows application, but as many others on this list, I've some trouble. I read some other threads about this topic, but sorry, I still don't understand all this (never heard of pipes

howto kill a windows process by name ?

2007-10-05 Thread stef mientki
hello, is there a library to kill a windows process by name ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: howto kill a windows process by name ?

2007-10-05 Thread stef mientki
Adam Pletcher wrote: Take a look at killProcName.py, in the win32 extension package. - Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of stef mientki Sent: Friday, October 05, 2007 4:40 PM To: python-list@python.org Subject

Re: Howto Launch a windows application ?

2007-10-04 Thread stef mientki
Yu-Xi Lim wrote: stef mientki wrote: cmd =[] cmd.append ( 'D:\\PIC-tools\\JALxxx\\jalv2_3.exe' ) cmd.append ( '-long-start' ) cmd.append ( '-d') cmd.append ( '-clear' ) cmd.append ( '-sD:\\PIC-tools\\JAL\\libs2' ) cmd.append ( 'd:\\pic-tools\\jal\\programs\\test_rs232

Re: Howto Launch a windows application ?

2007-10-04 Thread stef mientki
Matimus wrote: stef mientki wrote: hello, I'm trying to launch a windows application, but as many others on this list, I've some trouble. I read some other threads about this topic, but sorry, I still don't understand all this (never heard of pipes). When I use a batch file, I can

Howto Launch a windows application ?

2007-10-03 Thread stef mientki
application launched from the batchfile is run perfectly. Now when I try to run the same windows application from Popen or call, nothing happens (or at least it's very fast and produces not the expected output). Please enlighten me, preferable in windows-terminology ;-) thanks, Stef Mientki

Re: building a GUI

2007-09-23 Thread stef mientki
yadin wrote: if i were up to make a GUI chich are the advantages of choosing python over matlab or java? As MatLab has a very lousy GUI, any other language would be an advantage ;-) The best is Delphi, second is VB, then comes SciLab, Python, etc I don't know where Java fits in. But as

Re: building a GUI

2007-09-23 Thread stef mientki
Thomas Dybdahl Ahle wrote: Den Sun, 23 Sep 2007 17:28:38 +0200 skrev stef mientki: yadin wrote: if i were up to make a GUI chich are the advantages of choosing python over matlab or java? The best is Delphi, second is VB, That sounds mostly like a personal

Re: building a GUI

2007-09-23 Thread stef mientki
Diez B. Roggisch wrote: stef mientki schrieb: Thomas Dybdahl Ahle wrote: Den Sun, 23 Sep 2007 17:28:38 +0200 skrev stef mientki: yadin wrote: if i were up to make a GUI chich are the advantages of choosing python over matlab or java

Re: building a GUI

2007-09-23 Thread stef mientki
Phil Thompson wrote: On Sunday 23 September 2007, stef mientki wrote: Diez B. Roggisch wrote: stef mientki schrieb: Thomas Dybdahl Ahle wrote: Den Sun, 23 Sep 2007 17:28:38 +0200 skrev stef mientki: yadin wrote: if i were up to make

why does Configparser change names to lowercase ?

2007-09-14 Thread stef mientki
hello, Why does Configparser change names to lowercase ? As Python is case sensitive (which btw I don't like at all ;-) but now when really need the casesensitivity, because it handles about names which should be recognized by human, it changes everything to lowercase thanks, Stef Mientki

Re: newbie: self.member syntax seems /really/ annoying

2007-09-13 Thread stef mientki
. I think a general rule of (any form of) writing is to write with your audience in mind. I always do that and happily, that audience is usually naked. Wouldn't Mathematica, Maple or MathCad be a far better choice ? cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python

Re: newbie: self.member syntax seems /really/ annoying

2007-09-13 Thread stef mientki
Certainly, but again: Such main people are not the intended audience. The code is for people that know how to read these equations. I think a general rule of (any form of) writing is to write with your audience in mind. I always do that and happily, that audience is usually naked.

Re: Python syntax wart

2007-09-09 Thread stef mientki
a contradiction with self-documenting-names ;-) cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Modul (%) in python not like in C?

2007-09-09 Thread stef mientki
J. Cliff Dyer wrote: Dotan Cohen wrote: FIrst of all, how is the % symbol (as in 70%6=4) called in English? Second, in Turbo C -111%10=-1 however in python -111%10=9. Is one or the other in error? Is this a known gotcha? I tried to google the subject however one cannot google the symbol

Re: buggie in else syntax ?

2007-08-15 Thread stef mientki
Thomas Jollans wrote: On Tuesday 14 August 2007, stef mientki wrote: hello, I've the idea that the else syntax is not always handled correctly, or I'm overlooking something. This pieces of code are automatic translation from another language, sometimes it works, sometimes it doesn't

LEGB rule, totally confused ...

2007-08-14 Thread stef mientki
isn't assigning anything or am I missing something. Now if I remove X = X + 1 I don't get an error ??? Is this a problem of the traceback procedure or the IDE, or is Python not completely an interpreter, that reads line by line ??? Please explain this to me. thanks, Stef Mientki -- http

<    1   2   3   4   5   6   7   >