summaryrefslogtreecommitdiffstats
path: root/Modules/arraymodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Tiny patch by Mark Hammond to avoid sys/types.h if we don't have itGuido van Rossum1999-08-271-2/+4
| | | | (for Windows/CE).
* Use an unsigned cast to avoid a warning in VC++.Guido van Rossum1999-03-191-1/+2
|
* Carefully check for overflow when allocating the memory for fromfileGuido van Rossum1999-02-231-1/+8
| | | | | -- someone tried to pass in sys.maxint and got bitten by the bogus calculations.
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* No need to issue a fatal error if the PyDict_SetItemString fails; theGuido van Rossum1998-10-141-3/+2
| | | | caller (in import.c) will test for errors and take appropriate action.
* ACK! There was still an unescaped newline in a docstring.Guido van Rossum1998-10-141-1/+1
|
* Doc strings by Chris Petrilli.Guido van Rossum1998-10-131-42/+177
|
* Added buffer_info() method that returns address and length in bytes ofGuido van Rossum1997-08-121-0/+10
| | | | the buffer used to hold the array -- for dangerous low-level I/O.
* array_type -> ArrayTypeGuido van Rossum1997-06-021-2/+2
|
* PyObject_Compare can raise an exception now.Guido van Rossum1997-05-231-4/+4
|
* Defined array.array_type, the type object.Guido van Rossum1997-05-221-1/+6
|
* Address the following problem on DOS and Win 3.1, reported by JimGuido van Rossum1997-05-161-12/+12
| | | | | | | | | Ahlstrom: Arraymodule.c has static functions H_getitem and h_getitem, and a few others which differ only in case. These are a problem on Windows 3.1, since a case-sensitive link causes Winsock to fail (hey, it's not my fault). Please convert H_etc to HH_etc etc.
* Checkin of Jack's buffer mods.Guido van Rossum1997-05-051-0/+53
| | | | Not really checked, but didn't fail any tests either...
* Keep Microsoft VC happy.Guido van Rossum1997-04-111-2/+2
|
* Add new formats B, H, I, L for unsigned data types (analogous to theGuido van Rossum1997-01-031-1/+85
| | | | recent changes in the struct module).
* Removed some unneeded header files and reedited with a fixed-width fontRoger E. Masse1996-12-091-14/+19
| | | | from emacs as per recomendation from GvR
* Renamed Grandly (I think).Roger E. Masse1996-12-091-265/+270
|
* Keep gcc -Wall happy.Guido van Rossum1996-12-051-0/+8
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* changes for MPWGuido van Rossum1995-03-091-1/+1
|
* make routines staticGuido van Rossum1995-01-221-5/+5
|
* Made some more things static, and other cleanup for new naming schemeGuido van Rossum1995-01-171-5/+5
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
* Another bulky set of minor changes.Guido van Rossum1995-01-021-8/+1
| | | | | Note addition of gethostbyaddr() and improved repr() for sockets, renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
* Changes for MacGuido van Rossum1994-08-191-0/+4
|
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-102/+43
|
* * timemodule.c: Add hack for Solaris 2.Guido van Rossum1993-11-231-1/+1
| | | | | | | | | | | | | | | * posixmodule.c: don't prototype getcwd() -- it's not portable... * mappingobject.c: double-check validity of last_name_char in dict{lookup,insert,remove}. * arraymodule.c: need memmove only for non-STDC Suns. * Makefile: comment out HTML_LIBS and XT_USE by default * pythonmain.c: don't prototype getopt() -- it's not standardized * socketmodule.c: cast flags arg to {get,set}sockopt() and addrbuf arg to recvfrom() to (ANY*). * pythonrun.c (initsigs): fix prototype, make it static * intobject.c (LONG_BIT): only #define it if not already defined * classobject.[ch]: remove all references to unused instance_convert() * mappingobject.c (getmappingsize): Don't return NULL in int function.
* * posixmodule.c: added set{uid,gid}.Guido van Rossum1993-11-101-2/+14
| | | | | | * {tuple,list,mapping,array}object.c: call printobject with 0 for flags * compile.c (parsestr): use quote instead of '\'' at one crucial point * arraymodule.c (array_getattr): Added __members__ attribute
* Fix stupib bug in concatenationGuido van Rossum1993-11-051-1/+1
|
* * nismodule.c: database keys and values can contain null bytes. be moreGuido van Rossum1993-11-031-23/+69
| | | | | | | | | | careful about these. * arraymodule.c: added 8 byte swap; added 'i' format character; added reverse() method; rename read/write to fromfile/tofile. * config.c: Set version to 0.9.9++. * rotormodule.c (r_rand): declare k1..k5 as unsigned longs so the shifts will have a well-defined effect independent of word size. * bltinmodule.c: renamed bagof() to filter().
* * ceval.c, longobject.c, methodobject.c, listnode.c, arraymodule.c,Guido van Rossum1993-11-011-1/+2
| | | | | | pythonrun.c: added static forward declarations * pythonrun.h, ceval.h, longobject.h, node.h: removed declarations of static routines
* * Extended X interface: pixmap objects, colormap objects visual objects,Sjoerd Mullender1993-10-111-1/+1
| | | | | | | | image objects, and lots of new methods. * Added counting of allocations and deallocations of builtin types if COUNT_ALLOCS is defined. Had to move calls to NEWREF down in some files. * Bug fix in sorting lists.
* * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum1993-06-171-1/+1
| | | | | | | | | | Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close().
* * Microscopic corrections to make things compile on the Cray APP.Guido van Rossum1993-04-071-0/+8
| | | | | * Removed one use of $> in Makefile and warned about others. Added configurable lines in Makefile to change CC and AR.
* Added new module "array" (for now optional) defining array objects.Guido van Rossum1993-02-191-0/+1152