]> granicus.if.org Git - python/log
python
15 years agoBlocked revisions 70011,70016 via svnmerge
Benjamin Peterson [Fri, 27 Feb 2009 22:29:33 +0000 (22:29 +0000)]
Blocked revisions 70011,70016 via svnmerge

........
  r70011 | brett.cannon | 2009-02-26 21:38:28 -0600 (Thu, 26 Feb 2009) | 5 lines

  Fix a bug where code was trying to index an int. Left over from the situation
  from using str.rpartition to str.rindex.

  Closes Issue5213.
........
  r70016 | raymond.hettinger | 2009-02-27 02:09:47 -0600 (Fri, 27 Feb 2009) | 1 line

  Give mapping views a usable repr.
........

15 years agoanother instance of #804543: use strdup() when saving the result of setlocale() becau...
Georg Brandl [Fri, 27 Feb 2009 17:52:38 +0000 (17:52 +0000)]
another instance of #804543: use strdup() when saving the result of setlocale() because it could be overwritten by subsequent setlocale()s.

15 years ago#5360: replace PyObject_HEAD_INIT by PyVarObject_HEAD_INIT.
Georg Brandl [Fri, 27 Feb 2009 17:11:23 +0000 (17:11 +0000)]
#5360: replace PyObject_HEAD_INIT by PyVarObject_HEAD_INIT.

15 years ago#5360: remove RO which has been kicked from 3k.
Georg Brandl [Fri, 27 Feb 2009 17:03:38 +0000 (17:03 +0000)]
#5360: remove RO which has been kicked from 3k.

15 years ago#5357: fix incomprehensible paragraph in urlopen() doc.
Georg Brandl [Fri, 27 Feb 2009 16:46:46 +0000 (16:46 +0000)]
#5357: fix incomprehensible paragraph in urlopen() doc.

15 years agoMerged revisions 70017 via svnmerge from
Tarek Ziadé [Fri, 27 Feb 2009 12:58:56 +0000 (12:58 +0000)]
Merged revisions 70017 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70017 | tarek.ziade | 2009-02-27 13:53:34 +0100 (Fri, 27 Feb 2009) | 1 line

  Issue #5052: make Distutils compatible with 2.3 again.
........

15 years agoGive mapping views a usable repr.
Raymond Hettinger [Fri, 27 Feb 2009 07:47:32 +0000 (07:47 +0000)]
Give mapping views a usable repr.

15 years agoMerged revisions 70007 via svnmerge from
Tarek Ziadé [Fri, 27 Feb 2009 02:22:25 +0000 (02:22 +0000)]
Merged revisions 70007 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70007 | tarek.ziade | 2009-02-27 03:14:35 +0100 (Fri, 27 Feb 2009) | 1 line

  more info on long_description
........

15 years agoMerged revisions 70003 via svnmerge from
Tarek Ziadé [Thu, 26 Feb 2009 23:47:00 +0000 (23:47 +0000)]
Merged revisions 70003 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70003 | tarek.ziade | 2009-02-27 00:44:00 +0100 (Fri, 27 Feb 2009) | 1 line

  removed unused import
........

15 years agoBlocked revisions 70000 via svnmerge
Benjamin Peterson [Thu, 26 Feb 2009 19:17:12 +0000 (19:17 +0000)]
Blocked revisions 70000 via svnmerge

........
  r70000 | benjamin.peterson | 2009-02-26 13:07:18 -0600 (Thu, 26 Feb 2009) | 1 line

  remove deprecated symtable.Symbol methods
........

15 years agoMerged revisions 69811,69947 via svnmerge from
Benjamin Peterson [Thu, 26 Feb 2009 18:55:48 +0000 (18:55 +0000)]
Merged revisions 69811,69947 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69811 | collin.winter | 2009-02-20 13:30:41 -0600 (Fri, 20 Feb 2009) | 2 lines

  Issue 5176: special-case string formatting in BINARY_MODULO implementation. This shows a modest (1-3%) speed-up in templating systems, for example.
........
  r69947 | jeffrey.yasskin | 2009-02-24 16:48:34 -0600 (Tue, 24 Feb 2009) | 3 lines

  Tools/scripts/analyze_dxp.py, a module with some helper functions to
  analyze the output of sys.getdxp().
........

15 years agoBlocked revisions 69994 via svnmerge
Benjamin Peterson [Thu, 26 Feb 2009 18:39:03 +0000 (18:39 +0000)]
Blocked revisions 69994 via svnmerge

........
  r69994 | georg.brandl | 2009-02-26 11:36:26 -0600 (Thu, 26 Feb 2009) | 1 line

  Document that setting sys.py3kwarning wont do anything.
........

15 years agoMerged revisions 69803-69805,69840,69901,69905,69907,69924,69927,69987 via svnmerge...
Benjamin Peterson [Thu, 26 Feb 2009 03:38:59 +0000 (03:38 +0000)]
Merged revisions 69803-69805,69840,69901,69905,69907,69924,69927,69987 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69803 | georg.brandl | 2009-02-20 01:48:21 -0600 (Fri, 20 Feb 2009) | 1 line

  #5327: fix a broken link by joining it.
........
  r69804 | georg.brandl | 2009-02-20 02:22:21 -0600 (Fri, 20 Feb 2009) | 1 line

  At least separate imports from other statements.
........
  r69805 | georg.brandl | 2009-02-20 02:45:47 -0600 (Fri, 20 Feb 2009) | 2 lines

  Fix punctuation.
........
  r69840 | georg.brandl | 2009-02-21 13:09:40 -0600 (Sat, 21 Feb 2009) | 1 line

  #5338, #5339: two types in the API manual.
........
  r69901 | georg.brandl | 2009-02-23 05:24:46 -0600 (Mon, 23 Feb 2009) | 2 lines

  #5349: C++ pure virtuals can also have an implementation.
........
  r69905 | georg.brandl | 2009-02-23 09:51:27 -0600 (Mon, 23 Feb 2009) | 2 lines

  #5352: str.count() counts non-overlapping instances.
........
  r69907 | georg.brandl | 2009-02-23 12:33:48 -0600 (Mon, 23 Feb 2009) | 1 line

  Fix grammar.
........
  r69924 | benjamin.peterson | 2009-02-23 20:45:35 -0600 (Mon, 23 Feb 2009) | 1 line

  update README on running tests
........
  r69927 | neil.schemenauer | 2009-02-23 22:23:25 -0600 (Mon, 23 Feb 2009) | 1 line

  Fix call to os.waitpid, it does not take keyword args.
........
  r69987 | benjamin.peterson | 2009-02-25 18:30:11 -0600 (Wed, 25 Feb 2009) | 1 line

  fix str.format()'s first arg #5371
........

15 years agoBlocked revisions 69937,69946,69952-69953,69955,69959,69981,69983 via svnmerge
Benjamin Peterson [Thu, 26 Feb 2009 02:44:26 +0000 (02:44 +0000)]
Blocked revisions 69937,69946,69952-69953,69955,69959,69981,69983 via svnmerge

........
  r69937 | raymond.hettinger | 2009-02-24 06:23:23 -0600 (Tue, 24 Feb 2009) | 3 lines

  Backport 69934:  Register xrange() as a Sequence.
........
  r69946 | brett.cannon | 2009-02-24 16:01:02 -0600 (Tue, 24 Feb 2009) | 2 lines

  Expand upon test_site.test_s_option to try to debug its failure.
........
  r69952 | raymond.hettinger | 2009-02-24 18:37:57 -0600 (Tue, 24 Feb 2009) | 1 line

  Sync-up py3.1 doc updates for super().
........
  r69953 | raymond.hettinger | 2009-02-24 18:39:47 -0600 (Tue, 24 Feb 2009) | 1 line

  Restore Py2.x version of sample call to super().
........
  r69955 | raymond.hettinger | 2009-02-24 18:52:37 -0600 (Tue, 24 Feb 2009) | 1 line

  More markup and spelling fixes.
........
  r69959 | raymond.hettinger | 2009-02-24 19:06:52 -0600 (Tue, 24 Feb 2009) | 1 line

  Remove reference to zero argument form of super() in 2.x docs.
........
  r69981 | raymond.hettinger | 2009-02-25 16:48:24 -0600 (Wed, 25 Feb 2009) | 1 line

  Clarify Counter() docs.
........
  r69983 | raymond.hettinger | 2009-02-25 18:05:24 -0600 (Wed, 25 Feb 2009) | 1 line

  Fix typo.
........

15 years agoFix typo.
Raymond Hettinger [Thu, 26 Feb 2009 00:27:18 +0000 (00:27 +0000)]
Fix typo.

15 years agoSync-up 3.1 docs with 2.7 for collections.Counter().
Raymond Hettinger [Wed, 25 Feb 2009 22:51:40 +0000 (22:51 +0000)]
Sync-up 3.1 docs with 2.7 for collections.Counter().

15 years agoMerged revisions 69976 via svnmerge from
Tarek Ziadé [Wed, 25 Feb 2009 22:31:38 +0000 (22:31 +0000)]
Merged revisions 69976 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69976 | tarek.ziade | 2009-02-25 23:29:27 +0100 (Wed, 25 Feb 2009) | 1 line

  Fixed #5316 : test failure in test_site
........

15 years agoMerged revisions 69974 via svnmerge from
Mark Dickinson [Wed, 25 Feb 2009 20:33:49 +0000 (20:33 +0000)]
Merged revisions 69974 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69974 | mark.dickinson | 2009-02-25 20:29:50 +0000 (Wed, 25 Feb 2009) | 3 lines

  Replace long with twodigits, to avoid depending
  on sizeof(digit) < sizeof(long)
........

15 years agohttp://bugs.python.org/issue4715
Jeffrey Yasskin [Wed, 25 Feb 2009 02:25:04 +0000 (02:25 +0000)]
http://bugs.python.org/issue4715

This patch by Antoine Pitrou optimizes the bytecode for conditional branches by
merging the following "POP_TOP" instruction into the conditional jump.  For
example, the list comprehension "[x for x in l if not x]" produced the
following bytecode:

  1           0 BUILD_LIST               0
              3 LOAD_FAST                0 (.0)
        >>    6 FOR_ITER                23 (to 32)
              9 STORE_FAST               1 (x)
             12 LOAD_FAST                1 (x)
             15 JUMP_IF_TRUE            10 (to 28)
             18 POP_TOP
             19 LOAD_FAST                1 (x)
             22 LIST_APPEND              2
             25 JUMP_ABSOLUTE            6
        >>   28 POP_TOP
             29 JUMP_ABSOLUTE            6
        >>   32 RETURN_VALUE

but after the patch it produces the following bytecode:

  1           0 BUILD_LIST               0
              3 LOAD_FAST                0 (.0)
        >>    6 FOR_ITER                18 (to 27)
              9 STORE_FAST               1 (x)
             12 LOAD_FAST                1 (x)
             15 POP_JUMP_IF_TRUE         6
             18 LOAD_FAST                1 (x)
             21 LIST_APPEND              2
             24 JUMP_ABSOLUTE            6
        >>   27 RETURN_VALUE

Notice that not only the code is shorter, but the conditional jump
(POP_JUMP_IF_TRUE) jumps right to the start of the loop instead of going through
the JUMP_ABSOLUTE at the end. "continue" statements are helped
similarly.

Furthermore, the old jump opcodes (JUMP_IF_FALSE, JUMP_IF_TRUE) have been
replaced by two new opcodes:
- JUMP_IF_TRUE_OR_POP, which jumps if true and pops otherwise
- JUMP_IF_FALSE_OR_POP, which jumps if false and pops otherwise

15 years agoMore markup and spelling fixes.
Raymond Hettinger [Wed, 25 Feb 2009 00:58:47 +0000 (00:58 +0000)]
More markup and spelling fixes.

15 years agoTweak markup, grammar, and punctuation.
Raymond Hettinger [Wed, 25 Feb 2009 00:32:51 +0000 (00:32 +0000)]
Tweak markup, grammar, and punctuation.

15 years agoRevert unintended part of r69948. Pydoc was not supposed to change.
Raymond Hettinger [Tue, 24 Feb 2009 23:41:47 +0000 (23:41 +0000)]
Revert unintended part of r69948.  Pydoc was not supposed to change.

15 years agoRefine docs for super() noting that sibling classes can
Raymond Hettinger [Tue, 24 Feb 2009 23:30:43 +0000 (23:30 +0000)]
Refine docs for super() noting that sibling classes can
be called, not just parents.  Add a comparison to getattr()
which has the same search order but also includes the type
itself.

15 years agoUse ABCs to validate documented restriction to Sets or Sequences.
Raymond Hettinger [Tue, 24 Feb 2009 11:27:15 +0000 (11:27 +0000)]
Use ABCs to validate documented restriction to Sets or Sequences.

15 years agorange() should have been registered as a Sequence.
Raymond Hettinger [Tue, 24 Feb 2009 11:25:35 +0000 (11:25 +0000)]
range() should have been registered as a Sequence.
Needs to be backported to 2.6, 2.7, and 3.0.

15 years agoFix-up random docs. Jumpahead was removed long ago. Other minor corrections.
Raymond Hettinger [Tue, 24 Feb 2009 10:57:02 +0000 (10:57 +0000)]
Fix-up random docs.  Jumpahead was removed long ago.  Other minor corrections.

15 years agoBlocked revisions 69870-69871,69908 via svnmerge
Benjamin Peterson [Tue, 24 Feb 2009 03:16:28 +0000 (03:16 +0000)]
Blocked revisions 69870-69871,69908 via svnmerge

........
  r69870 | antoine.pitrou | 2009-02-22 11:25:52 -0600 (Sun, 22 Feb 2009) | 3 lines

  Try to make sense of the test_site buildbot failures
........
  r69871 | antoine.pitrou | 2009-02-22 12:20:46 -0600 (Sun, 22 Feb 2009) | 3 lines

  Revert debugging statements, culprit is possibly test_distutils (see #5316)
........
  r69908 | raymond.hettinger | 2009-02-23 13:32:55 -0600 (Mon, 23 Feb 2009) | 1 line

  Update itertools recipes to use next().
........

15 years agoUpdate itertools recipes to use next().
Raymond Hettinger [Mon, 23 Feb 2009 19:38:09 +0000 (19:38 +0000)]
Update itertools recipes to use next().

15 years agoMerged revisions 69902 via svnmerge from
Tarek Ziadé [Mon, 23 Feb 2009 12:47:55 +0000 (12:47 +0000)]
Merged revisions 69902 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69902 | tarek.ziade | 2009-02-23 13:41:29 +0100 (Mon, 23 Feb 2009) | 1 line

  more test coverage
........

15 years agoBlocked revisions 69896 via svnmerge
Georg Brandl [Mon, 23 Feb 2009 10:25:20 +0000 (10:25 +0000)]
Blocked revisions 69896 via svnmerge

........
  r69896 | georg.brandl | 2009-02-23 11:24:23 +0100 (Mo, 23 Feb 2009) | 1 line

  #5348: format() converts all kinds of values.
........

15 years ago#5348: format() converts all kinds of values.
Georg Brandl [Mon, 23 Feb 2009 10:24:05 +0000 (10:24 +0000)]
#5348: format() converts all kinds of values.

15 years ago.pythonrc.py is no more
Benjamin Peterson [Mon, 23 Feb 2009 03:38:43 +0000 (03:38 +0000)]
.pythonrc.py is no more

15 years agoMerged revisions 69889 via svnmerge from
Matthias Klose [Sun, 22 Feb 2009 23:18:38 +0000 (23:18 +0000)]
Merged revisions 69889 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69889 | matthias.klose | 2009-02-23 00:14:26 +0100 (Mo, 23 Feb 2009) | 2 lines

  - Link the shared python library with $(MODLIBS).
........

15 years agoMerged revisions 69881 via svnmerge from
Tarek Ziadé [Sun, 22 Feb 2009 20:20:59 +0000 (20:20 +0000)]
Merged revisions 69881 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69881 | tarek.ziade | 2009-02-22 21:15:41 +0100 (Sun, 22 Feb 2009) | 1 line

  Removing unused __main__ sections
........

15 years agoBlocked revisions 69878 via svnmerge
Tarek Ziadé [Sun, 22 Feb 2009 20:14:01 +0000 (20:14 +0000)]
Blocked revisions 69878 via svnmerge

........
  r69878 | tarek.ziade | 2009-02-22 21:11:46 +0100 (Sun, 22 Feb 2009) | 1 line

  removing map and lambda usage, so the test is similar to py3k's branch one
........

15 years agoMerged revisions 69874 via svnmerge from
Tarek Ziadé [Sun, 22 Feb 2009 20:05:16 +0000 (20:05 +0000)]
Merged revisions 69874 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69874 | tarek.ziade | 2009-02-22 20:58:12 +0100 (Sun, 22 Feb 2009) | 1 line

  moved distutils.text_file tests into a real unittest class
........

15 years ago- Modules/Setup.dist: Mention _heapq
Matthias Klose [Sun, 22 Feb 2009 12:57:58 +0000 (12:57 +0000)]
- Modules/Setup.dist: Mention _heapq

15 years agoMerged revisions 69861 via svnmerge from
Tarek Ziadé [Sun, 22 Feb 2009 00:10:58 +0000 (00:10 +0000)]
Merged revisions 69861 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69861 | tarek.ziade | 2009-02-22 01:07:45 +0100 (Sun, 22 Feb 2009) | 1 line

  using versionchanged instead of versionadded for distutils doc on sdist default files
........

15 years agoIn Py3.x, a list comprehension is now faster than list(map(itemgetter(0), iterable)).
Raymond Hettinger [Sat, 21 Feb 2009 23:20:57 +0000 (23:20 +0000)]
In Py3.x, a list comprehension is now faster than list(map(itemgetter(0), iterable)).

15 years agoMerged revisions 69855 via svnmerge from
Benjamin Peterson [Sat, 21 Feb 2009 23:14:55 +0000 (23:14 +0000)]
Merged revisions 69855 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69855 | benjamin.peterson | 2009-02-21 17:09:33 -0600 (Sat, 21 Feb 2009) | 1 line

  fix compiler warnings
........

15 years agoRelocate source_mtime in importlib to PyPycLoader.
Brett Cannon [Sat, 21 Feb 2009 23:12:24 +0000 (23:12 +0000)]
Relocate source_mtime in importlib to PyPycLoader.

15 years agoBlocked revisions 69837-69838 via svnmerge
Benjamin Peterson [Sat, 21 Feb 2009 22:39:38 +0000 (22:39 +0000)]
Blocked revisions 69837-69838 via svnmerge

........
  r69837 | raymond.hettinger | 2009-02-21 01:17:22 -0600 (Sat, 21 Feb 2009) | 4 lines

  Fix keyword arguments for itertools.count().
  Step arg without a start arg was ignored.
........
  r69838 | raymond.hettinger | 2009-02-21 02:58:42 -0600 (Sat, 21 Feb 2009) | 1 line

  Speedup and simplify negative counter using count's new step argument.
........

15 years agoPort r69837: Fix keyword arguments for itertools.count(). Step arg without a start...
Raymond Hettinger [Sat, 21 Feb 2009 22:30:12 +0000 (22:30 +0000)]
Port r69837: Fix keyword arguments for itertools.count(). Step arg without a start arg was ignored.

15 years agoPort r69838: Speedup and simplify negative counter using count's new step argument.
Raymond Hettinger [Sat, 21 Feb 2009 22:10:18 +0000 (22:10 +0000)]
Port r69838:  Speedup and simplify negative counter using count's new step argument.

15 years agoMerged revisions 69846 via svnmerge from
Mark Dickinson [Sat, 21 Feb 2009 20:59:32 +0000 (20:59 +0000)]
Merged revisions 69846 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69846 | mark.dickinson | 2009-02-21 20:27:01 +0000 (Sat, 21 Feb 2009) | 2 lines

  Issue #5341: Fix a variety of spelling errors.
........

15 years agoRefactor source and bytecode file loaders in importlib so that there
Brett Cannon [Sat, 21 Feb 2009 05:41:15 +0000 (05:41 +0000)]
Refactor source and bytecode file loaders in importlib so that there
are source-only and source/bytecode loaders.

15 years agoTweak the source/bytecode loader from importlib to use more of the PEP 302
Brett Cannon [Sat, 21 Feb 2009 03:53:06 +0000 (03:53 +0000)]
Tweak the source/bytecode loader from importlib to use more of the PEP 302
protocol API.

15 years agoSeparate out finder for source and source/bytecode.
Brett Cannon [Sat, 21 Feb 2009 03:31:35 +0000 (03:31 +0000)]
Separate out finder for source and source/bytecode.

15 years agoDo some cleanup in importlib:
Brett Cannon [Sat, 21 Feb 2009 03:15:37 +0000 (03:15 +0000)]
Do some cleanup in importlib:

+ Ditch using arguments to super().
+ Ditch subclassing from object directly.
+ Move directory check out of chaining path hook to file path hook/finder.
+ Rename some classes to better reflect they are finders, not importers.

15 years agoAdd some notes about importlib and some API exposure cleanup.
Brett Cannon [Sat, 21 Feb 2009 03:12:17 +0000 (03:12 +0000)]
Add some notes about importlib and some API exposure cleanup.

15 years agoMinor NOTES changes for importlib.
Brett Cannon [Sat, 21 Feb 2009 02:51:12 +0000 (02:51 +0000)]
Minor NOTES changes for importlib.

15 years agoMore typos in Lib/turtle.py
Mark Dickinson [Fri, 20 Feb 2009 20:53:56 +0000 (20:53 +0000)]
More typos in Lib/turtle.py

15 years agoMerged revisions 69816 via svnmerge from
Mark Dickinson [Fri, 20 Feb 2009 20:50:21 +0000 (20:50 +0000)]
Merged revisions 69816 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69816 | mark.dickinson | 2009-02-20 20:42:53 +0000 (Fri, 20 Feb 2009) | 2 lines

  Issue #5295: Typos in turtle.py
........

15 years agoMerged revisions 69806 via svnmerge from
Eric Smith [Fri, 20 Feb 2009 14:25:03 +0000 (14:25 +0000)]
Merged revisions 69806 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69806 | eric.smith | 2009-02-20 09:02:36 -0500 (Fri, 20 Feb 2009) | 1 line

  Issue #5247: Improve error message when unknown format codes are used when using str.format() with str, int, and float arguments.
........

15 years agoMerged revisions 69415,69591,69593 via svnmerge from
Benjamin Peterson [Fri, 20 Feb 2009 04:09:19 +0000 (04:09 +0000)]
Merged revisions 69415,69591,69593 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69415 | benjamin.peterson | 2009-02-07 13:08:22 -0600 (Sat, 07 Feb 2009) | 1 line

  make destinsrc private
........
  r69591 | martin.v.loewis | 2009-02-13 14:26:16 -0600 (Fri, 13 Feb 2009) | 1 line

  Update Tix build procedure.
........
  r69593 | martin.v.loewis | 2009-02-13 14:51:48 -0600 (Fri, 13 Feb 2009) | 1 line

  Add optional code signing after merging.
........

15 years agoMerged revisions 69769,69776 via svnmerge from
Benjamin Peterson [Fri, 20 Feb 2009 04:02:38 +0000 (04:02 +0000)]
Merged revisions 69769,69776 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69769 | georg.brandl | 2009-02-19 02:30:06 -0600 (Thu, 19 Feb 2009) | 1 line

  #5310, #3558: fix operator precedence table.
........
  r69776 | georg.brandl | 2009-02-19 10:34:51 -0600 (Thu, 19 Feb 2009) | 2 lines

  #5317: update IronPython URL.
........

15 years agoBlocked revisions 69268,69516,69757,69761,69765,69770,69772,69777,69795 via svnmerge
Benjamin Peterson [Fri, 20 Feb 2009 03:40:57 +0000 (03:40 +0000)]
Blocked revisions 69268,69516,69757,69761,69765,69770,69772,69777,69795 via svnmerge

........
  r69268 | kristjan.jonsson | 2009-02-04 04:05:25 -0600 (Wed, 04 Feb 2009) | 1 line

  issue 4804:  Provide checks for the format string of strftime, and for the "mode" string of fopen on Windows.  These strings are user provided from python and so we can avoid invoking the C runtime invalid parameter handler by first checking that they are valid.
........
  r69516 | hirokazu.yamamoto | 2009-02-10 22:13:06 -0600 (Tue, 10 Feb 2009) | 2 lines

  Issue #5204: Define _PyVerify_fd on VC6 to make
  test_fdopen (test_os.py) pass.
........
  r69757 | raymond.hettinger | 2009-02-18 23:34:35 -0600 (Wed, 18 Feb 2009) | 1 line

  Add some cross-references to the docs.  Simplify the python code equivalent for izip().  Supply an optional argument for the nth() recipe.
........
  r69761 | raymond.hettinger | 2009-02-18 23:51:41 -0600 (Wed, 18 Feb 2009) | 1 line

  Add an example for math.fsum() and elaborate on the accurary note.
........
  r69765 | raymond.hettinger | 2009-02-19 00:55:03 -0600 (Thu, 19 Feb 2009) | 1 line

  Add links to helpful external resources.
........
  r69770 | raymond.hettinger | 2009-02-19 03:50:24 -0600 (Thu, 19 Feb 2009) | 1 line

  Inline coefficients in gamma().  Add reflection formula.  Add comments.
........
  r69772 | vinay.sajip | 2009-02-19 06:31:32 -0600 (Thu, 19 Feb 2009) | 1 line

  #5287: Add exception handling around findCaller() call to help out IronPython.
........
  r69777 | jeroen.ruigrok | 2009-02-19 12:52:21 -0600 (Thu, 19 Feb 2009) | 3 lines

  Since we recommend one module per import line, reflect this also in the
  documentation.
........
  r69795 | benjamin.peterson | 2009-02-19 21:31:23 -0600 (Thu, 19 Feb 2009) | 1 line

  revert r69777 since all the experts agree that extra import lines distract from the code
........

15 years agofix None errno #5312
Benjamin Peterson [Fri, 20 Feb 2009 03:19:25 +0000 (03:19 +0000)]
fix None errno #5312

15 years ago#5306: Fix compilation on Windows by properly merging change 69495.
Amaury Forgeot d'Arc [Thu, 19 Feb 2009 23:23:47 +0000 (23:23 +0000)]
#5306: Fix compilation on Windows by properly merging change 69495.
+ fixed an obvious merge glitch in a windows-only test.

Patch by Hirokazu Yamamoto.

I added a _PyVerify_fd() call to os.device_encoding() (new in python 3.0)
which also uses a raw file descriptor.

15 years ago#5287: Add exception handling around findCaller() call to help out IronPython.
Vinay Sajip [Thu, 19 Feb 2009 12:36:11 +0000 (12:36 +0000)]
#5287: Add exception handling around findCaller() call to help out IronPython.

15 years agoInline coefficients in gamma(). Add reflection formula. Add comments.
Raymond Hettinger [Thu, 19 Feb 2009 09:53:18 +0000 (09:53 +0000)]
Inline coefficients in gamma().  Add reflection formula.  Add comments.

15 years agoRegenerate with autoconf 2.61.
Martin v. Löwis [Thu, 19 Feb 2009 07:51:52 +0000 (07:51 +0000)]
Regenerate with autoconf 2.61.

15 years agoAdd links to helpful external resources.
Raymond Hettinger [Thu, 19 Feb 2009 06:44:30 +0000 (06:44 +0000)]
Add links to helpful external resources.

15 years agoAdd an example for math.fsum() and elaborate on the accurary note.
Raymond Hettinger [Thu, 19 Feb 2009 05:48:05 +0000 (05:48 +0000)]
Add an example for math.fsum() and elaborate on the accurary note.

15 years agoAdd some cross-references to the docs. Simplify the python code equivalent for zip...
Raymond Hettinger [Thu, 19 Feb 2009 04:45:07 +0000 (04:45 +0000)]
Add some cross-references to the docs.  Simplify the python code equivalent for zip().  Supply an optional argument for the nth() recipe.

15 years agoMerged revisions 69576,69579-69580,69589,69619-69620,69633,69703-69704,69728-69730...
Benjamin Peterson [Thu, 19 Feb 2009 04:22:03 +0000 (04:22 +0000)]
Merged revisions 69576,69579-69580,69589,69619-69620,69633,69703-69704,69728-69730 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69576 | georg.brandl | 2009-02-13 04:56:50 -0600 (Fri, 13 Feb 2009) | 1 line

  #1661108: note that urlsafe encoded string can contain "=".
........
  r69579 | georg.brandl | 2009-02-13 05:06:59 -0600 (Fri, 13 Feb 2009) | 2 lines

  Fix warnings GCC emits where the argument of PyErr_Format is a single variable.
........
  r69580 | georg.brandl | 2009-02-13 05:10:04 -0600 (Fri, 13 Feb 2009) | 2 lines

  Fix warnings GCC emits where the argument of PyErr_Format is a single variable.
........
  r69589 | martin.v.loewis | 2009-02-13 14:11:34 -0600 (Fri, 13 Feb 2009) | 2 lines

  Move amd64 properties further to the top, so that they override
  the linker options correctly.
........
  r69619 | benjamin.peterson | 2009-02-14 11:00:51 -0600 (Sat, 14 Feb 2009) | 1 line

  this needn't be a shebang line
........
  r69620 | georg.brandl | 2009-02-14 11:01:36 -0600 (Sat, 14 Feb 2009) | 1 line

  #5179: don't leak PIPE fds when child execution fails.
........
  r69633 | hirokazu.yamamoto | 2009-02-15 03:19:48 -0600 (Sun, 15 Feb 2009) | 1 line

  Fixed typo.
........
  r69703 | raymond.hettinger | 2009-02-16 16:42:54 -0600 (Mon, 16 Feb 2009) | 3 lines

  Issue 5229: Documentation for super() neglects to say what super() actually does
........
  r69704 | raymond.hettinger | 2009-02-16 17:00:25 -0600 (Mon, 16 Feb 2009) | 1 line

  Add explanation for super(type1, type2).
........
  r69728 | georg.brandl | 2009-02-17 18:22:55 -0600 (Tue, 17 Feb 2009) | 2 lines

  #5297: fix example.
........
  r69729 | georg.brandl | 2009-02-17 18:25:13 -0600 (Tue, 17 Feb 2009) | 2 lines

  #5296: sequence -> iterable.
........
  r69730 | georg.brandl | 2009-02-17 18:31:36 -0600 (Tue, 17 Feb 2009) | 2 lines

  #5268: mention VMSError.
........

15 years agoBlocked revisions 69748,69751 via svnmerge
Benjamin Peterson [Thu, 19 Feb 2009 03:24:17 +0000 (03:24 +0000)]
Blocked revisions 69748,69751 via svnmerge

........
  r69748 | raymond.hettinger | 2009-02-18 20:15:14 -0600 (Wed, 18 Feb 2009) | 1 line

  Add keyword arg support to itertools.compress().
........
  r69751 | raymond.hettinger | 2009-02-18 20:38:25 -0600 (Wed, 18 Feb 2009) | 1 line

  Add keyword arg support to itertools.repeat().
........

15 years agoAdd keyword arg support to itertools.repeat().
Raymond Hettinger [Thu, 19 Feb 2009 02:44:01 +0000 (02:44 +0000)]
Add keyword arg support to itertools.repeat().

15 years agoAdd keyword arg support to itertools.compress().
Raymond Hettinger [Thu, 19 Feb 2009 02:17:09 +0000 (02:17 +0000)]
Add keyword arg support to itertools.compress().

15 years agoBlocked revisions 69716 via svnmerge
Benjamin Peterson [Thu, 19 Feb 2009 02:17:08 +0000 (02:17 +0000)]
Blocked revisions 69716 via svnmerge

........
  r69716 | ronald.oussoren | 2009-02-17 06:38:42 -0600 (Tue, 17 Feb 2009) | 2 lines

  Fix issue776533.
........

15 years agoBlocked revisions 69414,69561,69604,69672,69689,69709,69715,69717,69739,69743 via...
Benjamin Peterson [Thu, 19 Feb 2009 02:12:26 +0000 (02:12 +0000)]
Blocked revisions 69414,69561,69604,69672,69689,69709,69715,69717,69739,69743 via svnmerge

........
  r69414 | georg.brandl | 2009-02-07 12:49:54 -0600 (Sat, 07 Feb 2009) | 1 line

  make "super only for new-style classes" a note.
........
  r69561 | gregory.p.smith | 2009-02-12 21:00:00 -0600 (Thu, 12 Feb 2009) | 5 lines

  - Issue #3745: Fix hashlib to always reject unicode and non buffer-api
    supporting objects as input no matter how it was compiled (built in
    implementations or external openssl library).
  (backported from a py3k branch)
........
  r69604 | raymond.hettinger | 2009-02-13 18:25:51 -0600 (Fri, 13 Feb 2009) | 1 line

  Add keyword argument support to itertools.count().
........
  r69672 | benjamin.peterson | 2009-02-16 08:54:34 -0600 (Mon, 16 Feb 2009) | 1 line

  note functions that are not aliased to PyBytes_ #5280
........
  r69689 | benjamin.peterson | 2009-02-16 15:09:09 -0600 (Mon, 16 Feb 2009) | 1 line

  remove some PyBytes_* aliases that are not in 3.x
........
  r69709 | raymond.hettinger | 2009-02-17 02:33:01 -0600 (Tue, 17 Feb 2009) | 1 line

  Fix-up intro paragraph for collections docs.
........
  r69715 | raymond.hettinger | 2009-02-17 05:00:27 -0600 (Tue, 17 Feb 2009) | 1 line

  Fixup intro paragraphs for the itertools docs.  Add some tables for quick reference.
........
  r69717 | marc-andre.lemburg | 2009-02-17 06:48:19 -0600 (Tue, 17 Feb 2009) | 5 lines

  Clarify the deprecation of platform.dist().

  Add versionadded tags.
........
  r69739 | raymond.hettinger | 2009-02-18 14:54:53 -0600 (Wed, 18 Feb 2009) | 1 line

  Generalize the itertools.tee() recipe.
........
  r69743 | raymond.hettinger | 2009-02-18 17:10:19 -0600 (Wed, 18 Feb 2009) | 1 line

  Py3k warnings now automatically include -Qwarn for division.
........

15 years agomerge socket module documentation update from trunk r69731.
Gregory P. Smith [Thu, 19 Feb 2009 01:25:51 +0000 (01:25 +0000)]
merge socket module documentation update from trunk r69731.

15 years agoGeneralize the itertools.tee() recipe.
Raymond Hettinger [Wed, 18 Feb 2009 20:56:51 +0000 (20:56 +0000)]
Generalize the itertools.tee() recipe.

15 years agoMerged revisions 69714,69718 via svnmerge from
Hirokazu Yamamoto [Wed, 18 Feb 2009 16:38:00 +0000 (16:38 +0000)]
Merged revisions 69714,69718 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69714 | hirokazu.yamamoto | 2009-02-17 19:12:10 +0900 | 1 line

  Issue #5292: Fixed mmap crash on its boundary access m[len(m)].
........
  r69718 | hirokazu.yamamoto | 2009-02-17 22:17:26 +0900 | 3 lines

  Issue #5282: Fixed mmap resize on 32bit windows and unix. When offset > 0,
  The file was resized to wrong size.
........

15 years agoMerged revisions 69724 via svnmerge from
Tarek Ziadé [Tue, 17 Feb 2009 23:10:18 +0000 (23:10 +0000)]
Merged revisions 69724 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69724 | tarek.ziade | 2009-02-18 00:06:51 +0100 (Wed, 18 Feb 2009) | 1 line

  fixed the data_files inclusion behavior
........

15 years agoFix-up intro paragraph for collections docs.
Raymond Hettinger [Tue, 17 Feb 2009 20:06:51 +0000 (20:06 +0000)]
Fix-up intro paragraph for collections docs.

15 years agoFixup intro paragraphs for the itertools docs. Add some tables for quick reference.
Raymond Hettinger [Tue, 17 Feb 2009 20:00:59 +0000 (20:00 +0000)]
Fixup intro paragraphs for the itertools docs.  Add some tables for quick reference.

15 years agoMerged revisions 69710 via svnmerge from
Tarek Ziadé [Tue, 17 Feb 2009 09:47:25 +0000 (09:47 +0000)]
Merged revisions 69710 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69710 | tarek.ziade | 2009-02-17 10:42:44 +0100 (Tue, 17 Feb 2009) | 1 line

  #2279 added the plain path case for data_files
........

15 years agoOutline a possible way to separate out source loading from bytecode loading.
Brett Cannon [Tue, 17 Feb 2009 07:15:17 +0000 (07:15 +0000)]
Outline a possible way to separate out source loading from bytecode loading.

15 years agoImplement the more specific PEP 302 semantics for loaders and what happens upon
Brett Cannon [Tue, 17 Feb 2009 02:45:03 +0000 (02:45 +0000)]
Implement the more specific PEP 302 semantics for loaders and what happens upon
load failure in relation to reloads. Also expose
importlib.util.module_for_loader to handle all of the details of this along
with making sure all current loaders behave nicely.

15 years agoI think this file has long outlived its usefulness
Benjamin Peterson [Tue, 17 Feb 2009 01:53:19 +0000 (01:53 +0000)]
I think this file has long outlived its usefulness

15 years agoMerged revisions 69700 via svnmerge from
Tarek Ziadé [Mon, 16 Feb 2009 22:42:39 +0000 (22:42 +0000)]
Merged revisions 69700 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69700 | tarek.ziade | 2009-02-16 23:38:43 +0100 (Mon, 16 Feb 2009) | 1 line

  note about #2279
........

15 years agoMerged revisions 69693 via svnmerge from
Tarek Ziadé [Mon, 16 Feb 2009 21:51:13 +0000 (21:51 +0000)]
Merged revisions 69693 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69693 | tarek.ziade | 2009-02-16 22:41:54 +0100 (Mon, 16 Feb 2009) | 1 line

  #2279: use os.sep so the MANIFEST file test work on win32
........

15 years agoMerged revisions 69692 via svnmerge from
Tarek Ziadé [Mon, 16 Feb 2009 21:49:12 +0000 (21:49 +0000)]
Merged revisions 69692 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69692 | tarek.ziade | 2009-02-16 22:38:01 +0100 (Mon, 16 Feb 2009) | 1 line

  Fixed #2279: distutils.sdist.add_defaults now add files listed in package_data and data_files
........

15 years agoMerged revisions 69688,69690 via svnmerge from
Benjamin Peterson [Mon, 16 Feb 2009 21:28:29 +0000 (21:28 +0000)]
Merged revisions 69688,69690 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69688 | benjamin.peterson | 2009-02-16 15:07:52 -0600 (Mon, 16 Feb 2009) | 1 line

  fix compiler warnings
........
  r69690 | benjamin.peterson | 2009-02-16 15:23:04 -0600 (Mon, 16 Feb 2009) | 1 line

  PyList_Append() can fail
........

15 years agoBlocked revisions 69685 via svnmerge
Benjamin Peterson [Mon, 16 Feb 2009 21:02:16 +0000 (21:02 +0000)]
Blocked revisions 69685 via svnmerge

........
  r69685 | raymond.hettinger | 2009-02-16 14:39:12 -0600 (Mon, 16 Feb 2009) | 1 line

  Add GC support to count() objects.  Backport candidate.
........

15 years agoAdd GC support to count() objects.
Raymond Hettinger [Mon, 16 Feb 2009 20:50:56 +0000 (20:50 +0000)]
Add GC support to count() objects.

15 years agoremove another use of cmp()
Benjamin Peterson [Mon, 16 Feb 2009 18:22:15 +0000 (18:22 +0000)]
remove another use of cmp()

15 years agono 2.3 compat in the py3k lib #3676
Benjamin Peterson [Mon, 16 Feb 2009 16:20:10 +0000 (16:20 +0000)]
no 2.3 compat in the py3k lib #3676

15 years agoraise more generic Exception() instead of RuntimeError() #5281
Benjamin Peterson [Mon, 16 Feb 2009 16:15:34 +0000 (16:15 +0000)]
raise more generic Exception() instead of RuntimeError() #5281

15 years agoRemoved message about compatibility with 2.3.
Facundo Batista [Mon, 16 Feb 2009 15:41:37 +0000 (15:41 +0000)]
Removed message about compatibility with 2.3.

15 years agoMerged revisions 69666 via svnmerge from
Eric Smith [Mon, 16 Feb 2009 12:37:11 +0000 (12:37 +0000)]
Merged revisions 69666 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69666 | eric.smith | 2009-02-16 04:56:39 -0500 (Mon, 16 Feb 2009) | 1 line

  Added Ross Light to ACKS, for bug 4285 (r69331).
........

15 years agoIssue #5249: time.strftime returned malformed string when format string
Hirokazu Yamamoto [Mon, 16 Feb 2009 09:13:20 +0000 (09:13 +0000)]
Issue #5249: time.strftime returned malformed string when format string
contained non ascii character on windows.

15 years agoDocument importlib.machinery.PathFinder.
Brett Cannon [Mon, 16 Feb 2009 04:18:01 +0000 (04:18 +0000)]
Document importlib.machinery.PathFinder.

15 years agoFix more places in Objects/longobject.c where it's silently assumed that
Mark Dickinson [Sun, 15 Feb 2009 17:27:41 +0000 (17:27 +0000)]
Fix more places in Objects/longobject.c where it's silently assumed that
sizeof(digit) < sizeof(int).

15 years agoBlocked revisions 69639 via svnmerge
Mark Dickinson [Sun, 15 Feb 2009 15:49:16 +0000 (15:49 +0000)]
Blocked revisions 69639 via svnmerge

........
  r69639 | mark.dickinson | 2009-02-15 15:48:39 +0000 (Sun, 15 Feb 2009) | 2 lines

  A few more minor fixed in longobject.c
........

15 years agoA few more type fixes for py3k that were missed in r69635
Mark Dickinson [Sun, 15 Feb 2009 15:14:57 +0000 (15:14 +0000)]
A few more type fixes for py3k that were missed in r69635

15 years agoMerged revisions 69634 via svnmerge from
Mark Dickinson [Sun, 15 Feb 2009 11:04:38 +0000 (11:04 +0000)]
Merged revisions 69634 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69634 | mark.dickinson | 2009-02-15 10:13:41 +0000 (Sun, 15 Feb 2009) | 6 lines

  Issue #5260: Various portability and standards compliance fixes, optimizations
  and cleanups in Objects/longobject.c.  The most significant change is that
  longs now use less memory:  average savings are 2 bytes per long on 32-bit
  systems and 6 bytes per long on 64-bit systems.  (This memory saving already
  exists in py3k.)
........

15 years agoChange importlib.machinery.PathFinder to not have implicit semantics (that's
Brett Cannon [Sun, 15 Feb 2009 05:48:13 +0000 (05:48 +0000)]
Change importlib.machinery.PathFinder to not have implicit semantics (that's
not handled by importlib._bootstrap._DefaultPathFinder).

15 years agoAdd a NOTE about the new specific semantics for failed loads.
Brett Cannon [Sun, 15 Feb 2009 05:46:50 +0000 (05:46 +0000)]
Add a NOTE about the new specific semantics for failed loads.