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
also, if there are `super` delegations, the last evaluated class goes to the base `type` class (i think) or metaclass
2017-10-27T12:07:18.000348
Winnifred
pythondev_help_Winnifred_2017-10-27T12:07:18.000348
1,509,106,038.000348
98,403
pythondev
help
im being much too glib -- I would check out stuff around the method resolution order though :slightly_smiling_face:
2017-10-27T12:07:38.000080
Winnifred
pythondev_help_Winnifred_2017-10-27T12:07:38.000080
1,509,106,058.00008
98,404
pythondev
help
Thanks, will do
2017-10-27T12:07:48.000212
Seema
pythondev_help_Seema_2017-10-27T12:07:48.000212
1,509,106,068.000212
98,405
pythondev
help
Thanks, will look at that!
2017-10-27T12:24:30.000035
Marni
pythondev_help_Marni_2017-10-27T12:24:30.000035
1,509,107,070.000035
98,406
pythondev
help
<http://python-history.blogspot.com/2010/06/method-resolution-order.html>
2017-10-27T13:08:48.000338
Tanya
pythondev_help_Tanya_2017-10-27T13:08:48.000338
1,509,109,728.000338
98,407
pythondev
help
Not so helpful for straight up debugging but it helped me understand python's MRO.
2017-10-27T13:09:56.000403
Tanya
pythondev_help_Tanya_2017-10-27T13:09:56.000403
1,509,109,796.000403
98,408
pythondev
help
Why would a class' attribute that is supposed to be set as a string end up as a tuple instead when a string is passed to self.attributename? I have a class where under __init__ it is using parameter names to pass in values to the attributes of the class object but when I pass in a string it turns it into a tuple with o...
2017-10-27T16:08:33.000492
Dorris
pythondev_help_Dorris_2017-10-27T16:08:33.000492
1,509,120,513.000492
98,409
pythondev
help
can you post the code in a snippet?
2017-10-27T16:08:50.000285
Lory
pythondev_help_Lory_2017-10-27T16:08:50.000285
1,509,120,530.000285
98,410
pythondev
help
<@Dorris> are you sure the string isn't ending with a `,`
2017-10-27T16:10:31.000308
Ciera
pythondev_help_Ciera_2017-10-27T16:10:31.000308
1,509,120,631.000308
98,411
pythondev
help
`a = 'hello world', ` would create a tuple for example
2017-10-27T16:10:47.000166
Ciera
pythondev_help_Ciera_2017-10-27T16:10:47.000166
1,509,120,647.000166
98,412
pythondev
help
When debugging and I look at the value being passed in there is no `,`
2017-10-27T16:12:20.000301
Dorris
pythondev_help_Dorris_2017-10-27T16:12:20.000301
1,509,120,740.000301
98,413
pythondev
help
Let me see if I can show you
2017-10-27T16:12:32.000238
Dorris
pythondev_help_Dorris_2017-10-27T16:12:32.000238
1,509,120,752.000238
98,414
pythondev
help
`crmwebapi` is what's returning a tuple?
2017-10-27T16:12:39.000419
Lory
pythondev_help_Lory_2017-10-27T16:12:39.000419
1,509,120,759.000419
98,415
pythondev
help
``` &gt;&gt;&gt; school = 10, &gt;&gt;&gt; type(school) &lt;class 'tuple'&gt; ```
2017-10-27T16:13:22.000094
Suellen
pythondev_help_Suellen_2017-10-27T16:13:22.000094
1,509,120,802.000094
98,416
pythondev
help
`,` is a tuple "operator"
2017-10-27T16:13:31.000349
Suellen
pythondev_help_Suellen_2017-10-27T16:13:31.000349
1,509,120,811.000349
98,417
pythondev
help
crmwebapi is just the URI for the api call later in code I didn't show
2017-10-27T16:14:20.000504
Dorris
pythondev_help_Dorris_2017-10-27T16:14:20.000504
1,509,120,860.000504
98,418
pythondev
help
`CamelCase` :cry:
2017-10-27T16:15:01.000211
Ciera
pythondev_help_Ciera_2017-10-27T16:15:01.000211
1,509,120,901.000211
98,419
pythondev
help
Still learning how to be pythonic :stuck_out_tongue:
2017-10-27T16:15:17.000181
Dorris
pythondev_help_Dorris_2017-10-27T16:15:17.000181
1,509,120,917.000181
98,420
pythondev
help
Coming from PowerShell background. Hard to let go sometimes I guess
2017-10-27T16:15:47.000070
Dorris
pythondev_help_Dorris_2017-10-27T16:15:47.000070
1,509,120,947.00007
98,421
pythondev
help
I would just add a bunch of log statement or run ipdb and see what happen
2017-10-27T16:15:57.000238
Ciera
pythondev_help_Ciera_2017-10-27T16:15:57.000238
1,509,120,957.000238
98,422
pythondev
help
haha no problem :smile: old habits die hard
2017-10-27T16:16:27.000194
Ciera
pythondev_help_Ciera_2017-10-27T16:16:27.000194
1,509,120,987.000194
98,423
pythondev
help
actually yeah they are all tuple because you put a `,` a the end
2017-10-27T16:16:56.000471
Ciera
pythondev_help_Ciera_2017-10-27T16:16:56.000471
1,509,121,016.000471
98,424
pythondev
help
it's only needed when creating a dict
2017-10-27T16:17:09.000354
Ciera
pythondev_help_Ciera_2017-10-27T16:17:09.000354
1,509,121,029.000354
98,425
pythondev
help
``` a = 1 b = 2 ```
2017-10-27T16:17:22.000232
Ciera
pythondev_help_Ciera_2017-10-27T16:17:22.000232
1,509,121,042.000232
98,426
pythondev
help
Beat me to it <@Ciera>
2017-10-27T16:17:24.000663
Lory
pythondev_help_Lory_2017-10-27T16:17:24.000663
1,509,121,044.000663
98,427
pythondev
help
should be like this
2017-10-27T16:17:27.000319
Ciera
pythondev_help_Ciera_2017-10-27T16:17:27.000319
1,509,121,047.000319
98,428
pythondev
help
you're right! Extra commas
2017-10-27T16:17:47.000104
Dorris
pythondev_help_Dorris_2017-10-27T16:17:47.000104
1,509,121,067.000104
98,429
pythondev
help
:slightly_smiling_face:
2017-10-27T16:17:56.000029
Suellen
pythondev_help_Suellen_2017-10-27T16:17:56.000029
1,509,121,076.000029
98,430
pythondev
help
Musta gotten them mixed up in my head with a dict or list or something
2017-10-27T16:18:22.000114
Dorris
pythondev_help_Dorris_2017-10-27T16:18:22.000114
1,509,121,102.000114
98,431
pythondev
help
That's better
2017-10-27T16:19:20.000161
Dorris
pythondev_help_Dorris_2017-10-27T16:19:20.000161
1,509,121,160.000161
98,432
pythondev
help
yeah it's one of those thing that can easily bite you. it's one thing that could benefit from some improvments
2017-10-27T16:19:25.000025
Ciera
pythondev_help_Ciera_2017-10-27T16:19:25.000025
1,509,121,165.000025
98,433
pythondev
help
Thank you
2017-10-27T16:19:26.000210
Dorris
pythondev_help_Dorris_2017-10-27T16:19:26.000210
1,509,121,166.00021
98,434
pythondev
help
gotta be careful with commas
2017-10-27T16:20:55.000368
Suellen
pythondev_help_Suellen_2017-10-27T16:20:55.000368
1,509,121,255.000368
98,435
pythondev
help
So, if I were to write it pythonicly :stuck_out_tongue:
2017-10-27T16:21:01.000016
Dorris
pythondev_help_Dorris_2017-10-27T16:21:01.000016
1,509,121,261.000016
98,436
pythondev
help
parenthesis don't make a tuple
2017-10-27T16:21:08.000228
Suellen
pythondev_help_Suellen_2017-10-27T16:21:08.000228
1,509,121,268.000228
98,437
pythondev
help
Would that be with _ instead of camelcase?
2017-10-27T16:21:14.000265
Dorris
pythondev_help_Dorris_2017-10-27T16:21:14.000265
1,509,121,274.000265
98,438
pythondev
help
yup_thats_right
2017-10-27T16:22:01.000037
Suellen
pythondev_help_Suellen_2017-10-27T16:22:01.000037
1,509,121,321.000037
98,439
pythondev
help
kk :slightly_smiling_face:
2017-10-27T16:22:20.000342
Dorris
pythondev_help_Dorris_2017-10-27T16:22:20.000342
1,509,121,340.000342
98,440
pythondev
help
Thanks again
2017-10-27T16:22:24.000252
Dorris
pythondev_help_Dorris_2017-10-27T16:22:24.000252
1,509,121,344.000252
98,441
pythondev
help
Hi Guys
2017-10-28T03:25:28.000018
Ronda
pythondev_help_Ronda_2017-10-28T03:25:28.000018
1,509,161,128.000018
98,442
pythondev
help
I m new to python ( infact programming) , was looking for documentation for python modules , explained with examples
2017-10-28T03:26:22.000016
Ronda
pythondev_help_Ronda_2017-10-28T03:26:22.000016
1,509,161,182.000016
98,443
pythondev
help
official documentation is not good , can any one provide me any URL for this , appreciate help
2017-10-28T03:26:45.000028
Ronda
pythondev_help_Ronda_2017-10-28T03:26:45.000028
1,509,161,205.000028
98,444
pythondev
help
For modules - starting point <https://www.tutorialspoint.com/python/python_modules.htm>
2017-10-28T03:31:31.000036
Alia
pythondev_help_Alia_2017-10-28T03:31:31.000036
1,509,161,491.000036
98,445
pythondev
help
For python training for beginners:
2017-10-28T03:31:56.000087
Alia
pythondev_help_Alia_2017-10-28T03:31:56.000087
1,509,161,516.000087
98,446
pythondev
help
<https://developers.google.com/edu/python/>
2017-10-28T03:31:58.000014
Alia
pythondev_help_Alia_2017-10-28T03:31:58.000014
1,509,161,518.000014
98,447
pythondev
help
Alright buddy , let me check it. Thanks for reply
2017-10-28T03:38:28.000044
Ronda
pythondev_help_Ronda_2017-10-28T03:38:28.000044
1,509,161,908.000044
98,448
pythondev
help
OK, going a little bonkers. I have a package whose actual name has an underscore `my_package`, but in the setup.py, for the name attribute, I accidentally put `name="my package"` - I ran setup.py a few times with success, before realizing it was naming the package `my-package`. Now, I've fixed the name so it's `name="m...
2017-10-28T20:42:12.000035
Rex
pythondev_help_Rex_2017-10-28T20:42:12.000035
1,509,223,332.000035
98,449
pythondev
help
wondering if a new virtualenv would help
2017-10-28T20:42:58.000010
Rex
pythondev_help_Rex_2017-10-28T20:42:58.000010
1,509,223,378.00001
98,450
pythondev
help
but that seems silly too
2017-10-28T20:43:09.000004
Rex
pythondev_help_Rex_2017-10-28T20:43:09.000004
1,509,223,389.000004
98,451
pythondev
help
this is running in a virtualenv based on python 3.5 on windows 10
2017-10-28T20:44:14.000057
Rex
pythondev_help_Rex_2017-10-28T20:44:14.000057
1,509,223,454.000057
98,452
pythondev
help
tried in Python 2.7 (which had no knowledge of the package) with the same result. In the past, I've been able to have packages with underscores instead of hyphens
2017-10-28T20:50:57.000054
Rex
pythondev_help_Rex_2017-10-28T20:50:57.000054
1,509,223,857.000054
98,453
pythondev
help
It may just be PyPI acting differently than I expect too - looks like the other packages I've made with underscores show as hyphens in PKG-INFO but as underscores on PyPI - this one doesn't
2017-10-28T20:56:15.000032
Rex
pythondev_help_Rex_2017-10-28T20:56:15.000032
1,509,224,175.000032
98,454
pythondev
help
Hi!! Hope everybody is enjoying a lovely weekend.:four_leaf_clover: My name is Kathryn Gao, and I’m a UX designer. I need some help in this very personal project: I’m working on a platform that makes it easier for people to find solutions for their career concerns. Now I’m trying to understand how the experienced prof...
2017-10-29T05:33:44.000056
Lynda
pythondev_help_Lynda_2017-10-29T05:33:44.000056
1,509,255,224.000056
98,455
pythondev
help
Anyone into Python Algorithm Trading and Strategies? I need help regarding implementation of indicators for strategies.
2017-10-29T09:12:49.000019
Pasquale
pythondev_help_Pasquale_2017-10-29T09:12:49.000019
1,509,268,369.000019
98,456
pythondev
help
pls DM
2017-10-29T09:12:54.000036
Pasquale
pythondev_help_Pasquale_2017-10-29T09:12:54.000036
1,509,268,374.000036
98,457
pythondev
help
???
2017-10-29T10:45:45.000007
Suellen
pythondev_help_Suellen_2017-10-29T10:45:45.000007
1,509,273,945.000007
98,458
pythondev
help
1 + 9 = 10
2017-10-29T10:45:50.000100
Suellen
pythondev_help_Suellen_2017-10-29T10:45:50.000100
1,509,273,950.0001
98,459
pythondev
help
<@Suellen> yep, ill show you a screenshot :laughing:
2017-10-29T10:48:01.000018
Leif
pythondev_help_Leif_2017-10-29T10:48:01.000018
1,509,274,081.000018
98,460
pythondev
help
no, that's not what I meant
2017-10-29T10:50:16.000061
Suellen
pythondev_help_Suellen_2017-10-29T10:50:16.000061
1,509,274,216.000061
98,461
pythondev
help
I mean.. one plus nine is ten.. right?
2017-10-29T10:50:24.000016
Suellen
pythondev_help_Suellen_2017-10-29T10:50:24.000016
1,509,274,224.000016
98,462
pythondev
help
why is this result surprising?
2017-10-29T10:50:32.000036
Suellen
pythondev_help_Suellen_2017-10-29T10:50:32.000036
1,509,274,232.000036
98,463
pythondev
help
oh right ._.
2017-10-29T10:51:18.000006
Leif
pythondev_help_Leif_2017-10-29T10:51:18.000006
1,509,274,278.000006
98,464
pythondev
help
Well Thanks for answering. Yeah i was totally wrong there
2017-10-29T10:51:55.000040
Leif
pythondev_help_Leif_2017-10-29T10:51:55.000040
1,509,274,315.00004
98,465
pythondev
help
better here than in stackoverflow :laughing:
2017-10-29T10:52:12.000014
Leif
pythondev_help_Leif_2017-10-29T10:52:12.000014
1,509,274,332.000014
98,466
pythondev
help
don't worry, we've all been there
2017-10-29T10:52:20.000084
Suellen
pythondev_help_Suellen_2017-10-29T10:52:20.000084
1,509,274,340.000084
98,467
pythondev
help
Really? i feel really dumb
2017-10-29T10:52:30.000076
Leif
pythondev_help_Leif_2017-10-29T10:52:30.000076
1,509,274,350.000076
98,468
pythondev
help
hahaha
2017-10-29T10:52:33.000072
Leif
pythondev_help_Leif_2017-10-29T10:52:33.000072
1,509,274,353.000072
98,469
pythondev
help
It's like "wut? i mean i did not i see it before?"
2017-10-29T10:52:53.000048
Leif
pythondev_help_Leif_2017-10-29T10:52:53.000048
1,509,274,373.000048
98,470
pythondev
help
have you coded in PHP previously? :slightly_smiling_face:
2017-10-29T10:53:01.000061
Suellen
pythondev_help_Suellen_2017-10-29T10:53:01.000061
1,509,274,381.000061
98,471
pythondev
help
unfortunately yes ( i came from developing themes in WP )
2017-10-29T10:53:38.000005
Leif
pythondev_help_Leif_2017-10-29T10:53:38.000005
1,509,274,418.000005
98,472
pythondev
help
I only asked because numbers there are sometimes strings and vice versa
2017-10-29T10:55:31.000063
Suellen
pythondev_help_Suellen_2017-10-29T10:55:31.000063
1,509,274,531.000063
98,473
pythondev
help
So if you get used to it you can find yourself in such a headscratching situation :stuck_out_tongue:
2017-10-29T10:56:18.000036
Suellen
pythondev_help_Suellen_2017-10-29T10:56:18.000036
1,509,274,578.000036
98,474
pythondev
help
Yeah... well thanks man! i was just trying to practice some python coding on <http://www.codefights.com|www.codefights.com> and yeah i got locked up there. Thanks. Now know why is always good to let other dev to see your code
2017-10-29T10:57:38.000003
Leif
pythondev_help_Leif_2017-10-29T10:57:38.000003
1,509,274,658.000003
98,475
pythondev
help
:laughing:
2017-10-29T10:57:43.000059
Leif
pythondev_help_Leif_2017-10-29T10:57:43.000059
1,509,274,663.000059
98,476
pythondev
help
People, I have a structure like this: points_neiborhood = [ ["Pitimbu",[-5.876271, -35.224500]], ["Planalto",[-5.858102, -35.251586]],["Ponta Negra",[-5.877522, -35.176073]]] and in Jupyter Notebook if I do for rows in points_neiborhood: print(rows[0]+", ", end='') print(list[0], end='') print(...
2017-10-29T10:59:13.000003
Carolin
pythondev_help_Carolin_2017-10-29T10:59:13.000003
1,509,274,753.000003
98,477
pythondev
help
I think the best place to start is by dropping a snippet of your code.
2017-10-29T11:02:03.000057
Winnifred
pythondev_help_Winnifred_2017-10-29T11:02:03.000057
1,509,274,923.000057
98,478
pythondev
help
This is what I have in my .py
2017-10-29T11:06:10.000017
Carolin
pythondev_help_Carolin_2017-10-29T11:06:10.000017
1,509,275,170.000017
98,479
pythondev
help
Just the lines near and around what’s throwing the `TypeError`
2017-10-29T11:06:33.000066
Winnifred
pythondev_help_Winnifred_2017-10-29T11:06:33.000066
1,509,275,193.000066
98,480
pythondev
help
Traceback (most recent call last): File "consumer.py", line 76, in &lt;module&gt; main() File "consumer.py", line 69, in main consumer(90) File "consumer.py", line 27, in consumer uberRequestTimes(counter) File "consumer.py", line 39, in uberRequestTimes pontoA = list[0] TypeError: 'type' object...
2017-10-29T11:07:59.000006
Carolin
pythondev_help_Carolin_2017-10-29T11:07:59.000006
1,509,275,279.000006
98,481
pythondev
help
HI all. I am looking for a package or script which helps us to find the max and min of a latitude and longitude.
2017-10-29T11:08:44.000011
Cleotilde
pythondev_help_Cleotilde_2017-10-29T11:08:44.000011
1,509,275,324.000011
98,482
pythondev
help
Anybody aware of such scripts?
2017-10-29T11:10:10.000059
Cleotilde
pythondev_help_Cleotilde_2017-10-29T11:10:10.000059
1,509,275,410.000059
98,483
pythondev
help
<@Cleotilde> the pair latitude and longitude or only one of theses properties? If is just latitude or longitude with don´t you order your list based in longitude or latitude and take the first or the last? If both, you have to calculate the euclidian distance of all points...
2017-10-29T11:11:10.000048
Carolin
pythondev_help_Carolin_2017-10-29T11:11:10.000048
1,509,275,470.000048
98,484
pythondev
help
and take the greater one
2017-10-29T11:11:22.000035
Carolin
pythondev_help_Carolin_2017-10-29T11:11:22.000035
1,509,275,482.000035
98,485
pythondev
help
<@Carolin> Thank you for answering. I have the pair of lat and long of a location. Wanted to find the max and min.
2017-10-29T11:12:58.000037
Cleotilde
pythondev_help_Cleotilde_2017-10-29T11:12:58.000037
1,509,275,578.000037
98,486
pythondev
help
max and min of what?
2017-10-29T11:37:13.000022
Meg
pythondev_help_Meg_2017-10-29T11:37:13.000022
1,509,277,033.000022
98,487
pythondev
help
each of lat/long?
2017-10-29T11:37:20.000014
Meg
pythondev_help_Meg_2017-10-29T11:37:20.000014
1,509,277,040.000014
98,488
pythondev
help
max/min of position from equator?
2017-10-29T11:37:37.000047
Meg
pythondev_help_Meg_2017-10-29T11:37:37.000047
1,509,277,057.000047
98,489
pythondev
help
from prime meridian?
2017-10-29T11:37:44.000060
Meg
pythondev_help_Meg_2017-10-29T11:37:44.000060
1,509,277,064.00006
98,490
pythondev
help
regardless, this is a pretty common homework question, when a student is asked to find the maximum and minimum value of a given data structure
2017-10-29T11:38:25.000071
Meg
pythondev_help_Meg_2017-10-29T11:38:25.000071
1,509,277,105.000071
98,491
pythondev
help
its not hard to get a solution that executes in linear time of O(n)
2017-10-29T11:38:53.000061
Meg
pythondev_help_Meg_2017-10-29T11:38:53.000061
1,509,277,133.000061
98,492
pythondev
help
what have you tried?
2017-10-29T11:39:02.000047
Meg
pythondev_help_Meg_2017-10-29T11:39:02.000047
1,509,277,142.000047
98,493
pythondev
help
<@Carolin> `list` is a reserved word in python
2017-10-29T11:40:22.000099
Meg
pythondev_help_Meg_2017-10-29T11:40:22.000099
1,509,277,222.000099
98,494
pythondev
help
should be the variable name that you’ve assigned for your list
2017-10-29T11:40:43.000027
Meg
pythondev_help_Meg_2017-10-29T11:40:43.000027
1,509,277,243.000027
98,495
pythondev
help
eg, `pontoA = row[0]`
2017-10-29T11:41:14.000094
Meg
pythondev_help_Meg_2017-10-29T11:41:14.000094
1,509,277,274.000094
98,496
pythondev
help
<@Meg> thanks man, I have a structure like this: points_neighborhood = [["Pitimbu",[-5.876271, -35.224500]],["Planalto",[-5.858102, -35.251586]]] in Jupyter Notebook if I do for rows in points_neiborhood: print(rows[0]+", ", end='') print(list[0], end='') print(",", end='') print(list[1]) i...
2017-10-29T11:43:22.000034
Carolin
pythondev_help_Carolin_2017-10-29T11:43:22.000034
1,509,277,402.000034
98,497
pythondev
help
How can I iterate through these values?
2017-10-29T11:43:54.000001
Carolin
pythondev_help_Carolin_2017-10-29T11:43:54.000001
1,509,277,434.000001
98,498
pythondev
help
rows[0][0] does not work it returns me the first letter of the fist value
2017-10-29T11:44:41.000009
Carolin
pythondev_help_Carolin_2017-10-29T11:44:41.000009
1,509,277,481.000009
98,499
pythondev
help
Like 'P' in ["Pitimbu",[-5.876271, -35.224500]]
2017-10-29T11:44:53.000043
Carolin
pythondev_help_Carolin_2017-10-29T11:44:53.000043
1,509,277,493.000043
98,500
pythondev
help
yeah
2017-10-29T11:45:00.000053
Meg
pythondev_help_Meg_2017-10-29T11:45:00.000053
1,509,277,500.000053
98,501
pythondev
help
and not -5.876271
2017-10-29T11:45:00.000102
Carolin
pythondev_help_Carolin_2017-10-29T11:45:00.000102
1,509,277,500.000102
98,502