Skip to content

Commit f7e4ea3

Browse files
committed
further comment
1 parent d95ca2b commit f7e4ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/session01/session1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def get_constants(prefix):
88
)
99

1010
# this example is more 'pythonic' for 2.7 and above (where dictionary
11-
# comprehensions exist)
11+
# comprehensions exist) It will not work in Python 2.6 or below.
1212
def get_constants_27(prefix):
1313
return {getattr(socket, n):n for n in dir(socket) if n.startswith(prefix)}
1414

0 commit comments

Comments
 (0)