[issue2226] Small _abcoll Bugs / Oddities

2014-02-02 Thread Nick Coghlan

Nick Coghlan added the comment:

With the only remaining issue here being the misbehaviour of the Set and 
MutableSet ABCs when dealing with other types (the other issues in Armin's 
original report were much simpler and fixed promptly), I'm closing this as a 
duplicate of issue 8743 (where I just uploaded an up to date patch based on the 
patch Daniel linked to above)

--
resolution:  - duplicate
status: open - closed
superseder:  - set() operators don't work with collections.Set instances

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2014-01-31 Thread Yury Selivanov

Changes by Yury Selivanov yselivanov...@gmail.com:


--
nosy: +yselivanov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2014-01-11 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
nosy: +mark.dickinson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2014-01-07 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Yes, I'll have a look shortly.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2014-01-04 Thread Nick Coghlan

Nick Coghlan added the comment:

Raymond, will you have a chance to look at this before 3.4rc1? Otherwise I'd 
like to take it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2013-11-27 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2013-05-21 Thread Nick Coghlan

Nick Coghlan added the comment:

Armin pointed out in 
http://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/ that one nasty 
consequence of the remaining part of this bug and issue 8743 is making it much 
harder than it should be to use the ItemsView, KeysView and ValuesView from 
collections.abc to implement third party mappings that behave like the builtin 
dict.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2013-05-20 Thread Nick Coghlan

Changes by Nick Coghlan ncogh...@gmail.com:


--
nosy: +ncoghlan

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2013-05-20 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2013-01-16 Thread Daniel Stutzbach

Changes by Daniel Stutzbach stutzb...@google.com:


--
assignee: stutzbach - rhettinger

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2013-01-13 Thread Ramchandra Apte

Ramchandra Apte added the comment:

Bump.

--
nosy: +ramchandra.apte

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2010-12-17 Thread Daniel Stutzbach

Daniel Stutzbach stutzb...@google.com added the comment:

Raymond,

Do you have around 10 minutes today to look at the patch I submitted in Issue 
8743?  It appears to solve both this issue and that one, which have priorities 
critical and high, respectively.

It's a reasonably small patch: around 20 lines changed plus 20 lines added, all 
Python code.  Here's a direct link:

http://bugs.python.org/file20045/set-with-Set.patch

If it looks good to you, I'd like to commit it in time for 3.2b2 so that it 
gets as much exercise as possible before 3.2-final.

Earlier you had expressed that adding the __rand__ methods to collections.Set 
would be tricky issue, so I'm concerned that I have overlooked something 
important and obvious.

(Feedback from others is, of course, welcome as well)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2010-12-14 Thread Daniel Stutzbach

Daniel Stutzbach stutzb...@google.com added the comment:

Minor point of clarity: you mean __rand__ not __radd__, right?  Set objects do 
not support addition at all.

Adding the __rand__ methods to collections.Set in and of itself is 
straightforward:

def __rsub__(self, other):
return self._from_iterable(other) - self
__ror__ = __or__
__rand__ = __and__
__rxor__ = __xor__

I'm not sure I understand the can of worms.  While replacing concrete tests 
with abstract tests may be worthwhile goal in its own right, why is it 
necessary to solve the particular shortcoming of missing __r* methods?

Probably I'm missing something.  With just the minimal change above, what kinds 
of things do you expect to fail?

(assuming Issue8743 is also fixed)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2010-12-13 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
stage:  - unit test needed
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2010-12-13 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Yes, if you have a chance to think it through, it would be nice to get this 
fixed-up.

--
assignee:  - stutzbach
versions:  -Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2010-08-20 Thread Daniel Stutzbach

Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:

3.1 is long gone.  Should this be addressed for 3.2?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2010-05-17 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +stutzbach
versions: +Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2009-01-05 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

I'm not going to get to this.

--
assignee: gvanrossum - 

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2009-01-05 Thread Guido van Rossum

Changes by Guido van Rossum gu...@python.org:


--
nosy:  -gvanrossum

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2008-09-03 Thread Raymond Hettinger

Raymond Hettinger [EMAIL PROTECTED] added the comment:

Recommend dealing with this in 3.1.
The __radd__ issue is non-trivial
and can't easily be dealt with at this point.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2008-09-03 Thread Barry A. Warsaw

Barry A. Warsaw [EMAIL PROTECTED] added the comment:

Thanks Raymond.  Lowering the priority to critical and pushing this back
to 3.1.

--
priority: deferred blocker - critical
versions: +Python 3.1 -Python 2.6, Python 3.0

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2008-08-21 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


--
priority: critical - release blocker

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2008-07-30 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Ping.

--
nosy: +benjamin.peterson

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2008-03-17 Thread Guido van Rossum

Guido van Rossum [EMAIL PROTECTED] added the comment:

I'm setting this to critical to ensure that I will at least have a
thorough look at this before the release.  I'm not sure whether I will
decide to address it or leave it alone.

--
priority:  - critical

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2226
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2008-03-03 Thread Armin Ronacher

Changes by Armin Ronacher:


--
components: Library (Lib)
nosy: aronacher
severity: normal
status: open
title: Small _abcoll Bugs / Oddities
versions: Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2226
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2008-03-03 Thread Armin Ronacher

New submission from Armin Ronacher:

_abcoll.py references intertools.chain but doesn't import it.  This
breaks Set subclasses.  Additionally the abstract base classes don't
provide the right hand operator callbacks or how you want to call them.
 So __add__ is there but __radd__ not which for example leads to the
problem that foo() + set() works but set() + foo not.

And the third oddity in that module is that Callable defines an abstract
method for __contains__ which makes no sense but none for __call__.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2226
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2008-03-03 Thread Georg Brandl

Georg Brandl added the comment:

I fixed the import in r61211.

Raymond, can you sort out the set operations?

--
assignee:  - rhettinger
nosy: +georg.brandl, rhettinger

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2226
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2008-03-03 Thread Raymond Hettinger

Raymond Hettinger added the comment:

* Removed the dependency on itertools:  r61213.

* Fixed nasty cut-and-paste error in Callable:  r61214

Leaving the other one for Guido.  I suspect the __radd__ style methods
are can of worms best left unopened for now.  The right solution
probably involves visiting every piece of code in Python that makes a
concrete isinstance/issubclass test and replacing it with an abstract
test.  That may have unexpected side-effects, may be hard to test, and
may kill performance.

--
assignee: rhettinger - gvanrossum
nosy: +gvanrossum
versions: +Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2226
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com