Hello, I'm using eclipse with pydev plugin, I'm working on a program using
wxpython .
When I'm executing that application standard error output does not show in
eclipse console window - wxpython seems to redirect standard output to some
another window , and closes that window immediately, so I
Uzytkownik "Philippe C. Martin" <[EMAIL PROTECTED]> napisal w
wiadomosci news:[EMAIL PROTECTED]
> app = MyApp(False)
> app.MainLoop()
>
> will keep wxWidgets from using its own window.
>
>
that's it ! Thanks a lot :)
--
http://mail.python.org/mailman/listinfo/python-list
of 15 readings and ring a bell when the data
in buffer form a specific pattern (a spike, a trough, whatever)?
I'll be grateful for a push in the right direction. Thanks,
GS
--
Grzegorz Staniak
--
http://mail.python.org/mailman/listinfo/python-list
g/
> [2] http://statsmodels.sourceforge.net/
> [3] http://docs.python.org/library/queue.html
> [4]
> http://www.laurentluce.com/posts/python-threads-synchronization-locks-rlocks-semaphores-conditions-events-and-queues/
Thanks for the suggestions.
GS
--
Grzegorz Staniak
--
http://mail.python.org/mailman/listinfo/python-list
t the OP requested, i.e. "6 digit random number
*from a given number*"? That is, a random permutation of the set
of its digits?
GS
--
Grzegorz Staniak
--
http://mail.python.org/mailman/listinfo/python-list
kes is to
start playing with generating JSON without the use of specialized
JSON libraries/functions. For testing, for fun, out of curiosity...
GS
--
Grzegorz Staniak
--
http://mail.python.org/mailman/listinfo/python-list
ocol specs and follow them.
Sure, sure. But it still may raise a few eyebrows as people start to
play along while still reading the spces. It's just not something that
I'd expect (yes, I learnt Perl before I discovered Python).
GS
--
Grzegorz Staniak
--
http://mail.python.org/mailman/listinfo/python-list
s, but 'that' is 'that' like 'this'>
... with 'qq' providing the version with inerpolation. I could
always find an arbitrary character for quoting that was _not_ present
in the string, and so, most of the time, avoid quoting altogether.
It was perhaps a bit too magical, but pruced very readable strings.
GS
--
Grzegorz Staniak
--
http://mail.python.org/mailman/listinfo/python-list
gt;>
>> Yes, that's what you said already. My reasoning was in the part you stripped
>> from my quote. *shrug*
>
> Multiple symmetric quote characters breaks one of python's own zen
> rules:
>
> There should be one-- and preferably only one --obvious way t
just don't work well with your
neurons. And you may still call the former "my languages".
GS
--
Grzegorz Staniak
--
http://mail.python.org/mailman/listinfo/python-list
Hello everyone. I have to get data from Lotus Notes and i curious is it
possible doing it with Python. I heard that Lotus Notes using COM, so
the Python does so maybe it can be done? Anyone have any experiences
doing that?
Ane help will by apreciated
Gregor
--
http://mail.python.org/mailman/lis
thank you Graham
Now I know how to get it thru
And i have last question is it possible send mail from Lotus via
Python/COM?
Once Again Thanks
--
http://mail.python.org/mailman/listinfo/python-list
option. I'm sure that in a
day or two I can figure out the Makefile it generates and perhaps
substitute the object files to create what I need, but I'm hoping there is
someone out there who can help me (or at least save me a lot of time).
Thanks a lot,
Grzegorz
--
http://mail.python.o
I am wondering if there is anyone else as excited about Sun's dtrace
as I am. Having seen it in action, and actually used it a couple of times
I am really impressed.
Still, this is not meant as an advert for Sun. I am considering doing some
work at adding Dtrace probes into python. That would onl
Jack wrote:
> Is there a Python packaging that is specifically for
> embedded systems? ie, very small and configurable so the
> user gets to select what modules to install?
>
> For Linux-based embedded systems in particular?
>
> I'm thinking of running it on the Linksys's Linux-based open
> source
r important things to add for highlight.
>>
>
> Great :)
>
> - Two new built-in functions, any() and all()
> - A new warning, UnicodeWarning
>
>
Who is using FAR and isn't happy ?
Grzegorz Makarewicz
--
http://mail.python.org/mailman/listinfo/python-list
Hi all
I'm writing small python module which will be a password generator. I read
that python can use system random generator on machine whit *nix os. So i
start using os.urandom and when i generate random string i get something
like this: urandom(8) ->
'\xec2a\xe2\xe2\xeb_\n',"\x9f\\]'\xad|\xe6\x
Hi all. I have got situation that I need make parameter injection into
function and I want that parametet be a local variable of that function.
eg. something like
def decorator():
@decorator
def myfun():
a = 20
and in myfun i can use b wariable like that:
b = "ok it's working"
I try to
Hi All. I need to redirect user in my CGI script, i Try to use prin
"Location: "+url but this is not working. Can anyone tell me what I'm
doing wrong?
Any thanks will be apreciated
Gregor
--
http://mail.python.org/mailman/listinfo/python-list
Hi all. I have got situation: i load data from database(MSSQL) wchich are
encoded cp1250 and I fill template with that data (Cheetah Template), after
all i want to save template to file on disk. I'm using
newfile = open("template.html",w")
newfile.write(str(template))
newfile.close()
But data enco
Dnia Wed, 18 Apr 2007 19:38:26 +0100, Michael Hoffman napisał(a):
> Grzegorz Ślusarek wrote:
>> Hi all. I have situation that I have value that holds price and I must show
>> this price using national specification(e.g. thousands_sep). Any idea how
>> this can be done unde
I'm working on my little project (an IM client) which I wanted to
support plugins. My idea was that the core program would by itself do
virtually nothing but manage plugins and all functionality would be
provided by the plugins themselves (including protocol handling and UI.
My first attempt wa
Very insightful, thank you for your replies. I was initially thinking it
would be simpler to implement my own system but perhaps using a
ready-made one will be more elegant and potential plugin makers would
find it more familiar.
Cheers,
Greg.
--
http://mail.python.org/mailman/listinfo/python-
>
> Why? Because.
>
> Seriously, it's just an optimization by the implementers. There is no
> need for more than one empty tuple, since tuples can never be modified
> once created.
>
> But they decided not to create (1, ) in advance. They probably knew that
> hardly anybody would want to create
> Here is a simple explanation (and it is not complete by a long shot).
>
> A number by itself is called a "scalar". For example, when I say,
> "I have 23 apples", the "23" is a scalar that just represents an
> amount in this case.
>
> One of the most common uses for Complex Numbers is in what ar
> I was trying to motivate the idea by means of analogy. This is a
> legitimate thing to do. It helps lead people to a conceptual
> understanding long before they understand the minutae.
You're mixing terms again. Analogy is saying 'something is like
something else.' What you are saying is 'S
>> In fact, a proper vector in physics has 4 features: point of
>> application, magnitude, direction and sense.
>>
>
> so whats the "point of application" of the sum of two vectors? Do
> tell.
I believe vectors can only be added if they have the same point of
application. The result is then
>> In fact, a proper vector in physics has 4 features: point of
>> application, magnitude, direction and sense.
>>
>
> No -- a vector has the properties "magnitude" and direction.
> Although not everything that has magnitude and direction is a
> vector.
>
> It's very unusual to have a fixed p
Gabriel Genellina wrote:
> En Wed, 05 Sep 2007 06:45:29 -0300, Grzegorz Słodkowicz <[EMAIL PROTECTED]>
> escribi�:
>
>
>> I believe vectors can only be added if they have the same point of
>> application. The result is then applied to the same point.
>>
>> Interesting. It appears that we are ran into a mathematical
>> cultural difference. Were I come from vectors *are* defined as
>> having four properties that I enumerated. After some research I
>> found that English sources (Wikipedia) indeed give the definition
>> you supplied.
>>
> Indee
Hi all. I have situation that I have value that holds price and I must show
this price using national specification(e.g. thousands_sep). Any idea how
this can be done under python 2.4.4? I saw that function format from module
locals can format value with national specification, but this could be do
simple data for simple test - my version fails after 10 loops
after removing sgmlop.pyd from DLLs - everything is working as expected
mak
#python
data='''\
mws.ScannerLogout
7
'''
import xmlrpclib
def main():
i = 1
while 1:
print i
Hi folks
I must write webb application that will comunicate with delphi desktop
application by SOAP protocol. Can you recommend any Python Soap Libary?
I founded: SOAPpy and Zolera SOAP Infrastructure (ZSI). Any tip which is
better to use?
Thanks for any help
Gregor
--
http://mail.python.org/mailm
Hi all. I have problem with ZSI and WSDL schema.I generate from WSDL
by wsdl2py client method for webservice. I made soap call and
something goes wrong. Doeas anyone know hot to create some server code
by ZSI from WSDL?? I just suspectes that my return data from
webservice is in incorrect envelope
o be proper response.
Any help?
Please
Gregor
Thanks Simon
On 1 Lut, 12:42, "Simon Brunning" <[EMAIL PROTECTED]> wrote:
> On 1 Feb 2007 03:14:14 -0800, Grzegorz Smith <[EMAIL PROTECTED]> wrote:
>
> > Hi all. I have problem with ZSI and WSDL schema.I generate fr
Hi All. I 'm learning ZSI to use SOAP and I desperately need help. I'm
working on example from tutorial -> (examples/server/send_response/
simple/wsdl/).
Here are my wsdl files -> http://pastebin.com/873488.
I made wsdl2py wsdl2py --complexType --file=binding.wsdl and get
Example_services.py and Ex
Hi all. I'm using formEncode to validate my forms, and I'm stopped
on how to do a complicated validation that depened on what forms
element was filled. I mean in my code (without formEncode) i have:
if form.select is checked:
#if select is checked then I checked for others fields on form
#i
> Why not just put it on the net somewhere and tell us where it is?
> People aren't generally going to want to help or even look at it if
> you treat it like a proprietary application. So, put the documentation
> and code up somewhere for all to see.
>
http://www.yieldserver.com:8081/
--
http:
tell),
itools.workflow, spiff (AFAIK tied to a CMS), but not much else. I don't
think I'll have enough time to get acquinted with Plone and its offer
of products. Has anyone here tried any such code? What would you recommend?
TIA,
GS
--
Grzegorz Staniak
Nocturnal Infiltration and Accurate
dea to start
writing another one? I'd much prefer an existing workflow project that
I could use, test, and contribute to, just as I decided on TG for the
web thing.
GS
--
Grzegorz Staniak
Nocturnal Infiltration and Accurate Killing
--
http://mail.python.org/mailman/listinfo/python-list
framework.
>
> http://www.google.de/search?q=python+state+machine
To be exact, I used the words "engine/library", not "a whole framework".
Thanks for the link, I've googled for articles and recipes myself and
as I said, I more or less know what to do - I just thought it might be
a good idea to ask whether perhaps the wheel has already been invented.
Apparently I was wrong.
GS
--
Grzegorz Staniak
Nocturnal Infiltration and Accurate Killing
--
http://mail.python.org/mailman/listinfo/python-list
tion was pretty
specific: could you comment on/recommend an open source python workflow
engine/module (implied: to go with a web app). Sharepoint doesn't match
the description. I think one could assume that if I'm asking about wheels,
I need a pointer to a wheel shop, and I'm not
ied any such code? What would you recommend?
>
> There are some packages for zope on pypi:
> Products.DCWorkflow - zope2, cmf
> hurry.workflow and some extensions - zope3
> zope.wfmc - zope3 (not many dependencies on zope3)
Thanks, I'll have a look at them.
GS
--
Grzegorz Sta
or _any_ suggestions or comments.
Most of them happened to be along the lines of "phew, that's too easy,
go bother yourself with the rest of the stuff".
> The common denonimator of a workflow (state engine) is so simple, the
> only complexity comes from the environment it
s thinking about something like:
>
> mylist.index('no*')
>
> Of course this doesn't work.
I guess there's a way to use the glob module in this situation, but
for the specific case I think you can use:
start_with_no = (i for i in mylist if i.startswith("no"))
GS
f editing,
e.g. pasting part of an "Alias" at the end of the line for
"AddDefaultCharset" or sth like this.
GS
--
Grzegorz Staniak
Nocturnal Infiltration and Accurate Killing
--
http://mail.python.org/mailman/listinfo/python-list
> If you want precision with fractions, you should be using the Decimal
> type, which uses a rational. A rational, if you recall from your math
> classes, is one integer divided by another.
>
Isn't Decimal a BCD implementation?
--
http://mail.python.org/mailman/listinfo/python-list
> Hello, I was hoping to get some opinions on a subject. I've been
> programming Python for almost two years now. Recently I learned Perl,
> but frankly I'm not very comfortable with it. Now I want to move on
> two either Java or C++, but I'm not sure which. Which one do you think
> is a softer tr
> You must be joking - better designed? C++ was a botch to an already poor
> language.
>
Although I'm relatively new to the concept that C++ is too difficult to
use, I would concede that with certain mindset and priorities Java may
be a valid choice. Not so if one is willing to expand know
ething like "count and return all occurences of the substring
'abc' in foo"? Looks like you should use the re module.
GS
--
Grzegorz Staniak
--
http://mail.python.org/mailman/listinfo/python-list
t;no" and I want
> all of "text5+more Text" because it is after "yes". It is like the yeses are
> bullet points and I want all the info after them. However, all in one
> string.
I guess this can be done with regular expressions:
http://www.python.org/doc/current/lib/module-re.html
Read about groups, then write an appropriate regex.
GS
--
Grzegorz Staniak
--
http://mail.python.org/mailman/listinfo/python-list
..
Very sorry, but I just couldn't resist.
GS
--
Grzegorz Staniak
--
http://mail.python.org/mailman/listinfo/python-list
')
>
> but the file extension doesn't work. So how do I open one?
Have you tried the local file URL, like "file:///home/user/file.html"?
GS
--
Grzegorz Staniak
--
http://mail.python.org/mailman/listinfo/python-list
ase the length of "os.listdir()" could
suffice, but then you might need to filter out sub-directories, or maybe
count files in them too using "os.walk()".
GS
--
Grzegorz Staniak
--
http://mail.python.org/mailman/listinfo/python-list
an iterator?
GS
--
Grzegorz Staniak
--
http://mail.python.org/mailman/listinfo/python-list
re some equivalent in Python ?
The .translate() method of strings?
>>> import string
>>> mystr = "This is just a test"
>>> transtable = string.maketrans("aeiouy","--")
>>> mystr.translate(transtable)
'Th-s -s j-st - t-st'
GS
--
Grzegorz Staniak
Nocturnal Infiltration and Accurate Killing
--
http://mail.python.org/mailman/listinfo/python-list
Is there some equivalent in Python ?
The .translate() method of strings?
>>> import string
>>> mystr = "This is just a test"
>>> transtable = string.maketrans("aeiouy","--")
>>> mystr.translate(transtable)
'Th-s -s j-st - t-st'
GS
--
Grzegorz Staniak
Nocturnal Infiltration and Accurate Killing
--
http://mail.python.org/mailman/listinfo/python-list
ink this here is an example where even str_replace
> in Python wouldn't have worked well.
What about mystring.translate(transtable)?
GS
--
Grzegorz Staniak
Nocturnal Infiltration and Accurate Killing
--
http://mail.python.org/mailman/listinfo/python-list
; And some would argue that it was wrong to have such a wide definition
> for the truth value of an expression in the first place...
Just out of idle curiosity, what could be the alternatives? Not to evaluate
e.g. strings to "true"? Aren't such conventions as "whatever is
Hi all. I'm trying get data from text field in MySQl 5.0 with my National
characters. Data are stored in utf8 encodings. Here is the script:
import MySQLdb, MySQLdb.cursors
conn = MySQLdb.connect(host='localhost', user='root', passwd='123456',
db='profile_locale')
c = conn.cursor(MySQLdb.cursors.Di
o get common objects of this list. How to do it?
Grzegorz
--
http://mail.python.org/mailman/listinfo/python-list
Hi all. I sending email using standard python modules smtplib, email,
coding email in utf but subject of message is not coded properly. In
subject i use my national characters (polish) and after send i get XX in
place these characters.
Here is the code
Message = email.message_from_string(pMessa
Hello,
Recently I tried to insert some unicode object in utf-8 encoding into
MySQL using MySQLdb, and got MySQL warnings on characters like:
𐎲𐎠𐎥𐎠 i found somewhere in my data. I can't even read them. MySQL
seems to cut the whole string after that characters off, so I get
incomplete data.
After a li
On 18 Sty, 18:15, Kushal Kumaran
wrote:
> 2011/1/18 Grzegorz Śliwiński :
>
> > Hello,
> > Recently I tried to insert some unicode object in utf-8 encoding into
> > MySQL using MySQLdb, and got MySQL warnings on characters like:
> > 𐎲𐎠𐎥𐎠 i found somewhere in m
On 2005-02-27, Przemys?aw Ró?ycki <[EMAIL PROTECTED]> wrote:
> Has anyone used pyallegro? - I want to give allegro library a
> chance - but it seems that python bindings for this library are
> not maintained anymore.
They aren't if you look at the web page. If you look at the CVS
activity you will
Hi.
I'm looking for two specific features in XML libraries. One is two be
able to tell which source file line a tag starts and ends. Say, tag
is located on line 34 column 7, and the matching three
lines later on column 56.
Another feature is to be able to save the processed XML code in a way
th
66 matches
Mail list logo