All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 # Please keep __all__ alphabetized within each category.
4 # Super-special typing primitives.
9 # ABCs (from collections.abc).
10 'AbstractSet', # collections.abc.Set.
14 # Concrete collection types.
22 'NamedTuple', # Not really a type.
31 # builtin types and objects
39 # user-defined types and objects
41 Cheese("Wensleydale"),
45 if 'PYTHON' in os.environ:
46 add_compiler(compiler_from_env())
48 # for compiler in compilers.values():
49 # add_compiler(compiler)
50 add_compiler(compilers[(7.0, 32)])
51 # add_compiler(compilers[(7.1, 64)])
53 # Comment before function.
54 def inline_comments_in_brackets_ruin_everything():
56 parameters.children = [
62 parameters.children = [
63 parameters.children[0], # (2 what if this was actually long
65 parameters.children[-1], # )2
67 if (self._proc is not None
68 # has the child process finished?
69 and self._returncode is None
70 # the child process has finished, but the
71 # transport hasn't been notified yet?
72 and self._proc.poll() is None):
74 # no newline before or after
86 ############################################################################
101 for element in collection # yup
102 if element is not None # right
108 for element in collection
110 if element is not None
113 # This one is actually too long to fit in a single line.
114 element.split('\n', 1)[0]
116 for element in collection.select_elements()
118 if element is not None
124 # and round and round we go
125 # and round and round we go
131 Node(statement, result),
132 Leaf(token.NEWLINE, '\n'), # FIXME: \r\n?
137 #######################
138 ### SECTION COMMENT ###
139 #######################
151 # Please keep __all__ alphabetized within each category.
154 # Super-special typing primitives.
158 # ABCs (from collections.abc).
159 "AbstractSet", # collections.abc.Set.
162 # Concrete collection types.
170 "NamedTuple", # Not really a type.
180 # builtin types and objects
188 # user-defined types and objects
190 Cheese("Wensleydale"),
194 if "PYTHON" in os.environ:
195 add_compiler(compiler_from_env())
197 # for compiler in compilers.values():
198 # add_compiler(compiler)
199 add_compiler(compilers[(7.0, 32)])
200 # add_compiler(compilers[(7.1, 64)])
202 # Comment before function.
203 def inline_comments_in_brackets_ruin_everything():
205 parameters.children = [children[0], body, children[-1]] # (1 # )1
207 parameters.children = [
208 parameters.children[0], # (2 what if this was actually long
210 parameters.children[-1], # )2
213 self._proc is not None
214 # has the child process finished?
215 and self._returncode is None
216 # the child process has finished, but the
217 # transport hasn't been notified yet?
218 and self._proc.poll() is None
221 # no newline before or after
239 ############################################################################
254 element for element in collection if element is not None # yup # yup # right
260 for element in collection
262 if element is not None
265 # This one is actually too long to fit in a single line.
266 element.split("\n", 1)[0]
268 for element in collection.select_elements()
270 if element is not None
276 # and round and round we go
277 # and round and round we go
282 [Node(statement, result), Leaf(token.NEWLINE, "\n")], # FIXME: \r\n?
286 #######################
287 ### SECTION COMMENT ###
288 #######################