Hi all, I'm attaching some patches that enable the current version of numexpr (r2142) to:
1. Handle int64 integers in addition to int32 (constants, variables and arrays). Python int objects are considered int32 if they fit in 32 bits. Python long objects and int objects that don't fit in 32 bits (for 64-bit platforms) are considered int64. 2. Handle string constants, variables and arrays (not Unicode), with support for comparison operators (==, !=, <, <=, >=, >). (This brings the old ``memsizes`` variable back.) String temporaries (necessary for other kinds of operations) are not supported. The patches also include test cases and some minor corrections (e.g. removing odd carriage returns in some lines in compile.py). There are three patches to ease their individual review: * numexpr-int64.diff only contains the changes for int64 support. * numexpr-str.diff only contains the changes for string support. * numexpr-int64str.diff contains all changes. The task has been somehow difficult, but I think the result fits quite well in numexpr. So, what's your opinion about the patches? Are they worth integrating into the main branch? Thanks! :: Ivan Vilata i Balaguer >qo< http://www.carabos.com/ Cárabos Coop. V. V V Enjoy Data ""
numexpr-int64str.tar.gz
Description: GNU Zip compressed data
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion