background preloader

The Python Standard Library — Python 2.7.10 documentation

The Python Standard Library — Python 2.7.10 documentation
This document is for an old version of Python that is no longer supported. You should upgrade and read the Python documentation for the current stable release. Navigation The Python Standard Library¶ While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is distributed with Python. It also describes some of the optional components that are commonly included in Python distributions. Python’s standard library is very extensive, offering a wide range of facilities as indicated by the long table of contents listed below. The Python installers for the Windows platform usually include the entire standard library and often also include many additional components. Previous topic 9. Next topic 1. This Page Show Source Quick search © Copyright 1990-2020, Python Software Foundation. Related:  Python

Home · gtalarico/ironpython-stubs Wiki External Python Debugger - Scripting - McNeel Forum Thanks @piac! I’m glad you like it (adding you to the credits :P) You are totally right @Helvetosaur, the process is a little bit tedious if you don’t have to edit long scripts inside ghPython component, but when you need it, there is not a lot of choices to pick from. I totally agree with you @Helvetosaur , probably a seamless integration between editors is a nice way to go, but I have some suggestions if this happen, because the rhino.python editor is neither a perfect solution (no proper autocomplete, no linter, no proper outliner…) Everytime I think about a perfect lightweight code editor, SublimeText 3 comes to my mind: reliable, fast, lot of options to personalize your workflow ( custom code snippets, multiline selection, error linter via plugins, powerful autocomplete python API to create your extensions…) , and code edition tasks…it lacks of proper debugging options but the rest is just perfect to take as example of a good and lightweight code editor.

GetObject Home > RhinoScript Methods > Selection Methods > GetObject Prompts the user to pick, or select, a single object. Syntax Rhino.GetObject ([strMessage [, intType [, blnPreSelect [, blnSelect [, arrObjects ]]]]]) Parameters Returns Example Dim strObject strObject = Rhino.GetObject("Pick any object") If Not IsNull(strObject) Then Rhino.Print "Object identifier: " & strObject End If strObject = Rhino.GetObject("Pick a curve or surface", 4 + 8) strObject = Rhino.GetObject("Select any object", , , True) Also See GetCurveObject GetObjectEx GetObjects GetSurfaceObject Rhino.Python 101 with unset You’ve just opened the first edition of the Rhino Python primer. This guide was originally written by David Rutten for Rhino 4 and VBscript and has now been translated to encompass Python for Rhino 6. As always, this primer is intended to teach programming to absolute beginners, people who have tinkered with programming a bit or expert programmers looking for a quick introduction to the methods in Rhino. Rhinoscript (VBscript) has been supported for many years, with a large user group and extensive support material. As well as giving a basic introduction, this primer looks to easily transition those familiar with VBscript into the world of Rhino Python. Similar to the previous primers, we have the advantage of using geometric and visual examples to help teach programming. Programming offers users the powerful ability to automate tasks, make decisions, perform powerful calculations and geometric manipulations, thus, essentially acting as a designer’s side kick. Good luck!

Download Python How to verify your downloaded files are genuine Sigstore verification Starting with the Python 3.11.0, Python 3.10.7, and Python 3.9.14 releases, CPython release artifacts are signed with Sigstore. See our dedicated Sigstore Information page for how it works. OpenPGP verification Python versions before 3.14 are also signed using OpenPGP private keys of the respective release manager. See PEP 761 for why OpenPGP key verification was dropped in Python 3.14. Windows (Updated for Azure Trusted Signing, which applies for all releases chronologically from 3.14.0a1) The Windows installers and all binaries produced as part of each Python release are signed using an Authenticode signing certificate issued to the Python Software Foundation. macOS Installer Packages Installer packages for Python on macOS downloadable from python.org are signed with with an Apple Developer ID Installer certificate. Installer packages for previous releases were signed with certificates issued to Ned Deily (DJ3H93M7VJ).

The Python Tutorial — Python 3.7.1 documentation Tip This tutorial is designed for programmers that are new to the Python language, not beginners who are new to programming. Python is an easy to learn, powerful programming language. The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python web site, and may be freely distributed. The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C). This tutorial introduces the reader informally to the basic concepts and features of the Python language and system. For a description of standard objects and modules, see The Python Standard Library. This tutorial does not attempt to be comprehensive and cover every single feature, or even every commonly used feature. The Glossary is also worth going through.

Project Jupyter | Installing the Jupyter Notebook Project Jupyter’s tools are available for installation via the Python Package Index, the leading repository of software created for the Python programming language. This page uses instructions with pip, the recommended installation tool for Python. If you require environment management as opposed to just installation, look into conda, mamba, pipenv, and Homebrew. JupyterLab Install JupyterLab with pip: Note: If you install JupyterLab with conda or mamba, we recommend using the conda-forge channel. Once installed, launch JupyterLab with: Jupyter Notebook Install the classic Jupyter Notebook with: To run the notebook: Voilà Install Voilà with: Once installed, launch Voilà with: Homebrew Homebrew is a package manager for macOS and Linux. Python Set Up  |  Python Education  |  Google Developers This page explains how to set up Python on a machine so you can run and edit Python programs, and links to the exercise code to download. You can do this before starting the class, or you can leave it until you've gotten far enough in the class that you want to write some code. The Google Python Class uses a simple, standard Python installation, although more complex strategies are possible. Python is free and open source, available for all operating systems from python.org. In particular we want a Python install where you can do two things: Run an existing python program, such as hello.py Run the Python interpreter interactively, so you can type code right at it Both of the above are done quite a lot in the lecture videos, and it's definitely something you need to be able to do to solve the exercises. Download Google Python Exercises As a first step, download the google-python-exercises.zip file and unzip it someplace where you can work on it. Python on Linux, Mac OS X, and other OS

Python Introduction  |  Python Education  |  Google Developers Prelude Welcome to Google's Python online tutorial. It is based on the introductory Python course offered internally. As mentioned on the setup page, this material covers Python 3. If you're seeking a companion MOOC course, try the ones from Udacity and Coursera (intro to programming [beginners] or intro to Python). Language Introduction Python is a dynamic, interpreted (bytecode-compiled) language. An excellent way to see how Python code works is to run the Python interpreter and type code right into it. The two lines python prints after you type python and before the >>> prompt tells you about the version of python you're using and where it was built. As you can see above, it's easy to experiment with variables and operators. Python source code Python source files use the ".py" extension and are called "modules." Here's a very simple hello.py program (notice that blocks of code are delimited strictly using indentation rather than curly braces — more on this later!) User-defined Functions

Python Strings - Educational Materials Python has a built-in string class named "str" with many handy features (there is an older module named "string" which you should not use). String literals can be enclosed by either double or single quotes, although single quotes are more commonly used. Backslash escapes work the usual way within both single and double quoted literals -- e.g. \n \' \". Python strings are "immutable" which means they cannot be changed after they are created (Java strings also use this immutable style). Characters in a string can be accessed using the standard [ ] syntax, and like Java and C++, Python uses zero-based indexing, so if s is 'hello' s[1] is 'e'. Unlike Java, the '+' does not automatically convert numbers or other types to string form. For numbers, the standard operators, +, /, * work in the usual way. The "print" operator prints out one or more python items followed by a newline (leave a trailing comma at the end of the items to inhibit the newline). String Methods String Slices String %

Glossary — Conda documentation .condarc¶ The Conda Runtime Configuration file, an optional .yaml file that allows you to configure many aspects of conda, such as which channels it searches for packages, proxy settings and environment directories. A .condarc file is not included by default, but it is automatically created in your home directory when you use the conda config command. The .condarc file can also be located in a root environment, in which case it overrides any .condarc in the home directory. For more information, see Using the .condarc conda configuration file and Administering a multi-user conda installation. activate/deactivate environment¶ Conda commands used to switch or move between installed environments. NOTE: Replace envname with the name of the environment and replace program_name with the name of the program. Anaconda¶ A downloadable, free, open source, high-performance and optimized Python and R distribution. See also Miniconda and Conda. Anaconda Cloud¶ Anaconda Navigator¶ Channels¶ Conda¶ Miniconda¶

Related: