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
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
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
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
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
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
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
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
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
> 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
mas and Web2pY will be added (PockectPyGui can
probably fully be
replaced by QT)
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
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
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,
<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
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
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
ite could be up within an hour.
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
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,
>>>>
&
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
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
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
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
-)
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
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
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).
>>
>&
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
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
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
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
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_
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
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
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
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
connection to the
database continuously "open" ?
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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,
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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.
>>
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
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
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
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
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
> 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,
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."
.
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
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:
>>>
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)
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
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
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
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
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
http://www.sagemath.org/
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
://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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 :-)
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
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
a look at VPython
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
--
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
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
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)
'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
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
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
128)
How should I write such a string to a file ?
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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 - 100 of 722 matches
Mail list logo