Title: Allow initial comma · Issue #1867 · python/peps · GitHub
Open Graph Title: Allow initial comma · Issue #1867 · python/peps
X Title: Allow initial comma · Issue #1867 · python/peps
Description: Allow initial comma. Final comma works: t = ( 1, 2, ) x = [ 1, 2, ] y = { 1, 2, } z = { 1:11, 2:22, } def fun( a, b, ): pass Initial comma does not work: t = ( , 1 , 2 ) x = [ , 1 , 2 ] y = { , 1 , 2 } z = { , 1:11 , 2:22 } def fun( , a ...
Open Graph Description: Allow initial comma. Final comma works: t = ( 1, 2, ) x = [ 1, 2, ] y = { 1, 2, } z = { 1:11, 2:22, } def fun( a, b, ): pass Initial comma does not work: t = ( , 1 , 2 ) x = [ , 1 , 2 ] y = { , 1 ,...
X Description: Allow initial comma. Final comma works: t = ( 1, 2, ) x = [ 1, 2, ] y = { 1, 2, } z = { 1:11, 2:22, } def fun( a, b, ): pass Initial comma does not work: t = ( , 1 , 2 ) x = [ , 1 , 2 ] y = { , 1 ,...
Opengraph URL: https://github.com/python/peps/issues/1867
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow initial comma","articleBody":"Allow initial comma.\r\n\r\nFinal comma works:\r\n\r\n```python\r\n\r\nt = (\r\n 1,\r\n 2,\r\n )\r\nx = [\r\n 1,\r\n 2,\r\n ]\r\ny = {\r\n 1,\r\n 2,\r\n }\r\nz = {\r\n 1:11,\r\n 2:22,\r\n }\r\ndef fun(\r\n a,\r\n b,\r\n ):\r\n pass\r\n\r\n```\r\n\r\nInitial comma does not work:\r\n\r\n```python\r\n\r\nt = (\r\n , 1\r\n , 2\r\n )\r\nx = [\r\n , 1\r\n , 2\r\n ]\r\ny = {\r\n , 1\r\n , 2\r\n }\r\nz = {\r\n , 1:11\r\n , 2:22\r\n }\r\ndef fun(\r\n , a\r\n , b\r\n ):\r\n pass\r\n```\r\n\r\nTo make the syntax symmetric in this regard\r\ngives more freedom to format the code.\r\n\r\nI occasionally found the restriction an unnecessary nuisance.\r\n\r\nBefore writing a PEP,\r\nI would like to discuss,\r\n\r\n- whether something like that has been proposed already?\r\n- what counter-arguments there could be?\r\n\r\n","author":{"url":"https://github.com/rpuntaie","@type":"Person","name":"rpuntaie"},"datePublished":"2021-03-11T09:19:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1867/peps/issues/1867"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6d7ea71b-0c55-4d34-67ae-fd80f1802c06 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC58:208F24:30D200:47BAC5:6A61E6AE |
| html-safe-nonce | d70f6e970f194572524050f246a7795e136c3f59fa8c36b82fc7d7b3520f3564 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzU4OjIwOEYyNDozMEQyMDA6NDdCQUM1OjZBNjFFNkFFIiwidmlzaXRvcl9pZCI6IjU0MzI2Mzc1NTgyMDcxNDU2NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a4a32ac45ae22e47862c24f49dd41b190ae0b09f1f6301a9165091ecf128d929 |
| hovercard-subject-tag | issue:828957891 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/peps/1867/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e15fd2fa8341e6483ed2aa306b25e48248cee771ed8aa7aa8f98696b0e394b5f/python/peps/issues/1867 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e15fd2fa8341e6483ed2aa306b25e48248cee771ed8aa7aa8f98696b0e394b5f/python/peps/issues/1867 |
| og:image:alt | Allow initial comma. Final comma works: t = ( 1, 2, ) x = [ 1, 2, ] y = { 1, 2, } z = { 1:11, 2:22, } def fun( a, b, ): pass Initial comma does not work: t = ( , 1 , 2 ) x = [ , 1 , 2 ] y = { , 1 ,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rpuntaie |
| hostname | github.com |
| expected-hostname | github.com |
| None | b2de8c74e5e61e893155ba46ee41bc66170c1644cb795adefa8386d490f7781c |
| turbo-cache-control | no-preview |
| go-import | github.com/python/peps git https://github.com/python/peps.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 13414105 |
| octolytics-dimension-repository_nwo | python/peps |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13414105 |
| octolytics-dimension-repository_network_root_nwo | python/peps |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1866027ded575df8a15c731dd8b9986c9483ceb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width