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
Although, again, that depends on what you're doing. If you have to deal with multiple languages or microservices, Docker is likely going to benefit you more than `pipenv` or `nvm` or any other sort of package & version managere
2018-03-13T12:28:58.000820
Garrett
pythondev_help_Garrett_2018-03-13T12:28:58.000820
1,520,944,138.00082
38,624
pythondev
help
Doing `python setup.py sdist` is basically just python executing `setup.py` and passing 'sdist' as an argument. You can look into the source code of sdist and try to understand how to replicate that behavior. A simple solution is to just import setup.py and call `setup()` yourself. You can pass arguments using kwargs a...
2018-03-13T12:29:01.000271
Genevie
pythondev_help_Genevie_2018-03-13T12:29:01.000271
1,520,944,141.000271
38,625
pythondev
help
in my humble experience, containing things is ok if you're using it as a deployment unit
2018-03-13T12:29:53.000731
Patrick
pythondev_help_Patrick_2018-03-13T12:29:53.000731
1,520,944,193.000731
38,626
pythondev
help
during development it can be overwhelming
2018-03-13T12:30:06.000144
Patrick
pythondev_help_Patrick_2018-03-13T12:30:06.000144
1,520,944,206.000144
38,627
pythondev
help
would it not be good also for development as it solves the issues with differing systems. It also means you can write and test on the same/similar system to the one used on production?
2018-03-13T12:31:25.000702
Terrence
pythondev_help_Terrence_2018-03-13T12:31:25.000702
1,520,944,285.000702
38,628
pythondev
help
I don't think there's a perfect solution
2018-03-13T12:31:31.000144
Garrett
pythondev_help_Garrett_2018-03-13T12:31:31.000144
1,520,944,291.000144
38,629
pythondev
help
Yes, Docker (and the like) will get you much closer to dev/prod parity
2018-03-13T12:31:53.000547
Garrett
pythondev_help_Garrett_2018-03-13T12:31:53.000547
1,520,944,313.000547
38,630
pythondev
help
<@Terrence> yes, if you know what you're doing
2018-03-13T12:32:19.000443
Patrick
pythondev_help_Patrick_2018-03-13T12:32:19.000443
1,520,944,339.000443
38,631
pythondev
help
though I do agree docker can be ver overwhelming especially when trying to Port a large project across.
2018-03-13T12:32:38.000912
Terrence
pythondev_help_Terrence_2018-03-13T12:32:38.000912
1,520,944,358.000912
38,632
pythondev
help
I love pipenv, my only trouble was when I found out one of my servers could only run Python 2.7.0 and then things went awry - so that is where docker solves some issues for me.
2018-03-13T12:57:03.000107
Grazyna
pythondev_help_Grazyna_2018-03-13T12:57:03.000107
1,520,945,823.000107
38,633
pythondev
help
Better integration with PyCharm would be great for pipenv as well - I keep seeing the upvotes on the Jetbrains Jira for it everyday
2018-03-13T12:58:16.000185
Grazyna
pythondev_help_Grazyna_2018-03-13T12:58:16.000185
1,520,945,896.000185
38,634
pythondev
help
Does anyone have any idea why urllib.request.urlretrieve(“<http://website.com/testfile.zip>“, “testfile.zip”) wouldn’t work?
2018-03-13T13:56:11.000115
Celinda
pythondev_help_Celinda_2018-03-13T13:56:11.000115
1,520,949,371.000115
38,635
pythondev
help
I’ve imported urllib.request
2018-03-13T13:56:23.000782
Celinda
pythondev_help_Celinda_2018-03-13T13:56:23.000782
1,520,949,383.000782
38,636
pythondev
help
Are you getting any error?
2018-03-13T13:58:19.000264
Brande
pythondev_help_Brande_2018-03-13T13:58:19.000264
1,520,949,499.000264
38,637
pythondev
help
None at all, which is weird
2018-03-13T13:59:00.000002
Celinda
pythondev_help_Celinda_2018-03-13T13:59:00.000002
1,520,949,540.000002
38,638
pythondev
help
is it possible it’s writing out the zip file in a directory other than you are expecting? maybe try an absolute path?
2018-03-13T14:03:54.000841
Zack
pythondev_help_Zack_2018-03-13T14:03:54.000841
1,520,949,834.000841
38,639
pythondev
help
Eurgh, Yes. Stupid mistake!
2018-03-13T14:06:25.000281
Celinda
pythondev_help_Celinda_2018-03-13T14:06:25.000281
1,520,949,985.000281
38,640
pythondev
help
Thank you, I need to get some more sleep.
2018-03-13T14:06:32.000099
Celinda
pythondev_help_Celinda_2018-03-13T14:06:32.000099
1,520,949,992.000099
38,641
pythondev
help
no worries, we’ve all been there. :stuck_out_tongue:
2018-03-13T14:07:23.000127
Zack
pythondev_help_Zack_2018-03-13T14:07:23.000127
1,520,950,043.000127
38,642
pythondev
help
What level of Python should you be at before you start diving into Django? I'd say I'm on the high side of beginner level, with very big gaps in classes and recursion kicks my ass Is there a "if you can't do this, this, and this, you shouldn't be starting Django"
2018-03-13T14:37:20.000048
Mira
pythondev_help_Mira_2018-03-13T14:37:20.000048
1,520,951,840.000048
38,643
pythondev
help
You should understand functions, classes, imports, and inheritance
2018-03-13T14:37:47.000023
Garrett
pythondev_help_Garrett_2018-03-13T14:37:47.000023
1,520,951,867.000023
38,644
pythondev
help
Other than that, you don't need a ton of Python knowledge
2018-03-13T14:37:55.000373
Garrett
pythondev_help_Garrett_2018-03-13T14:37:55.000373
1,520,951,875.000373
38,645
pythondev
help
HTML (and assorted web dev) and SQL/DB knowledge are really useful
2018-03-13T14:38:12.000218
Garrett
pythondev_help_Garrett_2018-03-13T14:38:12.000218
1,520,951,892.000218
38,646
pythondev
help
KK i'll dedicate my time to those first
2018-03-13T14:38:15.000284
Mira
pythondev_help_Mira_2018-03-13T14:38:15.000284
1,520,951,895.000284
38,647
pythondev
help
I'm familure with SQL, just finished a HTML/CSS/JS course over the last two months
2018-03-13T14:38:30.000297
Mira
pythondev_help_Mira_2018-03-13T14:38:30.000297
1,520,951,910.000297
38,648
pythondev
help
&gt;recursion kicks my ass it'll do that, over and over again...
2018-03-13T14:38:47.000796
Elisha
pythondev_help_Elisha_2018-03-13T14:38:47.000796
1,520,951,927.000796
38,649
pythondev
help
I can't spell familiar though, that's an issue
2018-03-13T14:38:50.000559
Mira
pythondev_help_Mira_2018-03-13T14:38:50.000559
1,520,951,930.000559
38,650
pythondev
help
lol
2018-03-13T14:38:53.000355
Mira
pythondev_help_Mira_2018-03-13T14:38:53.000355
1,520,951,933.000355
38,651
pythondev
help
i have a list of items, and i want to always choose the same item based of the time of day.. is this possible, is there a computer science term for it?
2018-03-13T16:18:29.000516
Tobias
pythondev_help_Tobias_2018-03-13T16:18:29.000516
1,520,957,909.000516
38,652
pythondev
help
make it a dict ?
2018-03-13T16:20:08.000570
Micki
pythondev_help_Micki_2018-03-13T16:20:08.000570
1,520,958,008.00057
38,653
pythondev
help
with a `datetime` as key ?
2018-03-13T16:20:22.000208
Micki
pythondev_help_Micki_2018-03-13T16:20:22.000208
1,520,958,022.000208
38,654
pythondev
help
Datetimes support &gt; and &lt; iirc, so if you need it to work on ranges it should be possible to make an if/else structure that would handle it
2018-03-13T16:41:48.000555
Liane
pythondev_help_Liane_2018-03-13T16:41:48.000555
1,520,959,308.000555
38,655
pythondev
help
The list is coming from an external source
2018-03-13T16:51:19.000193
Tobias
pythondev_help_Tobias_2018-03-13T16:51:19.000193
1,520,959,879.000193
38,656
pythondev
help
It's kind of like apoor man's semaphore
2018-03-13T16:51:45.000612
Tobias
pythondev_help_Tobias_2018-03-13T16:51:45.000612
1,520,959,905.000612
38,657
pythondev
help
Is what my brain is thinking
2018-03-13T16:51:52.000670
Tobias
pythondev_help_Tobias_2018-03-13T16:51:52.000670
1,520,959,912.00067
38,658
pythondev
help
Keep a mapping of times to what key to pull off of the list (if it’s keyed), or index, or whatever accessor
2018-03-13T16:52:34.000186
Brande
pythondev_help_Brande_2018-03-13T16:52:34.000186
1,520,959,954.000186
38,659
pythondev
help
wheres the people who need help tonight?
2018-03-13T21:11:57.000179
Kacie
pythondev_help_Kacie_2018-03-13T21:11:57.000179
1,520,975,517.000179
38,660
pythondev
help
im looking at this empty channel filled with sadness
2018-03-13T21:12:10.000143
Kacie
pythondev_help_Kacie_2018-03-13T21:12:10.000143
1,520,975,530.000143
38,661
pythondev
help
can you help me with these voices I’m hearing?
2018-03-13T21:13:14.000231
Zack
pythondev_help_Zack_2018-03-13T21:13:14.000231
1,520,975,594.000231
38,662
pythondev
help
okay, I need help. our cat climbed into the couch. he ripped through the underneath and is making a mess and keeps going in and making noise. my wife already stitched it closed and he ripped in again. what do we do?
2018-03-13T21:14:18.000356
Brande
pythondev_help_Brande_2018-03-13T21:14:18.000356
1,520,975,658.000356
38,663
pythondev
help
<https://imgur.com/gallery/q705O>
2018-03-13T21:16:05.000277
Zack
pythondev_help_Zack_2018-03-13T21:16:05.000277
1,520,975,765.000277
38,664
pythondev
help
yeah thats him when we get him out
2018-03-13T21:16:17.000235
Brande
pythondev_help_Brande_2018-03-13T21:16:17.000235
1,520,975,777.000235
38,665
pythondev
help
all sweaty?
2018-03-13T21:16:38.000175
Zack
pythondev_help_Zack_2018-03-13T21:16:38.000175
1,520,975,798.000175
38,666
pythondev
help
we have to lure him out with treats or toys
2018-03-13T21:16:44.000300
Brande
pythondev_help_Brande_2018-03-13T21:16:44.000300
1,520,975,804.0003
38,667
pythondev
help
substitute sweat for random bits of couch innards
2018-03-13T21:16:54.000002
Brande
pythondev_help_Brande_2018-03-13T21:16:54.000002
1,520,975,814.000002
38,668
pythondev
help
ha
2018-03-13T21:16:59.000265
Zack
pythondev_help_Zack_2018-03-13T21:16:59.000265
1,520,975,819.000265
38,669
pythondev
help
water pistol?
2018-03-13T21:17:22.000212
Porsha
pythondev_help_Porsha_2018-03-13T21:17:22.000212
1,520,975,842.000212
38,670
pythondev
help
we tried spraying him and he really freaked out and got scared
2018-03-13T21:17:44.000274
Brande
pythondev_help_Brande_2018-03-13T21:17:44.000274
1,520,975,864.000274
38,671
pythondev
help
haha
2018-03-13T21:17:49.000186
Porsha
pythondev_help_Porsha_2018-03-13T21:17:49.000186
1,520,975,869.000186
38,672
pythondev
help
nerf gun!
2018-03-13T21:17:55.000115
Porsha
pythondev_help_Porsha_2018-03-13T21:17:55.000115
1,520,975,875.000115
38,673
pythondev
help
we adopted him 3 months ago and were worried it may have been a bad reminder :disappointed:
2018-03-13T21:17:58.000260
Brande
pythondev_help_Brande_2018-03-13T21:17:58.000260
1,520,975,878.00026
38,674
pythondev
help
poor little thing
2018-03-13T21:18:36.000046
Porsha
pythondev_help_Porsha_2018-03-13T21:18:36.000046
1,520,975,916.000046
38,675
pythondev
help
catnip on a string
2018-03-13T21:18:41.000047
Porsha
pythondev_help_Porsha_2018-03-13T21:18:41.000047
1,520,975,921.000047
38,676
pythondev
help
also nerf gun doesnt work because he’s in the couch! haha
2018-03-13T21:18:45.000249
Brande
pythondev_help_Brande_2018-03-13T21:18:45.000249
1,520,975,925.000249
38,677
pythondev
help
if the voices in your head are confused about python i can help :slightly_smiling_face:
2018-03-13T21:19:20.000277
Kacie
pythondev_help_Kacie_2018-03-13T21:19:20.000277
1,520,975,960.000277
38,678
pythondev
help
distracting with a toy to get him out
2018-03-13T21:19:38.000162
Brande
pythondev_help_Brande_2018-03-13T21:19:38.000162
1,520,975,978.000162
38,679
pythondev
help
Could you reinforce the base with some really strong, cat-proof material?
2018-03-13T21:19:39.000073
Porsha
pythondev_help_Porsha_2018-03-13T21:19:39.000073
1,520,975,979.000073
38,680
pythondev
help
its the cheap material :confused: i may duct tape it
2018-03-13T21:24:46.000126
Brande
pythondev_help_Brande_2018-03-13T21:24:46.000126
1,520,976,286.000126
38,681
pythondev
help
the cat?
2018-03-13T21:26:30.000122
Zack
pythondev_help_Zack_2018-03-13T21:26:30.000122
1,520,976,390.000122
38,682
pythondev
help
lol
2018-03-13T21:26:36.000070
Brande
pythondev_help_Brande_2018-03-13T21:26:36.000070
1,520,976,396.00007
38,683
pythondev
help
:laughing:
2018-03-13T21:26:41.000077
Porsha
pythondev_help_Porsha_2018-03-13T21:26:41.000077
1,520,976,401.000077
38,684
pythondev
help
I m calling a REST api through request.get(url) and then having a for loop iteration for json response dictionary. i started getting intermittent error `TypeError: 'NoneType' object is not iterable` . i realised that it may be due to having bad/no response from request.get(url). how do i make it for retry to call the a...
2018-03-13T23:04:24.000187
Refugia
pythondev_help_Refugia_2018-03-13T23:04:24.000187
1,520,982,264.000187
38,685
pythondev
help
Are you sure it's due to no response?
2018-03-13T23:09:57.000013
Floy
pythondev_help_Floy_2018-03-13T23:09:57.000013
1,520,982,597.000013
38,686
pythondev
help
Are you checking the status code of the response before going further?
2018-03-13T23:10:15.000187
Floy
pythondev_help_Floy_2018-03-13T23:10:15.000187
1,520,982,615.000187
38,687
pythondev
help
nope i didnt check status :disappointed: , could it be invalid status returned due to network throttling, server down or something else ?
2018-03-13T23:11:50.000043
Refugia
pythondev_help_Refugia_2018-03-13T23:11:50.000043
1,520,982,710.000043
38,688
pythondev
help
`getTicks=(requests.get("<https://bittrex.com/Api/v2.0/pub/market/GetTicks?marketName=>" + str(market) + "&amp;tickInterval=thirtyMin").json())["result"] `
2018-03-13T23:12:17.000012
Refugia
pythondev_help_Refugia_2018-03-13T23:12:17.000012
1,520,982,737.000012
38,689
pythondev
help
Any or all. Checking status of the response is a good idea, but not all apis will return http error codes. But it's a good place to start
2018-03-13T23:12:46.000137
Floy
pythondev_help_Floy_2018-03-13T23:12:46.000137
1,520,982,766.000137
38,690
pythondev
help
i m unsing result list from the response. do u advise to make a check for the statuscode before proceeding for for-loop ? or should i check if the lengh of result is not empty ? since i didnt get error on this getticks line, i m felling that api might have returned response but and empty result list. thats why there wa...
2018-03-13T23:14:01.000028
Refugia
pythondev_help_Refugia_2018-03-13T23:14:01.000028
1,520,982,841.000028
38,691
pythondev
help
You're basically doing three operations on that one single line with no way to recover if your request response is invalid or different from what you expect
2018-03-13T23:17:12.000290
Floy
pythondev_help_Floy_2018-03-13T23:17:12.000290
1,520,983,032.00029
38,692
pythondev
help
:smile:
2018-03-13T23:17:45.000050
Refugia
pythondev_help_Refugia_2018-03-13T23:17:45.000050
1,520,983,065.00005
38,693
pythondev
help
should i split .json[result] on second line and make check in between ?
2018-03-13T23:18:12.000210
Refugia
pythondev_help_Refugia_2018-03-13T23:18:12.000210
1,520,983,092.00021
38,694
pythondev
help
lol i thought thats make code fast and easy to read, so i choose that the operation into single line
2018-03-13T23:18:49.000234
Refugia
pythondev_help_Refugia_2018-03-13T23:18:49.000234
1,520,983,129.000234
38,695
pythondev
help
I'd break it up to Make request If status code is less than 400, loop through json content. If status code is greater than or equal to 400, log the error
2018-03-13T23:20:01.000160
Floy
pythondev_help_Floy_2018-03-13T23:20:01.000160
1,520,983,201.00016
38,696
pythondev
help
Which is functionality equivalent. After that, take a look at the two pieces of code, the old and the new. Which one would make more sense to you if you come back to this in two months?
2018-03-13T23:21:46.000128
Floy
pythondev_help_Floy_2018-03-13T23:21:46.000128
1,520,983,306.000128
38,697
pythondev
help
Which would be easier to to read and understand?
2018-03-13T23:22:07.000110
Floy
pythondev_help_Floy_2018-03-13T23:22:07.000110
1,520,983,327.00011
38,698
pythondev
help
`{ success : true, message : "", result : [ // Array of candle objects. { BV: 13.14752793, // base volume C: 0.000121, // close H: 0.00182154, // high L: 0.0001009, // low O: 0.00182154, // open T: "2...
2018-03-13T23:22:21.000230
Refugia
pythondev_help_Refugia_2018-03-13T23:22:21.000230
1,520,983,341.00023
38,699
pythondev
help
yes i will split it now. since this is intermittent issue and api would respond with desirable output on next attemp. should i use any while/if/for loop or should i use retry decorator to handle retry logic with fraction of second delay between retry ?
2018-03-13T23:24:27.000066
Refugia
pythondev_help_Refugia_2018-03-13T23:24:27.000066
1,520,983,467.000066
38,700
pythondev
help
```req = requests.get(...) if req.status_code &lt; 400: ... ```
2018-03-13T23:24:41.000028
Floy
pythondev_help_Floy_2018-03-13T23:24:41.000028
1,520,983,481.000028
38,701
pythondev
help
Because the status is a property of the request object
2018-03-13T23:25:31.000210
Floy
pythondev_help_Floy_2018-03-13T23:25:31.000210
1,520,983,531.00021
38,702
pythondev
help
hmmm thanks a ton <@Floy> wow your name is Json :slightly_smiling_face:
2018-03-13T23:25:34.000237
Refugia
pythondev_help_Refugia_2018-03-13T23:25:34.000237
1,520,983,534.000237
38,703
pythondev
help
i have two method(method1,method2) defined inside method3. the reason i did was, these method are only called by method3, so i am calling method1/2 inside method3. is that a bad practice or slower execution performance ?
2018-03-14T00:05:12.000207
Refugia
pythondev_help_Refugia_2018-03-14T00:05:12.000207
1,520,985,912.000207
38,704
pythondev
help
Hello friends, am new to python and learning it everyday, am facing an error while running below code.please explain how i can correct it if possible. Error Message: Traceback (most recent call last): File "ex_12_01.py", line 13, in &lt;module&gt; mysock.send('GET'+url+'HTTP/1.0\r\n\r\n'.encode()) TypeError: must be s...
2018-03-14T02:36:37.000140
Dalene
pythondev_help_Dalene_2018-03-14T02:36:37.000140
1,520,994,997.00014
38,705
pythondev
help
Hi friends I'm preparing for Python interview tomorrow want to spend some time with someone to revise the basic data types and to discuss how to write the equivalent code without using methods
2018-03-14T02:38:48.000195
Hobert
pythondev_help_Hobert_2018-03-14T02:38:48.000195
1,520,995,128.000195
38,706
pythondev
help
If anyone interested and have a few spare minutes kindly let me know
2018-03-14T02:39:16.000102
Hobert
pythondev_help_Hobert_2018-03-14T02:39:16.000102
1,520,995,156.000102
38,707
pythondev
help
Kindly post your doubts, issues .. Here.. . So others could help.
2018-03-14T02:43:16.000292
Tammi
pythondev_help_Tammi_2018-03-14T02:43:16.000292
1,520,995,396.000292
38,708
pythondev
help
Ok bro
2018-03-14T02:43:41.000030
Hobert
pythondev_help_Hobert_2018-03-14T02:43:41.000030
1,520,995,421.00003
38,709
pythondev
help
I have posted a code in python3 which showing some error. can you help me with that if possible.
2018-03-14T02:48:32.000283
Dalene
pythondev_help_Dalene_2018-03-14T02:48:32.000283
1,520,995,712.000283
38,710
pythondev
help
you might consider removing the .encode() from the end of your cmd= line, as it expects cmd to be a string and not a bytestring
2018-03-14T02:58:39.000185
Verline
pythondev_help_Verline_2018-03-14T02:58:39.000185
1,520,996,319.000185
38,711
pythondev
help
ok so can u also share the error
2018-03-14T02:59:18.000258
Tammi
pythondev_help_Tammi_2018-03-14T02:59:18.000258
1,520,996,358.000258
38,712
pythondev
help
the actual traceback
2018-03-14T02:59:25.000124
Tammi
pythondev_help_Tammi_2018-03-14T02:59:25.000124
1,520,996,365.000124
38,713
pythondev
help
But while sending the data i need to convert it into byte strings and at the time of receiving i need to convert that byte string to string.
2018-03-14T03:03:28.000248
Dalene
pythondev_help_Dalene_2018-03-14T03:03:28.000248
1,520,996,608.000248
38,714
pythondev
help
looks like a type error on mysock.send(cmd) to me
2018-03-14T03:08:50.000096
Verline
pythondev_help_Verline_2018-03-14T03:08:50.000096
1,520,996,930.000096
38,715
pythondev
help
so it looks like you don't have to convert it to bytes
2018-03-14T03:09:31.000310
Verline
pythondev_help_Verline_2018-03-14T03:09:31.000310
1,520,996,971.00031
38,716
pythondev
help
What is the "best" way to convert something like `'100px'` into an integer in Python?
2018-03-14T03:52:37.000352
Steffanie
pythondev_help_Steffanie_2018-03-14T03:52:37.000352
1,520,999,557.000352
38,717
pythondev
help
Obviously, `int( '100' )` could be used without the suffix.
2018-03-14T03:53:19.000077
Steffanie
pythondev_help_Steffanie_2018-03-14T03:53:19.000077
1,520,999,599.000077
38,718
pythondev
help
regex match it to strip non numerals (or .) then convert to float, then int
2018-03-14T03:54:50.000207
Verline
pythondev_help_Verline_2018-03-14T03:54:50.000207
1,520,999,690.000207
38,719
pythondev
help
Why convert to float first?
2018-03-14T03:55:26.000290
Steffanie
pythondev_help_Steffanie_2018-03-14T03:55:26.000290
1,520,999,726.00029
38,720
pythondev
help
what if it has a decimal point ?
2018-03-14T03:55:43.000360
Verline
pythondev_help_Verline_2018-03-14T03:55:43.000360
1,520,999,743.00036
38,721
pythondev
help
30.7px
2018-03-14T03:55:50.000014
Verline
pythondev_help_Verline_2018-03-14T03:55:50.000014
1,520,999,750.000014
38,722
pythondev
help
that would become 307
2018-03-14T03:56:05.000028
Verline
pythondev_help_Verline_2018-03-14T03:56:05.000028
1,520,999,765.000028
38,723