python-guide icon indicating copy to clipboard operation
python-guide copied to clipboard

Python best practices guidebook, written for humans.

Results 140 python-guide issues
Sort by recently updated
recently updated
newest added

The following text is in the Lower Level: virtualenv section "or change the interpreter globally with an env variable in ~/.bashrc: $ export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7" Since this section is talking about...

# Include Pelican Package The Pelican Package would be a nice addition to the templating section, which is under the [Web Applications & Frameworks](https://docs.python-guide.org/scenarios/web/) section. ## Pelican The Pelican Package...

Following [this section](https://docs.python-guide.org/writing/structure/#test-suite), adding `from .context import sample` in my tests module gives me the following error: `ModuleNotFoundError: No module named '__main__.context'; '__main__' is not a package` I was able...

Using `VIRTUALENVWRAPPER_PYTHON` won't work at this point, because we haven't installed virtualenvwrapper yet; use [`VIRTUALENV_PYTHON`](https://virtualenv.pypa.io/en/latest/cli_interface.html#environment-variables) instead.

It says that `python` gets left to point to the system python (2.7 on OSX), but then goes on to say that `python` points to homebrew Python3. https://github.com/realpython/python-guide/blame/master/docs/starting/install/osx.rst#L84-L89 Not sure...

I guess "https://nuitka.net/" would be a good adding to the list of cx_freeze-like systems (though I have no expertise in this particular system)

The guide has become rather difficult to read at places. This is an attempt to improve its readability. I believe you meant `use` and not `usage` (these words mean different...

cx_freeze, py2exe, and pyinstaller all have the same issue: That is, .exes created by these tools cannot access Windows path names longer than the 260 char MAX_PATH limit.

Writing Great Python Code ---- Structuring Your Project ----------Regarding Django Applications Structure of Code is Key, it is true. In this paragraph, someone writes about Django, but I must say...

There are plenty of libraries to choose from, when working with dates and times (python-dateutil, parsedatetime, arrow, ...)., and choosing one is not trivial. I was wondering if such a...