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
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
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
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
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
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 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
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
'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
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)
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
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
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
--
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
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
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
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
a look at VPython
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
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
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
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
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
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
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
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
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
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 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
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 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
://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
http://www.sagemath.org/
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
-)
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
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
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
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
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
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,
>>>>
&
ite could be up within an hour.
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
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
<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
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,
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
mas and Web2pY will be added (PockectPyGui can
probably fully be
replaced by QT)
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
> 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
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
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
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
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
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
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
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)
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:
>>>
.
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
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."
> 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,
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
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
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
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
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
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.
>>
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
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
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
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,
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
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
( the
documentation isn't overwhelming).
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
*, 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
ar with Windows Vista, but this would be the trick in
Windows XP.
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
,
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
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
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
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,
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
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
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
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
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
?
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
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
...
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
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
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
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
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
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
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
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
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 =
601 - 700 of 722 matches
Mail list logo