You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/python/installing-python-interpreters.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ You can also manually install any of the interpreters listed in the table below
24
24
25
25
::: moniker range=">=vs-2019"
26
26
> [!Note]
27
-
> Visual Studio supports Python version 2.7, as well as version 3.5 and greater. While it is possible to use Visual Studio to edit code written in other versions of Python, those versions are not officially supported and features such as IntelliSense and debugging might not work.
27
+
> Visual Studio supports Python version 2.7, as well as version 3.5 to 3.7. While it is possible to use Visual Studio to edit code written in other versions of Python, those versions are not officially supported and features such as IntelliSense and debugging might not work.
28
28
::: moniker-end
29
29
30
30
For **Visual Studio 2015 and earlier**, you must manually install one of the interpreters.
1. When you start writing a multiline statement, like a function definition, the **Interactive** window shows Python's **...** prompt for continuing lines, which, unlike the command-line REPL, provides automatic indentation:
38
+
1. When you start writing a multiline statement, like a function definition, the **Interactive** window shows Python's **...** prompt for continuing lines, which, unlike the command-line REPL, provides automatic indentation. To add a new **...** line, press `Shift+Enter`:
39
39
40
40

Copy file name to clipboardExpand all lines: docs/python/working-with-c-cpp-python-in-visual-studio.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -394,16 +394,16 @@ Visual Studio supports debugging Python and C++ code together. This section walk
394
394
395
395
There are a variety of means to create Python extensions as described in the following table. The first two entries for CPython and PyBind11 are what has been discussed in this article already.
| C/C++ extension modules for CPython |1991| Standard Library |[Extensive documentation and tutorials](https://docs.python.org/3/c-api/). Total control. | Compilation, portability, reference management. High C knowledge. |
400
-
| [PyBind11](https://github.com/pybind/pybind11) (Recommended for C++) |2015|| Lightweight, header-only library for creating Python bindings of existing C++ code. Few dependencies. PyPy compatibility. | Newer, less mature. Heavy use of C++11 features. Short list of supported compilers (Visual Studio is included). |
401
-
| Cython (Recommended for C) |2007| [gevent](https://www.gevent.org/), [kivy](https://kivy.org/) | Python-like. Highly mature. High performance. | Compilation, new syntax, new toolchain. |
402
-
| [Boost.Python](https://www.boost.org/doc/libs/1_66_0/libs/python/doc/html/index.html) |2002|| Works with just about every C++ compiler. | Large andcomplex suite of libraries; contains many workarounds for old compilers. |
403
-
| ctypes |2003| [oscrypto](https://github.com/wbond/oscrypto) |No compilation, wide availability. | Accessing and mutating C structures cumbersome and error prone. |
404
-
|SWIG|1996| [crfsuite](http://www.chokkan.org/software/crfsuite/) |Generate bindings for many languages at once. | Excessive overhead if Python is the only target. |
405
-
| cffi |2013| [cryptography](https://cryptography.io/en/latest/), [pypy](https://pypy.org/) | Ease of integration, PyPy compatibility. | Newer, less mature. |
406
-
| [cppyy](https://cppyy.readthedocs.io/en/latest/) |2017|| Similar to cffi using C++. | Newer, may have some issues withVS2017. |
397
+
| Approach | Vintage | Representative user(s) |
398
+
|---|---|---|
399
+
| C/C++ extension modules for CPython |1991| Standard Library |
400
+
| [PyBind11](https://github.com/pybind/pybind11) (Recommended for C++) |2015||
401
+
| Cython (Recommended for C) |2007| [gevent](https://www.gevent.org/), [kivy](https://kivy.org/) |
0 commit comments