[issue8451] syslog.syslog('msg') logs message with ident "python".

Sean Reifschneider report at bugs.python.org
Wed Apr 21 04:14:54 CEST 2010


Sean Reifschneider <jafo at tummy.com> added the comment:

Ok, so I left the argument style in the docs as it was.

*** NOTE ***: Sean: Change this for the 3 trunk commit.

Setting the "python" string is outside of the argv function because we want to use "python" on any of the many places where the return is done.

As far as using the C argv[0], I decided to specifically use "python" as a fallback.  We could easily just let openlog pick it, which is what the old behavior was, but in that case it's dependent on the implementation.

I can't answer about sys.argv being unicode.

>From my looking at the code, SEP will vary depending on the platform, and is just what os.path.sep is -- I was going to use os.path.sep, but found it just returns SEP.

Thanks for the great review, I've attached a new version.

----------
Added file: http://bugs.python.org/file17018/syslog-kwargs4.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8451>
_______________________________________


More information about the Python-bugs-list mailing list