Neal Norwitz [Fri, 3 Mar 2006 00:43:06 +0000 (00:43 +0000)]
Add test_quopri to know spurious leakers
Brett Cannon [Thu, 2 Mar 2006 22:08:16 +0000 (22:08 +0000)]
Text moved to PEP 339.
Brett Cannon [Thu, 2 Mar 2006 22:07:40 +0000 (22:07 +0000)]
Fix minor docstring typo.
Tim Peters [Thu, 2 Mar 2006 21:41:18 +0000 (21:41 +0000)]
Document the purpose of the struct _block members.
Tim Peters [Thu, 2 Mar 2006 21:14:45 +0000 (21:14 +0000)]
Added words about what PyArena_Malloc() does.
Tim Peters [Thu, 2 Mar 2006 21:04:08 +0000 (21:04 +0000)]
Beefed up description of what this does; new XXX.
Tim Peters [Thu, 2 Mar 2006 20:48:25 +0000 (20:48 +0000)]
New XXX pointing out errors in the description of
PyArena_New(); unsure what the intent is.
Thomas Wouters [Thu, 2 Mar 2006 20:41:27 +0000 (20:41 +0000)]
Fix crashing bug in tokenizer, when tokenizing files with non-ASCII bytes
but without a specified encoding: decoding_fgets() (and decoding_feof()) can
return NULL and fiddle with the 'tok' struct, making tok->buf NULL. This is
okay in the other cases of calls to decoding_*(), it seems, but not in this
one.
This should get a test added, somewhere, but the testsuite doesn't seem to
test encoding anywhere (although plenty of tests use it.)
It seems to me that decoding errors in other places in the code (like at the
start of a token, instead of in the middle of one) make the code end up
adding small integers to NULL pointers, but happen to check for error states
before using the calculated new pointers. I haven't been able to trigger any
other crashes, in any case.
I would nominate this file for a comlete rewrite for Py3k. The whole
decoding trick is too bolted-on for my tastes.
Tim Peters [Thu, 2 Mar 2006 20:37:32 +0000 (20:37 +0000)]
Trimmed trailing whitespace.
Brett Cannon [Thu, 2 Mar 2006 18:34:57 +0000 (18:34 +0000)]
Fix refleak in PyErr_Display().
Thomas Wouters [Thu, 2 Mar 2006 17:58:27 +0000 (17:58 +0000)]
Explain why we use the unsigned int format for a signed int variable.
(Should 'code' be cast to the right pointer type?)
Brett Cannon [Thu, 2 Mar 2006 17:47:01 +0000 (17:47 +0000)]
Fix mismatch opening and closing quotes on a string.
Neal Norwitz [Thu, 2 Mar 2006 08:08:42 +0000 (08:08 +0000)]
Fix refleak if from __future__ import was not first
Neal Norwitz [Thu, 2 Mar 2006 07:54:28 +0000 (07:54 +0000)]
Use Py_ssize_t since we are working with list size below
Neal Norwitz [Thu, 2 Mar 2006 07:51:44 +0000 (07:51 +0000)]
Spell threading write, not thraeading
Thomas Wouters [Thu, 2 Mar 2006 05:05:17 +0000 (05:05 +0000)]
Properly fix Py_SAFE_DOWNCAST-triggerd bugs.
Thomas Wouters [Thu, 2 Mar 2006 04:48:27 +0000 (04:48 +0000)]
Py_SAFE_DOWNCAST isn't quite doing the right thing for going from Py_ssize_t
to an unsigned int (and back again) on 64-bit machines, even though the
actual value of the Py_ssize_t variable is way below 31 bits. I suspect
compiler-error.
Brett Cannon [Thu, 2 Mar 2006 04:31:55 +0000 (04:31 +0000)]
Add a missing Py_DECREF to BaseException__unicode__ .
Guido van Rossum [Thu, 2 Mar 2006 04:24:01 +0000 (04:24 +0000)]
Fix failure of test_compiler.py when compiling test_contextlib.py.
The culprit was an expression-less yield -- the first apparently in
the standard library. I added a unit test for this.
Also removed the hack to force compilation of test_with.py.
Neal Norwitz [Thu, 2 Mar 2006 04:06:10 +0000 (04:06 +0000)]
Update known issues to reflect reality
Neal Norwitz [Thu, 2 Mar 2006 04:03:44 +0000 (04:03 +0000)]
Remove duplicate entry
Brett Cannon [Thu, 2 Mar 2006 03:52:06 +0000 (03:52 +0000)]
Fix latex typos as spotted by George Yoshida.
Martin v. Löwis [Thu, 2 Mar 2006 00:31:27 +0000 (00:31 +0000)]
Fix memory leak on attributes.
Thomas Wouters [Thu, 2 Mar 2006 00:21:10 +0000 (00:21 +0000)]
Make Py_ssize_t-clean
Thomas Wouters [Wed, 1 Mar 2006 23:49:13 +0000 (23:49 +0000)]
Make Py_ssize_t clean.
Martin v. Löwis [Wed, 1 Mar 2006 23:24:34 +0000 (23:24 +0000)]
Reformat the exception message by going through a list.
Martin v. Löwis [Wed, 1 Mar 2006 23:10:49 +0000 (23:10 +0000)]
Remove UNLESS.
Thomas Wouters [Wed, 1 Mar 2006 23:10:05 +0000 (23:10 +0000)]
Use Py_ssize_t for arithmetic on Py_ssize_t's, instead of unsigned ints.
Tim Peters [Wed, 1 Mar 2006 23:02:57 +0000 (23:02 +0000)]
Whitespace normalization.
Thomas Wouters [Wed, 1 Mar 2006 22:54:36 +0000 (22:54 +0000)]
Fix gcc (4.0.x) warning about use of uninitialized variable.
Martin v. Löwis [Wed, 1 Mar 2006 22:49:05 +0000 (22:49 +0000)]
Patch #
1440601: Add col_offset attribute to AST nodes.
Thomas Wouters [Wed, 1 Mar 2006 22:45:36 +0000 (22:45 +0000)]
Rework channelnumber/samplesize detetion code's output variables a bit to
convince gcc (4.0.x) the variables are never used uninitialized (and raising
a proper exception if they ever are.)
Thomas Wouters [Wed, 1 Mar 2006 22:34:09 +0000 (22:34 +0000)]
Fix incompatible assignment warning from previous checkin.
Thomas Wouters [Wed, 1 Mar 2006 22:30:47 +0000 (22:30 +0000)]
Fix gcc (4.0.x) warning about use of uninitialized variables.
(PyMarshal_ReadShortFromFile() is only used in zipimport.c, I don't believe
the extra initializations will matter one way or another.)
Thomas Wouters [Wed, 1 Mar 2006 22:15:15 +0000 (22:15 +0000)]
Silence gcc (4.0.x) warning about use of uninitialized value.
Brett Cannon [Wed, 1 Mar 2006 22:10:49 +0000 (22:10 +0000)]
Document PEP 352 changes. Also added GeneratorExit.
Thomas Wouters [Wed, 1 Mar 2006 22:06:23 +0000 (22:06 +0000)]
Fix uninitialized value. (Why are we using bools instead of ints, like we do
everywhere else?)
Thomas Wouters [Wed, 1 Mar 2006 21:59:44 +0000 (21:59 +0000)]
Fix brainfart.
Thomas Wouters [Wed, 1 Mar 2006 21:58:30 +0000 (21:58 +0000)]
Remove gcc (4.0.x) warning about uninitialized value by explicitly setting
the sentinel value in the main function, rather than the helper. This
function could possibly do with an early-out if any of the helper calls ends
up with a len of 0, but I doubt it really matters (how common are malformed
hangul syllables, really?)
Thomas Wouters [Wed, 1 Mar 2006 21:50:07 +0000 (21:50 +0000)]
Make Py_ssize_t-clean.
Thomas Wouters [Wed, 1 Mar 2006 21:37:32 +0000 (21:37 +0000)]
Make Py_ssize_t-clean.
Martin v. Löwis [Wed, 1 Mar 2006 21:33:54 +0000 (21:33 +0000)]
Fix more memory leaks. Will backport to 2.4.
Thomas Wouters [Wed, 1 Mar 2006 21:31:21 +0000 (21:31 +0000)]
Fix C99-ism, and add XXX to comment
Martin v. Löwis [Wed, 1 Mar 2006 21:11:49 +0000 (21:11 +0000)]
Make failures in test cases print failing source file.
Brett Cannon [Wed, 1 Mar 2006 20:53:08 +0000 (20:53 +0000)]
Update for 'with' statement.
Guido van Rossum [Wed, 1 Mar 2006 17:10:01 +0000 (17:10 +0000)]
Fix a bug in nested() - if one of the sub-context-managers swallows the
exception, it should not be propagated up. With unit tests.
Martin v. Löwis [Wed, 1 Mar 2006 16:56:25 +0000 (16:56 +0000)]
Change GC refcount to Py_ssize_t.
Martin v. Löwis [Wed, 1 Mar 2006 16:55:42 +0000 (16:55 +0000)]
Reconst parameters that lost their const in the AST merge.
Martin v. Löwis [Wed, 1 Mar 2006 16:37:55 +0000 (16:37 +0000)]
Fix warning that texcheck complained about.
Jeremy Hylton [Wed, 1 Mar 2006 15:47:05 +0000 (15:47 +0000)]
Tabify and reflow some long lines.
Much of the peephole optimizer is now indented badly, but it's about
to be revised anyway.
Jeremy Hylton [Wed, 1 Mar 2006 15:02:24 +0000 (15:02 +0000)]
Add missing DECREF.
Fredrik Lundh [Wed, 1 Mar 2006 12:43:53 +0000 (12:43 +0000)]
markup glitch (spotted by George Yoshida)
Tim Peters [Wed, 1 Mar 2006 06:28:58 +0000 (06:28 +0000)]
Remove svn:mime-type (inexplicably set to a binary type),
and set svn:eol-style to native, on some text files.
Tim Peters [Wed, 1 Mar 2006 06:19:04 +0000 (06:19 +0000)]
Set svn:eol-style to native.
Brett Cannon [Wed, 1 Mar 2006 06:10:48 +0000 (06:10 +0000)]
Fix parsing of exception_hierarchy.txt when a platform-specific exception is
specified. Hopefully this wll bring warming to Tim's Windows-loving heart.
Martin v. Löwis [Wed, 1 Mar 2006 05:47:11 +0000 (05:47 +0000)]
Document new Py_ssize_t API.
Thomas Wouters [Wed, 1 Mar 2006 05:41:20 +0000 (05:41 +0000)]
Use %ld and casts to long for refcount printing, in absense of a universally
available %zd format character. Mark with an XXX comment so we can fix this,
later.
Thomas Wouters [Wed, 1 Mar 2006 05:38:39 +0000 (05:38 +0000)]
Use %zd format characters for Py_ssize_t types.
Thomas Wouters [Wed, 1 Mar 2006 05:34:22 +0000 (05:34 +0000)]
Remove redundant isinstance() check.
Thomas Wouters [Wed, 1 Mar 2006 05:32:33 +0000 (05:32 +0000)]
Put back the essence of Jeremy's original XXX comment.
Martin v. Löwis [Wed, 1 Mar 2006 05:18:07 +0000 (05:18 +0000)]
Add tool to check documentation against declaration.
Martin v. Löwis [Wed, 1 Mar 2006 05:16:03 +0000 (05:16 +0000)]
Make documentation match the implementation.
Tim Peters [Wed, 1 Mar 2006 04:35:45 +0000 (04:35 +0000)]
Repair mangled code in the Windows flavor of
posix__getfullpathname().
In partial answer to the now-deleted XXX comment:
/* XXX(twouters) Why use 'et#' here at all? insize isn't used */
`insize` is an input parameter too, and it was left uninitialized,
leading to seemingly random failures.
Brett Cannon [Wed, 1 Mar 2006 04:28:00 +0000 (04:28 +0000)]
Add Misc/NEWS entry for Misc/Vim/vim_syntax.py . Also use conditional
expression for the hell of it.
Brett Cannon [Wed, 1 Mar 2006 04:25:17 +0000 (04:25 +0000)]
PEP 352 implementation. Creates a new base class, BaseException, which has an
added message attribute compared to the previous version of Exception. It is
also a new-style class, making all exceptions now new-style. KeyboardInterrupt
and SystemExit inherit from BaseException directly. String exceptions now
raise DeprecationWarning.
Applies patch
1104669, and closes bugs
1012952 and 518846.
Martin v. Löwis [Wed, 1 Mar 2006 04:06:10 +0000 (04:06 +0000)]
Use Py_ssize_t for PyArg_UnpackTuple arguments.
Martin v. Löwis [Wed, 1 Mar 2006 04:04:20 +0000 (04:04 +0000)]
Remove unused field.
Martin v. Löwis [Wed, 1 Mar 2006 04:02:43 +0000 (04:02 +0000)]
Make ob_refcnt and tp_maxalloc (and friends) Py_ssize_t.
Thomas Wouters [Wed, 1 Mar 2006 01:05:10 +0000 (01:05 +0000)]
Py_ssize_t-ify.
Thomas Wouters [Wed, 1 Mar 2006 01:01:55 +0000 (01:01 +0000)]
Fix DBEnv's set_tx_timestamp wrapper to be slightly more correct on
non-32bit platforms. Will still only allow 32 bits in a timestamp on Win64,
but at least it won't crash, and it'll work right on platforms where longs
are big enough to contain time_t's.
(A better-working, although conceptually less-right fix would have been to
use Py_ssize_t here, but Martin and Tim won't let me.)
Thomas Wouters [Tue, 28 Feb 2006 23:09:08 +0000 (23:09 +0000)]
Move #include to outside "extern C {}", before Tim figures out it'll break
VC++.
Thomas Wouters [Tue, 28 Feb 2006 22:50:17 +0000 (22:50 +0000)]
Regenerate.
Neal Norwitz [Tue, 28 Feb 2006 22:47:29 +0000 (22:47 +0000)]
Don't pollute namespace as bad as before. All the types are static now.
Thomas Wouters [Tue, 28 Feb 2006 22:42:15 +0000 (22:42 +0000)]
Make 'as' an actual keyword when with's future statement is used. Not
actually necessary for functionality, but good for transition.
Martin v. Löwis [Tue, 28 Feb 2006 22:41:29 +0000 (22:41 +0000)]
Change non-ASCII warning into a SyntaxError.
Thomas Wouters [Tue, 28 Feb 2006 22:40:55 +0000 (22:40 +0000)]
Include code.h more sanely.
Neal Norwitz [Tue, 28 Feb 2006 22:36:46 +0000 (22:36 +0000)]
No need to export PySTEntry_New, it is only used in symtable.c
Tim Peters [Tue, 28 Feb 2006 22:02:16 +0000 (22:02 +0000)]
Set eol-style on new .py files.
Guido van Rossum [Tue, 28 Feb 2006 21:57:43 +0000 (21:57 +0000)]
Updates to the with-statement:
- New semantics for __exit__() -- it must re-raise the exception
if type is not None; the with-statement itself doesn't do this.
(See the updated PEP for motivation.)
- Added context managers to:
- file
- thread.LockType
- threading.{Lock,RLock,Condition,Semaphore,BoundedSemaphore}
- decimal.Context
- Added contextlib.py, which defines @contextmanager, nested(), closing().
- Unit tests all around; bot no docs yet.
Martin v. Löwis [Tue, 28 Feb 2006 21:41:30 +0000 (21:41 +0000)]
unparse.py can now unparse itself.
Neal Norwitz [Tue, 28 Feb 2006 20:40:50 +0000 (20:40 +0000)]
Add a note about removing the file once the bug is fixed
Tim Peters [Tue, 28 Feb 2006 20:39:06 +0000 (20:39 +0000)]
Its right now.
Neal Norwitz [Tue, 28 Feb 2006 20:24:18 +0000 (20:24 +0000)]
Ignore .pyc files
Neal Norwitz [Tue, 28 Feb 2006 20:06:49 +0000 (20:06 +0000)]
Note that as generates a warning too
Neal Norwitz [Tue, 28 Feb 2006 20:03:28 +0000 (20:03 +0000)]
Martin owns PEP 353 and did most of the work
Neal Norwitz [Tue, 28 Feb 2006 20:02:42 +0000 (20:02 +0000)]
Make __future__ features similar for with and absolute import since they were both added before a1
Thomas Wouters [Tue, 28 Feb 2006 20:02:27 +0000 (20:02 +0000)]
Generally inehrit codeflags that are in PyCF_MASK, instead of writing it out
in multiple places. This makes compile()/eval()/etc also inherit the
absolute-import codeflag, like division and with-statement already were.
Jeremy Hylton [Tue, 28 Feb 2006 19:57:06 +0000 (19:57 +0000)]
Add some stats collection in debugging mode.
No good way to extract output yet.
Tim Peters [Tue, 28 Feb 2006 19:05:29 +0000 (19:05 +0000)]
Gave README a .txt extension.
Thomas Wouters [Tue, 28 Feb 2006 19:02:24 +0000 (19:02 +0000)]
from __future__ import with_statement addon for 'with', mostly written by
Neal.
Neal Norwitz [Tue, 28 Feb 2006 19:02:05 +0000 (19:02 +0000)]
Add directory which contains known ref leaks. Some of these are likely to be system dependent (like test_gestalt).
Jeremy Hylton [Tue, 28 Feb 2006 18:52:28 +0000 (18:52 +0000)]
Use simple PyList to implement list of PyObject pointers
Tim Peters [Tue, 28 Feb 2006 18:44:41 +0000 (18:44 +0000)]
Set EOL style to native.
Tim Peters [Tue, 28 Feb 2006 18:33:35 +0000 (18:33 +0000)]
Another bit of unconstification.
Tim Peters [Tue, 28 Feb 2006 18:30:36 +0000 (18:30 +0000)]
Whitespace normalization.
Jeremy Hylton [Tue, 28 Feb 2006 18:29:00 +0000 (18:29 +0000)]
Tabify
Neal Norwitz [Tue, 28 Feb 2006 18:05:43 +0000 (18:05 +0000)]
Instead of printing the exception when you interrupt a test (Ctrl-C),
print the status so far and suppress printing the exception (but still exit).
Jeremy Hylton [Tue, 28 Feb 2006 17:58:27 +0000 (17:58 +0000)]
Remove asdl_seq_APPEND() and simplify asdl seq implementation.
Clarify intended use of set_context() and check errors at all call sites.
Neal Norwitz [Tue, 28 Feb 2006 17:53:58 +0000 (17:53 +0000)]
Update comments
Jeremy Hylton [Tue, 28 Feb 2006 17:53:04 +0000 (17:53 +0000)]
Real arena implementation
Replace the toy arena implementation with a real one,
based on allocating 8K chunks of memory by default.