workspace stringclasses 1
value | channel stringclasses 1
value | sentences stringlengths 1 3.93k | ts stringlengths 26 26 | user stringlengths 2 11 | sentence_id stringlengths 44 53 | timestamp float64 1.5B 1.56B | __index_level_0__ int64 0 106k |
|---|---|---|---|---|---|---|---|
pythondev | help | So I try and test this function:
```@app.route('/event_endpoint', methods=['POST'])
@validate_response('token', VERIFICATION_TOKEN)
@url_verification
def events_route():
"""
Any event based response will get routed here.
Decorates first make sure it's a verified route and this isn't a challenge event
L... | 2017-12-26T12:39:01.000197 | Glinda | pythondev_help_Glinda_2017-12-26T12:39:01.000197 | 1,514,291,941.000197 | 105,903 |
pythondev | help | Actually I think this works? | 2017-12-26T12:46:30.000198 | Glinda | pythondev_help_Glinda_2017-12-26T12:46:30.000198 | 1,514,292,390.000198 | 105,904 |
pythondev | help | note that you’ll probably want to be patching relative to the module that you are testing, not the global path, so for example `flask.request.get_json`… yeah looks like you figured itout | 2017-12-26T12:46:50.000110 | Junita | pythondev_help_Junita_2017-12-26T12:46:50.000110 | 1,514,292,410.00011 | 105,905 |
pythondev | help | I was getting an out of context issue | 2017-12-26T12:47:16.000088 | Glinda | pythondev_help_Glinda_2017-12-26T12:47:16.000088 | 1,514,292,436.000088 | 105,906 |
pythondev | help | Am I able to call `request.get_json()`once? | 2017-12-26T12:49:02.000093 | Glinda | pythondev_help_Glinda_2017-12-26T12:49:02.000093 | 1,514,292,542.000093 | 105,907 |
pythondev | help | Err, if I call it inside the decorator, can I call it inside the decorated function | 2017-12-26T12:49:22.000075 | Glinda | pythondev_help_Glinda_2017-12-26T12:49:22.000075 | 1,514,292,562.000075 | 105,908 |
pythondev | help | is there a way to route the std.out and std.err of a shell command when using `os.fork` and `os.execvp`? | 2017-12-26T15:57:51.000045 | Lory | pythondev_help_Lory_2017-12-26T15:57:51.000045 | 1,514,303,871.000045 | 105,909 |
pythondev | help | what does the double asterick in front of a dict/object mean?
For example:
` context = {"myApp": myApp}
client.post_request(params=paramArr, myApp=myApp, async=False, callback=callback, **context) ` | 2017-12-26T18:04:30.000086 | Felicita | pythondev_help_Felicita_2017-12-26T18:04:30.000086 | 1,514,311,470.000086 | 105,910 |
pythondev | help | <https://stackoverflow.com/questions/36901/what-does-double-star-asterisk-and-star-asterisk-do-for-parameters> | 2017-12-26T18:08:23.000014 | Meg | pythondev_help_Meg_2017-12-26T18:08:23.000014 | 1,514,311,703.000014 | 105,911 |
pythondev | help | in short, unpacks the dictionary provided into keword arguments for the method name | 2017-12-26T18:08:55.000122 | Meg | pythondev_help_Meg_2017-12-26T18:08:55.000122 | 1,514,311,735.000122 | 105,912 |
pythondev | help | Happy holidays. I have a small bug in my pygame. Please help. | 2017-12-26T18:10:25.000018 | Leonarda | pythondev_help_Leonarda_2017-12-26T18:10:25.000018 | 1,514,311,825.000018 | 105,913 |
pythondev | help | got it thanks | 2017-12-26T18:11:51.000112 | Felicita | pythondev_help_Felicita_2017-12-26T18:11:51.000112 | 1,514,311,911.000112 | 105,914 |
pythondev | help | <@Leonarda> you have to post something code-related if you want help. we’re not mind readers here | 2017-12-26T18:14:19.000204 | Meg | pythondev_help_Meg_2017-12-26T18:14:19.000204 | 1,514,312,059.000204 | 105,915 |
pythondev | help | I already posted my question but no one answered. Let me go back to history. | 2017-12-26T18:14:49.000121 | Leonarda | pythondev_help_Leonarda_2017-12-26T18:14:49.000121 | 1,514,312,089.000121 | 105,916 |
pythondev | help | Some reason after I pass enemy, collision occurs. | 2017-12-26T18:16:10.000030 | Leonarda | pythondev_help_Leonarda_2017-12-26T18:16:10.000030 | 1,514,312,170.00003 | 105,917 |
pythondev | help | And game resets | 2017-12-26T18:16:21.000025 | Leonarda | pythondev_help_Leonarda_2017-12-26T18:16:21.000025 | 1,514,312,181.000025 | 105,918 |
pythondev | help | It occurs whenever enemy is passed and enemy enters vertical of player. | 2017-12-26T18:17:17.000056 | Leonarda | pythondev_help_Leonarda_2017-12-26T18:17:17.000056 | 1,514,312,237.000056 | 105,919 |
pythondev | help | So right when that red devil lines up with nerd emoticon player, game resets like collision occurred. | 2017-12-26T18:18:13.000086 | Leonarda | pythondev_help_Leonarda_2017-12-26T18:18:13.000086 | 1,514,312,293.000086 | 105,920 |
pythondev | help | ok, so you have collision detection | 2017-12-26T18:18:28.000054 | Meg | pythondev_help_Meg_2017-12-26T18:18:28.000054 | 1,514,312,308.000054 | 105,921 |
pythondev | help | start a debugger | 2017-12-26T18:18:34.000020 | Meg | pythondev_help_Meg_2017-12-26T18:18:34.000020 | 1,514,312,314.00002 | 105,922 |
pythondev | help | Yes, a function. | 2017-12-26T18:18:40.000108 | Leonarda | pythondev_help_Leonarda_2017-12-26T18:18:40.000108 | 1,514,312,320.000108 | 105,923 |
pythondev | help | put a breakpoint at that spot | 2017-12-26T18:18:42.000089 | Meg | pythondev_help_Meg_2017-12-26T18:18:42.000089 | 1,514,312,322.000089 | 105,924 |
pythondev | help | and run your code till the anomoulous condition occurs | 2017-12-26T18:18:57.000041 | Meg | pythondev_help_Meg_2017-12-26T18:18:57.000041 | 1,514,312,337.000041 | 105,925 |
pythondev | help | Hmm. Not sure how because it is a function. | 2017-12-26T18:19:12.000020 | Leonarda | pythondev_help_Leonarda_2017-12-26T18:19:12.000020 | 1,514,312,352.00002 | 105,926 |
pythondev | help | and see what the values are vs what they should be | 2017-12-26T18:19:13.000108 | Meg | pythondev_help_Meg_2017-12-26T18:19:13.000108 | 1,514,312,353.000108 | 105,927 |
pythondev | help | so? | 2017-12-26T18:19:23.000064 | Meg | pythondev_help_Meg_2017-12-26T18:19:23.000064 | 1,514,312,363.000064 | 105,928 |
pythondev | help | I am very new at this, sorry. | 2017-12-26T18:19:28.000085 | Leonarda | pythondev_help_Leonarda_2017-12-26T18:19:28.000085 | 1,514,312,368.000085 | 105,929 |
pythondev | help | ah ok | 2017-12-26T18:19:32.000084 | Meg | pythondev_help_Meg_2017-12-26T18:19:32.000084 | 1,514,312,372.000084 | 105,930 |
pythondev | help | what are you using to write the code? | 2017-12-26T18:19:38.000114 | Meg | pythondev_help_Meg_2017-12-26T18:19:38.000114 | 1,514,312,378.000114 | 105,931 |
pythondev | help | Can you please look at my code? | 2017-12-26T18:20:01.000072 | Leonarda | pythondev_help_Leonarda_2017-12-26T18:20:01.000072 | 1,514,312,401.000072 | 105,932 |
pythondev | help | Idle | 2017-12-26T18:20:13.000016 | Leonarda | pythondev_help_Leonarda_2017-12-26T18:20:13.000016 | 1,514,312,413.000016 | 105,933 |
pythondev | help | don’t have time | 2017-12-26T18:20:23.000022 | Meg | pythondev_help_Meg_2017-12-26T18:20:23.000022 | 1,514,312,423.000022 | 105,934 |
pythondev | help | all I can suggest is you learn how to debug with python and idle | 2017-12-26T18:20:38.000050 | Meg | pythondev_help_Meg_2017-12-26T18:20:38.000050 | 1,514,312,438.00005 | 105,935 |
pythondev | help | <https://www.cs.uky.edu/~keen/help/debug-tutorial/debug.html> | 2017-12-26T18:20:50.000012 | Meg | pythondev_help_Meg_2017-12-26T18:20:50.000012 | 1,514,312,450.000012 | 105,936 |
pythondev | help | Okay. Thank you. | 2017-12-26T18:21:22.000169 | Leonarda | pythondev_help_Leonarda_2017-12-26T18:21:22.000169 | 1,514,312,482.000169 | 105,937 |
pythondev | help | using that should get you closer to what’s causing the problem | 2017-12-26T18:21:46.000013 | Meg | pythondev_help_Meg_2017-12-26T18:21:46.000013 | 1,514,312,506.000013 | 105,938 |
pythondev | help | and if you have issues, you can then ask a more detailed question without requiring people to load pastebin | 2017-12-26T18:22:19.000010 | Meg | pythondev_help_Meg_2017-12-26T18:22:19.000010 | 1,514,312,539.00001 | 105,939 |
pythondev | help | Great how-to. Thanks. Will work on it. | 2017-12-26T18:25:24.000047 | Leonarda | pythondev_help_Leonarda_2017-12-26T18:25:24.000047 | 1,514,312,724.000047 | 105,940 |
pythondev | help | Hi. How i can "pluginfy" my application (<http://ezored.com|ezored.com>)? I want call a function inside another folder that is like a dependency of my tool. So inside "dependency-http-httpclient" i will have a file called "xyz.py" with a "def do_build(params)". So for each dependency i need "import" "xyz.py" and call t... | 2017-12-26T23:46:14.000099 | Johnsie | pythondev_help_Johnsie_2017-12-26T23:46:14.000099 | 1,514,331,974.000099 | 105,941 |
pythondev | help | <@Johnsie> plenty of ways:
* setuptools based one: <https://packaging.python.org/guides/creating-and-discovering-plugins/>
* from flask authors: <http://pluginbase.pocoo.org/>
* <http://yapsy.sourceforge.net/>
* <https://pypi.python.org/pypi/stevedore>
* <https://pypi.python.org/pypi/pluggy/0.6.0>
and others that aren'... | 2017-12-26T23:57:22.000020 | Collette | pythondev_help_Collette_2017-12-26T23:57:22.000020 | 1,514,332,642.00002 | 105,942 |
pythondev | help | But the folder is outside the tool, the tool is installed by pip and the folder can be in any place. It will works? | 2017-12-27T00:06:40.000070 | Johnsie | pythondev_help_Johnsie_2017-12-27T00:06:40.000070 | 1,514,333,200.00007 | 105,943 |
pythondev | help | Nope, and it generally shouldn't. | 2017-12-27T00:08:54.000057 | Collette | pythondev_help_Collette_2017-12-27T00:08:54.000057 | 1,514,333,334.000057 | 105,944 |
pythondev | help | It is a nightmare, to maintain plugins that aren't managed by python import system | 2017-12-27T00:09:13.000066 | Collette | pythondev_help_Collette_2017-12-27T00:09:13.000066 | 1,514,333,353.000066 | 105,945 |
pythondev | help | Any suggestions? Today im calling python + script.py, like this:
<https://github.com/ezored/dependency-sample/blob/master/djinni-generate.py> | 2017-12-27T00:10:34.000016 | Johnsie | pythondev_help_Johnsie_2017-12-27T00:10:34.000016 | 1,514,333,434.000016 | 105,946 |
pythondev | help | Sorry, I have no idea what that script does | 2017-12-27T00:12:58.000094 | Collette | pythondev_help_Collette_2017-12-27T00:12:58.000094 | 1,514,333,578.000094 | 105,947 |
pythondev | help | no problems, im only showing how i do today | 2017-12-27T00:13:35.000030 | Johnsie | pythondev_help_Johnsie_2017-12-27T00:13:35.000030 | 1,514,333,615.00003 | 105,948 |
pythondev | help | my tool call a subprocess | 2017-12-27T00:13:43.000058 | Johnsie | pythondev_help_Johnsie_2017-12-27T00:13:43.000058 | 1,514,333,623.000058 | 105,949 |
pythondev | help | python + build.py | 2017-12-27T00:13:49.000037 | Johnsie | pythondev_help_Johnsie_2017-12-27T00:13:49.000037 | 1,514,333,629.000037 | 105,950 |
pythondev | help | the problem is all that i need transfer of informaion to build.py is only by environment var | 2017-12-27T00:14:13.000011 | Johnsie | pythondev_help_Johnsie_2017-12-27T00:14:13.000011 | 1,514,333,653.000011 | 105,951 |
pythondev | help | How do you think a plugin system helps with that specific problem? | 2017-12-27T00:15:57.000057 | Collette | pythondev_help_Collette_2017-12-27T00:15:57.000057 | 1,514,333,757.000057 | 105,952 |
pythondev | help | Im not thinking about the plugin system, im checking any way to do it | 2017-12-27T00:16:48.000011 | Johnsie | pythondev_help_Johnsie_2017-12-27T00:16:48.000011 | 1,514,333,808.000011 | 105,953 |
pythondev | help | i only call functions from python files outside the tool folder | 2017-12-27T00:17:14.000100 | Johnsie | pythondev_help_Johnsie_2017-12-27T00:17:14.000100 | 1,514,333,834.0001 | 105,954 |
pythondev | help | If you don't need to hook into some sort of framework by allowing users to write their own plugins, and you only need to run a script then what's wrong with just running a script as you do now?
What is the real problem you're trying to solve here? | 2017-12-27T00:18:40.000012 | Collette | pythondev_help_Collette_2017-12-27T00:18:40.000012 | 1,514,333,920.000012 | 105,955 |
pythondev | help | I'd suggest to read <https://mikeash.com/getting_answers.html> | 2017-12-27T00:19:36.000089 | Collette | pythondev_help_Collette_2017-12-27T00:19:36.000089 | 1,514,333,976.000089 | 105,956 |
pythondev | help | Hi guys can someone help me out | 2017-12-27T00:40:40.000122 | Ryann | pythondev_help_Ryann_2017-12-27T00:40:40.000122 | 1,514,335,240.000122 | 105,957 |
pythondev | help | <@Ryann> shoot it | 2017-12-27T00:41:52.000002 | Collette | pythondev_help_Collette_2017-12-27T00:41:52.000002 | 1,514,335,312.000002 | 105,958 |
pythondev | help | Okay so I have a django form which takes in a keyword as input | 2017-12-27T00:42:39.000145 | Ryann | pythondev_help_Ryann_2017-12-27T00:42:39.000145 | 1,514,335,359.000145 | 105,959 |
pythondev | help | I then pass the keyword to a python script | 2017-12-27T00:42:59.000117 | Ryann | pythondev_help_Ryann_2017-12-27T00:42:59.000117 | 1,514,335,379.000117 | 105,960 |
pythondev | help | The python script is a google adwords api script that adds a keyword to a campaign | 2017-12-27T00:43:26.000061 | Ryann | pythondev_help_Ryann_2017-12-27T00:43:26.000061 | 1,514,335,406.000061 | 105,961 |
pythondev | help | My question is how do pass I the updated django model to a function in a script | 2017-12-27T00:44:15.000127 | Ryann | pythondev_help_Ryann_2017-12-27T00:44:15.000127 | 1,514,335,455.000127 | 105,962 |
pythondev | help | Also the keyword argument that is passed is going to be making a change in a object | 2017-12-27T00:45:14.000030 | Ryann | pythondev_help_Ryann_2017-12-27T00:45:14.000030 | 1,514,335,514.00003 | 105,963 |
pythondev | help | How exactly you do that? | 2017-12-27T00:45:18.000013 | Collette | pythondev_help_Collette_2017-12-27T00:45:18.000013 | 1,514,335,518.000013 | 105,964 |
pythondev | help | def keywords_add(request):
new_keyword = Keyword.objects.all()
adwords_client = adwords.AdWordsClient.LoadFromStorage()
ad_group_id = 'AD_GROUP_ID'
ad_group_update.main(adwords_client, ad_group_id, new_keyword) | 2017-12-27T00:46:12.000025 | Ryann | pythondev_help_Ryann_2017-12-27T00:46:12.000025 | 1,514,335,572.000025 | 105,965 |
pythondev | help | the above code is in the views.py | 2017-12-27T00:48:55.000020 | Ryann | pythondev_help_Ryann_2017-12-27T00:48:55.000020 | 1,514,335,735.00002 | 105,966 |
pythondev | help | And the script is something like this | 2017-12-27T00:49:25.000043 | Ryann | pythondev_help_Ryann_2017-12-27T00:49:25.000043 | 1,514,335,765.000043 | 105,967 |
pythondev | help | def main(client, ad_group_id, keyword):
# Initialize appropriate service.
ad_group_criterion_service = client.GetService(
'AdGroupCriterionService', version='v201710')
# Construct keyword ad group criterion object.
keyword1 = {
'xsi_type': 'BiddableAdGroupCriterion',
'adGroupId': ad_group_id,... | 2017-12-27T00:49:45.000070 | Ryann | pythondev_help_Ryann_2017-12-27T00:49:45.000070 | 1,514,335,785.00007 | 105,968 |
pythondev | help | I want to change the text part of the keyword1 to the passed keyword argument | 2017-12-27T00:51:17.000071 | Ryann | pythondev_help_Ryann_2017-12-27T00:51:17.000071 | 1,514,335,877.000071 | 105,969 |
pythondev | help | But you pass the new keyword already to the main function, no? | 2017-12-27T00:54:02.000066 | Collette | pythondev_help_Collette_2017-12-27T00:54:02.000066 | 1,514,336,042.000066 | 105,970 |
pythondev | help | I see now you simply don't use that parameter at all | 2017-12-27T00:54:15.000084 | Collette | pythondev_help_Collette_2017-12-27T00:54:15.000084 | 1,514,336,055.000084 | 105,971 |
pythondev | help | Yes my question is how do i use the parameter to update the keywrod1 text | 2017-12-27T00:55:47.000013 | Ryann | pythondev_help_Ryann_2017-12-27T00:55:47.000013 | 1,514,336,147.000013 | 105,972 |
pythondev | help | <@Collette> Today everything that i need pass from .yml configuration file i need set in an environment variable. But i have a lot of configurations an logic in it, if the user set build_tv_os, so i need compile with one method, if false, with another method, and things like this. | 2017-12-27T00:57:56.000008 | Johnsie | pythondev_help_Johnsie_2017-12-27T00:57:56.000008 | 1,514,336,276.000008 | 105,973 |
pythondev | help | If i can call do_build(param), i can pass everything that i want | 2017-12-27T00:58:17.000015 | Johnsie | pythondev_help_Johnsie_2017-12-27T00:58:17.000015 | 1,514,336,297.000015 | 105,974 |
pythondev | help | <@Ryann> You iterate over `new_keyword` list and construct dictionaries from `Keyword` instances | 2017-12-27T00:58:22.000021 | Collette | pythondev_help_Collette_2017-12-27T00:58:22.000021 | 1,514,336,302.000021 | 105,975 |
pythondev | help | okay let me try that | 2017-12-27T01:00:30.000068 | Ryann | pythondev_help_Ryann_2017-12-27T01:00:30.000068 | 1,514,336,430.000068 | 105,976 |
pythondev | help | I only have 1 keyword | 2017-12-27T01:00:58.000015 | Ryann | pythondev_help_Ryann_2017-12-27T01:00:58.000015 | 1,514,336,458.000015 | 105,977 |
pythondev | help | Do i still have to iterate | 2017-12-27T01:01:07.000047 | Ryann | pythondev_help_Ryann_2017-12-27T01:01:07.000047 | 1,514,336,467.000047 | 105,978 |
pythondev | help | <@Ryann> then you shouldn't do `Keyword.objects.all()` | 2017-12-27T01:06:46.000067 | Collette | pythondev_help_Collette_2017-12-27T01:06:46.000067 | 1,514,336,806.000067 | 105,979 |
pythondev | help | I think exec is what i want, without the ability to call a specific function | 2017-12-27T01:10:38.000113 | Johnsie | pythondev_help_Johnsie_2017-12-27T01:10:38.000113 | 1,514,337,038.000113 | 105,980 |
pythondev | help | Sounds scary | 2017-12-27T01:16:11.000027 | Collette | pythondev_help_Collette_2017-12-27T01:16:11.000027 | 1,514,337,371.000027 | 105,981 |
pythondev | help | I'm not sure why would you need an environment variable if you already have a .yaml file. Can't you define a variable's value within that .yaml file as well? | 2017-12-27T01:17:09.000147 | Collette | pythondev_help_Collette_2017-12-27T01:17:09.000147 | 1,514,337,429.000147 | 105,982 |
pythondev | help | Man, the tool read entire file, but the isolated script not | 2017-12-27T01:35:12.000115 | Johnsie | pythondev_help_Johnsie_2017-12-27T01:35:12.000115 | 1,514,338,512.000115 | 105,983 |
pythondev | help | Why can't that "isolated" script read the entire file as well? | 2017-12-27T01:35:51.000055 | Collette | pythondev_help_Collette_2017-12-27T01:35:51.000055 | 1,514,338,551.000055 | 105,984 |
pythondev | help | <http://docs.tweepy.org/en/v3.5.0/api.html?highlight=cache>
I do noot understand how add cache to tweepy..
`cache=` And that I here indicate to the will be cache? | 2017-12-27T04:00:38.000109 | Georgeann | pythondev_help_Georgeann_2017-12-27T04:00:38.000109 | 1,514,347,238.000109 | 105,985 |
pythondev | help | should we use type hinting in new code? | 2017-12-27T04:15:34.000097 | Casie | pythondev_help_Casie_2017-12-27T04:15:34.000097 | 1,514,348,134.000097 | 105,986 |
pythondev | help | or does everyone think this makes the code more “ugly” to read? | 2017-12-27T04:15:53.000028 | Casie | pythondev_help_Casie_2017-12-27T04:15:53.000028 | 1,514,348,153.000028 | 105,987 |
pythondev | help | I'd like to give a session about using Git to the company. Few questions about that:
1. Do you know any presentations I can use to give this session?
2. List of simple example to demonstrate different concepts (of course I can come up with my own, but would be nice to see some of these that were tested)
3. Online resou... | 2017-12-27T06:42:20.000060 | Dinah | pythondev_help_Dinah_2017-12-27T06:42:20.000060 | 1,514,356,940.00006 | 105,988 |
pythondev | help | <@Dinah> do they know any other VCS already? | 2017-12-27T06:42:50.000132 | Collette | pythondev_help_Collette_2017-12-27T06:42:50.000132 | 1,514,356,970.000132 | 105,989 |
pythondev | help | SVN maybe | 2017-12-27T06:43:03.000015 | Collette | pythondev_help_Collette_2017-12-27T06:43:03.000015 | 1,514,356,983.000015 | 105,990 |
pythondev | help | We are already working with Git. They pull/push/make PRs. But from different people that came up to with questions, seems like the understanding isn't deep enough to be effective with using Git. Things like the meaning of rebase, merge commits, commit ranges, the meaning of branches/tags and pushing to the remote. | 2017-12-27T06:44:49.000155 | Dinah | pythondev_help_Dinah_2017-12-27T06:44:49.000155 | 1,514,357,089.000155 | 105,991 |
pythondev | help | as a further reading I'd recommend <https://git-scm.com/book/en/v2> | 2017-12-27T06:45:40.000214 | Mirian | pythondev_help_Mirian_2017-12-27T06:45:40.000214 | 1,514,357,140.000214 | 105,992 |
pythondev | help | <https://twitter.com/girlie_mac/status/905270297128865792?lang=en> | 2017-12-27T06:46:50.000307 | Collette | pythondev_help_Collette_2017-12-27T06:46:50.000307 | 1,514,357,210.000307 | 105,993 |
pythondev | help | :heart_eyes_cat: | 2017-12-27T06:48:38.000061 | Suellen | pythondev_help_Suellen_2017-12-27T06:48:38.000061 | 1,514,357,318.000061 | 105,994 |
pythondev | help | Cute, but I don't like the arrows. They are reversed. Each commit is pointing to its parent (or 2 parents for merge commits) and not the other way around.
Maybe it's more clear in the send of "flow" though | 2017-12-27T06:48:50.000258 | Dinah | pythondev_help_Dinah_2017-12-27T06:48:50.000258 | 1,514,357,330.000258 | 105,995 |
pythondev | help | Hi guys can someone explain me whats the difference between | 2017-12-27T08:06:25.000041 | Bette | pythondev_help_Bette_2017-12-27T08:06:25.000041 | 1,514,361,985.000041 | 105,996 |
pythondev | help | new_list=list vs new_list=list[:] | 2017-12-27T08:07:06.000094 | Bette | pythondev_help_Bette_2017-12-27T08:07:06.000094 | 1,514,362,026.000094 | 105,997 |
pythondev | help | As per my understanding the values of list is assigned to new_list,but what is the [:] means here ? | 2017-12-27T08:07:59.000144 | Bette | pythondev_help_Bette_2017-12-27T08:07:59.000144 | 1,514,362,079.000144 | 105,998 |
pythondev | help | it's a very bad idea to name one of your variables `list`, `dict` , `str` | 2017-12-27T08:09:25.000243 | Ciera | pythondev_help_Ciera_2017-12-27T08:09:25.000243 | 1,514,362,165.000243 | 105,999 |
pythondev | help | what <@Ciera> said. To your specific question, new_list = list means they point at the same underlying data, where as `list[:]` copies the contents of `list` | 2017-12-27T08:10:38.000066 | Junita | pythondev_help_Junita_2017-12-27T08:10:38.000066 | 1,514,362,238.000066 | 106,000 |
pythondev | help | <http://henry.precheur.org/python/copy_list.html> | 2017-12-27T08:12:14.000057 | Junita | pythondev_help_Junita_2017-12-27T08:12:14.000057 | 1,514,362,334.000057 | 106,001 |
pythondev | help | that explains it with pictures. | 2017-12-27T08:12:27.000165 | Junita | pythondev_help_Junita_2017-12-27T08:12:27.000165 | 1,514,362,347.000165 | 106,002 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.