回答編集履歴
2
fix typo
answer
CHANGED
@@ -55,4 +55,4 @@
|
|
55
55
|
(略)
|
56
56
|
```
|
57
57
|
|
58
|
-
Python2には
|
58
|
+
Python2にはexceptionsパッケージがあって、Python3では名前が改められたことが確認できます。
|
1
追記
answer
CHANGED
@@ -1,1 +1,58 @@
|
|
1
|
-
Python3に対応していないパッケージだというだけの話かと思います。
|
1
|
+
Python3に対応していないパッケージだというだけの話かと思います。
|
2
|
+
|
3
|
+
|
4
|
+
----
|
5
|
+
(追記)
|
6
|
+
|
7
|
+
via [https://stackoverflow.com/questions/27030933/python-2s-exceptions-module-is-missing-in-python3-where-did-its-contents-go](https://stackoverflow.com/questions/27030933/python-2s-exceptions-module-is-missing-in-python3-where-did-its-contents-go)
|
8
|
+
|
9
|
+
|
10
|
+
```Python2
|
11
|
+
>>> import exceptions
|
12
|
+
>>> help(exceptions)
|
13
|
+
|
14
|
+
Help on built-in module exceptions:
|
15
|
+
|
16
|
+
NAME
|
17
|
+
exceptions - Python's standard exception class hierarchy.
|
18
|
+
|
19
|
+
FILE
|
20
|
+
(built-in)
|
21
|
+
|
22
|
+
MODULE DOCS
|
23
|
+
https://docs.python.org/library/exceptions
|
24
|
+
|
25
|
+
DESCRIPTION
|
26
|
+
Exceptions found here are defined both in the exceptions module and the
|
27
|
+
built-in namespace. It is recommended that user-defined exceptions
|
28
|
+
inherit from Exception. See the documentation for the exception
|
29
|
+
inheritance hierarchy.
|
30
|
+
|
31
|
+
CLASSES
|
32
|
+
__builtin__.object
|
33
|
+
BaseException
|
34
|
+
Exception
|
35
|
+
(略)
|
36
|
+
```
|
37
|
+
|
38
|
+
|
39
|
+
```python3
|
40
|
+
>>> import builtins
|
41
|
+
>>> help(builtins)
|
42
|
+
|
43
|
+
Help on built-in module builtins:
|
44
|
+
|
45
|
+
NAME
|
46
|
+
builtins - Built-in functions, exceptions, and other objects.
|
47
|
+
|
48
|
+
DESCRIPTION
|
49
|
+
Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices.
|
50
|
+
|
51
|
+
CLASSES
|
52
|
+
object
|
53
|
+
BaseException
|
54
|
+
Exception
|
55
|
+
(略)
|
56
|
+
```
|
57
|
+
|
58
|
+
Python2にはeceptionsパッケージがあって、Python3では名前が改められたことが確認できます。
|