1. 18 Kas, 2003 1 kayıt (commit)
  2. 22 Tem, 2003 1 kayıt (commit)
  3. 10 May, 2003 1 kayıt (commit)
  4. 01 May, 2003 1 kayıt (commit)
  5. 19 Şub, 2003 1 kayıt (commit)
  6. 17 Şub, 2003 1 kayıt (commit)
    • Neal Norwitz's avatar
      Use correct function name to PyArg_ParseTuple("is_package"). · 5c1ba53f
      Neal Norwitz yazdı
      Fix off-by-1 error in normalize_line_endings():
        when *p == '\0' the NUL was copied into q and q was auto-incremented,
        the loop was broken out of,
        then a newline was appended followed by a NUL.
        So the function, in effect, was strcpy() but added two extra chars
        which was caught by obmalloc in debug mode, since there was only
        room for 1 additional newline.
      
      Get test working under regrtest (added test_main).
      5c1ba53f
  7. 09 Ock, 2003 1 kayıt (commit)
  8. 08 Ock, 2003 1 kayıt (commit)
  9. 03 Ock, 2003 1 kayıt (commit)
    • Just van Rossum's avatar
      Fix for bug #661136 · 9a3129c1
      Just van Rossum yazdı
      Lesson learned: kids should not be allowed to use API's starting
      with an underscore :-/
      zipimport in 2.3a1 is even more broken than I thought: I attemped
      to _PyString_Resize a string created by PyString_FromStringAndSize,
      which fails for strings with length 0 or 1 since the latter returns
      an interned string in those cases. This would cause a SystemError
      with empty source files (and no matching pyc) in the zip archive.
      I rewrote the offending code to simply allocate a new buffer and
      avoid _PyString_Resize altogether.
      Added a test that would've caught the problem.
      9a3129c1
  10. 02 Ock, 2003 1 kayıt (commit)
    • Just van Rossum's avatar
      Ugh, zipimport is virtually broken in 2.3a1 :-( It worked by accident in · d35c6db5
      Just van Rossum yazdı
      the test set as it only tested with a zip archive in the current directory,
      but it doesn't work at all for packages when the zip archive was specified
      as an absolute path. It's a real embarrassing bug: a strchr call should
      have been strrchr; fever apparently implies dyslexia.
      
      Second stupid bug: the zipimport test failed with a name error
      __importer__ (which I had renamed to __loader__ everywhere but here).
      I would've sworn I ran the test after that change but that can't be true.
      What I don't understand that noone reported a failing test_zipimport.py
      before the release of 2.3a1.
      d35c6db5
  11. 30 Ara, 2002 1 kayıt (commit)
    • Just van Rossum's avatar
      PEP 302 + zipimport: · 52e14d64
      Just van Rossum yazdı
      - new import hooks in import.c, exposed in the sys module
      - new module called 'zipimport'
      - various changes to allow bootstrapping from zip files
      
      I hope I didn't break the Windows build (or anything else for that
      matter), but then again, it's been sitting on sf long enough...
      
      Regarding the latest discussions on python-dev: zipimport sets
      pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as
      /path/to/Archive.zip/subdir/ are supported again.
      52e14d64