Georg Brandl
076ca5a430
Make deprecation notices as visible as warnings are right now.
2009-09-16 09:05:11 +00:00
Ronald Oussoren
5d90029041
Finish support for --with-universal-archs=intel
...
and --with-universal-archs=3-way (issue6245)
2009-09-15 19:13:15 +00:00
Ezio Melotti
038f38d3ac
#6917 - typo in method name
2009-09-15 18:41:43 +00:00
Benjamin Peterson
ea7120c7c1
Py_SetPythonHome uses static storage #6913
2009-09-15 03:36:26 +00:00
Georg Brandl
58d23fbb6c
#6908 : fix association of hashlib hash attributes.
2009-09-14 14:50:47 +00:00
Georg Brandl
7eb43b7c70
#6574 : list the future features in a table.
2009-09-14 14:08:54 +00:00
Ezio Melotti
2c7b4934ad
#6904 - fix broken link
2009-09-14 00:48:31 +00:00
Michael Foord
dc0460a309
Remove an extraneous space in unittest documentation.
2009-09-13 19:08:18 +00:00
Michael Foord
e91ea56b30
Test discovery in unittest will only attempt to import modules that are importable; i.e. their names are valid Python identifiers. If an import fails during discovery this will be recorded as an error and test discovery will continue. Issue 6568.
2009-09-13 19:07:03 +00:00
Georg Brandl
6848d82a7c
Typo fix.
2009-09-13 18:15:07 +00:00
Michael Foord
5a9719d627
unittest.TestLoader.loadTestsFromName honors the loader suiteClass attribute. Issue 6866.
2009-09-13 17:28:35 +00:00
Michael Foord
ee2df03009
Tutorial tweaks. Issue 6849.
2009-09-13 17:07:46 +00:00
Michael Foord
668be589ef
Note that sys._getframe is not guaranteed to exist in all implementations of Python, and a corresponding note in inspect.currentframe. Issue 6712.
2009-09-13 16:46:19 +00:00
Michael Foord
c3f79373e8
Objects that compare equal automatically pass or fail assertAlmostEqual and assertNotAlmostEqual tests on unittest.TestCase. Issue 6567.
2009-09-13 16:40:02 +00:00
Michael Foord
60931a5a58
Change to tutorial wording for reading text / binary files on Windows. Issue #6301 .
2009-09-13 16:13:36 +00:00
Lars Gustäbel
21121e64b4
Issue #6856 : Add a filter keyword argument to TarFile.add().
...
The filter argument must be a function that takes a TarInfo
object argument, changes it and returns it again. If the
function returns None the TarInfo object will be excluded
from the archive.
The exclude argument is deprecated from now on, because it
does something similar but is not as flexible.
2009-09-12 10:28:15 +00:00
Georg Brandl
d4c7eb1647
Move function back to its section.
2009-09-11 07:55:20 +00:00
Georg Brandl
ffdde9e959
Properly document copy and deepcopy as functions.
2009-09-09 16:49:13 +00:00
Georg Brandl
f01697014f
#6843 : add link from filterwarnings to where the meaning of the arguments is covered.
2009-09-05 16:47:17 +00:00
Georg Brandl
609910c210
#6841 : remove duplicated word.
2009-09-05 09:04:09 +00:00
Georg Brandl
7d4f8fda49
#6777 : dont discourage usage of Exception.args or promote usage of Exception.message.
2009-09-04 11:32:18 +00:00
Georg Brandl
601ee7f847
#6756 : add some info about the "acct" parameter.
2009-09-04 11:25:37 +00:00
Georg Brandl
af795e5eea
#6757 : complete the list of types that marshal can serialize.
2009-09-03 12:31:39 +00:00
Georg Brandl
bf58d80123
#6828 : fix wrongly highlighted blocks.
2009-09-03 07:27:26 +00:00
Georg Brandl
eb4781c279
#6821 : fix signature of PyBuffer_Release().
2009-09-02 20:37:16 +00:00
Georg Brandl
8514b85edc
#6638 : fix wrong parameter name and markup a class.
2009-09-01 08:06:03 +00:00
Georg Brandl
86158fc4c7
#6810 : add a link to the section about frame objects instead of just a description where to find it.
2009-09-01 08:00:47 +00:00
Georg Brandl
018ad1c949
#6765 : hint that log(x, base) is not very sophisticated.
2009-09-01 07:53:37 +00:00
Georg Brandl
a88fd7603b
#6808 : clarification.
2009-09-01 07:46:26 +00:00
Georg Brandl
254c17c758
#6813 : better documentation for numberless string formats.
2009-09-01 07:40:54 +00:00
Senthil Kumaran
90161375c6
Doc fix for the issue2637.
2009-08-31 16:40:27 +00:00
Georg Brandl
4ea46a6614
other -> others where multiple arguments are accepted.
2009-08-31 06:38:29 +00:00
Georg Brandl
7d65fbfed4
#6801 : fix copy-paste oversight.
2009-08-30 11:51:53 +00:00
Georg Brandl
6f8b99e868
#6803 : fix old name.
2009-08-30 08:35:01 +00:00
Tarek Ziadé
3092ed977f
fixed #6801 : symmetric_difference_update also accepts pipe
2009-08-29 13:33:21 +00:00
Kristján Valur Jónsson
e2a77980b6
issue 6275
...
Add an "exc_value" attribute to the _AssertRaisesContext context manager in the unittest package. This allows further tests on the exception that was raised after the context manager exits.
2009-08-27 22:20:21 +00:00
Georg Brandl
e746daa2cb
#6787 : reference fix.
2009-08-27 19:02:43 +00:00
Georg Brandl
185bd22564
Typo fix.
2009-08-27 18:59:02 +00:00
R. David Murray
e7ba742efa
Remove leftover text from end of sentence.
2009-08-27 01:04:59 +00:00
Georg Brandl
1b2695a4c2
#6677 : note that rmdir only removes empty directories.
2009-08-24 17:48:40 +00:00
Benjamin Peterson
626c0aabe8
fix pdf building by teaching latex the right encoding package
2009-08-24 17:42:36 +00:00
Georg Brandl
7543997d74
#6677 : mention "deleting" as an alias for removing files.
2009-08-24 17:24:27 +00:00
Georg Brandl
e8ddbece0f
#6718 : fix example.
2009-08-24 17:22:05 +00:00
Georg Brandl
0cfbd65975
#6725 : spell "namespace" consistently.
2009-08-24 17:20:40 +00:00
Georg Brandl
87296628f1
#6772 : mention utf-8 as utf8 alias.
2009-08-24 17:14:29 +00:00
Tarek Ziadé
f721666d33
Fixed #6556 : Corrected doc on how Distutils looks for its user configuration file under Windows
2009-08-21 14:11:26 +00:00
Vinay Sajip
333c6e7d8f
Added section on exceptions raised during logging.
2009-08-20 22:04:32 +00:00
Tarek Ziadé
764fc235a6
#6693 : New functions in site.py to get user/global site packages paths.
2009-08-20 21:23:13 +00:00
Gregory P. Smith
4e63d54b36
Add weakref support to the thread.lock type.
2009-08-20 09:39:38 +00:00
Skip Montanaro
56366cc6eb
missing module ref (issue6723)
2009-08-18 14:37:52 +00:00
R. David Murray
2c9e33f3a6
Issue 6685: 'toupper' -> 'upper' in cgi doc example explanation.
2009-08-17 19:26:49 +00:00
Vinay Sajip
5e7f645c16
Further refined section on logging to one file from multiple processes.
2009-08-17 13:14:37 +00:00
Vinay Sajip
1c0b24fb67
Refined section on logging to one file from multiple processes.
2009-08-15 23:34:47 +00:00
Vinay Sajip
3a0dc30947
Added section on logging to one file from multiple processes.
2009-08-15 23:23:12 +00:00
Vinay Sajip
59584c4bac
Added versionchanged notices for optional 'delay' parameter to file handler classes.
2009-08-14 11:33:54 +00:00
Georg Brandl
aa66a968d4
Remove potentially confusing sentence in __mangling description.
2009-08-13 12:57:25 +00:00
Georg Brandl
fb69631af7
Use locale.format_string() for more than one specifier.
2009-08-13 12:05:52 +00:00
Georg Brandl
04fd324fe3
#6679 : Remove mention that sub supports no flags.
2009-08-13 07:48:05 +00:00
Georg Brandl
4a46e1c4b3
#6658 : fix two typos.
2009-08-06 17:43:55 +00:00
Georg Brandl
43161a51b8
Fix punctuation and one copy-paste error.
2009-08-06 17:23:21 +00:00
Georg Brandl
29bc2cd463
Fix base keyword arg name for int() and long().
2009-08-06 15:06:25 +00:00
Jesse Noller
8497efeb40
Fix issue 4660: spurious task_done errors in multiprocessing, remove doc note for from_address
2009-08-06 02:05:56 +00:00
Georg Brandl
4809c737d3
Add donation link to docs footer.
2009-08-04 20:22:43 +00:00
Mark Dickinson
4326ad8f72
Issue #6595 : Allow Decimal constructor to accept non-European decimal
...
digits, as recommended by the specification. (Backport of r74279 from
py3k.)
2009-08-02 10:59:36 +00:00
Mark Dickinson
9ad0b365b3
Documentation fix for change introduced in r71832
2009-07-30 10:00:10 +00:00
Georg Brandl
4938fefce8
Rewrite the section about classes a bit; mostly tidbits, and a larger update to the section about "private" variables to reflect the Pythonic consensus better.
2009-07-29 17:50:25 +00:00
Georg Brandl
14bb28aa62
Fix a few markup glitches.
2009-07-29 17:15:20 +00:00
Georg Brandl
ffefd5a8bb
Fix some markup and small factual glitches found by M. Markert.
2009-07-29 17:07:21 +00:00
Georg Brandl
07e20f8729
Add a link to readline, and mention IPython and bpython.
2009-07-29 16:57:05 +00:00
Georg Brandl
019e8dd7fc
#6336 : Add nb_divide.
2009-07-29 16:32:30 +00:00
Georg Brandl
f3d520cc16
#6591 : add reference to ioctl in fcntl module for platforms other than Windows.
2009-07-29 16:09:17 +00:00
Georg Brandl
5b3e7e9c61
#6593 : fix link targets.
2009-07-29 16:06:31 +00:00
Mark Dickinson
fe67bd9168
Issue #6561 : '\d' regular expression should not match characters of
...
category [No]; only those of category [Nd]. (Backport of r74237
from py3k.)
2009-07-28 20:35:03 +00:00
Georg Brandl
8d31f5413c
Clarify quote_plus() usage.
2009-07-28 18:55:32 +00:00
Mark Dickinson
8ab590ef06
Remove leading blank line from cmath.rst
2009-07-28 16:45:13 +00:00
Mark Dickinson
44ec7ac947
Issue #6458 : Reorganize cmath documentation into sections (similar to
...
the way that the math documentation is organized); clarify section on
conversions to and from polar coordinates.
2009-07-28 16:12:40 +00:00
Georg Brandl
3591a8f81d
Move member descriptions inside the classes.
2009-07-26 14:44:23 +00:00
Georg Brandl
d7d4fd7336
builtin -> built-in.
2009-07-26 14:37:28 +00:00
Georg Brandl
9fa61bb37d
#6577 : fix (hopefully) all links to builtin instead of module/class-specific objects.
2009-07-26 14:19:57 +00:00
Georg Brandl
74f8fc0b1b
#6576 : fix cross-refs in re docs.
2009-07-26 13:36:39 +00:00
Georg Brandl
1ba9c87306
#6571 : add index entries for more operators.
2009-07-25 13:02:15 +00:00
Georg Brandl
e2d2704017
#6564 : fix section about the two raise syntaxes.
2009-07-24 20:09:46 +00:00
Georg Brandl
36b30b5a4b
Dont put "void" in signature for nullary functions.
2009-07-24 16:46:38 +00:00
Georg Brandl
f0b1733574
Fix arg types of et#.
2009-07-24 16:28:38 +00:00
Benjamin Peterson
617a5588d1
use bools
2009-07-23 14:25:31 +00:00
Georg Brandl
0e66914907
#6548 : dont suggest existence of real and imag functions in cmath.
2009-07-23 07:08:58 +00:00
Ezio Melotti
7fc214b55d
#6423 has_key -> in
2009-07-22 21:08:49 +00:00
Benjamin Peterson
d38d344370
revert r74152
2009-07-22 16:34:37 +00:00
Benjamin Peterson
bee2e1897b
simplify
2009-07-22 00:03:43 +00:00
Ezio Melotti
dd89705c8c
#6536 fixed typo
2009-07-21 20:18:27 +00:00
Benjamin Peterson
83dfc307c1
remove docs for deprecated -p option
2009-07-20 13:30:10 +00:00
Georg Brandl
3bb474714b
#6489 : fix an ambiguity in getiterator() documentation.
2009-07-18 09:43:40 +00:00
Georg Brandl
a1a4bdb30c
#6505 : fix typos.
2009-07-18 09:06:31 +00:00
Georg Brandl
b4d0ef91a5
#6513 : fix example code: warning categories are classes, not instances.
2009-07-18 09:03:10 +00:00
Georg Brandl
2e1285baee
#6481 : fix typo in os.system() replacement.
2009-07-16 07:38:35 +00:00
Georg Brandl
da334249a7
#6486 : start with built in functions rather than "built in objects".
2009-07-16 07:33:04 +00:00
Benjamin Peterson
573025f298
update year
2009-07-15 00:46:42 +00:00
Amaury Forgeot d'Arc
78c06bd9b7
Document the newly added codec
2009-07-13 23:11:54 +00:00
Benjamin Peterson
72f94f75d6
add versionadded
2009-07-12 16:56:54 +00:00
Georg Brandl
c91cbb948a
array.array is actually a class.
2009-07-11 14:23:38 +00:00
Georg Brandl
b7e14eda6e
#6456 : clarify the meaning of constants used as arguments to nl_langinfo().
2009-07-11 10:51:31 +00:00
Georg Brandl
7750505d2d
#6430 : add note about size of "u" type.
2009-07-11 10:37:38 +00:00
Georg Brandl
7c150bf904
#6448 : clarify docs for find_module().
2009-07-11 10:18:10 +00:00
Georg Brandl
0294de028f
#6446 : fix import_spam() function to use correct error and reference handling.
2009-07-11 10:14:54 +00:00
Georg Brandl
3405cbcf06
Fix style.
2009-07-11 10:12:36 +00:00
Amaury Forgeot d'Arc
ce32eb7406
#6416 : Fix compilation of the select module on Windows, as well as test_subprocess:
...
PIPE_BUF is not defined on Windows, and probably has no meaning there.
Anyway the subprocess module uses another way to perform non-blocking reads (with a thread)
2009-07-09 22:37:22 +00:00
Gregory P. Smith
9d36fd2acb
Adds the select.PIPE_BUF attribute to expose the system constant.
2009-07-03 20:48:31 +00:00
Benjamin Peterson
1e13960727
another cStringIO restriction
2009-07-03 14:08:20 +00:00
R. David Murray
fbba7cdcf0
Issue 6389: add documentation for the 'mode' flags defined in the
...
stat module.
2009-07-02 18:19:20 +00:00
R. David Murray
321afa80ba
Make punctuation prettier and break up run-on sentence.
2009-07-01 02:49:10 +00:00
Ezio Melotti
be96cf608f
Fixed a backslash that was not supposed to be there
2009-06-30 22:56:16 +00:00
Ezio Melotti
c2f5a595ba
Fixed defaultTestCase -> defaultTestResult
2009-06-30 22:51:06 +00:00
Jesse Noller
1b90efbdc5
Resolves issues 5155, 5313, 5331 - bad file descriptor error with processes in processes
2009-06-30 17:11:52 +00:00
Georg Brandl
0c9eb43149
#6371 : fix link targets.
2009-06-30 16:35:11 +00:00
Georg Brandl
3cd0bedc13
#6384 : Add a heading for the exception hierarchy.
2009-06-30 16:18:55 +00:00
Georg Brandl
0d8649a1c9
#6374 : add a bit of explanation about shell=True on Windows.
2009-06-30 16:17:28 +00:00
Georg Brandl
3d5c87a23c
#6376 : fix copy-n-paste oversight.
2009-06-30 16:15:43 +00:00
Jesse Noller
34116922d3
Issue 5740: multiprocessing.connection.* authkey fixes
2009-06-29 18:24:26 +00:00
Jesse Noller
d4792cd84e
Bug 5906: add a documentation note for unix daemons vs. multiprocessing daemons
2009-06-29 18:20:34 +00:00
Benjamin Peterson
8e7b476945
update to sphinx 0.6.2
2009-06-29 03:30:55 +00:00
Mark Dickinson
11c4941b54
More Decimal quote fixing; backport of r73642
2009-06-28 21:48:15 +00:00
Kristján Valur Jónsson
e007860b8b
http://bugs.python.org/issue6267
...
Cumulative patch to http and xmlrpc
2009-06-28 21:04:17 +00:00
Ezio Melotti
b4ad395d07
Fixed a wrong apostrophe
2009-06-28 00:07:45 +00:00
Ezio Melotti
1dfd5d9f78
stmt and setup can contain multiple statements, see #5896
2009-06-27 23:45:39 +00:00
Benjamin Peterson
00a58c3574
link to extensive generator docs in the reference manual
2009-06-27 14:16:23 +00:00
Benjamin Peterson
f36bebd06f
document is_declared_global()
2009-06-26 23:37:06 +00:00
Benjamin Peterson
f511fcc743
mark 3.1 as stable docs
2009-06-26 16:49:06 +00:00
R. David Murray
5c3d40e0f3
Add a couple of missing function alias declarations to the turtle docs.
2009-06-25 14:21:06 +00:00
Kristján Valur Jónsson
f1d11efb72
http://bugs.python.org/issue6192
...
Move the newly introduced disable_nagle_algorithm flag into the StreamRequestHandler, where it is more appropriate.
2009-06-24 09:17:04 +00:00
Georg Brandl
5a85d5c4f2
#6332 : fix word dupes throughout the source.
2009-06-24 06:41:19 +00:00
Amaury Forgeot d'Arc
388637d373
Remove last remnants of the ipaddr package.
...
The changes in mcast.py come from the first version of the patch for issue5379.
2009-06-23 21:53:46 +00:00
Amaury Forgeot d'Arc
14fc673d4f
Remove the ipaddr module per discussion on python-dev
2009-06-23 21:09:09 +00:00
R. David Murray
4ee6d25b18
Improve English phrasing.
2009-06-22 22:11:04 +00:00
Nick Coghlan
7c2bc8308c
Issue 6288: update the contextlib.nested() docs to explain why it has been deprecated and should generally be avoided
2009-06-17 12:12:15 +00:00
Georg Brandl
476849c185
#6255 : document PyInt_FromSize_t.
2009-06-17 09:43:31 +00:00
Georg Brandl
2fcf389e10
#6295 : clarify blocking behavior of getch().
2009-06-17 09:36:21 +00:00
Raymond Hettinger
3a02624059
Add usage note.
2009-06-17 01:43:47 +00:00
Georg Brandl
f5af720a31
Add tabularcolumns directive for tables with bullet lists in them.
2009-06-16 17:41:33 +00:00
Tarek Ziadé
fdefc0a5a1
Fixed #6287 : documentation for the license field in distutils
2009-06-16 07:29:52 +00:00
Benjamin Peterson
248886a0cd
use 'rc' for release candidates for consistency
2009-06-13 14:25:08 +00:00
Antoine Pitrou
1969059327
Issue #6215 : backport the 3.1 io lib
2009-06-12 20:14:08 +00:00
Raymond Hettinger
2c0cdca564
Issue 6261: Clarify behavior of random.uniform().
2009-06-11 23:14:53 +00:00
Raymond Hettinger
2742e7e584
Move comment to correct line.
2009-06-11 22:08:10 +00:00
Raymond Hettinger
87be88c2e9
Add example of how to do key lookups with bisect().
2009-06-11 22:04:00 +00:00
Amaury Forgeot d'Arc
d81333c540
Fix a typo spotted by Nick Coghlan.
2009-06-10 20:30:19 +00:00
Amaury Forgeot d'Arc
d708c8703e
Both kind of types are concerned.
2009-06-09 23:18:50 +00:00
Amaury Forgeot d'Arc
901f200c81
#6201 : Fix test_winreg on Windows:
...
since the introduction of the SETUP_WITH opcode,
__enter__ and __exit__ methods must belong to the type,
and are not retrieved at the instance level (__dict__ or __getattr__).
Add a note in whatsnew about this incompatibility;
old style classes are not affected.
2009-06-09 23:08:13 +00:00
R. David Murray
ccb9d4b21c
Issue 2947: document how return code handling translates from
...
os.popen to subprocess. Also fixes reference link in the
os.spawn documentation.
2009-06-09 00:44:22 +00:00
Georg Brandl
2cc39ad242
#6238 : add fillchar to string.just function family.
2009-06-08 16:03:41 +00:00
Georg Brandl
e590d57d06
#6194 : O_SHLOCK/O_EXLOCK are not really more platform independent than lockf().
2009-06-08 13:34:52 +00:00
Georg Brandl
42a826408b
Remove period from end of headings.
2009-06-08 07:57:35 +00:00
Kristján Valur Jónsson
afefcfd4bf
http://bugs.python.org/issue6192
...
Add a feature to disable the Nagle algorithm on sockets in TCPServer
2009-06-07 16:43:23 +00:00
Georg Brandl
18187e2167
#6224 : s/JPython/Jython/, and remove one link to a module nine years old.
2009-06-06 18:21:58 +00:00
Georg Brandl
e3b9b5e4ed
#6204 : use a real reference instead of "see later".
2009-06-06 17:51:31 +00:00
Georg Brandl
4c324b9801
#6211 : elaborate a bit on ways to call the function.
2009-06-06 17:50:05 +00:00
Eric Smith
e7dbebbadf
Minor documentation fixes for logging.
2009-06-04 17:58:15 +00:00
Georg Brandl
5000b3b8a7
#6175 : document that inet_aton supports alternate input formats with less than three dots.
2009-06-04 10:27:21 +00:00
Georg Brandl
4a20b1ad51
#6176 : fix man page section for flock(2).
2009-06-04 10:22:31 +00:00
Georg Brandl
3a5971c237
#5967 : note that the C slicing APIs do not support negative indices.
2009-06-04 10:15:57 +00:00
Georg Brandl
0eca77c40c
#6174 : fix indentation in code example.
2009-06-03 21:21:09 +00:00
Georg Brandl
c1edec3374
Use the preferred form of raise statements in the docs.
2009-06-03 07:25:35 +00:00
Andrew M. Kuchling
764fbcb098
The class for regexes isn't called RegexObject any more; correct the text
2009-06-01 00:14:19 +00:00
R. David Murray
8fcaebbef4
Issue 3848: document the fact that epoll register raises an IOError if
...
an fd is registered twice, and add some additional epoll tests. Patch
by Christian Heimes.
2009-05-31 19:15:57 +00:00
Antoine Pitrou
4698d9928e
Issue #6152 : New option '-j'/'--multiprocess' for regrtest allows running
...
regression tests in parallel, shortening the total runtime.
2009-05-31 14:20:14 +00:00
Georg Brandl
d198b76d36
Fix markup.
2009-05-31 14:15:25 +00:00
Benjamin Peterson
d7ead0c23f
fix signature
2009-05-31 00:42:42 +00:00
Gregory P. Smith
2152ca390b
Add more examples to the ipaddr documentation.
2009-05-30 19:58:11 +00:00
Georg Brandl
2fcd17324d
Rewrap a few long lines.
2009-05-30 10:45:40 +00:00
Georg Brandl
6da0e6ac5a
Fix markup problem.
2009-05-30 10:34:25 +00:00
Georg Brandl
6a4689887c
Fix some more small markup problems.
2009-05-30 10:33:23 +00:00
Georg Brandl
7be493a86c
Use preferred form of raising exceptions.
2009-05-30 07:31:25 +00:00
Georg Brandl
ccbb47be5e
#6146 : fix markup bug.
2009-05-30 07:26:04 +00:00
Benjamin Peterson
ecf3c62440
no fdatasync on macos
2009-05-30 03:10:52 +00:00
Raymond Hettinger
b09f198362
Move the basic examples section back to the beginning.
2009-05-29 21:20:41 +00:00
Michael Foord
b4a81c838a
Add test discovery to unittest. Issue 6001.
2009-05-29 20:33:46 +00:00
R. David Murray
fe6e784a9d
Issue 6141: document that the first item of args is still the
...
command name even when executable is specified.
2009-05-29 19:30:27 +00:00
Raymond Hettinger
822b87f276
Deprecate contextlib.nested(). The with-statement now provides this functionality directly.
2009-05-29 01:46:48 +00:00
Benjamin Peterson
1075c9b431
switch library reference and language reference
2009-05-28 03:02:13 +00:00
Raymond Hettinger
a68cad13ae
Fix field name conflicts for named tuples.
2009-05-27 02:24:45 +00:00
Georg Brandl
4ee8282229
#6112 : list.remove raises ValueError, not RuntimeError.
2009-05-26 07:50:23 +00:00
Georg Brandl
944f684ce6
Allow multiple context managers in one with statement, as proposed
...
in http://codereview.appspot.com/53094 and accepted by Guido.
The construct is transformed into multiple With AST nodes so that
there should be no problems with the semantics.
2009-05-25 21:02:56 +00:00
Benjamin Peterson
1880d8b823
add a SETUP_WITH opcode
...
It speeds up the with statement and correctly looks up the special
methods involved.
2009-05-25 13:13:44 +00:00
Benjamin Peterson
176a56c69b
make class skipping decorators the same as skipping every test of the class
...
This removes ClassTestSuite and a good bit of hacks.
2009-05-25 00:48:58 +00:00
Gregory P. Smith
d03e1b4475
add a versionadded tag for set_tunnel
2009-05-24 18:00:13 +00:00
Senthil Kumaran
e266f25cf1
Fixed Issue1424152, urllib2 fails with HTTPS over Proxy.
2009-05-24 09:14:50 +00:00
Jeffrey Yasskin
655d835415
Issue #6042 :
...
lnotab-based tracing is very complicated and isn't documented very well. There
were at least 3 comment blocks purporting to document co_lnotab, and none did a
very good job. This patch unifies them into Objects/lnotab_notes.txt which
tries to completely capture the current state of affairs.
I also discovered that we've attached 2 layers of patches to the basic tracing
scheme. The first layer avoids jumping to instructions that don't start a line,
to avoid problems in if statements and while loops. The second layer
discovered that jumps backward do need to trace at instructions that don't
start a line, so it added extra lnotab entries for 'while' and 'for' loops, and
added a special case for backward jumps within the same line. I replaced these
patches by just treating forward and backward jumps differently.
2009-05-23 23:23:01 +00:00
Benjamin Peterson
91d517c54b
remove mention of old ctypes version
2009-05-23 20:59:09 +00:00
Georg Brandl
bc4af35f9e
#6086 : fix spelling and use a better exception to catch.
2009-05-22 10:40:00 +00:00
Georg Brandl
346a38dbc0
Correction in softspace behavior description.
2009-05-22 09:58:48 +00:00
Georg Brandl
e15048ea37
s/use/call/
2009-05-22 09:50:30 +00:00
Georg Brandl
22396da5ee
Fix confusing wording.
2009-05-22 09:49:42 +00:00
Georg Brandl
012408c2b9
Fix references to file-related functions and methods (os.* vs file.*).
2009-05-22 09:43:17 +00:00
Georg Brandl
fa0123b4fa
#6084 : fix example.
2009-05-22 09:33:25 +00:00
Georg Brandl
5a8d7eb7f1
Use raise X(y).
2009-05-22 07:23:32 +00:00
Philip Jenvey
739aa36818
don't use subprocess.call with PIPEs as the child can fill the pipe buf and
...
deadlock. add a warning to subprocess docs about this, similar to Popen.wait's.
refs http://bugs.jython.org/issue1351
2009-05-22 05:35:32 +00:00
Raymond Hettinger
9b6f13ee82
Fix-up moving average example.
2009-05-22 01:06:44 +00:00
Georg Brandl
ac2380b58a
#6051 : refer to email examples for better way to construct email messages.
2009-05-20 18:35:27 +00:00
Georg Brandl
498a9b3491
#6055 : refer to "sqlite3" consistently.
2009-05-20 18:31:14 +00:00
Raymond Hettinger
50f362fffa
Note that ordered dictionaries work with reversed().
2009-05-19 17:43:59 +00:00
Benjamin Peterson
5605416100
chop off slash
2009-05-17 16:59:27 +00:00
Benjamin Peterson
cadaf551e0
ignore .rst files in sphinx its self
2009-05-17 14:16:29 +00:00
Georg Brandl
903953c19e
#5935 : mention that BROWSER is looked for in PATH.
2009-05-17 08:55:00 +00:00
Georg Brandl
ee8e08b8b6
#5942 : Copy over flag table from dbm.rst which is clearer.
2009-05-17 08:36:04 +00:00
Georg Brandl
4c8b1c7a59
#6017 : better document behavior of dictiterators when the dict is changed.
2009-05-17 08:24:29 +00:00
Georg Brandl
5e88eea994
part of #4144 : fix exception message in console session.
2009-05-17 08:10:27 +00:00
Georg Brandl
c03cd4ca8e
Fix about and bugs pages to match real workflow.
2009-05-16 11:24:41 +00:00
Georg Brandl
d933cc293b
#2856 : document 2.x os.listdir() behavior for undecodable filenames.
2009-05-16 11:21:29 +00:00
Georg Brandl
14315d6513
#6009 : undocument default argument of Option as deprecated.
2009-05-16 11:18:55 +00:00
Georg Brandl
29d3a04618
#6025 : fix signature of parse().
2009-05-16 11:14:46 +00:00
Georg Brandl
8dc3b445ec
#6034 : clarify __reversed__ doc.
2009-05-16 11:13:21 +00:00
Georg Brandl
490096e760
Fix example output for doctest-like demos.
2009-05-15 08:03:03 +00:00
Benjamin Peterson
51d06abc99
importlib.import_module is better these days
2009-05-14 00:33:10 +00:00
R. David Murray
7118954914
Make it clear up front that shelve only records changes
...
when objects are assigned back to it when writeback is False.
2009-05-12 01:36:57 +00:00
Michael Foord
5d31e057c5
Adds a verbosity keyword argument to unittest.main plus a minor fix allowing you to specify test modules / classes
...
from the command line.
Closes issue 5995.
Michael Foord
2009-05-11 17:59:43 +00:00
Benjamin Peterson
3dabc10134
sys.setdefaultencoding() strikes me as a bad example
2009-05-10 23:52:09 +00:00
Jeffrey Yasskin
f7f858d141
Issue 5954, PyFrame_GetLineNumber:
...
Most uses of PyCode_Addr2Line
(http://www.google.com/codesearch?q=PyCode_Addr2Line ) are just trying to get
the line number of a specified frame, but there's no way to do that directly.
Forcing people to go through the code object makes them know more about the
guts of the interpreter than they should need.
The remaining uses of PyCode_Addr2Line seem to be getting the line from a
traceback (for example,
http://www.google.com/codesearch/p?hl=en#u_9_nDrchrw/pygame-1.7.1release/src/base.c&q=PyCode_Addr2Line ),
which is replaced by the tb_lineno field. So we may be able to deprecate
PyCode_Addr2Line entirely for external use.
2009-05-08 22:23:21 +00:00
Jeffrey Yasskin
1aa4700234
PyCode_NewEmpty:
...
Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New
are trying to build an empty code object, usually to put it in a dummy frame
object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify
just the filename, function name, and first line number, instead of also
requiring lots of code internals.
2009-05-08 21:51:06 +00:00
Georg Brandl
d8282eeb51
Fix name.
2009-05-08 12:17:34 +00:00
Eric Smith
7523234abf
Fixed wording for formatting integers: precision is not allowed.
2009-05-07 19:36:09 +00:00
R. David Murray
dd26681155
Revert inappropriate doc change.
2009-05-07 01:43:57 +00:00
R. David Murray
e202700f4f
Document how to pass a 'decode' argument to get_payload when
...
is_multipart is False.
2009-05-07 01:39:25 +00:00
Andrew M. Kuchling
1271662067
Remove two dead links
2009-05-06 22:54:19 +00:00
Eric Smith
a985a3aee4
Issue #5920 : Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson.
2009-05-05 18:26:08 +00:00
Georg Brandl
4d4313d59d
#5142 : add module skipping feature to pdb.
2009-05-05 08:54:11 +00:00
Georg Brandl
e3a3726b3d
#5916 , 5917: small socket doc improvements.
2009-05-04 20:49:17 +00:00
Georg Brandl
f5f045e470
#5927 , 5928: typos.
2009-05-04 20:45:13 +00:00
Georg Brandl
2ca9be4a0c
#5925 : fix highlighting of keyword table.
2009-05-04 20:42:08 +00:00
Gregory P. Smith
d02eedacab
Issue #4751 : For hashlib algorithms provided by OpenSSL, the Python
...
GIL is now released during computation on data lengths >= 2048 bytes.
2009-05-04 00:16:49 +00:00
Michael Foord
07ef487a96
2009-05-02 22:43:34 +00:00
Benjamin Peterson
2b42c29a50
add myself
2009-05-02 20:26:53 +00:00
Michael Foord
e2fb98f467
Add addCleanup and doCleanups to unittest.TestCase.
...
Closes issue 5679.
Michael Foord
2009-05-02 20:15:05 +00:00
Andrew M. Kuchling
92b970037b
Add items
2009-05-02 17:12:15 +00:00
Michael Foord
829f6b8052
Adds an exit parameter to unittest.main(). If False main no longer
...
calls sys.exit.
Closes issue 3379.
Michael Foord
2009-05-02 11:43:06 +00:00
Georg Brandl
24cc78ac61
Fix directive name.
2009-05-01 21:30:25 +00:00
Georg Brandl
b64b8278d1
Review ipaddr docs and add them in the TOC under "Internet protocols".
2009-05-01 21:28:35 +00:00
Gregory P. Smith
1d499265e0
Adds the ipaddr module to the standard library. Issue #3959 .
...
Based off of subversion r69 from http://code.google.com/p/ipaddr-py/
This code is 2to3 safe, I'll merge it into py3k later this afternoon.
2009-05-01 19:59:52 +00:00
Walter Dörwald
6733bed57e
Make test.test_support.EnvironmentVarGuard behave like a dictionary.
...
All changes are mirrored to the underlying os.environ dict, but rolled back
on exit from the with block.
2009-05-01 17:35:37 +00:00
R. David Murray
b01c6e53ed
Make the turtle.rst doctests pass. I have a feeling there should be
...
more cleanup, but I don't know now to kill turtles. Especially
unexpected ones... ;)
2009-04-30 12:42:32 +00:00
Georg Brandl
8c5326f103
#5878 : fix repr of re object.
2009-04-29 22:44:07 +00:00
Georg Brandl
f6dab9542c
Make the doctests in the docs pass, except for those in the turtle module.
2009-04-28 21:48:35 +00:00
R. David Murray
3b23c9c516
Remove spurious 'u'.
2009-04-28 19:02:55 +00:00
R. David Murray
636b23a96f
Various small fixups to the multiprocessing docs, mostly fixing and
...
enabling doctests that Sphinx can run, and fixing and disabling tests that
Sphinx can't run. I hand checked every test not now marked as a doctest,
and all except the two that have open bug reports against them now work,
at least on Linux/trunk. (I did not look at the last example at all since
there was already an open bug). I did not read the whole document with
an editor's eye, but I did fix a few things I noticed while working on
the tests.
2009-04-28 16:08:18 +00:00
Raymond Hettinger
8b8f8cc1b0
Add example to the seealso section.
2009-04-27 21:12:54 +00:00
R. David Murray
ec047e0725
Make sys.xxx variable references into links, note that print_last only
...
works when an exception gets to the interactive prompt, and update the
examples after testing. The last one is now a valid Sphinx doctest,
but of the preceding two one can't be made a doctest and the other one
I'm postponing to 3.x because sphinx handles doctests as Unicode strings
and that makes the 2.x output confusing.
2009-04-27 17:22:36 +00:00
Georg Brandl
2622b549d7
#5840 : dont claim we dont support TLS.
2009-04-27 17:09:53 +00:00
Georg Brandl
9bc668251f
#5848 : small unittest doc patch.
2009-04-27 17:04:23 +00:00
Georg Brandl
b44c9f357d
Demote warnings to notices, part 2: stuff that is 2.x-only.
2009-04-27 15:29:26 +00:00
Georg Brandl
16a57f6a34
Demote warnings to notices where appropriate, following the goal that as few "red box" warnings
...
should clutter the docs as possible. Part 1: stuff that gets merged to Py3k.
2009-04-27 15:29:09 +00:00
Georg Brandl
d91f8cf779
Remove ".. warning::" markup that doesnt contain warnings for users, rather todo items.
2009-04-27 15:10:44 +00:00
Georg Brandl
e1b79ce17e
#5856 : fix typo s in traceback example.
2009-04-27 15:09:25 +00:00