Re: Windows vs. Linux

2006-08-04 Thread andrew clarke
On Tue, Aug 01, 2006 at 05:31:01PM +0200, Sybren Stuvel wrote:

> James Stroud enlightened us with:
> > its better to use:
> >
> >os.path.join('my', 'favorite', 'dir')
> >
> > than
> >
> >"\\".join(['my', 'favorite', 'dir'])
> >
> > because the latter will bonk on linux.
> 
> Ehm... replace that with "the latter with bonk on every OS except
> Microsoft Windows". Windows is the weird one in OS-land, because they
> are the only one that use the most widely used escape-character (the
> backslash) as path separator.

OS/2 (and eComStation) also uses the backslash as the path separator.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Windows vs. Linux

2006-08-04 Thread andrew clarke
On Fri, Aug 04, 2006 at 02:01:58PM +0200, Sybren Stuvel wrote:

> > OS/2 (and eComStation) also uses the backslash as the path
> > separator.
> 
> You mean OS/2 is still in actual use?

'fraid so.  :-)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: pytz has so many timezones!

2007-10-08 Thread andrew clarke
On Mon, Oct 08, 2007 at 12:32:19AM -0700, Sanjay wrote:

> I am using pytz.common_timezones to populate the timezone combo box of
> some user registration form. But as it has so many timezones (around
> 400), it is a bit confusing to the users. Is there a smaller and more
> practical set? If not, some suggestions on how to handle the
> registration form effectively would help me a lot.

Use something like:

for zone in common_timezones:
  continent, region = zone.split('/')

Then have two list boxes, one for the continent and the other for the region.

[Australia  ]

[Melbourne  ]

('Continent' is probably not the right word.)

Regards
Andrew
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: c++ for python programmers

2007-02-12 Thread andrew clarke
On Mon, Feb 12, 2007 at 10:00:51AM -0800, Thomas Nelson wrote:

> I realize I'm approaching this backwards from the direction most
> people go, but does anyone know of a good c/c++ introduction for
> python programmers?

Thomas, I sent you a message off-list but it bounced due to your mailbox
being full.

Short answer: Subscribe to the c-prog@yahoogroups.com mailing list and
ask your C/C++ questions there.

Regards
Andrew
-- 
http://mail.python.org/mailman/listinfo/python-list