[issue8117] TimedRotatingFileHandler doesn't rotate log file at startup.
New submission from Yuriy Taraday : Screnario: - start logging, log something; - stop logging (stop application, for example); - start logging again after rotate interval passes. log4j's RotatingFileAppender's behavior: After restart, logfile is rotated if nessesary. TimedRotatingFileHandler's behavior: After restart do no checks on existing logs. I thing, log4j's behavior is more intuitive. Patch adds necessary check to constructor. -- components: Library (Lib) files: python-logging.diff keywords: patch messages: 100845 nosy: yorik.sar severity: normal status: open title: TimedRotatingFileHandler doesn't rotate log file at startup. type: behavior Added file: http://bugs.python.org/file16524/python-logging.diff ___ Python tracker <http://bugs.python.org/issue8117> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8117] TimedRotatingFileHandler doesn't rotate log file at startup.
Yuriy Taraday added the comment: Can this change be included in the 2.6 release? It's small enough but necessary for our current development. -- ___ Python tracker <http://bugs.python.org/issue8117> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8006] os.popen in Python 3.1
Yuriy Taraday added the comment: os.popen is obsolete and as I understand is removed from 3k. Use subprocess module instead. http://docs.python.org/library/os.html?highlight=popen#os.popen -- nosy: +yorik.sar ___ Python tracker <http://bugs.python.org/issue8006> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21078] multiprocessing.managers.BaseManager.__init__'s "serializer" argument is not documented
New submission from Yuriy Taraday: We're going to use BaseManager for simple secure local RPC and for the "secure" part we can't use pickle, so we have to use "serializer" argument to switch to xmlrpclib. We need to be sure that argument won't go away so we need it to be documented and supported on future versions. -- assignee: docs@python components: Documentation messages: 214967 nosy: docs@python, yorik.sar priority: normal severity: normal status: open title: multiprocessing.managers.BaseManager.__init__'s "serializer" argument is not documented versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.org/issue21078> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21078] multiprocessing.managers.BaseManager.__init__'s "serializer" argument is not documented
Yuriy Taraday added the comment: Adding Benjamin Peterson as original author of multiprocessing (according to hg logs) -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/issue21078> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21078] multiprocessing.managers.BaseManager.__init__'s "serializer" argument is not documented
Yuriy Taraday added the comment: Oh, sorry. -- nosy: -benjamin.peterson ___ Python tracker <http://bugs.python.org/issue21078> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12029] Catching virtual subclasses in except clauses
Yuriy Taraday added the comment: Can someone please point out why do we have to do that dance with recursion limit? I've came upon this problem as well. I had some (bad) API I had to work with. It always raised the same exception with the only difference in the message. So I thought I could do something like this: def message_contains(msg): class _MyExc(object): def __instancecheck__(self, exc): return msg in exc.args[0] return _MyExc But after I tried it in number of different ways I found out that it's not possible. So here's another reason to change this behavior. -- nosy: +yorik.sar ___ Python tracker <http://bugs.python.org/issue12029> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8883] Proxy exception lookup fails on MacOS in urllib.
New submission from Yuriy Taraday : I have straight IP in my proxy exception list like "192.168.0.2" without mask specification. The proxy_bypass_macosx_sysconf function verifies each item in this list by regexp r"(\d+(?:\.\d+)*)(/\d+)?" that produces two groups: IP and mask. The mask can be None here (as in my case) and this None case isn't handled, so urllib crashes with "TypeError: 'NoneType' object is unsubscriptable". I couldn't find specification of MacOS proxy exceptions list, so I don't know whether you can use just IP or prefix without mask specification. If you can, here is small patch that adds nesessary check and guesses mask if it is not specified. If you cannot, the last question mark should be removed from regex. -- components: Library (Lib) files: urllib.py.diff keywords: patch messages: 106933 nosy: yorik.sar priority: normal severity: normal status: open title: Proxy exception lookup fails on MacOS in urllib. type: crash versions: Python 2.6 Added file: http://bugs.python.org/file17526/urllib.py.diff ___ Python tracker <http://bugs.python.org/issue8883> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8883] Proxy exception lookup fails on MacOS in urllib.
Yuriy Taraday added the comment: The strange thing is that in both 2.7 and 3.1 branches there is no such code at all. Inernet Config is used there without mentioning any exceptions despite the fact that ic module is marked as deprecated and proxy bypass is real. -- ___ Python tracker <http://bugs.python.org/issue8883> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8883] Proxy exception lookup fails on MacOS in urllib.
Yuriy Taraday added the comment: I'm completely lost 2.7 tree in svn. My last post was about 3.1.2 release. As I understand, System Configuration framework is being used since 2.6.5 and 3.2. So, this bug is about all this versions. -- versions: +Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.org/issue8883> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12029] Catching virtual subclasses in except clauses
Yuriy Taraday added the comment: Can we move forward and land this patch? It seems to be working and for some reason it even makes that microbenchmark work faster. -- versions: +Python 3.5 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue12029> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com