home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Programming / Python2 / Python20_source / CHANGES.SOURCE < prev    next >
Encoding:
Text File  |  2000-10-29  |  5.6 KB  |  184 lines

  1. Changes to the original 1.6 source code distribution:
  2. -------------------------------------------------------
  3.  
  4. General:
  5.  
  6. At different places I've added, removed or changed some code.
  7. I tried to do this by using the preprocessor symbols:
  8. _AMIGA : Defined when compiling on Amiga.
  9.          Indicates Amiga specific code.
  10. __SASC : Defined when compiling with the SAS/C compiler.
  11.          Indicates SAS/C specific code.
  12. AMITCP : Defined when using AmiTCP as networking software.
  13.          Indicates AmiTCP specific code, but maybe this
  14.          is easily converted to, say, Inet.
  15. INET225: Defined when using INET-225 as networking software.
  16.  
  17.  
  18. Added subdir Amiga_Misc with:
  19.     README                  - small describing text
  20.     mkdiffs.py              - makes diffs against original distribution
  21.     Diffs/                  - output dir for mkdiff.py
  22.     make_gst.c              - for building the GST
  23.     Python_netlib/          - contains source for python_net.lib
  24.     python_net.lib          - custom version of AmiTCP's net.lib,
  25.                   including some additional code like custom
  26.                   WB startup, environment functions etc.
  27.     DISCL_and_COPYRIGHT     - my disclaimer & CWI's copyright message
  28.     testset/                - additional tests for Amiga modules
  29.     unused/                 - currently unused stuff
  30.     Docs/                   - Amiga docs for distribution
  31.  
  32.  
  33. - Supplied custom makefile for Amiga's SAS/C: SMAKEFILE.
  34.   Supplied SAS/C compiler options file: SCOPTIONS.
  35.   You don't need any of the original makefiles (just delete them if you like).
  36.   (new since 1.5: SMAKEFILE splitted, one for each main directory)
  37.  
  38. - Added Prototype files for many source files.
  39.   See `protos' directories in: Modules, Objects, Parser, Python.
  40.  
  41. - Created Include/config.h
  42. - Created Include/protos.h
  43. - Created Modules/config.c
  44. - Created Modules/environment.c
  45. - Created Modules/amigamodule.c
  46. - Created Modules/ARexxmodule.c
  47. - Created Modules/Doslibmodule.c
  48.  
  49.  
  50. Include/Python.h:
  51.     - added #include "protos.h"
  52.     - added #include <fcntl.h>
  53.     - added SAS/C math includes
  54.  
  55. Include/osdefs.h:
  56.     - added AMIGA specific #defines
  57.  
  58. Include/compile.h:
  59.     - removed _node decl for SAS/C
  60.  
  61. Include/bitset.h:
  62.     - replaced BYTE def on _AMIGA with #include <exec/types.h>
  63.  
  64. Parser/intrcheck.c:
  65.     - Added SAS/C specific ^C handling
  66.  
  67. Objects/longobject.c: (line 1690)
  68.     - changed sizeof(PyLongObject) to sizeof(struct _longobject) because of
  69.       illegal sizeof expression (?)
  70.  
  71. Python/sigcheck.c:
  72.     - Added stack checking code
  73.  
  74. Python/sysmodule.c:
  75.     - Added #include "protos.h"
  76.     - Added code for absolute path check in PySys_SetArgv
  77.  
  78. Python/import.c:
  79.     - Fixed path building in find_module, now uses dos.library/AddPart
  80.     - Added Amiga version of check_case: now the imports are case sensitive
  81.  
  82. Python/pythonrun.c:
  83.     - Case insensive filename match for .pyc and .pyo
  84.  
  85.  
  86. Modules/mathmodule.c:
  87.     - added SAS/C versions of function macros which call the math
  88.       functions directly. Calling them through a function pointer
  89.       (the original way) results in bigger code and rounding errors (!?)
  90.  
  91. Modules/getbuildinfo.c:
  92.     - Added Amiga version string ($VER)
  93.  
  94. Modules/md5c.c:
  95.     - added lines to use regular memcpy and memset on AMIGA
  96.  
  97. Modules/binascii.c:
  98.     - fixed unsigned char bytes -1 --> 0xFF
  99.  
  100. Modules/timemodule.c:
  101.     - added #include "protos.h"
  102.     - added code for floatsleep() (uses select() if available)
  103.  
  104. Modules/getpath.c:
  105.     - added #include "protos.h"
  106.     - added Amiga version of PYTHONPATH #define
  107.     - added Amiga versions for getting full path of executable,
  108.       reduce, checking if path is relative, ...
  109.     - added proto for getxfile
  110.  
  111. Modules/cryptmodule.c:
  112.     - added AMITCP/INET includes
  113.  
  114. Modules/grpmodule.c:
  115.     - added AMITCP/INET includes
  116.     - added AMITCP/INET code changes
  117.  
  118. Modules/pwdmodule.c:
  119.     - added AMITCP/INET includes
  120.     - added AMITCP/INET code changes
  121.  
  122. Modules/syslogmodule.c:
  123.     - added AMITCP/INET includes
  124.     - added AMITCP/INET code changes
  125.  
  126. Modules/socketmodule.c: 
  127.     - added #include <sys/param.h>
  128.     - added check(s) for _AMIGA
  129.     - Added AMITCP/INET includes
  130.     - Added a couple of #defines for AMITCP/INET API
  131.     - Changed use of fcntl to IoctlSocket (for s.setblocking)
  132.     - Clear socket buffer for new socket (PySocketSock_New)
  133.  
  134. Modules/main.c:
  135.     - Added AmiTCP/INET init & cleanup functions to Modules/main.c
  136.         (checkXXXXlib functions)
  137.     - Tweaked some other things in main()
  138.  
  139. Modules/selectmodule.c:
  140.     - Added AmiTCP/INET #include
  141.     - Added Amiga's version of select funcion (with optional 5th parameter)
  142.  
  143.  
  144.  
  145.  
  146. - Added Lib/plat-amiga directory with files.
  147.  
  148. - Created Lib/lib-dynload directory to fix sys.exec_prefix behavior.
  149.  
  150.  
  151. - Changes to library files in Lib drawer. These changes are also documented
  152.   in the README file. Files involved:
  153.     os.py           (amiga additions)
  154.     tempfile.py     (temp path try order is: T:, :T, SYS:T)
  155.     posixpath.py    (stub for old posixpath.py)
  156.     amigapath.py    (amiga's replacement for posixpath.py)
  157.     site.py        (exit string for Amiga)
  158.     test/test_posixpath.py        (special separator stuff for Amiga)
  159.     test/test_hash.py        (fixed import of test_support)
  160.  
  161.  
  162.  
  163. **************************************** TODO *******************************************
  164.  
  165.  
  166. Modules/unicodedata.c:
  167.     - Added amiga specific code to initialize the unicode database.
  168.  
  169. Modules/unicodedatabase.c:
  170.     - Removed, replaced with an Amiga specific version
  171.       ("amigaunicodedatabase.c") that reads the database from disk files.
  172.       This is done because the original file is too large to compile and
  173.       the dynamic data loading saves memory.
  174.  
  175.  
  176.  
  177.  
  178.  
  179. - Moved some unneeded files from parser to Parser/NON-AMIGA,
  180.   from Modules to Modules/NON-AMIGA, from Lib to Lib/NON-AMIGA,
  181.   and from Python to Python/NON-AMIGA.
  182.   (these files are not included in the source archive for space reasons)
  183.  
  184.