[Python-checkins] r83484 - in python/branches/release31-maint: Doc/faq/extending.rst Doc/library/re.rst

georg.brandl python-checkins at python.org
Sun Aug 1 23:40:25 CEST 2010


Author: georg.brandl
Date: Sun Aug  1 23:40:25 2010
New Revision: 83484

Log:
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.
........


Modified:
   python/branches/release31-maint/   (props changed)
   python/branches/release31-maint/Doc/faq/extending.rst
   python/branches/release31-maint/Doc/library/re.rst

Modified: python/branches/release31-maint/Doc/faq/extending.rst
==============================================================================
--- python/branches/release31-maint/Doc/faq/extending.rst	(original)
+++ python/branches/release31-maint/Doc/faq/extending.rst	Sun Aug  1 23:40:25 2010
@@ -26,6 +26,8 @@
 C++ objects with constructors are probably not a good idea.
 
 
+.. _c-wrapper-software:
+
 Writing C is hard; are there any alternatives?
 ----------------------------------------------
 
@@ -197,11 +199,7 @@
 whole lot of difference between C and C++ -- so the strategy of building a new
 Python type around a C structure (pointer) type will also work for C++ objects.
 
-For C++ libraries, you can look at `SIP
-<http://www.riverbankcomputing.co.uk/software/sip/>`_, `CXX
-<http://cxx.sourceforge.net/>`_, `Boost
-<http://www.boost.org/libs/python/doc/index.html>`_, `Weave
-<http://www.scipy.org/site_content/weave>`_ or `SWIG <http://www.swig.org>`_
+For C++ libraries, see :ref:`c-wrapper-software`.
 
 
 I added a module using the Setup file and the make fails; why?

Modified: python/branches/release31-maint/Doc/library/re.rst
==============================================================================
--- python/branches/release31-maint/Doc/library/re.rst	(original)
+++ python/branches/release31-maint/Doc/library/re.rst	Sun Aug  1 23:40:25 2010
@@ -1226,9 +1226,9 @@
    ...   random.shuffle(inner_word)
    ...   return m.group(1) + "".join(inner_word) + m.group(3)
    >>> text = "Professor Abdolmalek, please report your absences promptly."
-   >>> re.sub("(\w)(\w+)(\w)", repl, text)
+   >>> re.sub(r"(\w)(\w+)(\w)", repl, text)
    'Poefsrosr Aealmlobdk, pslaee reorpt your abnseces plmrptoy.'
-   >>> re.sub("(\w)(\w+)(\w)", repl, text)
+   >>> re.sub(r"(\w)(\w+)(\w)", repl, text)
    'Pofsroser Aodlambelk, plasee reoprt yuor asnebces potlmrpy.'
 
 


More information about the Python-checkins mailing list