Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7ef90a1a
Commit
7ef90a1a
authored
Sep 30, 2012
by
Georg Brandl
Browse files
Options
Browse Files
Download
Plain Diff
merge with 3.3
parents
50de8506
2cac28b3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
3 deletions
+83
-3
Doc/tools/sphinxext/layout.html
Doc/tools/sphinxext/layout.html
+17
-0
Doc/tools/sphinxext/pyspecific.py
Doc/tools/sphinxext/pyspecific.py
+40
-0
Doc/whatsnew/index.rst
Doc/whatsnew/index.rst
+8
-0
Doc/whatsnew/news.rst
Doc/whatsnew/news.rst
+14
-0
Misc/NEWS
Misc/NEWS
+4
-3
No files found.
Doc/tools/sphinxext/layout.html
View file @
7ef90a1a
...
...
@@ -8,6 +8,23 @@
{% block extrahead %}
<link
rel=
"shortcut icon"
type=
"image/png"
href=
"{{ pathto('_static/py.png', 1) }}"
/>
{% if not embedded %}
<script
type=
"text/javascript"
src=
"{{ pathto('_static/copybutton.js', 1) }}"
></script>
{% endif %}
{% if pagename == 'whatsnew/news' %}
<script
type=
"text/javascript"
>
function
dofilter
()
{
var
el
=
document
.
getElementById
(
'
searchbox
'
);
var
string
=
el
.
value
.
toLowerCase
();
var
litags
=
document
.
getElementsByTagName
(
'
li
'
)
for
(
var
idx
=
0
;
idx
<
litags
.
length
;
idx
++
)
{
var
li
=
litags
[
idx
];
if
(
li
.
innerHTML
.
toLowerCase
().
indexOf
(
string
)
>=
0
)
{
li
.
style
.
display
=
''
;
}
else
{
li
.
style
.
display
=
'
none
'
;
}
}
}
</script>
{% endif %}
{{ super() }}
{% endblock %}
{% block footer %}
...
...
Doc/tools/sphinxext/pyspecific.py
View file @
7ef90a1a
...
...
@@ -145,6 +145,45 @@ class DeprecatedRemoved(Directive):
return
ret
# Support for including Misc/NEWS
import
re
import
codecs
from
docutils.statemachine
import
string2lines
from
sphinx.util.nodes
import
nested_parse_with_titles
issue_re
=
re
.
compile
(
'Issue #([0-9]+)'
)
class
MiscNews
(
Directive
):
has_content
=
False
required_arguments
=
1
optional_arguments
=
0
final_argument_whitespace
=
False
option_spec
=
{}
def
run
(
self
):
fname
=
self
.
arguments
[
0
]
source
=
self
.
state_machine
.
input_lines
.
source
(
self
.
lineno
-
self
.
state_machine
.
input_offset
-
1
)
source_dir
=
path
.
dirname
(
path
.
abspath
(
source
))
try
:
fp
=
codecs
.
open
(
path
.
join
(
source_dir
,
fname
),
encoding
=
'utf-8'
)
try
:
content
=
fp
.
read
()
finally
:
fp
.
close
()
except
Exception
:
text
=
'The NEWS file is not available.'
node
=
nodes
.
strong
(
text
,
text
)
return
[
node
]
content
=
issue_re
.
sub
(
r'`Issue #\1 <http://bugs.python.org/\1>`__'
,
content
)
# remove first 3 lines as they are the main heading
lines
=
content
.
splitlines
()[
3
:]
self
.
state_machine
.
insert_input
(
lines
,
fname
)
return
[]
# Support for building "topic help" for pydoc
pydoc_topic_labels
=
[
...
...
@@ -276,3 +315,4 @@ def setup(app):
app.add_description_unit('
2
to3fixer
', '
2
to3fixer
', '
%
s
(
2
to3
fixer
)
')
app.add_directive_to_domain('
py
', '
decorator
', PyDecoratorFunction)
app.add_directive_to_domain('
py
', '
decoratormethod
', PyDecoratorMethod)
app.add_directive('
miscnews
', MiscNews)
Doc/whatsnew/index.rst
View file @
7ef90a1a
...
...
@@ -24,3 +24,11 @@ anyone wishing to stay up-to-date after a new release.
2.2.rst
2.1.rst
2.0.rst
The "Python News" is a HTML version of the file :source:`Misc/NEWS` which
contains *all* nontrivial changes to Python.
.. toctree::
:maxdepth: 1
news.rst
Doc/whatsnew/news.rst
0 → 100644
View file @
7ef90a1a
+++++++++++
Python News
+++++++++++
.. raw:: html
<p>
Filter entries by content:
<input type="text" value="" id="searchbox" style="width: 50%" onchange="dofilter()">
<input type="submit" value="Filter" onclick="dofilter()">
</p>
.. miscnews:: ../../Misc/NEWS
Misc/NEWS
View file @
7ef90a1a
...
...
@@ -674,9 +674,10 @@ Tools/Demos
-
Issue
#
12605
:
The
gdb
hooks
for
debugging
CPython
(
within
Tools
/
gdb
)
have
been
enhanced
to
show
information
on
more
C
frames
relevant
to
CPython
within
the
"py-bt"
and
"py-bt-full"
commands
:
*
C
frames
that
are
waiting
on
the
GIL
*
C
frames
that
are
garbage
-
collecting
*
C
frames
that
are
due
to
the
invocation
of
a
PyCFunction
*
C
frames
that
are
waiting
on
the
GIL
*
C
frames
that
are
garbage
-
collecting
*
C
frames
that
are
due
to
the
invocation
of
a
PyCFunction
Documentation
-------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment