1. 31 May, 2004 1 kayıt (commit)
  2. 07 Şub, 2004 1 kayıt (commit)
  3. 04 Eyl, 2003 1 kayıt (commit)
  4. 10 May, 2003 1 kayıt (commit)
  5. 12 Agu, 2002 1 kayıt (commit)
  6. 06 Agu, 2002 1 kayıt (commit)
    • Guido van Rossum's avatar
      SF patch 580331 by Oren Tirosh: make file objects their own iterator. · 7a6e9594
      Guido van Rossum yazdı
      For a file f, iter(f) now returns f (unless f is closed), and f.next()
      is similar to f.readline() when EOF is not reached; however, f.next()
      uses a readahead buffer that messes up the file position, so mixing
      f.next() and f.readline() (or other methods) doesn't work right.
      Calling f.seek() drops the readahead buffer, but other operations
      don't.
      
      The real purpose of this change is to reduce the confusion between
      objects and their iterators.  By making a file its own iterator, it's
      made clearer that using the iterator modifies the file object's state
      (in particular the current position).
      
      A nice side effect is that this speeds up "for line in f:" by not
      having to use the xreadlines module.  The f.xreadlines() method is
      still supported for backwards compatibility, though it is the same as
      iter(f) now.
      
      (I made some cosmetic changes to Oren's code, and added a test for
      "file closed" to file_iternext() and file_iter().)
      7a6e9594
  7. 24 May, 2002 1 kayıt (commit)
  8. 21 Nis, 2002 1 kayıt (commit)
    • Tim Peters's avatar
      Py_UniversalNewlineFread(): Many changes. · 058b141e
      Tim Peters yazdı
      + Continued looping until n bytes in the buffer have been filled, not
        just when n bytes have been read from the file.  This repairs the
        bug that f.readlines() only sucked up the first 8192 bytes of the file
        on Windows when universal newlines was enabled and f was opened in
        U mode (see Python-Dev -- this was the ultimate cause of the
        test_inspect.py failure).
      
      + Changed prototye to take a char* buffer (void* doesn't make much sense).
      
      + Squashed size_t vs int mismatches (in particular, besides the unsigned
        vs signed distinction, size_t may be larger than int).
      
      + Gets out under all error conditions now (it's possible for fread() to
        suffer an error even if it returns a number larger than 0 -- any
        "short read" is an error or EOF condition).
      
      + Rearranged and simplified declarations.
      058b141e
  9. 14 Nis, 2002 1 kayıt (commit)
    • Jack Jansen's avatar
      Mass checkin of universal newline support. · 7b8c7546
      Jack Jansen yazdı
      Highlights: import and friends will understand any of \r, \n and \r\n
      as end of line. Python file input will do the same if you use mode 'U'.
      Everything can be disabled by configuring with --without-universal-newlines.
      
      See PEP278 for details.
      7b8c7546
  10. 15 Mar, 2002 1 kayıt (commit)
  11. 28 Kas, 2001 1 kayıt (commit)
  12. 13 Eyl, 2001 1 kayıt (commit)
  13. 14 May, 2001 1 kayıt (commit)
  14. 01 Eyl, 2000 1 kayıt (commit)
  15. 13 Tem, 2000 1 kayıt (commit)
  16. 09 Tem, 2000 1 kayıt (commit)
  17. 30 Haz, 2000 2 kayıt (commit)
  18. 04 Ara, 1998 1 kayıt (commit)
  19. 22 May, 1997 1 kayıt (commit)
  20. 25 Eki, 1996 1 kayıt (commit)
  21. 22 May, 1996 1 kayıt (commit)
  22. 27 Şub, 1995 1 kayıt (commit)
  23. 17 Ock, 1995 1 kayıt (commit)
  24. 12 Ock, 1995 1 kayıt (commit)
  25. 04 Ock, 1995 1 kayıt (commit)
    • Guido van Rossum's avatar
      Added 1995 copyright. · 5799b520
      Guido van Rossum yazdı
      object.h: made sizes and refcnts signed ints.
      stringobject.h: make getstrsize() signed int.
      methodobject.h: add METH_VARARGS and METH_FREENAME flag bit definitions.
      5799b520
  26. 18 Agu, 1994 1 kayıt (commit)
  27. 01 Agu, 1994 1 kayıt (commit)
  28. 18 Eki, 1993 1 kayıt (commit)
  29. 28 Tem, 1993 1 kayıt (commit)
    • Guido van Rossum's avatar
      * Added support for X11 modules. · a3309960
      Guido van Rossum yazdı
      * Makefile: change location of FORMS library.
      * posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not)
      * Almost all .h files: added CPP magic to avoid duplicate inclusions and
        to support inclusion from C++.
      a3309960
  30. 29 Mar, 1993 1 kayıt (commit)
    • Guido van Rossum's avatar
      * Changed all copyright messages to include 1993. · 9bfef44d
      Guido van Rossum yazdı
      * Stubs for faster implementation of local variables (not yet finished)
      * Added function name to code object.  Print it for code and function
        objects.  THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version
        number has changed accordingly)
      * Print address of self for built-in methods
      * New internal functions getattro and setattro (getattr/setattr with
        string object arg)
      * Replaced "dictobject" with more powerful "mappingobject"
      * New per-type functio tp_hash to implement arbitrary object hashing,
        and hashobject() to interface to it
      * Added built-in functions hash(v) and hasattr(v, 'name')
      * classobject: made some functions static that accidentally weren't;
        added __hash__ special instance method to implement hash()
      * Added proper comparison for built-in methods and functions
      9bfef44d
  31. 05 Nis, 1992 1 kayıt (commit)
  32. 07 Haz, 1991 1 kayıt (commit)
  33. 04 Nis, 1991 1 kayıt (commit)
  34. 19 Şub, 1991 1 kayıt (commit)
  35. 14 Eki, 1990 1 kayıt (commit)