- 13 Eki, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 12 Agu, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 03 Haz, 2002 1 kayıt (commit)
-
-
Walter Dörwald yazdı
x in string.whitespace => x.isspace() type(x) in types.StringTypes => isinstance(x, basestring) isinstance(x, types.StringTypes) => isinstance(x, basestring) type(x) is types.StringType => isinstance(x, str) type(x) == types.StringType => isinstance(x, str) string.split(x, ...) => x.split(...) string.join(x, y) => y.join(x) string.zfill(x, ...) => x.zfill(...) string.count(x, ...) => x.count(...) hasattr(types, "UnicodeType") => try: unicode except NameError: type(x) != types.TupleTuple => not isinstance(x, tuple) isinstance(x, types.TupleType) => isinstance(x, tuple) type(x) is types.IntType => isinstance(x, int) Do not mention the string module in the rlcompleter docstring. This partially applies SF patch http://www.python.org/sf/562373 (with basestring instead of string). (It excludes the changes to unittest.py and does not change the os.stat stuff.)
-
- 01 Haz, 2002 2 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
Raymond Hettinger yazdı
-
- 07 Nis, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 06 Ara, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
Big Hammer to implement -Qnew as PEP 238 says it should work (a global option affecting all instances of "/"). pydebug.h, main.c, pythonrun.c: define a private _Py_QnewFlag flag, true iff -Qnew is passed on the command line. This should go away (as the comments say) when true division becomes The Rule. This is deliberately not exposed to runtime inspection or modification: it's a one-way one-shot switch to pretend you're using Python 3. ceval.c: when _Py_QnewFlag is set, treat BINARY_DIVIDE as BINARY_TRUE_DIVIDE. test_{descr, generators, zipfile}.py: fiddle so these pass under -Qnew too. This was just a matter of s!/!//! in test_generators and test_zipfile. test_descr was trickier, as testbinop() is passed assumptions that "/" is the same as calling a "__div__" method; put a temporary hack there to call "__truediv__" instead when the method name is "__div__" and 1/2 evaluates to 0.5. Three standard tests still fail under -Qnew (on Windows; somebody please try the Linux tests with -Qnew too! Linux runs a whole bunch of tests Windows doesn't): test_augassign test_class test_coercion I can't stay awake longer to stare at this (be my guest). Offhand cures weren't obvious, nor was it even obvious that cures are possible without major hackery. Question: when -Qnew is in effect, should calls to __div__ magically change into calls to __truediv__? See "major hackery" at tail end of last paragraph <wink>.
-
- 28 Kas, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
ZipFile.__del__(): call ZipFile.close(), like its docstring says it does. ZipFile.close(): allow calling more than once (as all file-like objects in Python should support).
-
- 21 Eyl, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 18 Eyl, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 05 Eyl, 2001 1 kayıt (commit)
-
-
Finn Bock yazdı
Patch by Jim Ahlstrom which lets java's zipfile classes read zipfiles create by zipfile.py.
-
- 19 Tem, 2001 1 kayıt (commit)
-
-
Fred Drake yazdı
the directory separator, as required by the format specification. This closes SF bug #440693.
-
- 11 May, 2001 1 kayıt (commit)
-
-
Fred Drake yazdı
-
- 14 Nis, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
ZipFile.close() method that should be part of the preceding 'if' block. On some platforms (Mark noticed this on FreeBSD 4.2) doing a flush() on a file open for reading is not allowed.
-
- 10 Nis, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
This came out of SF bug #411881. Note that there's another unqualified except: still.
-
- 04 Nis, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
This applies the patch Fred Drake created to fix it. I'm checking it in since I had to apply the patch anyway in order to test its behavior on Windows.
-
- 29 Mar, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 26 Mar, 2001 1 kayıt (commit)
-
-
Fred Drake yazdı
Add support to zipfile to support opening an archive represented by an open file rather than a file name.
-
- 01 Mar, 2001 1 kayıt (commit)
-
-
Skip Montanaro yazdı
giving it a slight facelift
-
- 28 Şub, 2001 2 kayıt (commit)
-
-
Fred Drake yazdı
header and central directory structures, and use them as appropriate. The point being to make it easier to tell what is getting pulled out where; magic numbers are evil! Change the computation of the ZipInfo.file_offset field to use the length of the relevant "extra" field -- there are two different ones, and the wrong one had been used. ;-( This closes SF tracker patch #403276, but more verbosely than the proposed patch.
-
Fred Drake yazdı
there was an IOError opening the underlying file in ZipFile.__init__().
-
- 15 Ock, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 02 Eki, 2000 1 kayıt (commit)
-
-
Fred Drake yazdı
PyZipFile class. End sentences in docstrings with periods. Reformat docstrings to be more similar to those of other modules.
-
- 29 Eyl, 2000 1 kayıt (commit)
-
-
Fred Drake yazdı
Error reported via email by Pete Shinners <pete@visionart.com>. Fixed some indentation inconsistencies.
-
- 13 Haz, 2000 1 kayıt (commit)
-
-
Fred Drake yazdı
Thanks to Hubert Hoegl <hubert.hoegl@dlr.de> for finding this bug.
-
- 31 Mar, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-