Re: [Tutor] Where to direct non-language questions?

2011-08-22 Thread Michael Scharf
On Sat, Aug 13, 2011 at 3:58 AM, Steven D'Aprano wrote: > Michael Scharf wrote: >> >> Sent: Friday, August 12, 2011 3:54 PM >> >> Hi List, >> >> I'm am not quite at the point of needing this, but where would I go to >> ask a question like

Re: [Tutor] Where to direct non-language questions?

2011-08-12 Thread Michael Scharf
Sent: Friday, August 12, 2011 3:54 PM Hi List, I'm am not quite at the point of needing this, but where would I go to ask a question like "Why is the OpenCalais Python API not returning all fields when I do x or y"  or "Has anyone built their own Python API for OpenCalais"?  Stack Overflow? Or is

[Tutor] Where to direct non-language questions?

2011-08-12 Thread Michael Scharf
Hi List, I'm am not quite at the point of needing this, but where would I go to ask a question like "Why is the OpenCalais Python API not returning all fields when I do x or y" or "Has anyone built their own Python API for OpenCalais"? Stack Overflow? Or is there something Python-specific? Than

Re: [Tutor] Why are arguments sometimes on the left side?

2010-09-20 Thread Michael Scharf
Okay, we now have a dog named Fluffy, which is just one instance of > our dog class. With the way you would want to do things, I would have > to say > bark(f) > But what is bark? Where is it defined? You can see it is in the dog > class, but Python cannot; you passed a dog instance to bark(), but >

[Tutor] Why are arguments sometimes on the left side?

2010-09-20 Thread Michael Scharf
Hi, Why is it list0.extend(list1) and not extend(list 0, list1) or stri0 = stri0.strip() and not stri0 = strip(stri0) Why have arguments on the left side at all, when usually the dot notation left to right implies a hierarchical relation: file.class or class.method

Re: [Tutor] re.findall parentheses problem

2010-09-14 Thread Michael Scharf
Hi Evert, Thank you. I should have figured "groups" were the paren groups. I see it clearly now. And your solution will work for the larger thing I'm trying to do --- thanks. And yes: I know this matches some non-date-like dates, but the data is such that it should work out ok. Thanks again,

[Tutor] re.findall parentheses problem

2010-09-14 Thread Michael Scharf
Hi all, I have a regex that matches dates in various formats. I've tested the regex in a reliable testbed, and it seems to match what I want (dates in formats like "1 Jan 2010" and "January 1, 2010" and also "January 2008"). It's just that using re.findall with it is giving me weird output. I'm

[Tutor] NLTK needs YAML?

2010-04-23 Thread Michael Scharf
Dear Friends, I'm new to the list, and new to Python. The last time I've tried anything like the below was 20 years ago on a NeXT machine, and I had no clue what I was doing then, either. I've gotten IDLE up and have done some hello worlding. I am now trying to get the NLTK working on my new iM