summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix a memory leak caused by PyTokenizer_FindEncoding() returning a char * thatBrett Cannon2007-10-201-3/+8
| | | | was PyMem_MALLOC'ed.
* Plug a memory leak where a struct tok_state was not being freed.Brett Cannon2007-10-201-3/+11
| | | | Also tweak a comparison that was going farther than needed.
* Tweak the version *string* to clarify that this isn't your father's 3.0a1. :-)Guido van Rossum2007-10-201-1/+1
|
* Patch 1267 by Christian Heimes.Guido van Rossum2007-10-1911-31/+175
| | | | | | Move the initialization of sys.std{in,out,err} and __builtin__.open to C code. This solves the problem that "python -S" wouldn't work.
* Patch 1280, by Alexandre Vassalotti.Guido van Rossum2007-10-199-51/+43
| | | | | Make PyString's indexing and iteration return integers. (I changed a few of Alexandre's decisions -- GvR.)
* This is the uncontroversial half of patch 1263 by Thomas Lee:Guido van Rossum2007-10-192-13/+17
| | | | | changes to codecs.c and structmember.c to use PyUnicode instead of PyString.
* Merge 58539: squelch the warning that this test is intended to raise.Gregory P. Smith2007-10-191-2/+7
|
* Merge 58532, 58533, 58534: bsddb.dbtables bug fixes - don't allow null bytesGregory P. Smith2007-10-181-13/+14
| | | | in random rowid strings, pass txn using a keyword where possible.
* Patch# 1258 by Christian Heimes: kill basestring.Guido van Rossum2007-10-1677-217/+171
| | | | I like this because it makes the code shorter! :-)
* For PEP3137: Adds missing methods to the mutable PyBytes object (soonGregory P. Smith2007-10-1612-1079/+1595
| | | | | | | | to be called a buffer). Shares code with stringobject when possible. Adds unit tests with common code that should be usable to test the PEPs mutable buffer() and immutable bytes() types. http://bugs.python.org/issue1261
* Fix a small typo in the comment of unicode_default_encoding[].Alexandre Vassalotti2007-10-161-1/+1
|
* Make the docstring for io.open() a raw string so that the explanation for theBrett Cannon2007-10-151-1/+1
| | | | 'newline' argument is not a jumbled mess of newlines.
* Move decl so it compiles with C89.Neal Norwitz2007-10-151-1/+1
|
* Update what the locale module documents about string operations.Guido van Rossum2007-10-151-11/+8
|
* Patch #1272, by Christian Heimes and Alexandre Vassalotti.Guido van Rossum2007-10-1517-41/+96
| | | | | | | | | | Changes to make __file__ a proper Unicode object, using the default filesystem encoding. This is a bit tricky because the default filesystem encoding isn't set by the time we import the first modules; at that point we fudge things a bit. This is okay since __file__ isn't really used much except for error reporting. Tested on OSX and Linux only so far.
* Finish bug fix applied at 58398. I missed a piece, Tal Einat found the error.Kurt B. Kaiser2007-10-151-1/+1
|
* Fix yet another stray 2.x-ism (maybe merged?).Guido van Rossum2007-10-151-2/+1
|
* Make it possible to run this test stand-alone.Guido van Rossum2007-10-151-0/+3
|
* Fix typo: formats -> format. (Only mattered in wide unicode builds.)Guido van Rossum2007-10-141-1/+1
|
* Fix some more memory leaks (in error conditions) introduced in r58455.Neal Norwitz2007-10-141-3/+4
| | | | Also fix some indentation.
* Fix the memory leak introduced in r58455. The buffer referenceAlexandre Vassalotti2007-10-141-1/+4
| | | | returned by 'et' need to be freed after usage.
* Remove the buffer API from PyUnicode as specified by PEP 3137. Also,Alexandre Vassalotti2007-10-144-17/+13
| | | | | fix the error message of the 't' format unit, in getargs.c, so that it asks for bytes, instead of string.
* Merge 58450: fix uncollectable reference caused by bsddb.db.DBShelf.appendGregory P. Smith2007-10-131-2/+19
| | | | Adds a DBShelf __repr__ method to not raise an exception when the DB is closed.
* Eliminate use of PyBUF_CHARACTER flag which is no longer part of the buffer ↵Travis E. Oliphant2007-10-135-23/+20
| | | | interface. Fix up array module to export the correct format for wide-builds.
* Fix typo in arraymodule.c (?) -- it's PyBUF_LOCK, not PyBUF_LOCKDATA.Guido van Rossum2007-10-131-1/+1
|
* Remove more hotshot cruft.Neal Norwitz2007-10-136-17/+1
|
* Fix problems with memoryview object. There is still more to do to finish ↵Travis E. Oliphant2007-10-124-389/+408
| | | | PEP 3118. The memory-view object needs to be fleshed out and the struct module needs to be modified.
* Add macros for checking for long double and defining the size of long double ↵Travis E. Oliphant2007-10-123-1/+481
| | | | on the platform. Ctypes and Struct module will both need them.
* Fix Issue 1268 with the array module by backing-out the 'w' addition. All ↵Travis E. Oliphant2007-10-121-18/+36
| | | | builds will continue to use 'u' for unicode.
* Make _load_testfile() use its encoding argument when __loader__ is defined.Brett Cannon2007-10-122-1/+10
|
* Merge r58434:Gregory P. Smith2007-10-122-23/+79
| | | | | | 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.
* Remove self-referential import.Brett Cannon2007-10-111-2/+1
|
* clean out some hotshot-related build turdsFred Drake2007-10-114-17/+0
|
* remove hotshot profiler from Py3kFred Drake2007-10-1113-2383/+14
|
* Two changes that are definitely problem-free and avoid calling print()Guido van Rossum2007-10-102-6/+4
| | | | with a bytes instance (as this will soon print something differently).
* get rid of some more PyString uses.Guido van Rossum2007-10-101-15/+19
| | | | | Only the filename is still a PyString now. (We'll need to deal with the default filesystem encoding to do it right.)
* Minor cleanup of the comment for PyErr_ProgramText() and a tweak to the codeGuido van Rossum2007-10-101-7/+10
| | | | to guarantee the claim that it doesn't set an exception.
* Fix another stray PyString reference that should be PyBytes; and its comment.Guido van Rossum2007-10-101-2/+2
|
* Fix an issue in PyTokenizer_RestoreEncoding() which was treating a PyBytesGuido van Rossum2007-10-101-5/+10
| | | | | object with PyString calls and not checking errors. This caused the display of syntax errors to be deformed.
* Random changes having to do with readline() and bytes.Guido van Rossum2007-10-101-25/+14
|
* the default class attr is needed!Kurt B. Kaiser2007-10-101-0/+1
|
* Don't depend on str8.splitlines() in test_chunkcoding().Guido van Rossum2007-10-101-2/+8
|
* Windows EOL sequence not converted correctly, encoding error.Kurt B. Kaiser2007-10-092-4/+13
| | | | | | | Caused file save to fail. Bug 1130. M idlelib/IOBinding.py M idlelib/NEWS.txt
* PyFile_WriteObject() should use PyObject_Repr(), not _ReprStr8().Guido van Rossum2007-10-091-1/+1
|
* use a reliable hostGregory P. Smith2007-10-091-4/+1
|
* Silly script I'd rather not throw away.Guido van Rossum2007-10-091-0/+93
|
* Patch #1049 by Thomas Lee.Guido van Rossum2007-10-092-7/+9
| | | | | Changes comparisons between PyBytes and PyUnicode to return unequal instead of raising TypeError.
* Replace all (locale-dependent) uses of isupper(), tolower(), etc., byGuido van Rossum2007-10-091-65/+302
| | | | locally-defined macros that assume ASCII and only consider ASCII letters.
* Change the default encoding for ftplib.FTP to latin1 so that bytes can be inBrett Cannon2007-10-081-1/+1
| | | | the range of 255 instead of only 128.
* #1228: new comparison behavior.Georg Brandl2007-10-081-12/+5
|