simple integer subclass I'm trying to define a subclass of int called int1. An int1-object shall behave exactly like an int-object, with the only difference that the displayed value shall be value + 1 (it will be used to display array indices starting at 1 instead of 0). Right now I have: class int1(int): def __str__(self): ... 5 Aug 2010 12:26
Package management (was: Why is there no platform independent way of clearing a terminal?) Mark Lawrence <breamoreboy(a)yahoo.co.uk> writes: How does any user or an admin cope with 500 packages? Operating systems with good package management come with tools that help the administrator do this job easily. Also, operating systems with good package management encourage the small-pieces-loosely-joined... 4 Aug 2010 19:04
Trying to run Python 2.7 on Windows 7 and any suggestions on books/websites for "dummies guide to python" type learning On Tue, Aug 3, 2010 at 8:07 AM, ben owen <troabarton69(a)hotmail.com> wrote: Hi everyone, I'm new to this and was needing help with trying to learn/work with Python 2.7 on my computer. I'm running Windows 7 and trying to learn python programming from an older book from 1999 by Mark Lutz and David Ascher my bo... 3 Aug 2010 03:49
checking that process binds a port, fuser functionality Hello, I need to start a process (using subprocess.Popen()) and wait until the new process either fails or successfully binds a specified port. The fuser command seems to be indented exactly for this purpose. Could anyone please provided a hint to a handy Python library to do this or would the advice be to parse... 3 Aug 2010 11:25
let optionparse.Optionparser ignore unknown command line switches. On 08/01/2010 07:53 PM, Jon Clements wrote: On 1 Aug, 16:43, News123 <news1...(a)free.fr> wrote: On 08/01/2010 05:34 PM, Steven W. Orr wrote: On 08/01/10 07:27, quoth News123: On 08/01/2010 01:08 PM, News123 wrote: I wondered, whether there's a simple/standard way to let the Op... 2 Aug 2010 18:03
namespaces, scoping and variables I am having a problem getting around this variable namespace thing. Consider these code bits File a.py from Tkinter import * import a1 def doAgain(): x = a1.Net() x.show("Again!") root = Tk() root.title("test") f = Frame(root,bg="Yellow") l = Button(root,text="window 1",command=doAgain) f.grid() ... 3 Aug 2010 05:58
constructing and using large lexicon in a program On 08/02/2010 11:46 AM, Majdi Sawalha wrote: I am developing a morphological analyzer that depends on a large lexicon. i construct a Lexicon class that reades a text file and construct a dictionary of the lexicon entries. the other class will use the lexicon class to chech if the word is found in the ... 3 Aug 2010 04:53
Behavior of re.split on empty strings is unexpected The regular expression "split" behaves slightly differently than string split: import re kresplit = re.compile(r'[^\w\&]+',re.UNICODE) kresplit2.split(" HELLO THERE ") ['', 'HELLO', 'THERE', ''] kresplit2.split("VERISIGN INC.") ['VERISIGN', 'INC', ''] I'd thought that "split... 5 Aug 2010 06:56
THANKS GOD! I GOT $2000 FROM PAYPAL.... THANKS GOD! I GOT $2000 FROM PAYPAL At http://ukcollegegirls.co.cc I have hidden the PayPal Form link in an image. in that website On Top Side Above search box , click on image and enter your PayPal id And Your name. ... 2 Aug 2010 12:32
Simple Data Entry Work Hi there you need a job to work at the comfort of your home, here are the two links to earn you the money you want Note:you have to be hard working in order to earn big,give it a try and register, you have nothing to loose no registration charges http://www.dataentrywork.net/?id=27096 http://www.websitet... 2 Aug 2010 11:25 |