[issue18032] set methods should specify whether they consume iterators "lazily"

2013-11-19 Thread Dustin Haffner

Dustin Haffner added the comment:

I've made an attempt at patching set_issubset() to match the Python from 
Raymond's message. I've rearranged the set_issubset function so that it checks 
for a set/frozenset, dict, or iterable in that order. In the iterable case it 
will create a temporary set and add elements to it as it consumes them from the 
iterable, returning early when possible.

This is my first patch, please let me know how I may improve it!

--
keywords: +patch
nosy: +dhaffner
Added file: http://bugs.python.org/file32706/issubset_improvement.patch

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



[issue12063] tokenize module appears to treat unterminated single and double-quoted strings inconsistently

2011-07-26 Thread Dustin Haffner

Changes by Dustin Haffner :


--
nosy: +dhaffner

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