Re: [BangPypers] xlrd

2014-08-24 Thread Jayanth Koushik
ke this - though the files I have been using are not password > protected. > > -- > Sayantan > On Aug 21, 2014 8:32 PM, "Jayanth Koushik" wrote: > > > If the encryption does not matter, then the easier way might be to remove > > the encryption and procee

Re: [BangPypers] xlrd

2014-08-21 Thread Jayanth Koushik
gt; is there any changes to be made to book.py ? > >>> thanks in advance. > > > > --- > Regards, > > Shashidhar N.Paragonda > shashidha...@gmail.com > +919900093835 > > > On Thu, Aug 21, 2014 at 5:03 PM, Jayanth Koushik

Re: [BangPypers] xlrd

2014-08-21 Thread Jayanth Koushik
Actually, that might be outdated. I grepped the xlrd source for this particular exception. It's raised only from once place: xlrd/book.py:896 (assuming you're using the latest version: 0.9.3). The particular function 'handle_filepass' is weird...: def handle_filepass(self, data): if se

Re: [BangPypers] xlrd

2014-08-21 Thread Jayanth Koushik
Are you sure the files aren't encrypted? If they are, then xlrd can't handle them. http://www.lexicon.net/sjmachin/README.html (Look at 'Unlikely to be done') Jayanth On Thu, Aug 21, 2014 at 3:26 PM, Shashidhar Paragonda < shashidha...@gmail.com> wrote: > Hello all, > >>> I am using xlrd libra

Re: [BangPypers] doubt on installation python

2014-06-01 Thread Jayanth Koushik
Dear Jerin Ubuntu comes with Python built in. To launch it, use the command 'python' in a terminal. Jayanth > On 01-Jun-2014, at 3:56 pm, JERIN JACOB wrote: > > Dear friends > > I having the ubuntu os its possiable to install python > ___ > BangPy

Re: [BangPypers] Iterators

2014-04-01 Thread Jayanth Koushik
Nice try :D :D On Tue, Apr 1, 2014 at 9:41 PM, Pradip Caulagi wrote: > It is rather late in the day to bring this up but ... > > I heard they are removing iterators from Python to keep a small core. > Anybody want to join efforts to write a generic library to fill this > gap? > > -- > Pradip P

Re: [BangPypers] JSON PARSER (Rajiv)

2014-03-21 Thread Jayanth Koushik
> > > On Fri, Mar 21, 2014 at 2:45 PM, wrote: > > > Send BangPypers mailing list submissions to > > bangpypers@python.org > > > > To subscribe or unsubscribe via

Re: [BangPypers] JSON PARSER (Rajiv)

2014-03-21 Thread Jayanth Koushik
Sorry, I meant: >>> eval("{'a': 1, 'a': 2}") {'a': 2} On Fri, Mar 21, 2014 at 3:31 PM, Jayanth Koushik wrote: > Hi Rajiv > > eval does not work with duplicates. > > >>> eval("{'a': 1, 'b': 2}

Re: [BangPypers] JSON PARSER

2014-03-21 Thread Jayanth Koushik
y wrote: > >> Hi Jayanth, >> >> Ideally speaking a JSON shouldn't be created with repetitive key names. >> But manually it is possible that a proper JSON file can be appended with a >> duplicate key. We need to catch that duplicate key. If we are going to use >

Re: [BangPypers] JSON PARSER

2014-03-21 Thread Jayanth Koushik
Hi Lokesh The 'problem' that you talk about isn't really a problem. Since the JSON specification does not say what is to be done for repeated names, it is up to the implementation to decide. What is your requirement for handling repeated names? Jayanth On Fri, Mar 21, 2014 at 2:30 PM, lokesh bo