A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/005998.html below:

[Python-Dev] Demo/embed causes 'import site' failure

[Python-Dev] Demo/embed causes 'import site' failure [Python-Dev] Demo/embed causes 'import site' failureM.-A. Lemburg mal@lemburg.com
Mon, 10 Jul 2000 19:32:31 +0200
Guido van Rossum wrote:
> 
> > > OK, so there's code masking the ImportError in import_encodings() in
> > > codecs.c.  I disabled that (hmm, maybe this should be disabled
> > > automatically when -v is used!).
> >
> > Hard to do since the setting of the verbosity flag is not
> > available to Python code.
> 
> Actually, it is:  see pydebug.h, included by Python.h:
> 
> extern DL_IMPORT(int) Py_VerboseFlag;

Yes... I meant: it is not available from Python. (mx.Tools
publishes an interface to this flag: sys.verbosity() which
also allows setting the value at runtime.)
 
-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4