Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...ther Platforms</h3> For platforms in which binaries aren't available here, you can easily build binary RPMs directly from the Python SRPM. Simply download one of the .src.rpm files below, and run "rpmbuild --rebuild python2.3-2.3-1pydotorg.src.rpm". Note toward the end of the output, the lines starting with "Wrote:" indicate where the binary RPMs were written. <p /> The benefit of building binary RPMs in this way is that they are built using exactly the set of l...
...Python? System Message: WARNING/2 (<string>, line 128) Block quote ends without a blank line; unexpected unindent. <li />A) The RPMs that start with "python2.3" are built to not interfere with the system Python. They install as "/usr/bin/python2.3" and will not conflict with the system Python unless you are running on a system that ships the a version of Python which has the same major/minor number. <p /> To invoke the interpreter with these packages, you...
...Python? System Message: WARNING/2 (<string>, line 125) Block quote ends without a blank line; unexpected unindent. <li />A) The RPMs that start with "python2.3" are built to not interfere with the system Python. They install as "/usr/bin/python2.3" and will not conflict with the system Python unless you are running on a system that ships the a version of Python which has the same major/minor number. <p /> To invoke the interpreter with these packages, you...
...install these RPMs on a Red Hat system? Will they over-write the system python and cause problems with other Red Hat applications that expect a different version of Python? A. The RPMs that start with "python2.4" are built to not interfere with the system Python. They install as "/usr/bin/python2.4" and will not conflict with the system Python unless you are running on a system that ships the a version of Python which has the same major/minor number. To invoke the interpret...
...inds of IDEs and programming languages. Python included! pre-commit (repositories) is a framework for managing and maintaining multi-language pre-commit hooks. The framework is written in Python and has a lot of plugins for many programming languages. Advanced topics Staging area Staging area aka index aka cache is a distinguishing feature of git. Staging area is where git collects patches before committing them. Separation between collecting patches and commit phases provides a very useful ...
...in Python 3.6. The code base has been deeply reworked in Python 3.7 and then in Python 3.8 to read the configuration into a structure with no side effect. It becomes possible to clear the configuration (release memory) and read again the configuration if the encoding changed . It is required to implement properly the UTF-8 which changes the encoding using -X utf8 command line option. Internally, bytes argv strings are decoded from the filesystem encoding. The -X dev changes the memory allocator ...
...inary RPMs directly from the Python source tar file. Simply download it and run "rpmbuild -ta Python-2.2.2.tgz". Note toward the end of the output, the lines starting with "Wrote:" indicate where the binary RPMs were written. <p/> The benefit of building binary RPMs in this way is that they are built using exactly the set of libraries and versions of packages that you have installed on your system. Because the SRPMs encompass all the steps required to build binary RP...
...ing Docstring Indentation Docstring processing tools will strip a uniform amount of indentation from the second and further lines of the docstring, equal to the minimum indentation of all non-blank lines after the first line. Any indentation in the first line of the docstring (i.e., up to the first newline) is insignificant and removed. Relative indentation of later lines in the docstring is retained. Blank lines should be removed from the beginning and end of the docstring. Since code is muc...
...ther Platforms</h3> For platforms in which binaries aren't available here, you can easily build binary RPMs directly from the Python SRPM. Simply download one of the .src.rpmfiles below, and run "rpmbuild --rebuild python2-2.2.3-1.src.rpm". Note toward the end of the output, the lines starting with "Wrote:" indicate where the binary RPMs were written. <p /> The benefit of building binary RPMs in this way is that they are built using exactly the set of libraries ...
...the facility from a command-line: python --help if In either situation, the output does paging similar to the more command. Implementation The help function is implemented in an onlinehelp module which is demand-loaded. There should be options for fetching help information from environments other than the command line through the onlinehelp module: onlinehelp.gethelp(object_or_string) -> string It should also be possible to override the help display function by assigning to onlinehelp.d...
...in many other languages, are finally coming to Python. This will become a standard feature in the future, but because this change can break a small amount of existing code, in Python 2.1 it must be enabled explicitly for each module that wants to use the feature. <p>A warnings framework is introduced, which lets the Python interpreter issue warning messages about code that will become obsolete in the future. Python programmers can use this framework to issue their own warnings. The warning...
...ing anything we want in future without requiring embedded DSL's. Donald suggested using setup.cfg and the existing setuptools command line rather than inventing something new. While that would permit interoperability with less visible changes, it requires nearly as much engineering on the pip side - looking for the new key in setup.cfg, implementing the non-installed environments to run the build in. And the desire from other build system authors not to confuse their users by delivering somethin...
...ing the PYTHONPATH environment variable is the only method for defining additional Python module search directories. This PEP introduces the '-P' valued option to the python command as an alternative to PYTHONPATH. Rationale On Unix: python -P $SOMEVALUE will be equivalent to: env PYTHONPATH=$SOMEVALUE python On Windows 2K: python -P %SOMEVALUE% will (almost) be equivalent to: set __PYTHONPATH=%PYTHONPATH% && set PYTHONPATH=%SOMEVALUE%\ && python && set PYTHON...
...install custom loaders on sys.metapath. Accordingly, the only way for Python to reliably locate the module is by importing the containing package and using the PEP 302 import hooks to gain access to the Python code. Note that the process of locating the module to be executed may require importing the containing package. The effects of such a package import that will be visible to the executed module are: the containing package will be in sys.modules any external effects of the package initial...
...ings by default, as if the -Wd command line option had been passed. Note that actually enabling BytesWarning in a test suite still requires passing the -b option to the interpreter at the command line. For implicit bytes conversion and bytes comparison warnings, the warnings filter machinery is only used to determine whether they should be printed as warnings or raised as exceptions - when the command line flag isn't set, the interpreter doesn't even emit the warning in the first place. Recomm...
...ing GNU tar should allow for untarring on Solaris. Some tests may unexpectedly fail on certain platforms. Here are failures that we know (something) about and intend to fix in a following patch release. These bugs may simply be in the test suite, but they may indicate bugs in Python. test_grp and test_pwd may fail. We've had reports of this on *nix systems that use a "+" at the beginning of a line in the /etc/group or /etc/passwd file to indicate NIS/YP or LDAP consultation. The...
...the compiler; the CPython compiler already does so. [2] Other existing alternatives include multiline (triple-quoted) strings, and the join method: """This string extends across multiple lines, but you may want to use something like Textwrap.dedent to clear out the leading spaces and/or reformat. """ >>> "".join(["empty", "string", "joiner"]) == "emptystringjoiner" True >>> " ".join(["space", "string", "joiner"]) == "space string joiner" >>> "\n".jo...