Python: Lots of function arguments
The function definition is too long for one line. The modeline helps you with some typical Python indent settings.
Start file
class Pointless:
def lotsa_arguments(self, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, sixteenth, seventeenth, eighteenth, nineteenth, twentieth, twenty_first, twenty_second, twenty_third):
"Doesn't even use all those arguments. What a waste."
pass
# File-specific indent settings!
# More VimGolf challenges need modelines.
# vim: set sw=4 et ft=python:
End file
class Pointless:
def lotsa_arguments(self, first, second, third, fourth, fifth, sixth,
seventh, eighth, ninth, tenth, eleventh, twelfth,
thirteenth, fourteenth, sixteenth, seventeenth,
eighteenth, nineteenth, twentieth, twenty_first,
twenty_second, twenty_third):
"Doesn't even use all those arguments. What a waste."
pass
# File-specific indent settings!
# More VimGolf challenges need modelines.
# vim: set sw=4 et ft=python:
View Diff
2c2,6
< def lotsa_arguments(self, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirteenth, fourteenth, sixteenth, seventeenth, eighteenth, nineteenth, twentieth, twenty_first, twenty_second, twenty_third):
---
> def lotsa_arguments(self, first, second, third, fourth, fifth, sixth,
> seventh, eighth, ninth, tenth, eleventh, twelfth,
> thirteenth, fourteenth, sixteenth, seventeenth,
> eighteenth, nineteenth, twentieth, twenty_first,
> twenty_second, twenty_third):
Solutions by @zulolosi:
Unlock 3 remaining solutions by signing in and submitting your own entry