Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18975
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <jeanpierreda@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.017 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'subject:modules': 0.09; 'interfaces': 0.12; 'cc:addr:python-list': 0.15; 'interface?': 0.16; 'wrote:': 0.16; 'shape': 0.19; 'jan': 0.19; 'possibly': 0.19; 'seems': 0.19; 'cc:no real name:2**0': 0.21; 'maybe': 0.21; '(or': 0.22; 'header:In-Reply-To:1': 0.22; 'interface': 0.23; 'string': 0.24; 'cc:2**0': 0.25; 'creating': 0.25; 'sat,': 0.25; 'module': 0.26; 'pm,': 0.26; 'lists': 0.28; 'message- id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.29; 'seem': 0.29; 'subject:time': 0.30; 'oop': 0.30; 'received:209.85.210.46': 0.30; 'received:mail-pz0-f46.google.com': 0.30; 'strings.': 0.30; 'modules': 0.32; 'objects': 0.32; 'it.': 0.33; 'instead': 0.33; 'object': 0.33; 'anything': 0.34; 'complaints': 0.34; 'received:google.com': 0.37; 'event': 0.38; 'some': 0.38; 'received:209.85': 0.38; 'listed': 0.38; 'should': 0.38; 'etc.)': 0.38; "what's": 0.39; 'form.': 0.39; 'johnson': 0.39; 'received:209': 0.39; 'subject:: ': 0.39; 'your': 0.61; 'datetime': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=VlZeJ7iseh5tj6z0LzC1JrE8+NILMStJCnNO5c9Rhlk=; b=uE6qSiPg5cDQSepi9fCSuO71209LfcPu2n2qJhkxEr5D+FOH8LNsz9faWz8B6XeG7u 5R3Mnxe6fxRvEVxEWEn231CAFLK9Nav0qkAGr055Kgi8xD4/IMKfC9IlBpTpq7RuW/iZ Q4JVcgLefpxpvtS4FnJYVRo8ERqbob2tl1W3Q= |
| MIME-Version | 1.0 |
| In-Reply-To | <a0ba2204-9d09-46ba-a7e5-0c750b2cbddf@f11g2000yql.googlegroups.com> |
| References | <a0ba2204-9d09-46ba-a7e5-0c750b2cbddf@f11g2000yql.googlegroups.com> |
| From | Devin Jeanpierre <jeanpierreda@gmail.com> |
| Date | Sat, 14 Jan 2012 14:01:11 -0500 |
| Subject | Re: PyWarts: time, datetime, and calendar modules |
| To | Rick Johnson <rantingrickjohnson@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4748.1326567721.27778.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1326567722 news.xs4all.nl 6877 [2001:888:2000:d::a6]:49544 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:18975 |
Show key headers only | View raw
On Sat, Jan 14, 2012 at 1:54 PM, Rick Johnson <rantingrickjohnson@gmail.com> wrote: > The interface for these modules is not intuitive. Instead of creating > true OOP objects we have lists and strings. Any calendar object should > expose string names of both: days of the week and months of the year. > It seems one (or possibly more) of the three expose this important > info however i cannot find it *easily* enough. > > It seems we need to combine the three in some shape or form. time and > datetime would no doubt be great bedfellows. Or maybe datetime should > be attached to time, like os.path. In any event the interfaces are > horrendous. What's "horrendous" about the datetime module interface? Your listed complaints (OOP etc.) don't seem to have anything to do with it. -- Devin
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
PyWarts: time, datetime, and calendar modules Rick Johnson <rantingrickjohnson@gmail.com> - 2012-01-14 10:54 -0800
Re: PyWarts: time, datetime, and calendar modules Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-01-14 14:01 -0500
Re: PyWarts: time, datetime, and calendar modules Rick Johnson <rantingrickjohnson@gmail.com> - 2012-01-14 11:23 -0800
Re: PyWarts: time, datetime, and calendar modules Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-01-14 15:11 -0500
Re: PyWarts: time, datetime, and calendar modules Rick Johnson <rantingrickjohnson@gmail.com> - 2012-01-14 13:31 -0800
Re: PyWarts: time, datetime, and calendar modules Chris Angelico <rosuav@gmail.com> - 2012-01-15 08:56 +1100
Re: PyWarts: time, datetime, and calendar modules Evan Driscoll <edriscoll@wisc.edu> - 2012-01-14 14:58 -0600
Re: PyWarts: time, datetime, and calendar modules Rick Johnson <rantingrickjohnson@gmail.com> - 2012-01-14 15:19 -0800
Re: PyWarts: time, datetime, and calendar modules Chris Angelico <rosuav@gmail.com> - 2012-01-15 11:42 +1100
Re: PyWarts: time, datetime, and calendar modules Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-15 04:26 +0000
Re: PyWarts: time, datetime, and calendar modules Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-15 04:23 +0000
Re: PyWarts: time, datetime, and calendar modules Rick Johnson <rantingrickjohnson@gmail.com> - 2012-01-14 21:27 -0800
Re: PyWarts: time, datetime, and calendar modules Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-15 07:00 +0000
Re: PyWarts: time, datetime, and calendar modules Michael Torrie <torriem@gmail.com> - 2012-01-15 19:50 -0700
Re: PyWarts: time, datetime, and calendar modules Lie Ryan <lie.1296@gmail.com> - 2012-01-16 02:13 +1100
Re: PyWarts: time, datetime, and calendar modules Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-15 03:53 +0000
csiph-web