blob: f9e60111ff41c12f233a64218aa3d7b877b78b93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
**************************
What's New In Pylint 1.9
**************************
:Release: 1.9
:Date: |TBA|
Summary -- Release highlights
=============================
* None so far
New checkers
============
* A new Python 3 checker was added to warn about the removed ``operator.div`` function.
* A new Python 3 checker was added to warn about accessing functions that have been
moved from the urllib module in corresponding subpackages, such as ``urllib.request``.
.. code-block:: python
from urllib import urlencode
Instead the previous code should use ``urllib.parse`` or ``six.moves`` to import a
module in a Python 2 and 3 compatible fashion:
.. code-block:: python
from six.moves.urllib.parse import urlencode
To have this working on Python 3 as well, please use the ``six`` library:
.. code-block:: python
six.reraise(Exception, "value", tb)
* A new check was added to warn about using unicode raw string literals. This is
a syntax error in Python 3:
.. code-block:: python
a = ur'...'
Other Changes
=============
* `defaultdict` and subclasses of `dict` are now handled for `dict-iter-*` checks. That
means that the following code will now emit warnings for when `iteritems` and friends
are accessed:
.. code-block:: python
some_dict = defaultdict(list)
...
some_dict.iterkeys()
* Enum classes no longer trigger `too-few-methods`
* Special methods now count towards `too-few-methods`,
and are considered part of the public API.
They are still not counted towards the number of methods for
`too-many-methods`.
* docparams allows abstract methods to document returns documentation even
if the default implementation does not return something.
They also no longer need to document raising a NotImplementedError.
|