Il giorno 12/feb/2011, alle ore 00.45, Martin De Kauwe ha scritto:
Hi,
yes I read a .INI file using ConfigParser, just similar sections (in
my opinion) to make one object which i can then pass to different
classes. E.G.
Ok then I suggest configobj, less buggy and much more powerful than
On Feb 11, 3:56 pm, Martin De Kauwe mdeka...@gmail.com wrote:
Hi,
I have a series of parameter values which i need to pass throughout my
code (100), in C I would use a structure for example. However in
python it is not clear to me if it would be better to use a dictionary
or build a class
Il giorno 11/feb/2011, alle ore 17.01, Martin De Kauwe ha scritto:
i have a number some are smaller, for example switch/control flags.
But the rest can be quite large. I can split them but I don't see the
advantage particularly. Currently by using them (e.g.
params.rate_of_decomp) it
Il giorno 11/feb/2011, alle ore 19.47, Ethan Furman ha scritto:
I strongly disagree. Code readability is one of the most important issues.
Perfectly agree with that, but
obj.name = x
obj.surname = y
obj['name'] = x
obj['surname'] = y
are both quite readable in my opinion.
Other things
Mohseniaref mohseni.a...@gmail.com writes:
Dear Friend
I have this erorr after running pyhon script with header
/usr/lib/python2.6 : permisson denied
I change ownership with -hR in super user terminal
Why /usr/lib... and not in bin?
I guess this is the directory, of course if you put it in
On 8 Dic, 18:50, Andreas Waldenburger use...@geekmail.invalid wrote:
Maybe. But I'm sure it.comp.lang.python might help you better. And from
the looks of it, you seem to have started a similar thread there
(called Generatori infiniti).
Generally, you'll fare better with English (even broken
Hi everbybody again,
I have a little problem, I don't understand the reason of this:
a = [10,1,2,3]
def foo():
global a
for el in a:
el = el*2
This doesn't make any difference, if I do
def foo():
global a
a[0] = 4
But
def foo():
global a
for n in range(len(a)):
a[n] =
Perhaps this is mostly a reflection on me as a programmer :-} but I
found the job surprisingly tricky.
No I think you're right...
It's not very important for me retrieve exactly what kind of file it
is, it could be just something more in my little program (an organizer
that put files in the
301 - 308 of 308 matches
Mail list logo