Re: Portrait of a "real life" __metaclass__

2007-11-10 Thread Jonathan Gardner
On Nov 10, 3:34 am, Mark Shroyer <[EMAIL PROTECTED]> wrote: > On 2007-11-10, Jonathan Gardner <[EMAIL PROTECTED]> wrote: > > What would I have done? I wouldn't have had an age matching class. I > > would have had a function that, given the datetime and a range > > specification, would return true o

Re: security code whit python

2007-11-10 Thread [EMAIL PROTECTED]
On 10 Kas m, 23:57, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I want to create picture of security code.can i do it ? > > I don't know what you mean by "security code". > > I take it you want to create technical diagrams, from a sort of > algorithmic descriptio

Re: Join DOWNLOAD CENTRE

2007-11-10 Thread Danyelle Gragsone
Why? -- http://mail.python.org/mailman/listinfo/python-list

Re: easy 3D graphics for rendering geometry?

2007-11-10 Thread gsal
On Nov 10, 11:13 am, Scott David Daniels <[EMAIL PROTECTED]> wrote: > > Well, what kind of computer, what version of everything (OS, Python, > VPython), what display card, Windows XP Professional Version 2002, Service Pack 2 1.4GHz, 512MB ATI MOBILITY RADEON 9000 Python 2.5, VPython 2.5 gs

Re: Populating a dictionary, fast

2007-11-10 Thread Paul Rubin
Michael Bacarella <[EMAIL PROTECTED]> writes: > If only it were so easy. I think I know what's going on, the dictionary updates are sending the GC into quadratic behavior. Try turning off the GC: import gc gc.disable() -- http://mail.python.org/mailman/listinfo/python-list

Pyzzle development?

2007-11-10 Thread John Salerno
Does anyone happen to know what's going on with the development of the Pyzzle engine (for creating Myst-like games with Python)? Seems stalled for a long time, but I'm not sure if it's just been abandoned. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Populating a dictionary, fast

2007-11-10 Thread Yu-Xi Lim
Steven D'Aprano wrote: > (2) More memory will help avoid paging. If you can't get more memory, try > more virtual memory. It will still be slow, but at least the operating > system doesn't have to try moving blocks around as much. > Based on his previous post, it would seem he has 7GB of RAM (w

Re: Python Extension Building Network

2007-11-10 Thread Yu-Xi Lim
[EMAIL PROTECTED] wrote: > Hi, > > I am trying to get a small group of volunteers together to create > Windows binaries for any Python extension developer that needs them, > much like the package/extension builders who volunteer their time to > create Linux RPMs. > > Mike > It's not entirely cl

Join DOWNLOAD CENTRE

2007-11-10 Thread Cope
Post your softwares and other digital products here. Note that your post must be downloadable. Cope, Owner. http://groups.google.co.in/group/download-centre -- http://mail.python.org/mailman/listinfo/python-list

System exit hanging in Leopard

2007-11-10 Thread Tony Mullen
Hello, (I posted this once before, but haven't gotten a response. This is a pretty heavy traffic mailing list, so it's hardly surprising, but I'm going to bump the question in case anybody has seen or can replicate (or not replicate) this issue. Thx) I'm using Tkinter to create widgets in Pytho

Re: Populating a dictionary, fast

2007-11-10 Thread Steven D'Aprano
On Sat, 10 Nov 2007 17:18:37 -0800, Michael Bacarella wrote: > So, you think the Python's dict implementation degrades towards O(N) > performance when it's fed millions of 64-bit pseudo-random longs? No. Here's my sample file: $ wc -l id2name.txt 8191180 id2name.txt $ ls -lh id2name.txt -rw-rw

Re: Writing a CGI to query DB

2007-11-10 Thread Bighead
On Nov 11, 6:20 am, paulC <[EMAIL PROTECTED]> wrote: > On 10 Nov, 04:33, Bighead <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I am currently working on a CGI deployed on an Apache server, which, > > given an arbitrary SQL, fetches raw data from a remote DB server and > > return them in a HTML page. T

Re: Writing a CGI to query DB

2007-11-10 Thread Bighead
On Nov 10, 7:18 pm, TheFlyingDutchman <[EMAIL PROTECTED]> wrote: > On Nov 9, 8:33 pm, Bighead <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I am currently working on a CGI deployed on an Apache server, which, > > given an arbitrary SQL, fetches raw data from a remote DB server and > > return them in a

Re: A JEW hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts.

2007-11-10 Thread zionist . news
On Nov 10, 2:22 pm, "Frank Arthur" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > >A Jew hacker in California admits distributing malware that let him > > steal usernames and passwords for Paypal accounts. > > 83 Newspapers reported the "Hacker stor

python - an eggs...

2007-11-10 Thread bruce
Hi... I have a python script/app that i'm dealing with. It uses Durus, which installs as an egg. I'm trying to figure out how to modify any of the underlying source files or the egg, short of modifying the original source file, and then having to reinstall the egg via "python setup.py install"...

Re: Populating a dictionary, fast

2007-11-10 Thread Michael Bacarella
> That's an awfully complicated way to iterate over a file. Try this > instead: > > id2name = {} > for line in open('id2name.txt'): >id,name = line.strip().split(':') >id = long(id) >id2name[id] = name > > > This takes about 45 *minutes* > > > On my system, it takes about a minute an

Re: Valgrind and Python

2007-11-10 Thread Esa A E Peuha
Jean-Paul Calderone <[EMAIL PROTECTED]> writes: > Did you use the suppression file? No, I didn't, because I was testing Valgrind on binaries that happened to be installed on a Linux machine, and had no reason to treat Python specifically. I see that README.valgrind explains why Python reads memo

Re: String/Decimal issues

2007-11-10 Thread Steven D'Aprano
On Sat, 10 Nov 2007 09:02:01 -0800, Mike Howarth wrote: > Hi > > Seem to be having a bit of brainfreeze this evening. > > Basically I'm reducing an array of prices like so: >>> subtotal = reduce(operator.add, itemprices) > > This gives me a string of '86.00.00' which I am trying to use with > d

Re: Populating a dictionary, fast

2007-11-10 Thread Paul Rubin
Michael Bacarella <[EMAIL PROTECTED]> writes: > Is there a fast, functionally equivalent way of doing this? > > (Yes, I really do need this cached. No, an RDBMS or disk-based hash > is not fast enough.) As Steven says maybe you need to add more ram to your system. The memory overhead of diction

Re: Populating a dictionary, fast

2007-11-10 Thread Steven D'Aprano
On Sat, 10 Nov 2007 13:56:35 -0800, Michael Bacarella wrote: > The id2name.txt file is an index of primary keys to strings. They look > like this: > > 11293102971459182412:Descriptive unique name for this record\n > 950918240981208142:Another name for another record\n > > The file's properties

Re: security code whit python

2007-11-10 Thread Paul Rubin
Wildemar Wildenburger <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: > > I want to create picture of security code.can i do it ? > I don't know what you mean by "security code". I think that means a captcha (www.captcha.net). -- http://mail.python.org/mailman/listinfo/python-list

Re: Populating a dictionary, fast

2007-11-10 Thread Ben Finney
Michael Bacarella <[EMAIL PROTECTED]> writes: > id2name = {} > for line in iter(open('id2name.txt').readline,''): > id,name = line.strip().split(':') > id = long(id) > id2name[id] = name > > This takes about 45 *minutes* > > If I comment out the last line in the loop body it takes on

Re: Writing a CGI to query DB

2007-11-10 Thread paulC
On 10 Nov, 04:33, Bighead <[EMAIL PROTECTED]> wrote: > Hi, > > I am currently working on a CGI deployed on an Apache server, which, > given an arbitrary SQL, fetches raw data from a remote DB server and > return them in a HTML page. This CGI works fine on quick SQLs. > > But when I try to run a slo

A JEW hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts.

2007-11-10 Thread zionist . news
A Jew hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts. http://www.pcworld.com/article/id,139507-c,cybercrime/article.html The Jews and Israelis the top notch WHITE COLLAR CRIMINALS, YET, they are harassing MOSLEMS in CALIFORNIA. Do y

Re: Bitmap editor and File-saving

2007-11-10 Thread paulC
On 10 Nov, 15:44, Johnston Jiaa <[EMAIL PROTECTED]> wrote: > In my Python program (using Tkinter), I would like to have a window > where the user will be able to draw a simple picture. I don't know > where to begin.. can somehow give me a general idea how to do > something like this? > > Also, I'd

Populating a dictionary, fast

2007-11-10 Thread Michael Bacarella
The id2name.txt file is an index of primary keys to strings. They look like this: 11293102971459182412:Descriptive unique name for this record\n 950918240981208142:Another name for another record\n The file's properties are: # wc -l id2name.txt 8191180 id2name.txt # du -h id2name.txt 517M

Re: security code whit python

2007-11-10 Thread Wildemar Wildenburger
[EMAIL PROTECTED] wrote: > I want to create picture of security code.can i do it ? I don't know what you mean by "security code". I take it you want to create technical diagrams, from a sort of algorithmic description? PIL might help you, as paulC pointed out. It works on raster images (bitmap

Re: security code whit python

2007-11-10 Thread [EMAIL PROTECTED]
have you got any example?pls :S -- http://mail.python.org/mailman/listinfo/python-list

Re: String/Decimal issues

2007-11-10 Thread Ben Finney
Mike Howarth <[EMAIL PROTECTED]> writes: > Basically I'm reducing an array of prices like so: > >> subtotal = reduce(operator.add, itemprices) > > This gives me a string of '86.00.00' You haven't shown what the input is; what is the value of 'itemprices' before this line? When I use floating-po

Re: security code whit python

2007-11-10 Thread paulC
On 10 Nov, 16:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hii my friends; > I want to create picture of security code.can i do it ? > if yes,how , which module will help me? > have you got a example that can create a picture whit my name > pls help me > thansk > oruc You may find the Pyt

Re: security code whit python

2007-11-10 Thread [EMAIL PROTECTED]
wha :S -- http://mail.python.org/mailman/listinfo/python-list

Re: security code whit python

2007-11-10 Thread Thorsten Kampe
* [EMAIL PROTECTED] (Sat, 10 Nov 2007 21:15:13 -) > is there anybody here !!! The Internet has gone home. Come again tomorrow... T. -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a good Python environment

2007-11-10 Thread PyScripter
PyScripter provides integrated version control, via TortoiseSVN or TortoiseCVS and the File Explorer. On Nov 10, 11:21 am, jwelby <[EMAIL PROTECTED]> wrote: > On Nov 7, 12:42 pm, "Colin J. Williams" <[EMAIL PROTECTED]> wrote: > > > jwelby wrote: > ... > > > > I currently use Python Scripter as a l

Re: security code whit python

2007-11-10 Thread [EMAIL PROTECTED]
is there anybody here !!! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Extension Building Network

2007-11-10 Thread kyosohma
On Nov 10, 1:12 pm, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: > On 2007-11-10 01:44, [EMAIL PROTECTED] wrote: > > > > >>> The directions for MinGW were usually only partially correct. So I > >>> went through the two sets of directions I found (links on the site) > >>> and mixed and matched until I

Re: Coding Help

2007-11-10 Thread rishiyoor
On Nov 10, 3:20 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > > Maybe it would help you if you added an S6 that does nothing underneath > the "C2 is true" branch of your flow chart. > > -- > Carsten Haesehttp://informixdb.sourceforge.net Think I found a sequence of statements that would work if

Re: Coding Help

2007-11-10 Thread Carsten Haese
On Sat, 2007-11-10 at 11:54 -0800, [EMAIL PROTECTED] wrote: > Well, its not homework, and if you don't want to be a tutor, you can > be a consultant and earn a lot of money. > > Here is how I thought of solving this, but it does not work: > > While C0 is false > if C1 > if C2 > > now what?

Re: Coding Help

2007-11-10 Thread rishiyoor
Well, its not homework, and if you don't want to be a tutor, you can be a consultant and earn a lot of money. Here is how I thought of solving this, but it does not work: While C0 is false if C1 if C2 now what? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Extension Building Network

2007-11-10 Thread M.-A. Lemburg
On 2007-11-10 01:44, [EMAIL PROTECTED] wrote: >>> The directions for MinGW were usually only partially correct. So I >>> went through the two sets of directions I found (links on the site) >>> and mixed and matched until I got it right. >>> There are no directions on how to use Visual Studio 2003 t

Re: Coding Help

2007-11-10 Thread Florian Lindner
Marc 'BlackJack' Rintsch wrote: > On Sat, 10 Nov 2007 09:45:47 -0800, rishiyoor wrote: > >> I need help coding my flowchart. The C's are conditions, the S's are >> statements. The statements do not affect the conditions except for S5 >> which is an increment for C0. The left is True, and the righ

Re: Global variables within classes.

2007-11-10 Thread Marc 'BlackJack' Rintsch
On Sat, 10 Nov 2007 17:39:04 +, Marc 'BlackJack' Rintsch wrote: > On Sat, 10 Nov 2007 18:53:08 +0200, Donn Ingle wrote: print b.ref.attribute # print "haschanged" print j.ref.attribute #prints "original value" ## If it changed and an attribute of the Class, then ## wh

Re: Coding Help

2007-11-10 Thread Marc 'BlackJack' Rintsch
On Sat, 10 Nov 2007 09:45:47 -0800, rishiyoor wrote: > I need help coding my flowchart. The C's are conditions, the S's are > statements. The statements do not affect the conditions except for S5 > which is an increment for C0. The left is True, and the right is > False. > > I would probably use

Re: Returning actual argument expression to a function call?

2007-11-10 Thread Paddy
On Nov 10, 3:44 pm, Piet van Oostrum <[EMAIL PROTECTED]> wrote: > With Python this can't be done without either quoting the expression (make > a string out of it) or using a lambda. Lisp and C# can do this kind of thing. I'd like to propose we add '() to Python. Pronounced tick- brackets, it surr

Re: Global variables within classes.

2007-11-10 Thread Donn Ingle
Thanks for your time and patience Marc, that was some hotshot ascii art. I'll have to take some time to digest this. \d -- http://mail.python.org/mailman/listinfo/python-list

Coding Help

2007-11-10 Thread rishiyoor
I need help coding my flowchart. The C's are conditions, the S's are statements. The statements do not affect the conditions except for S5 which is an increment for C0. The left is True, and the right is False. I would probably use a while loop (or for loop without S5) for the first condition C0,

Re: Global variables within classes.

2007-11-10 Thread Marc 'BlackJack' Rintsch
On Sat, 10 Nov 2007 18:53:08 +0200, Donn Ingle wrote: > Included again for clarity: >>> class Test: >>> attribute = "original value" >>> >>> class Bob: >>> def __init__(self): >>> self.ref = Test() >>> >>> class Jim: >>> def __init__(self): >>> self.ref =

Re: String/Decimal issues

2007-11-10 Thread Marc 'BlackJack' Rintsch
On Sat, 10 Nov 2007 09:02:01 -0800, Mike Howarth wrote: > Basically I'm reducing an array of prices like so: >>> subtotal = reduce(operator.add, itemprices) Take a look at the built in `sum()` function. > This gives me a string of '86.00.00' which I am trying to use with decimal > objects. So w

Re: Python IDE

2007-11-10 Thread Joe Riopel
On Nov 3, 2007 10:28 AM, BartlebyScrivener <[EMAIL PROTECTED]> wrote: > Try the free trial of Komodo > > http://www.activestate.com/Products/komodo_ide/ Komodo Edit is free http://www.activestate.com/Products/komodo_edit/ Open Komodo is free and open source: http://www.openkomodo.com/ -- http://

String/Decimal issues

2007-11-10 Thread Mike Howarth
Hi Seem to be having a bit of brainfreeze this evening. Basically I'm reducing an array of prices like so: >> subtotal = reduce(operator.add, itemprices) This gives me a string of '86.00.00' which I am trying to use with decimal objects. Python 2.4 is not particularly happy with this. Addition

Re: Global variables within classes.

2007-11-10 Thread Donn Ingle
Included again for clarity: >> class Test: >> attribute = "original value" >> >> class Bob: >> def __init__(self): >> self.ref = Test() >> >> class Jim: >> def __init__(self): >> self.ref = Test() >> >> b = Bob() >> j = Jim() >> >> print b.ref.att

Re: Python Extension Building Network

2007-11-10 Thread kyosohma
On Nov 9, 11:32 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 09 Nov 2007 13:30:03 -0300, <[EMAIL PROTECTED]> escribió: > > > On Nov 9, 10:02 am, Tim Golden <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >> > The hardest part was finding accurate information. Most people

Re: easy 3D graphics for rendering geometry?

2007-11-10 Thread Scott David Daniels
gsal wrote: > I actually did look at VPython last weekend. I managed to draw a > soccer field, a few players, move them around and even record/play- > back playsI was very impressed on how easy it was to learn not > only VPython, but Python in the first...I did not know any python, > either. B

Re: Global variables within classes.

2007-11-10 Thread Marc 'BlackJack' Rintsch
On Sat, 10 Nov 2007 17:00:13 +0200, Donn Ingle wrote: >> The first creates an attribute of the class, the second creates an >> attribute in the instance. > > Given that, can you clarify this: > > class Test: > attribute = "original value" > > class Bob: > def __init__(self): >

Re: easy 3D graphics for rendering geometry?

2007-11-10 Thread Scott David Daniels
gsal wrote: > By the way, VPython crashes my computer rather easily: > > - launch the editor > - open python file > - press F5 to run > - when the graphical windows appears, attempt to manipulate (drag or > resize) > - the computer looses it... Well, what kind of computer, what version of everyth

security code whit python

2007-11-10 Thread [EMAIL PROTECTED]
hii my friends; I want to create picture of security code.can i do it ? if yes,how , which module will help me? have you got a example that can create a picture whit my name pls help me thansk oruc -- http://mail.python.org/mailman/listinfo/python-list

Re: Image treshold

2007-11-10 Thread Scott David Daniels
Johny wrote: > Can anyone give me an example how to apply a threshold value to an > image? > (everything above a certain brightness level becomes white, and > everything below the level becomes black.) > I was told I should use 256-item mapping table and pass it to the > "point" method. > But how s

Bitmap editor and File-saving

2007-11-10 Thread Johnston Jiaa
In my Python program (using Tkinter), I would like to have a window where the user will be able to draw a simple picture. I don't know where to begin.. can somehow give me a general idea how to do something like this? Also, I'd like for the program to save that picture along with some tex

Re: Returning actual argument expression to a function call?

2007-11-10 Thread Piet van Oostrum
> Paddy <[EMAIL PROTECTED]> (P) wrote: >P> Hi, >P> # If I have a function definition >P> def f1(arg): >P> global capturecall >P> if capturecall: >P> ... >P> do_normal_stuff(arg) >P> # and its later use: >P> def f2(): >P> ... >P> return f1(a and (b or c)) >P> # I would like to

Extended date and time

2007-11-10 Thread Jeremy Sanders
Hi - I need to add support to a program for dates and times. The built-in Python library seems to be okay for many purposes, but what I would like would be Unix epoch style times (seconds relative to some date), covering a large period from the past to the future. What would be nice would be a libr

Re: Some "pythonic" suggestions for Python

2007-11-10 Thread Neil Cerutti
On 2007-11-10, Terry Reedy <[EMAIL PROTECTED]> wrote: > I think you can regard 'No do statement' as rejected. Some > consider the non-proliferation of loop constructs a feature. I > believe this includes GvR. Non-providing of the standard loop constructs, yes. But loop constructs are plenty prol

Re: Global variables within classes.

2007-11-10 Thread Donn Ingle
> The first creates an attribute of the class, the second creates an > attribute in the instance. Given that, can you clarify this: class Test: attribute = "original value" class Bob: def __init__(self): self.ref = Test() class Jim: def __init__(self): se

Re: Global variables within classes.

2007-11-10 Thread Duncan Booth
Donn Ingle <[EMAIL PROTECTED]> wrote: >> class Stack: >> list = [] > Okay, this has me a little weirded-out. How is this different from > putting it in: > def __init__(self): > self.list = [] > ? > I see from tests that it is different, but I don't quite grok it. Who > owns the list r

Event handling and Late Binding

2007-11-10 Thread swellfr
Hi, I have a component that i can only access through late binding. This is working fine , i can use all the exposed methods , but i can't register (/don't know how to ) event handlers for this component. Is there someone that knows how to do it or who can spot me a example. Thx -- http://ma

Re: Global variables within classes.

2007-11-10 Thread Donn Ingle
Very interesting reply. I must ask a few questions, interleaved: > If you mean that all instances of Class Canvas and Thing will share > the *same* Stack, I think we can do it kind of like this: What's the difference between "same Stack" and "same instance of Stack"? I thought I knew what an insta

Re: Returning actual argument expression to a function call?

2007-11-10 Thread Paddy
On Nov 10, 7:02 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 10 Nov 2007 03:03:00 -0300, Paddy <[EMAIL PROTECTED]> > escribió: > > > > > Hi, > > # If I have a function definition > > def f1(arg): > > global capturecall > > if capturecall: > > ... > > do_normal_stuff(arg)

Re: Portrait of a "real life" __metaclass__

2007-11-10 Thread Mark Shroyer
On 2007-11-10, Jonathan Gardner <[EMAIL PROTECTED]> wrote: > On Nov 9, 7:12 pm, Mark Shroyer <[EMAIL PROTECTED]> wrote: >> I guess this sort of falls under the "shameless plug" category, but >> here it is: Recently I used a custom metaclass in a Python program >> I've been working on, and I ended u

Re: Returning actual argument expression to a function call?

2007-11-10 Thread Paddy
On Nov 10, 6:54 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > In the second example, if you are trying to capture the expression "0.4 > +1", I don't think that is possible. As far as I know, there is no way > for the called function to find out how its arguments were created.

Re: Writing a CGI to query DB

2007-11-10 Thread TheFlyingDutchman
On Nov 9, 8:33 pm, Bighead <[EMAIL PROTECTED]> wrote: > Hi, > > I am currently working on a CGI deployed on an Apache server, which, > given an arbitrary SQL, fetches raw data from a remote DB server and > return them in a HTML page. This CGI works fine on quick SQLs. > > But when I try to run a sl

Re: Python IDE

2007-11-10 Thread TheFlyingDutchman
On Nov 3, 6:11 am, Simon Pickles <[EMAIL PROTECTED]> wrote: > Coming from a Visual Studio background, editing text files and using the > terminal to execute them offends my sensibilities :) YOu should take a look at Wing IDE Professional - www.wingware.com -- http://mail.python.org/mailman/lis

Re: Looking for a good Python environment

2007-11-10 Thread Paul Rudin
jwelby <[EMAIL PROTECTED]> writes: > This is a fair question. I didn't phrase my post too well. > > I find PyScripter does pretty much everything I need in terms of doing > actual development for Python. My use of 'lightweight' is by no means > a criticism of PyScripter - it's more of a complimen

Re: Python IDE

2007-11-10 Thread D.Hering
On Nov 3, 9:11 am, Simon Pickles <[EMAIL PROTECTED]> wrote: > Hi, > > I have recently moved from Windows XP to Ubuntu Gutsy. > > I need a Python IDE and debugger, but have yet to find one as good as > Pyscripter for Windows. Can anyone recommend anything? What are you all > using? > > Coming from a

Re: Global variables within classes.

2007-11-10 Thread uestc_mahui
On 11 10 , 5 48 , Donn Ingle <[EMAIL PROTECTED]> wrote: > ## == API in another module perhaps === > Class Stack: > def push(self,stuff): > pass > > Class Canvas: > def do(self): > s.push("data") #I don't feel right about 's' here. > > Class Thing: > def buzz(self): > print s.pop(0) > >

Image treshold

2007-11-10 Thread Johny
Can anyone give me an example how to apply a threshold value to an image? (everything above a certain brightness level becomes white, and everything below the level becomes black.) I was told I should use 256-item mapping table and pass it to the "point" method. But how should the 256-item mapp

Re: Looking for a good Python environment

2007-11-10 Thread jwelby
On Nov 7, 12:42 pm, "Colin J. Williams" <[EMAIL PROTECTED]> wrote: > jwelby wrote: ... > > > I currently use Python Scripter as a lightweight editor for Windows. > > Could you elaborate on "lightweight" > please? I find PyScripter to be a > powerful editor/debugger combination. > > What functionali

GUI and textfield

2007-11-10 Thread isabelle . bardelang
Hello, I am trying to create a GUI in python/pylab (latest versions) with a textfield. The information from the textfield shall be read out, if a specific button is pressed. How can I create such textfield? Thank Isabelle -- http://mail.python.org/mailman/listinfo/python-list