Commit Graph

42374 Commits

Author SHA1 Message Date
Vinay Sajip c15dfd63b3 Minor improvements to logging documentation. 2010-07-06 15:08:55 +00:00
Mark Dickinson 6f493b7bac Indentation and PEP 7 fixes. 2010-07-06 15:00:40 +00:00
Matthias Klose d885e95be4 - sysmodule.c (get_hash_info): Define as static function. 2010-07-06 10:53:30 +00:00
Senthil Kumaran 37c63a385d Change 'lowered' to 'lowercased' 2010-07-06 02:08:36 +00:00
Brett Cannon c84dc9d018 Fix test_xmlrpc_net to no longer fail since there are no more buildbots for trunk. 2010-07-05 22:11:16 +00:00
Alexander Belopolsky 31c2740760 "Modernized" the demo a little. 2010-07-05 21:44:05 +00:00
Victor Stinner 1f1ccc0386 #9158: Fix y* format of PyArg_Parse*() functions documentation 2010-07-05 21:36:21 +00:00
Mark Dickinson 6c3bcb74b2 Post-detabification cleanup. 2010-07-05 20:14:26 +00:00
Georg Brandl 5ada7c7315 Update Vec class constructor, remove indirection via function, use operator module. 2010-07-05 20:13:41 +00:00
Georg Brandl dc00a2a249 Remove Dbm. 2010-07-05 20:13:06 +00:00
Benjamin Peterson aefc1c7e48 untabify 2010-07-05 20:04:54 +00:00
Alexander Belopolsky d87e932f51 Added two more test cases for datetime 2010-07-05 17:57:31 +00:00
Georg Brandl b0f0991cdb #9166: NotImplemented is not an exception. 2010-07-05 17:48:38 +00:00
Benjamin Peterson 97c694b90b looking up on the type is correct, so this isn't an XXX 2010-07-05 17:11:05 +00:00
Alexander Belopolsky f34e82ef49 Added more tests for utctimetuple() 2010-07-05 15:05:33 +00:00
Benjamin Peterson a7465e2fdf cleanup basicsize logic #3268 2010-07-05 15:01:22 +00:00
Benjamin Peterson 335d2c757d pydoc still has a silly encoding 2010-07-05 14:59:40 +00:00
Senthil Kumaran e51ee8a5bc Fix the docstrings of the capitalize method. 2010-07-05 12:00:56 +00:00
Senthil Kumaran fa8979867f Fix: Issue9091 Minor documentation clarification. 2010-07-05 11:41:42 +00:00
Brett Cannon 058173e2b2 Do some basic refactoring. Along the way also list what files had their
whitespace cleaned up and do the proper plurality for "N file(s)" based on N.

Refactoring closes issue8912. Thanks to Éric Araujo for the patch.
2010-07-04 22:05:34 +00:00
Andrew M. Kuchling 5cca695ed6 Add brief explanation; remove no-longer-working link 2010-07-04 20:47:00 +00:00
Mark Dickinson 45a26b9b18 Revert -r82559; it's not clear that this is the right thing to do, and the change obscures the original intentions. 2010-07-04 20:07:09 +00:00
Mark Dickinson 30b570bb4b Re-encode shlex.py in UTF-8, and remove coding cookie. 2010-07-04 19:27:12 +00:00
Mark Dickinson b4a17a8440 Remove coding cookie from heapq.py. 2010-07-04 19:23:49 +00:00
Mark Dickinson 6a4e3c5f12 Make Demo/parser/test_parser.py run. 2010-07-04 18:49:18 +00:00
Mark Dickinson feb3b75818 Issue #9130: Validate ellipsis tokens in relative imports. 2010-07-04 18:38:57 +00:00
Mark Dickinson 3445b482b3 Fix symbol numbers in test_parser test. 2010-07-04 18:15:26 +00:00
Mark Dickinson 2cc8a5e490 Issue #9130: Fix validation of relative imports in parser module. 2010-07-04 18:11:51 +00:00
Alexander Belopolsky 7cb6f2fe10 Fixed the test 2010-07-04 17:47:30 +00:00
Alexander Belopolsky 06360405dc Fixed doctests 2010-07-04 17:38:32 +00:00
Alexander Belopolsky 2e733c9625 Issue #9118: help(None) will now return NoneType doc instead of
starting interactive help.
2010-07-04 17:00:20 +00:00
Benjamin Peterson 766f5d9d73 Merged revisions 81478,82530-82531 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r81478 | benjamin.peterson | 2010-05-22 13:47:39 -0500 (Sat, 22 May 2010) | 1 line

  ensure doctests have some future_features
........
  r82530 | benjamin.peterson | 2010-07-04 11:11:41 -0500 (Sun, 04 Jul 2010) | 1 line

  simplify ignore star imports from itertools #8892
........
  r82531 | benjamin.peterson | 2010-07-04 11:13:20 -0500 (Sun, 04 Jul 2010) | 1 line

  wrap with parenthesis not \
........
2010-07-04 16:44:15 +00:00
Benjamin Peterson e2f44beebd Initialized merge tracking via "svnmerge" with revisions "0-80937" from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
2010-07-04 16:41:33 +00:00
Benjamin Peterson 223a848f62 Removed merge tracking for "svnmerge" for
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3
2010-07-04 16:40:27 +00:00
Benjamin Peterson c9f1991f89 Initialized merge tracking via "svnmerge" with revisions "0-80937" from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3
2010-07-04 16:37:39 +00:00
Mark Dickinson 2bd61a988f Issue #9128: Fix validation of class decorators in parser module. 2010-07-04 16:37:31 +00:00
Benjamin Peterson 9a492acc14 Removed merge tracking for "svnmerge" for
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
2010-07-04 16:33:07 +00:00
Alexander Belopolsky 33777d4058 Issue #9152: Removed dead code in datetime module 2010-07-04 16:28:08 +00:00
Mark Dickinson cc588c1d37 Fix refleak in Modules/audioop.c. 2010-07-04 10:15:11 +00:00
Georg Brandl be7a7553cd Remove old and unsafe Dbm demo class. 2010-07-04 07:25:18 +00:00
Alexander Belopolsky 74135d0ad9 Made minimal modifications to pass included tests 2010-07-03 22:36:06 +00:00
Brett Cannon 418182e18b Make importlib.abc.SourceLoader the primary mechanism for importlib.
This required moving the class from importlib/abc.py into
importlib/_bootstrap.py and jiggering some code to work better with the class.
This included changing how the file finder worked to better meet import
semantics. This also led to fixing importlib to handle the empty string from
sys.path as import currently does (and making me wish we didn't support that
instead just required people to insert '.' instead to represent cwd).

It also required making the new set_data abstractmethod create
any needed subdirectories implicitly thanks to __pycache__ (it was either this
or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir
method or have set_data with no data arg mean to create a directory).

Lastly, as an optimization the file loaders cache the file path where the
finder found something to use for loading (this is thanks to having a
sourceless loader separate from the source loader to simplify the code and
cut out stat calls).
Unfortunately test_runpy assumed a loader would always work for a module, even
if you changed from underneath it what it was expected to work with. By simply
dropping the previous loader in test_runpy so the proper loader can be returned
by the finder fixed the failure.

At this point importlib deviates from import on two points:

1. The exception raised when trying to import a file is different (import does
an explicit file check to print a special message, importlib just says the path
cannot be imported as if it was just some module name).

2. the co_filename on a code object is not being set to where bytecode was
actually loaded from instead of where the marshalled code object originally
came from (a solution for this has already been agreed upon on python-dev but has
not been implemented yet; issue8611).
2010-07-03 22:32:41 +00:00
Brett Cannon d71bed3d76 Make importlib.abc.SourceLoader the primary mechanism for importlib.
This required moving the class from importlib/abc.py into
importlib/_bootstrap.py and jiggering some code to work better with the class.
This included changing how the file finder worked to better meet import
semantics. This also led to fixing importlib to handle the empty string from
sys.path as import currently does (and making me wish we didn't support that
instead just required people to insert '.' instead to represent cwd).

It also required making the new set_data abstractmethod create
any needed subdirectories implicitly thanks to __pycache__ (it was either this
or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir
method or have set_data with no data arg mean to create a directory).

Lastly, as an optimization the file loaders cache the file path where the
finder found something to use for loading (this is thanks to having a
sourceless loader separate from the source loader to simplify the code and
cut out stat calls).
Unfortunately test_runpy assumed a loader would always work for a module, even
if you changed from underneath it what it was expected to work with. By simply
dropping the previous loader in test_runpy so the proper loader can be returned
by the finder fixed the failure.

At this point importlib deviates from import on two points:

1. The exception raised when trying to import a file is different (import does
an explicit file check to print a special message, importlib just says the path
cannot be imported as if it was just some module name).

2. the co_filename on a code object is not being set to where bytecode was
actually loaded from instead of where the marshalled code object originally
came from (a solution for this has already been agreed upon on python-dev but has
not been implemented yet; issue8611).
2010-07-03 22:18:47 +00:00
Alexander Belopolsky 401d856309 Issue #9151: Demo/classes/Dates.py does not work in 3.x Converted
descriptive comment into a docstring.  Cast attributes to int in
__init__.  Use __new__ instead of deleting attributes to
"uninitialize".
2010-07-03 22:05:41 +00:00
Brett Cannon 2cf1585499 Fix a spelling mistake in a comment. 2010-07-03 22:03:16 +00:00
Brett Cannon 767a0f86c0 Trailing whitespace is bad for .rst files. 2010-07-03 21:50:52 +00:00
Brett Cannon 61b14251d3 Make importlib.abc.SourceLoader the primary mechanism for importlib.
This required moving the class from importlib/abc.py into
importlib/_bootstrap.py and jiggering some code to work better with the class.
This included changing how the file finder worked to better meet import
semantics. This also led to fixing importlib to handle the empty string from
sys.path as import currently does (and making me wish we didn't support that
instead just required people to insert '.' instead to represent cwd).

It also required making the new set_data abstractmethod create
any needed subdirectories implicitly thanks to __pycache__ (it was either this
or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir
method or have set_data with no data arg mean to create a directory).

Lastly, as an optimization the file loaders cache the file path where the
finder found something to use for loading (this is thanks to having a
sourceless loader separate from the source loader to simplify the code and
cut out stat calls).
Unfortunately test_runpy assumed a loader would always work for a module, even
if you changed from underneath it what it was expected to work with. By simply
dropping the previous loader in test_runpy so the proper loader can be returned
by the finder fixed the failure.

At this point importlib deviates from import on two points:

1. The exception raised when trying to import a file is different (import does
an explicit file check to print a special message, importlib just says the path
cannot be imported as if it was just some module name).

2. the co_filename on a code object is not being set to where bytecode was
actually loaded from instead of where the marshalled code object originally
came from (a solution for this has already been agreed upon on python-dev but has
not been implemented yet; issue8611).
2010-07-03 21:48:25 +00:00
Alexander Belopolsky bb3565d412 Issue #9151: Demo/classes/Dates.py does not work in 3.x
Made minimal changes to make included test pass.
2010-07-03 21:42:47 +00:00
Brett Cannon 6c96bfe004 Ignore __pycache__. 2010-07-03 21:37:28 +00:00
Mark Dickinson 702636a8a5 Remove nonexistent tools from Tools README. 2010-07-03 21:00:51 +00:00