Re: [python-uk] Reading a file of tab-separated values

2007-11-16 Thread Tim Head
On 16/11/2007, Alexander Harrowell <[EMAIL PROTECTED]> wrote:
> On Nov 16, 2007 8:57 AM, Mark Summerfield <[EMAIL PROTECTED]> wrote:
> > On 2007-11-16, Jeremy Nicoll - pyuk wrote:
> > > Is there a simple way to read a whole (modest sized, parameter) file of
> > > lines of tab-separated lines into one Python data-structure?
> >
> > I think the csv module can do this. (Despite its name it can handle any
> > delimiter you give it.)
>
> Can it also handle the situation where you have a gaggle of tuples
> separated by commas? I.e. does it disregard commas nested within
> brackets?
>

Like so?

import csv

input = csv.StringIO('Hello, World\tThe Spanish inquisition\tis coming
to town, tomorrow\t(1,2,3,4)')
reader = csv.reader(input, delimiter="\t")

for line in reader:
   print line


cheers,
tim

> >
> >
> > --
> > Mark Summerfield, Qtrac Ltd., www.qtrac.eu
> >
> >
> > ___
> > python-uk mailing list
> > python-uk@python.org
> > http://mail.python.org/mailman/listinfo/python-uk
> >
> ___
> python-uk mailing list
> python-uk@python.org
> http://mail.python.org/mailman/listinfo/python-uk
>


-- 
http://tim.jottit.com/
___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] [pyconuk] Proposed PyCon UK UnConference, 5th September

2009-08-07 Thread Tim Head
Hello,

I would be interested in coming, but as I am arriving from the US the
day before and on the move to a summer school starting sunday evening
I was being a lurker waiting to see what kind of things people are
interested in talking about (Django is interesting but these days I
care more about scipy and such scientific software, also ctypes)
before committing.

B'ham is an excellent location for me as it is on the way to the
summer school ;-)

Tim

2009/8/7 Nicholas Tollervey :
> True enough... but having a cut-down event in a smaller venue is better than
> having no event in a bigger one...
>
> Nicholas.
>
> On 7 Aug 2009, at 14:37, Zeth wrote:
>
>> It is a too late now to make such a drastic change less than a month
>> before, however I would certainly be interested in holding a future
>> event there.
>>
>> 2009/8/7 Nicholas Tollervey :
>>>
>>> Guys,
>>>
>>> I won't be able to attend on the 5th Sept as my brother is getting
>>> married
>>> on that date. Nevertheless, I still have some questions:
>>>
>>> How many attendees are needed for a viable event to take place..?
>>>
>>> As £2k is steep given the number of delegates (or lack thereof) how about
>>> a
>>> different venue for smaller numbers?
>>>
>>> Perhaps a venue that would attract geeks anyway, would be sympathetic to
>>> our
>>> needs and "we" (the Python community) already know of it?
>>>
>>> Bletchley Park..?
>>>
>>> Positives: Half way between London and Birmingham and walking distance
>>> from
>>> (the relatively well connected) Bletchley station. Existing relationship
>>> with BP - we'd probably only need a couple of the huts for an informal
>>> gathering. Lots of computers. They have a cafeteria etc...
>>>
>>> Negatives: Internet connection (lack of) - we'd need to check. Cost..?
>>> Would
>>> they be willing to "lend" the use of a couple of huts if "delegates" pay
>>> the
>>> entrance fee (about £10 iirc) or for a small charge..? Change of venue
>>> requires re-advertising. Insurance? (Is this needed should this be so
>>> much
>>> an "un" conference that the venue is only the "borrowing" of a couple of
>>> huts and we'd all just be visitors to a museum - a sort of un-conference
>>> "picnic").
>>>
>>> Just throwing ideas up in the air. Please shoot them down.
>>>
>>> Also, I live about 20mins from BP and I know there are others close by -
>>> should this idea have wings I'd be more than happy to be a body on the
>>> ground before the event.
>>>
>>> Nicholas.
>>>
>>> On 7 Aug 2009, at 09:34, René Dudfield wrote:
>>>


 On Thu, Aug 6, 2009 at 6:43 PM, Michael Foord
 
 wrote:
 In case anyone didn't spot it, the URL to book at is:

  http://pyconuk.org/booking.html

 Michael

 John Pinner wrote:
 Hi,

 We confirmed the Unconference - http:///pyconuk.org 
 -
 a couple of weeks ago and announced it on the pyconuk and python-uk
 lists.


 Regrettably there has been a very poor response (2 delegates, and one of
 those is me!) so faced with venue and insurance costs of approx £2k to
 cover
 it looks like we will have to cancel. Very disappointing given the high
 level of interest expressed at EuroPython.

 Unless of course there is a sudden rush...

 We'll give it until the middle of next week before making a final
 decision.

 Best wishes,

 John
 --


 Cool, I've booked it!

 Looking forward to meeting some uk python peoples.


 I hope it goes ahead... I was planning to book it earlier, but forgot
 about it.  I imagine others also need reminding :)


 cu,
 ___
 python-uk mailing list
 python-uk@python.org
 http://mail.python.org/mailman/listinfo/python-uk
>>>
>>> ___
>>> python-uk mailing list
>>> python-uk@python.org
>>> http://mail.python.org/mailman/listinfo/python-uk
>>>
>> ___
>> python-uk mailing list
>> python-uk@python.org
>> http://mail.python.org/mailman/listinfo/python-uk
>
> ___
> python-uk mailing list
> python-uk@python.org
> http://mail.python.org/mailman/listinfo/python-uk
>



-- 
http://tim.jottit.com/
___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] [pyconuk] Proposed PyCon UK UnConference, 5th September

2009-08-07 Thread Tim Head
Hello again,

2009/8/7 Tim Head :
> interested in talking about (Django is interesting but these days I
> care more about scipy and such scientific software, also ctypes)
> before committing.
>

I guess what I should have said is: anyone interested in talking
about/hacking/teaching me some cool tricks :) about scipy, numpy,
ctypes, ROOT, physics(high energy particle) or R?

If so I will come;)

Tim

> B'ham is an excellent location for me as it is on the way to the
> summer school ;-)
>
> Tim
>
> 2009/8/7 Nicholas Tollervey :
>> True enough... but having a cut-down event in a smaller venue is better than
>> having no event in a bigger one...
>>
>> Nicholas.
>>
>> On 7 Aug 2009, at 14:37, Zeth wrote:
>>
>>> It is a too late now to make such a drastic change less than a month
>>> before, however I would certainly be interested in holding a future
>>> event there.
>>>
>>> 2009/8/7 Nicholas Tollervey :
>>>>
>>>> Guys,
>>>>
>>>> I won't be able to attend on the 5th Sept as my brother is getting
>>>> married
>>>> on that date. Nevertheless, I still have some questions:
>>>>
>>>> How many attendees are needed for a viable event to take place..?
>>>>
>>>> As £2k is steep given the number of delegates (or lack thereof) how about
>>>> a
>>>> different venue for smaller numbers?
>>>>
>>>> Perhaps a venue that would attract geeks anyway, would be sympathetic to
>>>> our
>>>> needs and "we" (the Python community) already know of it?
>>>>
>>>> Bletchley Park..?
>>>>
>>>> Positives: Half way between London and Birmingham and walking distance
>>>> from
>>>> (the relatively well connected) Bletchley station. Existing relationship
>>>> with BP - we'd probably only need a couple of the huts for an informal
>>>> gathering. Lots of computers. They have a cafeteria etc...
>>>>
>>>> Negatives: Internet connection (lack of) - we'd need to check. Cost..?
>>>> Would
>>>> they be willing to "lend" the use of a couple of huts if "delegates" pay
>>>> the
>>>> entrance fee (about £10 iirc) or for a small charge..? Change of venue
>>>> requires re-advertising. Insurance? (Is this needed should this be so
>>>> much
>>>> an "un" conference that the venue is only the "borrowing" of a couple of
>>>> huts and we'd all just be visitors to a museum - a sort of un-conference
>>>> "picnic").
>>>>
>>>> Just throwing ideas up in the air. Please shoot them down.
>>>>
>>>> Also, I live about 20mins from BP and I know there are others close by -
>>>> should this idea have wings I'd be more than happy to be a body on the
>>>> ground before the event.
>>>>
>>>> Nicholas.
>>>>
>>>> On 7 Aug 2009, at 09:34, René Dudfield wrote:
>>>>
>>>>>
>>>>>
>>>>> On Thu, Aug 6, 2009 at 6:43 PM, Michael Foord
>>>>> 
>>>>> wrote:
>>>>> In case anyone didn't spot it, the URL to book at is:
>>>>>
>>>>>  http://pyconuk.org/booking.html
>>>>>
>>>>> Michael
>>>>>
>>>>> John Pinner wrote:
>>>>> Hi,
>>>>>
>>>>> We confirmed the Unconference - http:///pyconuk.org <http://pyconuk.org>
>>>>> -
>>>>> a couple of weeks ago and announced it on the pyconuk and python-uk
>>>>> lists.
>>>>>
>>>>>
>>>>> Regrettably there has been a very poor response (2 delegates, and one of
>>>>> those is me!) so faced with venue and insurance costs of approx £2k to
>>>>> cover
>>>>> it looks like we will have to cancel. Very disappointing given the high
>>>>> level of interest expressed at EuroPython.
>>>>>
>>>>> Unless of course there is a sudden rush...
>>>>>
>>>>> We'll give it until the middle of next week before making a final
>>>>> decision.
>>>>>
>>>>> Best wishes,
>>>>>
>>>>> John
>>>>> --
>>>>>
>>>>>
>>>>> Cool, I've booked it!
>>>>>
>>>>> Looking forward to meeting some uk python peoples.
>>>>>
>>>>>
>>>>> I hope it goes ahead... I was planning to book it earlier, but forgot
>>>>> about it.  I imagine others also need reminding :)
>>>>>
>>>>>
>>>>> cu,
>>>>> ___
>>>>> python-uk mailing list
>>>>> python-uk@python.org
>>>>> http://mail.python.org/mailman/listinfo/python-uk
>>>>
>>>> ___
>>>> python-uk mailing list
>>>> python-uk@python.org
>>>> http://mail.python.org/mailman/listinfo/python-uk
>>>>
>>> ___
>>> python-uk mailing list
>>> python-uk@python.org
>>> http://mail.python.org/mailman/listinfo/python-uk
>>
>> ___
>> python-uk mailing list
>> python-uk@python.org
>> http://mail.python.org/mailman/listinfo/python-uk
>>
>
>
>
> --
> http://tim.jottit.com/
>



-- 
http://tim.jottit.com/
___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] Google Wave

2009-10-18 Thread Tim Head
me too: betatim at googlewave dot com

Assuming you get bored of adding new collaborators, can you just post
the link to the wave and we can just go there and add ourselves?

Tim

2009/10/18 Nicholas Tollervey :
> Same here:
>
> ntollervey  googlewave  etc etc etc etc  ;-)
>
> Nicholas.
>
> On 18 Oct 2009, at 17:52, Michael Foord wrote:
>
>> Bruce Durling wrote:
>>>
>>> Any pythonistas here on Google Wave?
>>>
>> I'm in. Apparently my address is:
>>
>>  fuzzyman AT googlewave DOT com
>>
>> Michael
>>>
>>> I don't have invites, but it would be good to find other people. Not
>>> much use without collaborators.
>>>
>>> cheers,
>>> Bruce
>>> ___
>>> python-uk mailing list
>>> python-uk@python.org
>>> http://mail.python.org/mailman/listinfo/python-uk
>>>
>>
>>
>> --
>> http://www.ironpythoninaction.com/
>> http://www.voidspace.org.uk/blog
>>
>>
>> ___
>> python-uk mailing list
>> python-uk@python.org
>> http://mail.python.org/mailman/listinfo/python-uk
>
> ___
> python-uk mailing list
> python-uk@python.org
> http://mail.python.org/mailman/listinfo/python-uk
>



-- 
http://tim.jottit.com/
___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] Google Wave

2009-10-18 Thread Tim Head
2009/10/18 Bruce Durling :
> 2009/10/18 Tim Head :
>> me too: betatim at googlewave dot com
>>
>> Assuming you get bored of adding new collaborators, can you just post
>> the link to the wave and we can just go there and add ourselves?
>
> At the moment I'm trying to figure out what a useful URL would look
> like. I'm a total n00b here.
>

Oh, this was a "is it possible to do that" question not a hint that
you might want to do that ;))

On the subject of n00bness, how on earth can I persuade a wave to
leave my inbox and be archived? I would have thought pressing
"Archive" while having it open would do the trick but apparently not.

Tim

> cheers,
> Bruce
> ___
> python-uk mailing list
> python-uk@python.org
> http://mail.python.org/mailman/listinfo/python-uk
>



-- 
http://tim.jottit.com/
___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk