]> granicus.if.org Git - python/log
python
18 years agoFix another issue likely introduced by the merge.
Guido van Rossum [Thu, 14 Jun 2007 00:29:43 +0000 (00:29 +0000)]
Fix another issue likely introduced by the merge.

18 years agoLooks like an oopsie -- I ignored a warning at my peril.
Guido van Rossum [Thu, 14 Jun 2007 00:28:01 +0000 (00:28 +0000)]
Looks like an oopsie -- I ignored a warning at my peril.

18 years agoFix some tests by deleting stuff.
Guido van Rossum [Thu, 14 Jun 2007 00:04:46 +0000 (00:04 +0000)]
Fix some tests by deleting stuff.

18 years agoSomehow this needed adding.
Guido van Rossum [Thu, 14 Jun 2007 00:03:37 +0000 (00:03 +0000)]
Somehow this needed adding.

18 years agoReduce redundant calls to str() in _Environ class.
Guido van Rossum [Wed, 13 Jun 2007 21:52:41 +0000 (21:52 +0000)]
Reduce redundant calls to str() in _Environ class.

18 years agoFollowing an idea by Ron Adam, make sure keys and values in the
Guido van Rossum [Wed, 13 Jun 2007 21:51:27 +0000 (21:51 +0000)]
Following an idea by Ron Adam, make sure keys and values in the
environ dict are strings (in particular, not 8-bit strings).

18 years agoMerged revisions 55817-55961 via svnmerge from
Guido van Rossum [Wed, 13 Jun 2007 18:07:49 +0000 (18:07 +0000)]
Merged revisions 55817-55961 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/p3yk

................
  r55837 | guido.van.rossum | 2007-06-08 16:04:42 -0700 (Fri, 08 Jun 2007) | 2 lines

  PEP 3119 -- the abc module.
................
  r55838 | guido.van.rossum | 2007-06-08 17:38:55 -0700 (Fri, 08 Jun 2007) | 2 lines

  Implement part of PEP 3119 -- One Trick Ponies.
................
  r55847 | guido.van.rossum | 2007-06-09 08:28:06 -0700 (Sat, 09 Jun 2007) | 2 lines

  Different way to do one trick ponies, allowing registration (per PEP strawman).
................
  r55849 | guido.van.rossum | 2007-06-09 18:06:38 -0700 (Sat, 09 Jun 2007) | 3 lines

  Make sure that the magic looking for __hash__ (etc.) doesn't apply to
  real subclasses of Hashable.
................
  r55852 | guido.van.rossum | 2007-06-10 08:29:51 -0700 (Sun, 10 Jun 2007) | 2 lines

  Add some more examples, e.g. generators and dict views.
................
  r55853 | guido.van.rossum | 2007-06-10 08:31:59 -0700 (Sun, 10 Jun 2007) | 2 lines

  keys() and items() *are* containers -- just values() isn't.
................
  r55864 | georg.brandl | 2007-06-10 15:29:40 -0700 (Sun, 10 Jun 2007) | 2 lines

  PEP 3127: new octal literals, binary literals.
................
  r55865 | georg.brandl | 2007-06-10 15:31:37 -0700 (Sun, 10 Jun 2007) | 2 lines

  Some octal literal fixes in Tools.
................
  r55866 | georg.brandl | 2007-06-10 15:37:43 -0700 (Sun, 10 Jun 2007) | 2 lines

  Tokenizer changes for PEP 3127.
................
  r55867 | georg.brandl | 2007-06-10 15:37:55 -0700 (Sun, 10 Jun 2007) | 2 lines

  Some docs for PEP 3127.
................
  r55868 | georg.brandl | 2007-06-10 15:44:39 -0700 (Sun, 10 Jun 2007) | 2 lines

  Missed a place in intobject.c. Is that used anymore anyway?
................
  r55871 | neal.norwitz | 2007-06-10 18:31:49 -0700 (Sun, 10 Jun 2007) | 182 lines

  Merged revisions 55729-55868 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r55731 | neal.norwitz | 2007-06-01 00:29:12 -0700 (Fri, 01 Jun 2007) | 7 lines

    SF 1668596/1720897: distutils now copies data files
    even if package_dir is empty.

    This needs to be backported.  I'm too tired tonight.  It would be great
    if someone backports this if the buildbots are ok with it.  Otherwise,
    I will try to get to it tomorrow.
  ........
    r55732 | georg.brandl | 2007-06-01 04:33:33 -0700 (Fri, 01 Jun 2007) | 2 lines

    Bug #1722484: remove docstrings again when running with -OO.
  ........
    r55735 | georg.brandl | 2007-06-01 12:20:27 -0700 (Fri, 01 Jun 2007) | 2 lines

    Fix wrong issue number.
  ........
    r55739 | brett.cannon | 2007-06-01 20:02:29 -0700 (Fri, 01 Jun 2007) | 3 lines

    Have configure raise an error when building on AtheOS.  Code specific to AtheOS
    will be removed in Python 2.7.
  ........
    r55746 | neal.norwitz | 2007-06-02 11:33:53 -0700 (Sat, 02 Jun 2007) | 1 line

    Update expected birthday of 2.6
  ........
    r55751 | neal.norwitz | 2007-06-03 13:32:50 -0700 (Sun, 03 Jun 2007) | 10 lines

    Backout the original 'fix' to 1721309 which had no effect.
    Different versions of Berkeley DB handle this differently.
    The comments and bug report should have the details.  Memory is allocated
    in 4.4 (and presumably earlier), but not in 4.5.  Thus
    4.5 has the free error, but not earlier versions.

    Mostly update comments, plus make the free conditional.

    This fix was already applied to the 2.5 branch.
  ........
    r55752 | brett.cannon | 2007-06-03 16:13:41 -0700 (Sun, 03 Jun 2007) | 6 lines

    Make _strptime.TimeRE().pattern() use ``\s+`` for matching whitespace instead
    of ``\s*``.  This prevents patterns from "stealing" bits from other patterns in
    order to make a match work.

    Closes bug #1730389.  Will be backported.
  ........
    r55766 | hyeshik.chang | 2007-06-05 11:16:52 -0700 (Tue, 05 Jun 2007) | 4 lines

    Fix build on FreeBSD.  Bluetooth HCI API in FreeBSD is quite different
    from Linux's.  Just fix the build for now but the code doesn't
    support the complete capability of HCI on FreeBSD yet.
  ........
    r55770 | hyeshik.chang | 2007-06-05 11:58:51 -0700 (Tue, 05 Jun 2007) | 4 lines

    Bug #1728403: Fix a bug that CJKCodecs StreamReader hangs when it
    reads a file that ends with incomplete sequence and sizehint argument
    for .read() is specified.
  ........
    r55775 | hyeshik.chang | 2007-06-05 12:28:15 -0700 (Tue, 05 Jun 2007) | 2 lines

    Fix for Windows: close a temporary file before trying to delete it.
  ........
    r55783 | guido.van.rossum | 2007-06-05 14:24:47 -0700 (Tue, 05 Jun 2007) | 2 lines

    Patch by Tim Delany (missing DECREF). SF #1731330.
  ........
    r55785 | collin.winter | 2007-06-05 17:17:35 -0700 (Tue, 05 Jun 2007) | 3 lines

    Patch #1731049: make threading.py use a proper "raise" when checking internal state, rather than assert statements (which get stripped out by -O).
  ........
    r55786 | facundo.batista | 2007-06-06 08:13:37 -0700 (Wed, 06 Jun 2007) | 4 lines

    FTP.ntransfercmd method now uses create_connection when passive,
    using the timeout received in connection time.
  ........
    r55792 | facundo.batista | 2007-06-06 10:15:23 -0700 (Wed, 06 Jun 2007) | 7 lines

    Added an optional timeout parameter to function urllib2.urlopen,
    with tests in test_urllib2net.py (must have network resource
    enabled to execute them). Also modified test_urllib2.py because
    testing mock classes must take it into acount. Docs are also
    updated.
  ........
    r55793 | thomas.heller | 2007-06-06 13:19:19 -0700 (Wed, 06 Jun 2007) | 1 line

    Build _ctypes and _ctypes_test in the ReleaseAMD64 configuration.
  ........
    r55802 | georg.brandl | 2007-06-07 06:23:24 -0700 (Thu, 07 Jun 2007) | 3 lines

    Disallow function calls like foo(None=1).
    Backport from py3k rev. 55708 by Guido.
  ........
    r55804 | georg.brandl | 2007-06-07 06:30:24 -0700 (Thu, 07 Jun 2007) | 2 lines

    Make reindent.py executable.
  ........
    r55805 | georg.brandl | 2007-06-07 06:34:10 -0700 (Thu, 07 Jun 2007) | 2 lines

    Patch #1667860: Fix UnboundLocalError in urllib2.
  ........
    r55821 | kristjan.jonsson | 2007-06-07 16:53:49 -0700 (Thu, 07 Jun 2007) | 1 line

    Fixing changes to getbuildinfo.c that broke linux builds
  ........
    r55828 | thomas.heller | 2007-06-08 09:10:27 -0700 (Fri, 08 Jun 2007) | 1 line

    Make this test work with older Python releases where struct has no 't' format character.
  ........
    r55829 | martin.v.loewis | 2007-06-08 10:29:20 -0700 (Fri, 08 Jun 2007) | 3 lines

    Bug #1733488: Fix compilation of bufferobject.c on AIX.
    Will backport to 2.5.
  ........
    r55831 | thomas.heller | 2007-06-08 11:20:09 -0700 (Fri, 08 Jun 2007) | 2 lines

    [ 1715718 ] x64 clean compile patch for _ctypes, by Kristj?n Valur
    with small modifications.
  ........
    r55832 | thomas.heller | 2007-06-08 12:01:06 -0700 (Fri, 08 Jun 2007) | 1 line

    Fix gcc warnings intruduced by passing Py_ssize_t to PyErr_Format calls.
  ........
    r55833 | thomas.heller | 2007-06-08 12:08:31 -0700 (Fri, 08 Jun 2007) | 2 lines

    Fix wrong documentation, and correct the punktuation.
    Closes [1700455].
  ........
    r55834 | thomas.heller | 2007-06-08 12:14:23 -0700 (Fri, 08 Jun 2007) | 1 line

    Fix warnings by using proper function prototype.
  ........
    r55839 | neal.norwitz | 2007-06-08 20:36:34 -0700 (Fri, 08 Jun 2007) | 7 lines

    Prevent expandtabs() on string and unicode objects from causing a segfault when
    a large width is passed on 32-bit platforms.  Found by Google.

    It would be good for people to review this especially carefully and verify
    I don't have an off by one error and there is no other way to cause overflow.
  ........
    r55841 | neal.norwitz | 2007-06-08 21:48:22 -0700 (Fri, 08 Jun 2007) | 1 line

    Use macro version of GET_SIZE to avoid Coverity warning (#150) about a possible error.
  ........
    r55842 | martin.v.loewis | 2007-06-09 00:42:52 -0700 (Sat, 09 Jun 2007) | 3 lines

    Patch #1733960: Allow T_LONGLONG to accept ints.
    Will backport to 2.5.
  ........
    r55843 | martin.v.loewis | 2007-06-09 00:58:05 -0700 (Sat, 09 Jun 2007) | 2 lines

    Fix Windows build.
  ........
    r55845 | martin.v.loewis | 2007-06-09 03:10:26 -0700 (Sat, 09 Jun 2007) | 2 lines

    Provide LLONG_MAX for S390.
  ........
    r55854 | thomas.heller | 2007-06-10 08:59:17 -0700 (Sun, 10 Jun 2007) | 4 lines

    First version of build scripts for Windows/AMD64 (no external
    components are built yet, and 'kill_python' is disabled).
  ........
    r55855 | thomas.heller | 2007-06-10 10:55:51 -0700 (Sun, 10 Jun 2007) | 3 lines

    For now, disable the _bsddb, _sqlite3, _ssl, _testcapi, _tkinter
    modules in the ReleaseAMD64 configuration because they do not compile.
  ........
    r55856 | thomas.heller | 2007-06-10 11:27:54 -0700 (Sun, 10 Jun 2007) | 1 line

    Need to set the environment variables, otherwise devenv.com is not found.
  ........
    r55860 | thomas.heller | 2007-06-10 14:01:17 -0700 (Sun, 10 Jun 2007) | 1 line

    Revert commit 55855.
  ........
................
  r55880 | neal.norwitz | 2007-06-10 22:07:36 -0700 (Sun, 10 Jun 2007) | 5 lines

  Fix the refleak counter on test_collections.  The ABC metaclass creates
  a registry which must be cleared on each run.  Otherwise, there *seem*
  to be refleaks when there really aren't any.  (The class is held within
  the registry even though it's no longer needed.)
................
  r55884 | neal.norwitz | 2007-06-10 22:46:33 -0700 (Sun, 10 Jun 2007) | 1 line

  These tests have been removed, so they are no longer needed here
................
  r55886 | georg.brandl | 2007-06-11 00:26:37 -0700 (Mon, 11 Jun 2007) | 3 lines

  Optimize access to True and False in the compiler (if True)
  and the peepholer (LOAD_NAME True).
................
  r55905 | georg.brandl | 2007-06-11 10:02:26 -0700 (Mon, 11 Jun 2007) | 5 lines

  Remove __oct__ and __hex__ and use __index__ for converting
  non-ints before formatting in a base.

  Add a bin() builtin.
................
  r55906 | georg.brandl | 2007-06-11 10:04:44 -0700 (Mon, 11 Jun 2007) | 2 lines

  int(x, 0) does not "guess".
................
  r55907 | georg.brandl | 2007-06-11 10:05:47 -0700 (Mon, 11 Jun 2007) | 2 lines

  Add a comment to explain that nb_oct and nb_hex are nonfunctional.
................
  r55908 | guido.van.rossum | 2007-06-11 10:49:18 -0700 (Mon, 11 Jun 2007) | 2 lines

  Get rid of unused imports and comment.
................
  r55910 | guido.van.rossum | 2007-06-11 13:05:17 -0700 (Mon, 11 Jun 2007) | 2 lines

  _Abstract.__new__ now requires either no arguments or __init__ overridden.
................
  r55911 | guido.van.rossum | 2007-06-11 13:07:49 -0700 (Mon, 11 Jun 2007) | 7 lines

  Move the collections ABCs to a separate file, _abcoll.py, in order to avoid
  needing to import _collections.so during the bootstrap (this will become
  apparent in the next submit of os.py).

  Add (plain and mutable) ABCs for Set, Mapping, Sequence.
................
  r55912 | guido.van.rossum | 2007-06-11 13:09:31 -0700 (Mon, 11 Jun 2007) | 2 lines

  Rewrite the _Environ class to use the new collections ABCs.
................
  r55913 | guido.van.rossum | 2007-06-11 13:59:45 -0700 (Mon, 11 Jun 2007) | 72 lines

  Merged revisions 55869-55912 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r55869 | neal.norwitz | 2007-06-10 17:42:11 -0700 (Sun, 10 Jun 2007) | 1 line

    Add Atul Varma for patch # 1667860
  ........
    r55870 | neal.norwitz | 2007-06-10 18:22:03 -0700 (Sun, 10 Jun 2007) | 1 line

    Ignore valgrind problems on Ubuntu from ld
  ........
    r55872 | neal.norwitz | 2007-06-10 18:48:46 -0700 (Sun, 10 Jun 2007) | 2 lines

    Ignore config.status.lineno which seems new (new autoconf?)
  ........
    r55873 | neal.norwitz | 2007-06-10 19:14:39 -0700 (Sun, 10 Jun 2007) | 1 line

    Prevent these tests from running on Win64 since they don\'t apply there either
  ........
    r55874 | neal.norwitz | 2007-06-10 19:16:10 -0700 (Sun, 10 Jun 2007) | 5 lines

    Fix a bug when there was a newline in the string expandtabs was called on.
    This also catches another condition that can overflow.

    Will backport.
  ........
    r55879 | neal.norwitz | 2007-06-10 21:52:37 -0700 (Sun, 10 Jun 2007) | 1 line

    Prevent hang if the port cannot be opened.
  ........
    r55881 | neal.norwitz | 2007-06-10 22:28:45 -0700 (Sun, 10 Jun 2007) | 4 lines

    Add all of the distuils modules that don't seem to have explicit tests. :-(
    Move an import in mworkscompiler so that this module can be imported on
    any platform.  Hopefully this works on all platforms.
  ........
    r55882 | neal.norwitz | 2007-06-10 22:35:10 -0700 (Sun, 10 Jun 2007) | 4 lines

    SF #1734732, lower case the module names per PEP 8.

    Will backport.
  ........
    r55885 | neal.norwitz | 2007-06-10 23:16:48 -0700 (Sun, 10 Jun 2007) | 4 lines

    Not sure why this only fails sometimes on Unix machines. Better
    to disable it and only import msvccompiler on Windows since that's
    the only place it can work anyways.
  ........
    r55887 | neal.norwitz | 2007-06-11 00:29:43 -0700 (Mon, 11 Jun 2007) | 4 lines

    Bug #1734723: Fix repr.Repr() so it doesn't ignore the maxtuple attribute.

    Will backport
  ........
    r55889 | neal.norwitz | 2007-06-11 00:36:24 -0700 (Mon, 11 Jun 2007) | 1 line

    Reflow long line
  ........
    r55896 | thomas.heller | 2007-06-11 08:58:33 -0700 (Mon, 11 Jun 2007) | 3 lines

    Use "O&" in calls to PyArg_Parse when we need a 'void*' instead of "k"
    or "K" codes.
  ........
    r55901 | facundo.batista | 2007-06-11 09:27:08 -0700 (Mon, 11 Jun 2007) | 5 lines

    Added versionchanged flag to all the methods which received
    a new optional timeout parameter, and a versionadded flag to
    the socket.create_connection function.
  ........
................
  r55914 | guido.van.rossum | 2007-06-11 14:19:50 -0700 (Mon, 11 Jun 2007) | 3 lines

  New super() implementation, for PEP 3135 (though the PEP is not yet updated
  to this design, and small tweaks may still be made later).
................
  r55923 | guido.van.rossum | 2007-06-11 21:15:24 -0700 (Mon, 11 Jun 2007) | 4 lines

  I'm guessing this module broke when Neal ripped out the types module --
  it used 'list' both as a local variable and as the built-in list type.
  Renamed the local variable since that was easier.
................
  r55924 | guido.van.rossum | 2007-06-11 21:20:05 -0700 (Mon, 11 Jun 2007) | 5 lines

  Change all occurrences of super(<thisclass>, <firstarg>) to super().
  Seems to have worked, all the tests still pass.
  Exception: test_descr and test_descrtut, which have tons of these
  and are there to test the various usages.
................
  r55939 | collin.winter | 2007-06-12 13:57:33 -0700 (Tue, 12 Jun 2007) | 1 line

  Patch #1735485: remove StandardError from the exception hierarchy.
................
  r55954 | neal.norwitz | 2007-06-12 21:56:32 -0700 (Tue, 12 Jun 2007) | 51 lines

  Merged revisions 55913-55950 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r55926 | marc-andre.lemburg | 2007-06-12 02:09:58 -0700 (Tue, 12 Jun 2007) | 3 lines

    Apply patch #1734945 to support TurboLinux as distribution.
  ........
    r55927 | marc-andre.lemburg | 2007-06-12 02:26:49 -0700 (Tue, 12 Jun 2007) | 3 lines

    Add patch #1726668: Windows Vista support.
  ........
    r55929 | thomas.heller | 2007-06-12 08:36:22 -0700 (Tue, 12 Jun 2007) | 1 line

    Checkout, but do not yet try to build, exernal sources.
  ........
    r55930 | thomas.heller | 2007-06-12 09:08:27 -0700 (Tue, 12 Jun 2007) | 6 lines

    Add bufferoverflowU.lib to the libraries needed by _ssl (is this the
    right thing to do?).

    Set the /XP64 /RETAIL build enviroment in the makefile when building
    ReleaseAMD64.
  ........
    r55931 | thomas.heller | 2007-06-12 09:23:19 -0700 (Tue, 12 Jun 2007) | 5 lines

    Revert this change, since it breaks the win32 build:

    Add bufferoverflowU.lib to the libraries needed by _ssl (is this the
    right thing to do?).
  ........
    r55934 | thomas.heller | 2007-06-12 10:28:31 -0700 (Tue, 12 Jun 2007) | 3 lines

    Specify the bufferoverflowU.lib to the makefile on the command line
    (for ReleaseAMD64 builds).
  ........
    r55937 | thomas.heller | 2007-06-12 12:02:59 -0700 (Tue, 12 Jun 2007) | 3 lines

    Add bufferoverflowU.lib to PCBuild\_bsddb.vcproj.
    Build sqlite3.dll and bsddb.
  ........
    r55938 | thomas.heller | 2007-06-12 12:56:12 -0700 (Tue, 12 Jun 2007) | 2 lines

    Don't rebuild Berkeley DB if not needed (this was committed by accident).
  ........
    r55948 | martin.v.loewis | 2007-06-12 20:42:19 -0700 (Tue, 12 Jun 2007) | 3 lines

    Provide PY_LLONG_MAX on all systems having long long.
    Will backport to 2.5.
  ........
................
  r55959 | guido.van.rossum | 2007-06-13 09:22:41 -0700 (Wed, 13 Jun 2007) | 2 lines

  Fix a compilation warning.
................

18 years agoShut up compiler warnings.
Guido van Rossum [Wed, 13 Jun 2007 16:28:25 +0000 (16:28 +0000)]
Shut up compiler warnings.

18 years agoDiscard unused function.
Guido van Rossum [Wed, 13 Jun 2007 16:27:47 +0000 (16:27 +0000)]
Discard unused function.

18 years agoMake test_tmpfile() pass. (And hence test_os.py as a whole passes.)
Guido van Rossum [Wed, 13 Jun 2007 01:55:50 +0000 (01:55 +0000)]
Make test_tmpfile() pass.  (And hence test_os.py as a whole passes.)
tmpfile() now is a binary file.

18 years agoFix bz2_test.py by removing the tests for universal newline mode.
Guido van Rossum [Wed, 13 Jun 2007 01:46:31 +0000 (01:46 +0000)]
Fix bz2_test.py by removing the tests for universal newline mode.
If you want text support, wrap a TextIOWrapper around it.
Remove references to universal newlines from the BZ2File docstring.

18 years agoMake it compile with GCC 2.96.
Guido van Rossum [Wed, 13 Jun 2007 01:04:27 +0000 (01:04 +0000)]
Make it compile with GCC 2.96.

18 years agoCheckpoint: half-fixed the bz2 module. 'U' is no longer supported.
Guido van Rossum [Wed, 13 Jun 2007 00:03:05 +0000 (00:03 +0000)]
Checkpoint: half-fixed the bz2 module.  'U' is no longer supported.

18 years agoRip out the file object's implementation.
Guido van Rossum [Tue, 12 Jun 2007 23:30:11 +0000 (23:30 +0000)]
Rip out the file object's implementation.
Fixed test_import.py while I was at it.

However, there's still a problem in import.c -- get_file() can leak a
FILE struct (not a file descriptor though).  I'm not sure how to fix
this; closing the FILE* closes the file descriptor, and that's the
wrong thing to do when there's still a Python file object keeping the
file descriptor open.  I also would rather not mess with dup(), as it
won't port to Windows.

18 years agounicode is named str now => fix type check.
Walter Dörwald [Tue, 12 Jun 2007 18:07:38 +0000 (18:07 +0000)]
unicode is named str now => fix type check.

18 years agoFix test_shlex: Use io.StringIO.
Walter Dörwald [Tue, 12 Jun 2007 17:43:43 +0000 (17:43 +0000)]
Fix test_shlex: Use io.StringIO.

18 years agoMention name of left operand, if "foo in unicode_string"
Walter Dörwald [Tue, 12 Jun 2007 16:51:31 +0000 (16:51 +0000)]
Mention name of left operand, if "foo in unicode_string"
fails.

18 years agoRip out all codecs that can't work in a unicode/bytes world:
Walter Dörwald [Tue, 12 Jun 2007 16:40:17 +0000 (16:40 +0000)]
Rip out all codecs that can't work in a unicode/bytes world:
base64, uu, zlib, rot_13, hex, quopri, bz2, string_escape.

However codecs.escape_encode() and codecs.escape_decode()
still exist, as they are used for pickling str8 objects
(so those two functions can go, when the str8 type is removed).

18 years agoMake module docstrings unicode objects.
Walter Dörwald [Tue, 12 Jun 2007 15:23:50 +0000 (15:23 +0000)]
Make module docstrings unicode objects.

18 years agoRevert 55876. Use PyUnicode_AsEncodedString instead.
Martin v. Löwis [Tue, 12 Jun 2007 05:53:00 +0000 (05:53 +0000)]
Revert 55876. Use PyUnicode_AsEncodedString instead.

18 years agoDuh. Delete the outdated comment too.
Guido van Rossum [Tue, 12 Jun 2007 00:41:35 +0000 (00:41 +0000)]
Duh.  Delete the outdated comment too.

18 years agoSeems this test is just fine. It fails because __phello__.spam
Guido van Rossum [Tue, 12 Jun 2007 00:41:02 +0000 (00:41 +0000)]
Seems this test is just fine.  It fails because __phello__.spam
doesn't exist, but that seems a separate issue.

18 years agoMinimal changes to make the "freeze" tool work again.
Guido van Rossum [Tue, 12 Jun 2007 00:28:30 +0000 (00:28 +0000)]
Minimal changes to make the "freeze" tool work again.
There are other issues left, but these were basics (e.g. keys().sort()).

18 years agoUpdate the frozen bytecode for __hello__.
Guido van Rossum [Tue, 12 Jun 2007 00:25:52 +0000 (00:25 +0000)]
Update the frozen bytecode for __hello__.

18 years agoSome quick fixes of code that was sorting dict.keys() etc.
Guido van Rossum [Tue, 12 Jun 2007 00:25:08 +0000 (00:25 +0000)]
Some quick fixes of code that was sorting dict.keys() etc.

18 years agoRemove unused code.
Walter Dörwald [Mon, 11 Jun 2007 21:48:58 +0000 (21:48 +0000)]
Remove unused code.

18 years agoSimplify various spots where: str() is called on something
Walter Dörwald [Mon, 11 Jun 2007 21:38:39 +0000 (21:38 +0000)]
Simplify various spots where: str() is called on something
that already is a string or the existence of the str class
is checked or a check is done for str twice. These all stem
from the initial unicode->str replacement.

18 years agoAdd versionadded notes to PyUnicode_FromString(),
Walter Dörwald [Mon, 11 Jun 2007 16:44:48 +0000 (16:44 +0000)]
Add versionadded notes to PyUnicode_FromString(),
PyUnicode_FromFormat() and PyUnicode_FromFormatV().

18 years agoDocument PyUnicode_FromFormat().
Walter Dörwald [Mon, 11 Jun 2007 16:43:18 +0000 (16:43 +0000)]
Document PyUnicode_FromFormat().

18 years agoAdd a format specifier %V to PyUnicode_FromFormat(), that works similar to %U,
Walter Dörwald [Mon, 11 Jun 2007 16:36:59 +0000 (16:36 +0000)]
Add a format specifier %V to PyUnicode_FromFormat(), that works similar to %U,
but requires an additional char * that will be used if the unicode object is
NULL.

Use %V in descrobject.c and classobject.c.

18 years agoFix PyErr_Format() call (missing exception class).
Walter Dörwald [Mon, 11 Jun 2007 16:12:10 +0000 (16:12 +0000)]
Fix PyErr_Format() call (missing exception class).

Remove unused variable.

18 years agoUse PyErr_Format() directly instead of
Walter Dörwald [Mon, 11 Jun 2007 16:08:41 +0000 (16:08 +0000)]
Use PyErr_Format() directly instead of
PyOS_snprintf()+PyErr_SetString().

18 years agoSimplify error formatting. Fix error message in
Walter Dörwald [Mon, 11 Jun 2007 16:06:26 +0000 (16:06 +0000)]
Simplify error formatting. Fix error message in
check_unoptimized().

18 years agoSimplify ste_repr().
Walter Dörwald [Mon, 11 Jun 2007 16:03:16 +0000 (16:03 +0000)]
Simplify ste_repr().

18 years agoSimplify error formatting and type_repr().
Walter Dörwald [Mon, 11 Jun 2007 15:47:13 +0000 (15:47 +0000)]
Simplify error formatting and type_repr().

18 years agoSimplify error formatting.
Walter Dörwald [Mon, 11 Jun 2007 15:37:20 +0000 (15:37 +0000)]
Simplify error formatting.

18 years agoSimplify error formatting (no default encoding required).
Walter Dörwald [Mon, 11 Jun 2007 15:00:18 +0000 (15:00 +0000)]
Simplify error formatting (no default encoding required).

18 years agoCheck unicode identifier directly instead of converting
Walter Dörwald [Mon, 11 Jun 2007 14:55:19 +0000 (14:55 +0000)]
Check unicode identifier directly instead of converting
it to an 8bit string first.

18 years ago__module__ is a unicode string now:
Walter Dörwald [Mon, 11 Jun 2007 14:03:45 +0000 (14:03 +0000)]
__module__ is a unicode string now:
use PyUnicode_CompareWithASCIIString() instead of
strcmp().

Simplify repr formatting.

18 years agoShort-cut lookup of utf-8 codec, to make import work
Martin v. Löwis [Mon, 11 Jun 2007 04:19:13 +0000 (04:19 +0000)]
Short-cut lookup of utf-8 codec, to make import work
on OSX.

18 years agoExpect unicode in class_name.
Martin v. Löwis [Sun, 10 Jun 2007 21:13:34 +0000 (21:13 +0000)]
Expect unicode in class_name.

18 years agoFix getclassname. Fixes test_descrtut.
Martin v. Löwis [Sun, 10 Jun 2007 21:09:40 +0000 (21:09 +0000)]
Fix getclassname. Fixes test_descrtut.

18 years agoMake identifiers str (not str8) objects throughout.
Martin v. Löwis [Sun, 10 Jun 2007 09:51:05 +0000 (09:51 +0000)]
Make identifiers str (not str8) objects throughout.
This affects the parser, various object implementations,
and all places that put identifiers into C string literals.

In testing, a number of crashes occurred as code would
fail when the recursion limit was reached (such as the
Unicode interning dictionary having key/value pairs where
key is not value). To solve these, I added an overflowed
flag, which allows for 50 more recursions after the
limit was reached and the exception was raised, and
a recursion_critical flag, which indicates that recursion
absolutely must be allowed, i.e. that a certain call
must not cause a stack overflow exception.

There are still some places where both str and str8 are
accepted as identifiers; these should eventually be
removed.

18 years agoAdapt to new exception message.
Walter Dörwald [Sat, 9 Jun 2007 16:13:23 +0000 (16:13 +0000)]
Adapt to new exception message.

Simplify formatting (use "%r" % x instead of "%s" % repr(x)).

18 years agoFix Cookie.py: Fix example in the docstring (encoded SerialCookies contain
Walter Dörwald [Fri, 8 Jun 2007 15:33:46 +0000 (15:33 +0000)]
Fix Cookie.py: Fix example in the docstring (encoded SerialCookies contain
unicode now). Fix _quote() and Morsel.set() which were using str8.translate().
As cPickle.dumps() returns bytes now value_encode() and value_decode() methods
must encode/decode (however output() might better return a bytes object).

18 years agoRename checks for test_support.have_unicode (we always
Walter Dörwald [Fri, 8 Jun 2007 14:30:53 +0000 (14:30 +0000)]
Rename checks for test_support.have_unicode (we always
have unicode support now) and either drop the tests or
merge them into the existing tests.

18 years agoFix chr() test (1000000 was accepted on a UCS4 build).
Walter Dörwald [Fri, 8 Jun 2007 10:38:38 +0000 (10:38 +0000)]
Fix chr() test (1000000 was accepted on a UCS4 build).

18 years agoMake test_socket work.
Guido van Rossum [Fri, 8 Jun 2007 00:07:57 +0000 (00:07 +0000)]
Make test_socket work.
Don't exclude test_socket from the tests to run.

18 years agoJust enoug fixes so that test_mailbox fails instead of loops forever.
Guido van Rossum [Thu, 7 Jun 2007 23:58:54 +0000 (23:58 +0000)]
Just enoug fixes so that test_mailbox fails instead of loops forever.

18 years agoAccellerate binary readline() a bit.
Guido van Rossum [Thu, 7 Jun 2007 23:45:37 +0000 (23:45 +0000)]
Accellerate binary readline() a bit.

18 years agoMerged revisions 55795-55816 via svnmerge from
Guido van Rossum [Thu, 7 Jun 2007 23:15:56 +0000 (23:15 +0000)]
Merged revisions 55795-55816 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/p3yk

........
  r55797 | neal.norwitz | 2007-06-07 00:00:57 -0700 (Thu, 07 Jun 2007) | 3 lines

  Get rid of some remnants of classic classes.  types.ClassType == type.
  Also get rid of almost all uses of the types module and use the builtin name.
........
  r55798 | neal.norwitz | 2007-06-07 00:12:36 -0700 (Thu, 07 Jun 2007) | 1 line

  Remove a use of types, verify commit hook works
........
  r55809 | guido.van.rossum | 2007-06-07 11:11:29 -0700 (Thu, 07 Jun 2007) | 2 lines

  Fix syntax error introduced by Neal in last checkin.
........

18 years agoFix pdb help command.
Alexandre Vassalotti [Thu, 7 Jun 2007 22:37:45 +0000 (22:37 +0000)]
Fix pdb help command.

18 years agoThe bufsize argument to Popen() should accept None meaning the default (0).
Guido van Rossum [Thu, 7 Jun 2007 21:56:45 +0000 (21:56 +0000)]
The bufsize argument to Popen() should accept None meaning the default (0).

18 years agoChange normalize_encodings() to avoid using .translate() or depending on
Guido van Rossum [Thu, 7 Jun 2007 21:43:46 +0000 (21:43 +0000)]
Change normalize_encodings() to avoid using .translate() or depending on
the string type.  It will always return a Unicode string.  The algoritm's
specification is unchanged.

18 years agoFix libc_ver(): libc_ver() was reading sys.executable
Walter Dörwald [Thu, 7 Jun 2007 19:26:24 +0000 (19:26 +0000)]
Fix libc_ver(): libc_ver() was reading sys.executable
in binary mode and comparing the content to strings,
which failed. Now the bytes get decoded into unicode
using latin-1 (the comparison compares ASCII strings
only anyway, and we don't want the decoding to fail).

18 years agoChange most sys attributes that were str8 objects into str objects
Walter Dörwald [Thu, 7 Jun 2007 18:41:59 +0000 (18:41 +0000)]
Change most sys attributes that were str8 objects into str objects
(executable, prefix and exec_prefix are still str8).

18 years agoDon't lie in error messages from str8.
Guido van Rossum [Thu, 7 Jun 2007 17:54:36 +0000 (17:54 +0000)]
Don't lie in error messages from str8.
In some cases we use the more neutral term string; in others we are explicit.

18 years agoFix test_str.py so that it tests the str8 class.
Walter Dörwald [Thu, 7 Jun 2007 13:52:37 +0000 (13:52 +0000)]
Fix test_str.py so that it tests the str8 class.

Fix string_tests.py::MixinStrUnicodeTest.test_bug1001011():
Test str and str8.

18 years agoRegister a dispatcher for str8. (This makes test_copy.py pass again.)
Walter Dörwald [Thu, 7 Jun 2007 13:11:04 +0000 (13:11 +0000)]
Register a dispatcher for str8. (This makes test_copy.py pass again.)

Make registeration of str dispatcher unconditional.

18 years agoFix test_deque.py: Read and write file in text mode,
Walter Dörwald [Thu, 7 Jun 2007 12:40:09 +0000 (12:40 +0000)]
Fix test_deque.py: Read and write file in text mode,
so that read() returns a unicode object, which can be
compared directly to the repr() result.

18 years agoFix tests for unicode-internal codec.
Walter Dörwald [Thu, 7 Jun 2007 11:26:16 +0000 (11:26 +0000)]
Fix tests for unicode-internal codec.

18 years agotokenizer.c: make coding markup work again.
Guido van Rossum [Thu, 7 Jun 2007 00:54:15 +0000 (00:54 +0000)]
tokenizer.c: make coding markup work again.

io.open() now takes all positional parameters (so we can conveniently
call it from C code).

test_tarfile.py no longer uses u"..." literals, but is otherwise still
badly broken.

This is a checkpoint; some more stuff now breaks.

18 years agoMerged revisions 55631-55794 via svnmerge from
Guido van Rossum [Wed, 6 Jun 2007 23:52:48 +0000 (23:52 +0000)]
Merged revisions 55631-55794 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/p3yk

................
  r55636 | neal.norwitz | 2007-05-29 00:06:39 -0700 (Tue, 29 May 2007) | 149 lines

  Merged revisions 55506-55635 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r55507 | georg.brandl | 2007-05-22 07:28:17 -0700 (Tue, 22 May 2007) | 2 lines

    Remove the "panel" module doc file which has been ignored since 1994.
  ........
    r55522 | mark.hammond | 2007-05-22 19:04:28 -0700 (Tue, 22 May 2007) | 4 lines

    Remove definition of PY_UNICODE_TYPE from pyconfig.h, allowing the
    definition in unicodeobject.h to be used, giving us the desired
    wchar_t in place of 'unsigned short'.  As discussed on python-dev.
  ........
    r55525 | neal.norwitz | 2007-05-22 23:35:32 -0700 (Tue, 22 May 2007) | 6 lines

    Add -3 option to the interpreter to warn about features that are
    deprecated and will be changed/removed in Python 3.0.

    This patch is mostly from Anthony.  I tweaked some format and added
    a little doc.
  ........
    r55527 | neal.norwitz | 2007-05-22 23:57:35 -0700 (Tue, 22 May 2007) | 1 line

    Whitespace cleanup
  ........
    r55528 | neal.norwitz | 2007-05-22 23:58:36 -0700 (Tue, 22 May 2007) | 1 line

    Add a bunch more deprecation warnings for builtins that are going away in 3.0
  ........
    r55549 | georg.brandl | 2007-05-24 09:49:29 -0700 (Thu, 24 May 2007) | 2 lines

    shlex.split() now has an optional "posix" parameter.
  ........
    r55550 | georg.brandl | 2007-05-24 10:33:33 -0700 (Thu, 24 May 2007) | 2 lines

    Fix parameter passing.
  ........
    r55555 | facundo.batista | 2007-05-24 10:50:54 -0700 (Thu, 24 May 2007) | 6 lines

    Added an optional timeout parameter to urllib.ftpwrapper, with tests
    (for this and a basic one, because there weren't any). Changed also
    NEWS, but didn't find documentation for this function, assumed it
    wasn't public...
  ........
    r55563 | facundo.batista | 2007-05-24 13:01:59 -0700 (Thu, 24 May 2007) | 4 lines

    Removed the .recv() in the test, is not necessary, and was
    causing problems that didn't have anything to do with was
    actually being tested...
  ........
    r55564 | facundo.batista | 2007-05-24 13:51:19 -0700 (Thu, 24 May 2007) | 5 lines

    Let's see if reading exactly what is written allow this live
    test to pass (now I know why there were so few tests in ftp,
    http, etc, :( ).
  ........
    r55567 | facundo.batista | 2007-05-24 20:10:28 -0700 (Thu, 24 May 2007) | 4 lines

    Trying to make the tests work in Windows and Solaris, everywhere
    else just works
  ........
    r55568 | facundo.batista | 2007-05-24 20:47:19 -0700 (Thu, 24 May 2007) | 4 lines

    Fixing stupid error, and introducing a sleep, to see if the
    other thread is awakened and finish sending data.
  ........
    r55569 | facundo.batista | 2007-05-24 21:20:22 -0700 (Thu, 24 May 2007) | 4 lines

    Commenting out the tests until find out who can test them in
    one of the problematic enviroments.
  ........
    r55570 | neal.norwitz | 2007-05-24 22:13:40 -0700 (Thu, 24 May 2007) | 2 lines

    Get test passing again by commenting out the reference to the test class.
  ........
    r55575 | vinay.sajip | 2007-05-25 00:05:59 -0700 (Fri, 25 May 2007) | 1 line

    Updated docstring for SysLogHandler (#1720726).
  ........
    r55576 | vinay.sajip | 2007-05-25 00:06:55 -0700 (Fri, 25 May 2007) | 1 line

    Updated documentation for SysLogHandler (#1720726).
  ........
    r55592 | brett.cannon | 2007-05-25 13:17:15 -0700 (Fri, 25 May 2007) | 3 lines

    Remove direct call's to file's constructor and replace them with calls to
    open() as ths is considered best practice.
  ........
    r55601 | kristjan.jonsson | 2007-05-26 12:19:50 -0700 (Sat, 26 May 2007) | 1 line

    Remove the rgbimgmodule from PCBuild8
  ........
    r55602 | kristjan.jonsson | 2007-05-26 12:31:39 -0700 (Sat, 26 May 2007) | 1 line

    Include <windows.h> after python.h, so that WINNT is properly set before windows.h is included.  Fixes warnings in PC builds.
  ........
    r55603 | walter.doerwald | 2007-05-26 14:04:13 -0700 (Sat, 26 May 2007) | 2 lines

    Fix typo.
  ........
    r55604 | peter.astrand | 2007-05-26 15:18:20 -0700 (Sat, 26 May 2007) | 1 line

    Applied patch 1669481, slightly modified: Support close_fds on Win32
  ........
    r55606 | neal.norwitz | 2007-05-26 21:08:54 -0700 (Sat, 26 May 2007) | 2 lines

    Add the new function object attribute names from py3k.
  ........
    r55617 | lars.gustaebel | 2007-05-27 12:49:30 -0700 (Sun, 27 May 2007) | 20 lines

    Added errors argument to TarFile class that allows the user to
    specify an error handling scheme for character conversion. Additional
    scheme "utf-8" in read mode. Unicode input filenames are now
    supported by design. The values of the pax_headers dictionary are now
    limited to unicode objects.

    Fixed: The prefix field is no longer used in PAX_FORMAT (in
    conformance with POSIX).
    Fixed: In read mode use a possible pax header size field.
    Fixed: Strip trailing slashes from pax header name values.
    Fixed: Give values in user-specified pax_headers precedence when
    writing.

    Added unicode tests. Added pax/regtype4 member to testtar.tar all
    possible number fields in a pax header.

    Added two chapters to the documentation about the different formats
    tarfile.py supports and how unicode issues are handled.
  ........
    r55618 | raymond.hettinger | 2007-05-27 22:23:22 -0700 (Sun, 27 May 2007) | 1 line

    Explain when groupby() issues a new group.
  ........
    r55634 | martin.v.loewis | 2007-05-28 21:01:29 -0700 (Mon, 28 May 2007) | 2 lines

    Test pre-commit hook for a link to a .py file.
  ........
    r55635 | martin.v.loewis | 2007-05-28 21:02:03 -0700 (Mon, 28 May 2007) | 2 lines

    Revert 55634.
  ........
................
  r55639 | neal.norwitz | 2007-05-29 00:58:11 -0700 (Tue, 29 May 2007) | 1 line

  Remove sys.exc_{type,exc_value,exc_traceback}
................
  r55641 | neal.norwitz | 2007-05-29 01:03:50 -0700 (Tue, 29 May 2007) | 1 line

  Missed one sys.exc_type.  I wonder why exc_{value,traceback} were already gone
................
  r55642 | neal.norwitz | 2007-05-29 01:08:33 -0700 (Tue, 29 May 2007) | 1 line

  Missed more doc for sys.exc_* attrs.
................
  r55643 | neal.norwitz | 2007-05-29 01:18:19 -0700 (Tue, 29 May 2007) | 1 line

  Remove sys.exc_clear()
................
  r55665 | guido.van.rossum | 2007-05-29 19:45:43 -0700 (Tue, 29 May 2007) | 4 lines

  Make None, True, False keywords.
  We can now also delete all the other places that explicitly forbid
  assignment to None, but I'm not going to bother right now.
................
  r55666 | guido.van.rossum | 2007-05-29 20:01:51 -0700 (Tue, 29 May 2007) | 3 lines

  Found another place that needs check for forbidden names.
  Fixed test_syntax.py accordingly (it helped me find that one).
................
  r55668 | guido.van.rossum | 2007-05-29 20:41:48 -0700 (Tue, 29 May 2007) | 2 lines

  Mark None, True, False as keywords.
................
  r55673 | neal.norwitz | 2007-05-29 23:28:25 -0700 (Tue, 29 May 2007) | 3 lines

  Get the dis module working on modules again after changing dicts
  to not return lists and also new-style classes.  Add a test.
................
  r55674 | neal.norwitz | 2007-05-29 23:35:45 -0700 (Tue, 29 May 2007) | 1 line

  Umm, it helps to add the module that the test uses
................
  r55675 | neal.norwitz | 2007-05-29 23:53:05 -0700 (Tue, 29 May 2007) | 4 lines

  Try to fix up all the other places that were assigning to True/False.
  There's at least one more problem in test.test_xmlrpc.  I have other
  changes in that file and that should be fixed soon (I hope).
................
  r55679 | neal.norwitz | 2007-05-30 00:31:55 -0700 (Wed, 30 May 2007) | 1 line

  Fix up another place that was assigning to True/False.
................
  r55688 | brett.cannon | 2007-05-30 14:19:47 -0700 (Wed, 30 May 2007) | 2 lines

  Ditch MimeWriter.
................
  r55692 | brett.cannon | 2007-05-30 14:52:00 -0700 (Wed, 30 May 2007) | 2 lines

  Remove the mimify module.
................
  r55707 | guido.van.rossum | 2007-05-31 05:08:45 -0700 (Thu, 31 May 2007) | 2 lines

  Backport the addition of show_code() to dis.py -- it's too handy.
................
  r55708 | guido.van.rossum | 2007-05-31 06:22:57 -0700 (Thu, 31 May 2007) | 7 lines

  Fix a fairly long-standing bug in the check for assignment to None (and other
  keywords, these days).  In 2.5, you could write foo(None=1) without getting
  a SyntaxError (although foo()'s definition would have to use **kwds to avoid
  getting a runtime error complaining about an unknown keyword of course).

  This ought to be backported to 2.5.2 or at least 2.6.
................
  r55724 | brett.cannon | 2007-05-31 19:32:41 -0700 (Thu, 31 May 2007) | 2 lines

  Remove the cfmfile.
................
  r55727 | neal.norwitz | 2007-05-31 22:19:44 -0700 (Thu, 31 May 2007) | 1 line

  Remove reload() builtin.
................
  r55729 | neal.norwitz | 2007-05-31 22:51:30 -0700 (Thu, 31 May 2007) | 59 lines

  Merged revisions 55636-55728 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r55637 | georg.brandl | 2007-05-29 00:16:47 -0700 (Tue, 29 May 2007) | 2 lines

    Fix rst markup.
  ........
    r55638 | neal.norwitz | 2007-05-29 00:51:39 -0700 (Tue, 29 May 2007) | 1 line

    Fix typo in doc
  ........
    r55671 | neal.norwitz | 2007-05-29 21:53:41 -0700 (Tue, 29 May 2007) | 1 line

    Fix indentation (whitespace only).
  ........
    r55676 | thomas.heller | 2007-05-29 23:58:30 -0700 (Tue, 29 May 2007) | 1 line

    Fix compiler warnings.
  ........
    r55677 | thomas.heller | 2007-05-30 00:01:25 -0700 (Wed, 30 May 2007) | 2 lines

    Correct the name of a field in the WIN32_FIND_DATAA and WIN32_FIND_DATAW structures.
    Closes bug #1726026.
  ........
    r55686 | brett.cannon | 2007-05-30 13:46:26 -0700 (Wed, 30 May 2007) | 2 lines

    Have MimeWriter raise a DeprecationWarning as per PEP 4 and its documentation.
  ........
    r55690 | brett.cannon | 2007-05-30 14:48:58 -0700 (Wed, 30 May 2007) | 3 lines

    Have mimify raise a DeprecationWarning.  The docs and PEP 4 have listed the
    module as deprecated for a while.
  ........
    r55696 | brett.cannon | 2007-05-30 15:24:28 -0700 (Wed, 30 May 2007) | 2 lines

    Have md5 raise a DeprecationWarning as per PEP 4.
  ........
    r55705 | neal.norwitz | 2007-05-30 21:14:22 -0700 (Wed, 30 May 2007) | 1 line

    Add some spaces in the example code.
  ........
    r55716 | brett.cannon | 2007-05-31 12:20:00 -0700 (Thu, 31 May 2007) | 2 lines

    Have the sha module raise a DeprecationWarning as specified in PEP 4.
  ........
    r55719 | brett.cannon | 2007-05-31 12:40:42 -0700 (Thu, 31 May 2007) | 2 lines

    Cause buildtools to raise a DeprecationWarning.
  ........
    r55721 | brett.cannon | 2007-05-31 13:01:11 -0700 (Thu, 31 May 2007) | 2 lines

    Have cfmfile raise a DeprecationWarning as per PEP 4.
  ........
    r55726 | neal.norwitz | 2007-05-31 21:56:47 -0700 (Thu, 31 May 2007) | 1 line

    Mail if there is an installation failure.
  ........
................
  r55730 | neal.norwitz | 2007-05-31 23:22:07 -0700 (Thu, 31 May 2007) | 2 lines

  Remove the code that was missed in rev 55303.
................
  r55738 | neal.norwitz | 2007-06-01 19:10:43 -0700 (Fri, 01 Jun 2007) | 1 line

  Fix doc breakage
................
  r55741 | neal.norwitz | 2007-06-02 00:41:58 -0700 (Sat, 02 Jun 2007) | 1 line

  Remove timing module (plus some remnants of other modules).
................
  r55742 | neal.norwitz | 2007-06-02 00:51:44 -0700 (Sat, 02 Jun 2007) | 1 line

  Remove posixfile module (plus some remnants of other modules).
................
  r55744 | neal.norwitz | 2007-06-02 10:18:56 -0700 (Sat, 02 Jun 2007) | 1 line

  Fix doc breakage.
................
  r55745 | neal.norwitz | 2007-06-02 11:32:16 -0700 (Sat, 02 Jun 2007) | 1 line

  Make a whatsnew 3.0 template.
................
  r55754 | neal.norwitz | 2007-06-03 23:24:18 -0700 (Sun, 03 Jun 2007) | 1 line

  SF #1730441, os._execvpe raises UnboundLocal due to new try/except semantics
................
  r55755 | neal.norwitz | 2007-06-03 23:26:00 -0700 (Sun, 03 Jun 2007) | 1 line

  Get rid of extra whitespace
................
  r55794 | guido.van.rossum | 2007-06-06 15:29:22 -0700 (Wed, 06 Jun 2007) | 3 lines

  Make this compile in GCC 2.96, which does not allow interspersing
  declarations and code.
................

18 years agoUse O_APPEND flag instead of seeking, when append
Walter Dörwald [Wed, 6 Jun 2007 16:55:38 +0000 (16:55 +0000)]
Use O_APPEND flag instead of seeking, when append
mode is specified.

18 years agoFix gzip.py: Use bytes where 8bit strings have been used formerly.
Walter Dörwald [Wed, 6 Jun 2007 16:43:59 +0000 (16:43 +0000)]
Fix gzip.py: Use bytes where 8bit strings have been used formerly.
(The filename gets written in utf-8 encoded form which probably
isn't correct.)

Fix the test.

18 years agoIf append mode is specified seek to the end of the file.
Walter Dörwald [Wed, 6 Jun 2007 16:31:14 +0000 (16:31 +0000)]
If append mode is specified seek to the end of the file.
Add a test to test_fileio.py for this.

18 years agoFix test_codeccallbacks.py: bytes has no % operator.
Walter Dörwald [Wed, 6 Jun 2007 15:17:22 +0000 (15:17 +0000)]
Fix test_codeccallbacks.py: bytes has no % operator.

18 years agoUse PyUnicode_FromFormat() directly.
Walter Dörwald [Wed, 6 Jun 2007 15:15:34 +0000 (15:15 +0000)]
Use PyUnicode_FromFormat() directly.

18 years agoChange sys.intern() so that unicode strings can be
Walter Dörwald [Tue, 5 Jun 2007 20:22:04 +0000 (20:22 +0000)]
Change sys.intern() so that unicode strings can be
interned too. Add a test for this.

18 years agoChange getdefaultencoding() and getfilesystemencoding()
Walter Dörwald [Tue, 5 Jun 2007 20:15:52 +0000 (20:15 +0000)]
Change getdefaultencoding() and getfilesystemencoding()
to return unicode strings.

18 years agoMake the name of the C variables match the Python names
Walter Dörwald [Tue, 5 Jun 2007 20:07:21 +0000 (20:07 +0000)]
Make the name of the C variables match the Python names
for chr()/chr8(). Fix function name in PyArg_ParseTuple()
call.

18 years agounichr() is named chr() now => fix name in error message.
Walter Dörwald [Tue, 5 Jun 2007 20:02:26 +0000 (20:02 +0000)]
unichr() is named chr() now => fix name in error message.

18 years agoChange int_oct() and int_hex() to return unicode objects.
Walter Dörwald [Tue, 5 Jun 2007 19:50:53 +0000 (19:50 +0000)]
Change int_oct() and int_hex() to return unicode objects.

18 years agoUse PyUnicode_FromFormat() directly in
Walter Dörwald [Tue, 5 Jun 2007 16:19:33 +0000 (16:19 +0000)]
Use PyUnicode_FromFormat() directly in
zipimporter_repr().

18 years agoChange category(), bidirectional(), east_asian_width(),
Walter Dörwald [Tue, 5 Jun 2007 16:04:09 +0000 (16:04 +0000)]
Change category(), bidirectional(), east_asian_width(),
decomposition() and name() to return unicode strings.

18 years agoSimplify os_init() implementations by using PyErr_Format()
Walter Dörwald [Tue, 5 Jun 2007 13:49:43 +0000 (13:49 +0000)]
Simplify os_init() implementations by using PyErr_Format()
directly instead of PyOS_snprintf()+PyErr_SetString().

18 years agoRemove unused variable.
Walter Dörwald [Tue, 5 Jun 2007 13:48:11 +0000 (13:48 +0000)]
Remove unused variable.

18 years agoSimplify socket_repr() by using PyUnicode_FromFormat()
Walter Dörwald [Tue, 5 Jun 2007 13:41:53 +0000 (13:41 +0000)]
Simplify socket_repr() by using PyUnicode_FromFormat()
directly. Add a test that calls socket_repr().

18 years agoPyUnicode_FromFormat() does support %02x, so use it
Walter Dörwald [Tue, 5 Jun 2007 13:29:29 +0000 (13:29 +0000)]
PyUnicode_FromFormat() does support %02x, so use it
for formatting the unicode decoding/encoding/translating
exception messages.

18 years agoChange time.strftime() to return a unicode string.
Walter Dörwald [Thu, 31 May 2007 19:23:17 +0000 (19:23 +0000)]
Change time.strftime() to return a unicode string.

Use PyMem_Malloc() to allocate temporary storage.

18 years agoChange timedelta.__str__() to return a unicode object.
Walter Dörwald [Thu, 31 May 2007 18:42:47 +0000 (18:42 +0000)]
Change timedelta.__str__() to return a unicode object.

18 years agoChange isoformat() methods to return unicode strings.
Walter Dörwald [Thu, 31 May 2007 17:50:48 +0000 (17:50 +0000)]
Change isoformat() methods to return unicode strings.

18 years agoChange format_ctime() to return unicode (i.e.
Walter Dörwald [Thu, 31 May 2007 16:19:50 +0000 (16:19 +0000)]
Change format_ctime() to return unicode (i.e.
date.ctime() and datetime.ctime() return unicode now).

18 years agoChange float.__str__() and complex.__str__() to return
Walter Dörwald [Thu, 31 May 2007 15:51:35 +0000 (15:51 +0000)]
Change float.__str__() and complex.__str__() to return
unicode objects.

18 years agoAdd support for width, precision and zeropadding to the %d, %i, %u and %x
Walter Dörwald [Thu, 31 May 2007 10:44:43 +0000 (10:44 +0000)]
Add support for width, precision and zeropadding to the %d, %i, %u and %x
format specifiers in PyUnicode_FromFormat().

Change unicode's tp_str implementation to return a unicode object.

18 years agoAdd a helper to display the various flags and components of code objects
Guido van Rossum [Wed, 30 May 2007 02:07:00 +0000 (02:07 +0000)]
Add a helper to display the various flags and components of code objects
(everything besides the actual code disassembly).

18 years agoFix test_openpty.
Guido van Rossum [Wed, 30 May 2007 00:58:53 +0000 (00:58 +0000)]
Fix test_openpty.

18 years agotypes.StringType is gone, use str directly instead.
Walter Dörwald [Tue, 29 May 2007 19:31:48 +0000 (19:31 +0000)]
types.StringType is gone, use str directly instead.

18 years agoRemove debug print.
Walter Dörwald [Tue, 29 May 2007 19:18:28 +0000 (19:18 +0000)]
Remove debug print.

18 years agoFix typo.
Walter Dörwald [Tue, 29 May 2007 19:13:29 +0000 (19:13 +0000)]
Fix typo.

18 years agoFix test_pty.py.
Walter Dörwald [Tue, 29 May 2007 18:57:42 +0000 (18:57 +0000)]
Fix test_pty.py.

18 years agoFix file test.
Walter Dörwald [Tue, 29 May 2007 18:51:25 +0000 (18:51 +0000)]
Fix file test.

18 years agoMerged revisions 55588-55630 via svnmerge from
Guido van Rossum [Tue, 29 May 2007 00:39:44 +0000 (00:39 +0000)]
Merged revisions 55588-55630 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/p3yk

........
  r55598 | neal.norwitz | 2007-05-26 10:44:02 +0800 (Sat, 26 May 2007) | 1 line

  Fix refleak on infinite recursion
........
  r55599 | neal.norwitz | 2007-05-26 10:47:45 +0800 (Sat, 26 May 2007) | 1 line

  Add news entry about overidding isinstance/issubclass (PEP 3119)
........
  r55629 | brett.cannon | 2007-05-29 08:06:59 +0800 (Tue, 29 May 2007) | 3 lines

  Delete the cstubs module.  Used as input to Modules/cgen.py to generate the gl
  module which has already been removed.
........

18 years agoGet rid of a test for repr() of a file object.
Guido van Rossum [Sun, 27 May 2007 09:21:59 +0000 (09:21 +0000)]
Get rid of a test for repr() of a file object.

18 years agoModernize. Values are now bytes.
Guido van Rossum [Sun, 27 May 2007 09:21:20 +0000 (09:21 +0000)]
Modernize.  Values are now bytes.

18 years agoMake the binhex test pass on Darwin.
Guido van Rossum [Sun, 27 May 2007 09:20:49 +0000 (09:20 +0000)]
Make the binhex test pass on Darwin.
Grr.  Do we really want to support this module?

18 years agoRemove use of types.StringType.
Guido van Rossum [Sun, 27 May 2007 09:20:14 +0000 (09:20 +0000)]
Remove use of types.StringType.

18 years agoUse input(), not our own fake raw input (in one place).
Guido van Rossum [Sun, 27 May 2007 09:19:52 +0000 (09:19 +0000)]
Use input(), not our own fake raw input (in one place).

18 years agoMake struct tests pass.
Guido van Rossum [Sun, 27 May 2007 09:19:04 +0000 (09:19 +0000)]
Make struct tests pass.

18 years agoMake xmlrpclib fail less (test_sundry passes).
Guido van Rossum [Sun, 27 May 2007 09:17:48 +0000 (09:17 +0000)]
Make xmlrpclib fail less (test_sundry passes).