[issue3488] Provide compress/uncompress functions on the gzip module

2010-10-01 Thread Anand B Pillai
Anand B Pillai added the comment: Okay. Verified as working. Thank you! -- ___ Python tracker <http://bugs.python.org/issue3488> ___ ___ Python-bugs-list mailin

[issue3488] Provide compress/uncompress functions on the gzip module

2008-08-01 Thread Anand B Pillai
New submission from Anand B Pillai <[EMAIL PROTECTED]>: Python has great in-built support for all sorts of text compression including bzip, gzip, tarfile and other general purpose modules like zlib etc. Of these, I have a gripe with gzip - it does not provide a simple way of compr

[issue3488] Provide compress/uncompress functions on the gzip module

2008-08-01 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Uploading a file containing two functions which can be used to provide compress/uncompress on gzip. This is not a patch to gzip.py, but a stand-alone file. It this looks fine, I will make a patch. Added file: http://bugs.pyth

[issue3492] Zlib compress/decompress functions returning bytearray

2008-08-02 Thread Anand B Pillai
New submission from Anand B Pillai <[EMAIL PROTECTED]>: >>> import zlib >>> s='This is a string' >>> sc=zlib.compress(s) >>> sc bytearray(b'x\x9c\x0b\xc9\xc8,V\x00\xa2D\x85\xe2\x92\xa2\xcc\xbct\x00/\xc2\x05\xcd') >>> zlib.de

[issue3488] Provide compress/uncompress functions on the gzip module

2008-08-02 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Thanks. The file I uploaded was not an actual patch but just how the functions would appear in the gzip module, to illustrate the code. I can make an actual patch to gzip.py with docstrings, unit-tests and taking care of your other co

[issue3488] Provide compress/uncompress functions on the gzip module

2008-08-03 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: I have uploaded the actual patch file which can be applied against the gzip.py module. I did not modify the _test() function since it is written for testing file compression. I can modify test_gzip.py if this patch is ac

[issue3492] Zlib compress/decompress functions returning bytearray

2008-08-03 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Hi, I have a patch ready for this to be applied to zlibmodule.c. The patch is attached. I have tested it and it is working fine. -- keywords: +patch Added file: http://bugs.python.org/file11047/zlibmodule

[issue3492] Zlib compress/decompress functions returning bytearray

2008-08-03 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Uploading svn diff for zlibmodule.c. Btw, how do I add unit tests for a fix ? You want me to create a simple test file and upload it here, or is there a standard procedure for this ? Please advise. Added file: http://bugs.pyth

[issue3488] Provide compress/uncompress functions on the gzip module

2008-08-03 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Uploading the svn diff. Added file: http://bugs.python.org/file11050/gzip_svn_diff.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3492] Zlib compress/decompress functions returning bytearray

2008-08-03 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Ok. I added two tests for checking the type of the returned object for zlib.compress and zlib.decompress in test_zlib.py in the py3k branch. Btw, my code uses assertEqual(type(...), bytes). Is this the proper way of type checking i

[issue3488] Provide compress/uncompress functions on the gzip module

2008-08-03 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Added test case in test_gzip.py. Attaching svn diff of the same. Added file: http://bugs.python.org/file11052/test_gzip_svn_diff.patch ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue3492] Zlib compress/decompress functions returning bytearray

2008-08-06 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Any updates ? The py3k list is also very silent since the week-end...Thanks! ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3492] Zlib compress/decompress functions returning bytearray

2008-08-13 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Thanks. Will this make into beta3 ? ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3492> ___

[issue3492] Zlib compress/decompress functions returning bytearray

2008-09-04 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Does py3k list/barry have this bug in their radar for rc2 ? ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3492] Zlib compress/decompress functions returning bytearray

2008-09-04 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: On Thu, Sep 4, 2008 at 4:59 PM, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > > Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: > > Two remarks: > 1. Some functions in Modules/zipimp

[issue3492] Zlib compress/decompress functions returning bytearray

2008-09-07 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Hi Gregory, Let me know if I can help out some way in testing the #3797 patches on various platforms. Regards, --Anand ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue7150] datetime operations spanning MINYEAR give bad results

2010-04-12 Thread Anand B Pillai
Anand B Pillai added the comment: Can someone update this issue ? Is the 2nd patch tested... ? -- ___ Python tracker <http://bugs.python.org/issue7150> ___ ___

[issue8319] HTMLparser does not handle call to handle_data when a tag contains no data.

2010-04-12 Thread Anand B Pillai
Changes by Anand B Pillai : -- nosy: +pythonhacker ___ Python tracker <http://bugs.python.org/issue8319> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2582] Unpickling of range objects fail in Py3k

2008-04-08 Thread Anand B Pillai
New submission from Anand B Pillai <[EMAIL PROTECTED]>: Unpickling of range objects is throwing an exception in Python 3.0 -- components: Interpreter Core, Library (Lib) files: bugdemo.py messages: 65157 nosy: pythonhacker severity: normal status: open title: Unpickling of range o

[issue3488] Provide compress/uncompress functions on the gzip module

2009-10-23 Thread Anand B Pillai
Anand B Pillai added the comment: Can we include this for the next release ? -- ___ Python tracker <http://bugs.python.org/issue3488> ___ ___ Python-bugs-list m

[issue7150] datetime operations spanning MINYEAR give bad results

2009-10-23 Thread Anand B Pillai
Anand B Pillai added the comment: The issue is present in Python 3.0 and 2.5 as well. Python 2.5.1 (r251:54863, Jul 17 2008, 13:21:31) [GCC 4.3.1 20080708 (Red Hat 4.3.1-4)] on linux2 Type "help", "copyright", "credits" or "license" for more

[issue7191] Odd behaviour with zlib.decompressobj optional parameter "wbits"

2009-10-23 Thread Anand B Pillai
New submission from Anand B Pillai : >>> import zlib >>> help(zlib.decompressobj) Help on built-in function decompressobj in module zlib: decompressobj(...) decompressobj([wbits]) -- Return a decompressor object. Optional arg wbits is the window buffer size. I expe

[issue7150] datetime operations spanning MINYEAR give bad results

2009-10-25 Thread Anand B Pillai
Anand B Pillai added the comment: The problem seems to be in the "normalize_date" function in datetimemodule.c. It is checking for a valid year range, but not checking for a valid month or day range. I have a patch which fixes this problem. It checks for month range (1<=m<=12)

[issue3488] Provide compress/uncompress functions on the gzip module

2009-10-29 Thread Anand B Pillai
Anand B Pillai added the comment: Ok, I will add this. -- ___ Python tracker <http://bugs.python.org/issue3488> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3488] Provide compress/uncompress functions on the gzip module

2009-11-07 Thread Anand B Pillai
Changes by Anand B Pillai : Removed file: http://bugs.python.org/file11035/gzip_patch.py ___ Python tracker <http://bugs.python.org/issue3488> ___ ___ Python-bugs-list m

[issue3488] Provide compress/uncompress functions on the gzip module

2009-11-07 Thread Anand B Pillai
Changes by Anand B Pillai : Removed file: http://bugs.python.org/file11044/gzip.patch ___ Python tracker <http://bugs.python.org/issue3488> ___ ___ Python-bugs-list mailin

[issue3488] Provide compress/uncompress functions on the gzip module

2009-11-07 Thread Anand B Pillai
Changes by Anand B Pillai : Removed file: http://bugs.python.org/file11050/gzip_svn_diff.patch ___ Python tracker <http://bugs.python.org/issue3488> ___ ___ Python-bug

[issue3488] Provide compress/uncompress functions on the gzip module

2009-11-07 Thread Anand B Pillai
Anand B Pillai added the comment: Uploading fresh gzip.py SVN diff with a minor change, i.e accepting a regular string as argument, aka zlib.compress. -- Added file: http://bugs.python.org/file15282/gzip.py.svndiff ___ Python tracker <h

[issue3488] Provide compress/uncompress functions on the gzip module

2009-11-07 Thread Anand B Pillai
Anand B Pillai added the comment: Uploading rst documentation svn diff for module. -- Added file: http://bugs.python.org/file15283/gzip.rst.svndiff ___ Python tracker <http://bugs.python.org/issue3

[issue7191] Odd behaviour with zlib.decompressobj optional parameter "wbits"

2009-11-12 Thread Anand B Pillai
Anand B Pillai added the comment: Ok, so you think a documentation update is enough ? Thanks. -- ___ Python tracker <http://bugs.python.org/issue7191> ___ ___

[issue15443] datetime module has no support for nanoseconds

2015-03-10 Thread Anand B Pillai
Changes by Anand B Pillai : -- nosy: +pythonhacker ___ Python tracker <http://bugs.python.org/issue15443> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21574] Port image types detections from PIL to the imghdr module

2015-03-10 Thread Anand B Pillai
Changes by Anand B Pillai : -- nosy: +pythonhacker ___ Python tracker <http://bugs.python.org/issue21574> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23698] Fix documentation for multiprocessing.Manager

2015-03-17 Thread Anand B Pillai
New submission from Anand B Pillai: multiprocessing.Manager seems to have an inconsistency in behaviour/documentation or both. The behaviour inconsistency is documented in the attached test script which should run for both Python2 and Python3. Briefly, multiprocessing.managers.BaseManager

[issue23698] Fix documentation for multiprocessing.Manager

2015-03-19 Thread Anand B Pillai
Anand B Pillai added the comment: Is your patch uploaded anywhere ? Anyway, before thinking whether this should be a patch or doc fix, one needs multiprocessing module author to possibly comment on the right behaviour expected here. -- ___ Python

[issue23698] Fix inconsistencies in behaviour and document it correctly for multiprocessing.Manager facade

2015-03-19 Thread Anand B Pillai
Changes by Anand B Pillai : -- title: Fix documentation for multiprocessing.Manager -> Fix inconsistencies in behaviour and document it correctly for multiprocessing.Manager facade ___ Python tracker <http://bugs.python.org/issu

[issue23746] sysconfg.is_python_build() is buggy

2015-03-23 Thread Anand B Pillai
New submission from Anand B Pillai: On Python 3.5.0a1+ built from source, >>> import sysconfig >>> sysconfig.is_python_build() False >>> sysconfig.is_python_build(True) False >>> sysconfig._PROJECT_BASE '/opt/bin' >>> import sys >>

[issue23746] sysconfg.is_python_build() is buggy

2015-03-23 Thread Anand B Pillai
Changes by Anand B Pillai : Added file: http://bugs.python.org/file38649/sysconfig_test.py ___ Python tracker <http://bugs.python.org/issue23746> ___ ___ Python-bug

[issue23747] platform module exposes win32_ver function on posix systems

2015-03-23 Thread Anand B Pillai
New submission from Anand B Pillai: >>> import platform >>> platform.system() 'Linux' >>> platform.win32_ver() ('', '', '', '') Why is this function even exposed on Linux ? It should be conditionally exposed only on

[issue23747] platform module exposes win32_ver function on posix systems

2015-03-23 Thread Anand B Pillai
Anand B Pillai added the comment: Similarly for mac_ver, java_ver etc. >>> platform.mac_ver() ('', ('', '', ''), '') >>> platform.java_ver() ('', '', ('', '', ''), ('

[issue23746] sysconfg.is_python_build() is buggy

2015-03-23 Thread Anand B Pillai
Anand B Pillai added the comment: Thanks. From current documentation it isn't clear. Agree to make this a doc bug then. It should also be made clear this would work only for the executable built in the source directory. As in, (Running from the source folder using source Python execu

[issue23746] sysconfg.is_python_build() is buggy

2015-03-23 Thread Anand B Pillai
Anand B Pillai added the comment: On second thoughts, why have such a function if it works correctly only when executed from source Cpython folder using source CPython executable and not otherwise ? Cuz if I am calling it like that I already KNOW that I am in such an environment. Possibly

[issue23746] sysconfg.is_python_build() is buggy

2015-03-23 Thread Anand B Pillai
Anand B Pillai added the comment: > Lib/test/test_asdl_parser.py:12:if not sysconfig.is_python_build(): As I guessed - it is used internally by unit tests and possibly has no other significan audience. It is best to document this clea

[issue23748] platform._uname_cache is writeable

2015-03-23 Thread Anand B Pillai
New submission from Anand B Pillai: >> import platform >>> print 'Actual =>',platform.uname() Actual => ('Linux', 'toshiba-laptop', '3.13.0-24-generic', '#47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014', 'x86_64', &#x

[issue23748] platform._uname_cache is writeable

2015-03-23 Thread Anand B Pillai
Anand B Pillai added the comment: I am changing the type to security as I dont think this is a behaviour issue. -- type: behavior -> security ___ Python tracker <http://bugs.python.org/issu

[issue23748] platform._uname_cache is writeable

2015-03-23 Thread Anand B Pillai
Anand B Pillai added the comment: Hmmm... dear sir - what prevents you from adding an __all__ to the module with these cache variables excluded ? -- ___ Python tracker <http://bugs.python.org/issue23

[issue23748] platform._uname_cache is writeable

2015-03-23 Thread Anand B Pillai
Anand B Pillai added the comment: Closing is an easy fix, bet on my word this would appear as a different bug, thanks for your quickie fix! -- ___ Python tracker <http://bugs.python.org/issue23

[issue23746] sysconfg.is_python_build() is buggy

2015-03-29 Thread Anand B Pillai
Changes by Anand B Pillai : -- assignee: -> docs@python components: +Documentation ___ Python tracker <http://bugs.python.org/issue23746> ___ ___ Python-

[issue23746] sysconfg.is_python_build() is buggy

2015-03-29 Thread Anand B Pillai
Changes by Anand B Pillai : -- nosy: +docs@python ___ Python tracker <http://bugs.python.org/issue23746> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23698] Multiprocessing.Manager: fix behavior and doc inconsistencies

2015-05-14 Thread Anand B Pillai
Anand B Pillai added the comment: @sbt - Any comments on this ? -- ___ Python tracker <http://bugs.python.org/issue23698> ___ ___ Python-bugs-list mailin