Re: Generate 16+MAX_WBITS decompressable data

2013-02-12 Thread Fayaz Yusuf Khan
Marc Christiansen wrote: > Try using a compressobj with 24 <= wbits < 32. It should work, but I > didn't try. > Er, the problem is that compressobj doesn't accept a WBIT argument. -- Fayaz Yusuf Khan Cloud architect, Dexetra SS, India fayaz.yusuf.khan_AT_gmail_DOT_com,

Generate 16+MAX_WBITS decompressable data

2013-02-12 Thread Fayaz Yusuf Khan
ile decompressing data: incorrect header check zlib.decompress without the second argument works, but I can't really go ahead into my project file and remove it. -- Fayaz Yusuf Khan Cloud architect, Dexetra SS, India fayaz.yusuf.khan_AT_gmail_DOT_com, fayaz_AT_dexetra_DOT_com +91-9746-830-823 -- http://mail.python.org/mailman/listinfo/python-list

Re: unit testing class hierarchies

2012-10-02 Thread Fayaz Yusuf Khan
oving the class from namespace may or may not help. Consider a scenario where someone decided to be creative with the cls.__bases__ attribute. -- Fayaz Yusuf Khan Cloud architect, Dexetra SS, India fayaz.yusuf.khan_AT_gmail_DOT_com, fayaz_AT_dexetra_DOT_com +91-9746-830-823 -- http://mail.python.org/mailman/listinfo/python-list

Re: Wish: Allow all log Handlers to accept the level argument

2012-05-23 Thread Fayaz Yusuf Khan
Jean-Michel Pichavant wrote: > Meanwhile you can shorten the code this way: > > root.addHandler(FileHandler('debug.log')) > root.handlers[-1].setLevel(DEBUG) > Eh? Readability was the aim. -- Fayaz Yusuf Khan Cloud architect, Dexetra SS, India fayaz.yu

Wish: Allow all log Handlers to accept the level argument

2012-05-18 Thread Fayaz Yusuf Khan
***TRIVIAL ISSUE***, but this has been irking me for a while now. The main logging.Handler class' __init__ accepts a level argument while none of its children do. The poor minions seem to be stuck with the setLevel method which considerably lengthens the code. In short: Let's do this: root.addHa

What is the use of python.cache_ubuntu?

2012-05-03 Thread Fayaz Yusuf Khan
My Ubuntu 11.04 server ran out of inodes due to too many files in '/tmp/python.cache_ubuntu'. Does anyone know what it does? -- Cloud architect and hacker, Dexetra, India fayaz.yusuf.khan_AT_gmail_DOT_com fayaz_AT_dexetra_DOT_com +91-9746-830-823 -- http://mail.python.org/mailman/listinfo/python

Re: How to get a package pip installable?

2012-04-15 Thread Fayaz Yusuf Khan
nbvf...@gmail.com wrote: > (test)chris@amnesia:~$ pip install django-easydump > Downloading/unpacking django-easydump > Could not find any downloads that satisfy the requirement django-easydump > No distributions at all found for django-easydump > Storing complete log in /Users/chris/.pip/pip.log

Re: PyWart: Language missing maximum constant of numeric types!

2012-02-24 Thread Fayaz Yusuf Khan
of the integer infinity" make any sense to the developers? :P -- Fayaz Yusuf Khan Cloud developer and architect Dexetra SS, Bangalore, India fayaz.yusuf.khan_AT_gmail_DOT_com fayaz_AT_dexetra_DOT_com +91-9746-830-823 signature.asc Description: This is a digitally signed message part. -- htt

Re: asynchronous downloading

2012-02-23 Thread Fayaz Yusuf Khan
On Thursday 23 Feb 2012 5:10:25 PM Plumo wrote: > I read through the python-dev archives and found the fundamental problem is > no one maintains asnycore / asynchat. By all means, scratch your own itch. :) -- Fayaz Yusuf Khan Cloud developer and architect Dexetra SS, Bangalore,

Re: Should I acquire lock for logging.Handler.flush()?

2012-02-23 Thread Fayaz Yusuf Khan
assumed that flush() should/would also be handled similarly. Afterall, they are handling the same underlying output stream or in case of the BufferingHandler share the same buffer. Shouldn't the access be synchronized? -- Fayaz Yusuf Khan Cloud developer and architect Dex

Re: Should I acquire lock for logging.Handler.flush()?

2012-02-21 Thread Fayaz Yusuf Khan
ire() or release()) Or is it being locked from somewhere else? -- Fayaz Yusuf Khan Cloud developer and architect Dexetra SS, Bangalore, India fayaz.yusuf.khan_AT_gmail_DOT_com fayaz_AT_dexetra_DOT_com +91-9746-830-823 signature.asc Description: This is a digitally signed message part. -- http:

Should I acquire lock for logging.Handler.flush()?

2012-02-20 Thread Fayaz Yusuf Khan
eading the Handler documentation and was confused if I should call the acquire() and release() methods from within a flush() call. -- Fayaz Yusuf Khan Cloud developer and architect Dexetra SS, Bangalore, India fayaz.yusuf.khan_AT_gmail_DOT_com fayaz_AT_dexetra_DOT_com +91-9746-830-823 sig

Re: Looking for open-source Python projects to help out with

2011-09-07 Thread Fayaz Yusuf Khan
consider others given a good argument. > > Interested? The project page and mailing list? -- Fayaz Yusuf Khan Cloud developer and designer Dexetra SS, Kochi, India fayaz.yusuf.khan_AT_gmail_DOT_com fayaz_AT_dexetra_DOT_com +91-9746-830-823 signature.asc Description: This is a digitally signed message part. -- http://mail.python.org/mailman/listinfo/python-list