- 29 Eki, 2006 1 kayıt (commit)
-
-
Georg Brandl yazdı
fix all codecs file wrappers to work correctly with the "with" statement (bug #1586513). (backport from rev. 52517)
-
- 14 Nis, 2006 2 kayıt (commit)
-
-
Walter Dörwald yazdı
an incremental encoder that must retain part of the data between calls to the encode() method. Fix the incremental encoder and decoder for the IDNA encoding. This closes SF patch #1453235.
-
Walter Dörwald yazdı
-
- 18 Mar, 2006 1 kayıt (commit)
-
-
Walter Dörwald yazdı
-
- 16 Mar, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 15 Mar, 2006 1 kayıt (commit)
-
-
Walter Dörwald yazdı
of tuple) that provides incremental decoders and encoders (a way to use stateful codecs without the stream API). Functions codecs.getincrementaldecoder() and codecs.getincrementalencoder() have been added.
-
- 06 Mar, 2006 1 kayıt (commit)
-
-
Walter Dörwald yazdı
This is a alternative version of patch #1379332.
-
- 25 Ara, 2005 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 18 Eyl, 2005 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
Will backport to Python 2.4.
-
- 01 Eyl, 2005 1 kayıt (commit)
-
-
Walter Dörwald yazdı
from the input stream, so that the output is a byte string in the correct encoding instead of a unicode string.
-
- 24 Agu, 2005 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
even if there is an exception in later lines, resulting in correct line numbers for decoding errors in source code. Fixes #1178484. Will backport to 2.4.
-
- 20 Tem, 2005 1 kayıt (commit)
-
-
Walter Dörwald yazdı
of unicode objects, so that codecs that do a str->str decoding won't promote the result to unicode. This fixes SF bug #1241507.
-
- 21 Nis, 2005 2 kayıt (commit)
-
-
Walter Dörwald yazdı
-
Walter Dörwald yazdı
byte, even if the user has passed a size parameter. This extra byte shouldn't cause a buffer overflow in the tokenizer. The original plan was to return a line ending in '\r', which might be recognizable as a complete line and skip any '\n' that was read afterwards. Unfortunately this didn't work, as the tokenizer only recognizes '\n' as line ends, which in turn lead to joined lines and SyntaxErrors, so this special treatment of a split '\r\n' has been dropped. (It can only happen with a temporarily exhausted bytestream now anyway.) Fixes parts of SF bugs #1163244 and #1175396.
-
- 04 Nis, 2005 2 kayıt (commit)
-
-
Walter Dörwald yazdı
-
Walter Dörwald yazdı
the last character read is "\r" (and size is None, i.e. we're allowed to call read() multiple times), so that we can return the correct line ending (this additional character might be a "\n"). If the stream is temporarily exhausted, we might return the wrong line ending (if the last character read is "\r" and the next one (after the byte stream provides more data) is "\n", but at least the atcr member ensure that we get the correct number of lines (i.e. this "\n" will not be treated as another line ending.)
-
- 16 Mar, 2005 1 kayıt (commit)
-
-
Skip Montanaro yazdı
-
- 14 Mar, 2005 2 kayıt (commit)
-
-
Walter Dörwald yazdı
-
Walter Dörwald yazdı
-
- 08 Mar, 2005 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
Will backport to 2.4.
-
- 10 Ock, 2005 1 kayıt (commit)
-
-
Walter Dörwald yazdı
-
- 21 Ara, 2004 1 kayıt (commit)
-
-
Walter Dörwald yazdı
trying to return a complete line even if a size parameter was given (see http://www.python.org/sf/1076985). This leads to buffer overflows with long source lines under Windows if e.g. cp1252 is used as the source encoding. This patch reverts the behaviour of readline() to something that behaves more like Python 2.3: If a size parameter is given, read() is called only once. As a side effect of this, readline() now supports all types of linebreaks supported by unicode.splitlines(). Note that the tokenizer is still broken and it's possible to provoke segfaults (see http://www.python.org/sf/1089395).
-
- 17 Eki, 2004 1 kayıt (commit)
-
-
Hye-Shik Chang yazdı
-
- 07 Eyl, 2004 1 kayıt (commit)
-
-
Walter Dörwald yazdı
decoding incomplete input (when the input stream is temporarily exhausted). codecs.StreamReader now implements buffering, which enables proper readline support for the UTF-16 decoders. codecs.StreamReader.read() has a new argument chars which specifies the number of characters to return. codecs.StreamReader.readline() and codecs.StreamReader.readlines() have a new argument keepends. Trailing "\n"s will be stripped from the lines if keepends is false. Added C APIs PyUnicode_DecodeUTF8Stateful and PyUnicode_DecodeUTF16Stateful.
-
- 26 Şub, 2004 1 kayıt (commit)
-
-
Marc-André Lemburg yazdı
-
- 02 Şub, 2003 1 kayıt (commit)
-
-
Walter Dörwald yazdı
-
- 30 Ara, 2002 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 12 Ara, 2002 1 kayıt (commit)
-
-
Marc-André Lemburg yazdı
Python 2.3 will support source code encodings which rely on the builtin codecs being available to the parser. Remove struct dependency from codecs.py
-
- 19 Kas, 2002 1 kayıt (commit)
-
-
Walter Dörwald yazdı
the codecs docstrings.
-
- 06 Kas, 2002 1 kayıt (commit)
-
-
Walter Dörwald yazdı
and StreamRecoder. This closes SF bug #634246.
-
- 02 Eyl, 2002 1 kayıt (commit)
-
-
- 04 Haz, 2002 1 kayıt (commit)
-
-
Walter Dörwald yazdı
BOM_UTF32, BOM_UTF32_LE and BOM_UTF32_BE that represent the Byte Order Mark in UTF-8, UTF-16 and UTF-32 encodings for little and big endian systems. The old names BOM32_* and BOM64_* were off by a factor of 2. This closes SF bug http://www.python.org/sf/555360
-
- 01 Haz, 2002 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 05 Mar, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
as well.
-
- 19 Eyl, 2001 1 kayıt (commit)
-
-
Marc-André Lemburg yazdı
-
- 18 Eyl, 2001 1 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
-
- 02 Agu, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 31 Tem, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 29 May, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 16 May, 2001 1 kayıt (commit)
-
-
Marc-André Lemburg yazdı
codec files to codecs.py and added logic so that multi mappings in the decoding maps now result in mappings to None (undefined mapping) in the encoding maps.
-