Timeline for What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
Current License: CC BY-SA 4.0
Post Revisions
56 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 5, 2023 at 21:14 | answer | added | cowlinator | timeline score: 10 | |
| Apr 3, 2023 at 14:36 | answer | added | Vinod Srivastav | timeline score: 6 | |
| Mar 28, 2023 at 21:14 | answer | added | happymancer | timeline score: 1 | |
| Feb 27, 2023 at 7:29 | history | edited | Karl Knechtel | CC BY-SA 4.0 |
show complete/valid code; describe fully; switch to code fences; cross-link the other canonical
|
| Nov 29, 2022 at 0:18 | history | rollback | Martijn Pieters |
Rollback to Revision 12
|
|
| Nov 11, 2022 at 17:34 | history | edited | Super Kai - Kazuya Ito | CC BY-SA 4.0 |
added 6 characters in body; edited title
|
| Nov 11, 2022 at 17:21 | answer | added | Super Kai - Kazuya Ito | timeline score: 4 | |
| Jul 30, 2022 at 19:05 | answer | added | partisani | timeline score: 0 | |
| Jun 21, 2022 at 3:34 | comment | added | Karl Knechtel |
There's also stackoverflow.com/questions/23744017/…, covering both parameters and arguments, with both * and **, in practical situations - but not in very much detail. (Some answers here talk about arguments, but the question is not really up to par.)
|
|
| Jun 21, 2022 at 3:31 | comment | added | Karl Knechtel | stackoverflow.com/questions/3394835/use-of-args-and-kwargs was also closed as a duplicate of this, but you might find it better than this one. | |
| Apr 17, 2022 at 4:51 | comment | added | Karl Knechtel |
This question is - like many very old questions - sort of backwards; usually a question should be about how to solve a problem in new code, rather than how to understand existing code. For the latter, if you are closing something else as a duplicate, consider stackoverflow.com/questions/1993727/… (although this only covers * and not **).
|
|
| Apr 1, 2022 at 1:47 | history | edited | Mateen Ulhaq | CC BY-SA 4.0 |
Convert to canonical/most common form of args/kwargs.
|
| Jul 4, 2021 at 23:32 | review | Close votes | |||
| Jul 5, 2021 at 2:26 | |||||
| Mar 19, 2021 at 9:29 | answer | added | user15049586 | timeline score: 4 | |
| Dec 10, 2020 at 5:55 | comment | added | ShadowRanger |
@Aran-Fey: I think a better target for "what does it mean in function calls" is What does the star operator mean, in a function call?. Your link doesn't really address the use of **, and it a much narrower question.
|
|
| Jun 18, 2020 at 4:05 | answer | added | etoricky | timeline score: 6 | |
| Jan 7, 2020 at 14:37 | answer | added | Meysam Sadeghi | timeline score: 44 | |
| Dec 6, 2019 at 16:36 | answer | added | dreftymac | timeline score: 3 | |
| Jul 10, 2019 at 2:59 | answer | added | Raj | timeline score: 10 | |
| Apr 2, 2019 at 12:43 | answer | added | RBF06 | timeline score: 13 | |
| Mar 22, 2019 at 20:40 | comment | added | Aran-Fey |
This question is a very popular duplicate target, but unfortunately it's often used incorrectly. Keep in mind that this question asks about defining functions with varargs (def func(*args)). For a question asking what it means in function calls (func(*[1,2])) see here. For a question asking how to unpack argument lists see here. For a question asking what the * means in literals ([*[1, 2]]) see here.
|
|
| Mar 22, 2019 at 20:30 | history | edited | ShadowRanger |
edited tags
|
|
| Sep 2, 2018 at 5:14 | answer | added | Premraj | timeline score: 0 | |
| Aug 7, 2018 at 18:28 | answer | added | ishandutta2007 | timeline score: 20 | |
| May 22, 2018 at 7:03 | answer | added | Miladiouss | timeline score: 28 | |
| May 1, 2018 at 12:54 | answer | added | Hrvoje | timeline score: 5 | |
| Mar 1, 2018 at 20:53 | comment | added | Aaron Hall♦ | see also stackoverflow.com/questions/6967632/… | |
| Nov 30, 2017 at 18:28 | answer | added | Brad Solomon | timeline score: 49 | |
| S Sep 3, 2017 at 11:57 | history | suggested | Florian_1990 | CC BY-SA 3.0 |
Added keyword (asterisk) for better search results.
|
| Sep 3, 2017 at 11:01 | review | Suggested edits | |||
| S Sep 3, 2017 at 11:57 | |||||
| Jan 22, 2017 at 14:33 | history | protected | Moinuddin Quadri | ||
| Nov 26, 2016 at 21:09 | answer | added | ttt | timeline score: 4 | |
| Nov 8, 2016 at 16:50 | answer | added | Lochu'an Chang | timeline score: 12 | |
| Oct 26, 2016 at 12:48 | answer | added | amir jj | timeline score: 4 | |
| Oct 21, 2016 at 22:55 | history | edited | martineau | CC BY-SA 3.0 |
Edited and removed language tag from question title.
|
| Mar 26, 2016 at 16:12 | history | edited | gsamaras | CC BY-SA 3.0 |
added 6 characters in body; edited tags
|
| Jan 20, 2016 at 11:40 | answer | added | mrtechmaker | timeline score: 69 | |
| Dec 8, 2015 at 21:38 | answer | added | leewz | timeline score: 15 | |
| Aug 16, 2015 at 4:23 | answer | added | quiet_penguin | timeline score: 9 | |
| Dec 10, 2014 at 18:28 | review | Suggested edits | |||
| Dec 10, 2014 at 19:15 | |||||
| Nov 1, 2014 at 6:01 | history | edited | tshepang |
edited tags
|
|
| Oct 14, 2014 at 16:34 | answer | added | Aaron Hall♦ | timeline score: 220 | |
| Jan 30, 2014 at 15:27 | history | edited | Peter Mortensen | CC BY-SA 3.0 |
deleted 8 characters in body; edited title
|
| S Jan 18, 2014 at 19:28 | history | suggested | lifebalance |
Added three relevant tags
|
|
| Jan 18, 2014 at 19:23 | review | Suggested edits | |||
| S Jan 18, 2014 at 19:28 | |||||
| Sep 12, 2012 at 13:19 | history | edited | Mizipzor | CC BY-SA 3.0 |
for brevity
|
| Sep 11, 2012 at 4:33 | answer | added | ronak | timeline score: 33 | |
| Apr 18, 2012 at 2:03 | history | edited | agf | CC BY-SA 3.0 |
edited title
|
| May 4, 2011 at 18:17 | review | Suggested edits | |||
| May 4, 2011 at 18:45 | |||||
| Apr 7, 2009 at 22:43 | history | edited | David Locke |
edited tags
|
|
| Feb 17, 2009 at 13:26 | vote | accept | Todd | ||
| Aug 31, 2008 at 15:47 | answer | added | Lorin Hochstein | timeline score: 852 | |
| Aug 31, 2008 at 15:20 | answer | added | nickd | timeline score: 228 | |
| Aug 31, 2008 at 15:17 | answer | added | Peter Hoffmann | timeline score: 3345 | |
| Aug 31, 2008 at 15:07 | answer | added | Chris Upchurch | timeline score: 24 | |
| Aug 31, 2008 at 15:04 | history | asked | Todd | CC BY-SA 2.5 |