Éric Araujo
5f7f6150c3
Merge 3.2
2011-11-15 16:13:16 +01:00
Éric Araujo
3f2ba3bd86
Branch merge
2011-11-15 16:12:22 +01:00
Éric Araujo
4d15546504
Remove obsolete verbose arguments from packaging.
...
Logging replaces verbose arguments. I haven’t fixed the example in
Doc/install/install.rst because I have major fixes and changes to the
oc under way and will fix or remove that example as part of that task.
2011-11-15 11:43:20 +01:00
Jesus Cea
f450c1b9e0
reST fixes for /dev/poll
2011-11-15 05:42:59 +01:00
Antoine Pitrou
9a812cbc89
Issue #13389 : Full garbage collection passes now clear the freelists for
...
list and dict objects. They already cleared other freelists in the
interpreter.
2011-11-15 00:00:12 +01:00
Jesus Cea
d8b9ae6e8f
Issue #6397 : Support '/dev/poll' polling objects in select module, under Solaris & derivatives.
2011-11-14 19:07:41 +01:00
Éric Araujo
0efc419d4a
Adapt test and example after e39d1b6f0856.
...
Tarek’s commit fixed the way packaging configuration file markers are
split under Windows, but these two files were not edited.
2011-11-14 18:21:38 +01:00
Éric Araujo
bfc972974b
Fix a few typos
2011-11-14 18:18:15 +01:00
Éric Araujo
f8361623f0
Clean up byte-compilation code in packaging ( #11254 followup).
...
- Don't use keyword arguments for debug_override; I find it more
readable to have a comment explaining that True makes pyc and False
pyo than to write out the non-obvious (when you haven’t read the doc)
argument name
- Move duplicate code from build_py and install_lib into cmd
- Remove obsolete verbose argument of util.byte_compile
- Remove obsolete passing of -O/-OO to the Python process spawned by
util.byte_compile (I’ll remove the whole spawning later, after I write
more tests to check the contents of pyc and pyo files; now that
byte_compile does not depend on the value of __debug__ in the calling
Python, we can call py_compile or compileall directly)
2011-11-14 18:10:19 +01:00
Éric Araujo
04e6909845
Fix markup
2011-11-14 18:00:48 +01:00
Eli Bendersky
bf9d34ce7e
Issue 12767: document the argument of threading.Condition.notify
2011-11-12 20:46:54 +02:00
Eli Bendersky
d44af82e62
Issue #12767 : documenting threading.Condition.notify
2011-11-12 20:44:25 +02:00
Florent Xicluna
f8240d6564
Merge 3.2, doc typos.
2011-11-11 19:58:53 +01:00
Florent Xicluna
599d76b275
Reformat paragraphs.
2011-11-11 19:56:26 +01:00
Florent Xicluna
45c6c3eb71
Few typos in the documentation.
2011-11-11 19:55:21 +01:00
Eli Bendersky
28a08205c5
Issue #13191 : typo in argparse docs
2011-11-11 10:58:36 +02:00
Eli Bendersky
a7795dbe9a
Issue #13191 : typo in argparse docs
2011-11-11 10:57:01 +02:00
Eli Bendersky
6e9002c8e0
Issue #13365 : correct an error in the documentation of str.expandtabs. Patch by John Feuerstein
2011-11-11 10:44:22 +02:00
Eli Bendersky
c2c896093b
Issue #13365 : correct an error in the documentation of str.expandtabs
2011-11-11 10:40:14 +02:00
Victor Stinner
9f4b1e9c50
Fix and deprecated the unicode_internal codec
...
unicode_internal codec uses Py_UNICODE instead of the real internal
representation (PEP 393: Py_UCS1, Py_UCS2 or Py_UCS4) for backward
compatibility.
2011-11-10 20:56:30 +01:00
Charles-François Natali
10b8cf4455
Issue #7777 : socket: Add Reliable Datagram Sockets (PF_RDS) support.
2011-11-10 19:21:37 +01:00
Ezio Melotti
257a14c2a5
Refactor functions signatures in the doc.
2011-11-09 00:25:47 +02:00
Brian Curtin
4b6fabdff1
Backed out changeset 60ae7979fec8
2011-11-08 14:54:02 -06:00
Brian Curtin
e751d6f2f1
Remove the old style [...] to denote optional args and show the defaults.
2011-11-08 14:30:02 -06:00
Nick Coghlan
32e4a58c06
Issue #13237 : Fix formatting error - the legacy shell commands weren't meant to be under the Notes heading
2011-11-08 21:50:58 +10:00
Nick Coghlan
69ce0d8602
Issue #13237 : Remove duplicate data value descriptions from the subprocess docs
2011-11-08 21:39:07 +10:00
Nick Coghlan
c29248f232
Issue #13237 : Forward port subprocess module updates and explicitly document UTF-8 encoding assumption when universal_newlines=True
2011-11-08 20:49:23 +10:00
Éric Araujo
06c42a3fca
Document that shutil.make_archive does not typecheck its logger argument
2011-11-07 17:31:07 +01:00
Nick Coghlan
217f05b3ed
Issue #13237 : Forward port from 3.2 of subprocess documentation updates. Needed quite a few adjustments to account for new features coming in 3.3
2011-11-08 22:11:21 +10:00
Brian Curtin
569b494320
Fix #13327 . utimensat now has the atime and mtime arguments set as optional,
...
defaulting to None like the other utimes family members. It now accepts
keyword arguments because, unlike other other functions in the family,
it has a `flags` value at the end of the argument list (which
retains its 0 default).
2011-11-07 16:09:20 -06:00
Brian Curtin
ca0fbc02e9
branch merge
2011-11-07 14:19:46 -06:00
Brian Curtin
c1b65d1831
Fix 13327. Remove explicit None arguments from futimes, futimens, futimesat,
...
and lutimes.
2011-11-07 14:18:54 -06:00
Éric Araujo
1cdbf57c7c
Merge 3.2
2011-11-07 18:11:27 +01:00
Brian Curtin
52fbea1d87
Fix #13327 . Remove the need for an explicit None as the second argument to
...
os.utime in order to update to the current time. The second argument is now
optional.
2011-11-06 13:41:17 -06:00
Amaury Forgeot d'Arc
864741b2c7
Issue #13350 : Replace most usages of PyUnicode_Format by PyUnicode_FromFormat.
2011-11-06 15:10:48 +01:00
Benjamin Peterson
878ce389a0
add introspection to range objects ( closes #9896 )
...
Patch by Daniel Urban.
2011-11-05 15:17:52 -04:00
Petri Lehtinen
064e39330d
Issue #3067 : Enhance the documentation and docstring of locale.setlocale()
2011-11-05 10:22:03 +02:00
Petri Lehtinen
395ca72380
Issue #3067 : Enhance the documentation and docstring of locale.setlocale()
2011-11-05 10:21:16 +02:00
Éric Araujo
146f870916
Branch merge
2011-11-03 16:44:13 +01:00
Éric Araujo
9c2f42f253
Branch merge
2011-11-03 16:27:57 +01:00
Éric Araujo
e64052176d
Merge follow-up for #11254 and other changes from 3.2
2011-11-03 05:17:11 +01:00
Éric Araujo
880801501b
Improve byte-compilation in packaging to be independent of -O or -B.
...
The code I fixed to comply with PEP 3147 still had one bug: When run
under python -O, some paths for pyc files would be pyo, because I called
imp.cache_from_source without explicit debug_override argument in some
places, and under -O that would return .pyo (this is well explained in
the imp docs). Now all code (util.byte_compile, build_py, install_lib)
can create .pyo files according to options given by users,
without interference from the calling Python’s own optimize mode.
On a related topic, I also removed the code that prevented byte
compilation under python -B. The rationale is that packaging gives
control over the creation of pyc files to the user with its own explicit
option, and the behavior should not be changed if the calling Python
happens to run with -B for whatever reason. I will argue that this is a
bug fix and ask to be allowed to backport this change to distutils.
Finally, I moved one nugget of information about the --compile and
--optimize options from the source into the doc. It clears up a
misunderstanding that I (and maybe other people) had.
2011-11-03 05:08:28 +01:00
Éric Araujo
a083823a85
Avoid relying on the default reST role in logging library doc
2011-11-03 04:35:20 +01:00
Éric Araujo
3bb1a6f990
State explicitely that PYTHONDONTWRITEBYTECODE is equivalent to -B
2011-11-03 03:20:43 +01:00
Victor Stinner
df5bccc8a3
(Merge 3.2) Issue #10570 : curses.tigetstr() is now expecting a byte string,
...
instead of a Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong.
2011-11-02 23:47:58 +01:00
Victor Stinner
2662133a05
Issue #10570 : curses.tigetstr() is now expecting a byte string, instead of a
...
Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong.
2011-11-02 23:45:29 +01:00
Ezio Melotti
7de56f6a04
#670664 : Fix HTMLParser to correctly handle the content of ``<script>...</script>`` and ``<style>...</style>``.
2011-11-01 14:12:22 +02:00
Sandro Tosi
4bfe03a42e
correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from docs@
2011-11-01 10:32:05 +01:00
Sandro Tosi
53bcd66012
use diveintopython.net now that DIP.org returns 410; thanks to Josh Gachnang from docs@
2011-10-31 17:46:04 +01:00
Sandro Tosi
69e59a17dd
remove confusing paragraph (as part of r87523); thanks to AJ Hill from docs@
2011-10-31 17:15:39 +01:00
Sandro Tosi
e348455f5f
document turtle done() function; thanks to Csaba Szepesvari from docs@
2011-10-31 10:12:43 +01:00
Sandro Tosi
567493fe26
caught is the right pp of catch; thanks to Don Bennett from docs@
2011-10-31 02:41:06 +01:00
Raymond Hettinger
6f45d18c24
Improve itertools docs with clearer examples of pure python equivalent code.
2011-10-30 15:06:14 -07:00
Ezio Melotti
f54f6f520d
Add a button to the code examples in the doc to show/hide the prompts and output.
2011-10-30 09:20:19 +02:00
Florent Xicluna
305bb662a9
Documentation typo
2011-10-28 22:14:41 +02:00
Florent Xicluna
83386dac8b
I should be someone
2011-10-28 22:03:55 +02:00
Ezio Melotti
f99e4b5dbe
Improve HTMLParser example in the doc and fix a couple minor things.
2011-10-28 14:34:56 +03:00
Ezio Melotti
0b85cd0680
Merge heads.
2011-10-28 12:32:53 +03:00
Ezio Melotti
d3cf0db3ee
#13278 : fix typo.
2011-10-28 12:22:25 +03:00
Florent Xicluna
74e6495a20
Fixes #13270 : obsolete reference to old-style/new-style classes.
2011-10-28 11:21:19 +02:00
Vinay Sajip
6187664fa7
Added lost documentation cross-reference.
2011-10-27 17:50:55 +01:00
Ezio Melotti
fbb39815d4
Refactor a bit the codecs doc.
2011-10-25 10:40:38 +03:00
Ezio Melotti
963004d1d8
Fix typo.
2011-10-25 09:41:13 +03:00
Benjamin Peterson
1fafc1a11f
document __bytes__ special method ( closes #13259 )
2011-10-25 00:03:51 -04:00
Benjamin Peterson
d6ca6c2b32
note callable is back in 3.2
2011-10-24 08:51:15 -04:00
Florent Xicluna
023611f34e
Issue 13141: Demonstrate recommended style for socketserver examples.
2011-10-23 22:40:37 +02:00
Petri Lehtinen
ce77037503
Add the green "New reference" note to the doc of PyException_GetTraceback()
2011-10-23 21:03:33 +03:00
Ezio Melotti
cd1d3ef77b
#13233 : fix typo.
2011-10-20 19:51:18 +03:00
Ezio Melotti
81231d9379
#13219 : clarify section about character sets in the re documentation.
2011-10-20 19:38:04 +03:00
Raymond Hettinger
af37b89240
Issue 12668: Fix wording in Whatsnew3.2
2011-10-19 14:16:18 -07:00
Raymond Hettinger
5768e0c788
Issue 11931: Minor punctuation/grammar/wording fixups to the regex docs
2011-10-19 14:10:07 -07:00
Senthil Kumaran
29fa9d4d68
3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
...
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
2011-10-20 01:46:00 +08:00
Ezio Melotti
e130a52d8a
Remove duplication.
2011-10-19 10:58:56 +03:00
Ezio Melotti
67494f2224
#12277 : add missing comma.
2011-10-18 12:59:39 +03:00
Éric Araujo
9be57231dd
Update dead references from py.org/dev/faq to the devguide ( #13176 )
2011-10-14 17:37:45 +02:00
Ezio Melotti
7903913fa6
#670664 : merge with 3.2.
2011-11-01 14:14:15 +02:00
Sandro Tosi
b6dbc9ee15
merge with 3.2
2011-11-01 10:32:22 +01:00
Ross Lagerwall
59142db6d3
Issue #12797 : Added custom opener parameter to builtin open() and FileIO.open().
2011-10-31 20:34:46 +02:00
Sandro Tosi
6a57afee04
merge with 3.2
2011-10-31 17:46:25 +01:00
Sandro Tosi
d856bc0582
merge with 3.2
2011-10-31 17:16:03 +01:00
Sandro Tosi
8f7bded7e0
merge with 3.2
2011-10-31 10:13:30 +01:00
Sandro Tosi
9bf59aa103
merge with 3.2
2011-10-31 02:42:06 +01:00
Raymond Hettinger
5d12faa5b8
Merge
2011-10-30 15:07:01 -07:00
Ezio Melotti
afe471d7d2
Merge the button to show/hide the prompts and output from 3.2.
2011-10-30 09:37:46 +02:00
Florent Xicluna
608cab54e4
Merge 3.2
2011-10-28 22:16:23 +02:00
Florent Xicluna
d39a4d755a
Merge 3.2
2011-10-28 22:05:12 +02:00
Ezio Melotti
ac73b0c95e
Merge HTMLParser doc changes from 3.2.
2011-10-28 14:36:11 +03:00
Ezio Melotti
455036fd1f
#13278 : merge with 3.2.
2011-10-28 12:33:27 +03:00
Florent Xicluna
acfc97a05a
Merge 3.2
2011-10-28 11:23:25 +02:00
Antoine Pitrou
f3dc2d7afd
Fix typo
2011-10-28 00:01:03 +02:00
Antoine Pitrou
873bf262ad
Update example of non-blocking SSL code for the new finer-grained exceptions
2011-10-27 23:59:03 +02:00
Antoine Pitrou
41032a69c1
Issue #11183 : Add finer-grained exceptions to the ssl module, so that
...
you don't have to inspect the exception's attributes in the common case.
2011-10-27 23:56:55 +02:00
Vinay Sajip
b5cab85dc7
Merged documentation fix from 3.2.
2011-10-27 17:53:19 +01:00
Victor Stinner
7592d0513e
Fix the issue number of my cp65001 commit: 13247 => issue #13216
2011-10-27 01:43:48 +02:00
Victor Stinner
2f3ca9f20e
Close #13247 : Add cp65001 codec, the Windows UTF-8 (CP_UTF8)
2011-10-27 01:38:56 +02:00
Ezio Melotti
f7f0a66a8f
Fix typos.
2011-10-25 17:22:22 +03:00
Victor Stinner
8b905bd9d4
Issue #13226 : Add RTLD_xxx constants to the os module. These constants can by
...
used with sys.setdlopenflags().
2011-10-25 13:34:04 +02:00
Victor Stinner
e0be423297
Close #10278 : Add clock_getres(), clock_gettime() and CLOCK_xxx constants to
...
the time module. time.clock_gettime(time.CLOCK_MONOTONIC) provides a monotonic
clock
2011-10-25 13:06:09 +02:00
Ezio Melotti
92b958420e
Merge the codecs doc refactoring with 3.2.
2011-10-25 10:41:37 +03:00
Ezio Melotti
7a03f64c2e
Remove mention of narrow/wide builds in the codecs doc.
2011-10-25 10:30:19 +03:00
Ezio Melotti
90bf5f1171
Remove mention of narrow/wide builds and update array doc, add a test.
2011-10-25 10:05:34 +03:00
Ezio Melotti
c99c85899a
Remove mention of narrow/wide builds from ord/chr doc.
2011-10-25 09:32:34 +03:00
Ezio Melotti
f4d76e6ca7
#13251 : update string description in datamodel.rst.
2011-10-25 09:23:42 +03:00
Benjamin Peterson
3ed559a3c7
merge 3.2 ( #13259 )
2011-10-25 00:04:10 -04:00
Benjamin Peterson
b4d8e912d7
merge 3.2
2011-10-24 08:52:30 -04:00
Antoine Pitrou
037ffbf182
Improve the porting section
2011-10-24 00:25:41 +02:00
Antoine Pitrou
fd9b4166bb
Improve / clean up the PEP 393 description
2011-10-24 00:14:43 +02:00
Antoine Pitrou
01fd26c746
Improve description of PEP 3151
2011-10-24 00:07:02 +02:00
Antoine Pitrou
767c0a82ad
Mention InterruptedError in the doc for new function signal.sigwaitinfo
2011-10-23 23:52:23 +02:00
Ezio Melotti
2d99dac479
Use ``...`` for string literals.
2011-10-24 00:44:03 +03:00
Florent Xicluna
dcbb822c08
Fix documentation formatting.
2011-10-23 23:37:46 +02:00
Florent Xicluna
72ca42af8b
Merge heads
2011-10-23 22:47:56 +02:00
Florent Xicluna
e9126b5e3b
Merge 3.2
2011-10-23 22:44:19 +02:00
Ezio Melotti
26358cc403
Remove obsolete FAQ.
2011-10-23 23:42:51 +03:00
Florent Xicluna
6d57d212a8
Documentation typo.
2011-10-23 22:23:57 +02:00
Mark Dickinson
36645681c8
Issue #13201 : equality for range objects is now based on equality of the underlying sequences. Thanks Sven Marnach for the patch.
2011-10-23 19:53:01 +01:00
Petri Lehtinen
a2a2e480f3
Merge 3.2
2011-10-23 21:07:50 +03:00
Antoine Pitrou
57735a0d6a
Add missing prefixes
2011-10-22 22:08:46 +02:00
Antoine Pitrou
b965b3938a
Elaborate on representations and canonical/legacy unicode objects
2011-10-22 22:08:05 +02:00
Antoine Pitrou
e6b99a1832
Move deprecated functions at the end of their respective sections.
2011-10-22 21:56:20 +02:00
Éric Araujo
661161ed86
Avoid relying on the default reST role in logging library doc
2011-10-22 19:29:48 +02:00
Éric Araujo
df7b66546c
Fix text duplication. Spotted by Nick Coghlan, thanks!
2011-10-22 01:44:36 +02:00
Ezio Melotti
931b8aac80
#12753 : Add support for Unicode name aliases and named sequences.
2011-10-21 21:57:36 +03:00
Éric Araujo
3764a964ca
Banch merge
2011-10-21 15:52:10 +02:00
Vinay Sajip
04d5bc00a2
Closes #13235 : Added deprecation for warn() methods and function in logging.
2011-10-21 07:33:42 +01:00
Éric Araujo
4d4b19e294
Document that packaging doesn’t create __init__.py files ( #3902 ).
...
The bug reported expected distutils to create an __init__.py file for a
project using only C extension modules. IMO, how Python imports
packages and submodules is well documented, and it’s never suggested
that distutils might create an __init__.py file, so I’m adding this
clarification to the packaging docs but won’t backport unless other
people tell me they shared the same wrong expectation.
Thanks to Mike Hoy for his help with the patch.
2011-10-21 07:34:00 +02:00
Antoine Pitrou
ac65d96777
Issue #12170 : The count(), find(), rfind(), index() and rindex() methods
...
of bytes and bytearray objects now accept an integer between 0 and 255
as their first argument. Patch by Petri Lehtinen.
2011-10-20 23:54:17 +02:00
Ezio Melotti
27607290a6
#13219 : merge with 3.2.
2011-10-20 19:40:44 +03:00
Raymond Hettinger
cd9fdfd652
Issue 13227: Option to make the lru_cache() type specific (suggested by Andrew Koenig).
2011-10-20 08:57:45 -07:00
Victor Stinner
e3455c026a
Mention that os.O_CLOEXEC was added to Python 3.3
2011-10-20 00:46:21 +02:00
Raymond Hettinger
587e75c70b
merge
2011-10-19 14:16:47 -07:00
Raymond Hettinger
eeb905bd7b
Merge
2011-10-19 14:10:37 -07:00
Raymond Hettinger
becd56822a
Issue #13121 : Support in-place math operators for collections.Counter().
2011-10-19 13:40:37 -07:00
Éric Araujo
3bb8be6d78
Branch merge
2011-10-19 21:32:39 +02:00
Senthil Kumaran
a41c942685
Doc improvements suggested by Éric Araujo for the new 'HEAD' Request feature.
2011-10-20 02:37:08 +08:00
Senthil Kumaran
7e3062b320
default - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
...
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
2011-10-20 01:52:41 +08:00
Florent Xicluna
95483b6a19
Fix warning while building documentation.
2011-10-19 11:44:51 +02:00
Ezio Melotti
f10644983e
Merge with 3.2.
2011-10-19 11:06:26 +03:00
Éric Araujo
79d9c42b04
Add reST targets to sections of the setup.cfg spec, improve wording
2011-10-19 08:41:07 +02:00
Victor Stinner
3a50e7056e
Issue #12281 : Rewrite the MBCS codec to handle correctly replace and ignore
...
error handlers on all Windows versions. The MBCS codec is now supporting all
error handlers, instead of only replace to encode and ignore to decode.
2011-10-18 21:21:00 +02:00
Ezio Melotti
bb8606dae3
#12277 : merge with 3.2.
2011-10-18 13:00:36 +03:00
Senthil Kumaran
de49d64dbc
Fix closes issue 1673007 urllib.request to support HEAD requests with a new method arg.
2011-10-16 23:54:44 +08:00
Éric Araujo
ab7e2a4454
Merge 3.2
2011-10-14 17:38:10 +02:00
Victor Stinner
e506437b52
What's new in Python 3.3: document new functions of the os module
2011-10-14 00:08:29 +02:00
Victor Stinner
69db2dbcbe
Fix typo in the os doc: lremoveattr => lremovexattr
2011-10-14 00:07:53 +02:00
Victor Stinner
a1bf298454
What's New in Python 3.3: mention the PEP 3151
2011-10-12 20:35:02 +02:00
Antoine Pitrou
62ab10a05a
Replace mentions of IOError
2011-10-12 20:10:51 +02:00
Antoine Pitrou
1e4fe702f6
This shameful limitation of the fileinput module is not relevant anymore.
2011-10-12 19:11:12 +02:00
Antoine Pitrou
4272d6a315
Fix some mentions of IOError
2011-10-12 19:10:10 +02:00
Antoine Pitrou
a787b650d4
Fix mentions of IOError in the io module docs
2011-10-12 19:02:52 +02:00
Antoine Pitrou
f55011f8b6
Update doc for BlockingIOError and its alias in the io module
2011-10-12 18:57:23 +02:00
Antoine Pitrou
442ee03d35
Replace mentions of WindowsError
2011-10-12 18:53:23 +02:00
Antoine Pitrou
771dea7755
Replace a mention of EnvironmentError in the distutils docs.
2011-10-12 18:35:18 +02:00
Antoine Pitrou
23a580fd78
Update index entries
2011-10-12 18:33:15 +02:00
Antoine Pitrou
9a4a342b78
Update the C-API docs for exception types
2011-10-12 18:28:01 +02:00
Antoine Pitrou
5574c3012d
Replace mentions of socket.error.
2011-10-12 17:53:43 +02:00
Antoine Pitrou
195e702831
Mention the merging of other exceptions into OSError.
2011-10-12 16:46:46 +02:00
Antoine Pitrou
9b7fcf8c2e
Minimal update of select docs for PEP 3151.
2011-10-12 16:23:02 +02:00
Antoine Pitrou
70fa31c936
Minimal update of socket docs for PEP 3151.
...
More editing is probably desirable.
2011-10-12 16:20:53 +02:00
Antoine Pitrou
f9c774696e
Update exceptions doc for PEP 3151
2011-10-12 16:02:00 +02:00
Mark Dickinson
1c027e564f
Merge issue #13145 fix.
2011-10-11 18:07:19 +01:00
Mark Dickinson
f1ab47ebc4
Issue #13145 . Fix incorrect documentation for PyNumber_ToBase. Thanks Sven Marnach.
2011-10-11 18:06:36 +01:00
Ezio Melotti
a6968edcb0
Merge whatsnew fixes with 3.2.
2011-10-10 00:31:00 +03:00
Ezio Melotti
4e15828640
Fix/improve markup in whatsnew/2.7.
2011-10-10 00:30:14 +03:00
Ezio Melotti
5b194cc8fb
#13138 : merge with 3.2.
2011-10-10 00:03:15 +03:00
Ezio Melotti
138fc896c8
#13138 : add missing versionadded.
2011-10-10 00:02:03 +03:00
Raymond Hettinger
be22d1d82a
Clean-up and improve the priority queue example in the heapq docs.
2011-10-09 17:29:14 +01:00
Raymond Hettinger
df7c4cde48
Clean-up and improve the priority queue example in the heapq docs.
2011-10-09 17:28:14 +01:00
Éric Araujo
9255464dfb
Branch merge
2011-10-09 08:55:04 +02:00
Georg Brandl
388349add2
Closes #12192 : Document that mutating list methods do not return the instance (original patch by Mike Hoy).
2011-10-08 18:32:40 +02:00
Éric Araujo
a29e4f64c1
Fix packaging byte-compilation to comply with PEP 3147 ( #11254 ).
...
I want to replace custom byte-compiling function with calls to
compileall before 3.3b1, but in the short term it’s good to have this
fixed.
Adapted from the distutils patch by Jeff Ramnani. I tested with -B, -O
and -OO; test_util and test_mixin2to3 fail in -O mode because lib2to3
doesn’t support it.
2011-10-08 04:09:15 +02:00
Éric Araujo
6ebea15e0b
Merge fixes for #10526 , #10359 , #11254 , #9100 and the bug without number
2011-10-08 02:57:45 +02:00
Éric Araujo
47a4521ece
Fix distutils byte-compilation to comply with PEP 3147 ( #11254 ).
...
Patch by Jeff Ramnani. Tested with -B, -O and -OO.
2011-10-08 00:34:13 +02:00
Éric Araujo
35a502b324
Fix a typo and a broken link (part of #10536 ).
...
Found by Franz Glasner in #2504 .
2011-10-07 22:02:58 +02:00
Martin v. Löwis
2da16e61f5
Fix indentation.
2011-10-07 20:58:00 +02:00
Martin v. Löwis
c47adb04b3
Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE.
2011-10-07 20:55:35 +02:00
Antoine Pitrou
756b169c5a
Issue #12823 : remove broken link and replace it with another resource.
2011-10-07 16:58:35 +02:00
Antoine Pitrou
f394e47851
Issue #12823 : remove broken link and replace it with another resource.
2011-10-07 16:58:07 +02:00
Meador Inge
14c0f03b58
Issue #12943 : python -m tokenize support has been added to tokenize.
2011-10-07 08:53:38 -05:00
Georg Brandl
db6c7f5c33
Update C API docs for PEP 393.
2011-10-07 11:19:11 +02:00
Victor Stinner
b09460f038
Issue #10141 : Don't use hardcoded frame size in example, use struct.calcsize()
2011-10-06 20:27:20 +02:00
Charles-François Natali
47413c1171
Issue #10141 : socket: add SocketCAN (PF_CAN) support. Initial patch by Matthias
...
Fuchs, updated by Tiago Gonçalves.
2011-10-06 19:47:44 +02:00
Antoine Pitrou
45d9c91d4b
Issue #3163 : The struct module gets new format characters 'n' and 'N'
...
supporting C integer types `ssize_t` and `size_t`, respectively.
2011-10-06 15:27:40 +02:00
Éric Araujo
0f4ee93b06
Branch merge
2011-10-06 13:22:21 +02:00
Éric Araujo
bb2095f1e2
Branch merge
2011-10-06 13:10:34 +02:00
Senthil Kumaran
ad87fa6719
Issue #13073 - Address the review comments made by Ezio.
2011-10-05 23:26:49 +08:00
Éric Araujo
1079bdfde3
Merge 3.2
2011-10-05 01:52:45 +02:00
Éric Araujo
58a9153c9f
Fix markup used in the documentation of sys.prefix and sys.exec_prefix.
...
- Using the file role with {placeholders} is IMO clearer than fake
Python code.
- The fact that sys.version[:3] gives '3.2' is a CPython detail and
should not be advertised (see #9442 ), even if some stdlib modules
currently rely on that detail.
2011-10-05 01:28:24 +02:00
Éric Araujo
da27263b4a
Move doc of sys.dont_write_bytecode to make all attributes sorted again
2011-10-05 01:17:38 +02:00
Éric Araujo
525b1e9dd4
Fix minor wording issue.
...
sys.maxunicode is not called and thus does not return anything; it *is*
something. (I checked the doc quickly to see if it tells that
expression return things but found nothing.)
I also removed markup that would just generate a useless link to the
enclosing section.
2011-10-05 01:06:31 +02:00
Éric Araujo
5043f0904b
More info about PEP 393 in whatsnew and NEWS
2011-10-05 01:04:18 +02:00
Éric Araujo
b07b97f3a4
Minor updates to the whatsnew maintenance rules
2011-10-05 01:03:34 +02:00
Senthil Kumaran
91a076a72f
merge from 3.2. Issue #13073 - Address the review comments made by Ezio.
2011-10-05 23:27:37 +08:00
Senthil Kumaran
5d0de3fbaa
Document message_body arg in HTTPConnection.endheaders
2011-10-03 07:27:06 +08:00
Senthil Kumaran
0069be19e5
merge from 3.2 - Document message_body arg in HTTPConnection.endheaders
2011-10-03 07:28:00 +08:00
Ezio Melotti
6fe679f011
#13076 : merge with 3.2.
2011-10-02 12:47:10 +03:00
Ezio Melotti
35ec7f771b
#13076 : fix links to datetime.time and datetime.datetime.
2011-10-02 12:44:50 +03:00
Ezio Melotti
397546ac2f
Update and reorganize the whatsnew entry for PEP 393.
2011-09-29 08:34:36 +03:00
Victor Stinner
7d637ab870
Complete What's New in 3.3 about PEP 393
2011-09-29 02:56:16 +02:00
Ezio Melotti
48a2f8fd97
#13054 : sys.maxunicode is now always 0x10FFFF.
2011-09-29 00:18:19 +03:00
Georg Brandl
ee12f4429c
Add versionadded directive to new API function.
2011-09-28 21:51:06 +02:00
Martin v. Löwis
d63a3b8beb
Implement PEP 393.
2011-09-28 07:41:54 +02:00
Georg Brandl
f0c51fabe8
Fix markup.
2011-09-27 07:30:00 +02:00
Senthil Kumaran
85579b8f0e
merge 3.2. Fix closes issue13005 - Remove the mention of 'repeat' method in the operator module documentation.
2011-09-22 02:10:09 +08:00
Senthil Kumaran
17dac4c0e2
Fix closes issue13005 - Remove the mention of 'repeat' method in the operator module documentation.
2011-09-22 02:09:17 +08:00
Éric Araujo
9c0cccf363
Branch merge
2011-09-21 16:36:08 +02:00
Éric Araujo
dd2d55c8a1
Remove two unneeded attributes in packaging
2011-09-21 16:28:03 +02:00
Meador Inge
c5dbb3dadf
Issue #1172711 : Update What's New in Python 3.3 document for the array module.
...
The commit fixes 3c56e546dc60, which documented #1172711 as a struct module
change; it is an array module change.
2011-09-20 21:48:16 -05:00
Victor Stinner
c78fb33f81
What's New in Python 3.3: add curses.unget_wch()
2011-09-21 03:35:44 +02:00
Victor Stinner
9415afcce1
meth.log2 doc: add a link to int.bit_length()
2011-09-21 03:35:18 +02:00
Victor Stinner
811db3b715
Issue #1172711 : Update What's New in Python 3.3 document for the struct module
2011-09-21 03:20:03 +02:00
Meador Inge
1c9f0c93ad
Issue #1172711 : Add 'long long' support to the array module.
...
Initial patch by Oren Tirosh and Hirokazu Yamamoto.
2011-09-20 19:55:51 -05:00
Nick Coghlan
2496f331a7
Close issue 12958 by flagging expected failures in test_socket on Mac OS X
2011-09-19 20:26:31 +10:00
Georg Brandl
ddd2d70cc6
Merge example fix from 3.2.
2011-09-18 07:40:20 +02:00
Georg Brandl
1d678f8413
Fix bug in heapq priority queue example.
2011-09-18 07:40:05 +02:00
Georg Brandl
902e895578
merge doc fixes from 3.2
2011-09-17 20:40:35 +02:00
Georg Brandl
73dd7c71f6
Add info from the docstring for random.gammavariate() to the docs.
2011-09-17 20:36:28 +02:00
Georg Brandl
755460694e
Fix typo.
2011-09-17 20:20:04 +02:00
Éric Araujo
faabef548d
Branch merge
2011-09-12 17:34:40 +02:00
Éric Araujo
cde6576820
Remove unneeded --all option of “pysetup list”.
...
The command without arguments already prints all installed distributions
found.
In addition, change “releases” for “projects” in the description of the
list action. Strictly speaking, one installed distribution satisfies
the requirement for a release (i.e. version) of a project, but as
currently only one release per project can be installed at a time, the
two are somewhat equivalent, and “project” is more understandable in
help texts (which call their argument “dist”, by the way..)
2011-09-12 16:45:38 +02:00
Nadeem Vawda
1c82a14e86
Oops, zlib.ZLIB_VERSION isn't new in 3.3 - just newly-documented...
2011-09-12 00:09:27 +02:00
Nadeem Vawda
7cd4f203c0
Terminology fix: .gz and .bz2 are not archive formats.
2011-09-12 00:06:49 +02:00
Nadeem Vawda
64d25ddb9c
Issue #12306 : Add ZLIB_RUNTIME_VERSION to the zlib module.
...
While we're at it, also document ZLIB_VERSION.
Patch by Torsten Landschoff.
2011-09-12 00:04:13 +02:00
Ezio Melotti
d964ee9cd5
#12940 : merge with 3.2.
2011-09-10 10:08:13 +03:00
Ezio Melotti
4165bfb6e9
#12940 : fix cmd example. Patch by Tim Chase.
2011-09-10 10:06:01 +03:00
Éric Araujo
46a9d62828
Merge 3.2
2011-09-09 19:11:04 +02:00
Éric Araujo
eb933de807
Fix current name of the Python 3 binary on Unix ( #12896 ).
...
Also fix some markup and typos.
2011-09-09 19:03:41 +02:00
Vinay Sajip
e0afb16a31
Closes #12906 : Merged fix from 3.2.
2011-09-06 14:08:24 +01:00
Vinay Sajip
4eb0e73ff2
Closes #12906 : Fixed bug in YAML configuration.
2011-09-06 14:07:23 +01:00
Brett Cannon
5c9a8d0908
Minor grammar fix.
2011-09-05 21:08:14 -07:00
Victor Stinner
71e44cb97f
Issue #12567 : Add curses.unget_wch() function
...
Push a character so the next get_wch() will return it.
2011-09-06 01:53:03 +02:00
Senthil Kumaran
74470b5d3a
merge from 3.2. Fix closes Issue11155 - Correct the multiprocessing.Queue.put's arg (replace 'item' with 'obj') in the docs. Patch by Westley Martínez.
2011-09-06 00:22:15 +08:00
Senthil Kumaran
e969a2117c
Fix closes Issue11155 - Correct the multiprocessing.Queue.put's arg (replace 'item' with 'obj') in the docs. Patch by Westley Martínez.
2011-09-06 00:21:30 +08:00
Georg Brandl
fbd1e041af
Merge with 3.2.
2011-09-04 08:42:26 +02:00
Georg Brandl
3484a8771c
Merge with release clone.
2011-09-04 08:35:54 +02:00
Łukasz Langa
a4083d2dd8
merged configparser documentation leftovers cleanup from 3.2
2011-09-02 23:18:39 +02:00
Łukasz Langa
7335e6f3e8
removed misleading editing leftovers
2011-09-02 23:17:39 +02:00
Sandro Tosi
154f2b4726
merge with 3.2
2011-09-02 21:24:55 +02:00
Sandro Tosi
fbd4fe2195
Give credit to Adam
2011-09-02 21:24:40 +02:00
Sandro Tosi
0b6b1c3fb5
#12781 : merge with 3.2
2011-09-02 20:07:34 +02:00
Sandro Tosi
172f374a63
#12781 : Mention SO_REUSEADDR flag near socket examples
2011-09-02 20:06:31 +02:00
Éric Araujo
677dc7189f
Branch merge
2011-09-02 17:30:55 +02:00
Éric Araujo
d9e1789364
Branch merge
2011-09-02 17:30:36 +02:00
Éric Araujo
793c47a88a
Merge doc changes from 3.2 ( #10454 , #12298 )
2011-09-02 00:03:20 +02:00
Éric Araujo
18ddf826e7
Add links from library/functions to other docs.
...
Suggested by Terry J. Reedy in #12298 .
2011-09-01 23:10:36 +02:00
Éric Araujo
9edd9f035b
Fix a few links in the table of built-in functions ( #12298 )
2011-09-01 23:08:55 +02:00
Éric Araujo
29cf58c9d5
Document that format string don’t support arbitrary dictonary keys.
...
Text adapted from the PEP. Addition requested by Terry J. Reedy on
2011-02-23 on python-dev.
2011-09-01 18:59:06 +02:00
Éric Araujo
8ab3a1d735
Document that True/False/None don’t use :keyword: in doc.
...
This was discussed some months ago on python-dev. Having tons of links
to the definition of True would be annoying, contrary to links to e.g.
the nonlocal or with statements doc.
2011-09-01 18:45:50 +02:00
Ezio Melotti
c2d9a0226e
Merge doc fix with 3.2.
2011-09-01 08:13:46 +03:00
Ezio Melotti
222b20844f
From RFC 3629 5- and 6-bytes UTF-8 sequences are invalid, so remove them from the doc.
2011-09-01 08:11:28 +03:00
Ross Lagerwall
7194efe8b4
Merge with 3.2.
2011-09-01 07:02:31 +02:00
Éric Araujo
d9299e97ab
Minor improvement to extensions in setup.cfg: check parent package
2011-09-01 07:01:13 +02:00
Ross Lagerwall
a9353db2cd
Remove duplicate text in os documentation.
2011-09-01 06:58:52 +02:00
Éric Araujo
336b4e4ff3
Minor improvement to extensions section in setup.cfg.
...
The right-hand part in [extension: foo] is now used as the name of the
extension module. (I changed the separator from = to : and allowed
whitespace to make the sections look nicer.)
2011-09-01 06:29:11 +02:00
Éric Araujo
b8edbdf4b9
Merge doc changes from 3.2.
...
rstlint complains about packaging docs but I’m working on those in
another patch.
2011-09-01 05:57:12 +02:00
Éric Araujo
ec9a5f6399
Add version number for versionchanged directive (backport from 3.3)
2011-09-01 05:55:26 +02:00
Éric Araujo
95fc53f2b3
Clean up packaging.util: add __all__, remove some unused functions.
...
This huge module is the heir of six distutils modules, and contains
a number of miscellaneous functions. I have attempted to help readers
of the source code with an annoted __all__. Removed or deprecated
functions have been removed from the documentation; I’m working on
another patch to document the remaining public functions.
For the curious:
The unzip_file and untar_file were used by (or intended to be used by)
“pysetup install path/to/archive.tar.gz”, but the code presently used
shutil.unpack_archive and an helper function, so I just deleted them.
They’re still in the repository if we need them in the future.
The find_packages function is not used anymore but I want to discuss
module and package auto-discovery (in “pysetup create”) again before
removing it.
subst_vars now lives in sysconfig; rfc822_escape is inlined in
packaging.metadata. Other functions are for internal use only, or
deprecated; I have left them out of __all__ and sprinkled TODO notes
for future cleanups.
2011-09-01 05:11:29 +02:00
Benjamin Peterson
799bd80d8a
expose linux extended file system attributes ( closes #12720 )
2011-08-31 22:15:17 -04:00
Éric Araujo
7af8ebb6ce
Adapt/remove mentions of functions gone in 3.x
2011-09-01 03:20:13 +02:00
Éric Araujo
37b5f9eebc
Fix some misuses of Sphinx roles and one typo
2011-09-01 03:19:30 +02:00
Éric Araujo
941afedd74
Avoid using the default reST role. Makes Doc/tools/rstlint.py happy.
2011-09-01 02:47:34 +02:00
Éric Araujo
83ab3f319b
Remove obsolete mentions of the compress program and .Z archives.
...
Packaging uses the shutil.make_archive function copied from distutils,
which does not support compress. There is no test to check that
“bdist --format whatever” works, so this slipped by.
2011-08-30 01:19:02 +02:00
Éric Araujo
fb639295ac
Print all fields when calling “pysetup metadata” without options.
...
When called without option (“-f field” or “--all”), “pysetup metadata”
didn’t do anything useful. Now it prints out all metadata fields. The
“--all” option is removed.
2011-08-29 22:03:46 +02:00
Éric Araujo
84b8ed8a94
3.3 whatsnew: fix markup, add stub for new crypt features
2011-08-29 21:42:47 +02:00
Éric Araujo
be573e7d17
Remove outdated pointer to optparse ( fixes #11360 ).
...
The doc already points to argparse.
2011-08-26 16:38:40 +02:00
Éric Araujo
b008d3d00c
Synchronize packaging docs with distutils’ (includes fix for #9302 )
2011-08-26 01:23:20 +02:00
Éric Araujo
8d9dcd185c
Merge from 3.2 ( #9302 fix and other changes)
2011-08-26 01:17:56 +02:00
Éric Araujo
77443824f5
Document the "optional" argument of distutils’ Extension class
2011-08-26 00:45:18 +02:00
Éric Araujo
3f5e958a3f
Fix type information in distutils API reference ( #9302 ).
...
Initial patch by Yue Shuaijie.
2011-08-26 00:44:37 +02:00
Éric Araujo
cc42ebe450
Make the list of docs contributors sorted again
2011-08-26 00:10:12 +02:00
Antoine Pitrou
4fd1e6a3ba
Issue #12803 : SSLContext.load_cert_chain() now accepts a password argument
...
to be used if the private key is encrypted. Patch by Adam Simpkins.
2011-08-25 14:39:44 +02:00
Georg Brandl
2bb371b2bf
Merge 3.2.
2011-08-25 11:52:39 +02:00
Georg Brandl
e1eef41a18
Close #12838 : fix range() call.
2011-08-25 11:52:26 +02:00
Sandro Tosi
aec2f21f71
#12191 : added entry in What's New (+ small editing on shutil section)
2011-08-23 00:58:21 +02:00
Sandro Tosi
d902a14dd0
#12191 : add shutil.chown() to change user and/or group owner of a given path also specifying their names.
2011-08-22 23:28:27 +02:00
Ezio Melotti
8c9375bb59
#10542 : Add 4 macros to work with surrogates: Py_UNICODE_IS_SURROGATE, Py_UNICODE_IS_HIGH_SURROGATE, Py_UNICODE_IS_LOW_SURROGATE, Py_UNICODE_JOIN_SURROGATES.
2011-08-22 20:03:25 +03:00
Nick Coghlan
96fe56abec
Add support for the send/recvmsg API to the socket module. Patch by David Watson and Heiko Wundram. ( Closes #6560 )
2011-08-22 11:55:57 +10:00
Victor Stinner
795eaeb41f
Issue #12326 : update sys.platform doc for Linux
2011-08-21 12:08:11 +02:00
Victor Stinner
ff3d9399fc
Close #12326 : sys.platform is now always 'linux' on Linux
...
On Linux, sys.platform doesn't contain the major version anymore. It is now
always 'linux', instead of 'linux2' or 'linux3' depending on the Linux version
used to build Python.
2011-08-20 23:39:26 +02:00
Antoine Pitrou
94e6238e67
Issue #12213 : make it clear that BufferedRWPair shouldn't be called with the
...
same object as reader and writer, and deemphasize it in document order.
2011-08-20 19:50:32 +02:00
Antoine Pitrou
13d2895dbf
Issue #12213 : make it clear that BufferedRWPair shouldn't be called with the
...
same object as reader and writer, and deemphasize it in document order.
2011-08-20 19:48:43 +02:00
Sandro Tosi
2ec723ad87
#12787 : merge with 3.2
2011-08-20 17:06:38 +02:00
Sandro Tosi
9daf98d32a
#12787 : link original MultiCall proposal to webarchive and in a footnote
2011-08-20 17:05:56 +02:00
Georg Brandl
2513123d66
Update suspicious ignore file.
2011-09-03 09:28:05 +02:00
Georg Brandl
a47e53e42e
Update sys.platform doc for #12326 .
2011-09-03 09:26:09 +02:00
Łukasz Langa
987b188615
removed misleading editing leftovers
2011-09-02 23:17:39 +02:00
Sandro Tosi
335f204977
#12781 : Mention SO_REUSEADDR flag near socket examples
2011-09-02 20:06:31 +02:00
Éric Araujo
d86ac4cd4e
Document that format string don’t support arbitrary dictonary keys.
...
Text adapted from the PEP. Addition requested by Terry J. Reedy on
2011-02-23 on python-dev.
2011-09-01 18:59:06 +02:00
Éric Araujo
7bb769c092
Add version number for versionchanged directive (backport from 3.3)
2011-09-01 05:55:26 +02:00
Éric Araujo
f3c7822ee5
Adapt/remove mentions of functions gone in 3.x
2011-09-01 03:20:13 +02:00
Éric Araujo
43ba354599
Fix some misuses of Sphinx roles and one typo
2011-09-01 03:19:30 +02:00
Éric Araujo
217607ecde
Remove outdated pointer to optparse ( fixes #11360 ).
...
The doc already points to argparse.
2011-08-26 16:38:40 +02:00
Éric Araujo
72dde45dc6
Document the "optional" argument of distutils’ Extension class
2011-08-26 00:45:18 +02:00
Georg Brandl
852eea20ef
Close #12838 : fix range() call.
2011-08-25 11:52:26 +02:00
Antoine Pitrou
dc42beb55e
Issue #12213 : make it clear that BufferedRWPair shouldn't be called with the
...
same object as reader and writer, and deemphasize it in document order.
2011-08-20 19:48:43 +02:00
Sandro Tosi
5f4ea28f49
merge with 3.2
2011-08-19 22:55:24 +02:00
Sandro Tosi
6a633bb878
fix description of \r; thanks to Thomas Waldmann from docs@
2011-08-19 22:54:50 +02:00
Sandro Tosi
e1043fc230
fix description of \r; thanks to Thomas Waldmann from docs@
2011-08-19 22:54:50 +02:00
Sandro Tosi
8e35cf0770
merge with 3.2
2011-08-19 18:40:56 +02:00
Sandro Tosi
2f394f6666
mention RFC1123 as origin of 4-year digit; thanks to John Haxby from docs@
2011-08-19 18:40:21 +02:00