Brett Cannon
2c318a1390
Rewrite the code implementing __import__ for importlib. Now it is much simpler
...
and relies much more on meta path finders to abstract out various parts of
import.
As part of this the semantics for import_module tightened up and now follow
__import__ much more closely (biggest thing is that the 'package' argument must
now already be imported, else a SystemError is raised).
2009-02-07 01:15:27 +00:00
Georg Brandl
0a7b2c7bc3
#5173 : StandardError wasn't removed in 2.6.
2009-02-06 18:11:01 +00:00
Benjamin Peterson
063ff65e2c
Merged revisions 69141,69211-69212 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69141 | benjamin.peterson | 2009-01-31 14:01:48 -0600 (Sat, 31 Jan 2009) | 1 line
fix indentation
........
r69211 | guilherme.polo | 2009-02-02 14:23:29 -0600 (Mon, 02 Feb 2009) | 1 line
Restore the previous geometry before leaving the test
........
r69212 | guilherme.polo | 2009-02-02 14:28:59 -0600 (Mon, 02 Feb 2009) | 1 line
Moving to importlib
........
2009-02-06 03:01:24 +00:00
Benjamin Peterson
5c6d7877c5
Merged revisions 69129-69131,69139-69140,69143,69154-69159,69169,69288-69289,69293,69297-69301,69348 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69129 | benjamin.peterson | 2009-01-30 19:42:55 -0600 (Fri, 30 Jan 2009) | 1 line
check the errno in bad fd cases
........
r69130 | andrew.kuchling | 2009-01-30 20:50:09 -0600 (Fri, 30 Jan 2009) | 1 line
Add a section
........
r69131 | andrew.kuchling | 2009-01-30 21:26:02 -0600 (Fri, 30 Jan 2009) | 1 line
Text edits and markup fixes
........
r69139 | mark.dickinson | 2009-01-31 10:44:04 -0600 (Sat, 31 Jan 2009) | 2 lines
Add an extra test for long <-> float hash equivalence.
........
r69140 | benjamin.peterson | 2009-01-31 10:52:03 -0600 (Sat, 31 Jan 2009) | 1 line
PyErr_BadInternalCall() raises a SystemError, not TypeError #5112
........
r69143 | benjamin.peterson | 2009-01-31 15:00:10 -0600 (Sat, 31 Jan 2009) | 1 line
I believe the intention here was to avoid a global lookup
........
r69154 | benjamin.peterson | 2009-01-31 16:33:02 -0600 (Sat, 31 Jan 2009) | 1 line
fix indentation in comment
........
r69155 | david.goodger | 2009-01-31 16:53:46 -0600 (Sat, 31 Jan 2009) | 1 line
markup fix
........
r69156 | gregory.p.smith | 2009-01-31 16:57:30 -0600 (Sat, 31 Jan 2009) | 4 lines
- Issue #5104 : The socket module now raises OverflowError when 16-bit port and
protocol numbers are supplied outside the allowed 0-65536 range on bind()
and getservbyport().
........
r69157 | benjamin.peterson | 2009-01-31 17:43:25 -0600 (Sat, 31 Jan 2009) | 1 line
add explanatory comment
........
r69158 | benjamin.peterson | 2009-01-31 17:54:38 -0600 (Sat, 31 Jan 2009) | 1 line
more flags which only work for function blocks
........
r69159 | gregory.p.smith | 2009-01-31 18:16:01 -0600 (Sat, 31 Jan 2009) | 2 lines
Update doc wording as suggested in issue4903.
........
r69169 | guilherme.polo | 2009-01-31 20:56:16 -0600 (Sat, 31 Jan 2009) | 3 lines
Restore Tkinter.Tk._loadtk so this test doesn't fail for problems
related to ttk.
........
r69288 | georg.brandl | 2009-02-05 04:30:57 -0600 (Thu, 05 Feb 2009) | 1 line
#5153 : fix typo in example.
........
r69289 | georg.brandl | 2009-02-05 04:37:07 -0600 (Thu, 05 Feb 2009) | 1 line
#5144 : document that PySys_SetArgv prepends the script directory (or the empty string) to sys.path.
........
r69293 | georg.brandl | 2009-02-05 04:59:28 -0600 (Thu, 05 Feb 2009) | 1 line
#5059 : fix example.
........
r69297 | georg.brandl | 2009-02-05 05:32:18 -0600 (Thu, 05 Feb 2009) | 1 line
#5015 : document PythonHome API functions.
........
r69298 | georg.brandl | 2009-02-05 05:33:21 -0600 (Thu, 05 Feb 2009) | 1 line
#4827 : fix callback example.
........
r69299 | georg.brandl | 2009-02-05 05:35:28 -0600 (Thu, 05 Feb 2009) | 1 line
#4820 : use correct module for ctypes.util.
........
r69300 | georg.brandl | 2009-02-05 05:38:23 -0600 (Thu, 05 Feb 2009) | 1 line
#4563 : disable alpha and roman lists, fixes wrong formatting of contributor list.
........
r69301 | georg.brandl | 2009-02-05 05:40:35 -0600 (Thu, 05 Feb 2009) | 1 line
#5031 : fix Thread.daemon property docs.
........
r69348 | benjamin.peterson | 2009-02-05 19:47:31 -0600 (Thu, 05 Feb 2009) | 1 line
fix download link
........
2009-02-06 02:40:07 +00:00
Eric Smith
0e5b562987
Merged revisions 69331 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69331 | eric.smith | 2009-02-05 19:48:26 -0500 (Thu, 05 Feb 2009) | 2 lines
Implement issue #4285 , convert sys.version_info to a named
tuple. Patch by Ross Light.
........
2009-02-06 01:32:42 +00:00
Georg Brandl
6520d82fdf
#4992 : next() method -> next() function.
2009-02-05 11:01:54 +00:00
Georg Brandl
115fb350fa
#5096 : document PyErr_PrintEx().
2009-02-05 10:56:37 +00:00
Georg Brandl
f3048e5b96
#5107 : document that default encoding is the same as locale.getpreferredencoding().
2009-02-05 10:47:16 +00:00
Georg Brandl
2ae8ac2bfe
#5130 : replace "unicode" by "bytes" in examples for sequence types.
2009-02-05 10:40:48 +00:00
Raymond Hettinger
d04fa31f73
Minor doc fixes.
2009-02-04 19:45:13 +00:00
Raymond Hettinger
1c62dc9d73
Tweak the docs for Counter() objects.
2009-02-04 11:41:45 +00:00
Raymond Hettinger
85602268dc
The default shelve pickle protocol should have been 3.
2009-02-03 04:19:10 +00:00
Mark Dickinson
9f9892648f
Issue #1717 , continued: Doc fixes and other cleanup related
...
to renaming of tp_compare.
2009-02-02 21:29:40 +00:00
Mark Dickinson
c48d834026
Issue #1717 : documentation fixes related to the cmp removal.
2009-02-01 14:18:10 +00:00
Mark Dickinson
f02e0aaafd
Issue #1717 : remove the cmp builtin function, the C-API functions
...
PyObject_Cmp, PyObject_Compare, and various support functions.
2009-02-01 12:13:56 +00:00
Gregory P. Smith
fa6cf39e70
documentation wording fix for issue4903
2009-02-01 00:30:50 +00:00
Benjamin Peterson
e9deddbf8c
comprehrensions now have proper scoping #5106
2009-01-31 03:57:19 +00:00
Benjamin Peterson
1010bf3e26
Merged revisions 68840,68881,68943,68945 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68840 | andrew.kuchling | 2009-01-20 20:15:43 -0600 (Tue, 20 Jan 2009) | 1 line
Add some items
........
r68881 | andrew.kuchling | 2009-01-23 21:28:18 -0600 (Fri, 23 Jan 2009) | 1 line
Add various items
........
r68943 | tarek.ziade | 2009-01-25 16:09:10 -0600 (Sun, 25 Jan 2009) | 1 line
Issue #5052 : removed backward compatibility information (out of date)
........
r68945 | tarek.ziade | 2009-01-25 16:11:04 -0600 (Sun, 25 Jan 2009) | 1 line
added missing module docstring
........
2009-01-30 04:00:29 +00:00
Benjamin Peterson
c4bbc8d7dc
Merged revisions 68884,68973,68978,69003,69083,69112-69113 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68884 | kristjan.jonsson | 2009-01-24 04:52:26 -0600 (Sat, 24 Jan 2009) | 1 line
Add a test for UNC import paths, see issue 3677
........
r68973 | georg.brandl | 2009-01-26 15:29:38 -0600 (Mon, 26 Jan 2009) | 2 lines
Copy over docs on advanced role features from Sphinx docs.
........
r68978 | mark.dickinson | 2009-01-26 15:51:56 -0600 (Mon, 26 Jan 2009) | 3 lines
Issue #5073 : Fix occasional failure of bsddb/test/test_lock.py. Thanks
Hirokazu Yamamoto for the patch.
........
r69003 | benjamin.peterson | 2009-01-26 21:07:53 -0600 (Mon, 26 Jan 2009) | 1 line
excellent place to use a set() #5069
........
r69083 | benjamin.peterson | 2009-01-28 21:03:00 -0600 (Wed, 28 Jan 2009) | 1 line
fix download url
........
r69112 | benjamin.peterson | 2009-01-29 20:02:25 -0600 (Thu, 29 Jan 2009) | 1 line
pep8tify conditionals
........
r69113 | benjamin.peterson | 2009-01-29 20:24:39 -0600 (Thu, 29 Jan 2009) | 1 line
make _tkinter._flatten check the result of PySequence_Size for errors #3880
........
2009-01-30 03:39:35 +00:00
Benjamin Peterson
e8fcbf689b
fix a case of set_daemon #5087
2009-01-30 02:29:43 +00:00
Raymond Hettinger
7fc0dd7b5b
Fix error in docs. The source says proto 2 is the default.
2009-01-29 22:26:20 +00:00
Brett Cannon
e1327f71cf
Merged revisions 69078-69080 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69078 | brett.cannon | 2009-01-28 16:54:11 -0800 (Wed, 28 Jan 2009) | 2 lines
Clarify some __del__ stuff.
........
r69079 | brett.cannon | 2009-01-28 16:54:32 -0800 (Wed, 28 Jan 2009) | 2 lines
Minor spelling mistake in datetime docs.
........
r69080 | brett.cannon | 2009-01-28 16:55:33 -0800 (Wed, 28 Jan 2009) | 2 lines
Ignore .pyc and .pyo files.
........
2009-01-29 04:10:21 +00:00
Raymond Hettinger
d23e013c7d
Correct docs for ABCs (MutableSequence was missing __setiem). Simplify the table by taking out inherited requirements for abstract methods.
2009-01-29 00:01:27 +00:00
Guilherme Polo
5f23848574
Merged revisions 69050 via svnmerge from
...
svn+ssh://pythondev/python/trunk
........
r69050 | guilherme.polo | 2009-01-28 11:09:03 -0200 (Wed, 28 Jan 2009) | 2 lines
Added the ttk module. See issue #2983 : Ttk support for Tkinter.
........
2009-01-28 14:41:10 +00:00
Raymond Hettinger
883d27607a
Beautify grouper() recipe in docs.
2009-01-27 04:57:51 +00:00
Raymond Hettinger
749761e1a8
Put functions back in alphabetical order.
2009-01-27 04:42:48 +00:00
Raymond Hettinger
d07d939c5e
Forward port r69001: itertools.combinations_with_replacement().
2009-01-27 04:20:44 +00:00
Raymond Hettinger
73662a54f5
Tweak column alignment in collections docs.
2009-01-27 02:38:22 +00:00
Raymond Hettinger
6b3b0fc4d4
Forward port r68941 adding itertools.compress().
2009-01-26 02:56:58 +00:00
Raymond Hettinger
ace673391a
Backport r68942: update powerset() recipe.
2009-01-26 02:23:50 +00:00
Raymond Hettinger
89e12963ad
As discussed on python-dev, remove several operator functions
...
isSequenceType(), isMappingType(), and isNumberType() in favor
of using abstract base classes. Also, remove repeat() and irepeat()
in favor of mul() and imul().
After the buildbots have had a go at this. Will backport to Py3.0.1.
For Py2.7, will just mark as deprecated.
2009-01-26 02:09:03 +00:00
Benjamin Peterson
97d3aa50b7
use the classmethod directive
2009-01-25 19:44:16 +00:00
Tarek Ziadé
3fe61d5282
Merged revisions 68933 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68933 | tarek.ziade | 2009-01-25 20:29:10 +0100 (Sun, 25 Jan 2009) | 1 line
Issue #4863 , removing remaining bits
........
2009-01-25 19:31:22 +00:00
Brett Cannon
78246b6b45
Document both importlib.machinery.BuiltinImporter and FrozenImporter.
2009-01-25 04:56:30 +00:00
Brett Cannon
51d4aabf09
Add the terms "finder", "loader", and "importer" to the glossary.
2009-01-25 04:21:39 +00:00
Jesse Noller
41faa543b6
merge r68915 to py3k
2009-01-25 03:45:53 +00:00
Alexandre Vassalotti
bcd1e3a453
Clean up pickle usage examples.
2009-01-23 05:28:16 +00:00
Alexandre Vassalotti
f7d08c7d54
Issue 2980: Protocol 0 is not truly restricted to ASCII.
2009-01-23 04:50:05 +00:00
Alexandre Vassalotti
4a72a196b8
Remove obsolete note on binary-mode vs. text-mode file.
2009-01-23 04:46:05 +00:00
Benjamin Peterson
aa06900347
Merged revisions 68750,68776-68777,68811,68842,68859 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68750 | benjamin.peterson | 2009-01-18 16:47:04 -0600 (Sun, 18 Jan 2009) | 1 line
fix encoding cookie case
........
r68776 | benjamin.peterson | 2009-01-19 10:17:54 -0600 (Mon, 19 Jan 2009) | 1 line
move BufferedIOBase into the base class section
........
r68777 | benjamin.peterson | 2009-01-19 10:18:27 -0600 (Mon, 19 Jan 2009) | 1 line
add email address
........
r68811 | benjamin.peterson | 2009-01-20 12:58:27 -0600 (Tue, 20 Jan 2009) | 1 line
fix url
........
r68842 | andrew.kuchling | 2009-01-20 20:16:26 -0600 (Tue, 20 Jan 2009) | 1 line
Markup fixes
........
r68859 | georg.brandl | 2009-01-22 12:29:28 -0600 (Thu, 22 Jan 2009) | 2 lines
Clarify wording.
........
2009-01-23 03:26:36 +00:00
Jesse Noller
7b3c89d88c
merge r68862 to py3k
2009-01-22 21:56:13 +00:00
Brett Cannon
33418c8feb
Fix markup for arguments in importlib docs.
2009-01-22 18:37:20 +00:00
Raymond Hettinger
94adc8e4b5
More doc tweaks.
2009-01-22 05:27:37 +00:00
Raymond Hettinger
670eaec0ee
Tighten-up the docs for Counter().
2009-01-21 23:14:07 +00:00
Raymond Hettinger
e0d1b9f11f
Simplify explanation of multiset operations by removing restrictions on negative inputs.
2009-01-21 20:36:27 +00:00
Raymond Hettinger
b14043c1ec
Beautify and cleanup the references section.
2009-01-20 23:44:31 +00:00
Raymond Hettinger
0bae662559
Fix typos.
2009-01-20 13:00:59 +00:00
Raymond Hettinger
7bf3a0e866
Forward port r68797: Fix-up jump targets in collections docs.
2009-01-20 07:15:22 +00:00
Raymond Hettinger
4d2073a073
Forward port r68792 and r68789 putting Counter in __all__ and adding Counter buildouts.
2009-01-20 03:41:22 +00:00
Brett Cannon
afccd63ac9
Document the (very small) public API for importlib. As time goes on and some
...
key refactorings occur more of the API will be exposed and documented.
2009-01-20 02:21:27 +00:00