[liblouis-liblouisxml] Re: python and typeforms

  • From: Christian Egli <christian.egli@xxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Thu, 11 Feb 2010 15:56:46 +0100

Michael Whapples <mwhapples@xxxxxxx> writes:

> As the issue with using typeforms has only been raised recently I
> assume not many are even using typeforms, so is backwards
> compatibility a concern? 

I would assume that there are hardly any users that use the typeform
currently, so I wouldn't worry about it.

> Also there was the suggestion of people possibly not handing in a
> list, which raises its own issues. The docs actually say list, but
> currently a tuple would be accepted fine.

I would make sure that you handle the case when a tuple is passed in
e.g. the way you suggest below.

> I personally quite like the idea of, if you want typeform data back
> then use a list, if you use a tuple then typeform data won't be
> modified (it fits with python's mutable and immutable objects).

Thanks
Christian
-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland
For a description of the software and to download it go to
http://www.jjb-software.com

Other related posts: