Timeline for Python - convert a string to an array
Current License: CC BY-SA 4.0
26 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 25, 2023 at 17:24 | history | edited | Peter Mortensen | CC BY-SA 4.0 |
Active reading [<https://en.wikipedia.org/wiki/Python_%28programming_language%29>].
|
| Dec 17, 2020 at 16:13 | answer | added | Daniel Adu | timeline score: 2 | |
| Sep 7, 2020 at 16:02 | answer | added | Hadij | timeline score: 7 | |
| S Feb 27, 2020 at 21:11 | history | suggested | cobrexus | CC BY-SA 4.0 |
corrected code formatting, removed unnecessary informal pleasantries.
|
| Feb 27, 2020 at 21:05 | review | Close votes | |||
| Mar 2, 2020 at 0:00 | |||||
| Feb 27, 2020 at 20:00 | review | Suggested edits | |||
| S Feb 27, 2020 at 21:11 | |||||
| Dec 13, 2019 at 14:30 | review | Close votes | |||
| Dec 17, 2019 at 0:00 | |||||
| Dec 13, 2019 at 14:10 | comment | added | Georgy | Does this answer your question? Convert string representation of list to list | |
| Apr 25, 2019 at 22:36 | answer | added | Lex Bryan | timeline score: 23 | |
| May 13, 2018 at 23:54 | review | Close votes | |||
| May 17, 2018 at 0:01 | |||||
| Apr 25, 2018 at 15:34 | vote | accept | GCien | ||
| Apr 25, 2018 at 14:16 | answer | added | txicos | timeline score: 4 | |
| Apr 25, 2018 at 14:04 | comment | added | GCien | Got it - just updated my question. Apologies for asking such a weird question! :) | |
| Apr 25, 2018 at 13:48 | review | Close votes | |||
| May 2, 2018 at 3:01 | |||||
| Apr 25, 2018 at 13:45 | history | edited | GCien | CC BY-SA 3.0 |
added 320 characters in body
|
| Apr 25, 2018 at 13:40 | comment | added | GCien | *It's come from passing an array via AJAX post request. | |
| Apr 25, 2018 at 13:38 | comment | added | GCien |
Wow - -10 XD yes, it's definitely a string. I promise. type(my_variable) gives <class 'str'>. I missed off the bracing '.
|
|
| Apr 25, 2018 at 13:38 | history | edited | GCien | CC BY-SA 3.0 |
added 2 characters in body
|
| Apr 25, 2018 at 13:35 | comment | added | dfundako | Making a variable by Copy/paste of your 'following string' definitely does not return a class of str when you run type(). At least on my machine. | |
| Apr 25, 2018 at 13:32 | comment | added | Rohi | Im guessing he wants "".join(str_list), and has a very weird way of writing a question. | |
| Apr 25, 2018 at 13:31 | comment | added | zwer |
ast.literal_eval() or json.loads() ...
|
|
| Apr 25, 2018 at 13:31 | comment | added | Jongware | That looks like it's a duplicate question – I am sure I've seen at least several variants. Anyway, what did you try & why did it not work? | |
| Apr 25, 2018 at 13:30 | comment | added | Ankush Rathi | are you talking about the element inside of this list ? | |
| Apr 25, 2018 at 13:30 | comment | added | code11 | Possible duplicate of How to convert a string to a list in Python? | |
| Apr 25, 2018 at 13:29 | comment | added | sacuL | That looks like a list, not a string... | |
| Apr 25, 2018 at 13:28 | history | asked | GCien | CC BY-SA 3.0 |