- 26 Eki, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 27 Agu, 2002 1 kayıt (commit)
-
-
Peter Schneider-Kamp yazdı
simply PyErr_SetFromErrno This closes bug 599163.
-
- 16 Agu, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
- Use PyObject_Call() instead of PyEval_CallObject(), saves several layers of calls and checks. - Pre-allocate the argument tuple rather than calling Py_BuildValue() each time round the loop. - For filter(None, seq), avoid an INCREF and a DECREF.
-
- 14 Agu, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 11 Agu, 2002 1 kayıt (commit)
-
-
Marc-André Lemburg yazdı
u'%c' will now raise a ValueError in case the argument is an integer outside the valid range of Unicode code point ordinals. Closes SF bug #593581.
-
- 30 Haz, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
Rename all occurrences of MS_WIN32 to MS_WINDOWS.
-
- 14 Haz, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
These built-in functions are replaced by their (now callable) type: slice() buffer() and these types can also be called (but have no built-in named function named after them) classobj (type name used to be "class") code function instance instancemethod (type name used to be "instance method") The module "new" has been replaced with a small backward compatibility placeholder in Python. A large portion of the patch simply removes the new module from various platform-specific build recipes. The following binary Mac project files still have references to it: Mac/Build/PythonCore.mcp Mac/Build/PythonStandSmall.mcp Mac/Build/PythonStandalone.mcp [I've tweaked the code layout and the doc strings here and there, and added a comment to types.py about StringTypes vs. basestring. --Guido]
-
- 13 Haz, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 05 Haz, 2002 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Also, added more regression tests to cover the new type and test its conformity with range().
-
- 31 May, 2002 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 24 May, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
for 'str' and 'unicode', and can be used instead of types.StringTypes, e.g. to test whether something is "a string": isinstance(x, string) is True for Unicode and 8-bit strings. This is an abstract base class and cannot be instantiated directly.
-
- 12 May, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
NOT a bugfix candidate: this is a fix to an optimization introduced in 2.3.
-
- 29 Nis, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
and allocate it in one gulp. This isn't a bugfix, it's just a minor optimization that may or may not pay off.
-
- 27 Nis, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
don't understand how this function works, also beefed up the docs. The most common usage error is of this form (often spread out across gotos): if (_PyString_Resize(&s, n) < 0) { Py_DECREF(s); s = NULL; goto outtahere; } The error is that if _PyString_Resize runs out of memory, it automatically decrefs the input string object s (which also deallocates it, since its refcount must be 1 upon entry), and sets s to NULL. So if the "if" branch ever triggers, it's an error to call Py_DECREF(s): s is already NULL! A correct way to write the above is the simpler (and intended) if (_PyString_Resize(&s, n) < 0) goto outtahere; Bugfix candidate.
-
- 26 Nis, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c"). The argument can be an arbitrary iterable object.
-
- 14 Nis, 2002 1 kayıt (commit)
-
-
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.
-
- 03 Nis, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
PEP 285. Everything described in the PEP is here, and there is even some documentation. I had to fix 12 unit tests; all but one of these were printing Boolean outcomes that changed from 0/1 to False/True. (The exception is test_unicode.py, which did a type(x) == type(y) style comparison. I could've fixed that with a single line using issubtype(x, type(y)), but instead chose to be explicit about those places where a bool is expected. Still to do: perhaps more documentation; change standard library modules to return False/True from predicates.
-
- 09 Mar, 2002 2 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
Tim Peters yazdı
that it didn't tell enough of the truth. Bugfix candidate (I guess -- it helps and it's harmless).
-
- 12 Ock, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 13 Ara, 2001 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
Based on the patch from Danny Yoo. The fix is in exec_statement() in ceval.c. There are also changes to introduce use of PyCode_GetNumFree() in several places.
-
- 28 Kas, 2001 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
- 05 Kas, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
Changes enabling Python to compile under OS/2 Visual Age C++.
-
- 29 Eki, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 24 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 16 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
masks any exception, not just AttributeError. Fix this.
-
- 07 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
not other sequences (then we'd have to except strings, and we'd still be susceptible to recursive attacks).
-
- 13 Eyl, 2001 3 kayıt (commit)
-
-
Tim Peters yazdı
builtin function); Guido pointed out that it could be just another name in the __builtin__ dict for the file constructor now.
-
Tim Peters yazdı
-
Tim Peters yazdı
Preliminary support. What's here works, but needs fine-tuning.
-
- 06 Eyl, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 05 Eyl, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
found it necessary to warn about.
-
- 04 Eyl, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
__builtin__.dir(). Moved the guts from bltinmodule.c to object.c.
-
Tim Peters yazdı
of PyMapping_Keys because we know we have a real dict. Tolerate that objects may have an attr named "__dict__" that's not a dict (Py_None popped up during testing). test_descr.py, test_dir(): Test the new classic-class behavior; beef up the new-style class test similarly. test_pyclbr.py, checkModule(): dir(C) is no longer a synonym for C.__dict__.keys() when C is a classic class (looks like the same thing that burned distutils! -- should it be *made* a synoym again? Then it would be inconsistent with new-style class behavior.).
-
- 03 Eyl, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
bag. It's clearly wrong for classic classes, at heart because a classic class doesn't have a __class__ attribute, and I'm unclear on whether that's feature or bug. I'll repair this once I find out (in the meantime, dir() applied to classic classes won't find the base classes, while dir() applied to a classic-class instance *will* find the base classes but not *their* base classes). Please give the new dir() a try and see whether you love it or hate it. The new dir([]) behavior is something I could come to love. Here's something to hate: >>> class C: ... pass ... >>> c = C() >>> dir(c) ['__doc__', '__module__'] >>> The idea that an instance has a __doc__ attribute is jarring (of course it's really c.__class__.__doc__ == C.__doc__; likewise for __module__). OTOH, the code already has too many special cases, and dir(x) doesn't have a compelling or clear purpose when x isn't a module.
-
- 24 Agu, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 23 Agu, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
This implements the 'getset' class from test_binop.py.
-
- 17 Agu, 2001 3 kayıt (commit)
-
-
Tim Peters yazdı
builtin_eval wasn't merging in the compiler flags from the current frame; I suppose we never noticed this before because future division is the first future-feature that can affect expressions (nested_scopes and generators had only statement-level effects).
-
Tim Peters yazdı
#449043 supporting __future__ in simulated shells which implements PEP 264.
-
Martin v. Löwis yazdı
- Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled - check for Py_USING_UNICODE in all places that use Unicode functions - disables unicode literals, and the builtin functions - add the types.StringTypes list - remove Unicode literals from most tests.
-