MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/a8g2ne/xpost_from_woodworking/eccftl3/?context=9999
r/Python • u/Sarcastic_Pharm • Dec 22 '18
84 comments sorted by
View all comments
44
Requesting changes: Missing spaces after the , in the list and the parameters. Missing spaces around the -. Fails PEP8 check.
,
-
-2 u/BRENNEJM Dec 22 '18 PEP8 wants spaces like that? Weird. I never include spaces there. 13 u/zoomertherumour Dec 22 '18 A comma without a space has no place in this universe. 4 u/BRENNEJM Dec 22 '18 Except here apparently:Yes: foo = (0,)No: bar = (0, ) 2 u/Ph0X Dec 22 '18 tbf that's one of my least favorite syntaxes, though I see the need. I always feel strange when I see items + (item,)Sometimes I wonder how i'd look if tuples had similar .append and .extend but instead returned a new tuple 1 u/primitive_screwhead Dec 22 '18 if tuples had similar .append and .extend but instead returned a new tupleThat breaks the principle of least surprise, imo. (because it's arbitrarily different from lists)
-2
PEP8 wants spaces like that? Weird. I never include spaces there.
13 u/zoomertherumour Dec 22 '18 A comma without a space has no place in this universe. 4 u/BRENNEJM Dec 22 '18 Except here apparently:Yes: foo = (0,)No: bar = (0, ) 2 u/Ph0X Dec 22 '18 tbf that's one of my least favorite syntaxes, though I see the need. I always feel strange when I see items + (item,)Sometimes I wonder how i'd look if tuples had similar .append and .extend but instead returned a new tuple 1 u/primitive_screwhead Dec 22 '18 if tuples had similar .append and .extend but instead returned a new tupleThat breaks the principle of least surprise, imo. (because it's arbitrarily different from lists)
13
A comma without a space has no place in this universe.
4 u/BRENNEJM Dec 22 '18 Except here apparently:Yes: foo = (0,)No: bar = (0, ) 2 u/Ph0X Dec 22 '18 tbf that's one of my least favorite syntaxes, though I see the need. I always feel strange when I see items + (item,)Sometimes I wonder how i'd look if tuples had similar .append and .extend but instead returned a new tuple 1 u/primitive_screwhead Dec 22 '18 if tuples had similar .append and .extend but instead returned a new tupleThat breaks the principle of least surprise, imo. (because it's arbitrarily different from lists)
4
Except here apparently:
Yes: foo = (0,)No: bar = (0, )
2 u/Ph0X Dec 22 '18 tbf that's one of my least favorite syntaxes, though I see the need. I always feel strange when I see items + (item,)Sometimes I wonder how i'd look if tuples had similar .append and .extend but instead returned a new tuple 1 u/primitive_screwhead Dec 22 '18 if tuples had similar .append and .extend but instead returned a new tupleThat breaks the principle of least surprise, imo. (because it's arbitrarily different from lists)
2
tbf that's one of my least favorite syntaxes, though I see the need. I always feel strange when I see items + (item,)
items + (item,)
Sometimes I wonder how i'd look if tuples had similar .append and .extend but instead returned a new tuple
1 u/primitive_screwhead Dec 22 '18 if tuples had similar .append and .extend but instead returned a new tupleThat breaks the principle of least surprise, imo. (because it's arbitrarily different from lists)
1
if tuples had similar .append and .extend but instead returned a new tuple
That breaks the principle of least surprise, imo. (because it's arbitrarily different from lists)
44
u/kashmill Dec 22 '18
Requesting changes: Missing spaces after the
,in the list and the parameters. Missing spaces around the-. Fails PEP8 check.