Skip to content

Commit b38ef41

Browse files
some updates, and adding the interfacing notes.
1 parent 100c9a8 commit b38ef41

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

Sources/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Sphinx
55
docutils
66
sphinx-rtd-theme
77
gnureadline
8-
hieroglyph
8+
# hieroglyph
99
ipython
1010
libsass

Sources/source/conf.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Pyhton Topics build configuration file, created by
3+
# Python Topics build configuration file, created by
44
# sphinx-quickstart on Wed Apr 2 18:42:06 2014.
55
#
66
# This file is execfile()d with the current directory set to its
@@ -30,12 +30,12 @@
3030
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3131
# ones.
3232
extensions = [
33-
'sphinx.ext.doctest',
34-
'sphinx.ext.intersphinx',
33+
# 'sphinx.ext.doctest',
34+
# 'sphinx.ext.intersphinx',
3535
'sphinx.ext.todo',
36-
'sphinx.ext.coverage',
37-
'sphinx.ext.imgmath',
38-
'sphinx.ext.ifconfig',
36+
# 'sphinx.ext.coverage',
37+
# 'sphinx.ext.imgmath',
38+
# 'sphinx.ext.ifconfig',
3939
'IPython.sphinxext.ipython_console_highlighting',
4040
# 'IPython.sphinxext.ipython_directive',
4141
]
@@ -53,17 +53,17 @@
5353
master_doc = 'index'
5454

5555
# General information about the project.
56-
project = u'Python Topics'
57-
copyright = u'2014, Christopher Barker'
56+
project = 'Python Topics'
57+
copyright = '2014-2025, Christopher Barker'
5858

5959
# The version info for the project you're documenting, acts as replacement for
6060
# |version| and |release|, also used in various other places throughout the
6161
# built documents.
6262
#
6363
# The short X.Y version.
64-
version = '1.0'
64+
version = '2.0'
6565
# The full version, including alpha/beta/rc tags.
66-
release = '1.0.0'
66+
release = '2.0.0'
6767

6868
# The language for content autogenerated by Sphinx. Refer to documentation
6969
# for a list of supported languages.
@@ -116,8 +116,8 @@
116116
#html_theme_options = {}
117117

118118
# Add any paths that contain custom themes here, relative to this directory.
119-
#html_theme_path = []
120-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
119+
# html_theme_path = []
120+
# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
121121

122122
# The name for this set of Sphinx documents. If None, it defaults to
123123
# "<project> v<release> documentation".
@@ -368,4 +368,4 @@
368368

369369

370370
# Example configuration for intersphinx: refer to the Python standard library.
371-
intersphinx_mapping = {'http://docs.python.org/': None}
371+
# intersphinx_mapping = {'http://docs.python.org/': None}

Sources/source/interfacing_with_c/c_python.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ https://cython.org/
4343
ctypes
4444
------
4545

46-
Ctypes comes with PYthon out of the box.
46+
Ctypes comes with Python out of the box.
4747

4848

4949
SWIG, SIP, ETC.
@@ -57,7 +57,14 @@ EXAMPLE:
5757

5858
Same as the one for fortran: a automatic gain control filter:
5959

60-
:download:`agc_example.zip`
60+
:download:`agc_example/agc_c.c`
61+
62+
:download:`agc_example/agc_c_cy.pyx`
63+
64+
:download:`agc_example/agc_cython.pyx`
65+
66+
:download:`agc_example/agc_python.py`
67+
6168

6269

6370

Sources/source/weak_references.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Chris Barker
1313

1414
``https://github.com/PythonCHB``
1515

16+
**NOTE:** These notes were written for Python 2. The principles remain the same (for now... work on a GIL-free python is close!), but Python 3 has stronger and smarter support for garbage collection, so this is all less critical (though still good to understand!)
17+
1618
==================
1719
Memory Management
1820
==================

0 commit comments

Comments
 (0)