Commit Graph

34733 Commits

Author SHA1 Message Date
Neal Norwitz fe61bb9a59 Disable test until email comes back 2007-08-25 17:57:37 +00:00
Neal Norwitz cb51c6e953 Get test_pyclbr to pass after removing the email package 2007-08-25 17:23:06 +00:00
Neal Norwitz 392c5bed12 Use unicode 2007-08-25 17:20:32 +00:00
Neal Norwitz 3ef6a57908 Get rid of compiler warning on 64-bit 2007-08-25 17:08:59 +00:00
Neal Norwitz ae2c876e0e Use unicode 2007-08-25 17:03:03 +00:00
Neal Norwitz 8ced961ae6 Fix some comments 2007-08-25 17:01:41 +00:00
Guido van Rossum 1dd2c82992 Cosmetic fixes to make this work with Py3k (as well as with 2.5 still).
Patch by Christian Heimes.
2007-08-25 14:55:35 +00:00
Guido van Rossum 6398b7a351 Remove the email package for now.
Once Barry and the email-sig have a working new version
we'll add it back.
If it doesn't make the 3.0a deadline (release August 31), too bad.
2007-08-25 13:43:02 +00:00
Neal Norwitz f616b22450 Support unicode names 2007-08-25 08:13:40 +00:00
Neal Norwitz b4e2f76d24 Use unicode 2007-08-25 08:01:41 +00:00
Neal Norwitz a369c5aba6 Use unicode 2007-08-25 07:41:59 +00:00
Neal Norwitz 1978470c3b Fix typo in comment 2007-08-25 05:22:02 +00:00
Guido van Rossum b908126c3a Reorder code and decls so it's compilable with gcc 2.96 (C89). 2007-08-25 03:14:09 +00:00
Eric Smith 8c66326368 Implementation of PEP 3101, Advanced String Formatting.
Known issues:

The string.Formatter class, as discussed in the PEP, is incomplete.

Error handling needs to conform to the PEP.

Need to fix this warning that I introduced in Python/formatter_unicode.c:
Objects/stringlib/unicodedefs.h:26: warning: `STRINGLIB_CMP' defined but not used

Need to make sure sign formatting is correct, more tests needed.

Need to remove '()' sign formatting, left over from an earlier version of the PEP.
2007-08-25 02:26:07 +00:00
Neal Norwitz e4dc324884 Use unicode for AST attributes 2007-08-25 01:33:49 +00:00
Neal Norwitz aefab1e2ac Use unicode 2007-08-25 01:04:34 +00:00
Neal Norwitz e0a0a6e937 Since PyUnicode_AsString is a public API, don't just assert, but do
a regular check and return an error if not unicode.
2007-08-25 01:04:21 +00:00
Neal Norwitz b0d26335f2 Use unicode strings 2007-08-25 00:49:05 +00:00
Neal Norwitz f308132cc2 Add const to input string parameters 2007-08-25 00:32:45 +00:00
Neal Norwitz fa06e5f00f Whoops, not sure how I screwed up the name. Now builds and passes the test. 2007-08-25 00:29:58 +00:00
Neal Norwitz 8d3654db22 Use unicode and add a "test" for syslog 2007-08-25 00:21:36 +00:00
Guido van Rossum a401bbe5f0 Add a few mixed-mode (set vs. dict view) comparisons. 2007-08-24 23:51:55 +00:00
Guido van Rossum cf2ce36fa2 Keir Mierle's improved tests for dict view containment tests. 2007-08-24 23:49:54 +00:00
Guido van Rossum 1d71996013 Add some mixed operations between sets and dict views. 2007-08-24 23:47:30 +00:00
Guido van Rossum be534719da Add unit tests for set ops on dict.items(). 2007-08-24 23:43:52 +00:00
Guido van Rossum 523259ba07 Keir Mierle's set operations for dict views (keys/items only of course). 2007-08-24 23:41:22 +00:00
Neal Norwitz eb8b3a6d61 Use unicode for password modules 2007-08-24 23:26:23 +00:00
Neal Norwitz 6e024b3842 Use the str builtin 2007-08-24 23:17:28 +00:00
Neal Norwitz 41103bf6f2 Ensure that code object names (co_name) are unicode.
Verify that they print properly too.
2007-08-24 23:12:06 +00:00
Neal Norwitz a5d16a3f85 Use unicode for error messages of duplicate args 2007-08-24 22:53:58 +00:00
Neal Norwitz 808c7d86ea Use unicode for reference (is there any way to build this module) 2007-08-24 22:49:25 +00:00
Guido van Rossum aac530cdec Patch with Keir Mierle: add rich comparisons between dict views and sets,
at least for .keys() and .items() (not .values() of course).
2007-08-24 22:33:45 +00:00
Gregory P. Smith c3ee950979 follow up to bug 1007 commit.
Use self.assertTrue in test cases rather than the assert statement.
2007-08-24 22:14:21 +00:00
Gregory P. Smith 178fefb9b5 applies the better dbm and shelve related unittests. bug 1007 from larryhastings 2007-08-24 21:59:45 +00:00
Skip Montanaro 41cfce9c2b Remove PyArg_Parse usage from time module. (An extra set of eyeballs on
this would be nice.  I'm a little rusty.)
2007-08-24 21:11:00 +00:00
Neal Norwitz b382b84abe Add const to some strings that are not modified 2007-08-24 20:00:37 +00:00
Neal Norwitz cd795963c3 Use unicode for much of errors. 2007-08-24 19:54:13 +00:00
Collin Winter 11e065b37c Convert test_pkg to use unittest. 2007-08-24 19:15:12 +00:00
Collin Winter 70e79803fc r698@Silves: collinwinter | 2007-08-24 10:57:15 -0700
Normalize raise statements in Lib/xml/.
2007-08-24 18:57:22 +00:00
Guido van Rossum 75d38e992e Whitespace cleanup. 2007-08-24 17:33:11 +00:00
Guido van Rossum 7f19f66250 Clean up after a merge left behind old except clause syntax. 2007-08-24 16:47:58 +00:00
Guido van Rossum 04110fb859 Merged revisions 57221-57391 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r57227 | facundo.batista | 2007-08-20 17:16:21 -0700 (Mon, 20 Aug 2007) | 5 lines


  Catch ProtocolError exceptions and include the header information in
  test output (to make it easier to debug test failures caused by
  problems in the server). [GSoC - Alan McIntyre]
........
  r57229 | mark.hammond | 2007-08-20 18:04:47 -0700 (Mon, 20 Aug 2007) | 5 lines

  [ 1761786 ] distutils.util.get_platform() return value on 64bit Windows
  As discussed on distutils-sig: Allows the generated installer name on
  64bit Windows platforms to be different than the name generated for
  32bit Windows platforms.
........
  r57230 | mark.hammond | 2007-08-20 18:05:16 -0700 (Mon, 20 Aug 2007) | 5 lines

  [ 1761786 ] distutils.util.get_platform() return value on 64bit Windows
  As discussed on distutils-sig: Allows the generated installer name on
  64bit Windows platforms to be different than the name generated for
  32bit Windows platforms.
........
  r57253 | georg.brandl | 2007-08-20 23:01:18 -0700 (Mon, 20 Aug 2007) | 2 lines

  Demand version 2.5.1 since 2.5 has a bug with codecs.open context managers.
........
  r57254 | georg.brandl | 2007-08-20 23:03:43 -0700 (Mon, 20 Aug 2007) | 2 lines

  Revert accidental checkins from last commit.
........
  r57255 | georg.brandl | 2007-08-20 23:07:08 -0700 (Mon, 20 Aug 2007) | 2 lines

  Bug #1777160: mention explicitly that e.g. -1**2 is -1.
........
  r57256 | georg.brandl | 2007-08-20 23:12:19 -0700 (Mon, 20 Aug 2007) | 3 lines

  Bug #1777168: replace operator names "opa"... with "op1"... and mark everything up as literal,
  to enhance readability.
........
  r57259 | facundo.batista | 2007-08-21 09:57:18 -0700 (Tue, 21 Aug 2007) | 8 lines


  Added test for behavior of operations on an unconnected SMTP object,
  and tests for NOOP, RSET, and VRFY. Corrected typo in a comment for
  testNonnumericPort. Added a check for constructing SMTP objects when
  non-numeric ports are included in the host name. Derived a server from
  SMTPServer to test various ESMTP/SMTP capabilities. Check that a
  second HELO to DebuggingServer returns an error. [GSoC - Alan McIntyre]
........
  r57279 | skip.montanaro | 2007-08-22 12:02:16 -0700 (Wed, 22 Aug 2007) | 2 lines

  Note that BeOS is unsupported as of Python 2.6.
........
  r57280 | skip.montanaro | 2007-08-22 12:05:21 -0700 (Wed, 22 Aug 2007) | 1 line

  whoops - need to check in configure as well
........
  r57284 | alex.martelli | 2007-08-22 14:14:17 -0700 (Wed, 22 Aug 2007) | 5 lines

  Fix compile.c so that it records 0.0 and -0.0 as separate constants in a code
  object's co_consts tuple; add a test to show that the previous behavior (where
  these two constants were "collapsed" into one) causes serious malfunctioning.
........
  r57286 | gregory.p.smith | 2007-08-22 14:32:34 -0700 (Wed, 22 Aug 2007) | 3 lines

  stop leaving log.0000001 __db.00* and xxx.db turds in developer
  sandboxes when bsddb3 tests are run.
........
  r57301 | jeffrey.yasskin | 2007-08-22 16:14:27 -0700 (Wed, 22 Aug 2007) | 3 lines

  When setup.py fails to find the necessary bits to build some modules, have it
  print a slightly more informative message.
........
  r57320 | brett.cannon | 2007-08-23 07:53:17 -0700 (Thu, 23 Aug 2007) | 2 lines

  Make test_runpy re-entrant.
........
  r57324 | georg.brandl | 2007-08-23 10:54:11 -0700 (Thu, 23 Aug 2007) | 2 lines

  Bug #1768121: fix wrong/missing opcode docs.
........
  r57326 | georg.brandl | 2007-08-23 10:57:05 -0700 (Thu, 23 Aug 2007) | 2 lines

  Bug #1766421: "return code" vs. "status code".
........
  r57328 | georg.brandl | 2007-08-23 11:08:06 -0700 (Thu, 23 Aug 2007) | 2 lines

  Second half of #1752175: #ifdef out references to PyImport_DynLoadFiletab if HAVE_DYNAMIC_LOADING is not defined.
........
  r57331 | georg.brandl | 2007-08-23 11:11:33 -0700 (Thu, 23 Aug 2007) | 2 lines

  Use try-except-finally in contextlib.
........
  r57343 | georg.brandl | 2007-08-23 13:35:00 -0700 (Thu, 23 Aug 2007) | 2 lines

  Bug #1697820: document that the old slice protocol is still used by builtin types.
........
  r57345 | georg.brandl | 2007-08-23 13:40:01 -0700 (Thu, 23 Aug 2007) | 2 lines

  Bug #1573854: fix docs for sqlite3 cursor rowcount attr.
........
  r57347 | georg.brandl | 2007-08-23 13:50:23 -0700 (Thu, 23 Aug 2007) | 2 lines

  Bug #1694833: fix imp.find_module() docs wrt. packages.
........
  r57348 | georg.brandl | 2007-08-23 13:53:28 -0700 (Thu, 23 Aug 2007) | 2 lines

  Bug #1594966: fix misleading usage example
........
  r57349 | georg.brandl | 2007-08-23 13:55:44 -0700 (Thu, 23 Aug 2007) | 2 lines

  Clarify wording a bit.
........
  r57351 | georg.brandl | 2007-08-23 14:18:44 -0700 (Thu, 23 Aug 2007) | 2 lines

  Bug #1752332: httplib no longer uses socket.getaddrinfo().
........
  r57352 | georg.brandl | 2007-08-23 14:21:36 -0700 (Thu, 23 Aug 2007) | 2 lines

  Bug #1734111: document struct.Struct.size.
........
  r57353 | georg.brandl | 2007-08-23 14:27:57 -0700 (Thu, 23 Aug 2007) | 2 lines

  Bug #1688564: document os.path.join's absolute path behavior in the docstring.
........
  r57354 | georg.brandl | 2007-08-23 14:36:05 -0700 (Thu, 23 Aug 2007) | 2 lines

  Bug #1625381: clarify match vs search introduction.
........
  r57355 | georg.brandl | 2007-08-23 14:42:54 -0700 (Thu, 23 Aug 2007) | 2 lines

  Bug #1758696: more info about descriptors.
........
  r57357 | georg.brandl | 2007-08-23 14:55:57 -0700 (Thu, 23 Aug 2007) | 2 lines

  Patch #1779550: remove redundant code in logging.
........
  r57378 | gregory.p.smith | 2007-08-23 22:11:38 -0700 (Thu, 23 Aug 2007) | 2 lines

  Fix bug 1725856.
........
  r57382 | georg.brandl | 2007-08-23 23:10:01 -0700 (Thu, 23 Aug 2007) | 2 lines

  uuid creation is now threadsafe, backport from py3k rev. 57375.
........
  r57389 | georg.brandl | 2007-08-24 04:47:37 -0700 (Fri, 24 Aug 2007) | 2 lines

  Bug #1765375: fix stripping of unwanted LDFLAGS.
........
  r57391 | guido.van.rossum | 2007-08-24 07:53:14 -0700 (Fri, 24 Aug 2007) | 2 lines

  Fix silly typo in test name.
........
2007-08-24 16:32:05 +00:00
Gregory P. Smith 07aec08a01 reapply of r57378 to fix bug 1725856 2007-08-24 05:32:10 +00:00
Guido van Rossum fc5fafcf78 Fix logic bug that triggered assert. 2007-08-24 05:08:58 +00:00
Guido van Rossum 37410aa044 Make uuid.py thread-safe. Fix by Yuri Ginsburg. 2007-08-24 04:13:42 +00:00
Guido van Rossum fd53fd62c9 Fixes by Ero Carrera to remove PyString_. I had to massage a few problems away.
Also, this now leaks a bit -- that's for tomorrow's sprint day.
2007-08-24 04:05:13 +00:00
Guido van Rossum eda12ecc5f Patch by Ero Carrera to get rid of PyString in timemodule.c. 2007-08-24 03:51:52 +00:00
Guido van Rossum 28bbe4252e math.floor(<int>) now returns the argument,
so the overflow test no longer matters.
2007-08-24 03:46:30 +00:00
Neal Norwitz 9cfc62c44f cPickle was removed 2007-08-24 02:51:04 +00:00
Guido van Rossum 15d3d04547 Before calling _PyType_Lookup() the type needs to be initialized. 2007-08-24 02:02:45 +00:00