[issue17188] Document 'from None' in raise statement doc.

2016-09-12 Thread Thomi Richards

Thomi Richards added the comment:

Re-uploaded the patch without the typo.

--
Added file: http://bugs.python.org/file44618/issue17188_3.4.patch

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



[issue17188] Document 'from None' in raise statement doc.

2016-09-12 Thread Thomi Richards

Thomi Richards added the comment:

OK, it seems that patch applies cleanly to 3.5 and 3.6.

--

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



[issue17188] Document 'from None' in raise statement doc.

2016-09-12 Thread Thomi Richards

Thomi Richards added the comment:

I have attached a patch for 3.4, based on the patch submitted by Nitika 
Agarwal. The main difference is that I think it's better to be explicit and 
show a separate example of `raise X from None`.

I will submit a patch for later versions as well.

--
nosy: +thomir
Added file: http://bugs.python.org/file44607/issue17188_3.4.patch

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



[issue26557] dictviews methods not present on shelve objects

2016-09-11 Thread Thomi Richards

Thomi Richards added the comment:

Attached is a patch that adds a sentence to the UserDict module docs explicitly 
stating that the viewkeys, viewitems, and viewvalues functions are not 
implemented. I don't think it's worth adding support for these newer functions 
in UserDict. I'm unsure whether landing this patch is as necessary as the patch 
for the shelve module.

--
Added file: http://bugs.python.org/file44580/issue26557_userdict.patch

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



[issue26557] dictviews methods not present on shelve objects

2016-09-11 Thread Thomi Richards

Thomi Richards added the comment:

Attached is a patch that adds documentation to `shelve.rst` explicitly stating 
that it does not support the viewkeys, viewvalues, and viewitems methods. 

I think this is the correct approach since it doesn't seems sensible to add 
support for these methods to UserDict, *and* also it might give users the 
impression that they can incrementally iterate over a shelved object without 
loading it all (which I believe is incorrect).

--
keywords: +patch
nosy: +thomir
Added file: http://bugs.python.org/file44578/issue26557_shelve.patch

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



[issue26511] Add link to id() built-in in comparison operator documentation for "is"

2016-09-11 Thread Thomi Richards

Thomi Richards added the comment:

The attached patch applies to 3.5, but not 2.7. If you're happy with it, I can 
work up a version for 2.7 as well.

--

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



[issue26511] Add link to id() built-in in comparison operator documentation for "is"

2016-09-11 Thread Thomi Richards

Thomi Richards added the comment:

Attached patch for master branch.

--
keywords: +patch
nosy: +thomir
Added file: http://bugs.python.org/file44568/issue_26511.patch

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



[issue20687] Change in expectedFailure breaks testtools

2014-02-19 Thread Thomi Richards

Changes by Thomi Richards :


--
nosy: +thomir

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