[ANN] Android Debug Bridge (ADB) Scripting Language For Android (SL4A) convenience library

2011-11-27 Thread Stef Mientki
brary here: http://code.google.com/p/pylab-works/downloads/detail?name=adb_sl4a_support.py&can=2&q= cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: (don't bash me too hard) Python interpreter in JavaScript

2011-11-15 Thread Stef Mientki
lot of work to do. Any ideas how I should proceed with this project? skulpt ? cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

how to make a nested list

2011-09-15 Thread Stef Mientki
None, None ]] >>> B[2][0] = 77 >>> B [[77, None], [77, None], [77, None]] which doesn't work as expected. any suggestions ? thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

and becomes or and or becomes and

2011-05-22 Thread Stef Mientki
hello, must of us will not use single bits these days, but at first sight, this looks funny : >>> a=2 >>> b=6 >>> a and b 6 >>> a & b 2 >>> a or b 2 >>> a | b 6 cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

maybe useful : datetime conversion

2011-05-20 Thread Stef Mientki
utch) string - "20-5-11" : short year notation - "20-05-2011" : long year notation - "2009-09-24 10:12:24" : Access string - datetime.datetime ( 2011, 1, 15 ) - time.struct_time - wx.DateTime - time.time() (through method from_time) Maybe

Re: is there an autocompletion like Dasher ?

2011-05-07 Thread Stef Mientki
On 08-05-2011 01:28, Dan Stromberg wrote: > > On Sat, May 7, 2011 at 3:40 PM, Stef Mientki <mailto:stef.mien...@gmail.com>> wrote: > > hello, > > I would like to have a autocompletion / help /snippet system like Dasher : > > http://www.inference.phy

is there an autocompletion like Dasher ?

2011-05-07 Thread Stef Mientki
hello, I would like to have a autocompletion / help /snippet system like Dasher : http://www.inference.phy.cam.ac.uk/dasher/ anyone seen such a component ? thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: What do you use with Python for GUI programming and why?

2011-03-12 Thread Stef Mientki
kly and easily writing cross-platform > applications. another way of reaching the same goal, is to use a wrapper that supports the different backends. As I found wxPython much too difficult (I was a Delphi guy), I started directly with a wrapper when I started using wxPython a few years ago. In the meanw

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

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

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

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

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

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

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: 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: is there an Python equivalent for the PHP super globals like $_POST, $_COOKIE ?

2010-11-11 Thread Stef Mientki
On 11-11-2010 19:36, david wright wrote: > > > *From:* Stef Mientki > *To:* python-list@python.org > *Sent:* Thu, November 11, 2010 10:20:03 AM > *Subject:* Re: is there an Pyt

Re: is there an Python equivalent for the PHP super globals like $_POST, $_COOKIE ?

2010-11-11 Thread Stef Mientki
On 11-11-2010 19:01, Steve Holden wrote: > On 11/11/2010 9:22 AM, Stef Mientki wrote: >> hello, >> >> finally got Python running at my server. >> >> Now I would like to replace the PHP server scripts with Python ( for easier >> maintenance). >> >&

is there an Python equivalent for the PHP super globals like $_POST, $_COOKIE ?

2010-11-11 Thread Stef Mientki
hello, finally got Python running at my server. Now I would like to replace the PHP server scripts with Python ( for easier maintenance). But I can't find how th get to PHP's equivalent of $_Post and $_Cookie ? Google finds lots of links, but I can't find the answer. thank

Re: JavaScript vs Python

2010-11-09 Thread Stef Mientki
od Parts" of it anyway. > Python, too, has its good parts, you have to admit... And there's a (or even more) Python to JS compilers, I never heard of a JS to Python compiler. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: utf-8 coding sometimes it works, most of the time it don't work.

2010-09-22 Thread Stef Mientki
hello Uli, thanks, I think you hit the nail on it's head, PyScripter indeed changes default encoding but .. On Wed, Sep 22, 2010 at 9:16 AM, Ulrich Eckhardt wrote: > Stef Mientki wrote: > > When running this python application from the command line ( or launched > > from an

utf-8 coding sometimes it works, most of the time it don't work.

2010-09-21 Thread Stef Mientki
e__ import absolute_import, unicode_literals >From the Pyjamas and PyScripter group I've no answer untill now. any clues where to look for the problem ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: is there a way to get the encoding of python file

2010-09-13 Thread Stef Mientki
On 12-09-2010 19:28, Robert Kern wrote: > On 9/12/10 4:14 AM, Stef Mientki wrote: >> hello, >> >> Is it possible to get the encoding of a python file from the first source >> line, >> (if there's any), >> after importing it ( with '__import_

Re: is there a library/program that converts sqlite database from windows-1252 to utf-8 ?

2010-09-12 Thread Stef Mientki
On 12-09-2010 00:07, Robert Kern wrote: > On 9/11/10 4:45 PM, Stef Mientki wrote: >> On 11-09-2010 21:11, Robert Kern wrote: >>> SQLite internally stores its strings as UTF-8 or UTF-16 encoded Unicode. So >>> it's not clear what >>> you mean when you sa

is there a way to get the encoding of python file

2010-09-12 Thread Stef Mientki
hello, Is it possible to get the encoding of a python file from the first source line, (if there's any), after importing it ( with '__import__' ) # -*- coding: windows-1252 -*- thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: is there a library/program that converts sqlite database from windows-1252 to utf-8 ?

2010-09-11 Thread Stef Mientki
C3 Reading these databases with text_factory = unicode, results in exceptions, when such a string with 0xC3 is encountered. As I want to switch completely to unicode, to prevent these kind of problems in the future. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

is there a library/program that converts sqlite database from windows-1252 to utf-8 ?

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

are there pros or contras, keeping a connection to a (sqlite) database ?

2010-09-08 Thread Stef Mientki
connection to the database continuously "open" ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: State Machines in Python

2010-09-04 Thread Stef Mientki
essor activity was about 10%. Maybe you should also look at what those radio guys from gnu radio achive. cheers, Stef > As there is no switch statement in Python, I've been looking around for a > good implementation. > Most of the algorithms I've come across seem to be based o

what is this kind of string: b'string' ?

2010-09-01 Thread Stef Mientki
in winpdb I see strings like this: >>>a = b'string' >>>a 'string' >>> type(a) what's the "b" doing in front of the string ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Editor or IDE ActiveX control

2010-08-26 Thread Stef Mientki
embeddable > programmer's editor that happens to have syntax definitions for Python. > > I'd suggest you have a look at Scintilla. Quite a good editing control, I > don't think it comes wrapped in ActiveX or anything like that, just interface > it in your favourite la

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,

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

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

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

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

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

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

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

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)

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

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

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

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

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: Python is cool!!

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

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

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

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

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

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

class viewer ?

2010-01-10 Thread Stef Mientki
he class is definied - the attributes, split in inherited / created / overriden - the methodes, split in inherited / created / overriden - the files were instances of the class are created - and probably I forget a few any suggestions ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to go back from 2.6.4 to 2.6.2 under windows ?

2009-12-20 Thread Stef Mientki
this is the first line on the VPython download page ;-) "To use Visual 5.13 with Python 2.6, use Python 2.6.2, NOT later versions such as Python 2.6.3 or Python 2.6.4 or Python 3.x:" cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: how to go back from 2.6.4 to 2.6.2 under windows ?

2009-12-20 Thread Stef Mientki
Benjamin Kaplan wrote: On Sun, Dec 20, 2009 at 9:26 AM, Stef Mientki wrote: hello, I've just upgraded my system from Python 2.5 to 2.6.4, and installed the latest packages of a lot of libraries. Now one essential package (VPython) only works with Python 2.6.2. I tried to install P

how to go back from 2.6.4 to 2.6.2 under windows ?

2009-12-20 Thread Stef Mientki
2.6.2, but the python and pythonw are still 2.6.4. Why is that so ?? Now assume that a number of packages (because compiled with 2.6.4) will not work correctly with 2.6.2. Is that correct ? So the best way would be to reinstall everything ?? thanks, Stef Mientki -- http://mail.python.o

Re: how do I set a Python installation as the default under windows ?

2009-12-20 Thread Stef Mientki
Steve Holden wrote: Stef Mientki wrote: hello, I just upgraded from Python 2.5 to 2.6. Most of the things work, but I'm struggling with one issue, when I start Python in a command window, it still uses Python 2.5. Is there a way to get Python 2.6 as my default Python environment ? t

how do I set a Python installation as the default under windows ?

2009-12-19 Thread Stef Mientki
hello, I just upgraded from Python 2.5 to 2.6. Most of the things work, but I'm struggling with one issue, when I start Python in a command window, it still uses Python 2.5. Is there a way to get Python 2.6 as my default Python environment ? thanks, Stef Mientki -- http://mail.pytho

Re: pyZui - anyone know about this?

2009-12-11 Thread Stef Mientki
d. Will give it a go. \d please let us know when you find more information about the project. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Bored.

2009-12-01 Thread Stef Mientki
Floris Bruynooghe wrote: On Nov 30, 11:52 pm, Stef Mientki wrote: Well I thought that after 2 years you would know every detail of a language ;-) Ouch, I must be especially stupid then! ;-) Sorry if I insulted you Floris! btw, I'm too still learning Python after I star

Re: Bored.

2009-11-30 Thread Stef Mientki
John Bokma wrote: Stef Mientki wrote: There's also a Python site, were projects are submitted that needs something ( some even pay a little), but I can't remember where it is :-( OP: A Python program to find it :D that was the mind mapper I mentioned :-)

Re: Bored.

2009-11-30 Thread Stef Mientki
itted that needs something ( some even pay a little), but I can't remember where it is :-( 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

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

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

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

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)

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

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

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

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

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

  1   2   3   4   5   6   7   8   >