[Tutor] curses delwin functionality?

2005-12-29 Thread Bernd Prager
Hi, I'm trying to get my hands on some curses experiences in Python. The examples I found don't really tell me how to get rid of subwindows and restore the underlying window again. Is there something that replaces the curses functionality "delwin"? Thanks for any help! Here's my example: #!/usr/

Re: [Tutor] curses delwin functionality?

2005-12-29 Thread Bernd Prager
> Rumor has it that Bernd Prager may have mentioned these words: > > [snippety] > >> # curses.delwin(s) <-- that doesn't exist :-/ > > I've *only* done curses in python, so quite often I don't know the C > analogue, but try: > > curses.endwin

Re: [Tutor] Please help!!

2006-05-19 Thread Bernd Prager
Hey Matata, >From the website http://www.boddie.org.uk/python/HTML.html: import urllib # Get a file-like object for the Python Web site's home page. f = urllib.urlopen("http://www.python.org";) # Read from the object, storing the page's contents in 's'. s = f.read() f.close() Hope this helps,

[Tutor] question about mpmath product expression

2009-02-02 Thread Bernd Prager
Does anybody know if there is a precision difference when I use mpmath and take an expression: from mpmath import * mp.dps = 100 mu0 = [mpf('4') * pi * power(10, -7) rather then: mu0 = fprod([mpf('4'), pi, power(10, -7)]) ? Thanks, -- Bernd ___ Tutor