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

2011-11-28 Thread Stef Mientki
hello, The information on ADB / SL4A is quiet overwhelming. Despite that, especially for people, not familiar with Linux, it's not an easy task to get their first program running. This library allows you to easy upload and run Python files on a Android device, without pressing any button on

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

2011-11-27 Thread Stef Mientki
hello, The information on ADB / SL4A is quiet overwhelming. Despite that, especially for people, not familiar with Linux, it's not an easy task to get their first program running. This library allows you to easy upload and run Python files on a Android device, without pressing any button on

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

2011-11-15 Thread Stef Mientki
On 15-11-2011 21:37, Passiday wrote: Hello, I am looking for a way how to bring Python interpreter to JavaScript, in order to provide a web-based application with python scripting capabilities. The app would have basic IDE for writing and debugging the python code, but the interpretation, of

how to make a nested list

2011-09-15 Thread Stef Mientki
hello, I need a nested list, like this A= [ [None,None], [None,None], [None, None] ] A[2][0] =77 A [[None, None], [None, None], [77, None]] Because the list is much larger, I need a shortcut (ok I can use a for loop) So I tried B = 3 * [ [ None, None ]] B[2][0] = 77 B [[77, None], [77,

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
hello, using datetimes from a lot of different sources, in many languages, I had about 30 python helper routines, which I now packed in one class, much simpler. Although I used the Delphi date-format as the base, it shouldn't be difficult to rewrite the class for another type. The input can be

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: 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 stef.mien...@gmail.com mailto:stef.mien...@gmail.com wrote: hello, I would like to have a autocompletion / help /snippet system like Dasher : http://www.inference.phy.cam.ac.uk/dasher

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

2011-03-12 Thread Stef Mientki
On 11-03-2011 22:45, Dan Stromberg wrote: On Fri, Mar 11, 2011 at 12:54 PM, Fred Pacquier xne...@fredp.lautre.net mailto:xne...@fredp.lautre.net wrote: Robert sigz...@gmail.com mailto:sigz...@gmail.com said : Is there a push to one toolkit or the other? If you are just now

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 Mientki

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

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, one of objects generated is a wx.Button, called 'btn_Matlab'. How do you

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

2010-12-29 Thread Stef Mientki
On 30-12-2010 02:03, rantingrick wrote: On Dec 29, 6:41 pm, Gerry Reno gr...@verizon.net wrote: wxPython looks good but I don't see anyone developing support for things like smartphones. No wx is not the answer to our problems Just partial ;-) Why not write a (Pythonic) wrapper and choose

NameError: global name 'btn_Matlab' is not defined ?

2010-12-28 Thread Stef Mientki
? any clues ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

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

2010-12-17 Thread Stef Mientki
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 something alike for Windows ? thanks, Stef Mientki -- http://mail.python.org/mailman

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

2010-12-12 Thread Stef Mientki
I've no opinion. I'm just struggling with BeautifulSoup myself, finding it one of the toughest libs I've seen ;-) Really? While I'm by no means an expert, I find it very easy to work with. It's very well structured IMHO. I think the cause lies in the documentation. The PySide documentation

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

2010-12-11 Thread Stef Mientki
On 11-12-2010 17:24, Martin Kaspar wrote: Hello commnity i am new to Python and to Beatiful Soup also! It is told to be a great tool to parse and extract content. So here i am...: I want to take the content of a td-tag of a table in a html document. For example, i have this table table

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 stef.mien...@gmail.com 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't “have” decorators; classes

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 stef.mien...@gmail.com writes: I would like to know if a class definition has a decorator, I'm not sure what this question means. Applying a decorator

Re: A web site using Python

2010-12-06 Thread Stef Mientki
On 04-12-2010 15:54, hid...@gmail.com wrote: I am working on a tool that can create an application like that without write server code, but the system is write in Python3.1 very interesting, could you give us some more information about the project for the OP: with web2py, your site could be

Re: Which non SQL Database ?

2010-12-05 Thread Stef Mientki
On 04-12-2010 23:42, Jorge Biquez wrote: Hello all. Newbie question. Sorry. As part of my process to learn python I am working on two personal applications. Both will do it fine with a simple structure of data stored in files. I now there are lot of databases around I can use but I

Re: building a web interface

2010-11-20 Thread Stef Mientki
On 20-11-2010 23:40, Shel wrote: Hello, I am pretty new to all this. I have some coding experience, and am currently most comfortable with Python. I also have database design experience with MS Access, and have just created my first mySQL db. So right now I have a mySQL db structure and

Re: What was your strategy?

2010-11-14 Thread Stef Mientki
: language (Python of course), IDE, framework, etc. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

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. thanks, Stef Mientki

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). But I can't find how th get to PHP's equivalent of $_Post

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 stef.mien...@gmail.com *To:* python-list@python.org *Sent:* Thu, November 11, 2010 10:20:03 AM *Subject:* Re: is there an Python

Re: JavaScript vs Python

2010-11-09 Thread Stef Mientki
On 09-11-2010 10:25, Lawrence D'Oliveiro wrote: In message mailman.757.1289287828.2218.python-l...@python.org, Chris Rebert wrote: On Mon, Nov 8, 2010 at 10:52 PM, Lawrence D'Oliveiro l...@geek-central.gen.nz wrote: Because JavaScript is actually a decent language in its own right. The

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 eckha...@satorlaser.comwrote: Stef Mientki wrote: When running this python application from the command line ( or launched from

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

2010-09-21 Thread Stef Mientki
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__' ) # -*- coding: windows-1252 -*- The regular expression

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-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 say the database is windows-1252. Can you be more

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

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

2010-09-11 Thread Stef Mientki
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 say the database is windows-1252. Can you be more specific? I doubt that, but I'm not sure ... For some databases written by other

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

2010-09-08 Thread Stef Mientki
the 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
On 04-09-2010 15:36, Jack Keegan wrote: Hi girls guys, Just joined the group. I'm new to Python but been picking it up pretty easy. I love it! I'm hoping to use it to make a controlling application for an experiment. Basically I want to use it to interface with some data acquisition

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) type 'str' 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
On 27-08-2010 00:22, Thomas Jollans wrote: On Thursday 26 August 2010, it occurred to Sathish S to exclaim: Hi Ppl, Is there any python IDE or editor that has an ActiveX control which could be embed in other Windows applications. I'm basically looking to write a application that can show

Re: Save/load like matlab?

2010-08-23 Thread Stef Mientki
On 23-08-2010 21:44, Daniel Fetchinson wrote: I wonder if there is a way to save and load all python variables just like matlab does, so I can build a code step by step by loading previous states. I am handling a python processing code for very large files and multiple processing steps. Each

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

Hwy doesn't len(None) return zero ?

2010-06-30 Thread Stef Mientki
, 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. Now I'm often what to do something if I've more than 1

Re: Will and Abe's Guide to Pyjamas

2010-06-15 Thread Stef Mientki
On 14-06-2010 17:53, lkcl wrote: oh look - there's a common theme, there: web technology equals useless :) this is getting sufficiently ridiculous, i thought it best to summarise the discussions of the past few days, from the perspective of four-year-olds:

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 with the state

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 stef.mien...@gmail.com wrote: So I want to change the behavior of the class dynamically. I've done

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

2010-05-20 Thread Stef Mientki
(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 behavior ? thanks, Stef Mientki

Re: wxPython: How to get letter colour from TextCtrl

2010-05-17 Thread Stef Mientki
On 17-05-2010 23:29, D. Schramm wrote: Hello, I've got a problem getting the colour of a single letter within the TextCtrl widget: letterstyle = wx.TextAttr() self.p1.GetStyle(self.p1.XYToPosition(0,0),letterstyle) color = letterstyle.GetTextColour() print color This should display the

Re: Do any debuggers support edit and continue?

2010-05-12 Thread Stef Mientki
On 12-05-2010 19:42, Joel Koltner wrote: Just curious... in Microsoft's Visual Studio (and I would presume some other tools), for many languages (both interpreted and compiled!) there's an edit and conitnue option that, when you hit a breakpoint, allows you to modify a line of code before it's

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

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 stef.mien...@gmail.com wrote: With the following code, I would expect a result of 5 !! a= 'word1 word2 word3' a.rfind(' ',7) 11 Is this a bug ? No. Don't you think someone

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 stef.mien...@gmail.com wrote: On 21-04-2010 10:56, Chris Rebert wrote: On Wed, Apr 21, 2010 at 1:51 AM, Stef Mientki stef.mien...@gmail.com wrote: With the following code, I would

Can this be done simpler ?

2010-04-19 Thread Stef Mientki
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 def _Meting ( Nr, Test

finding objects in a piece of functional code ?

2010-04-10 Thread Stef Mientki
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 soeone has a implementation of sucha case insensitive list

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
On 23-03-2010 17:55, Jose Manuel wrote: I have been learning Python, and it is amazing I am using the tutorial that comes with the official distribution. At the end my goal is to develop applied mathematic in engineering applications to be published on the Web, specially on app. oriented

Re: Visual Python programming and decompilers?

2010-03-11 Thread Stef Mientki
On 11-03-2010 19:38, Ludolph wrote: Hi Guys At work I have been exposed to a Agile Platform called OutSystems. It allows you to visually program your web applications http://i.imgur.com/r2F0i.png and I find the idea very intriguing. Although not as low level as you want,

Re: String is ASCII or UTF-8?

2010-03-09 Thread Stef Mientki
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 byte per character) or UTF-8 (and two bytes per character)? This is python 2.4.3, so I don't

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 byte

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, MRABpyt...@mrabarnett.plus.com 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

How to transmit a crash report ?

2010-02-22 Thread Stef Mientki
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 stef.mien...@gmail.com wrote

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
On 10-02-2010 00:09, Alf P. Steinbach wrote: * David Robinow: On Tue, Feb 9, 2010 at 5:10 PM, Simon Brunning si...@brunningonline.net wrote: On 9 February 2010 16:29, Robert Kern robert.k...@gmail.com wrote: On 2010-02-09 09:37 AM, Daniel Fetchinson wrote: If the code base stabilizes in a

Re: Dreaming of new generation IDE

2010-02-03 Thread Stef Mientki
Yes, it certainly does. Not that you'll get many Pythonistas to confess to that fact. Somehow those who brag about the readability and expressiveness of source code just cannot admit that: class.method(sting name, int count) - is *obviously* more expressive than - class.method(name,

Re: Dreaming of new generation IDE

2010-02-03 Thread Stef Mientki
Finally I develop a feeling that strong instrumentation / tools can bring us the best of two worlds. That I am dreaming on is an absolute new type/class of IDE suitable for Python and potentially for other dynamic-type languages. Instead of current text-oriented IDEs, it should be a

Re: Dreaming of new generation IDE

2010-02-03 Thread Stef Mientki
On 03-02-2010 16:48, Vladimir Ignatov wrote: I don't see what the advantage of the use of a database is in a fairly linear hierarchical structure like python objects and modules. Imagine simple operation like method renaming in a simple dumb environment like text editor + grep. Now

Re: Dreaming of new generation IDE

2010-02-03 Thread Stef Mientki
On 03-02-2010 18:21, Vladimir Ignatov wrote: Imagine simple operation like method renaming in a simple dumb environment like 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

how to decode rtf characterset ?

2010-02-01 Thread Stef Mientki
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
- 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 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 ? thanks

how to go back from 2.6.4 to 2.6.2 under windows ?

2009-12-20 Thread Stef Mientki
, 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.org/mailman

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 stef.mien...@gmail.com 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

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

2009-12-20 Thread Stef Mientki
So I guess this is a reasonable approach, and all libraries should work well, unless one of these libraries has a work around for one of the bugs fixed between 2.6.2 and 2.6.4. Let VPython people know about this problem. People should be able to run it on the latest patched 2.6. Well

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.python.org

Re: pyZui - anyone know about this?

2009-12-11 Thread Stef Mientki
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 stef.mien...@gmail.com 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

Re: Bored.

2009-11-30 Thread Stef Mientki
Necronymouse wrote: Hello, I am learning python for about 2 years and I am bored. Not with python but I have a little problem, when i want to write something I realise that somebody had alredy written it! So i don´t want to make a copy of something but i wanna get better in python skills. Don´t

Re: Bored.

2009-11-30 Thread Stef Mientki
John Bokma wrote: Stef Mientki stef.mien...@gmail.com 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: python gui builders

2009-11-25 Thread Stef Mientki
Shawn On Nov 18, 5:11 pm, Stef Mientki stef.mien...@gmail.com wrote: Wouldn't it be nice if each fan of some form of GUI-package, would post it's code (and resulting images) for generating one or two standard GUI-forms ? -- http://mail.python.org/mailman/listinfo/python-list

Re: plotting arrow in python

2009-11-21 Thread Stef Mientki
rudra wrote: Dear friends, I am very new in python. Actually, I think I will not do much python then using it to plotting data. I have not done any real thing in python, so plz be easy. Now , the problem I have a data set: 0.0 0.0 0.1 0.0 0.1 0.1 0.1 0.0 0.5 like that! the first two column are

Re: python gui builders

2009-11-18 Thread Stef Mientki
Simon Hibbs wrote: On 18 Nov, 07:51, sturlamolden sturlamol...@yahoo.no wrote: GPL PyQT is GPL for now, but Qt itself is available under the LGPL as is PySide. Eventualy PySide, which tracks the PyQT API, will supplant it and the issue will be moot. For now it can be a problem, but

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 stef.mien...@gmail.com 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

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

Re: Embedded python on systems without python installed

2009-10-27 Thread Stef Mientki
KillSwitch wrote: I have python successfully embedded in a program I wrote. What files do I need and where do I need to put them so that it can run on systems that don't have python installed? I embed python in Delphi apps, and the only thing I add is python24.dll, which I put in the same

Re: Embedded python on systems without python installed

2009-10-27 Thread Stef Mientki
KillSwitch wrote: I have python successfully embedded in a program I wrote. What files do I need and where do I need to put them so that it can run on systems that don't have python installed? I embed python in Delphi apps, and the only thing I add is python24.dll, which I put in the same

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

2009-10-26 Thread Stef Mientki
, 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) thanks, Stef Mientki -- http

Unicode again ... default codec ...

2009-10-20 Thread Stef Mientki
hello, As someone else already said, every time I think : now I understand it completely, and a few weeks later ... Form the thread how to write a unicode string to a file ? and my specific situation: - reading data from Excel, Delphi and other Windows programs and unicode Python - using

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

2009-10-17 Thread Stef Mientki
Stephen Hansen wrote: snip 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 stef.mien...@gmail.com 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

how to write a unicode string to a file ?

2009-10-15 Thread Stef Mientki
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
(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
Stephen Hansen wrote: On Mon, Oct 12, 2009 at 4:15 PM, Stef Mientki stef.mien...@gmail.com 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

Re: code in a module is executed twice (cyclic import problems) ?

2009-10-11 Thread Stef Mientki
), (never seeing the m-switch), I never was aware of this important difference. A quick Googling on python module vs script doesn't reveal many (good) links, the best one I found is http://effbot.org/zone/import-confusion.htm thanks again, Stef Mientki Stephen Hansen wrote: On Sat, Oct 10, 2009 at 4

  1   2   3   4   5   6   7   >