Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1a4e2c

Browse files
committed
Merged revisions 82832,82834 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ........ r82832 | georg.brandl | 2010-07-12 11:00:29 +0200 (Mo, 12 Jul 2010) | 1 line Take care of duplicate target name warnings. ........ r82834 | georg.brandl | 2010-07-12 11:06:13 +0200 (Mo, 12 Jul 2010) | 1 line Use raw string literals for regexes containing backlash. ........
1 parent 67a1d30 commit b1a4e2c

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

Doc/faq/extending.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ function that is going to be called by the Python interpreter. Global or static
2626
C++ objects with constructors are probably not a good idea.
2727

2828

29+
.. _c-wrapper-software:
30+
2931
Writing C is hard; are there any alternatives?
3032
----------------------------------------------
3133

@@ -197,11 +199,7 @@ begin by reading :ref:`the "Extending and Embedding" document
197199
whole lot of difference between C and C++ -- so the strategy of building a new
198200
Python type around a C structure (pointer) type will also work for C++ objects.
199201

200-
For C++ libraries, you can look at `SIP
201-
<http://www.riverbankcomputing.co.uk/software/sip/>`_, `CXX
202-
<http://cxx.sourceforge.net/>`_, `Boost
203-
<http://www.boost.org/libs/python/doc/index.html>`_, `Weave
204-
<http://www.scipy.org/site_content/weave>`_ or `SWIG <http://www.swig.org>`_
202+
For C++ libraries, see :ref:`c-wrapper-software`.
205203

206204

207205
I added a module using the Setup file and the make fails; why?

Doc/library/re.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,9 +1226,9 @@ in each word of a sentence except for the first and last characters::
12261226
... random.shuffle(inner_word)
12271227
... return m.group(1) + "".join(inner_word) + m.group(3)
12281228
>>> text = "Professor Abdolmalek, please report your absences promptly."
1229-
>>> re.sub("(\w)(\w+)(\w)", repl, text)
1229+
>>> re.sub(r"(\w)(\w+)(\w)", repl, text)
12301230
'Poefsrosr Aealmlobdk, pslaee reorpt your abnseces plmrptoy.'
1231-
>>> re.sub("(\w)(\w+)(\w)", repl, text)
1231+
>>> re.sub(r"(\w)(\w+)(\w)", repl, text)
12321232
'Pofsroser Aodlambelk, plasee reoprt yuor asnebces potlmrpy.'
12331233

12341234

0 commit comments

Comments
 (0)