Re: iteration over non-sequence ,how can I resolve it?

2006-05-28 Thread BJörn Lindqvist
On 28 May 2006 06:20:20 -0700, python <[EMAIL PROTECTED]> wrote: > at line "for j in linkReturned:" , raise an error: > File "C:\pythonProgram\test.py", line 308, in main > for j in linkReturned: > TypeError: iteration over non-sequence > how can I get a list from the return of thread.start()

Re: Using a package like PyInstaller

2006-05-28 Thread LittlePython
"Im 99.999% confident that this will not happen from the .exe file generated by pyinstaller (unless you specify--see link above)." Well I guess that's about as close as any one can get in this business. I have been trying to introduce py into our environment, and have opened a few eyes, however I

Re: iteration over non-sequence ,how can I resolve it?

2006-05-28 Thread python
To BJörn Lindqvist : thank you . how to write the code specifically ?Could you give a example? -- http://mail.python.org/mailman/listinfo/python-list

Re: iteration over non-sequence ,how can I resolve it?

2006-05-28 Thread python
To BJörn Lindqvist : thank you . how to write the code specifically ?Could you give an example? -- http://mail.python.org/mailman/listinfo/python-list

Re: unexpected behaviour for python regexp: caret symbol almost useless?

2006-05-28 Thread Paul McGuire
"conan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This regexp > '' > > works well with 'grep' for matching lines of the kind > > > on a XML .glade file > As Peter Otten has already mentioned, this is the difference between the re "match" and "search" methods. As purely a late

Re: Array? Please help.

2006-05-28 Thread Dr. Pastor
No it is not home work. (I have not did any home work for more than 50 years.) I am a beginner, and just do not see a really proper way to program the question. Thanks anyhow. Scott David Daniels wrote: > Dr. Pastor wrote: > >> I need a row of 127 bytes that I will use as a >> circular buffer. I

Re: dynamic type changing

2006-05-28 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : >>>I'm working on a "TempFile" class that stores the data in memory until >>>it gets larger than a specified threshold (as per PEP 42). Whilst >>>trying to implement it, I've come across some strange behaviour. Can >>>anyone explain this? > > >>>The test case at the

Beginner Python OpenGL difficulties

2006-05-28 Thread jg . campbell . ng
I'm beginning learning Python and OpenGL in Python. Python fine. But difficulties with OpenGL; presumably with the installation of OpenGL. OS = Linux FC5. Python program gl_test.py: from OpenGL.GLUT import * from OpenGL.GLU import * from OpenGL.GL import * name = "Hello, World" height = 400 et

propose extension of mimetypes

2006-05-28 Thread GHUM
Hello, mimetypes lacks the guessing of .svg as image/svg+xml mimetypes.add_type("image/svg+xml",".svg", True) maybe this can be added to python 2.5 standard library Harald -- http://mail.python.org/mailman/listinfo/python-list

Finding a lost PYTHONPATH with find

2006-05-28 Thread John J. Lee
OK, this is really a reminder to myself next time I forget where I set my PYTHONPATH and forget exactly how to invoke the GNU "find" command ;-) Hope somebody else finds it useful too find / -maxdepth 3 -size -100k -type f -exec grep -sli pythonpath '{}' \; The minus in '-100k' (meaning "less t

Re: (mostly-)POSIX regular expressions

2006-05-28 Thread Paddy
maybe this: http://www.pcre.org/pcre.txt and ctypes might work for you? (I was suprised to find out that PCRE supported POSIX but don't know what version it supports or how well). - Pad -- http://mail.python.org/mailman/listinfo/python-list

Re: Array? Please help.

2006-05-28 Thread Scott David Daniels
Dr. Pastor wrote: > Scott David Daniels wrote: >> Dr. Pastor wrote: >>> I need a row of 127 bytes that I will use as a >>> circular buffer. Into the bytes (at unspecified times) >>> a mark (0>> After some time the "buffer" will contain the last 127 marks. >> Sounds a lot like homework. > No it is n

itertools.count() as built-in

2006-05-28 Thread [EMAIL PROTECTED]
Is there any chance of itertools.count() ever becoming one of the built-in functions? It's a wonderful little function and I find myself importing it in every module I write. -Janto -- http://mail.python.org/mailman/listinfo/python-list

Re: (mostly-)POSIX regular expressions

2006-05-28 Thread Sébastien Boisgérault
Very good hint ! I wouldn't have found it alone ... I have to study the doc, but the "THE DFA MATCHING ALGORITHM" may do what I need Obviously, I didn't expect the Perl-Compatible Regular Expressions to implement "an alternative algorithm, provided by the pcre_dfa_exec() function, that operates in

html 2 plain text

2006-05-28 Thread robin
hi, i remember seeing this simple python function which would take raw html and output the content (body?) of the page as plain text (no <..> tags etc) i have been looking at htmllib and htmlparser but this all seems to complicated for what i'm looking for. i just need the main text in the body of

Fancy GUI with Python

2006-05-28 Thread 63q2o4i02
Hi all. I just downloaded and installed the new Office suite from MS with their new 'ribbon' based UI. I think it's pretty cool and AFT* for a new UI paradigm. I hope it sticks. Anyway, I'm wondering how to implement a gui like this with Python. I don't think wx or qt or gtk or tkinter support

Re: Array? Please help.

2006-05-28 Thread Scott David Daniels
Scott David Daniels wrote: > Dr. Pastor wrote: >> Scott David Daniels wrote: >>> Dr. Pastor wrote: I need a row of 127 bytes that I will use as a circular buffer. Into the bytes (at unspecified times) a mark (0>>> After some time the "buffer" will contain the last 127 marks. >>> Soun

Re: send an email with picture/rich text format in the body

2006-05-28 Thread Ten
On Sunday 28 May 2006 07:27, anya wrote: > Acctualy there is a solution: > see http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473810 > (thanks darrin massena for sharing) > > and , if you will set all the neccessary parametrs, it won't be > recognized as a > spam, > thanks Ahah - a sligh

Re: html 2 plain text

2006-05-28 Thread Faber
robin wrote: > i remember seeing this simple python function which would take raw html > and output the content (body?) of the page as plain text (no <..> tags > etc) > i have been looking at htmllib and htmlparser but this all seems to > complicated for what i'm looking for. i just need the main

Re: Fancy GUI with Python

2006-05-28 Thread Ten
On Sunday 28 May 2006 19:25, [EMAIL PROTECTED] wrote: > Hi all. I just downloaded and installed the new Office suite from MS > with their new 'ribbon' based UI. I think it's pretty cool and AFT* > for a new UI paradigm. I hope it sticks. > > Anyway, I'm wondering how to implement a gui like this

why not in python 2.4.3

2006-05-28 Thread Rocco
hi I made the upgrade to python 2.4.3 from 2.4.2. I want to take from google news some atom feeds with a funtion like this import urllib2 def takefeed(url): request=urllib2.Request(url) request.add_header('User-Agent', 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT') opener

Re: Serializing / Unserializing datetime

2006-05-28 Thread Brendan
Thanks John. I've discovered that datetime.strptime will be available in 2.5, (http://docs.python.org/dev/whatsnew/modules.html) but your example will work in the meantime. BJ -- http://mail.python.org/mailman/listinfo/python-list

Re: using FFTW3 with Numeric on Windows

2006-05-28 Thread Robert Kern
sven koenig wrote: > hi list, > as the subject says, I'm trying to find a way to use > FFTW3 with Numeric arrays. > I'm not very familiar with C(++) - I think ctypes is the > way to go, but I don't really have a clue how to do it. > Has somebody already tried this? scipy can use FFTW3 as its FFT r

Re: why not in python 2.4.3

2006-05-28 Thread Carl Banks
Rocco wrote: > hi > I made the upgrade to python 2.4.3 from 2.4.2. > I want to take from google news some atom feeds with a funtion like > this > import urllib2 > def takefeed(url): > request=urllib2.Request(url) > request.add_header('User-Agent', 'Mozilla/4.0 (compatible; MSIE 5.5; >

Re: html 2 plain text

2006-05-28 Thread robin
lucks yummy. merci beaucoup. robin -- http://mail.python.org/mailman/listinfo/python-list

q - including manpages in setup.py

2006-05-28 Thread aum
Hi, What is the best way to incorporate manpages in a distutils setup.py script? Is there any distro-independent way to find the most appropriate place to put the manpages? For instance, /usr/man/? /usr/share/man? /usr/local/man? /usr/local/share/man? Also - I've got .html conversions of the ma

Re: Serializing / Unserializing datetime

2006-05-28 Thread Gerard Flanagan
Brendan wrote: > Thanks John. I've discovered that datetime.strptime will be available > in 2.5, (http://docs.python.org/dev/whatsnew/modules.html) but your > example will work in the meantime. > > BJ I don't think it's what you want but I had the following on file - it uses time.strptime() whic

Re: Fancy GUI with Python

2006-05-28 Thread Ravi Teja
> Hi all. I just downloaded and installed the new Office suite from MS > with their new 'ribbon' based UI. I think it's pretty cool and AFT* > for a new UI paradigm. I hope it sticks. > Anyway, I'm wondering how to implement a gui like this with Python. I haven't seen their new Office suit (ap

Re: html 2 plain text

2006-05-28 Thread Ravi Teja
> i remember seeing this simple python function which would take raw html > and output the content (body?) of the page as plain text (no <..> tags > etc) http://www.aaronsw.com/2002/html2text/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Array? Please help.

2006-05-28 Thread Dr. Pastor
Many thanks to you all. (Extra thanks to Mr. Daniels.) Dr. Pastor wrote: > I need a row of 127 bytes that I will use as a > circular buffer. Into the bytes (at unspecified times) > a mark (0 After some time the "buffer" will contain the last 127 marks. > (A pointer will point to the next byte to w

Re: Array? Please help.

2006-05-28 Thread Diez B. Roggisch
George Sakkis schrieb: > Diez B. Roggisch wrote: >> Dr. Pastor schrieb: >>> I need a row of 127 bytes that I will use as a >>> circular buffer. Into the bytes (at unspecified times) >>> a mark (0>> After some time the "buffer" will contain the last 127 marks. >>> (A pointer will point to the next b

HTMLParser chokes on bad end tag in comment

2006-05-28 Thread Rene Pijlman
The code below results in an exception (Python 2.4.2): HTMLParser.HTMLParseError: bad end tag: "", at line 4, column 6 Should it? The end tag it chokes on is in comment, isn't it? import HTMLParser HTMLParser.HTMLParser().feed(""" """) -- René Pijlman -- htt

Re: why not in python 2.4.3

2006-05-28 Thread Rene Pijlman
Rocco: >but does not work with 2.4.3. Define "does not work". -- René Pijlman -- http://mail.python.org/mailman/listinfo/python-list

Re: why not in python 2.4.3

2006-05-28 Thread Rocco
This is the problem when I run the function this is the result from 2.3.5 >>> print rss http://purl.org/atom/ns#";>NFE/1.0Google News Italiahttp://news.google.it/"/>Google News ItaliaGoogle Inc.[EMAIL PROTECTED]©2006 Google2006-05-28T19:09:13+00:00 Benedetto XVI: Wojtyla santo subito - LibertÃ

Re: Using a package like PyInstaller

2006-05-28 Thread James Stroud
LittlePython wrote: > "Im 99.999% confident that this will not happen from the .exe file > generated by pyinstaller (unless you specify--see link above)." > > Well I guess that's about as close as any one can get in this business. I > have been trying to introduce py into our environment, and have

Re: (mostly-)POSIX regular expressions

2006-05-28 Thread Sébastien Boisgérault
Paddy a écrit : > maybe this: http://www.pcre.org/pcre.txt and ctypes might work for you? Well finally, it doesn't fit. What I need is a "longest match" policy in patterns like "(a)|(b)|(c)" and NOT a "left-to-right" policy. Additionaly, I need to be able to obtain the matched ("captured") subst

Re: Serializing / Unserializing datetime

2006-05-28 Thread John Machin
On 29/05/2006 5:23 AM, Brendan wrote: > Thanks John. I've discovered that datetime.strptime will be available > in 2.5, (http://docs.python.org/dev/whatsnew/modules.html) but your > example will work in the meantime. > Only in the meantime? I would thought there was a good chance it would cont

pygame and wxpython

2006-05-28 Thread DK
I'm somewhat new to Python but not to programming. I just want to know if it's possible to have a SINGLE wxPython frame containing two sections where one will contain widgets and the other will host an animation done using PyGame. More specifically, I want to have a list of names of animations on

Re: Serializing / Unserializing datetime

2006-05-28 Thread John Machin
On 29/05/2006 6:27 AM, Gerard Flanagan wrote: > I don't think it's what you want but I had the following on file - it > uses time.strptime() which I didn't know there was a problem with. In 2.3, time.strptime became a pure-Python routine, thus losing its dependency on the existence and correctn

Re: (mostly-)POSIX regular expressions

2006-05-28 Thread John Machin
On 29/05/2006 7:46 AM, Sébastien Boisgérault wrote: > Paddy a écrit : > >> maybe this: http://www.pcre.org/pcre.txt and ctypes might work for you? > > Well finally, it doesn't fit. What I need is a "longest match" policy > in > patterns like "(a)|(b)|(c)" and NOT a "left-to-right" policy. > Addit

Re: Using a package like PyInstaller

2006-05-28 Thread LittlePython
Thx for the tip ... I'll give it a go "James Stroud" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > LittlePython wrote: > > "Im 99.999% confident that this will not happen from the .exe file > > generated by pyinstaller (unless you specify--see link above)." > > > > Well I guess th

Re: itertools.count() as built-in

2006-05-28 Thread John Machin
On 29/05/2006 4:14 AM, [EMAIL PROTECTED] wrote: > Is there any chance of itertools.count() ever becoming one of the > built-in functions? It's a wonderful little function and I find myself > importing it in every module I write. > Every module?? Do you use any/many other itertools functions? Care

Re: pygame and wxpython

2006-05-28 Thread André
DK wrote: > I'm somewhat new to Python but not to programming. > > I just want to know if it's possible to have a SINGLE wxPython frame > containing two sections where one will contain widgets and the other > will host an animation done using PyGame. > > More specifically, I want to have a list of

Re: send an email with picture/rich text format in the body

2006-05-28 Thread Ben Finney
"anya" <[EMAIL PROTECTED]> writes: > Acctualy there is a solution: > see http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473810 Again, sending anything but plain text as the message body ensures that your message is unreadable to a large number of people using a variety of software. It's

Re: pygame and wxpython

2006-05-28 Thread Terry Reedy
"DK" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm somewhat new to Python but not to programming. > > I just want to know if it's possible to have a SINGLE wxPython frame > containing two sections where one will contain widgets and the other > will host an animation done using

Re: itertools.count() as built-in

2006-05-28 Thread [EMAIL PROTECTED]
I have a project of around 6000 lines where I used count() 20 times. It has 14 modules, 10 of which I needed an explicit import. Many of the usages are of the form: for item, n in zip(items, count(N)): dostuff Around half of these are due to using pylab.subplot(x,y.n), which requires values for

Re: itertools.count() as built-in

2006-05-28 Thread [EMAIL PROTECTED]
Oh and I use repeat, chain and cycle quite a bit. But I don't mind importing them as they are usually limited to one module. -- http://mail.python.org/mailman/listinfo/python-list

Re: itertools.count() as built-in

2006-05-28 Thread Alex Martelli
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have a project of around 6000 lines where I used count() 20 times. It > has 14 modules, 10 of which I needed an explicit import. > > Many of the usages are of the form: > > for item, n in zip(items, count(N)): > dostuff > > Around half of these

pyswt SWT.NULL

2006-05-28 Thread 3rdshiftcoder
hi- i am trying to make a pyswt gui and when it gets to this line: colType = Combo(self.shell, SWT.NULL) i get: colType = Combo(self.shell, SWT.NULL) AttributeError: NULL when using swt with java i had to have lots of imports at the beginning of a swt file. are they not needed when using pyswt

Re: pyswt SWT.NULL

2006-05-28 Thread 3rdshiftcoder
I got it. it is SWT.None thanks, jim "3rdshiftcoder" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi- > > i am trying to make a pyswt gui and when it gets to this line: > colType = Combo(self.shell, SWT.NULL) > > i get: > colType = Combo(self.shell, SWT.NULL) > AttributeError:

Re: itertools.count() as built-in

2006-05-28 Thread John Machin
On 29/05/2006 9:50 AM, [EMAIL PROTECTED] wrote: > I have a project of around 6000 lines where I used count() 20 times. It > has 14 modules, 10 of which I needed an explicit import. > > Many of the usages are of the form: > > for item, n in zip(items, count(N)): > dostuff > > Around half of thes

Re: Best way to check that a process is running on a Unix system?

2006-05-28 Thread Eriol
Arthur Pemberton wrote: > What is the best way to check that a process is running (or better yet > number of instances) based on the name of the process? Would have to > work on a unix/linux system. Did you try pidof? Bye, Eriol -- http://mail.python.org/mailman/listinfo/python-list

Re: why not in python 2.4.3

2006-05-28 Thread Serge Orlov
Rocco wrote: > >>> import sys > >>> sys.getdefaultencoding() > 'latin_1' Don't change default encoding. It should be always ascii. -- http://mail.python.org/mailman/listinfo/python-list

Re: Array? Please help.

2006-05-28 Thread George Sakkis
Diez B. Roggisch wrote: > George Sakkis schrieb: > > Diez B. Roggisch wrote: > >> Dr. Pastor schrieb: > >>> I need a row of 127 bytes that I will use as a > >>> circular buffer. Into the bytes (at unspecified times) > >>> a mark (0 >>> After some time the "buffer" will contain the last 127 marks.

Re: generating random passwords ... for a csv file with user details

2006-05-28 Thread k.i.n.g.
Hi ALL, I am sorry for not mentioning that I am new to python and scripting. How can I add the above script to handle csv file. I want the script to generate passwords in the passwords column/row in a csv file. userid,realname,dateofB,passwd The script should read the userid and genrate the pass

Re: Method Delegation To Subinstances

2006-05-28 Thread Cloudthunder
I could then fill the getattr function with different conditional statements as needed, cool. Thanks Steve!On 5/27/06, Steve Holden < [EMAIL PROTECTED]> wrote:Cloudthunder wrote:> In the example:> > class Boo:> def __init__(self, parent):> self.parent = parent> print self.parent

Re: q - including manpages in setup.py

2006-05-28 Thread Serge Orlov
aum wrote: > Hi, > > What is the best way to incorporate manpages in a distutils setup.py > script? > > Is there any distro-independent way to find the most appropriate place to > put the manpages? > For instance, /usr/man/? /usr/share/man? /usr/local/man? > /usr/local/share/man? What do you mean

Re: iteration over non-sequence ,how can I resolve it?

2006-05-28 Thread Serge Orlov
python wrote: > To BJörn Lindqvist : > thank you . how to write the code specifically ?Could you give a > example? Use Queue module: import threading from Queue import Queue class PrintThread(threading.Thread): def __init__(self, urlList, results_queue): threading.Thread.__init__(self)

dynamically loaded libraries

2006-05-28 Thread mhearne808
I have a question about how dynamically loaded C++ modules work, which I will phrase as a hypothetical scenario involving the Numeric module. Please understand that I don't really care about Numeric per se, it's just a useful example of a module that defines a generally useful data type. Let's sa

Re: dynamically loaded libraries

2006-05-28 Thread Robert Kern
mhearne808 wrote: > I have a question about how dynamically loaded C++ modules work, which > I will phrase as a hypothetical scenario involving the Numeric module. > Please understand that I don't really care about Numeric per se, it's > just a useful example of a module that defines a generally u

Re: generating random passwords ... for a csv file with user details

2006-05-28 Thread Jon Clements
Something like: import csv in_csv=csv.reader( file('your INPUT filenamehere.csv') ) out_csv=csv.writer( file('your OUPUT filenamehere.csv','wb') ) ## If you have a header record on your input file, then out_csv.writerow( in_csv.next() ) ## Iterate over your input file for row in in_csv: # Row

Re: Python for my mum

2006-05-28 Thread carol . chisholm
Many thanks for the helpful links. I don't think she's going to start programming, but at least she can run her French grammar program. -- http://mail.python.org/mailman/listinfo/python-list

Re: Large Dictionaries

2006-05-28 Thread Thomas Ganss
Klaas schrieb: > 4. Insert your keys in sorted order. This advice is questionable - it depends on the at least on the db vendor and probably sometimes on the sort method, if inserting pre-sorted values is better. My gut feeling on this matter is: IF the insert times of pre-sorted values is far be

deleting item from ListCtrl by pop-up menu

2006-05-28 Thread sendhil kumar
hi all, i need more information on the EVT_LIST_DELETE_ITEM() for a list ctrl! iam not able to delete the selected list item from the popup menu...below i have given the part of the code ... im using popup menu... wher am i wrong any suggestions wud b of great help... list.Bind(wx.EVT_LIST_IT

Need C# Coding for MD5 Algorithm...

2006-05-28 Thread Charleees
Hi all, I need C# code for Implementing MD5 Algorithm.. Hope all would have heard of MD5 Algorith... Does any one have the C# coding for that Algorithm.. please Send... ITs URgent. Thanks In Advance to all... With Regards, Sanjay.C -- http://mail.python.org/mailman/lis

Re: HTMLParser chokes on bad end tag in comment

2006-05-28 Thread Fredrik Lundh
Rene Pijlman wrote: > The code below results in an exception (Python 2.4.2): > > HTMLParser.HTMLParseError: bad end tag: "", at line 4, > column 6 > > Should it? The end tag it chokes on is in comment, isn't it? no. STYLE and SCRIPT elements contain character data, not parsed character data,

Re: Need C# Coding for MD5 Algorithm...

2006-05-28 Thread Ravi Teja
> I need C# code for Implementing MD5 Algorithm. So ask in a C# group. Python's is here http://docs.python.org/lib/module-md5.html > please Send... ITs URgent http://www.catb.org/~esr/faqs/smart-questions.html#urgent -- http://mail.python.org/mailman/listinfo/python-list

generating random passwords ... for a csv file with user details

2006-05-28 Thread k.i.n.g.
Hi, I have a csv file which in taken as the input file for adding users in my linux mail server with the format userid,fullname,passwword,dateofbith Now I have to write a script to generate random password in the password field for each user. A simple algorithm is sufficient for passwords I bei

Re: Pyrex speed

2006-05-28 Thread [EMAIL PROTECTED]
The stuff you do are not representative of 100% of programming conducted in the world. Not even 90% and probably not even 50% of programming work is similar to what you do. The fact you never use sophisticated math doesn't mean this guy doesn't either. Personally, I've used pyrex a lot. And it was

Re: dynamic type changing

2006-05-28 Thread andychambers2002
>> I'm working on a "TempFile" class that stores the data in memory until >> it gets larger than a specified threshold (as per PEP 42). Whilst >> trying to implement it, I've come across some strange behaviour. Can >> anyone explain this? >> The test case at the bottom starts a TempFile at size

Re: generating random passwords ... for a csv file with user details

2006-05-28 Thread andychambers2002
import random def rand_str(len): chars = ''.join(['abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', '1234567890', '_+']) # plus whatever additional characters you want return ''.join([random.choice(chars) for i in ran

Re: Generating random passwords ... for a csv file with user details

2006-05-28 Thread Klaus Alexander Seistrup
Kanthi skrev: > I have a csv file which in taken as the input file for adding > users in my linux mail server with the format > > userid,fullname,passwword,dateofbith > > Now I have to write a script to generate random password in the > password field for each user. A simple algorithm is sufficie

Re: access serial port in python

2006-05-28 Thread Ingo Haase
google for win32serialport.py may be this is what you want I.Haase -- http://mail.python.org/mailman/listinfo/python-list

Re: starting some Python script from C#

2006-05-28 Thread tatamata
Hello. I tried to implement ypour suggestion, but an error apears: "Exception System.ComponentModel.Win32Exception was thrown in debugee: The specified executable is not a valid Win32 application. StartWithCreateProcess() Start() Start() Main() - c:\Documents and Settings\Zlatko\My Documents\Sharp

any advanced table module for wxpython?

2006-05-28 Thread oyster
Just like excel or vb does. A grid always looks like a normal grid, and can acts as a normal gird, where we can input some text. but when we click the right-most part, this grid becomes a choice widget, so we can choose some pre-defined gizmo; or it becomes a file-selector, and there is a button wi

Re: Running External Commands + Seeing when they are Finished

2006-05-28 Thread Miki
Hello Tommy, Use the subprocess module (http://docs.python.org/lib/module-subprocess.html). for app in MY_APPLICATION_LIST: pipe = Popen(app) pipe.wait() HTH, http://pythonwise.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: generating random passwords ... for a csv file with user details

2006-05-28 Thread Sybren Stuvel
k.i.n.g. enlightened us with: > Now I have to write a script to generate random password in the > password field for each user. A simple algorithm is sufficient for > passwords Check out the source of pwsafe, it has a great password generator. It can generate with different lengths, based on amoun

Re: Linking onClick event to other controls on the Frame

2006-05-28 Thread Miki
Hello Harles, Please define "link" - is it bind event, get information from control, ...? If I'm guessing the you want to the the value of each control then you need to store a reference to this control and call the method that gets the value of each control. (GetValue() for most, GetStringSelecti

Re: Speed up this code?

2006-05-28 Thread Miki
Hello Martin, You can use gmpy (http://gmpy.sourceforge.net/) def primes(): n = 2 while 1: yield long(n) n = gmpy.next_prime(n) HTH, Miki http://pythonwise.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: starting some Python script from C#

2006-05-28 Thread Gerard Flanagan
> "Gerard Flanagan" <[EMAIL PROTECTED]> je napisao u poruci interesnoj > grupi:[EMAIL PROTECTED] > > tatamata wrote: > >> Hello. > >> > >> How can I run some Python script within C# program? > >> > > > > - > >

unexpected behaviour for python regexp: caret symbol almost useless?

2006-05-28 Thread conan
This regexp '' works well with 'grep' for matching lines of the kind on a XML .glade file However that's not true for the re module in python, since this one takes the regexp as if were specified this way: '^' For some reason regexp on python decide to match from the start of the line, no matt

Re: unexpected behaviour for python regexp: caret symbol almost useless?

2006-05-28 Thread Peter Otten
conan wrote: > The thing is i should expected to have to put caret explicitly to tell > the regexp to match at the start of the line, something like: > r'^' > however python regexp is taking care of that for me. This is not a > desired behaviour for what i know about regexp, but maybe i'm missing

Re: dynamic type changing

2006-05-28 Thread David C.Ullrich
On 28 May 2006 01:07:16 -0700, [EMAIL PROTECTED] wrote: >>> I'm working on a "TempFile" class that stores the data in memory until >>> it gets larger than a specified threshold (as per PEP 42). Whilst >>> trying to implement it, I've come across some strange behaviour. Can >>> anyone explain thi

iteration over non-sequence ,how can I resolve it?

2006-05-28 Thread python
at line "for j in linkReturned:" , raise an error: File "C:\pythonProgram\test.py", line 308, in main for j in linkReturned: TypeError: iteration over non-sequence how can I get a list from the return of thread.start() ? below is the codes: class PrintThread(threading.Thread): def __init__

using FFTW3 with Numeric on Windows

2006-05-28 Thread sven koenig
hi list, as the subject says, I'm trying to find a way to use FFTW3 with Numeric arrays. I'm not very familiar with C(++) - I think ctypes is the way to go, but I don't really have a clue how to do it. Has somebody already tried this? thx, sven. -- http://mail.python.org/mailman/listinfo/python-