[issue9746] All sequence types support .index and .count

2010-11-20 Thread Iuri Diniz

Iuri Diniz  added the comment:

Is this bug valid? 

I have checked that only bytearray, bytes, list, range, str and tuple are valid 
sequence types [using issubclass(type, collections.Sequence)] and all of them 
has index and count methods... 

I'm working on a script to discovery what types that are not 
collections.Sequence ABC yet, but must be.

Merwork said the docs are the authoritative reference to define what classes 
are sequences and one way to discovery it is by comparing the set of methods of 
each concrete class with the methods of collections.Sequence

--
nosy: +iuridiniz

___
Python tracker 
<http://bugs.python.org/issue9746>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9746] All sequence types support .index and .count

2010-11-20 Thread Iuri Diniz

Iuri Diniz  added the comment:

Well, I think that script not more necessary

count problem: Issue10474

--

___
Python tracker 
<http://bugs.python.org/issue9746>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8943] Bug in InteractiveConsole

2010-11-21 Thread Iuri Diniz

Iuri Diniz  added the comment:

Bug stills on branch 
http://svn.python.org/projects/python/branches/py3k 
branch http://svn.python.org/projects/python/branches/release27-maint is OK

doing some gdb on 3.2, I have discovered that the problem occurs when trying to 
dump global Example from module __console__ on 
py3k/Modules/_pickle.c:save_global:2536

Python 2.7 never calls save_global (why?)

in annex: an update test

--
nosy: +iuridiniz
Added file: http://bugs.python.org/file19734/interative.py

___
Python tracker 
<http://bugs.python.org/issue8943>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8943] Bug in InteractiveConsole

2010-11-21 Thread Iuri Diniz

Iuri Diniz  added the comment:

preliminary gdb backtrace

--
Added file: http://bugs.python.org/file19735/backtrace-py3k-8943.txt

___
Python tracker 
<http://bugs.python.org/issue8943>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8943] Bug in InteractiveConsole

2010-11-21 Thread Iuri Diniz

Iuri Diniz  added the comment:

Well, this is a pickle problem or a Interactive console problem?

on python 2.7 does not save a type "type" (like Example class is)
2: type->tp_name = 0x58a87c "instance"
2: type->tp_name = 0x590391 "dict"
2: type->tp_name = 0x5943b6 "str"
2: type->tp_name = 0x5943b6 "str"

on python 3.2 does and when saving a type, it tries to save a global.

--

___
Python tracker 
<http://bugs.python.org/issue8943>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com