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()
"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
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
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
"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
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
[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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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;
>
lucks yummy. merci beaucoup.
robin
--
http://mail.python.org/mailman/listinfo/python-list
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
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
> 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
> 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
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
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
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
Rocco:
>but does not work with 2.4.3.
Define "does not work".
--
René Pijlman
--
http://mail.python.org/mailman/listinfo/python-list
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Ã
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
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
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
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
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
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
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
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
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
"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
"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
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
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
[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
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
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:
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
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
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
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.
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
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
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
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)
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
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
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
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
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
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
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
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,
> 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
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
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
>> 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
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
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
google for win32serialport.py
may be this is what you want
I.Haase
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
> "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?
> >>
> >
> > -
> >
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
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
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
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__
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-
85 matches
Mail list logo