Re: Calendar module question

2013-02-17 Thread James Griffin
- Phil  [2013-02-17 17:47:15 +1000] - :

> Thank you for reading this.
> 
> My adventures with Python have just begun and during the few weeks I
> have tried many IDEs. The following piece of code fails under all
> IDEs, and the interpreter, except under the Wing IDE.
> 
> Why would this code work under the Wing IDE and nowhere else? Could
> there be a different calendar module included with Wing?
> 
> import calendar
> 
> cal = calendar.prcal(2013)
> print cal
> 
> Traceback (most recent call last):
>   File "calendar.py", line 1, in 
> import calendar
>   File "/home/phil/calendar.py", line 3, in 
^^^

There is your problem.

Parsedatetime is a good calendar module. I've been using it recently for
an email related script.


-- 
Primary Key: 4096R/1D31DC38 2011-12-03
Key Fingerprint: A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [Python-ideas] string.format() default variable assignment

2013-03-02 Thread James Griffin
[- Sat  2.Mar'13 at 17:54:57 +1100  Chris Angelico :-]

> On Sat, Mar 2, 2013 at 5:09 PM, Devin Jeanpierre  
> wrote:
> > On Fri, Mar 1, 2013 at 10:54 PM, Chris Angelico  wrote:
> >>> No offence Chris, but you're the only person I know who *regularly*
> >>> replies to the wrong list. Does your mail client not have a "Reply to
> >>> List" command, or "Reply All"? If so, then you should use it rather than
> >>> manually typing the (wrong) list address in.
> >>
> >> Correct, Gmail doesn't. I should switch to Thunderbird (or something
> >> else, but I've heard a good many recommendations for Tbird) but have
> >> yet to get around to setting it up.
> >
> > Actually, it has a few ways to reply-to-all. In this screenshot, there
> > are three things I could click to reply-to-all:
> > http://imgur.com/914BNuY
> 
> Yes, but reply-all sends a copy to the poster as well as the list.
> What I want is reply-list, acknowledging the list headers... and Gmail
> simply doesn't have that.
> 
> I also want to be able to change my mind as to whether it's
> reply-all/reply-list/reply-sender after typing up a reply. Guess it's
> time I grabbed Tbird to find out if it can do that...

use mutt devel or [Al]pine. Text based MUA's and News readers are more 
efficient IMO.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [Python-ideas] string.format() default variable assignment

2013-03-05 Thread James Griffin
[- Tue  5.Mar'13 at  2:42:07 +  Steven D'Aprano :-]

> On Mon, 04 Mar 2013 11:09:10 -0500, David Robinow wrote:
> 
> >   But here's what I don't understand. Why does somebody who posts as
> > much as Steven (and thanks for that. Getting cussed at occasionally is a
> > cheap price for all the free advice) not set up a simple mail filter
> > which trashes all mail from python-list. Wouldn't that solve the
> > problem?  Or am I misunderstanding something?
> 
> When I'm working in my backyard garden, it's a real drag to put garden 
> refuse into the green waste bin for collection. I have to cut it up into 
> manageable-sized pieces, put them in a big carry bag, carry it through 
> the house, then empty the bag into the green waste collection bin the 
> local council supplies. What a drag! Maybe I should have thought of this 
> before moving into my house, but I'm stuck with it now, moving to a new 
> house would be difficult and expensive. Besides, apart from this one 
> little difficulty, I like it here. Since I have all sorts of good excuses 
> why doing the right thing is too much trouble, I just toss any plant 
> trimmings over the fence into my neighbour's yard. It's easy for him to 
> deal with it, all he has to do is get a goat to eat the garden waste I 
> toss over the fence, and his problem is solved.
> 
> I'm actually doing him a favour by tossing my garden trimmings into his 
> yard. If he doesn't get a goat, the trimmings will rot and turn into 
> compost, which improves the soil in his garden. He'll thank me some day.
> 
> I really don't understand why he thinks I'm being rude. He should be 
> grateful, not upset. If anyone is being rude, it's him, expecting me to 
> carry all that garden waste through the house into the collection bin. 
> Doesn't he understand how hard that is for me?

I'm sorry - i just had to reply :-) i've just got up and read this and
it actually made me LOL. Thanks Steven.
-- 
http://mail.python.org/mailman/listinfo/python-list