ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Re: PyErr_Warn
by Mark Hammond other posts by this author
Mar 20 2003 5:33AM messages near this date
PyErr_Warn | e-fundline: March 15, 2003
Jane Austine wrote:

>  It seems like "func == NULL" is true and the message is thrown to the
>  stderr at the time.

You should confirm this.  There is a chance that the function is not 
NULL, and the warnings.warn() function is dumping it to stdout.

>  Now the question:
>  
>  Why is the func(warnings.warn) NULL in this case? 

It doesn't sound like we are sure about that.


>  What does that mean?
>  When is it supposed to be NULL?

It should never be NULL.  Python's startup (see pythonrun.c) sets this 
value.  Thus is should only be NULL is "import warnings" failed during 
startup.

Mark.

-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Jane Austine
Mark Hammond

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved