155 Commits (06e37587ffddc5fb77f93ab2cefafd6cbd326aee)

Author SHA1 Message Date
Neal Norwitz 61ec0d3263 Fix some Py_ssize_t warnings on Win64 that were probably bugs 19 years ago
Guido van Rossum 40d20bcf1f Issue 1267, continued. 19 years ago
Gregory P. Smith 60d241f135 For PEP3137: Adds missing methods to the mutable PyBytes object (soon 19 years ago
Guido van Rossum 1e35e76532 Patch #1049 by Thomas Lee. 19 years ago
Travis E. Oliphant 8ae62b6094 Change PyBuffer to Py_buffer to be consistent with other non-object structures like Py_complex. Add some more functionality to the memoryview object. 19 years ago
Guido van Rossum 8f95067915 Bug # 1125 (my code). 19 years ago
Guido van Rossum 06b8b02711 Per Georg's suggestion, get rid of str.decode() (which always raises an 19 years ago
Neal Norwitz 16596ddb61 Try to fix the problem on the Windows buildbot where this code: 19 years ago
Jeremy Hylton 18c3ff887f Make it an error to compare a bytes object and a Unicode object. 19 years ago
Guido van Rossum a74184eb1d Commit strict str/bytes distinction. 19 years ago
Neal Norwitz 2bad970293 Make some internal functions static 19 years ago
Guido van Rossum 75d38e992e Whitespace cleanup. 19 years ago
Neal Norwitz faa54a3929 Code review of the new buffer protocol. Mostly add questions that should 19 years ago
Travis E. Oliphant b99f762f10 Merged in py3k-buffer branch to main line. All objects now use the buffer protocol in PEP 3118. 19 years ago
Guido van Rossum eb29e9ab2b Fix core dump in an endcase of b.strip() that I missed. 19 years ago
Martin v. Löwis 9c121069d3 Change PyUnicode_FromString[AndSize] to expect UTF-8. 19 years ago
Martin v. Löwis 5d7428b8ce Fix merge breakage. 19 years ago
Martin v. Löwis 9f2e346911 Merged revisions 56467-56482 via svnmerge from 19 years ago
Guido van Rossum f93254d299 Fix test_pickle, by reverting the string opcodes (S, T, U) to returning 19 years ago
Martin v. Löwis 10a60b3ec0 Change Py_BuildValue to generate Unicode objects for 19 years ago
Martin v. Löwis 5b222135f8 Make identifiers str (not str8) objects throughout. 19 years ago
Walter Dörwald 1ab8330827 Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror 19 years ago
Guido van Rossum 63eac15927 The NULL pointer for empty strings turns out to be a pain. 19 years ago
Guido van Rossum cd6ae68943 I don't know how come bytes.join() was a class method, but that's clearly 19 years ago
Guido van Rossum 57b93ad56d repr(b"\0") should return b"\x00", not the (unusual) b"\0". 19 years ago
Guido van Rossum 4355a47903 Make all of test_bytes pass (except pickling, which is too badly busted). 19 years ago
Guido van Rossum 6c1e6741f8 Add trailing null bytes to a few more places. 19 years ago
Guido van Rossum f15a29f975 More coding by random modification. 19 years ago
Guido van Rossum ad7d8d10b7 Rough and dirty job -- allow concatenation of bytes and arbitrary 19 years ago
Guido van Rossum b6f1fdc90c Clean up trailing whitespace. 19 years ago
Guido van Rossum 0dd32e246c Real pickling for bytes. 19 years ago
Guido van Rossum ebea9beab3 Bytes should never equal unicode. 19 years ago
Guido van Rossum 343e97ff7f For Make Benefit Glorious Nation of Backwards Compatibility, 19 years ago
Guido van Rossum 4fc8ae424f Fix off-by-one bug in memmove() call in bytes_insert(). 20 years ago
Neal Norwitz 6968b056ef SF patch #1669633, add methods for bytes from Pete Shinners. 20 years ago
Georg Brandl b3f568f167 Remove a few stray tabs from bytesobject.c. 20 years ago
Georg Brandl 0b9b9e0483 Implement bytes.fromhex(), with tests. 20 years ago
Georg Brandl ee91be45df Make bytes_repr return a string containing a b"" literal. 20 years ago
Thomas Wouters 376446dd4e Implement extended slicing in bytes objects. 20 years ago
Thomas Wouters 9a6e62b947 Fix buglet in slice assignment of bytesobjects: assigning to b[3:0] ('stop' 20 years ago
Thomas Wouters d204a715f4 Make bytesobject raise ValueError instead of TypeError again (thanks, Nick) 20 years ago
Thomas Wouters 00ee7baf49 Merge current trunk into p3yk. This includes the PyNumber_Index API change, 20 years ago
Guido van Rossum 50e9fb9e2d Completely get rid of PyClass and PyInstance. 20 years ago
Guido van Rossum 3cf5b1eef9 Get rid of most of the flags (in tp_flags) that keep track of various 20 years ago
Guido van Rossum 2018831b2b Adding bytes.join() -- a class methods that concatenates an iterable of bytes. 20 years ago
Guido van Rossum a0867f79bb Optimizations for bytes reallocation. 20 years ago
Guido van Rossum 13e57219d3 Implement bytes += bytes, bytes *= int, int in bytes, bytes in bytes. 20 years ago
Guido van Rossum d624f18a21 Added much functionality to the bytes type. 20 years ago
Guido van Rossum e06b6b8ff5 Fix a leak and a buglet discovered by Thomas. 20 years ago
Guido van Rossum 4dfe8a1131 Here is a bytes type. It's very minimal but it's a start. 20 years ago