En Sat, 26 Apr 2008 20:50:57 -0300, <[EMAIL PROTECTED]> escribió:
> ok.. I finally made something that works.. Please let me know what you
> think:
>
def lines(letters):
> fin = open('words.txt')
> count = 0
> rescount = 0 # count the number of results
> results = ""
En Sun, 27 Apr 2008 19:13:06 -0300, <[EMAIL PROTECTED]> escribió:
> No you didnt misunderstand the situation, i think i have confused
> matters though!! When Ive got it working my program will read the data
> within the file. But obviously for it to do that it needs to know
> where the file is, he
fostex ds-8 digital patch bay
http://crack.cracksofts.com
--
http://mail.python.org/mailman/listinfo/python-list
crack drug
http://crack.cracksofts.com
--
http://mail.python.org/mailman/listinfo/python-list
diskeeper 2007 crack
http://crack.cracksofts.com
--
http://mail.python.org/mailman/listinfo/python-list
keygen studio
http://crack.cracksofts.com
--
http://mail.python.org/mailman/listinfo/python-list
stellar phoenix crack
http://crack.cracksofts.com
--
http://mail.python.org/mailman/listinfo/python-list
spy sweeper crack
http://crack.cracksofts.com
--
http://mail.python.org/mailman/listinfo/python-list
mystery the lottery ticket crack
http://crack.cracksofts.com
--
http://mail.python.org/mailman/listinfo/python-list
quickbooks premier 2007 registration crack
http://crack.cracksofts.com
--
http://mail.python.org/mailman/listinfo/python-list
fsuipc crack
http://crack.cracksofts.com
--
http://mail.python.org/mailman/listinfo/python-list
1click dvd copy pro crack
http://crack.cracksofts.com
--
http://mail.python.org/mailman/listinfo/python-list
software utility to crack games
http://crack.cracksofts.com
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
I want to store the class instance object variables persistenlty in one file
so that other file can also access for some filtering. I tired doing this
using the shelve module.
*Code:*
class A:
pass
import shelve
filename = 'test.db'
d = shelve.open(filename)
a = A()
print a
d['1'] =
On Apr 27, 11:29 pm, "telus news" <[EMAIL PROTECTED]> wrote:
> Just so happens that I am partially finished a gui file backup app. I have
> many backup CDs and I wanted to consolidate them. You know, all image files
> in one dir, all install files in another dir, etc. My app scans the input
> dir t
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On Apr 26, 7:25 am, Irmen de Jong <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote:
> Until now, I've been
> doing this little trick:
> data = client.recv(256)
> new = data
> while len(new) == 256:
> new = client.recv(256)
>
In article
<[EMAIL PROTECTED]>,
blaine <[EMAIL PROTECTED]> wrote:
> Hey everyone,
> For the regular expression gurus...
>
> I'm trying to write a string matching algorithm for genomic
> sequences.
I strongly suggest you stop trying to reinvent the wheel and read up on the
Biopython project
On Apr 27, 10:24 pm, [EMAIL PROTECTED] wrote:
> On Apr 27, 8:31 pm, blaine <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hey everyone,
> > For the regular expression gurus...
>
> > I'm trying to write a string matching algorithm for genomic
> > sequences. I'm pulling out Genes from a large genomic patter
On Apr 27, 8:31 pm, blaine <[EMAIL PROTECTED]> wrote:
> Hey everyone,
> For the regular expression gurus...
>
> I'm trying to write a string matching algorithm for genomic
> sequences. I'm pulling out Genes from a large genomic pattern, with
> certain start and stop codons on either side. This
Gilles Ganault <[EMAIL PROTECTED]> writes:
> Hello
>
> Out of curiosity, if I recompile a Python (wxPython) app with
> py2exe, can I have customers just download the latest .exe, or are
> there dependencies that require downloading the whole thing again?
It will depend on what you changed i
Aaron Watters <[EMAIL PROTECTED]> writes:
> I think it's outrageous to change the basic usage for things like
> dictionary.keys() when it would be so easy to leave the old
> definition and add a new method like dictionary.keySet().
Except that name would be outrageously non-conformant with PEP 8.
On Apr 27, 9:18 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> An existing application of an existing dict-like
> object will continue to work just fine in Python 3,
> right?
Unless I mix my psuedodicts with standard dicts
in the same list, for example, or pass them to
functions intended to a
Hey everyone,
For the regular expression gurus...
I'm trying to write a string matching algorithm for genomic
sequences. I'm pulling out Genes from a large genomic pattern, with
certain start and stop codons on either side. This is simple
enough... for example:
start = AUG stop=AGG
BBAUGW
> This would save me personally a great deal of
> painful tedium, I suspect (especially considering
> that I've implemented a lot of "dictionary-like"
> objects -- so I'll have to change the way their
> "keys" method works -- or something -- I haven't
> figured it out yet...).
[...]
> In C# and jav
On Apr 27, 4:54 pm, n00m <[EMAIL PROTECTED]> wrote:
> Another PC, another OS (Linux) and another compiler C++ (g++ 4.0.0-8)
>
> Compare 2 my latest submissions:http://www.spoj.pl/status/SBANK,zzz/
>
> times: 1.32s and 0.60s
>
> Submitted codes:
>
> import sys
> z=sys.stdin.readlines()
> print z[5]
oops, forgot to post this to the list. sorry.
On Sun, Apr 27, 2008 at 8:41 PM, Benjamin Kaplan <[EMAIL PROTECTED]> wrote:
>
> On Sun, Apr 27, 2008 at 7:01 PM, Don Hanlen <[EMAIL PROTECTED]> wrote:
> > IDLE internal error in runcode()
> > Traceback (most recent call last):
> > File "C:\PYTHON
> shame
> 1 a. a painful emotion caused by consciousness of guilt,
> shortcoming, or impropriety
> 2 a condition of humiliating disgrace or disrepute
Sigh. This is stupid (in the usual usage), but
I must reply because I can't control myself. I meant
usage 5:
"something regrettable, unfort
On Apr 27, 10:49 am, Lie <[EMAIL PROTECTED]> wrote:
> On Apr 27, 11:01 am, John Henry <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Apr 26, 6:08 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
>
> > > > def f1():
> > > >print "In f1"
>
> > > > def f3():
> > > >print "In f3"
>
> > > > def others(
IDLE internal error in runcode()
Traceback (most recent call last):
File "C:\PYTHON25\lib\idlelib\rpc.py", line 235, in asyncqueue
self.putmessage((seq, request))
File "C:\PYTHON25\lib\idlelib\rpc.py", line 332, in putmessage
n = self.sock.send(s[:BUFSIZE])
error: (10035, 'The socket op
Ixiaus <[EMAIL PROTECTED]> wrote:
> I was curious (and have spent an enormous amount of time on Google
> trying to answer it for myself) if Python has anything remotely
> similar to PHP's SPL __autoload() for loading classes on the fly??
>
> After digging through docs I feel doubtful there is suc
Have you been "Idol"ed and "Survivor"ed to death? Are you tired of Tiger
winning just about every golf tournament he enters? Are you sick to deatch
of the circus the Democratic primary race has become? Is it too early in
the season to get excited about the prospect of a Red Line World Series
bet
On Apr 27, 5:26 pm, Dennis <[EMAIL PROTECTED]> wrote:
> Dennis wrote:
> > Could anyone tell me how this line of code is working:
>
> > filter(lambda x: x in string.letters, text)
>
> > I understand that it's filtering the contents of the variable text and I
> > know that lambda is a kind of embedde
I didn't give up after posting and managed to grasp this whole lambda
thing! No need to respond now :-) I understood it the moment I tried to
type out, instead of just thinking in my head, what was going on as a
normal function.
Dennis wrote:
Could anyone tell me how this line of code is wor
No you didnt misunderstand the situation, i think i have confused
matters though!! When Ive got it working my program will read the data
within the file. But obviously for it to do that it needs to know
where the file is, hence the whole discussion. However to test things
were working, just with re
Could anyone tell me how this line of code is working:
filter(lambda x: x in string.letters, text)
I understand that it's filtering the contents of the variable text and I
know that lambda is a kind of embedded function.
What I'd like to know is how it would be written if it was a normal
fun
David a écrit :
Also, I can't find any reference to cookies or sessions in the webpy
online docs. Maybe it's possible to bolt on support with Python's
Cookie module.
The web.py cookbook describes how to use sessions and cookies:
http://webpy.org/cookbook
Regards,
Olivier.
--
http://mail.pytho
barronmo wrote:
> I haven't found a way from within python to print f. I'm sure
> there it is something simple but I've been searching for a couple
> weeks now with no luck.
Tried some searching?
http://wiki.wxpython.org/Printing
HTH&Regards,
Björn
--
BOFH excuse #374:
It's the InterNIC's
bullockbefriending bard wrote:
> 1) The data for the race about to start updates every (say) 15
> seconds, and the data for earlier and later races updates only
> every
> (say) 5 minutes. There is no point for me to be hammering the
> server with requests every 15 seconds for data for races after
On 2008-04-27 19:28, Martin v. Löwis wrote:
Post a patch to bugs.python.org, optionally also post a message
referring to that patch to python-dev.
i've created an issue at [1]. let's hope for the best!
thanks for your support
webograph
[1] http://bugs.python.org/issue2706
--
http://mail.pytho
On Apr 27, 12:23 pm, Fred Pacquier <[EMAIL PROTECTED]> wrote:
> John Henry <[EMAIL PROTECTED]> said :
>
> > Welcome to the modernized world of Pythoncard!!!
>
> Hey, that's really neat !
>
> I remember dabbling in Pythoncard in the early days, some years ago, it was
> a very interesting project. I
On Apr 27, 11:36 am, Ron Stephens <[EMAIL PROTECTED]> wrote:
> John,
>
> This is very interesting! Please do make this available. I love
> PythonCard, but I am doing mainly web programming these days.
>
> I will mention this on my next podcast. Can you do a slider?
>
> Ron Stephens
> Python411www.a
On Apr 27, 10:34 pm, Ixiaus <[EMAIL PROTECTED]> wrote:
> I was curious (and have spent an enormous amount of time on Google
> trying to answer it for myself) if Python has anything remotely
> similar to PHP's SPL __autoload() for loading classes on the fly??
>
> After digging through docs I feel do
"Terry Reedy" <[EMAIL PROTECTED]> writes:
> Can this alternative be made easier by adding a context manager to gc
> module to use with 'with' statements? Something like
>
> with gc.delay() as dummy:
>
That sonuds worth adding as a hack, but really I hope there can be
an improved gc someday.
Another PC, another OS (Linux) and another compiler C++ (g++ 4.0.0-8)
Compare 2 my latest submissions: http://www.spoj.pl/status/SBANK,zzz/
times: 1.32s and 0.60s
Submitted codes:
import sys
z=sys.stdin.readlines()
print z[5]
#include
#include
#include
#include
using namespace std;
vect
On Apr 27, 8:15 am, [EMAIL PROTECTED] wrote:
> Hi all,
>
> I recently updated os x from python 2.4 to 2.5 (from python.org) and
> in doing so I lost my old python path entries. Python 2.4 was
> installed using fink. Now when I do:
>
> import sys
> print sys.path
>
> my old site-packages directory
I was curious (and have spent an enormous amount of time on Google
trying to answer it for myself) if Python has anything remotely
similar to PHP's SPL __autoload() for loading classes on the fly??
After digging through docs I feel doubtful there is such a language
feature, but, it is possible I m
I am new to this group so 'Hello All'
I have a PC which is running linux and in it have installed a digital
satellite card. I would like to write some software to access the card,
tune it and bring back video. Basically a home brew DVB-s application.
Being a non/new programmer (apart from some b
"Dieter Maurer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| We observed similar very bad behaviour -- in a Web application server.
| Apparently, the standard behaviour is far from optimal when the
| system contains a large number of objects and occationally, large
| numbers of o
John Henry <[EMAIL PROTECTED]> said :
> Welcome to the modernized world of Pythoncard!!!
Hey, that's really neat !
I remember dabbling in Pythoncard in the early days, some years ago, it was
a very interesting project. I gave it up eventually, partly because it
seemed somewhat abandoned (I see
> Tempting thought, but one of the problems with this kind of horse
> racing tote data is that a lot of it is for combinations of runners
> rather than single runners. Whilst there might be (say) 14 horses in a
> race, there are 91 quinella price combinations (1-2 through 13-14,
> i.e. the 2-s
Lie wrote:
> On Apr 27, 6:28�am, n00m <[EMAIL PROTECTED]> wrote:
> > No so simple, guys.
> > E.g., I can't solve (in Python) this:http://www.spoj.pl/problems/INTEST/
> > Keep getting TLE (time limit exceeded). Any ideas? After all, it's
> > weekend.
> >
> > 450. Enormous Input Test
> > Problem co
> 3) I need to dump this data (for all races, not just current about to
> start race) to text files, store it as BLOBs in a DB *and* update real
> time display in a wxpython windowed client.
A few important questions:
1) How real-time must the display be? (should update immediately after
you g
Zethex <[EMAIL PROTECTED]> writes:
> Thank you a lot!
>
> Another quick couple of questions.
>
> How can i make it so it removes special operators such as ? ! or doesnt
> include them?
As you are doing lots of string manipulations, I advise you to read
the section of the python documentation on s
On Apr 26, 7:25 am, Irmen de Jong <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Until now, I've been
> > doing this little trick:
>
> > data = client.recv(256)
> > new = data
> > while len(new) == 256:
> > new = client.recv(256)
> > data += new
>
> Are you aware that recv() will
John,
This is very interesting! Please do make this available. I love
PythonCard, but I am doing mainly web programming these days.
I will mention this on my next podcast. Can you do a slider?
Ron Stephens
Python411 www.awaretek.com/python/index.html
--
http://mail.python.org/mailman/listinfo/py
On Apr 27, 6:28 am, n00m <[EMAIL PROTECTED]> wrote:
> No so simple, guys.
> E.g., I can't solve (in Python) this:http://www.spoj.pl/problems/INTEST/
> Keep getting TLE (time limit exceeded). Any ideas? After all, it's
> weekend.
>
> 450. Enormous Input Test
> Problem code: INTEST
>
> The purpose of
Just so happens that I am partially finished a gui file backup app. I have
many backup CDs and I wanted to consolidate them. You know, all image files
in one dir, all install files in another dir, etc. My app scans the input
dir tree and displays all file extensions that it finds. You can then r
On Apr 27, 8:21 pm, [EMAIL PROTECTED] wrote:
> Yep, thats pretty much exactly what i had done, those exact settings,
> and it still doesnt work. As i said i looked at the other keys to
> check i had done it right and a i said the settings are fine because i
> can send the file to python.exe and it
Thank you a lot!
Another quick couple of questions.
How can i make it so it removes special operators such as ? ! or doesnt
include them?
and
I need to lowercase the words so should i use sentence = sentence.lower()?
--
View this message in context:
http://www.nabble.com/Mapping-and-Filterin
Thank you for the help so far.
Another quick question, how can I remove the special characters such as !
and ?.
I also need to lowercase the words so should i use sentence =
sentence.lower() ?
Thank you
--
View this message in context:
http://www.nabble.com/Mapping-and-Filtering-Help-for-List
> Date is the time of the server response and not last data update. Data
> is definitely time of server response to my request and bears no
> relation to when the live XML data was updated. I know this for a fact
> because right now there is no active race meeting and any data still
> availabl
Both codes by Dennis Lee Bieber are Ok. The 2nd one ("slurper") ,
seems , a bit faster.
I only corrected the author's typo: should be "% div" instead of "/
div".
And added this (don't know helped it or not):
if div == 1:
print lim
return
And of course:
import psyco
psyco.full()
--
http:
On Apr 27, 11:01 am, John Henry <[EMAIL PROTECTED]> wrote:
> On Apr 26, 6:08 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
>
>
>
> > > def f1():
> > > print "In f1"
>
> > > def f3():
> > > print "In f3"
>
> > > def others():
> > > print "In others"
>
> > > for i in xrange(1,3):
> > >
> Martin said it but nevertheless it might not be true.
>
> We observed similar very bad behaviour -- in a Web application server.
> Apparently, the standard behaviour is far from optimal when the
> system contains a large number of objects and occationally, large
> numbers of objects are created
> i've had a look at the source code and written a small patch (attached;
> contains a case in classical/floor division as well as truediv).
> is there a defined escalation procedure from python-list to python-dev
> or should i just send the suggestion+patch there?
Post a patch to bugs.python.org,
On Apr 26, 11:04 pm, John Henry <[EMAIL PROTECTED]> wrote:
> On Apr 26, 3:03 pm, John Henry <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Apr 26, 8:46 am, [EMAIL PROTECTED] (Aahz) wrote:
>
> > > In article <[EMAIL PROTECTED]>,
> > > John Henry <[EMAIL PROTECTED]> wrote:
>
> > > >But then I looked cl
> Well, http://bugs.python.org/issue1673409 seems very closely related.
I can't see the relationship. This issue is about conversion methods,
not about arithmetic.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 27, 2:37 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Sat, 26 Apr 2008 20:35:29 -0700, rustom wrote:
> > On Apr 27, 12:31 am, [EMAIL PROTECTED] wrote:
> >> On Apr 26, 1:14 pm, "Rustom Mody" <[EMAIL PROTECTED]> wrote:
> >> […]
>
> > If this is an answer to my question I dont u
Zethex <[EMAIL PROTECTED]> writes:
> Alright I got asked today by a friend this question, which obviously I
> couldn't help him with.
>
> He needs to get rid of words in a string referring to an already given list
> then needs to map them using a function he already has. Ill explain this
> better
You should check out the sets module:
http://docs.python.org/lib/module-sets.html
>
> The problem asks to create a "compareandremove" so that you can use it on a
> string, to remove the words from the string that are contained in un_words.
>
> The remaining words then need to be compared to
bullockbefriending bard wrote:
> Tempting thought, but one of the problems with this kind of horse
> racing tote data is that a lot of it is for combinations of runners
> rather than single runners. Whilst there might be (say) 14 horses in a
> race, there are 91 quinella price combinations (1-2 th
Christian Heimes <[EMAIL PROTECTED]> writes on Sat, 12 Apr 2008 18:47:32 +0200:
> [EMAIL PROTECTED] schrieb:
> > which made me suggest to use these as defaults, but then
> > Martin v. Löwis wrote that
> >
> >> No, the defaults are correct for typical applications.
> >
> > At that point I felt los
Alright I got asked today by a friend this question, which obviously I
couldn't help him with.
He needs to get rid of words in a string referring to an already given list
then needs to map them using a function he already has. Ill explain this
better by giving an example :P
Say ur given these l
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes:
> Not exactly. In the case of no extension `os.path.splitext()` still works:
>
> In [14]: 'foo/bar.txt'.rsplit('.')
> Out[14]: ['foo/bar', 'txt']
>
> In [15]: 'foo/bar'.rsplit('.')
> Out[15]: ['foo/bar']
>
> In [16]: os.path.splitext('foo/bar')
On Apr 27, 11:27 pm, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote:
> I think twisted is overkill for this problem. Threading, elementtree
> and urllib should more than suffice. One thread polling the server for
> each race with the desired polling interval. Each time some data is
> treated, that thr
On Sun, 27 Apr 2008 15:06:54 +, Matt Nordhoff wrote:
> Arnaud Delobelle wrote:
>> More simply, use the rsplit() method of strings:
>>
> path = r'C:\myimages\imageone.jpg'
> path.rsplit('.', 1)
>> ['C:\\myimages\\imageone', 'jpg']
>>
>>
> path = r"C:\blahblah.blah\images.20.jpg"
On Sun, 27 Apr 2008 06:42:13 -0700, wilson wrote:
> i converted some P5 type .pgm images to .jpg using
> […]
> ie if oldimage.pgm has pixels
> [29 31 38 ..., 10 4 18]
> then the corresponding jpg image has
> [29 31 38 ..., 10 3 17]
>
> why this difference? shouldn't they be identical?can someo
On Apr 27, 11:12 pm, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> bullockbefriending bard wrote:
> > A further complication is that at a later point, I will want to do
> > real-time time series prediction on all this data (viz. predicting
> > actual starting prices at post time x minutes in the future)
On 2008-04-27, David <[EMAIL PROTECTED]> wrote:
>>
>> 1) The data for the race about to start updates every (say) 15
>> seconds, and the data for earlier and later races updates only every
>> (say) 5 minutes. There is no point for me to be hammering the server
>> with requests every 15 seconds
I think twisted is overkill for this problem. Threading, elementtree
and urllib should more than suffice. One thread polling the server for
each race with the desired polling interval. Each time some data is
treated, that thread sends a signal containing information about what
changed. The gui list
bullockbefriending bard wrote:
> 3) I need to dump this data (for all races, not just current about to
> start race) to text files, store it as BLOBs in a DB *and* update real
> time display in a wxpython windowed client.
Why in a BLOB? Why not into specific data types and normalized tables? Yo
On Apr 27, 10:10 pm, David <[EMAIL PROTECTED]> wrote:
> > 1) The data for the race about to start updates every (say) 15
> > seconds, and the data for earlier and later races updates only every
> > (say) 5 minutes. There is no point for me to be hammering the server
> > with requests every 15
bullockbefriending bard wrote:
> A further complication is that at a later point, I will want to do
> real-time time series prediction on all this data (viz. predicting
> actual starting prices at post time x minutes in the future). Assuming
> I can quickly (enough) retrieve the relevant last n to
On Apr 27, 10:05 pm, "Eric Wertman" <[EMAIL PROTECTED]> wrote:
> HI, that does look like a lot of fun... You might consider breaking
> that into 2 separate programs. Write one that's threaded to keep a db
> updated properly, and write a completely separate one to handle
> displaying data from your
(re-cc-ing the list)
On Sun, Apr 27, 2008 at 4:40 PM, Terry Yin <[EMAIL PROTECTED]> wrote:
> Defaultdict is not an option because there will be a lot of message IDs (and
> increasing). I will implement LookAheadQueue class by overriding the Queue
> class.
>
> Thanks for your kind advice.
>
> BTW,
>
> www.webpy.org is supereasy to get going with. dont know which is
> better for advanced stuff.
>
I don't think that webpy supports sessions. Their addition to webpy is
a Google Summer of Code project:
http://webpy.org/sessions/gsoc
Also, I can't find any reference to cookies or sessions in
>
> 1) The data for the race about to start updates every (say) 15
> seconds, and the data for earlier and later races updates only every
> (say) 5 minutes. There is no point for me to be hammering the server
> with requests every 15 seconds for data for races after the upcoming
Try using an
Arnaud Delobelle wrote:
> More simply, use the rsplit() method of strings:
>
path = r'C:\myimages\imageone.jpg'
path.rsplit('.', 1)
> ['C:\\myimages\\imageone', 'jpg']
>
>
path = r"C:\blahblah.blah\images.20.jpg"
path.rsplit('.', 1)
> ['C:\\blahblah.blah\\images.20', 'jpg']
>
HI, that does look like a lot of fun... You might consider breaking
that into 2 separate programs. Write one that's threaded to keep a db
updated properly, and write a completely separate one to handle
displaying data from your db. This would allow you to later change or
add a web interface witho
On Apr 25, 2:44 pm, "Gabriel Ibanez" <[EMAIL PROTECTED]> wrote:
> Hi !
>
> Other idea (old style school):
>
> def printing():
>f=open("lpt1", "w")
>f.write("\nSomething to print\f")
>f.close()
>
> Cheers..
>
> - Ibanez -
>
I haven't found a way from within python to print f. I'm sure
On Apr 27, 7:11 am, Arnaud Delobelle <[EMAIL PROTECTED]> wrote:
> philly_bob <[EMAIL PROTECTED]> writes:
> > In the sample program below, I want to send a random method to a class
> > instance.
> > In other words, I don't know which method to send until run-time. How
> > can I send ch, which is my
philly_bob <[EMAIL PROTECTED]> writes:
> How can I send ch, which is my random choice, to the myclass
> instance?
>
> Thanks,
>
> Bob=
>
>
> import random
>
> class myclass(object):
>def meth1(self):
> print 'meth1'
>def meth2(self):
> print 'meth2'
>
> c=myclass()
>
bullockbefriending bard wrote:
I am a complete ignoramus and newbie when it comes to designing and
coding networked clients (or servers for that matter). I have a copy
of Goerzen (Foundations of Python Network Programming) and once
pointed in the best direction should be able to follow my nose an
Hi,
The newest version pyspread 0.0.4 now runs on
+ GTK
+ Windows
+ Mac (not tested myself but got positive reports)
New features in 0.0.4:
+ Column, line and table insertion and deletion
+ Themeable toolbar
Feedback is very welcome!
Best Regards
Martin
--
http://mail.python.org/mailman/listi
> WaitMsg will get only msg with certain ids, but this is not possible
> in Queue object, because Queue provides no method to peek into the
> message queue and fetch only matched item.
>
> Now I'm using an ugly solution, fetch all the messages and put the not
> used ones back to the queue. But
hi
i converted some P5 type .pgm images to .jpg using
x=Image.open("oldimage.pgm")
imsz=x.size
newimg=Image.new('L',imsz)
newimg.putdata(x.getdata())
newimg.save("newimg.jpg")
when i again check the pixel data for these images using getdata()
method i,I find that they are slightly different
ie if
On Apr 27, 6:27 pm, Terry <[EMAIL PROTECTED]> wrote:
> Hello!
>
> I'm trying to implement a message queue among threads using Queue. The
> message queue has two operations:
> PutMsg(id, msg) # this is simple, just combine the id and msg as one
> and put it into the Queue.
> WaitMsg(ids, msg) # thi
I am a complete ignoramus and newbie when it comes to designing and
coding networked clients (or servers for that matter). I have a copy
of Goerzen (Foundations of Python Network Programming) and once
pointed in the best direction should be able to follow my nose and get
things sorted... but I am n
I don't know what the best practice is, but just creating sym links into
site-packages will work, and it saves the extra memory from cp'ing.
- Original Message
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: python-list@python.org
Sent: Sunday, April 27, 2008 9:15:06 AM
Subject: Insta
Yep, thats pretty much exactly what i had done, those exact settings,
and it still doesnt work. As i said i looked at the other keys to
check i had done it right and a i said the settings are fine because i
can send the file to python.exe and it loads like a python file fine,
but it doesn't like pa
1 - 100 of 149 matches
Mail list logo