[ python-Bugs-1567234 ] unchecked metaclass mro

2006-09-28 Thread SourceForge.net
Bugs item #1567234, was opened at 2006-09-28 21:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1567234&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: ganges master (gangesmaster)
Assigned to: Nobody/Anonymous (nobody)
Summary: unchecked metaclass mro 

Initial Comment:
this bug was fixed in python2.5, but it's worth adding
to 2.4.4.

metaclasses can return an "insane" mro, which confuses
the PyXXX_Check checks, and causes memory corruption.

Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310
32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for
more information.
>>> class crasher(object):
... class __metaclass__(type):
... def mro(self):
... return (str, int, list)
...
>>> c = crasher("hello")
>>> c # a very strange object
''
>>> dir(c)
[]
>>> c.append(5)
# 

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1567234&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1567234 ] unchecked metaclass mro

2006-09-28 Thread SourceForge.net
Bugs item #1567234, was opened at 2006-09-28 21:48
Message generated for change (Settings changed) made by gangesmaster
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1567234&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: ganges master (gangesmaster)
>Assigned to: A.M. Kuchling (akuchling)
Summary: unchecked metaclass mro 

Initial Comment:
this bug was fixed in python2.5, but it's worth adding
to 2.4.4.

metaclasses can return an "insane" mro, which confuses
the PyXXX_Check checks, and causes memory corruption.

Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310
32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for
more information.
>>> class crasher(object):
... class __metaclass__(type):
... def mro(self):
... return (str, int, list)
...
>>> c = crasher("hello")
>>> c # a very strange object
''
>>> dir(c)
[]
>>> c.append(5)
# 

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1567234&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1567331 ] logging.RotatingFileHandler has no "infinite" backupCount

2006-09-28 Thread SourceForge.net
Bugs item #1567331, was opened at 2006-09-28 16:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1567331&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Nobody/Anonymous (nobody)
Summary: logging.RotatingFileHandler has no "infinite" backupCount

Initial Comment:
It seems to me that logging.RotatingFileHandler should
have a way to spell "never delete old log files".  This
is useful in situations where you want an external
process (manual or automatic) make decisions about
deleting log files.


--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1567331&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1567375 ] False sentence about formatted print in tutorial section 7.1

2006-09-28 Thread SourceForge.net
Bugs item #1567375, was opened at 2006-09-28 19:15
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1567375&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: David Benbennick (dbenbenn)
Assigned to: Nobody/Anonymous (nobody)
Summary: False sentence about formatted print in tutorial section 7.1

Initial Comment:
The line:

(Note that one space between each column was added by
the way print works: it always adds spaces between its
arguments.)

in section 7.1 of the tutorial
(http://docs.python.org/dev/tut/node9.html), is false.
 It refers to the command

print '%2d %3d %4d' % (x, x*x, x*x*x)

which produces (if x == 10)

10 100 1000

The two spaces in that output are NOT "added by the way
print works".  Instead, they come from the format
string itself.  If you use

print '%2d%3d%4d' % (x, x*x, x*x*x)

you get

101001000

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1567375&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1567450 ] tabs missing in idle options configure

2006-09-28 Thread SourceForge.net
Bugs item #1567450, was opened at 2006-09-28 23:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1567450&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: jrgutierrez (jrgutierrez)
Assigned to: Nobody/Anonymous (nobody)
Summary: tabs missing in idle options configure

Initial Comment:
1)The option to select indentation type (insert 
spaces or tabs) is missing
2) The indented width is ignored 

As a result IDLE 2.5 always indents inserting tabs, 
width 8

Sources edited in IDLE 2.4 cannot be corrected with 
IDLE 2.5:

The tabbing errors cannot be corrected with IDLE 2.5. 
You must revert to IDLE 2.4 


--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1567450&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com