History log of /external/python/cpython2/Include/fileobject.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
605ee2406f68c3d9fe0f88108394b93cb1458e62 28-Aug-2011 Charles-François Natali <neologix@free.fr> Always define _PyIsSelectable_fd().
/external/python/cpython2/Include/fileobject.h
fda7b379acde3ad60bbd42acb6da7e7099d25133 28-Aug-2011 Charles-François Natali <neologix@free.fr> Issue #12287: Fix a stack corruption in ossaudiodev module when the FD is
greater than FD_SETSIZE.
/external/python/cpython2/Include/fileobject.h
c83ea137d7e717f764e2f31fc2544f522de7d857 09-May-2010 Antoine Pitrou <solipsis@pitrou.net> Untabify C files. Will watch buildbots.
/external/python/cpython2/Include/fileobject.h
bb445a1f22835b97673f96da8f9edc75b69f5f2c 05-Feb-2010 Antoine Pitrou <solipsis@pitrou.net> Issue #5677: Explicitly forbid write operations on read-only file objects,
and read operations on write-only file objects. On Windows, the system C
library would return a bogus result; on Solaris, it was possible to crash
the interpreter. Patch by Stefan Krah.
/external/python/cpython2/Include/fileobject.h
bcd3ea86a39b80b1a3614f4a06a42c0ec7519f0a 11-Feb-2009 Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> Issue #5204: Define _PyVerify_fd on VC6 to make
test_fdopen (test_os.py) pass.
/external/python/cpython2/Include/fileobject.h
6a743d3694fb5138f5eab393c172c3b6789b0383 10-Feb-2009 Kristján Valur Jónsson <kristjan@ccpgames.com> Issue 4804. Add a function to test the validity of file descriptors on Windows, and stop using global runtime settings to silence the warnings / assertions.
/external/python/cpython2/Include/fileobject.h
99815892f685e9ab20dfdade9c1e8a295139140c 01-Jun-2008 Martin v. Löwis <martin@v.loewis.de> New environment variable PYTHONIOENCODING.
/external/python/cpython2/Include/fileobject.h
aa63d0d4af3db832b390ac74517af5eb799540e5 07-Apr-2008 Gregory P. Smith <greg@mad-scientist.com> Make file objects as thread safe as the underlying libc FILE* implementation.
close() will now raise an IOError if any operations on the file object
are currently in progress in other threads.

Most code was written by Antoine Pitrou (pitrou). Additional testing,
documentation and test suite cleanup done by me (gregory.p.smith).

Fixes issue 815646 and 595601 (as well as many other bugs and
references to this problem dating back to the dawn of Python).
/external/python/cpython2/Include/fileobject.h
e93237dfcc4ee4feee62adafb4e7899487ca864b 19-Dec-2007 Christian Heimes <christian@cheimes.de> #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
/external/python/cpython2/Include/fileobject.h
6819210b9e4e5719a6f7f9c1725f8fa70a8936f6 21-Jul-2007 Martin v. Löwis <martin@v.loewis.de> PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
/external/python/cpython2/Include/fileobject.h
0a440d41844aac25178400d33d714d8e479b86d4 26-Apr-2007 Kristján Valur Jónsson <kristjan@ccpgames.com> Export function sanitize_the_mode from fileobject.c as _PyFile_SanitizeMode(). Use this function in posixmodule.c when implementing fdopen(). This fixes test_subprocess.py for a VisualStudio 2005 compile.
/external/python/cpython2/Include/fileobject.h
cb87bc8e7ee3a2ffd83dd1b12fcfa1c01aa740aa 31-May-2004 Raymond Hettinger <python@rcn.com> Add weakref support to array.array and file objects.
/external/python/cpython2/Include/fileobject.h
db6080507d7b507cfe9aa524d012a96b5dfefc2d 07-Feb-2004 Skip Montanaro <skip@pobox.com> Remove support for --without-universal-newlines (see PEP 11).
/external/python/cpython2/Include/fileobject.h
1e3bdf6c459a2e324730dda2db53ad845ad39532 04-Sep-2003 Martin v. Löwis <martin@v.loewis.de> Patch #788249: Pass an explicit buffer to setvbuf in PyFile_SetBufSize().
Fixes #603724. Will backport to 2.3.
/external/python/cpython2/Include/fileobject.h
5467d4c0e31e9db305a4899a44d7978f83e96649 10-May-2003 Martin v. Löwis <martin@v.loewis.de> Patch #612627: Add encoding attribute to file objects, and determine
the terminal encoding on Windows and Unix.
/external/python/cpython2/Include/fileobject.h
91a681debf9ffec155d0aff8a0bb5f965f592e16 12-Aug-2002 Mark Hammond <mhammond@skippinet.com.au> Excise DL_EXPORT from Include.

Thanks to Skip Montanaro and Kalle Svensson for the patches.
/external/python/cpython2/Include/fileobject.h
7a6e95948cd2e163c066943f755d85007c306047 06-Aug-2002 Guido van Rossum <guido@python.org> SF patch 580331 by Oren Tirosh: make file objects their own iterator.

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().)
/external/python/cpython2/Include/fileobject.h
a0a6c5a042818461fa199c8a3daefb7fd00ffe1b 24-May-2002 Guido van Rossum <guido@python.org> Add missing \ to macro definition only used when universal newlines
are disabled.
/external/python/cpython2/Include/fileobject.h
058b141ef77edcd8000bc169f3b9b7cc9d362ffa 21-Apr-2002 Tim Peters <tim.peters@gmail.com> Py_UniversalNewlineFread(): Many changes.

+ 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.
/external/python/cpython2/Include/fileobject.h
7b8c7546ebc1fc3688ef95768fa8b82f0f205490 14-Apr-2002 Jack Jansen <jack.jansen@cwi.nl> Mass checkin of universal newline support.
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.
/external/python/cpython2/Include/fileobject.h
f6eebbb4358d8749d5800814bab8c4cf3f068fbc 15-Mar-2002 Martin v. Löwis <martin@v.loewis.de> Patch #530105: Allow file object may to be subtyped
/external/python/cpython2/Include/fileobject.h
c1bbcb87aa8b576c8934aed6555681a62c820c25 28-Nov-2001 Tim Peters <tim.peters@gmail.com> PyFile_WriteString(): change prototype so that the string arg is
const char* instead of char*. The change is conceptually correct, and
indirectly fixes a compiler wng introduced when somebody else innocently
passed a const char* to this function.
/external/python/cpython2/Include/fileobject.h
59c9a645e2f44b0b546225678d704787d9eae35d 13-Sep-2001 Tim Peters <tim.peters@gmail.com> SF bug [#460467] file objects should be subclassable.
Preliminary support. What's here works, but needs fine-tuning.
/external/python/cpython2/Include/fileobject.h
26cffde4c2950ac2afb41f19a65a28c4e905060d 14-May-2001 Mark Hammond <mhammond@skippinet.com.au> Fix the Py_FileSystemDefaultEncoding checkin - declare the variable in a fileobject.h, and initialize it in bltinmodule.
/external/python/cpython2/Include/fileobject.h
8586991099e4ace18ee94163a96b8ea1bed77ebe 02-Sep-2000 Guido van Rossum <guido@python.org> REMOVED all CWI, CNRI and BeOpen copyright markings.
This should match the situation in the 1.6b1 tree.
/external/python/cpython2/Include/fileobject.h
06051edc0d4987994ccd9d578210a1fe1fa1d13a 14-Jul-2000 Andrew M. Kuchling <amk@amk.ca> Added PyObject_AsFileDescriptor, which checks for integer, long integer,
or .fileno() method
/external/python/cpython2/Include/fileobject.h
ea9cb5aebf38741871ad4f28971dcd23ddd77ad2 09-Jul-2000 Fred Drake <fdrake@acm.org> ANSI-fication and Py_PROTO extermination.
/external/python/cpython2/Include/fileobject.h
ffcc3813d82e6b96db79f518f4e67b940a13ce64 01-Jul-2000 Guido van Rossum <guido@python.org> Change copyright notice - 2nd try.
/external/python/cpython2/Include/fileobject.h
fd71b9e9d496caa510dec56a9b69966558d6ba5d 01-Jul-2000 Guido van Rossum <guido@python.org> Change copyright notice.
/external/python/cpython2/Include/fileobject.h
43466ec7b07de6bcad016bec60839cd6079c5a9c 04-Dec-1998 Guido van Rossum <guido@python.org> Add DL_IMPORT(returntype) for all officially exported functions.
/external/python/cpython2/Include/fileobject.h
745b8cff08e105d1b612e48f3087127f7cdeecc1 23-May-1997 Guido van Rossum <guido@python.org> flushline and writestring can now return an error
/external/python/cpython2/Include/fileobject.h
d266eb460e20ded087d01a29da0a230e235afc40 25-Oct-1996 Guido van Rossum <guido@python.org> New permission notice, includes CNRI.
/external/python/cpython2/Include/fileobject.h
b422c24934aa73e41060b26ddb12e9954c9fffe7 22-May-1996 Guido van Rossum <guido@python.org> Added PyFile_decls for PyFile_WriteObject, PyFile_SoftSpace,
PyFile_WriteString.
/external/python/cpython2/Include/fileobject.h
051ab123b465685e714668099c0a6dd86de5673b 27-Feb-1995 Guido van Rossum <guido@python.org> make the type a parameter of the DL_IMPORT macro, for Borland C
/external/python/cpython2/Include/fileobject.h
938178283c29cdc2c8f5004d58dff110ac907883 17-Jan-1995 Guido van Rossum <guido@python.org> new names for lots of new functions
/external/python/cpython2/Include/fileobject.h
caa63808861d4e92d4dc1005fc01de0f2e4a8fd0 12-Jan-1995 Guido van Rossum <guido@python.org> The great renaming, phase two: all header files have been updated to
use the new names exclusively, and the linker will see the new names.
Files that import "Python.h" also only see the new names. Files that
import "allobjects.h" will continue to be able to use the old names,
due to the inclusion (in allobjects.h) of "rename2.h".
/external/python/cpython2/Include/fileobject.h
5799b520086129ed8aaadeb3b941b3000a42576a 04-Jan-1995 Guido van Rossum <guido@python.org> Added 1995 copyright.
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.
/external/python/cpython2/Include/fileobject.h
e89bc75048d0142859379b2b92e77d984fdbef6e 18-Aug-1994 Guido van Rossum <guido@python.org> Changes for dynamic linking under NT
/external/python/cpython2/Include/fileobject.h
b6775db241f5fe5e3dc2ca09fc6c9e6164d4b2af 01-Aug-1994 Guido van Rossum <guido@python.org> Merge alpha100 branch back to main trunk
/external/python/cpython2/Include/fileobject.h
db3165e6559c6b83373e7fed9cdf4371552a9a8e 18-Oct-1993 Guido van Rossum <guido@python.org> * bltinmodule.c: removed exec() built-in function.
* Grammar: add exec statement; allow testlist in expr statement.
* ceval.c, compile.c, opcode.h: support exec statement;
avoid optimizing locals when it is used
* fileobject.{c,h}: add getfilename() internal function.
/external/python/cpython2/Include/fileobject.h
a3309960a50dbadfd854299e7420223eb8718a56 28-Jul-1993 Guido van Rossum <guido@python.org> * Added support for X11 modules.
* 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++.
/external/python/cpython2/Include/fileobject.h
9bfef44d97d1ae24e03717e3d59024b44626a9de 29-Mar-1993 Guido van Rossum <guido@python.org> * Changed all copyright messages to include 1993.
* 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
/external/python/cpython2/Include/fileobject.h
5113f5fd346c32c98ac46d374e0b5c3dced289a6 05-Apr-1992 Guido van Rossum <guido@python.org> Copyright for 1992 added
/external/python/cpython2/Include/fileobject.h
65481401b18a78bbad41f712300047ed19355d38 07-Jun-1991 Guido van Rossum <guido@python.org> Add "close" function parameter to newopenfileobject().
/external/python/cpython2/Include/fileobject.h
0bd2441e002ec0947071741a024e253da7355b02 04-Apr-1991 Guido van Rossum <guido@python.org> Added external interface to readline, for raw_input().
/external/python/cpython2/Include/fileobject.h
f70e43a073b36c6f6e9894c01025243a77a452d4 19-Feb-1991 Guido van Rossum <guido@python.org> Added copyright notice.
/external/python/cpython2/Include/fileobject.h
85a5fbbdfea617f6cc8fae82c9e8c2b5c424436d 14-Oct-1990 Guido van Rossum <guido@python.org> Initial revision
/external/python/cpython2/Include/fileobject.h