Re: [Tutor] passing results between functions

2012-04-27 Thread Gerhardus Geldenhuis
: > On 25/04/12 10:36, Gerhardus Geldenhuis wrote: > >> Hi >> I wrote two functions which does different manipulations on text files. >> >> To start out with I passed the filename as a parameter and each function >> opened the file and saved it. >> > >

[Tutor] passing results between functions

2012-04-25 Thread Gerhardus Geldenhuis
phi years ago and trying to make the paradigm shift and understanding the data structures. Regards -- Gerhardus Geldenhuis ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Converting a string into dictionary references

2012-04-23 Thread Gerhardus Geldenhuis
; I thus want a file with the following: > > column33,column1,column5 > > > > I then want to read the original csv file and write a new csv file with > the > > requested columns only. > > > > Does that make more sense? > > > > Regards > > &

Re: [Tutor] Converting a string into dictionary references

2012-04-23 Thread Gerhardus Geldenhuis
1]] Regards On 23 April 2012 15:28, Gerhardus Geldenhuis wrote: > Hi > Thanks for all the replies, I will try a the suggestions and post my > solution back. > > Regards > > -- > Gerhardus Geldenhuis > -- Gerhardus Geldenhuis _

Re: [Tutor] Converting a string into dictionary references

2012-04-23 Thread Gerhardus Geldenhuis
Hi Thanks for all the replies, I will try a the suggestions and post my solution back. Regards -- Gerhardus Geldenhuis ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Converting a string into dictionary references

2012-04-23 Thread Gerhardus Geldenhuis
Yip, Unfortunately I am not, this needs to happen in python. Regards On 23 April 2012 14:59, Christian Witts wrote: > On 2012/04/23 03:46 PM, Gerhardus Geldenhuis wrote: > > Not quite, > > I have csvfile1: > column1, column2, column3, ... column200 > > That is my ra

Re: [Tutor] Converting a string into dictionary references

2012-04-23 Thread Gerhardus Geldenhuis
with the requested columns only. Does that make more sense? Regards On 23 April 2012 14:41, Joel Goldstick wrote: > On Mon, Apr 23, 2012 at 8:56 AM, Gerhardus Geldenhuis > wrote: > > Hi > > Appologies about the subject I could not think of a better description. > > >

[Tutor] Converting a string into dictionary references

2012-04-23 Thread Gerhardus Geldenhuis
e how to convert my print statement into something more dynamic. Any pointers would be appreciated. Regards -- Gerhardus Geldenhuis ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Handling exceptions

2011-11-07 Thread Gerhardus Geldenhuis
e few if's to handle the various error strings returned. Regards -- Gerhardus Geldenhuis ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Parsing /etc/passwd

2011-10-12 Thread Gerhardus Geldenhuis
Fantastic, Thanks Hugo that makes 100% sense now! Testing both regex for including / and doing split and when done throwing both away and using the default module. Regards On Wed, Oct 12, 2011 at 2:49 PM, Hugo Arts wrote: > On Wed, Oct 12, 2011 at 3:41 PM, Gerhardus Geldenhuis > wrote:

[Tutor] Parsing /etc/passwd

2011-10-12 Thread Gerhardus Geldenhuis
he problem before I throw away this code. Regards -- Gerhardus Geldenhuis ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] regex woes in finding an ip and GET string

2011-06-19 Thread Gerhardus Geldenhuis
ly one line because of the method of loading and the ^ should only find one instance but instead it finds two? So removing the ^ works much better but now I get mostly correct results but I also get a number of ip's with an empty get string, only thought there should be only one in the lo