New contributors will build understanding of the CPython workflow by reading the sections mentioned in this table. You can stop where you feel comfortable and begin contributing immediately without reading and understanding these documents all at once. If you do choose to skip around within the documentation, be aware that it is written assuming preceding documentation has been read so you may find it necessary to backtrack to fill in missing concepts and terminology.
While these kinds of change are much rarer than those described above, they do happen and that process is also described as part of this guide:. Adding to the Stdlib. Changing the Python Language.
There are other Python implementations, each with a different focus. Like CPython, they always have more things they would like to do than they have developers to work on them. Some major examples that may be of interest are:. NET and Mono. Stackless : A Python interpreter focused on providing lightweight microthreads while remaining largely compatible with CPython specific extension modules.
Meta tracker issue tracker for the issue tracker. Daily OS X installer. Anyone can clone the sources for this guide. Dynamic Analysis with Clang. Various tools with configuration files as found in the Misc directory.
Information about editors and their configurations can be found in the wiki. Search this guide. Please note that all interactions on Python Software Foundation -supported infrastructure is covered by the PSF Code of Conduct , which includes all infrastructure used in the development of Python itself e.
In general this means everyone is expected to be open, considerate, and respectful of others no matter what their position is within the project. What are Sanitizers? Issue Tracking. Where to Get Help. This is not end yet, but if we put a debugger in the test, we notice that ApiClient. It means that our mocking was successful.
We replaced a problematic dependency with a Mock. By the way, if you look for best practices for using mocks, check out my almost definitive guide about mocking in Python or why mocking can be dangerous when overused.
We need to parameterize the mock. We can do so by passing a second argument to patch :. This basically means that instead of api. A return result will be a Mock being inserted in a place of an attribute being patched:.
The code under test uses one, but you successfully patched another. The operation was successful, but the patient died. What to do? See Where to patch section of unittest.
Alternatively, you can use a nifty alternative to patch , that is patch. If you want to use patch. If you want to patch. That ought to be your last resort. In my code, I have no other option but patch thanks to dependency injection.
Consult the PythonEvents page to see if any training courses are scheduled in your area and the PythonTraining page for a list of trainers. The first place to look is the Python Package Index. If you can't find anything relevant in the Package Index, try searching python. More info: where to search. You may also try our external guest project, pydoc. Next, try Google or another search engine of your choice. Searching for "python" and some relevant keywords will usually find something helpful.
Finally, you can try posting a query to the comp. Python is a product of the Python Software Foundation , a non-profit organization that holds the copyright. To report a bug in the Python core, use the Python Bug Tracker. To contribute a bug fix or other patch to the Python core, read the Python Developer's Guide for more information about Python's development process. To contribute to the official Python documentation , join the Documentation SIG , write to docs python.
To announce your module or application to the Python community, use comp. See the guide to Python mailing lists for more information.
0コメント