New submission from Ralf Schmitt <[EMAIL PROTECTED]>:
The warnings module prints garbage when the __file__ points to a binary.
This happens e.g. when freezing applications with bbfreeze/py2exe.
It's easy to reproduce even without freezing:
~/ python
[EMAIL PROTECTED] ok
Python 2.6b1+ (trunk, Jun 30 2008, 07:26:07)
[GCC 4.3.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> __file__=sys.executable
>>> import md5
/home/ralf/py26/bin/python:1: DeprecationWarning: the md5 module is
deprecated; use hashlib instead
ELF>[EMAIL PROTECTED]@85Q@@'$@@@@@[EMAIL PROTECTED]@@@T�T�
��t�t$z�] (�(�t([EMAIL PROTECTED]@
P�td�N�NS�NSDUDUQ�td/lib64/ld-linux-x86-64.so.2GNUH
[EMAIL
PROTECTED]&��j�>D�=i�w�RJ�0���'[EMAIL PROTECTED]:���
# $ _
----------
components: Library (Lib)
messages: 68992
nosy: schmir
severity: normal
status: open
title: warnings module prints garbage
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3241>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com