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
i set my interpreter to python 3.6
2017-11-06T10:34:28.000131
Dexter
pythondev_help_Dexter_2017-11-06T10:34:28.000131
1,509,964,468.000131
99,403
pythondev
help
when i try to debug my script
2017-11-06T10:34:31.000248
Dexter
pythondev_help_Dexter_2017-11-06T10:34:31.000248
1,509,964,471.000248
99,404
pythondev
help
it breaks in this file
2017-11-06T10:34:38.000086
Dexter
pythondev_help_Dexter_2017-11-06T10:34:38.000086
1,509,964,478.000086
99,405
pythondev
help
<https://cl.ly/1R1B0y363b0r>
2017-11-06T10:34:39.000500
Dexter
pythondev_help_Dexter_2017-11-06T10:34:39.000500
1,509,964,479.0005
99,406
pythondev
help
anyone know why?
2017-11-06T10:34:44.000127
Dexter
pythondev_help_Dexter_2017-11-06T10:34:44.000127
1,509,964,484.000127
99,407
pythondev
help
the exec line has a breakpoint (that i didn’t set), when i hit continue, python either crashes or it just ends
2017-11-06T10:35:00.000562
Dexter
pythondev_help_Dexter_2017-11-06T10:35:00.000562
1,509,964,500.000562
99,408
pythondev
help
did you right click in the editor window and select run as debug?
2017-11-06T10:38:45.000180
Meg
pythondev_help_Meg_2017-11-06T10:38:45.000180
1,509,964,725.00018
99,409
pythondev
help
yes
2017-11-06T10:38:59.000601
Dexter
pythondev_help_Dexter_2017-11-06T10:38:59.000601
1,509,964,739.000601
99,410
pythondev
help
same error?
2017-11-06T10:39:10.000332
Meg
pythondev_help_Meg_2017-11-06T10:39:10.000332
1,509,964,750.000332
99,411
pythondev
help
yes
2017-11-06T10:40:14.000278
Dexter
pythondev_help_Dexter_2017-11-06T10:40:14.000278
1,509,964,814.000278
99,412
pythondev
help
it hits a breakpoint right here
2017-11-06T10:40:18.000312
Dexter
pythondev_help_Dexter_2017-11-06T10:40:18.000312
1,509,964,818.000312
99,413
pythondev
help
<https://cl.ly/0H0K0K162V07>
2017-11-06T10:40:18.000772
Dexter
pythondev_help_Dexter_2017-11-06T10:40:18.000772
1,509,964,818.000772
99,414
pythondev
help
and what’s the error output when you resume?
2017-11-06T10:41:40.000595
Meg
pythondev_help_Meg_2017-11-06T10:41:40.000595
1,509,964,900.000595
99,415
pythondev
help
nothing, it just ends
2017-11-06T10:41:45.000400
Dexter
pythondev_help_Dexter_2017-11-06T10:41:45.000400
1,509,964,905.0004
99,416
pythondev
help
nothing in debug console?
2017-11-06T10:41:55.000510
Meg
pythondev_help_Meg_2017-11-06T10:41:55.000510
1,509,964,915.00051
99,417
pythondev
help
would it be possible to split the line in multiple line N
2017-11-06T10:41:57.000314
Ciera
pythondev_help_Ciera_2017-11-06T10:41:57.000314
1,509,964,917.000314
99,418
pythondev
help
like first the compile then the exec
2017-11-06T10:42:18.000144
Ciera
pythondev_help_Ciera_2017-11-06T10:42:18.000144
1,509,964,938.000144
99,419
pythondev
help
oh.. is that your file or is it something else?
2017-11-06T10:42:24.000492
Meg
pythondev_help_Meg_2017-11-06T10:42:24.000492
1,509,964,944.000492
99,420
pythondev
help
and maybe see what is being compiled first
2017-11-06T10:42:25.000382
Ciera
pythondev_help_Ciera_2017-11-06T10:42:25.000382
1,509,964,945.000382
99,421
pythondev
help
ah, wasn’t looking at the console output
2017-11-06T10:44:39.000344
Dexter
pythondev_help_Dexter_2017-11-06T10:44:39.000344
1,509,965,079.000344
99,422
pythondev
help
standby fixing an error
2017-11-06T10:44:45.000032
Dexter
pythondev_help_Dexter_2017-11-06T10:44:45.000032
1,509,965,085.000032
99,423
pythondev
help
ok
2017-11-06T10:47:35.000706
Dexter
pythondev_help_Dexter_2017-11-06T10:47:35.000706
1,509,965,255.000706
99,424
pythondev
help
working
2017-11-06T10:47:36.000576
Dexter
pythondev_help_Dexter_2017-11-06T10:47:36.000576
1,509,965,256.000576
99,425
pythondev
help
breakpoint after the `read` statement
2017-11-06T10:47:43.000380
Dexter
pythondev_help_Dexter_2017-11-06T10:47:43.000380
1,509,965,263.00038
99,426
pythondev
help
it’s not telling me much about format though
2017-11-06T10:47:47.000776
Dexter
pythondev_help_Dexter_2017-11-06T10:47:47.000776
1,509,965,267.000776
99,427
pythondev
help
soi
2017-11-06T10:47:57.000064
Dexter
pythondev_help_Dexter_2017-11-06T10:47:57.000064
1,509,965,277.000064
99,428
pythondev
help
i think ur theory <@Meg> is probably correct
2017-11-06T10:48:08.000027
Dexter
pythondev_help_Dexter_2017-11-06T10:48:08.000027
1,509,965,288.000027
99,429
pythondev
help
do u know of the method to convert a “frame” to another format?
2017-11-06T10:48:23.000464
Dexter
pythondev_help_Dexter_2017-11-06T10:48:23.000464
1,509,965,303.000464
99,430
pythondev
help
that’s where you have to dig into the documentation ¯\_(ツ)_/¯
2017-11-06T10:48:45.000567
Meg
pythondev_help_Meg_2017-11-06T10:48:45.000567
1,509,965,325.000567
99,431
pythondev
help
struggling
2017-11-06T10:48:53.000374
Dexter
pythondev_help_Dexter_2017-11-06T10:48:53.000374
1,509,965,333.000374
99,432
pythondev
help
hate their documentation
2017-11-06T10:48:56.000010
Dexter
pythondev_help_Dexter_2017-11-06T10:48:56.000010
1,509,965,336.00001
99,433
pythondev
help
still no luck here
2017-11-06T11:04:19.000374
Dexter
pythondev_help_Dexter_2017-11-06T11:04:19.000374
1,509,966,259.000374
99,434
pythondev
help
if anyone has any ideas i’d be much appreciative!
2017-11-06T11:04:25.000528
Dexter
pythondev_help_Dexter_2017-11-06T11:04:25.000528
1,509,966,265.000528
99,435
pythondev
help
Hello, definitely a newbie here. I'm trying to get values from a JSON file and part of my code is this: `json_data = json.load(init_deployment)` however, this returns `AttributeError: 'str' object has no attribute 'iteritems'` and when I try to change it to json.*loads*, I get this error: `TypeError: the JSON object ...
2017-11-06T11:16:32.000382
Grayce
pythondev_help_Grayce_2017-11-06T11:16:32.000382
1,509,966,992.000382
99,436
pythondev
help
how do you define init_deployment?
2017-11-06T11:17:11.000474
Toby
pythondev_help_Toby_2017-11-06T11:17:11.000474
1,509,967,031.000474
99,437
pythondev
help
`init_deployment = open(&lt;pathToFile&gt;)`?
2017-11-06T11:18:17.000455
Toby
pythondev_help_Toby_2017-11-06T11:18:17.000455
1,509,967,097.000455
99,438
pythondev
help
Here: ``` init_deployment = 'C:\\Tests\\deployment.json' with open(init_deployment) as init_deployment: json_data = json.loads(init_deployment) ```
2017-11-06T11:18:18.000367
Grayce
pythondev_help_Grayce_2017-11-06T11:18:18.000367
1,509,967,098.000367
99,439
pythondev
help
```init_deployment = 'C:\\Tests\\deployment.json' json_data = json.load(init_deployment) print json_data['id']```
2017-11-06T11:19:16.000556
Toby
pythondev_help_Toby_2017-11-06T11:19:16.000556
1,509,967,156.000556
99,440
pythondev
help
i dont know what your json data looks like but if you have `{'id': 'IDVALUE'}` then the above will work
2017-11-06T11:19:55.000474
Toby
pythondev_help_Toby_2017-11-06T11:19:55.000474
1,509,967,195.000474
99,441
pythondev
help
make sense?
2017-11-06T11:20:36.000670
Toby
pythondev_help_Toby_2017-11-06T11:20:36.000670
1,509,967,236.00067
99,442
pythondev
help
<@Grayce> how do you use `json_data`?
2017-11-06T11:21:52.000191
Collette
pythondev_help_Collette_2017-11-06T11:21:52.000191
1,509,967,312.000191
99,443
pythondev
help
There should be some sort of `.iteritems` call
2017-11-06T11:22:06.000782
Collette
pythondev_help_Collette_2017-11-06T11:22:06.000782
1,509,967,326.000782
99,444
pythondev
help
(btw, switch to py3 already, we're in 2017 :slightly_smiling_face: )
2017-11-06T11:22:21.000035
Collette
pythondev_help_Collette_2017-11-06T11:22:21.000035
1,509,967,341.000035
99,445
pythondev
help
py2 has better plugin support
2017-11-06T11:22:46.000081
Toby
pythondev_help_Toby_2017-11-06T11:22:46.000081
1,509,967,366.000081
99,446
pythondev
help
<@Toby> I just tried it and still returns the same error. But still, thanks!
2017-11-06T11:22:59.000454
Grayce
pythondev_help_Grayce_2017-11-06T11:22:59.000454
1,509,967,379.000454
99,447
pythondev
help
I have it on my for e in json_data, hold one, I'll just try something out. Thanks!
2017-11-06T11:24:24.000571
Grayce
pythondev_help_Grayce_2017-11-06T11:24:24.000571
1,509,967,464.000571
99,448
pythondev
help
`e in json_data` means "iterate over the dictionary keys", which keys are strings, thus e is a string
2017-11-06T11:25:42.000212
Collette
pythondev_help_Collette_2017-11-06T11:25:42.000212
1,509,967,542.000212
99,449
pythondev
help
plus it depends what shes using it for
2017-11-06T11:26:04.000518
Toby
pythondev_help_Toby_2017-11-06T11:26:04.000518
1,509,967,564.000518
99,450
pythondev
help
<@Toby> that's simply not true for a couple of years already.
2017-11-06T11:26:18.000419
Collette
pythondev_help_Collette_2017-11-06T11:26:18.000419
1,509,967,578.000419
99,451
pythondev
help
More than that, there are py3-only libraries.
2017-11-06T11:26:27.000263
Collette
pythondev_help_Collette_2017-11-06T11:26:27.000263
1,509,967,587.000263
99,452
pythondev
help
For instance, I'm making one right now
2017-11-06T11:26:46.000044
Collette
pythondev_help_Collette_2017-11-06T11:26:46.000044
1,509,967,606.000044
99,453
pythondev
help
I am still gripping onto 2.7 like my life depends on it lol
2017-11-06T11:27:33.000613
Lory
pythondev_help_Lory_2017-11-06T11:27:33.000613
1,509,967,653.000613
99,454
pythondev
help
<https://wiki.python.org/moin/Python2orPython3>
2017-11-06T11:27:39.000609
Toby
pythondev_help_Toby_2017-11-06T11:27:39.000609
1,509,967,659.000609
99,455
pythondev
help
if im not using libraries or any io boards, id use 3.6, else 2.7 all the way
2017-11-06T11:28:05.000093
Toby
pythondev_help_Toby_2017-11-06T11:28:05.000093
1,509,967,685.000093
99,456
pythondev
help
What should this link provide us?
2017-11-06T11:31:21.000720
Collette
pythondev_help_Collette_2017-11-06T11:31:21.000720
1,509,967,881.00072
99,457
pythondev
help
OTOH there are <http://py3readiness.org/> and <https://python3wos.appspot.com/>
2017-11-06T11:31:46.000444
Collette
pythondev_help_Collette_2017-11-06T11:31:46.000444
1,509,967,906.000444
99,458
pythondev
help
look under the `Which version should I use?` section
2017-11-06T11:31:59.000661
Toby
pythondev_help_Toby_2017-11-06T11:31:59.000661
1,509,967,919.000661
99,459
pythondev
help
So... the vast majority of active libraries are ported to py3, there are py3-only libraries, and you still think that if you have an external dependency you'd better go with py2?
2017-11-06T11:33:12.000062
Collette
pythondev_help_Collette_2017-11-06T11:33:12.000062
1,509,967,992.000062
99,460
pythondev
help
What are you going to do past 2020?
2017-11-06T11:33:27.000212
Collette
pythondev_help_Collette_2017-11-06T11:33:27.000212
1,509,968,007.000212
99,461
pythondev
help
Are you still on ubuntu 8.04, by the way? Next year py3 will be literally 10 years old
2017-11-06T11:34:28.000259
Collette
pythondev_help_Collette_2017-11-06T11:34:28.000259
1,509,968,068.000259
99,462
pythondev
help
dont use ubuntu, i use windows like normal devs who dont dev for tinkerboards
2017-11-06T11:35:23.000294
Toby
pythondev_help_Toby_2017-11-06T11:35:23.000294
1,509,968,123.000294
99,463
pythondev
help
Okay, I guess you're still using Windows XP then.
2017-11-06T11:36:11.000418
Collette
pythondev_help_Collette_2017-11-06T11:36:11.000418
1,509,968,171.000418
99,464
pythondev
help
<@Grayce> have you managed to resolve your issue?
2017-11-06T11:37:04.000723
Collette
pythondev_help_Collette_2017-11-06T11:37:04.000723
1,509,968,224.000723
99,465
pythondev
help
im on windows 10... anyone who uses 7 or older needs to get an upgrade or their pc removing from them
2017-11-06T11:37:48.000213
Toby
pythondev_help_Toby_2017-11-06T11:37:48.000213
1,509,968,268.000213
99,466
pythondev
help
then your opinions about versioning and supporting old versions of software are quite inconsistent ¯\_(ツ)_/¯
2017-11-06T11:40:12.000895
Collette
pythondev_help_Collette_2017-11-06T11:40:12.000895
1,509,968,412.000895
99,467
pythondev
help
im not on about supporting old os' tho
2017-11-06T11:40:42.000859
Toby
pythondev_help_Toby_2017-11-06T11:40:42.000859
1,509,968,442.000859
99,468
pythondev
help
So to speak, I have windows 7 on my gaming machine. And I won't upgrade to 10, unless it's un-shitted
2017-11-06T11:40:59.000041
Collette
pythondev_help_Collette_2017-11-06T11:40:59.000041
1,509,968,459.000041
99,469
pythondev
help
oh god...
2017-11-06T11:41:10.000056
Toby
pythondev_help_Toby_2017-11-06T11:41:10.000056
1,509,968,470.000056
99,470
pythondev
help
update to 10 already
2017-11-06T11:41:16.000672
Toby
pythondev_help_Toby_2017-11-06T11:41:16.000672
1,509,968,476.000672
99,471
pythondev
help
Python 3 is great, that's what makes it different from windows 10 :slightly_smiling_face: Anyway, that's a topic for <#C07EFN21K|random>
2017-11-06T11:41:42.000320
Collette
pythondev_help_Collette_2017-11-06T11:41:42.000320
1,509,968,502.00032
99,472
pythondev
help
We can go there if you'd like to continue
2017-11-06T11:41:48.000344
Collette
pythondev_help_Collette_2017-11-06T11:41:48.000344
1,509,968,508.000344
99,473
pythondev
help
Hello <@Collette> yes, done with the first part. Thanks, and also <@Toby>!
2017-11-06T11:52:11.000513
Grayce
pythondev_help_Grayce_2017-11-06T11:52:11.000513
1,509,969,131.000513
99,474
pythondev
help
Hey guys question. when defining a class, why does it need to have `self` in the methods?
2017-11-06T12:40:39.000139
Ernestina
pythondev_help_Ernestina_2017-11-06T12:40:39.000139
1,509,972,039.000139
99,475
pythondev
help
for example: ```class Dataset(object): def __init__(self, name, path, schema, type, prefix, primaryKey, separator='\t', header=None): self.name = name # in format abacus_dataset_name self.path = path self.schema = schema self.type = type self.prefix = prefix self.primaryKey = primaryKey ...
2017-11-06T12:40:53.000161
Ernestina
pythondev_help_Ernestina_2017-11-06T12:40:53.000161
1,509,972,053.000161
99,476
pythondev
help
`self` refers to the instance that's calling the class method
2017-11-06T12:41:08.000557
Frieda
pythondev_help_Frieda_2017-11-06T12:41:08.000557
1,509,972,068.000557
99,477
pythondev
help
why does show(self) need to be that way
2017-11-06T12:41:09.000059
Ernestina
pythondev_help_Ernestina_2017-11-06T12:41:09.000059
1,509,972,069.000059
99,478
pythondev
help
Got it
2017-11-06T12:41:33.000325
Ernestina
pythondev_help_Ernestina_2017-11-06T12:41:33.000325
1,509,972,093.000325
99,479
pythondev
help
it doesn't _have_ to be `self`, either
2017-11-06T12:41:44.000715
Frieda
pythondev_help_Frieda_2017-11-06T12:41:44.000715
1,509,972,104.000715
99,480
pythondev
help
`def show(this):` works just as well
2017-11-06T12:41:51.000397
Frieda
pythondev_help_Frieda_2017-11-06T12:41:51.000397
1,509,972,111.000397
99,481
pythondev
help
but you'll get weird looks
2017-11-06T12:41:54.000584
Frieda
pythondev_help_Frieda_2017-11-06T12:41:54.000584
1,509,972,114.000584
99,482
pythondev
help
the `why` for that is convention
2017-11-06T12:45:20.000091
Meg
pythondev_help_Meg_2017-11-06T12:45:20.000091
1,509,972,320.000091
99,483
pythondev
help
coming from java, where `this` is the same as `self`, and is implicit to classes, was a big context switch for me
2017-11-06T12:45:48.000099
Meg
pythondev_help_Meg_2017-11-06T12:45:48.000099
1,509,972,348.000099
99,484
pythondev
help
and the fact lots of java devs really _like_ that they can omit `this`
2017-11-06T12:47:51.000034
Collette
pythondev_help_Collette_2017-11-06T12:47:51.000034
1,509,972,471.000034
99,485
pythondev
help
also different from javascript in that `self` never changes what it points to. it's always the instance
2017-11-06T12:48:06.000134
Frieda
pythondev_help_Frieda_2017-11-06T12:48:06.000134
1,509,972,486.000134
99,486
pythondev
help
yeah that’s something I like about Python - things like are usually more explicit, there’s less magic
2017-11-06T12:48:59.000118
Junita
pythondev_help_Junita_2017-11-06T12:48:59.000118
1,509,972,539.000118
99,487
pythondev
help
we keep our magic contained inside of underscores
2017-11-06T12:50:05.000458
Frieda
pythondev_help_Frieda_2017-11-06T12:50:05.000458
1,509,972,605.000458
99,488
pythondev
help
heh
2017-11-06T12:50:11.000190
Junita
pythondev_help_Junita_2017-11-06T12:50:11.000190
1,509,972,611.00019
99,489
pythondev
help
I wonder how it would feel to find code where the author doesn't use `self` but something completely irrelevant
2017-11-06T12:51:53.000396
Ciera
pythondev_help_Ciera_2017-11-06T12:51:53.000396
1,509,972,713.000396
99,490
pythondev
help
like `banana`
2017-11-06T12:51:58.000467
Ciera
pythondev_help_Ciera_2017-11-06T12:51:58.000467
1,509,972,718.000467
99,491
pythondev
help
I have come across code where the author used other things than self, and it was jarring to say the least
2017-11-06T12:52:38.000051
Junita
pythondev_help_Junita_2017-11-06T12:52:38.000051
1,509,972,758.000051
99,492
pythondev
help
it at least vaguely made sense
2017-11-06T12:52:41.000324
Junita
pythondev_help_Junita_2017-11-06T12:52:41.000324
1,509,972,761.000324
99,493
pythondev
help
<@Ciera> try it yourself for a day :smile:
2017-11-06T12:52:48.000423
Frieda
pythondev_help_Frieda_2017-11-06T12:52:48.000423
1,509,972,768.000423
99,494
pythondev
help
on a branch, of course
2017-11-06T12:52:51.000396
Frieda
pythondev_help_Frieda_2017-11-06T12:52:51.000396
1,509,972,771.000396
99,495
pythondev
help
no sure the code review will go ok :smile:
2017-11-06T12:53:06.000495
Ciera
pythondev_help_Ciera_2017-11-06T12:53:06.000495
1,509,972,786.000495
99,496
pythondev
help
lol
2017-11-06T12:53:55.000191
Winnifred
pythondev_help_Winnifred_2017-11-06T12:53:55.000191
1,509,972,835.000191
99,497
pythondev
help
conventions are a great thing on issues that don't really matter
2017-11-06T12:54:21.000434
Frieda
pythondev_help_Frieda_2017-11-06T12:54:21.000434
1,509,972,861.000434
99,498
pythondev
help
``` class Banana: def do_banana_stuff(banana): banana.do_another_stuff() banana = Banana() banana.do_banana_stuff() ```
2017-11-06T12:56:04.000154
Collette
pythondev_help_Collette_2017-11-06T12:56:04.000154
1,509,972,964.000154
99,499
pythondev
help
¯\_(ツ)_/¯
2017-11-06T12:56:06.000658
Collette
pythondev_help_Collette_2017-11-06T12:56:06.000658
1,509,972,966.000658
99,500
pythondev
help
`Banana.do_banana_stuff(banana)`
2017-11-06T12:56:23.000527
Collette
pythondev_help_Collette_2017-11-06T12:56:23.000527
1,509,972,983.000527
99,501
pythondev
help
`bannanaception`
2017-11-06T12:56:37.000117
Meg
pythondev_help_Meg_2017-11-06T12:56:37.000117
1,509,972,997.000117
99,502