[Tutor] prime factorisation

2018-03-11 Thread Bernd Hewener
does not work. I am not sure, but the number i running through the primes for checking does not seem to work properly. Would you please be so kind as to help? Thank you very much. Best wishes, Bernd # This program calculates the prime factors of a number entered. primefactors = [] n, num = 0

[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)])

Re: [Tutor] Please help!!

2006-05-19 Thread Bernd Prager
ead() f.close() Hope this helps, -- Bernd MATATA EMMANUEL wrote: > > Hi there, > > I'm tasked to write a Paython script which is supposed to hit a web > site and download a shapefile from that web site. I don't have any > clue and would like

[Tutor] Simple MS Windows Shell Extension?

2006-01-19 Thread bernd
Hi, I have a python script that I want my users to execute with a "Right-Mouse-Click" on a file under Windows XP. (If possible without changing the default "Open with ..." behavior from Windows.) Does anybody has a simple example on how to do tha

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

[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/