Commit Graph

33822 Commits

Author SHA1 Message Date
Neal Norwitz 2a0c7801a5 Use relative import now that it is required. (Should this go into 2.5?) 2006-03-24 07:10:31 +00:00
Neal Norwitz 2b499436b5 Ok, compiler.transformer can really be imported now 2006-03-24 07:07:34 +00:00
Neal Norwitz 0fb43762d5 Must inherit from Exception now. 2006-03-24 07:02:16 +00:00
Neal Norwitz ef4f7f0298 Use relative import now that it is required. (Should this go into 2.5?) 2006-03-24 06:59:24 +00:00
Neal Norwitz abdbeff36e Use relative imports in compiler package now that it is required. (Should this go into 2.5 or should we do compiler.XXX?) 2006-03-24 06:57:41 +00:00
Neal Norwitz a0bc30f36f Remove another use of as as a keyword 2006-03-22 09:34:44 +00:00
Neal Norwitz 227b5339ed Finish getting rid of statichere/staticforward 2006-03-22 09:28:35 +00:00
Neal Norwitz 914a81841f Get doctest to pass. The problem was int/int -> float now. There
were some cases where an int was assumed.

Also had to change the string of the exception when dividing and int by zero.
Not sure what the best error message should be.  Currently
  5 / 0 yields the message: ZeroDivisionError: float division

That isn't entirely correct.  But I'm not sure what else to do.
2006-03-22 09:20:30 +00:00
Neal Norwitz 57c179c5b9 Remove staticforward and statichere 2006-03-22 07:18:02 +00:00
Neal Norwitz f84c38a39a Damn another occurrence of using as as a keywordf 2006-03-22 07:12:41 +00:00
Barry Warsaw 3114608c51 remove test file 2006-03-21 19:47:07 +00:00
Barry Warsaw cf028c1c7d testing svn emails 2006-03-21 19:35:05 +00:00
Barry Warsaw 72a786e4f3 testing svn emails 2006-03-21 19:21:14 +00:00
Barry Warsaw e3c8ebbff6 testing svn emails 2006-03-21 18:29:19 +00:00
Barry Warsaw 05eb9a3151 testing svn emails 2006-03-21 18:21:43 +00:00
Barry Warsaw c6718808c3 testing svn emails 2006-03-21 18:18:20 +00:00
Barry Warsaw e63f01e44e testing svn emails 2006-03-21 18:13:08 +00:00
Barry Warsaw ff80579f2e testing svn emails 2006-03-21 18:05:50 +00:00
Guido van Rossum 398b7351ac Some more TODO items of things I'd like to start with.
Mention the builtins that Neal killed.
2006-03-20 04:35:06 +00:00
Neal Norwitz a10f52e3b2 Remove PyArg_NoArgs() and PyArg_GetInt() 2006-03-17 09:00:00 +00:00
Neal Norwitz e7086d409e INPLACE_DIVIDE is no longer necessary (INPLACE_TRUE_DIVIDE is used). 2006-03-17 08:59:09 +00:00
Neal Norwitz 712ce45415 _Py_QnewFlag and INPLACE_DIVIDE are not necessary any longer 2006-03-17 08:57:43 +00:00
Neal Norwitz bd2835c6ae as is a keyword now :-) 2006-03-17 08:54:15 +00:00
Neal Norwitz 7096760b25 Get rid of xreadlines() (methods). 2006-03-17 08:29:44 +00:00
Neal Norwitz 7c3072437a More apply() cleanup 2006-03-17 08:28:24 +00:00
Neal Norwitz ade612be2f This gets at least test_cmd_line working again and a few more modules built. 2006-03-17 08:27:50 +00:00
Neal Norwitz b2eaa44646 Remove some old types for int based functions (Py_ssize_t is da thing now.) 2006-03-17 08:09:39 +00:00
Neal Norwitz 28ad48ee0a Remove apply() 2006-03-17 08:04:59 +00:00
Neal Norwitz d91085598f Remove apply() 2006-03-17 08:00:19 +00:00
Neal Norwitz fe55464f39 Whitespace changes. Also remove apply from a few comments 2006-03-17 06:58:45 +00:00
Neal Norwitz ce96f69d69 Get rid of a bunch more raw_input references 2006-03-17 06:49:51 +00:00
Neal Norwitz 9e2b9665ae Whoops, input *and* raw_input are slated for removal, and now both are gone. 2006-03-17 06:04:34 +00:00
Neal Norwitz cd65e3fc7d raw_input() -> input(). old input behavior is history (and test_builtin passes again). It was failing due to future division. 2006-03-17 05:59:16 +00:00
Neal Norwitz ac3625fcb9 Remove sys.exc_type, sys.exc_value, sys.exc_traceback 2006-03-17 05:49:33 +00:00
Neal Norwitz fc85c92a85 Get rid of compiler warning 2006-03-17 05:44:46 +00:00
Neal Norwitz c6d210ca76 Get rid of last vestiges of BINARY_DIVIDE. 2006-03-16 06:02:10 +00:00
Neal Norwitz e4993c7ac7 Get rid of compiler warning about with_msg and as_msg being unused 2006-03-16 06:01:25 +00:00
Guido van Rossum 45aecf451a Checkpoint. 218 tests are okay; 53 are failing. Done so far:
- all classes are new-style (but ripping out classobject.[ch] isn't done)
- int/int -> float
- all exceptions must derive from BaseException
- absolute import
- 'as' and 'with' are keywords
2006-03-15 04:58:47 +00:00
Guido van Rossum f3175f6341 Create a Python 3000 branch. 2006-03-14 22:22:15 +00:00
Thomas Heller 915d7773e2 Try to avoid many of the compiler warnings when compiling libffi by
using a proper function prototype.
2006-03-14 20:52:24 +00:00
Thomas Heller ab906a562b Cast an Py_ssize_t to int, to avoid a compiler warning. 2006-03-14 20:39:27 +00:00
Thomas Heller 6ea6e204a9 For x86 Release and Debug builds, remove the /Wp64 compiler flag, it
is responsible for most (all?)  of the warnings we get.
2006-03-14 20:22:47 +00:00
Thomas Heller fe8f862cda Integrate patch from Neal Norwitz. He writes:
"""
The attached patch fixes all the ctypes tests so they pass on amd64.
It also fixes several warnings.  I'm not sure what else to do with the
patch.  Let me know how you want to handle these in the future.

I'm not sure the patch is 100% correct.  You will need to decide what
can be 64 bits and what can't.  I believe
sq_{item,slice,ass_item,ass_slice} all need to use Py_ssize_t.  The
types in ctypes.h may not require all the changes I made.  I don't
know how you want to support older version, so I unconditionally
changed the types to Py_ssize_t.
"""

The patch is also in the ctypes SVN repository now, after small
changes to add compatibility with older Python versions.
2006-03-14 19:53:09 +00:00
Nick Coghlan cb35b95f86 Teach the compiler module about augmented assignment to tuple subscripts 2006-03-14 13:21:14 +00:00
Neal Norwitz 7580146b5c Fix and test (manually w/xx module) passing NULLs to PyObject_Str() and
PyObject_Unicode().  This problem was originally reported from Coverity
and addresses mail on python-dev "checkin r43015".

This inlines the conversion of the string to unicode and cleans
up/simplifies some code at the end of the PyObject_Unicode().

We really need a complete C API test module for all public APIs
and passing good and bad parameter values.

Will backport.
2006-03-14 06:02:16 +00:00
Georg Brandl 3daf75878d Fix bug found by Coverity: don't allow NULL argument to PyUnicode_CheckExact 2006-03-13 22:22:11 +00:00
Vinay Sajip d364a07517 Added logThreads and logProcesses to allow conditional omission of logging this information 2006-03-13 22:05:28 +00:00
Tim Peters 6da8cebe3c It's necessary to do a Debug build of the bsddb project too. 2006-03-13 20:09:32 +00:00
Tim Peters 7ccbb0770c Minor changes. 2006-03-13 19:43:34 +00:00
Tim Peters 32d996f8b8 Trimmed trailing whitespace. 2006-03-13 19:35:53 +00:00