summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-01-15 06:33:19 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-01-15 06:33:19 (GMT)
commitf29b64d243a5a1fd64923b9fe40f582fc6eb592a (patch)
tree6f4312fa219e3b0092431fa8c2db9cb9f6384c87 /Misc
parente119006e7dc0df0a5ff6b60764b2ce3cd9477688 (diff)
downloadcpython-f29b64d243a5a1fd64923b9fe40f582fc6eb592a.zip
cpython-f29b64d243a5a1fd64923b9fe40f582fc6eb592a.tar.gz
cpython-f29b64d243a5a1fd64923b9fe40f582fc6eb592a.tar.bz2
Use the "MS" getline hack (fgets()) by default on non-get_unlocked
platforms. See NEWS for details.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS22
1 files changed, 17 insertions, 5 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 721c222..0ccf8ba 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -25,11 +25,23 @@ Core language, builtins, and interpreter
- Even if you don't use file.xreadlines(), you may expect a speedup on
line-by-line input. The file.readline() method has been optimized
- quite a bit in platform-specific ways, both on Windows (using an
- incredibly complex, but nevertheless thread-safe), and on systems
- (like Linux) that support flockfile(), getc_unlocked(), and
- funlockfile(). In addition, the fileinput module, while still slow,
- has been sped up too, by using file.readlines(sizehint).
+ quite a bit in platform-specific ways: on systems (like Linux) that
+ support flockfile(), getc_unlocked(), and funlockfile(), those are
+ used by default. On systems (like Windows) without getc_unlocked(),
+ a complicated (but still thread-safe) method using fgets() is used by
+ default.
+
+ You can force use of the fgets() method by #define'ing
+ USE_FGETS_IN_GETLINE at build time (it may be faster than
+ getc_unlocked()).
+
+ You can force fgets() not to be used by #define'ing
+ DONT_USE_FGETS_IN_GETLINE (this is the first thing to try if std test
+ test_bufio.py fails -- and let us know if it does!).
+
+- In addition, the fileinput module, while still slower than the other
+ methods on most platforms, has been sped up too, by using
+ file.readlines(sizehint).
- Support for run-time warnings has been added, including a new
command line option (-W) to specify the disposition of warnings.