Commit Graph

35168 Commits

Author SHA1 Message Date
Guido van Rossum d417a154e4 Fix typo in arraymodule.c (?) -- it's PyBUF_LOCK, not PyBUF_LOCKDATA. 2007-10-13 21:01:08 +00:00
Neal Norwitz c05d384bf7 Remove more hotshot cruft. 2007-10-13 18:56:00 +00:00
Travis E. Oliphant fe9bed02e4 Fix problems with memoryview object. There is still more to do to finish PEP 3118. The memory-view object needs to be fleshed out and the struct module needs to be modified. 2007-10-12 23:27:53 +00:00
Travis E. Oliphant 9b30784ab2 Add macros for checking for long double and defining the size of long double on the platform. Ctypes and Struct module will both need them. 2007-10-12 22:06:37 +00:00
Travis E. Oliphant d5c0add332 Fix Issue 1268 with the array module by backing-out the 'w' addition. All builds will continue to use 'u' for unicode. 2007-10-12 22:05:15 +00:00
Brett Cannon e9fd23165c Make _load_testfile() use its encoding argument when __loader__ is defined. 2007-10-12 19:18:19 +00:00
Gregory P. Smith 5c5f1703e5 Merge r58434:
Fixes http://bugs.python.org/issue1233 - bsddb.dbshelve.DBShelf.append
was useless due to inverted logic.  Also adds a test case for RECNO dbs
to test_dbshelve.
2007-10-12 19:13:19 +00:00
Brett Cannon 041683df42 Remove self-referential import. 2007-10-11 23:08:53 +00:00
Fred Drake f12088b9b3 clean out some hotshot-related build turds 2007-10-11 18:05:38 +00:00
Fred Drake 0e474a801a remove hotshot profiler from Py3k 2007-10-11 18:01:43 +00:00
Guido van Rossum b62e8a8062 Two changes that are definitely problem-free and avoid calling print()
with a bytes instance (as this will soon print something differently).
2007-10-10 22:48:24 +00:00
Guido van Rossum c5724deb1a get rid of some more PyString uses.
Only the filename is still a PyString now.
(We'll need to deal with the default filesystem encoding to do it right.)
2007-10-10 21:38:59 +00:00
Guido van Rossum ebe8f8a8ff Minor cleanup of the comment for PyErr_ProgramText() and a tweak to the code
to guarantee the claim that it doesn't set an exception.
2007-10-10 18:53:36 +00:00
Guido van Rossum df4ce10276 Fix another stray PyString reference that should be PyBytes; and its comment. 2007-10-10 18:49:50 +00:00
Guido van Rossum 641591cffe Fix an issue in PyTokenizer_RestoreEncoding() which was treating a PyBytes
object with PyString calls and not checking errors.  This caused the display
of syntax errors to be deformed.
2007-10-10 18:44:39 +00:00
Guido van Rossum feea0786a2 Random changes having to do with readline() and bytes. 2007-10-10 18:00:50 +00:00
Kurt B. Kaiser 8d5c8b525e the default class attr is needed! 2007-10-10 00:36:38 +00:00
Guido van Rossum 49f21743be Don't depend on str8.splitlines() in test_chunkcoding(). 2007-10-10 00:12:46 +00:00
Kurt B. Kaiser 3e623ba3ec Windows EOL sequence not converted correctly, encoding error.
Caused file save to fail. Bug 1130.

M    idlelib/IOBinding.py
M    idlelib/NEWS.txt
2007-10-09 23:12:31 +00:00
Guido van Rossum e518bf3c49 PyFile_WriteObject() should use PyObject_Repr(), not _ReprStr8(). 2007-10-09 21:55:58 +00:00
Gregory P. Smith 762d4a4164 use a reliable host 2007-10-09 18:35:13 +00:00
Guido van Rossum 174ce20865 Silly script I'd rather not throw away. 2007-10-09 17:30:03 +00:00
Guido van Rossum 1e35e76532 Patch #1049 by Thomas Lee.
Changes comparisons between PyBytes and PyUnicode to return unequal
instead of raising TypeError.
2007-10-09 17:21:10 +00:00
Guido van Rossum 6ccd3f2dbc Replace all (locale-dependent) uses of isupper(), tolower(), etc., by
locally-defined macros that assume ASCII and only consider ASCII letters.
2007-10-09 03:46:30 +00:00
Brett Cannon 6733d701f1 Change the default encoding for ftplib.FTP to latin1 so that bytes can be in
the range of 255 instead of only 128.
2007-10-08 19:48:15 +00:00
Georg Brandl 9f2c39a775 #1228: new comparison behavior. 2007-10-08 14:08:36 +00:00
Georg Brandl 9f27df56f8 Remove buffer() from the docs. 2007-10-08 07:00:29 +00:00
Neal Norwitz 14ef70b175 Remove unused variables 2007-10-08 05:28:00 +00:00
Guido van Rossum 0ea230b80a Remove more traces of bufferobject.[ch] from build files etc. 2007-10-08 03:39:26 +00:00
Guido van Rossum be801acbb1 Delete bufferobject.[ch].
This will undoubtedly require Windows build file changes too.
2007-10-08 03:32:34 +00:00
Guido van Rossum bae07c9baf Breaking ground for PEP 3137 implementation:
Get rid of buffer().  Use memoryview() in its place where possible.
In a few places, do things a bit different, because memoryview()
can't slice (yet).
2007-10-08 02:46:15 +00:00
Brett Cannon 85c1ba5d74 Fix a minor typo. 2007-10-07 23:12:41 +00:00
Neal Norwitz b35f128711 At least one of the buildbots was complaining about newview being used
without being initialized.  Also make the code conform to the comment and
return the new object.  This code needs a test!
2007-10-07 19:26:50 +00:00
Gregory P. Smith e43bd62b87 Merge 58344: allow BerkeleyDB 4.6.x >= 4.6.21 for the bsddb module 2007-10-06 08:23:10 +00:00
Gregory P. Smith 9e780cc4e7 Merge 58343: attempt to fix DBSequence.get_key() to not fail or crash. 2007-10-06 08:22:26 +00:00
Neal Norwitz 1d2aef5ccf Get the doc to build. 2007-10-02 07:26:14 +00:00
Georg Brandl 905ec32892 #1219: py3k cleanup in standard types docs. 2007-09-28 13:39:25 +00:00
Georg Brandl 2d2590de49 #1211, #1212, #1213: py3k fixes to the tutorial. 2007-09-28 13:13:35 +00:00
Guido van Rossum 7c77f753b4 Make byext.py really work. 2007-09-27 22:39:12 +00:00
Collin Winter d2e44df07a Revert r58075 (incorrect docs patch). 2007-09-27 21:28:21 +00:00
Guido van Rossum f1044293fa Patch # 1145 by Thomas Lee:
str.join(...) now applies str() to the sequence elements if they're
not strings alraedy, except for bytes, which still raise TypeError
(for the same reasons why ""==b"" raises it).
2007-09-27 18:01:22 +00:00
Skip Montanaro 4e02c503e7 Clarify the difference between text and binary files. I'm not sure the
tutorial is the right place to mention a file object's encoding.
2007-09-26 01:10:12 +00:00
Guido van Rossum 5dde61d0b9 Whitespace and line lengrth cleanup. 2007-09-25 22:10:05 +00:00
Guido van Rossum 3f6d44e03e Delete now-unused static function Array_ass_slice(). 2007-09-25 21:51:12 +00:00
Guido van Rossum 85ac28d788 Fix a straggler filter() call. 2007-09-25 21:48:09 +00:00
Georg Brandl dd6d0247e9 #1189: documentation for tp_as_* structs. 2007-09-24 18:05:08 +00:00
Thomas Heller 39763a1674 Make Modules/_bsddb.c and PC/_winreg.c compile again by renaming
PyBuffer into Py_buffer.
2007-09-24 14:43:56 +00:00
Skip Montanaro 4d8c19339f Update the documentation of the open() builtin function a bit. I believe I
mostly got the distinction between text and binary modes correct, though
someone should proofread my writing.  I also sort of guessed at the meaning
of the various index:: entries.
2007-09-23 21:13:45 +00:00
Skip Montanaro 1c63960c1b Reformat the open function text so it fits within 80 columns in preparation
for a bit of rewriting.  Separating the reformatting from the rewriting
should make it easier for people to review the substantive changes.
2007-09-23 19:49:54 +00:00
Georg Brandl f1368ef904 Fix turtle module: None and int are not comparable, map returns an iterator. 2007-09-23 13:37:00 +00:00