Re: [Tutor] has it gone quiet or is it just me?

2010-07-21 Thread William Witteman
On Wed, Jul 21, 2010 at 06:55:25PM +0100, Alan Gauld wrote: >I haven't had any tutor messages in 2 days. >Do I have a problem or are things just very quiet suddenly? >The archive isn't showing anything either which makes me suspicious. It's not just you. I've been hearing crickets as well. -- y

Re: [Tutor] What Editori?

2010-02-24 Thread William Witteman
On Wed, Feb 24, 2010 at 04:40:07PM +0100, Giorgio wrote: >And, what about more powerful editors? I mean editors with features like SVN/ >GIT management and so on. I think you'll find that there is extensive version control integration in most/all of the "less powerful" editors. Certainly you wou

Re: [Tutor] datetime, time zones, and ISO time

2010-02-17 Thread William Witteman
On Wed, Feb 17, 2010 at 03:24:26PM -0600, David Perlman wrote: >But this doesn't help, because then you still don't know whether it's >dst or not. You then would have to jump through whatever >convolutions to do that calculation. > >All I want to know is the *current* offset between local time and

Re: [Tutor] datetime, time zones, and ISO time

2010-02-17 Thread William Witteman
On Wed, Feb 17, 2010 at 12:44:02PM -0600, David Perlman wrote: >I have been really scratching my head over this, it seems like there >*should* be a nice easy way to do what I want but I can't find it for >the life of me. ... >But a) I don't know how to stick the offset info into a datetime >object,

Re: [Tutor] Recursive user input collection problem

2009-10-15 Thread William Witteman
On Thu, Oct 15, 2009 at 07:54:23AM -0400, Dave Angel wrote: >William Witteman wrote: >>Thanks to all who responded. There were several good points about the >>code itself, all of which both helped and work. >> >>I will likely use Alan's example because I find it

Re: [Tutor] Recursive user input collection problem

2009-10-14 Thread William Witteman
Thanks to all who responded. There were several good points about the code itself, all of which both helped and work. I will likely use Alan's example because I find it the most lucid, but the other suggestions are good signposts to other ways to do the same thing (but right, as opposed to how I

[Tutor] Recursive user input collection problem

2009-10-13 Thread William Witteman
I need to collect a couple of integers from a user, but I want to make sure that I actually get integers. I tried this, but subsequent calls to the function don't update variable. I'm not sure this is terribly clear - here's the code: num_of_articles = 0 num_of_reviewers = 0 def getinput(variab

Re: [Tutor] Having trouble with a dictionary of lists

2009-09-04 Thread William Witteman
On Fri, Sep 04, 2009 at 09:54:20AM -0700, Emile van Sebille wrote: >On 9/4/2009 9:09 AM William Witteman said... >>On Thu, Sep 03, 2009 at 11:26:35AM -0700, Emile van Sebille wrote: >> >>Thanks to Emile for pointing out the error. There were several other >>errors - in

Re: [Tutor] Having trouble with a dictionary of lists

2009-09-04 Thread William Witteman
On Thu, Sep 03, 2009 at 11:26:35AM -0700, Emile van Sebille wrote: Thanks to Emile for pointing out the error. There were several other errors - initiating the counter in the loop (d'oh!), premature sorting of the dictionary by keys, not providing an index row for the output file, not returning a

[Tutor] Having trouble with a dictionary of lists

2009-09-03 Thread William Witteman
I am trying to create a CSV file of sorted similar lists, arranged so that differences are easily compared in a spreadsheet. I am encountering the following error, however: IndexError: list assignment index out of range On the indicated line below. I understand the error, but I don't understand

Re: [Tutor] Tokenizing Help

2009-04-22 Thread William Witteman
On Wed, Apr 22, 2009 at 11:23:11PM +0200, Eike Welk wrote: >How do you decide that a word is a keyword (AU, AB, UN) and not a part >of the text? There could be a file like this: > ><567> >AU - Bibliographical Theory and Practice - Volume 1 - The AU - Tag >and its applications >AB - Texts in

Re: [Tutor] Tokenizing Help

2009-04-22 Thread William Witteman
On Wed, Apr 22, 2009 at 05:16:56PM -0400, bob gailer wrote: >> <1> # the references are enumerated >> AU - some text >> perhaps across lines >> AB - some other text >> AB - there may be multiples of some fields >> UN - any 2-letter combination may exist, other than by exhausti

Re: [Tutor] Tokenizing Help

2009-04-22 Thread William Witteman
On Wed, Apr 22, 2009 at 09:23:30PM +0200, spir wrote: >> I need to be able to decompose a formatted text file into identifiable, >> possibly named pieces. To tokenize it, in other words. There seem to >> be a vast array of modules to do this with (simpleparse, pyparsing etc) >> but I cannot unde

[Tutor] Tokenizing Help

2009-04-22 Thread William Witteman
I need to be able to decompose a formatted text file into identifiable, possibly named pieces. To tokenize it, in other words. There seem to be a vast array of modules to do this with (simpleparse, pyparsing etc) but I cannot understand their documentation. The file format I am looking at (it is