Commit 331d9d82 authored by Jon Dufresne's avatar Jon Dufresne

Update URLs to https:// in docs and comments

parent 8ab83030
...@@ -1634,7 +1634,7 @@ Features added ...@@ -1634,7 +1634,7 @@ Features added
* Generators have new properties ``__name__`` and ``__qualname__`` * Generators have new properties ``__name__`` and ``__qualname__``
that provide the plain/qualified name of the generator function that provide the plain/qualified name of the generator function
(following CPython 3.5). See http://bugs.python.org/issue21205 (following CPython 3.5). See https://bugs.python.org/issue21205
* The ``inline`` function modifier is available as a decorator * The ``inline`` function modifier is available as a decorator
``@cython.inline`` in pure mode. ``@cython.inline`` in pure mode.
...@@ -1680,7 +1680,7 @@ Optimizations ...@@ -1680,7 +1680,7 @@ Optimizations
evaluation and generally improves the code flow in the generated C code. evaluation and generally improves the code flow in the generated C code.
* The Python expression "2 ** N" is optimised into bit shifting. * The Python expression "2 ** N" is optimised into bit shifting.
See http://bugs.python.org/issue21420 See https://bugs.python.org/issue21420
* Cascaded assignments (a = b = ...) try to minimise the number of * Cascaded assignments (a = b = ...) try to minimise the number of
type coercions. type coercions.
......
...@@ -792,7 +792,7 @@ def create_extension_list(patterns, exclude=None, ctx=None, aliases=None, quiet= ...@@ -792,7 +792,7 @@ def create_extension_list(patterns, exclude=None, ctx=None, aliases=None, quiet=
filepattern = cython_sources[0] filepattern = cython_sources[0]
if len(cython_sources) > 1: if len(cython_sources) > 1:
print("Warning: Multiple cython sources found for extension '%s': %s\n" print("Warning: Multiple cython sources found for extension '%s': %s\n"
"See http://cython.readthedocs.io/en/latest/src/userguide/sharing_declarations.html " "See https://cython.readthedocs.io/en/latest/src/userguide/sharing_declarations.html "
"for sharing declarations among Cython files." % (pattern.name, cython_sources)) "for sharing declarations among Cython files." % (pattern.name, cython_sources))
else: else:
# ignore non-cython modules # ignore non-cython modules
...@@ -1073,7 +1073,7 @@ def cythonize(module_list, exclude=None, nthreads=0, aliases=None, quiet=False, ...@@ -1073,7 +1073,7 @@ def cythonize(module_list, exclude=None, nthreads=0, aliases=None, quiet=False,
# This is a bit more involved than it should be, because KeyboardInterrupts # This is a bit more involved than it should be, because KeyboardInterrupts
# break the multiprocessing workers when using a normal pool.map(). # break the multiprocessing workers when using a normal pool.map().
# See, for example: # See, for example:
# http://noswap.com/blog/python-multiprocessing-keyboardinterrupt # https://noswap.com/blog/python-multiprocessing-keyboardinterrupt
try: try:
result = pool.map_async(cythonize_one_helper, to_compile, chunksize=1) result = pool.map_async(cythonize_one_helper, to_compile, chunksize=1)
pool.close() pool.close()
......
...@@ -9,7 +9,7 @@ import sys ...@@ -9,7 +9,7 @@ import sys
from . import Options from . import Options
usage = """\ usage = """\
Cython (http://cython.org) is a compiler for code written in the Cython (https://cython.org/) is a compiler for code written in the
Cython language. Cython is based on Pyrex by Greg Ewing. Cython language. Cython is based on Pyrex by Greg Ewing.
Usage: cython [options] sourcefile.{pyx,py} ... Usage: cython [options] sourcefile.{pyx,py} ...
......
...@@ -62,7 +62,7 @@ class CompileError(PyrexError): ...@@ -62,7 +62,7 @@ class CompileError(PyrexError):
self.reported = False self.reported = False
Exception.__init__(self, self.formatted_message) Exception.__init__(self, self.formatted_message)
# Python Exception subclass pickling is broken, # Python Exception subclass pickling is broken,
# see http://bugs.python.org/issue1692335 # see https://bugs.python.org/issue1692335
self.args = (position, message) self.args = (position, message)
def __str__(self): def __str__(self):
...@@ -110,7 +110,7 @@ class CompilerCrash(CompileError): ...@@ -110,7 +110,7 @@ class CompilerCrash(CompileError):
message += u'%s: %s' % (cause.__class__.__name__, cause) message += u'%s: %s' % (cause.__class__.__name__, cause)
CompileError.__init__(self, pos, message) CompileError.__init__(self, pos, message)
# Python Exception subclass pickling is broken, # Python Exception subclass pickling is broken,
# see http://bugs.python.org/issue1692335 # see https://bugs.python.org/issue1692335
self.args = (pos, context, message, cause, stacktrace) self.args = (pos, context, message, cause, stacktrace)
class NoElementTreeInstalledException(PyrexError): class NoElementTreeInstalledException(PyrexError):
......
...@@ -33,7 +33,7 @@ class ShouldBeFromDirective(object): ...@@ -33,7 +33,7 @@ class ShouldBeFromDirective(object):
""" """
The members of this module are documented using autodata in The members of this module are documented using autodata in
Cython/docs/src/reference/compilation.rst. Cython/docs/src/reference/compilation.rst.
See http://www.sphinx-doc.org/en/master/ext/autodoc.html#directive-autoattribute See https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#directive-autoattribute
for how autodata works. for how autodata works.
Descriptions of those members should start with a #: Descriptions of those members should start with a #:
Donc forget to keep the docs in sync by removing and adding Donc forget to keep the docs in sync by removing and adding
......
...@@ -115,7 +115,7 @@ class BaseType(object): ...@@ -115,7 +115,7 @@ class BaseType(object):
Deduce any template params in this (argument) type given the actual Deduce any template params in this (argument) type given the actual
argument type. argument type.
http://en.cppreference.com/w/cpp/language/function_template#Template_argument_deduction https://en.cppreference.com/w/cpp/language/function_template#Template_argument_deduction
""" """
return {} return {}
......
...@@ -443,7 +443,7 @@ class Scope(object): ...@@ -443,7 +443,7 @@ class Scope(object):
if type.is_buffer and not isinstance(self, LocalScope): # and not is_type: if type.is_buffer and not isinstance(self, LocalScope): # and not is_type:
error(pos, 'Buffer types only allowed as function local variables') error(pos, 'Buffer types only allowed as function local variables')
if not self.in_cinclude and cname and re.match("^_[_A-Z]+$", cname): if not self.in_cinclude and cname and re.match("^_[_A-Z]+$", cname):
# See http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html#Reserved-Names # See https://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html#Reserved-Names
warning(pos, "'%s' is a reserved name in C." % cname, -1) warning(pos, "'%s' is a reserved name in C." % cname, -1)
entries = self.entries entries = self.entries
if name and name in entries and not shadow: if name and name in entries and not shadow:
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
From gdb 7 onwards, gdb's build can be configured --with-python, allowing gdb From gdb 7 onwards, gdb's build can be configured --with-python, allowing gdb
to be extended with Python code e.g. for library-specific data visualizations, to be extended with Python code e.g. for library-specific data visualizations,
such as for the C++ STL types. Documentation on this API can be seen at: such as for the C++ STL types. Documentation on this API can be seen at:
http://sourceware.org/gdb/current/onlinedocs/gdb/Python-API.html https://sourceware.org/gdb/current/onlinedocs/gdb/Python-API.html
This python module deals with the case when the process being debugged (the This python module deals with the case when the process being debugged (the
...@@ -315,7 +315,7 @@ class PyObjectPtr(object): ...@@ -315,7 +315,7 @@ class PyObjectPtr(object):
def __repr__(self): def __repr__(self):
# For the NULL pointer, we have no way of knowing a type, so # For the NULL pointer, we have no way of knowing a type, so
# special-case it as per # special-case it as per
# http://bugs.python.org/issue8032#msg100882 # https://bugs.python.org/issue8032#msg100882
if self.address == 0: if self.address == 0:
return '0x0' return '0x0'
return '<%s at remote 0x%x>' % (self.tp_name, self.address) return '<%s at remote 0x%x>' % (self.tp_name, self.address)
...@@ -1451,7 +1451,7 @@ register (gdb.current_objfile ()) ...@@ -1451,7 +1451,7 @@ register (gdb.current_objfile ())
# Unfortunately, the exact API exposed by the gdb module varies somewhat # Unfortunately, the exact API exposed by the gdb module varies somewhat
# from build to build # from build to build
# See http://bugs.python.org/issue8279?#msg102276 # See https://bugs.python.org/issue8279?#msg102276
class Frame(object): class Frame(object):
''' '''
......
# http://en.wikipedia.org/wiki/C_date_and_time_functions # https://en.wikipedia.org/wiki/C_date_and_time_functions
from libc.stddef cimport wchar_t from libc.stddef cimport wchar_t
......
# POSIX dynamic linking/loading interface. # POSIX dynamic linking/loading interface.
# http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/dlfcn.h.html # https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/dlfcn.h.html
cdef extern from "<dlfcn.h>" nogil: cdef extern from "<dlfcn.h>" nogil:
void *dlopen(const char *, int) void *dlopen(const char *, int)
......
# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/mman.h.html # https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/mman.h.html
from posix.types cimport off_t, mode_t from posix.types cimport off_t, mode_t
......
# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/resource.h.html # https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/resource.h.html
from posix.time cimport timeval from posix.time cimport timeval
from posix.types cimport id_t from posix.types cimport id_t
......
# POSIX additions to <stdio.h>. # POSIX additions to <stdio.h>.
# http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdio.h.html # https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdio.h.html
from libc.stdio cimport FILE from libc.stdio cimport FILE
from libc.stddef cimport wchar_t from libc.stddef cimport wchar_t
......
# POSIX additions to <stdlib.h> # POSIX additions to <stdlib.h>
# http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html # https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html
cdef extern from "<stdlib.h>" nogil: cdef extern from "<stdlib.h>" nogil:
void _Exit(int) void _Exit(int)
......
# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/time.h.html # https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/time.h.html
from posix.types cimport suseconds_t, time_t, clockid_t, timer_t from posix.types cimport suseconds_t, time_t, clockid_t, timer_t
from posix.signal cimport sigevent from posix.signal cimport sigevent
......
# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/wait.h.html # https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/wait.h.html
from posix.types cimport pid_t, id_t from posix.types cimport pid_t, id_t
from posix.signal cimport siginfo_t from posix.signal cimport siginfo_t
......
...@@ -224,8 +224,8 @@ fail:; ...@@ -224,8 +224,8 @@ fail:;
// the format string; the access mode/flags is checked by the // the format string; the access mode/flags is checked by the
// exporter. See: // exporter. See:
// //
// http://docs.python.org/3/library/struct.html // https://docs.python.org/3/library/struct.html
// http://legacy.python.org/dev/peps/pep-3118/#additions-to-the-struct-string-syntax // https://www.python.org/dev/peps/pep-3118/#additions-to-the-struct-string-syntax
// //
// The alignment code is copied from _struct.c in Python. // The alignment code is copied from _struct.c in Python.
......
...@@ -347,7 +347,7 @@ ...@@ -347,7 +347,7 @@
#endif #endif
#endif #endif
// Work around clang bug http://stackoverflow.com/questions/21847816/c-invoke-nested-template-class-destructor // Work around clang bug https://stackoverflow.com/questions/21847816/c-invoke-nested-template-class-destructor
template<typename T> template<typename T>
void __Pyx_call_destructor(T& x) { void __Pyx_call_destructor(T& x) {
x.~T(); x.~T();
......
...@@ -1986,7 +1986,7 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, ...@@ -1986,7 +1986,7 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args,
// ((char *)(foo) \ // ((char *)(foo) \
// + Py_BUILD_ASSERT_EXPR(offsetof(struct foo, string) == 0)) // + Py_BUILD_ASSERT_EXPR(offsetof(struct foo, string) == 0))
// //
// Written by Rusty Russell, public domain, http://ccodearchive.net/ // Written by Rusty Russell, public domain, https://ccodearchive.net/
#define __Pyx_BUILD_ASSERT_EXPR(cond) \ #define __Pyx_BUILD_ASSERT_EXPR(cond) \
(sizeof(char [1 - 2*!(cond)]) - 1) (sizeof(char [1 - 2*!(cond)]) - 1)
......
...@@ -648,7 +648,7 @@ static PyObject* __Pyx__PyNumber_PowerOf2(PyObject *two, PyObject *exp, PyObject ...@@ -648,7 +648,7 @@ static PyObject* __Pyx__PyNumber_PowerOf2(PyObject *two, PyObject *exp, PyObject
static PyObject* __Pyx__PyNumber_PowerOf2(PyObject *two, PyObject *exp, PyObject *none, int inplace) { static PyObject* __Pyx__PyNumber_PowerOf2(PyObject *two, PyObject *exp, PyObject *none, int inplace) {
// in CPython, 1<<N is substantially faster than 2**N // in CPython, 1<<N is substantially faster than 2**N
// see http://bugs.python.org/issue21420 // see https://bugs.python.org/issue21420
#if !CYTHON_COMPILING_IN_PYPY #if !CYTHON_COMPILING_IN_PYPY
Py_ssize_t shiftby; Py_ssize_t shiftby;
#if PY_MAJOR_VERSION < 3 #if PY_MAJOR_VERSION < 3
......
#!/usr/bin/python #!/usr/bin/python
# Back-Propagation Neural Networks # Back-Propagation Neural Networks
# #
# Written in Python. See http://www.python.org/ # Written in Python. See https://www.python.org/
# #
# Neil Schemenauer <nascheme@enme.ucalgary.ca> # Neil Schemenauer <nascheme@enme.ucalgary.ca>
......
...@@ -43,7 +43,7 @@ def permutations(iterable): ...@@ -43,7 +43,7 @@ def permutations(iterable):
else: else:
return return
# From http://code.activestate.com/recipes/576647/ # From https://code.activestate.com/recipes/576647/
@cython.locals(queen_count=int, i=int, vec=list) @cython.locals(queen_count=int, i=int, vec=list)
def n_queens(queen_count): def n_queens(queen_count):
"""N-Queens solver. """N-Queens solver.
......
...@@ -106,6 +106,6 @@ Cython 0.11.2 (or newer, assuming the API does not change) ...@@ -106,6 +106,6 @@ Cython 0.11.2 (or newer, assuming the API does not change)
SEE ALSO SEE ALSO
======== ========
* `Python <http://www.python.org>`_ * `Python <https://www.python.org/>`_
* `Cython <http://www.cython.org>`_ * `Cython <http://www.cython.org>`_
* `freeze.py <http://wiki.python.org/moin/Freeze>`_ * `freeze.py <https://wiki.python.org/moin/Freeze>`_
...@@ -51,7 +51,7 @@ Cython is ...@@ -51,7 +51,7 @@ Cython is
* an Open-Source project * an Open-Source project
* http://cython.org * https://cython.org/
* a Python compiler (almost) * a Python compiler (almost)
...@@ -115,7 +115,7 @@ Major Cython Developers ...@@ -115,7 +115,7 @@ Major Cython Developers
* many, *many* others - see * many, *many* others - see
* http://cython.org/ * https://cython.org/
* the mailing list archives of Cython and Pyrex * the mailing list archives of Cython and Pyrex
...@@ -398,4 +398,4 @@ Cython ...@@ -398,4 +398,4 @@ Cython
\... use it, and join the project! \... use it, and join the project!
http://cython.org/ https://cython.org/
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<script> <script>
// IE5.5+ PNG Alpha Fix v1.0 by Angus Turnbull http://www.twinhelix.com // IE5.5+ PNG Alpha Fix v1.0 by Angus Turnbull https://www.twinhelix.com/
// Free usage permitted as long as this notice remains intact. // Free usage permitted as long as this notice remains intact.
// This must be a path to a blank image. That's all the configuration you need here. // This must be a path to a blank image. That's all the configuration you need here.
......
// S5 v1.1 slides.js -- released into the Public Domain // S5 v1.1 slides.js -- released into the Public Domain
// //
// Please see http://www.meyerweb.com/eric/tools/s5/credits.html for information // Please see https://meyerweb.com/eric/tools/s5/credits.html for information
// about all the wonderful and talented contributors to this code! // about all the wonderful and talented contributors to this code!
var undef; var undef;
......
Apache License Apache License
Version 2.0, January 2004 Version 2.0, January 2004
http://www.apache.org/licenses/ https://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
......
Welcome to Cython! Welcome to Cython!
================== ==================
Cython is a language that makes writing C extensions for Cython is a language that makes writing C extensions for
...@@ -14,8 +14,8 @@ code from Cython code. ...@@ -14,8 +14,8 @@ code from Cython code.
This makes Cython the ideal language for wrapping external C libraries, and This makes Cython the ideal language for wrapping external C libraries, and
for fast C modules that speed up the execution of Python code. for fast C modules that speed up the execution of Python code.
* Official website: http://cython.org/ * Official website: https://cython.org/
* Documentation: http://docs.cython.org/en/latest/ * Documentation: http://docs.cython.org/
* Github repository: https://github.com/cython/cython * Github repository: https://github.com/cython/cython
* Wiki: https://github.com/cython/cython/wiki * Wiki: https://github.com/cython/cython/wiki
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
(defgroup cython nil "Major mode for editing and compiling Cython files" (defgroup cython nil "Major mode for editing and compiling Cython files"
:group 'languages :group 'languages
:prefix "cython-" :prefix "cython-"
:link '(url-link :tag "Homepage" "http://cython.org")) :link '(url-link :tag "Homepage" "https://cython.org/"))
;;;###autoload ;;;###autoload
(defcustom cython-default-compile-format "cython -a %s" (defcustom cython-default-compile-format "cython -a %s"
......
...@@ -5,7 +5,7 @@ environment: ...@@ -5,7 +5,7 @@ environment:
global: global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script interpreter # /E:ON and /V:ON options are not enabled in the batch script interpreter
# See: http://stackoverflow.com/a/13751649/163740 # See: https://stackoverflow.com/questions/11267463/compiling-python-modules-on-windows-x64/13751649#13751649
WITH_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd" WITH_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
matrix: matrix:
......
# Sample script to install Python and pip under Windows # Sample script to install Python and pip under Windows
# Authors: Olivier Grisel and Kyle Kastner # Authors: Olivier Grisel and Kyle Kastner
# License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/ # License: CC0 1.0 Universal: https://creativecommons.org/publicdomain/zero/1.0/
$PYTHON_BASE_URL = "https://www.python.org/ftp/python/" $PYTHON_BASE_URL = "https://www.python.org/ftp/python/"
$GET_PIP_URL = "https://bootstrap.pypa.io/get-pip.py" $GET_PIP_URL = "https://bootstrap.pypa.io/get-pip.py"
......
...@@ -11,7 +11,7 @@ On windows systems, you only need Sphinx. Open PowerShell and type:: ...@@ -11,7 +11,7 @@ On windows systems, you only need Sphinx. Open PowerShell and type::
You can then see the documentation by opening in a browser ``cython/docs/build/html/index.html``. You can then see the documentation by opening in a browser ``cython/docs/build/html/index.html``.
The current Cython documentation files are hosted at The current Cython documentation files are hosted at
https://cython.readthedocs.io/en/latest/ https://cython.readthedocs.io/
Notes Notes
......
...@@ -17,7 +17,7 @@ Eventually, it seems all of the old users manual could be whittled ...@@ -17,7 +17,7 @@ Eventually, it seems all of the old users manual could be whittled
down into independent tutorial topics. Much discussion of what we'd down into independent tutorial topics. Much discussion of what we'd
like to see is at like to see is at
http://www.mail-archive.com/cython-dev@codespeak.net/msg06945.html https://www.mail-archive.com/cython-dev@codespeak.net/msg06945.html
There is currently a huge amount of redundancy, but no one section has There is currently a huge amount of redundancy, but no one section has
it all. it all.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Welcome to Cython's Documentation Welcome to Cython's Documentation
================================= =================================
Also see the `Cython project homepage <http://cython.org/>`_. Also see the `Cython project homepage <https://cython.org/>`_.
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2
......
...@@ -14,7 +14,7 @@ line_re = re.compile('.*?\n') ...@@ -14,7 +14,7 @@ line_re = re.compile('.*?\n')
class CythonLexer(RegexLexer): class CythonLexer(RegexLexer):
""" """
For `Cython <http://cython.org>`_ source code. For `Cython <https://cython.org/>`_ source code.
""" """
name = 'Cython' name = 'Cython'
......
...@@ -104,5 +104,5 @@ Using the Sage notebook ...@@ -104,5 +104,5 @@ Using the Sage notebook
functions defined in a Cython cell imported into the running session. functions defined in a Cython cell imported into the running session.
.. [Jupyter] http://jupyter.org/ .. [Jupyter] https://jupyter.org/
.. [Sage] W. Stein et al., Sage Mathematics Software, http://www.sagemath.org/ .. [Sage] W. Stein et al., Sage Mathematics Software, https://www.sagemath.org/
...@@ -41,7 +41,7 @@ The simplest way of installing Cython is by using ``pip``:: ...@@ -41,7 +41,7 @@ The simplest way of installing Cython is by using ``pip``::
The newest Cython release can always be downloaded from The newest Cython release can always be downloaded from
http://cython.org. Unpack the tarball or zip file, enter the https://cython.org/. Unpack the tarball or zip file, enter the
directory, and then run:: directory, and then run::
python setup.py install python setup.py install
...@@ -59,4 +59,4 @@ with ...@@ -59,4 +59,4 @@ with
.. [Anaconda] https://docs.anaconda.com/anaconda/ .. [Anaconda] https://docs.anaconda.com/anaconda/
.. [Canopy] https://www.enthought.com/product/canopy/ .. [Canopy] https://www.enthought.com/product/canopy/
.. [Sage] W. Stein et al., Sage Mathematics Software, http://www.sagemath.org/ .. [Sage] W. Stein et al., Sage Mathematics Software, https://www.sagemath.org/
...@@ -44,13 +44,13 @@ thus merges the two worlds into a very broadly applicable programming ...@@ -44,13 +44,13 @@ thus merges the two worlds into a very broadly applicable programming
language. language.
.. [Cython] G. Ewing, R. W. Bradshaw, S. Behnel, D. S. Seljebotn et al., .. [Cython] G. Ewing, R. W. Bradshaw, S. Behnel, D. S. Seljebotn et al.,
The Cython compiler, http://cython.org. The Cython compiler, https://cython.org/.
.. [IronPython] Jim Hugunin et al., https://archive.codeplex.com/?p=IronPython. .. [IronPython] Jim Hugunin et al., https://archive.codeplex.com/?p=IronPython.
.. [Jython] J. Huginin, B. Warsaw, F. Bock, et al., .. [Jython] J. Huginin, B. Warsaw, F. Bock, et al.,
Jython: Python for the Java platform, http://www.jython.org. Jython: Python for the Java platform, http://www.jython.org.
.. [PyPy] The PyPy Group, PyPy: a Python implementation written in Python, .. [PyPy] The PyPy Group, PyPy: a Python implementation written in Python,
http://pypy.org. https://pypy.org/.
.. [Pyrex] G. Ewing, Pyrex: C-Extensions for Python, .. [Pyrex] G. Ewing, Pyrex: C-Extensions for Python,
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ https://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
.. [Python] G. van Rossum et al., The Python programming language, .. [Python] G. van Rossum et al., The Python programming language,
https://www.python.org/. https://www.python.org/.
...@@ -75,8 +75,8 @@ Enabling coverage analysis ...@@ -75,8 +75,8 @@ Enabling coverage analysis
-------------------------- --------------------------
Since Cython 0.23, line tracing (see above) also enables support for coverage Since Cython 0.23, line tracing (see above) also enables support for coverage
reporting with the `coverage.py <http://coverage.readthedocs.io/>`_ tool. reporting with the `coverage.py <https://coverage.readthedocs.io/>`_ tool. To
To make the coverage analysis understand Cython modules, you also need to enable make the coverage analysis understand Cython modules, you also need to enable
Cython's coverage plugin in your ``.coveragerc`` file as follows: Cython's coverage plugin in your ``.coveragerc`` file as follows:
.. code-block:: ini .. code-block:: ini
...@@ -274,5 +274,3 @@ faster than calling pow(x,0.5). ...@@ -274,5 +274,3 @@ faster than calling pow(x,0.5).
Even so, the result we achieved here is quite satisfactory: we came up with a Even so, the result we achieved here is quite satisfactory: we came up with a
solution that is much faster then our original Python version while retaining solution that is much faster then our original Python version while retaining
functionality and readability. functionality and readability.
...@@ -42,7 +42,7 @@ Python modules. ...@@ -42,7 +42,7 @@ Python modules.
.. [ctypes] https://docs.python.org/library/ctypes.html. .. [ctypes] https://docs.python.org/library/ctypes.html.
.. there's also the original ctypes home page: http://python.net/crew/theller/ctypes/ .. there's also the original ctypes home page: http://python.net/crew/theller/ctypes/
.. [Pyrex] G. Ewing, Pyrex: C-Extensions for Python, .. [Pyrex] G. Ewing, Pyrex: C-Extensions for Python,
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ https://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
.. [ShedSkin] M. Dufour, J. Coughlan, ShedSkin, .. [ShedSkin] M. Dufour, J. Coughlan, ShedSkin,
https://github.com/shedskin/shedskin https://github.com/shedskin/shedskin
.. [SWIG] David M. Beazley et al., .. [SWIG] David M. Beazley et al.,
......
...@@ -440,7 +440,7 @@ characters and is compatible with plain ASCII encoded text that it ...@@ -440,7 +440,7 @@ characters and is compatible with plain ASCII encoded text that it
encodes efficiently. This makes it a very good choice for source code encodes efficiently. This makes it a very good choice for source code
files which usually consist mostly of ASCII characters. files which usually consist mostly of ASCII characters.
.. _`UTF-8`: http://en.wikipedia.org/wiki/UTF-8 .. _`UTF-8`: https://en.wikipedia.org/wiki/UTF-8
As an example, putting the following line into a UTF-8 encoded source As an example, putting the following line into a UTF-8 encoded source
file will print ``5``, as UTF-8 encodes the letter ``'ö'`` in the two file will print ``5``, as UTF-8 encodes the letter ``'ö'`` in the two
...@@ -553,7 +553,7 @@ above character. ...@@ -553,7 +553,7 @@ above character.
For more information on this topic, it is worth reading the `Wikipedia For more information on this topic, it is worth reading the `Wikipedia
article about the UTF-16 encoding`_. article about the UTF-16 encoding`_.
.. _`Wikipedia article about the UTF-16 encoding`: http://en.wikipedia.org/wiki/UTF-16/UCS-2 .. _`Wikipedia article about the UTF-16 encoding`: https://en.wikipedia.org/wiki/UTF-16/UCS-2
The same properties apply to Cython code that gets compiled for a The same properties apply to Cython code that gets compiled for a
narrow CPython runtime environment. In most cases, e.g. when narrow CPython runtime environment. In most cases, e.g. when
......
...@@ -524,7 +524,7 @@ Acquiring and Releasing the GIL ...@@ -524,7 +524,7 @@ Acquiring and Releasing the GIL
--------------------------------- ---------------------------------
Cython provides facilities for acquiring and releasing the Cython provides facilities for acquiring and releasing the
`Global Interpreter Lock (GIL) <http://docs.python.org/dev/glossary.html#term-global-interpreter-lock>`_. `Global Interpreter Lock (GIL) <https://docs.python.org/dev/glossary.html#term-global-interpreter-lock>`_.
This may be useful when calling from multi-threaded code into This may be useful when calling from multi-threaded code into
(external C) code that may block, or when wanting to use Python (external C) code that may block, or when wanting to use Python
from a (native) C thread callback. Releasing the GIL should from a (native) C thread callback. Releasing the GIL should
......
...@@ -652,6 +652,6 @@ object handling. For the details of how to compile and ...@@ -652,6 +652,6 @@ object handling. For the details of how to compile and
call functions in C files, see :ref:`using_c_libraries`. call functions in C files, see :ref:`using_c_libraries`.
.. _GIL: http://docs.python.org/dev/glossary.html#term-global-interpreter-lock .. _GIL: https://docs.python.org/dev/glossary.html#term-global-interpreter-lock
.. _NumPy: https://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html#memory-layout .. _NumPy: https://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html#memory-layout
.. _example: https://docs.scipy.org/doc/numpy/reference/arrays.indexing.html .. _example: https://docs.scipy.org/doc/numpy/reference/arrays.indexing.html
...@@ -20,7 +20,7 @@ Usage example with distutils ...@@ -20,7 +20,7 @@ Usage example with distutils
---------------------------- ----------------------------
You first need to install Pythran. See its `documentation You first need to install Pythran. See its `documentation
<http://pythran.readthedocs.io/en/latest/>`_ for more information. <https://pythran.readthedocs.io/>`_ for more information.
Then, simply add a ``cython: np_pythran=True`` directive at the top of the Then, simply add a ``cython: np_pythran=True`` directive at the top of the
Python files that needs to be compiled using Pythran numpy support. Python files that needs to be compiled using Pythran numpy support.
...@@ -31,7 +31,7 @@ Here is an example of a simple ``setup.py`` file using distutils: ...@@ -31,7 +31,7 @@ Here is an example of a simple ``setup.py`` file using distutils:
from distutils.core import setup from distutils.core import setup
from Cython.Build import cythonize from Cython.Build import cythonize
setup( setup(
name = "My hello app", name = "My hello app",
ext_modules = cythonize('hello_pythran.pyx') ext_modules = cythonize('hello_pythran.pyx')
......
...@@ -65,7 +65,7 @@ However there are several options to automate these steps: ...@@ -65,7 +65,7 @@ However there are several options to automate these steps:
excellent support for using Cython and NumPy from an interactive command excellent support for using Cython and NumPy from an interactive command
line or through a notebook interface (like line or through a notebook interface (like
Maple/Mathematica). See `this documentation Maple/Mathematica). See `this documentation
<http://doc.sagemath.org/html/en/developer/coding_in_cython.html>`_. <https://doc.sagemath.org/html/en/developer/coding_in_cython.html>`_.
2. Cython can be used as an extension within a Jupyter notebook, 2. Cython can be used as an extension within a Jupyter notebook,
making it easy to compile and use Cython code with just a ``%%cython`` making it easy to compile and use Cython code with just a ``%%cython``
at the top of a cell. For more information see at the top of a cell. For more information see
...@@ -487,8 +487,8 @@ than NumPy! ...@@ -487,8 +487,8 @@ than NumPy!
Where to go from here? Where to go from here?
====================== ======================
* If you want to learn how to make use of `BLAS <http://www.netlib.org/blas/>`_ * If you want to learn how to make use of `BLAS <https://www.netlib.org/blas/>`_
or `LAPACK <http://www.netlib.org/lapack/>`_ with Cython, you can watch or `LAPACK <https://www.netlib.org/lapack/>`_ with Cython, you can watch
`the presentation of Ian Henriksen at SciPy 2015 `the presentation of Ian Henriksen at SciPy 2015
<https://www.youtube.com/watch?v=R4yB-8tB0J0&t=693s&ab_channel=Enthought>`_. <https://www.youtube.com/watch?v=R4yB-8tB0J0&t=693s&ab_channel=Enthought>`_.
* If you want to learn how to use Pythran as backend in Cython, you * If you want to learn how to use Pythran as backend in Cython, you
......
...@@ -2,7 +2,7 @@ Porting Cython code to PyPy ...@@ -2,7 +2,7 @@ Porting Cython code to PyPy
=========================== ===========================
Cython has basic support for cpyext, the layer in Cython has basic support for cpyext, the layer in
`PyPy <http://pypy.org/>`_ that emulates CPython's C-API. This is `PyPy <https://pypy.org/>`_ that emulates CPython's C-API. This is
achieved by making the generated C code adapt at C compile time, so achieved by making the generated C code adapt at C compile time, so
the generated code will compile in both CPython and PyPy unchanged. the generated code will compile in both CPython and PyPy unchanged.
......
...@@ -310,7 +310,7 @@ Automatic ``typecheck`` ...@@ -310,7 +310,7 @@ Automatic ``typecheck``
Rather than introducing a new keyword ``typecheck`` as explained in the Rather than introducing a new keyword ``typecheck`` as explained in the
`Pyrex docs `Pyrex docs
<http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/Manual/special_methods.html>`_, <https://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/Manual/special_methods.html>`_,
Cython emits a (non-spoofable and faster) typecheck whenever Cython emits a (non-spoofable and faster) typecheck whenever
:func:`isinstance` is used with an extension type as the second parameter. :func:`isinstance` is used with an extension type as the second parameter.
......
...@@ -582,7 +582,7 @@ The Sage notebook allows transparently editing and compiling Cython ...@@ -582,7 +582,7 @@ The Sage notebook allows transparently editing and compiling Cython
code simply by typing ``%cython`` at the top of a cell and evaluate code simply by typing ``%cython`` at the top of a cell and evaluate
it. Variables and functions defined in a Cython cell are imported into the it. Variables and functions defined in a Cython cell are imported into the
running session. Please check `Sage documentation running session. Please check `Sage documentation
<http://www.sagemath.org/doc/>`_ for details. <https://www.sagemath.org/doc/>`_ for details.
You can tailor the behavior of the Cython compiler by specifying the You can tailor the behavior of the Cython compiler by specifying the
directives below. directives below.
......
...@@ -103,7 +103,7 @@ def pyx_to_dll(filename, ext=None, force_rebuild=0, build_in_temp=False, pyxbuil ...@@ -103,7 +103,7 @@ def pyx_to_dll(filename, ext=None, force_rebuild=0, build_in_temp=False, pyxbuil
so_path = obj_build_ext.get_outputs()[0] so_path = obj_build_ext.get_outputs()[0]
if obj_build_ext.inplace: if obj_build_ext.inplace:
# Python distutils get_outputs()[ returns a wrong so_path # Python distutils get_outputs()[ returns a wrong so_path
# when --inplace ; see http://bugs.python.org/issue5977 # when --inplace ; see https://bugs.python.org/issue5977
# workaround: # workaround:
so_path = os.path.join(os.path.dirname(filename), so_path = os.path.join(os.path.dirname(filename),
os.path.basename(so_path)) os.path.basename(so_path))
......
...@@ -115,7 +115,7 @@ def get_distutils_distro(_cache=[]): ...@@ -115,7 +115,7 @@ def get_distutils_distro(_cache=[]):
distutils_distro = Distribution() distutils_distro = Distribution()
if sys.platform == 'win32': if sys.platform == 'win32':
# TODO: Figure out why this hackery (see http://thread.gmane.org/gmane.comp.python.cython.devel/8280/). # TODO: Figure out why this hackery (see https://thread.gmane.org/gmane.comp.python.cython.devel/8280/).
config_files = distutils_distro.find_config_files() config_files = distutils_distro.find_config_files()
try: try:
config_files.remove('setup.cfg') config_files.remove('setup.cfg')
......
...@@ -228,7 +228,7 @@ packages = [ ...@@ -228,7 +228,7 @@ packages = [
setup( setup(
name='Cython', name='Cython',
version=version, version=version,
url='http://cython.org/', url='https://cython.org/',
author='Robert Bradshaw, Stefan Behnel, Dag Seljebotn, Greg Ewing, et al.', author='Robert Bradshaw, Stefan Behnel, Dag Seljebotn, Greg Ewing, et al.',
author_email='cython-devel@python.org', author_email='cython-devel@python.org',
description="The Cython compiler for writing C extensions for the Python language.", description="The Cython compiler for writing C extensions for the Python language.",
...@@ -253,7 +253,7 @@ setup( ...@@ -253,7 +253,7 @@ setup(
pip install Cython --install-option="--no-cython-compile" pip install Cython --install-option="--no-cython-compile"
.. _Pyrex: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ .. _Pyrex: https://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
"""), """),
license='Apache', license='Apache',
classifiers=[ classifiers=[
......
...@@ -1089,7 +1089,7 @@ def optimised_index_of_slice(int[:,:,:] arr, int x, int y, int z): ...@@ -1089,7 +1089,7 @@ def optimised_index_of_slice(int[:,:,:] arr, int x, int y, int z):
def test_assign_from_byteslike(byteslike): def test_assign_from_byteslike(byteslike):
# Once http://python3statement.org is accepted, should be just # Once https://python3statement.org/ is accepted, should be just
# >>> test_assign_from_byteslike(bytes(b'hello')) # >>> test_assign_from_byteslike(bytes(b'hello'))
# b'hello' # b'hello'
# ... # ...
......
...@@ -10,12 +10,12 @@ Thanks to Nathaniel Smith and Sebastian Berg. ...@@ -10,12 +10,12 @@ Thanks to Nathaniel Smith and Sebastian Berg.
See also: See also:
Mailing list threads: Mailing list threads:
http://thread.gmane.org/gmane.comp.python.cython.devel/14762 https://thread.gmane.org/gmane.comp.python.cython.devel/14762
http://thread.gmane.org/gmane.comp.python.cython.devel/14634 https://thread.gmane.org/gmane.comp.python.cython.devel/14634
Detailed discussion of the difference between numpy/cython's current Detailed discussion of the difference between numpy/cython's current
definition of "contiguity", and the correct definition: definition of "contiguity", and the correct definition:
http://thread.gmane.org/gmane.comp.python.cython.devel/14634/focus=14640 https://thread.gmane.org/gmane.comp.python.cython.devel/14634/focus=14640
The PR implementing NPY_RELAXED_STRIDES_CHECKING: The PR implementing NPY_RELAXED_STRIDES_CHECKING:
https://github.com/numpy/numpy/pull/3162 https://github.com/numpy/numpy/pull/3162
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Check that Cython generates a tp_clear function that actually clears object Check that Cython generates a tp_clear function that actually clears object
references to NULL instead of None. references to NULL instead of None.
Discussed here: http://article.gmane.org/gmane.comp.python.cython.devel/14833 Discussed here: https://article.gmane.org/gmane.comp.python.cython.devel/14833
""" """
from cpython.ref cimport PyObject, Py_TYPE from cpython.ref cimport PyObject, Py_TYPE
......
...@@ -3,7 +3,7 @@ Check that the @cython.no_gc_clear decorator disables generation of the ...@@ -3,7 +3,7 @@ Check that the @cython.no_gc_clear decorator disables generation of the
tp_clear slot so that __dealloc__ will still see the original reference tp_clear slot so that __dealloc__ will still see the original reference
contents. contents.
Discussed here: http://article.gmane.org/gmane.comp.python.cython.devel/14986 Discussed here: https://article.gmane.org/gmane.comp.python.cython.devel/14986
""" """
cimport cython cimport cython
......
...@@ -474,7 +474,7 @@ def call_builtin_nonempty_dict(): ...@@ -474,7 +474,7 @@ def call_builtin_nonempty_dict():
''' Cython: currently just passes empty kwargs into f() while CPython keeps the content ''' Cython: currently just passes empty kwargs into f() while CPython keeps the content
# A corner case of keyword dictionary items being deleted during # A corner case of keyword dictionary items being deleted during
# the function call setup. See <http://bugs.python.org/issue2016>. # the function call setup. See <https://bugs.python.org/issue2016>.
def call_kwargs_modified_while_building(): def call_kwargs_modified_while_building():
""" """
......
...@@ -1075,7 +1075,7 @@ class CoroutineTest(unittest.TestCase): ...@@ -1075,7 +1075,7 @@ class CoroutineTest(unittest.TestCase):
c.close() c.close()
def test_func_15(self): def test_func_15(self):
# See http://bugs.python.org/issue25887 for details # See https://bugs.python.org/issue25887 for details
async def spammer(): async def spammer():
return 'spam' return 'spam'
...@@ -1092,7 +1092,7 @@ class CoroutineTest(unittest.TestCase): ...@@ -1092,7 +1092,7 @@ class CoroutineTest(unittest.TestCase):
reader(spammer_coro).send(None) reader(spammer_coro).send(None)
def test_func_16(self): def test_func_16(self):
# See http://bugs.python.org/issue25887 for details # See https://bugs.python.org/issue25887 for details
@types_coroutine @types_coroutine
def nop(): def nop():
...@@ -1123,7 +1123,7 @@ class CoroutineTest(unittest.TestCase): ...@@ -1123,7 +1123,7 @@ class CoroutineTest(unittest.TestCase):
reader.throw(Exception('wat')) reader.throw(Exception('wat'))
def test_func_17(self): def test_func_17(self):
# See http://bugs.python.org/issue25887 for details # See https://bugs.python.org/issue25887 for details
async def coroutine(): async def coroutine():
return 'spam' return 'spam'
...@@ -1146,7 +1146,7 @@ class CoroutineTest(unittest.TestCase): ...@@ -1146,7 +1146,7 @@ class CoroutineTest(unittest.TestCase):
coro.close() coro.close()
def test_func_18(self): def test_func_18(self):
# See http://bugs.python.org/issue25887 for details # See https://bugs.python.org/issue25887 for details
async def coroutine(): async def coroutine():
return 'spam' return 'spam'
......
...@@ -93,7 +93,7 @@ class TestCase(CythonTest): ...@@ -93,7 +93,7 @@ class TestCase(CythonTest):
self.assertEqual(type(y).__format__(y, ''), 'class') self.assertEqual(type(y).__format__(y, ''), 'class')
def __test_ast(self): def __test_ast(self):
# Inspired by http://bugs.python.org/issue24975 # Inspired by https://bugs.python.org/issue24975
class X: class X:
def __init__(self): def __init__(self):
self.called = False self.called = False
......
...@@ -1771,7 +1771,7 @@ class UnicodeTest(CommonTest, ...@@ -1771,7 +1771,7 @@ class UnicodeTest(CommonTest,
# Issue #8271: during the decoding of an invalid UTF-8 byte sequence, # Issue #8271: during the decoding of an invalid UTF-8 byte sequence,
# only the start byte and the continuation byte(s) are now considered # only the start byte and the continuation byte(s) are now considered
# invalid, instead of the number of bytes specified by the start byte. # invalid, instead of the number of bytes specified by the start byte.
# See http://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (page 95, # See https://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (page 95,
# table 3-8, Row 2) for more information about the algorithm used. # table 3-8, Row 2) for more information about the algorithm used.
FFFD = '\ufffd' FFFD = '\ufffd'
sequences = [ sequences = [
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
Test suite for PEP 380 implementation Test suite for PEP 380 implementation
adapted from original tests written by Greg Ewing adapted from original tests written by Greg Ewing
see <http://www.cosc.canterbury.ac.nz/greg.ewing/python/yield-from/YieldFrom-Python3.1.2-rev5.zip> see <https://www.cosc.canterbury.ac.nz/greg.ewing/python/yield-from/YieldFrom-Python3.1.2-rev5.zip>
""" """
import sys import sys
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment