Commit graph

1366 commits

Author SHA1 Message Date
Georg Brandl
a5eacee237 Fix some markup glitches. 2010-07-23 16:55:26 +00:00
Brett Cannon
a57edd0e9e Clarify the wording for threading.is_alive() to not suggest something is
"roughly" done.

Closes issue 9339. Thanks Brian Brazil for the patch.
2010-07-23 12:26:35 +00:00
Martin v. Löwis
c9e1c7d97f Issue #6095: Make directory argument to os.listdir optional.
Patch by Virgil Dupras.
2010-07-23 12:16:41 +00:00
Brett Cannon
3a4e50cb7e Document the fact that the 'test' package is meant only for use by Python
itself and not by others.

Closes issue 9255.
2010-07-23 11:31:31 +00:00
Antoine Pitrou
de5b02430b Remove outdated mention of deprecated functions in the string module - they have been removed in 3.x. 2010-07-21 15:54:48 +00:00
Brett Cannon
6dfbff3ff3 Minor clarification about importlib.abc.SourceLoader.get_filename. 2010-07-21 09:48:31 +00:00
Georg Brandl
55353ca6dc pydoc.pager does not promise to use $PAGER. 2010-07-19 08:02:46 +00:00
Georg Brandl
70f355d13e Clarify. 2010-07-19 06:52:35 +00:00
Jean-Paul Calderone
7f54dce9bd Document the extra epoll flags 2010-07-18 16:30:31 +00:00
Jean-Paul Calderone
7f94f392a0 There is no method named "register(fd, eventmask)"; fix markup to just indicate this is code. 2010-07-18 16:13:27 +00:00
Benjamin Peterson
d319ad5c1a nest method and attribute doc 2010-07-18 14:27:02 +00:00
Benjamin Peterson
0b9fb808a0 use classmethod 2010-07-18 14:23:36 +00:00
Georg Brandl
86e78d1f2d #9110: update to ContextDecorator doc. 2010-07-18 13:43:32 +00:00
Georg Brandl
02053ee3b9 #9279: remove the pdb.doc file, put its contents in pdb.__doc__. Also sync this and the pdb docs, introduce a new directive for pdb commands and a role to link to them. 2010-07-18 10:11:03 +00:00
Alexander Belopolsky
929d384058 Issue #9268: Add annotation option to pickletools.dis 2010-07-17 15:51:21 +00:00
Stefan Krah
fc9e08de3a High byte is the exit status. 2010-07-14 10:16:11 +00:00
Georg Brandl
e767e047c8 #9258: fix copy-paste errors. 2010-07-14 08:00:22 +00:00
Jeroen Ruigrok van der Werven
9c558bcfd1 Fix documentation typo: wprite() -> write(). 2010-07-13 14:47:01 +00:00
Georg Brandl
85f2177f6d Add bytes in literal_eval doc. 2010-07-13 06:38:10 +00:00
Antoine Pitrou
c779515a75 Fix definition of len() and indexing for memoryview objects (part of #7696). 2010-07-12 20:01:52 +00:00
Georg Brandl
db4e939206 Use raw string literals for regexes containing backlash. 2010-07-12 09:06:13 +00:00
Mark Dickinson
c762242cca Include versionadded in (c)math.isfinite docs (thanks Ezio Melotti). Other minor doc cleanups. 2010-07-11 19:47:37 +00:00
Mark Dickinson
8e0c996873 Issue #9165: Add math.isfinite and cmath.isfinite. 2010-07-11 17:38:24 +00:00
Georg Brandl
05bfcc590d #7935: cross-reference to ast.literal_eval() from eval() docs. 2010-07-11 09:42:10 +00:00
Georg Brandl
492f3fc272 Allow set literals in literal_eval(). 2010-07-11 09:41:21 +00:00
Georg Brandl
e40ee509e3 #9184: fix default value for "buffering" param of open(). 2010-07-11 09:33:39 +00:00
Georg Brandl
0104bcdb80 #6774: explain shutdown() behavior varying with platform. 2010-07-11 09:23:11 +00:00
Senthil Kumaran
aba088e01d Issue2007: Removing reference to MSIE Cookie handling by mechanize. Suggested by John J Lee. 2010-07-11 05:01:52 +00:00
R. David Murray
522c32a7e3 Add missing docs for re module 'purge' function. 2010-07-10 14:23:36 +00:00
R. David Murray
0425a8ea72 Fix 'refleak' introduced by fnmatch cache purge tests.
This introduces a 'purge' function for the fnmatch module analogous
to the 'purge' function in the re module.
2010-07-10 13:52:13 +00:00
Georg Brandl
a851483527 #8564: update docs on integrating doctest/unittest with unittest(2) test discovery. 2010-07-10 12:20:38 +00:00
Georg Brandl
1c616a5c92 #8456: fix signature of sqlite3.connect(). 2010-07-10 12:01:34 +00:00
Georg Brandl
47d48bb3e7 #8338: fix outdated class name. 2010-07-10 11:51:06 +00:00
Georg Brandl
93eb42e805 Emphasize role of count for Pascal string. 2010-07-10 10:23:40 +00:00
Georg Brandl
b382337ed6 Fix markup. 2010-07-10 08:58:37 +00:00
Brian Curtin
c739569be0 Adding versionchanged to the various Windows os.symlink additions, along
with a few minor touchups.
2010-07-09 15:15:09 +00:00
Brian Curtin
d40e6f70a5 Implement #1578269. Patch by Jason R. Coombs.
Added Windows support for os.symlink when run on Windows 6.0 or greater,
aka Vista. Previous Windows versions will raise NotImplementedError
when trying to symlink.

Includes numerous test updates and additions to test_os, including
a symlink_support module because of the fact that privilege escalation
is required in order to run the tests to ensure that the user is able
to create symlinks. By default, accounts do not have the required
privilege, so the escalation code will have to be exposed later (or
documented on how to do so). I'll be following up with that work next.

Note that the tests use ctypes, which was agreed on during the PyCon
language summit.
2010-07-08 21:39:08 +00:00
Vinay Sajip
c15dfd63b3 Minor improvements to logging documentation. 2010-07-06 15:08:55 +00:00
Senthil Kumaran
37c63a385d Change 'lowered' to 'lowercased' 2010-07-06 02:08:36 +00:00
Senthil Kumaran
fa8979867f Fix: Issue9091 Minor documentation clarification. 2010-07-05 11:41:42 +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
Senthil Kumaran
df022da3d8 Fix Issue5468 - urlencode to handle bytes and other alternate encodings.
(Extensive tests provided). Patch by Dan Mahn.
2010-07-03 17:48:22 +00:00
Georg Brandl
4833e5b874 Remove the need for a "()" empty argument list after opcodes. 2010-07-03 10:41:33 +00:00
Georg Brandl
f68798b92e Use the right role. 2010-07-03 10:22:10 +00:00
Georg Brandl
19b7a87121 Wrap and use the correct directive. 2010-07-03 10:21:50 +00:00
Mark Dickinson
39af05fc6e Merged revisions 82476 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82476 | mark.dickinson | 2010-07-03 10:15:09 +0100 (Sat, 03 Jul 2010) | 1 line

  Fix typo in sys.float_info docs.
........
2010-07-03 09:17:16 +00:00
Nick Coghlan
5c8b54eb04 Issue 6507: accept source strings directly in dis.dis(). Original patch by Daniel Urban 2010-07-03 07:36:51 +00:00
Ezio Melotti
d2191e04a4 Merged revisions 82455,82457,82459 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82455 | eric.smith | 2010-07-03 00:44:16 +0300 (Sat, 03 Jul 2010) | 1 line

  Moved period outside paren, where it belongs.
........
  r82457 | ezio.melotti | 2010-07-03 01:17:29 +0300 (Sat, 03 Jul 2010) | 1 line

  #9139: Add examples for str.format().
........
  r82459 | ezio.melotti | 2010-07-03 01:50:39 +0300 (Sat, 03 Jul 2010) | 1 line

  #9139: the thousands separator is new in 2.7.  Also add a missing variable in the example.
........
2010-07-02 23:18:51 +00:00
Brett Cannon
8315fd12a5 Some people have mistaken Python bytecode as being stable and unchanging. In
reality it's simply an implementation detail for CPython. This point is now
clearly documented in both the docs for dis and the glossary.

Closes issue #7829. Thanks to Terry Reedy for some initial suggestions on
wording.
2010-07-02 22:03:00 +00:00
Mark Dickinson
be5846bfdc Merged revisions 82446 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82446 | mark.dickinson | 2010-07-02 19:06:52 +0100 (Fri, 02 Jul 2010) | 1 line

  Clarify sys.float_info documentation.
........
2010-07-02 20:26:07 +00:00