diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-16 09:05:33 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-16 09:05:33 (GMT) |
commit | 13925008dc11f2a235627dc8c0440c0ce99171d9 (patch) | |
tree | 4746c36be25417c56cf86591bf222af49b7afdfd /Objects | |
parent | e3d09ff269330bd0076e3ab9cb81907fad717a68 (diff) | |
download | cpython-13925008dc11f2a235627dc8c0440c0ce99171d9.zip cpython-13925008dc11f2a235627dc8c0440c0ce99171d9.tar.gz cpython-13925008dc11f2a235627dc8c0440c0ce99171d9.tar.bz2 |
#11565: Fix several typos. Patch by Piotr Kasprzyk.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/dictobject.c | 2 | ||||
-rw-r--r-- | Objects/listobject.c | 2 | ||||
-rw-r--r-- | Objects/longobject.c | 4 | ||||
-rw-r--r-- | Objects/typeobject.c | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 9c17be7..8492c61 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -2070,7 +2070,7 @@ dict_new(PyTypeObject *type, PyObject *args, PyObject *kwds) assert(d->ma_table == NULL && d->ma_fill == 0 && d->ma_used == 0); INIT_NONZERO_DICT_SLOTS(d); d->ma_lookup = lookdict_unicode; - /* The object has been implicitely tracked by tp_alloc */ + /* The object has been implicitly tracked by tp_alloc */ if (type == &PyDict_Type) _PyObject_GC_UNTRACK(d); #ifdef SHOW_CONVERSION_COUNTS diff --git a/Objects/listobject.c b/Objects/listobject.c index e8b21f1..b3bb21d 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -11,7 +11,7 @@ /* Ensure ob_item has room for at least newsize elements, and set * ob_size to newsize. If newsize > ob_size on entry, the content * of the new slots at exit is undefined heap trash; it's the caller's - * responsiblity to overwrite them with sane values. + * responsibility to overwrite them with sane values. * The number of allocated elements may grow, shrink, or stay the same. * Failure is impossible if newsize <= self.allocated on entry, although * that partly relies on an assumption that the system realloc() never diff --git a/Objects/longobject.c b/Objects/longobject.c index 7af5caf..6f998ce 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -712,7 +712,7 @@ _PyLong_FromByteArray(const unsigned char* bytes, size_t n, is_signed = *pendbyte >= 0x80; /* Compute numsignificantbytes. This consists of finding the most - significant byte. Leading 0 bytes are insignficant if the number + significant byte. Leading 0 bytes are insignificant if the number is positive, and leading 0xff bytes if negative. */ { size_t i; @@ -3196,7 +3196,7 @@ long_true_divide(PyObject *a, PyObject *b) if (failed) return NULL; /* 'aexp' and 'bexp' were initialized to -1 to silence gcc-4.0.x, - but should really be set correctly after sucessful calls to + but should really be set correctly after successful calls to _PyLong_AsScaledDouble() */ assert(aexp >= 0 && bexp >= 0); diff --git a/Objects/typeobject.c b/Objects/typeobject.c index caa405b..310a56c 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -1008,7 +1008,7 @@ subtype_dealloc(PyObject *self) self has a refcount of 0, and if gc ever gets its hands on it (which can happen if any weakref callback gets invoked), it looks like trash to gc too, and gc also tries to delete self - then. But we're already deleting self. Double dealloction is + then. But we're already deleting self. Double deallocation is a subtle disaster. Q. Why the bizarre (net-zero) manipulation of @@ -5872,7 +5872,7 @@ recurse_down_subclasses(PyTypeObject *type, PyObject *name, slots compete for the same descriptor (for example both sq_item and mp_subscript generate a __getitem__ descriptor). - In the latter case, the first slotdef entry encoutered wins. Since + In the latter case, the first slotdef entry encountered wins. Since slotdef entries are sorted by the offset of the slot in the PyHeapTypeObject, this gives us some control over disambiguating between competing slots: the members of PyHeapTypeObject are listed |