a) Don't blame you for not being a fan
b) Don't think the tension still exists
c) Am grateful that the things you are interested in have to do with building such a killer app as IronPython. :)
While I am still learning the Python language, I am loving every minute of it because of IP.
Gracias! :D
Not being a sports fan I can't comment on the tension between the Yankees and Mariners, but we definitely don't have an implementation of sys._getframe which is the problem. While sys._getframe isn't as big as an entire standard module, it certainly is nearly as tricky to implement. Unfortunately we don't expect to get _getframe implemented for v1.0 – but we do have a bug to implement this after 1.0 on CodePlex ( http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=1042 ).
From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of M. David Peterson
Sent: Wednesday, July 19, 2006 9:43 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Cannot use logging module with ipy?
This ones easy...
> logger.debug('The Yankees needs no.5 starter!')
Anytime you mention the "Y" word inside of software developed by Mariners fans is going to cause "problems" ;)
DISCLAIMER: Just in case, this is COMPLETELY, 100% *not true*. In other words, it's a joke of which to understand requires an understanding of the history between the Seattle Mariners and New York Yankees.On 7/19/06, peter lin <[EMAIL PROTECTED]> wrote:
Dear Sir,
I test the logging module with ipy
import sys
sys.path.append(r"c:\python24\lib")
import logging
f=logging.FileHandler('c:\\test55.log')
#formatter = logging.Formatter ("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
#add formatter to ch
#f.setFormatter(formatter)
logger = logging.getLogger("test")
logger.addHandler(f)
logger.setLevel(logging.DEBUG )
logger.debug('The Yankees needs no.5 starter!')
find the error as follows.
Traceback (most recent call last):
File c:\dev_tool\IronPython-1.0-Beta9\rsslibtest.py, line 50, in Initialize
File __init__, line unknown, in debug
File c:\python24\lib\logging\__init__.py, line 955, in debug
File c:\python24\lib\logging\__init__.py, line 1072, in _log
File c:\python24\lib\logging\__init__.py, line 1047, in findCaller
File , line 0, in _getframe##96
ValueError: _getframe is not implemented
Test it in python, it runs ok.
I guess it's another python standard library not yet to find its way to ipy.
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
--
/M:D
M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
--
/M:D
M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
