Hello
I'm writing a program to find an appropiate combination of resistances
to obtain a desired value of resistance. The program takes into account
how many resistances you have available and their resistance in ohms.
A short review of physics: resistors can be arranged in series or in
para
Brian Gustin wrote:
> I'll just go write it in Perl. Maybe some day when Python actually has
> well structured documentation with *actual working code examples*
>
Indeed. I have always thought that the docs lacked working examples. I
usually do a google search, hoping to find some script sho
Brian Gustin wrote:
> I am thinking very seriously about building a new set of python
> documentation with capability for user contributions and notes, etc, and
> putting it online (with searchability to boot) .. maybe a project for
> another day..
Maybe something like this:
http://pyref.infoga
Thanks- I had to sit back and with the perl script running nicely, I
took another shot at this to see if I could get it right.. so far so
good, at least no more exceptions being raised..
The perl script runs on a cron, I am thinking I will write this in
python and then wrap it up into a main f
On Sat, 2006-06-17 at 16:44 -0400, Brian Gustin wrote:
> Now can someone explan how exactly (preferrably with an actual real
> world example) that I can read a configuration file in , say
> /etc/local-config/myconfig.cfg into my python script running in
> /usr/bin/localscripts , and able to act
On Sat, 2006-06-17 at 16:44 -0400, Brian Gustin wrote:
> I have had it. I give up.
>
> Python's documentation sucks beyond belief.
A lot of it is excellent. The ConfigParser, that you are complaining
about is woefully short on examples and does not make clear that you
*must read* the other sectio
I have had it. I give up.
Python's documentation sucks beyond belief.
all I want to do is parse a *SIMPLE* config file of name = value pairs
and have python objects named by the name holding the value signified by
value , and I want it to be able to work *WITHOUT* someone having to
download an
>I understand this:
>>
>> def f(w): gtk.main_quit()
>> button.connect("clicked", f)
>>
>
> Now my question is what is "w"? What is being passed
> to the function?
That will be defined by GTk. The framework will define what
each of its event hamdler callback functions looks like in terms
of p