Re: [Tutor] passing arguments to functions - problem with argument order

2008-03-11 Thread tetsuo2k6
Alan Gauld schrieb: > > Fine, but I would seriously consider learning dicts as a prioritry. > Certainly way higher that learning OOP. In fact being comfortable > with dictionaries will make understanding OOP much easier > since a class is really just a special type of dictionary!. > > Alan G. >

Re: [Tutor] passing arguments to functions - problem with argument order

2008-03-11 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote >>> And I thought I might get away without using dicts... >> >> Why would you want to? Dicts are one of the most >> powerful data structures around. > Well, I know about dicts, however I want to go forward step by step > in > learning - once I feel really comfortable wi

Re: [Tutor] passing arguments to functions - problem with argument order

2008-03-11 Thread tetsuo2k6
Alan Gauld schrieb: > <[EMAIL PROTECTED]> wrote > >> And I thought I might get away without using dicts... > > Why would you want to? Dicts are one of the most > powerful data structures around. > > And besides Python is built from dicts so you can > never truly get away without using them. E

Re: [Tutor] passing arguments to functions - problem with argument order

2008-03-10 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote > And I thought I might get away without using dicts... Why would you want to? Dicts are one of the most powerful data structures around. And besides Python is built from dicts so you can never truly get away without using them. Every time you access a feature from

Re: [Tutor] passing arguments to functions - problem with argument order

2008-03-10 Thread tetsuo2k6
That's it! Paul Andreas Kostyrka schrieb: > What you probably want is to pass: > > writer(None, "field1", "field2") > > Andreas > > Am Montag, den 10.03.2008, 16:28 +0100 schrieb [EMAIL PROTECTED]: >> And I thought I might get away without using dicts... >> >> Thanks, Greg >> >> >> >> Greg G

Re: [Tutor] passing arguments to functions - problem with argument order

2008-03-10 Thread Andreas Kostyrka
What you probably want is to pass: writer(None, "field1", "field2") Andreas Am Montag, den 10.03.2008, 16:28 +0100 schrieb [EMAIL PROTECTED]: > And I thought I might get away without using dicts... > > Thanks, Greg > > > > Greg Graham schrieb: > > Paul, > > > > Python does not allow mixing

Re: [Tutor] passing arguments to functions - problem with argument order

2008-03-10 Thread tetsuo2k6
And I thought I might get away without using dicts... Thanks, Greg Greg Graham schrieb: > Paul, > > Python does not allow mixing variable length arguments and keyword arguments > in that way. To accomplish what you want, you must add an argument preceded > by a "**" which will be a dict cont

Re: [Tutor] passing arguments to functions - problem with argument order

2008-03-10 Thread Greg Graham
ennummer, anrede, vorname, nachname, plz, ort, adresse, kontoinhaber, blz, kto, bankname, status, spielbeginn, letzte_aenderung, importdatum, briefdatum, buchungsdatum, stornodatum Output csv filename: None Greg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behal

[Tutor] passing arguments to functions - problem with argument order

2008-03-10 Thread tetsuo2k6
I don't get this - what is the clean way of the order of passing arguments to functions? The called function goes like this: def csvwriter(output_csv_filename=None, *coloumn_definitions): """Edit Me!""" if output_csv_filename == None: output_csv_filename = raw_