回答編集履歴

2

fix typo

2019/02/01 08:37

投稿

quickquip
quickquip

スコア11038

test CHANGED
@@ -112,4 +112,4 @@
112
112
 
113
113
 
114
114
 
115
- Python2にはeceptionsパッケージがあって、Python3では名前が改められたことが確認できます。
115
+ Python2にはexceptionsパッケージがあって、Python3では名前が改められたことが確認できます。

1

追記

2019/02/01 08:37

投稿

quickquip
quickquip

スコア11038

test CHANGED
@@ -1 +1,115 @@
1
1
  Python3に対応していないパッケージだというだけの話かと思います。
2
+
3
+
4
+
5
+
6
+
7
+ ----
8
+
9
+ (追記)
10
+
11
+
12
+
13
+ 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)
14
+
15
+
16
+
17
+
18
+
19
+ ```Python2
20
+
21
+ >>> import exceptions
22
+
23
+ >>> help(exceptions)
24
+
25
+
26
+
27
+ Help on built-in module exceptions:
28
+
29
+
30
+
31
+ NAME
32
+
33
+ exceptions - Python's standard exception class hierarchy.
34
+
35
+
36
+
37
+ FILE
38
+
39
+ (built-in)
40
+
41
+
42
+
43
+ MODULE DOCS
44
+
45
+ https://docs.python.org/library/exceptions
46
+
47
+
48
+
49
+ DESCRIPTION
50
+
51
+ Exceptions found here are defined both in the exceptions module and the
52
+
53
+ built-in namespace. It is recommended that user-defined exceptions
54
+
55
+ inherit from Exception. See the documentation for the exception
56
+
57
+ inheritance hierarchy.
58
+
59
+
60
+
61
+ CLASSES
62
+
63
+ __builtin__.object
64
+
65
+ BaseException
66
+
67
+ Exception
68
+
69
+ (略)
70
+
71
+ ```
72
+
73
+
74
+
75
+
76
+
77
+ ```python3
78
+
79
+ >>> import builtins
80
+
81
+ >>> help(builtins)
82
+
83
+
84
+
85
+ Help on built-in module builtins:
86
+
87
+
88
+
89
+ NAME
90
+
91
+ builtins - Built-in functions, exceptions, and other objects.
92
+
93
+
94
+
95
+ DESCRIPTION
96
+
97
+ Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices.
98
+
99
+
100
+
101
+ CLASSES
102
+
103
+ object
104
+
105
+ BaseException
106
+
107
+ Exception
108
+
109
+ (略)
110
+
111
+ ```
112
+
113
+
114
+
115
+ Python2にはeceptionsパッケージがあって、Python3では名前が改められたことが確認できます。