Re: getting equal behavior for scripts and modules ?

2009-10-11 Thread Stef Mientki
Stephen Hansen wrote: On Sun, Oct 11, 2009 at 10:50 AM, Stef Mientki <mailto:stef.mien...@gmail.com>> wrote: [...] In languages like Delphi, you get an error message, trying to use circular references, but solving them in large programs with a lot of history can be

Re: getting equal behavior for scripts and modules ?

2009-10-11 Thread Stef Mientki
Gabriel Genellina wrote: En Sun, 11 Oct 2009 14:50:31 -0300, Stef Mientki escribió: I do agree that circular references should preferable be avoided. In languages like Delphi, you get an error message, trying to use circular references, but solving them in large programs with a lot of

Re: organizing your scripts, with plenty of re-use

2009-10-12 Thread Stef Mientki
undant information is to perform self healing (or call it error correction), and here we have a catch-22. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: organizing your scripts, with plenty of re-use

2009-10-13 Thread Stef Mientki
e you would have to be extra careful to have every module's name be distinct, and then what's the point of having packages? Yes, I still wonder ! cheers, Stef ~Ethan~ In my humble opinion if these actions are not possible, there must be redundant information in the collection. The

Re: organizing your scripts, with plenty of re-use

2009-10-13 Thread Stef Mientki
Stephen Hansen wrote: On Mon, Oct 12, 2009 at 4:15 PM, Stef Mientki <mailto:stef.mien...@gmail.com>> wrote: Hierarchical choices are done on todays knowledge, tomorrow we might have different views and want/need to arrange things in another way. An otter may become

how to write a unicode string to a file ?

2009-10-15 Thread Stef Mientki
128) How should I write such a string to a file ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to write a unicode string to a file ?

2009-10-16 Thread Stef Mientki
Stephen Hansen wrote: On Thu, Oct 15, 2009 at 4:43 PM, Stef Mientki <mailto:stef.mien...@gmail.com>> wrote: hello, By writing the following unicode string (I hope it can be send on this mailing list) Bücken to a file fh.write ( line ) I get the

Re: how to write a unicode string to a file ?

2009-10-17 Thread Stef Mientki
Stephen Hansen wrote: although this is a very good explanation, and showing character encoding isn't that easy ;-) thanks very much ! Wasn't aware of the SQLite pragma. also thanks to the others who replied. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Unicode again ... default codec ...

2009-10-20 Thread Stef Mientki
'my_u' my_w = 'my_w' + chr ( 246 ) x = my_s + my_u The only disadvantage is that you've to put a special named file into the Python directory !! So if someone knows a more elegant way to set the default codec, I would be much obliged. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Does someone has a 5-line working example of SOAP server request ?

2009-10-26 Thread Stef Mientki
ap protocol and it's usage, I couldn't get anything working. So could someone tell me what libraries I need to perform a SOAP query ? Is there a 5-line (Dive into Python had a 4-line example ;-) that can show the SOAP query is working ? (btw I use Python 2.5 on Windows if that matters)

Re: Embedded python on systems without python installed

2009-10-27 Thread Stef Mientki
same directory as the Delphi executable, (but i you want a less clean install, you can put the dll also in the windows directory) cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedded python on systems without python installed

2009-10-27 Thread Stef Mientki
same directory as the Delphi executable, (but if you want a less clean install, you can put the dll also in the windows directory) cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: How can module determine its own path?

2009-10-30 Thread Stef Mientki
Robert Kern wrote: On 2009-10-30 12:19 PM, kj wrote: How can a module determine the path of the file that defines it? (Note that this is, in the general case, different from sys.argv[0].) __file__ but for modules launched with execfile, __file__ doesn't exists. cheers, Stef --

Re: How can module determine its own path?

2009-10-30 Thread Stef Mientki
Robert Kern wrote: On 2009-10-30 18:40 PM, Stef Mientki wrote: Robert Kern wrote: On 2009-10-30 12:19 PM, kj wrote: How can a module determine the path of the file that defines it? (Note that this is, in the general case, different from sys.argv[0].) __file__ but for modules launched with

Doesn't MS-Windows likes Python ? (or: why more than 20 sec delay when running a program from Python)

2009-11-01 Thread Stef Mientki
ot; ]) Does anyone have a clue, why starting a process takes 20 seconds longer when ran from Python ? And even more important, is there a work around ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: imputil.py, is this a bug ?

2009-11-07 Thread Stef Mientki
Gabriel Genellina wrote: En Fri, 06 Nov 2009 18:33:37 -0300, Stef Mientki escribió: I get an error compiling with pyjamas, in the standard module imputil, _import_top_module Note that imputil is undocumented in 2.5, deprecated in 2.6 and definitively gone in 3.0 AttributeError

Re: python gui builders

2009-11-18 Thread Stef Mientki
hat's simple and not so simple !! And of course I'm willing to contribute the wxPython (wrapped in some convenience procedures) for it. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: plotting arrow in python

2009-11-21 Thread Stef Mientki
a look at VPython cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: python gui builders

2009-11-25 Thread Stef Mientki
ng is Jython w/ Swing or SWT. Check it out. Instead of "*hello* world" examples, I was thinking of "*real* world" applications, something like this, http://mientki.ruhosting.nl/data_www/pylab_works/random_gui.html which in a good GUI package should be doable in about 100 lin

how to decode rtf characterset ?

2010-02-01 Thread Stef Mientki
hink I need a way to translate that into the string r"\xf3" but I can't find a way to accomplish that. a Any suggestions are very welcome. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Dreaming of new generation IDE

2010-02-03 Thread Stef Mientki
the one of beauties of Python, you don't need to know if the input parameter is a list or a string. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: Dreaming of new generation IDE

2010-02-03 Thread Stef Mientki
uct of that CAD and not a "source material" itself. > You mean something like LabView ? cheers, Stef (btw, my dreams ends up in the same needs) -- http://mail.python.org/mailman/listinfo/python-list

Re: Dreaming of new generation IDE

2010-02-03 Thread Stef Mientki
e text editor + grep. Now imagine how simple it can be if system "knows" all your identifiers and just regenerates relevant portions of text from internal database-alike representation. I think every IDE (not older than 20 years) does that already. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: Dreaming of new generation IDE

2010-02-03 Thread Stef Mientki
be possible That if several different objects have a similar named method? How will IDE "classify" calls and renames only some of calls and not others? yep, you're right, the IDE's I use have as the beste "search / select / rename". But how often do you mu

Re: ANN: obfuscate

2010-02-09 Thread Stef Mientki
o difficult, so I made my own xor-something. Coming from Delphi, a scrambling lib is working is less than 10 minutes, without the need of any knowledge of encryption. I prefer Python over Delphi, but some things are made very complex in Python. cheers, Stef Also, for example, Christian Heimes

Is there a way to continue after an exception ?

2010-02-20 Thread Stef Mientki
hello, I would like my program to continue on the next line after an uncaught exception, is that possible ? thanks Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to continue after an exception ?

2010-02-21 Thread Stef Mientki
On 21-02-2010 03:51, Ryan Kelly wrote: On Sun, 2010-02-21 at 13:17 +1100, Lie Ryan wrote: On 02/21/10 12:02, Stef Mientki wrote: On 21-02-2010 01:21, Lie Ryan wrote: On Sun, Feb 21, 2010 at 12:52 AM, Stef Mientki wrote: hello, I would like

How to transmit a crash report ?

2010-02-22 Thread Stef Mientki
now yet how), and cookies are sent parallel to the post message. On the server site I can use a small php script, that stores the post-data, cookies and/or send's a (long) email. are there better options ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: How to transmit a crash report ?

2010-02-23 Thread Stef Mientki
On 23-02-2010 15:21, Thomas wrote: On Feb 22, 9:27 pm, MRAB wrote: Stef Mientki wrote: hello, in my python desktop applications, I'ld like to implement a crash reporter. By redirecting the sys.excepthook, I can detect a crash and collect the necessary data. Now I

Re: String is ASCII or UTF-8?

2010-03-09 Thread Stef Mientki
values), tells you that it can't be ascii, AFAIK it's completely impossible. UTF-8 characters have 1 to 4 bytes / byte. I can create ASCII strings containing byte values between 127 and 255. cheers, Stef hence, must be utf-8. And since utf-8 is an extension of ascii nothing is lost

Re: String is ASCII or UTF-8?

2010-03-09 Thread Stef Mientki
On 09-03-2010 18:36, Robert Kern wrote: On 2010-03-09 11:12 AM, Stef Mientki wrote: On 09-03-2010 18:02, Alf P. Steinbach wrote: * C. Benson Manica: Hours of Googling has not helped me resolve a seemingly simple question - Given a string s, how can I tell whether it's ascii (and thus 1

Re: Visual Python programming and decompilers?

2010-03-11 Thread Stef Mientki
://mientki.ruhosting.nl/data_www/pylab_works/pw_animations_screenshots.html http://code.google.com/p/pylab-works/ and here an overview of similar packages cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is cool!!

2010-03-24 Thread Stef Mientki
http://www.sagemath.org/ cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: What was your strategy?

2010-11-14 Thread Stef Mientki
-) When you've a goal and a global scope, you can find the right tools: language (Python of course), IDE, framework, etc. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: building a web interface

2010-11-20 Thread Stef Mientki
d really appreciate > it. > > Hope my questions make sense. I don't really know what I'm doing, so > could be they're a bit silly. I apologize if that's the case, and > please let me know if you need any additional informmation. > > Thanks, > She

Re: Which non SQL Database ?

2010-12-05 Thread Stef Mientki
a look at one of the database wrappers. I use the DAL of Web2Py, the main advantages are - easy use of database (more easy than SQL) - easy migration of database structure (is done automatically) - same interface on desktop and in web applications - all major database (including SQLite and Postgres) supported and can be switched easily cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

is it possible to see if a class has a decorator ?

2010-12-06 Thread Stef Mientki
hello, I would like to know if a class definition has a decorator, is that possible ? And if so, is it possible to determine the name of these decorator(s) ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: is it possible to see if a class has a decorator ?

2010-12-06 Thread Stef Mientki
On 06-12-2010 12:08, Ben Finney wrote: > Stef Mientki writes: > >> I would like to know if a class definition has a decorator, > I'm not sure what this question means. > > Applying a decorator to a class definition produces a normal class. > > Classes don

Re: is it possible to see if a class has a decorator ?

2010-12-06 Thread Stef Mientki
On 06-12-2010 16:04, Jean-Michel Pichavant wrote: > Stef Mientki wrote: >> On 06-12-2010 12:08, Ben Finney wrote: >>> Stef Mientki writes: >>> >>> >>>> I would like to know if a class definition has a decorator, >>>> &

Re: A web site using Python

2010-12-06 Thread Stef Mientki
ite could be up within an hour. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: python-parser running Beautiful Soup needs to be reviewed

2010-12-11 Thread Stef Mientki
me up with: Text = """ This is a sample text This is the second sample text """ Content = BeautifulSoup ( Text ) print Content.find('td').contents[0].strip() >>> This is a sample text And now I wonder how to get the next contents !! cheers, Stef > greetings > matze -- http://mail.python.org/mailman/listinfo/python-list

Re: python-parser running Beautiful Soup needs to be reviewed

2010-12-12 Thread Stef Mientki
k the cause lies in the documentation. The PySide documentation is much easier to understand (at least for me) http://www.pyside.org/docs/pyside/PySide/QtWebKit/QWebElement.html cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: PyUNO [Was: Read / Write OpenOffice SpreadSheet ?]

2010-12-17 Thread Stef Mientki
<http://pypi.python.org/pypi/cloudooo/1.0.9> for instance is Python 2.6 > and uses PyUNO. > > I would strongly recommend against floundering about in OOo's very > complex XML files - it is trivially easy to render a document unusable. > looks great, but is there somet

NameError: global name 'btn_Matlab' is not defined ?

2010-12-28 Thread Stef Mientki
locals()['btn_Matlab'] > but if I try to print the button (at exactly the same location), I get an error print btn_Matlab NameError: global name 'btn_Matlab' is not defined ? Why isn't the compiler first checking the local namespace ? any clues ? thanks,

Re: NameError: global name 'btn_Matlab' is not defined ?

2010-12-29 Thread Stef Mientki
On 28-12-2010 15:15, Steven D'Aprano wrote: > On Tue, 28 Dec 2010 14:34:19 +0100, Stef Mientki wrote: > >> hello, >> >> Never seen this before and I've no explanation whatsoever (Python 2.6) >> >> I've some dynamic generated code, >> on

Re: Tkinter: The good, the bad, and the ugly!

2010-12-29 Thread Stef Mientki
mas and Web2pY will be added (PockectPyGui can probably fully be replaced by QT) cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to decide between PHP and Python

2011-01-04 Thread Stef Mientki
> As to choice between Python and PHP, I would say learn anything but PHP. > Even Perl has fewer tentacles than PHP. type this in a form field 2.2250738585072011e-308 http://www.exploringbinary.com/php-hangs-on-numeric-value-2-2250738585072011e-308/ cheers, Stef -- http://mail.pyth

SQLite server using execnet ?

2011-02-20 Thread Stef Mientki
considered to use Python execnet-module to realize a simple SLQlite client / server application. If I look at the documentation of execnet, (and I realize that I'm a great optimist) it would take between 20 and 50 lines of Python code. thanks very much for your opinions. cheers, Stef Mi

case insensitive list ?

2010-04-05 Thread Stef Mientki
hello, AFAIK there's no case insensitive list in Python. By case insentive I mean that that sort and memebr of is case insensitive. Does soeone has a implementation of sucha case insensitive list ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: case insensitive list ?

2010-04-06 Thread Stef Mientki
On 05-04-2010 19:23, Robert Kern wrote: > On 2010-04-05 12:17 PM, Stef Mientki wrote: >> hello, >> >> AFAIK there's no case insensitive list in Python. >> By case insentive I mean that that sort and memebr of is case >> insensitive. >> >> Does soe

finding objects in a piece of functional code ?

2010-04-10 Thread Stef Mientki
27;,my) 3 4 12 >>> for item in my : ... if item not in my2 : ... print item ... __builtins__ A C B But this doesn't work, if I use a not yet definied variable (like "In" in the example above). Are there better ways ? Or even better are there programs or libraries that can perfom such a translation ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Can this be done simpler ?

2010-04-19 Thread Stef Mientki
gs, should be entered without the quotes, so these strings will be defined as names Now the code below seems to fulfill these wishes (in real life, the number of dummy procedures is about 40), but I always wonder if there's an easier way to achieve the same effect. thanks, Stef Mientki d

rfind bug ?

2010-04-21 Thread Stef Mientki
With the following code, I would expect a result of 5 !! >>> a= 'word1 word2 word3' >>> a.rfind(' ',7) 11 Is this a bug ? thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: rfind bug ?

2010-04-21 Thread Stef Mientki
On 21-04-2010 10:56, Chris Rebert wrote: > On Wed, Apr 21, 2010 at 1:51 AM, Stef Mientki wrote: > >> With the following code, I would expect a result of 5 !! >> >> >>>>> a= 'word1 word2 word3' >>>>> a.rfind(' ',7)

Re: rfind bug ?

2010-04-21 Thread Stef Mientki
On 21-04-2010 12:33, Alf P. Steinbach wrote: > * Chris Rebert: >> On Wed, Apr 21, 2010 at 2:59 AM, Stef Mientki >> wrote: >>> On 21-04-2010 10:56, Chris Rebert wrote: >>>> On Wed, Apr 21, 2010 at 1:51 AM, Stef Mientki >>>> wrote: >>>

how to make a piece of code lowercase, except strings / comment ?

2010-05-06 Thread Stef Mientki
. Is there an easy way to make a piece of code lowercase, except all string items (single / double /triple quoted and comment) ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Do any debuggers support "edit and continue?"

2010-05-12 Thread Stef Mientki
breakpoint due to the interpreter throwing an error, you could fix > just the line in question and keep going, rather than having to stop > the entire program, fix the line, and then run again and potentially > kill a bunch of time getting the program back into the same "state."

Re: wxPython: How to get letter colour from TextCtrl

2010-05-17 Thread Stef Mientki
> print color > > This should display the colour value of the very first letter in the > very first line of the TextCtrl. But no matter what I try, it always > returns the value (-1, -1, -1, 255). > > Any help? > AFAIK, TextAttributes are just onw way, you can set them,

Ugly modification of a class, can it be done better ?

2010-05-20 Thread Stef Mientki
ng a global variable (Base_Grid_Double_Click) in the module, initial set to None, but can be changed by the main program to some callback function. (see the code below) Is this a valid construction ( sorry I'm not a programmer), or are there better ways to accomplish similar dynamic behavio

Re: Ugly modification of a class, can it be done better ?

2010-05-26 Thread Stef Mientki
On 21-05-2010 03:27, Steven D'Aprano wrote: > Sorry for breaking threading, but Stef's original post has not come > through to me. > > >> On Thu, May 20, 2010 at 8:13 PM, Stef Mientki >> wrote: >> > >>> So I want to change the be

Re: GUIs - A Modest Proposal

2010-06-06 Thread Stef Mientki
Aren't all programms going webbased in the near future ? And if so, wouldn't it be better to hook to GWT or something like that (I can't oversee all the conesquences)? cheers, Stef Mientki On 06-06-2010 04:22, ant wrote: > I get the strong feeling that nobody is really happy

Re: Will and Abe's "Guide to Pyjamas"

2010-06-15 Thread Stef Mientki
rspective > of four-year-olds: > > http://pyjs.org/will_and_abe_guide_to_pyjamas.html > > l. > and how does this fit in ? http://pyxpcomext.mozdev.org/samples.html cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Hwy doesn't len(None) return zero ?

2010-06-30 Thread Stef Mientki
prevent exceptions, i've to write ( I often forget) if Result and ( len ( Result ) > 1 ) : So I wonder why len is not allowed on None and if there are objections to extend the len function . thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Hwy doesn't len(None) return zero ?

2010-06-30 Thread Stef Mientki
On 30-06-2010 20:56, Gary Herron wrote: > On 06/30/2010 11:39 AM, Stef Mientki wrote: >> hello, >> >> I've lot of functions that returns their result in some kind of tuple / list >> / array, >> and if there is no result, these functions return None. >>

Re: Anyone using GPG or PGP encryption/signatures in your Python apps?

2010-07-02 Thread Stef Mientki
per proposed for inclusion in the stdlib. Great Geremy !, but it's difficult to find, and I couldn't find any documentation. Did I not look at the right places ? thanks Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Opinions please -- how big should a single module grow?

2010-07-09 Thread Stef Mientki
to split a module in 2 parts, part 1 : everything that would normally accessible from the outside part 2 : everything that is only used inside the module I think in this way a user of the module (that doesn't know the module yet) has a far more easier entrance. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

does someone has a binary 32-bit windows installer for arac ?

2010-08-16 Thread Stef Mientki
thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Save/load like matlab?

2010-08-23 Thread Stef Mientki
d multiple >> processing steps. Each time I find a bug, I have to run the whole thing >> again, which is time consuming. > Perhaps pickle is the thing you are looking for? > > http://docs.python.org/library/pickle.html or even cpickle which is lot faster cheers, Stef > HTH,

pyc-files contains absolute paths, is this a bug ?

2009-06-07 Thread Stef Mientki
where I like, and it runs fine. Now when I've run it once, I move the subdirectory to another location, at it doesn't run. Looking with a hex editor into some pyc-files, I see absolute paths to the old directory. Is this normal, or am I doing something completely wrong ? thanks, St

Re: Wrapping LabVIEW and DAQmx Libraries for Python

2009-06-08 Thread Stef Mientki
your code, but couldn't find any continous sampling routines. Are you plan to create them ? cheers, Stef xkenneth wrote: All, I've started wrapping the DAQmx and other LabVIEW libraries for python using ctypes. I really like doing some things in python and other in LabVIEW, s

zipfile doesn't compress very good, are there other solutions ?

2009-06-11 Thread Stef Mientki
( the documentation isn't overwhelming). thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: zipfile doesn't compress very good, are there other solutions ?

2009-06-11 Thread Stef Mientki
Peter Otten wrote: Stef Mientki wrote: I packed all sources with zipfile, but the compression doesn't seem to be very good. If you don't specify the compression, the files are not compressed at all. Just in case you didn't know... .. and would you be willing t

Re: zipfile doesn't compress very good, are there other solutions?

2009-06-11 Thread Stef Mientki
Peter Otten wrote: Stef Mientki wrote: Peter Otten wrote: Stef Mientki wrote: I packed all sources with zipfile, but the compression doesn't seem to be very good. If you don't specify the compression, the files are not compressed at all. Just i

Re: Tool for browsing python code

2009-06-16 Thread Stef Mientki
Lucas P Melo wrote: Is there any tool for browsing python code? (I'm having a hard time trying to figure this out) Anything like cscope with vim would be great. maybe a good IDE like PyScripter would do ? cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: simple GUI for my application?

2009-06-16 Thread Stef Mientki
o specifie the default folder, etc. Basically I will use a lot of edit boxes and some tabs, and a folder tree, any tips so I can search in the right place? mayby this will do: http://mientki.ruhosting.nl/data_www/pylab_works/pw_gui_support.html cheers, Stef -- http://mail.python.org/mailman/listi

[ANN] first full alpha release of PyLab_Works v0.3

2009-06-16 Thread Stef Mientki
*, wxPython. Although the PyLab_Works programs are compiled with Py2Exe, all the source files are explicitly included. have fun, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: first full alpha release of PyLab_Works v0.3

2009-06-17 Thread Stef Mientki
ar with Windows Vista, but this would be the trick in Windows XP. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: What does Guido want in a GUI toolkit for Python?

2009-06-28 Thread Stef Mientki
uess, 'm on the right way with GUI_support http://mientki.ruhosting.nl/data_www/pylab_works/pw_gui_support.html What are the other rules ? cheers, Stef Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Adding an object to the global namespace through " f_globals" is that allowed ?

2009-07-01 Thread Stef Mientki
de effects, other than overruling a possible object with the name A def some_function ( ...) : A = object ( ...) sys._getframe(1).f_globals [ Name ] = A thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Adding an object to the global namespace through " f_globals" is that allowed ?

2009-07-03 Thread Stef Mientki
bject ( ...) sys._getframe(1).f_globals [ Name ] = A global name name = A or is name is a string var globals()[name] = A It wasn't explicit, but I think Stef meant that the global should be added to the caller's environment, which was the reason for sys._getfr

Re: Reversible Debugging

2009-07-04 Thread Stef Mientki
, specially in combination with a "normal" debugger, which allows you to change values on the flight, like winpdb. cheers, Stef Thanks in advance, Patrick -- http://mail.python.org/mailman/listinfo/python-list

Re: Adding an object to the global namespace through " f_globals" is that allowed ?

2009-07-05 Thread Stef Mientki
Terry Reedy wrote: Stef Mientki wrote: hello, I need to add an object's name to the global namespace. The reason for this is to create an environment, where you can add some kind of math environment, where no need for Python knowledge is needed. The next statement works, but I'm n

Re: Python and webcam capture delay?

2009-07-06 Thread Stef Mientki
ake a DLL or ActiveX from that and use it in Python, but I'm not allowed to ditribute these. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: Python/pyobjC Apps on iPhone now a possibility?

2009-07-07 Thread Stef Mientki
ded Python interpreter would only be adding pressure to the constraints; even if it was an optimized interpreter. I don't know iPhone, but I've done some experiments with 400 MHz arm, running Windows Mobile, and found PocketPyGUI running very very well on these devices. cheers,

Re: Python/pyobjC Apps on iPhone now a possibility?

2009-07-07 Thread Stef Mientki
J Kenneth King wrote: Stef Mientki writes: So, the question is, can the same thing be done for Python apps? I love Python and all, but it'd be apt to ask, what's the point? The iPhone is running on what? A 400Mhz ARM processor? Resources on the device are alrea

Re: Package for fast plotting of many data points in Python?

2009-07-09 Thread Stef Mientki
module ? However, it becomes unstable for more than 25000 points. again what do you mean: 25000 points per ? 25000 points on a 1600 pixel width screen ? Please try to be somewhat more specific. cheers, Stef Can someone recommend me a faster plotting library? It would be really cool if one could

how to run the "main" section of another module ?

2009-07-12 Thread Stef Mientki
s a lot of overhead, I want to run some main program, that has a main section, and uses my library under construction. So how do I call from within the library module, in a main section in that library module, a main in another module ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to run the "main" section of another module ?

2009-07-12 Thread Stef Mientki
Stef Mientki wrote: hello, when I''m working in a library, and want to test some of the library functions, I need to switch to a main application, (which has a normal main-section) and run that. If the library is simply, I add a main section to the library, so no problem. But if t

Re: how to run the "main" section of another module ?

2009-07-12 Thread Stef Mientki
new_globals ) Why not: import db_test db_test.main() I think that is what Aahz meant. Yes I tried that too, but it gives the following error: "module object not callable" db_text.__main__() gives error: 'module' object has no attribute '__main__' cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

any suggestions to synchronize typed text and speech ?

2009-07-19 Thread Stef Mientki
? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: any suggestions to synchronize typed text and speech ?

2009-07-20 Thread Stef Mientki
thanks Marcus, Marcus Wanner wrote: On 7/19/2009 4:15 PM, Stef Mientki wrote: hello, I'm using Scintilla as a wxPython widget with great pleasure. I now have an application where I want to make notes during a conversation, but also want to record the speech during that conversation

Re: any suggestions to synchronize typed text and speech ?

2009-07-21 Thread Stef Mientki
... I was afraid of that too, so I dropped the question in several places, and the writer of Scintilla himself came with the perfect answer. cheers,Stef But you might try having a dictionary with notes and associated times, or just give each note a four-digit ID number at the beginning of it

sqlite3 performance problems only in python

2009-07-23 Thread Stef Mientki
abase in Delphi, using the same query, takes less than 5 seconds (including displaying the full table in a grid). Are there in Python faster ways to get the query results ? Would it be faster if I used an ODBC coupling and PyODBC to interface the database ? thanks, Stef Mientki -- http://mail.pyt

Re: sqlite3 performance problems only in python

2009-07-23 Thread Stef Mientki
PID_POID.PID where substr ( lower( NAME) , 1, 6) = 'cis20r' and lower ( NAME_ ) = 'fatigue' and TEST_COUNT in (3,4) and DATETIME > 39814.0 and SCORE < 30 cheers, Stef with no other processing. I regularly write sql that's fairly complex and bri

Re: sqlite3 performance problems only in python

2009-07-23 Thread Stef Mientki
Piet van Oostrum wrote: Stef Mientki (SM) wrote: SM> btw, I don't know if it's of any importance, the SQL-statement I perform is SM> select OPNAMEN.*, NAME, NAME_, SCORES.SCORE, PATIENT.* SM> from OPNAMEN SM>inner join POID_VLID

Re: sqlite3 performance problems only in python

2009-07-23 Thread Stef Mientki
David Stanek wrote: On Thu, Jul 23, 2009 at 9:02 AM, Stef Mientki wrote: btw, I don't know if it's of any importance, the SQL-statement I perform is select OPNAMEN.*, NAME, NAME_, SCORES.SCORE, PATIENT.* from OPNAMEN inner join POID_VLID on OP

Re: sqlite3 performance problems only in python

2009-07-23 Thread Stef Mientki
Che M wrote: On Jul 23, 3:58 pm, Stef Mientki wrote: Piet van Oostrum wrote: Stef Mientki (SM) wrote: SM> btw, I don't know if it's of any importance, the SQL-statement I perform is SM> select OPNAMEN.*, NAME, NAME_, SCORES.SCORE, PATIENT.* SM&g

Re: Looking for a dream language: sounds like Python to me.

2009-07-28 Thread Stef Mientki
Matlab, from The Mathworks, has a companion product called Simulink. This allows the user to graphically build ‘algorithms’ in block form. There is a similar Python function. Where can I find a Python functionality like simulink ? thanks, Stef Mientki -- http://mail.python.org/mailman

Why is "unpacking" of tuples only allowed when there's 1 tupple ?

2009-08-15 Thread Stef Mientki
ers, why can't I use (Polynome is again a tuple of 2 arrays) : (which already gives an error in the IDE) Respons = signal.lfilter ( *Polynome, Signal ) and thus I've to use: Respons = signal.lfilter ( Polynome[0], Polynome[1], Signal ) I use Python 2.5.2

Re: Why is "unpacking" of tuples only allowed when there's 1 tupple ?

2009-08-15 Thread Stef Mientki
thanks Jan, for the clear explanation. cheers, Stef Jan Kaliszewski wrote: Dnia 15-08-2009 o 22:50:39 Stef Mientki napisał(a): hello, I'm not sure if "unpacking" is the right term but if I have a tuple of 2 arrays, I can either call a function with: Space_State =

<    2   3   4   5   6   7   8   >