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
hello
2019-02-04T06:07:09.773800
Carrie
pythondev_help_Carrie_2019-02-04T06:07:09.773800
1,549,260,429.7738
6,321
pythondev
help
can someone explain the code def stop(self): """Stop power thread""" if self.power_thread.alive: self.power_thread.stop()
2019-02-04T06:07:27.774300
Carrie
pythondev_help_Carrie_2019-02-04T06:07:27.774300
1,549,260,447.7743
6,322
pythondev
help
None
2019-02-04T06:07:42.774400
Carrie
pythondev_help_Carrie_2019-02-04T06:07:42.774400
1,549,260,462.7744
6,323
pythondev
help
What are you having trouble with?
2019-02-04T06:08:24.775200
Hiroko
pythondev_help_Hiroko_2019-02-04T06:08:24.775200
1,549,260,504.7752
6,324
pythondev
help
can you help?
2019-02-04T06:12:23.776300
Carrie
pythondev_help_Carrie_2019-02-04T06:12:23.776300
1,549,260,743.7763
6,325
pythondev
help
Why do we initiate the process that we define? How it works? We define stop and then we initiate stop. How it works? Am an amateur.
2019-02-04T06:15:11.776600
Carrie
pythondev_help_Carrie_2019-02-04T06:15:11.776600
1,549,260,911.7766
6,326
pythondev
help
kill it
2019-02-04T06:18:00.777000
Malika
pythondev_help_Malika_2019-02-04T06:18:00.777000
1,549,261,080.777
6,327
pythondev
help
thread.kill
2019-02-04T06:18:12.777200
Malika
pythondev_help_Malika_2019-02-04T06:18:12.777200
1,549,261,092.7772
6,328
pythondev
help
what?
2019-02-04T06:18:13.777400
Carrie
pythondev_help_Carrie_2019-02-04T06:18:13.777400
1,549,261,093.7774
6,329
pythondev
help
I am trying to understand the logic behind the code.
2019-02-04T06:18:27.777600
Carrie
pythondev_help_Carrie_2019-02-04T06:18:27.777600
1,549,261,107.7776
6,330
pythondev
help
Can you tell me in words what it does?
2019-02-04T06:18:35.777800
Carrie
pythondev_help_Carrie_2019-02-04T06:18:35.777800
1,549,261,115.7778
6,331
pythondev
help
you are creating a function which stops a tread from execution
2019-02-04T06:26:42.778000
Malika
pythondev_help_Malika_2019-02-04T06:26:42.778000
1,549,261,602.778
6,332
pythondev
help
I could not write something like this... def stop(self): """Stop power thread""" if self.power_thread.alive: self.power_thread.stopABC()
2019-02-04T06:28:32.778500
Carrie
pythondev_help_Carrie_2019-02-04T06:28:32.778500
1,549,261,712.7785
6,333
pythondev
help
both {stop} must be the same?
2019-02-04T06:28:57.779200
Carrie
pythondev_help_Carrie_2019-02-04T06:28:57.779200
1,549,261,737.7792
6,334
pythondev
help
i've defined `__str__` and `__repr__` in my classes to return string but when in jupyter it still shows as address on mem unless i do `print or str`. do you guys know what could be causing this?
2019-02-04T06:29:20.780100
Malka
pythondev_help_Malka_2019-02-04T06:29:20.780100
1,549,261,760.7801
6,335
pythondev
help
the stop in line 4 is a property of a thread you cannot change it to ABC or XYZ, the stop in the 1st line is just a function name that can be anything
2019-02-04T06:43:04.780300
Malika
pythondev_help_Malika_2019-02-04T06:43:04.780300
1,549,262,584.7803
6,336
pythondev
help
and how I can find how this property is defined? what process this property runs?
2019-02-04T06:44:24.780500
Carrie
pythondev_help_Carrie_2019-02-04T06:44:24.780500
1,549,262,664.7805
6,337
pythondev
help
thanks for the help!!!!
2019-02-04T06:44:28.780700
Carrie
pythondev_help_Carrie_2019-02-04T06:44:28.780700
1,549,262,668.7807
6,338
pythondev
help
{isn't it bad that both are called stop?}
2019-02-04T06:46:04.781000
Carrie
pythondev_help_Carrie_2019-02-04T06:46:04.781000
1,549,262,764.781
6,339
pythondev
help
just do dir(thread)
2019-02-04T06:51:41.781200
Malika
pythondev_help_Malika_2019-02-04T06:51:41.781200
1,549,263,101.7812
6,340
pythondev
help
and for the record just do dir(<func>) or help(<func>) and you will get all the properties of that <func>
2019-02-04T06:52:45.781400
Malika
pythondev_help_Malika_2019-02-04T06:52:45.781400
1,549,263,165.7814
6,341
pythondev
help
Am working on Xcode
2019-02-04T06:56:56.781600
Carrie
pythondev_help_Carrie_2019-02-04T06:56:56.781600
1,549,263,416.7816
6,342
pythondev
help
it is a python notebook correct
2019-02-04T06:57:18.781800
Malika
pythondev_help_Malika_2019-02-04T06:57:18.781800
1,549,263,438.7818
6,343
pythondev
help
it will work
2019-02-04T06:57:23.782000
Malika
pythondev_help_Malika_2019-02-04T06:57:23.782000
1,549,263,443.782
6,344
pythondev
help
I write it but does nothing. I am just supposed to write the dir(<... anywhere right?
2019-02-04T07:01:32.782200
Carrie
pythondev_help_Carrie_2019-02-04T07:01:32.782200
1,549,263,692.7822
6,345
pythondev
help
no consider that str is a func and you need to see what all it can do i.e. properties. so you do `dir(str)`
2019-02-04T07:02:49.782400
Malika
pythondev_help_Malika_2019-02-04T07:02:49.782400
1,549,263,769.7824
6,346
pythondev
help
ok got it. just wait to confirm please.
2019-02-04T07:03:06.782700
Carrie
pythondev_help_Carrie_2019-02-04T07:03:06.782700
1,549,263,786.7827
6,347
pythondev
help
thanks a lot!
2019-02-04T07:03:08.782900
Carrie
pythondev_help_Carrie_2019-02-04T07:03:08.782900
1,549,263,788.7829
6,348
pythondev
help
:blush:
2019-02-04T07:05:30.783100
Malika
pythondev_help_Malika_2019-02-04T07:05:30.783100
1,549,263,930.7831
6,349
pythondev
help
that's what shows up
2019-02-04T07:09:56.783300
Carrie
pythondev_help_Carrie_2019-02-04T07:09:56.783300
1,549,264,196.7833
6,350
pythondev
help
"No quick help"
2019-02-04T07:10:15.783500
Carrie
pythondev_help_Carrie_2019-02-04T07:10:15.783500
1,549,264,215.7835
6,351
pythondev
help
you can do that with option+click on any item!
2019-02-04T07:10:26.783700
Carrie
pythondev_help_Carrie_2019-02-04T07:10:26.783700
1,549,264,226.7837
6,352
pythondev
help
but doesn't have any help in it
2019-02-04T07:10:34.783900
Carrie
pythondev_help_Carrie_2019-02-04T07:10:34.783900
1,549,264,234.7839
6,353
pythondev
help
it wont have actual writing of any sort, it will just contain what all options you can have with that example str will have `str.replace`
2019-02-04T07:16:31.784100
Malika
pythondev_help_Malika_2019-02-04T07:16:31.784100
1,549,264,591.7841
6,354
pythondev
help
```
2019-02-04T07:17:10.784300
Malika
pythondev_help_Malika_2019-02-04T07:17:10.784300
1,549,264,630.7843
6,355
pythondev
help
``` dir(str) Out[37]: ['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '_...
2019-02-04T07:17:18.784500
Malika
pythondev_help_Malika_2019-02-04T07:17:18.784500
1,549,264,638.7845
6,356
pythondev
help
where do I write the dir(sir)?
2019-02-04T07:26:34.784800
Carrie
pythondev_help_Carrie_2019-02-04T07:26:34.784800
1,549,265,194.7848
6,357
pythondev
help
*str
2019-02-04T07:26:38.785000
Carrie
pythondev_help_Carrie_2019-02-04T07:26:38.785000
1,549,265,198.785
6,358
pythondev
help
to run it on Xcode?
2019-02-04T07:26:50.785200
Carrie
pythondev_help_Carrie_2019-02-04T07:26:50.785200
1,549,265,210.7852
6,359
pythondev
help
in any python interpretor
2019-02-04T07:29:18.785400
Malika
pythondev_help_Malika_2019-02-04T07:29:18.785400
1,549,265,358.7854
6,360
pythondev
help
example Jupyter or ipython
2019-02-04T07:29:41.785600
Malika
pythondev_help_Malika_2019-02-04T07:29:41.785600
1,549,265,381.7856
6,361
pythondev
help
or even in terminal
2019-02-04T07:29:51.785800
Malika
pythondev_help_Malika_2019-02-04T07:29:51.785800
1,549,265,391.7858
6,362
pythondev
help
console
2019-02-04T07:29:56.786000
Malika
pythondev_help_Malika_2019-02-04T07:29:56.786000
1,549,265,396.786
6,363
pythondev
help
just install python
2019-02-04T07:30:14.786200
Malika
pythondev_help_Malika_2019-02-04T07:30:14.786200
1,549,265,414.7862
6,364
pythondev
help
python is installed
2019-02-04T07:30:20.786400
Carrie
pythondev_help_Carrie_2019-02-04T07:30:20.786400
1,549,265,420.7864
6,365
pythondev
help
then workon python environment
2019-02-04T07:30:27.786600
Malika
pythondev_help_Malika_2019-02-04T07:30:27.786600
1,549,265,427.7866
6,366
pythondev
help
I can write on terminal qspectrumanalyzer and runs
2019-02-04T07:30:36.786800
Carrie
pythondev_help_Carrie_2019-02-04T07:30:36.786800
1,549,265,436.7868
6,367
pythondev
help
I am editing qspectrumanalyzer if you know it to add some functionality
2019-02-04T07:30:56.787000
Carrie
pythondev_help_Carrie_2019-02-04T07:30:56.787000
1,549,265,456.787
6,368
pythondev
help
on terminal if I writer
2019-02-04T07:31:38.787300
Carrie
pythondev_help_Carrie_2019-02-04T07:31:38.787300
1,549,265,498.7873
6,369
pythondev
help
dir(thread) it shows error
2019-02-04T07:31:43.787500
Carrie
pythondev_help_Carrie_2019-02-04T07:31:43.787500
1,549,265,503.7875
6,370
pythondev
help
open your normal terminal and just type `python` and enter
2019-02-04T07:31:49.787700
Malika
pythondev_help_Malika_2019-02-04T07:31:49.787700
1,549,265,509.7877
6,371
pythondev
help
did it
2019-02-04T07:32:34.788000
Carrie
pythondev_help_Carrie_2019-02-04T07:32:34.788000
1,549,265,554.788
6,372
pythondev
help
then?
2019-02-04T07:32:36.788200
Carrie
pythondev_help_Carrie_2019-02-04T07:32:36.788200
1,549,265,556.7882
6,373
pythondev
help
if python is installed then upon doing this the python interpretor will open
2019-02-04T07:32:37.788400
Malika
pythondev_help_Malika_2019-02-04T07:32:37.788400
1,549,265,557.7884
6,374
pythondev
help
it opened
2019-02-04T07:32:43.788600
Carrie
pythondev_help_Carrie_2019-02-04T07:32:43.788600
1,549,265,563.7886
6,375
pythondev
help
there type dir(str)
2019-02-04T07:32:49.788800
Malika
pythondev_help_Malika_2019-02-04T07:32:49.788800
1,549,265,569.7888
6,376
pythondev
help
it says no python documentation found
2019-02-04T07:33:21.789000
Carrie
pythondev_help_Carrie_2019-02-04T07:33:21.789000
1,549,265,601.789
6,377
pythondev
help
for dir(str) ?
2019-02-04T07:33:50.789200
Malika
pythondev_help_Malika_2019-02-04T07:33:50.789200
1,549,265,630.7892
6,378
pythondev
help
yes
2019-02-04T07:33:54.789400
Carrie
pythondev_help_Carrie_2019-02-04T07:33:54.789400
1,549,265,634.7894
6,379
pythondev
help
`help("__builtin__.print")`
2019-02-04T07:34:27.789600
Malika
pythondev_help_Malika_2019-02-04T07:34:27.789600
1,549,265,667.7896
6,380
pythondev
help
try this
2019-02-04T07:34:32.789800
Malika
pythondev_help_Malika_2019-02-04T07:34:32.789800
1,549,265,672.7898
6,381
pythondev
help
Help on built-in function print in __builtin__: __builtin__.print = print(...) print(value, ..., sep=' ', end='\n', file=sys.stdout) Prints the values to a stream, or to sys.stdout by default. Optional keyword arguments: file: a file-like object (stream); defaults to the current sys.stdout. sep: ...
2019-02-04T07:35:19.790000
Carrie
pythondev_help_Carrie_2019-02-04T07:35:19.790000
1,549,265,719.79
6,382
pythondev
help
that's what it said
2019-02-04T07:35:23.790200
Carrie
pythondev_help_Carrie_2019-02-04T07:35:23.790200
1,549,265,723.7902
6,383
pythondev
help
Yes this is the help message
2019-02-04T07:35:32.790400
Malika
pythondev_help_Malika_2019-02-04T07:35:32.790400
1,549,265,732.7904
6,384
pythondev
help
ok
2019-02-04T07:36:21.790700
Carrie
pythondev_help_Carrie_2019-02-04T07:36:21.790700
1,549,265,781.7907
6,385
pythondev
help
but now what?
2019-02-04T07:36:28.790900
Carrie
pythondev_help_Carrie_2019-02-04T07:36:28.790900
1,549,265,788.7909
6,386
pythondev
help
`help(__builtin__)`
2019-02-04T07:36:31.791100
Malika
pythondev_help_Malika_2019-02-04T07:36:31.791100
1,549,265,791.7911
6,387
pythondev
help
you can also try this
2019-02-04T07:36:35.791300
Malika
pythondev_help_Malika_2019-02-04T07:36:35.791300
1,549,265,795.7913
6,388
pythondev
help
to see all the built in python functionalities that are offered
2019-02-04T07:36:54.791600
Malika
pythondev_help_Malika_2019-02-04T07:36:54.791600
1,549,265,814.7916
6,389
pythondev
help
but why dir(str) doesn't work?
2019-02-04T07:37:08.791800
Carrie
pythondev_help_Carrie_2019-02-04T07:37:08.791800
1,549,265,828.7918
6,390
pythondev
help
I just want to find about this:
2019-02-04T07:37:37.792400
Carrie
pythondev_help_Carrie_2019-02-04T07:37:37.792400
1,549,265,857.7924
6,391
pythondev
help
def stop(self): """Stop power thread""" if self.power_thread.alive: self.power_thread.stopABC()
2019-02-04T07:37:48.792800
Carrie
pythondev_help_Carrie_2019-02-04T07:37:48.792800
1,549,265,868.7928
6,392
pythondev
help
Hello, i have some trouble with slice. I have a list that contain 10 elements, why if try this : print(myList[:999] it works ? Thanks !
2019-02-04T07:38:15.793300
Miguel
pythondev_help_Miguel_2019-02-04T07:38:15.793300
1,549,265,895.7933
6,393
pythondev
help
just do ``` a= os.fork() dir(a) ``` Here a is the thread
2019-02-04T07:38:32.793400
Malika
pythondev_help_Malika_2019-02-04T07:38:32.793400
1,549,265,912.7934
6,394
pythondev
help
ok and what this will do?
2019-02-04T07:39:21.793600
Carrie
pythondev_help_Carrie_2019-02-04T07:39:21.793600
1,549,265,961.7936
6,395
pythondev
help
I just want to find what's up with the thread process mate.
2019-02-04T07:39:33.794000
Carrie
pythondev_help_Carrie_2019-02-04T07:39:33.794000
1,549,265,973.794
6,396
pythondev
help
"and how I can find how this property is defined? what process this property runs?"
2019-02-04T07:39:52.794500
Carrie
pythondev_help_Carrie_2019-02-04T07:39:52.794500
1,549,265,992.7945
6,397
pythondev
help
in your interpretor do ``` import os a = os.fork() ```
2019-02-04T07:40:29.794700
Malika
pythondev_help_Malika_2019-02-04T07:40:29.794700
1,549,266,029.7947
6,398
pythondev
help
`dir(a)`
2019-02-04T07:40:45.795000
Malika
pythondev_help_Malika_2019-02-04T07:40:45.795000
1,549,266,045.795
6,399
pythondev
help
here `a` is similar to your `power_thread`
2019-02-04T07:41:17.795200
Malika
pythondev_help_Malika_2019-02-04T07:41:17.795200
1,549,266,077.7952
6,400
pythondev
help
Why wouldn't it work?
2019-02-04T07:41:38.795600
Waldo
pythondev_help_Waldo_2019-02-04T07:41:38.795600
1,549,266,098.7956
6,401
pythondev
help
you can also do help(a) for more info
2019-02-04T07:42:05.796200
Malika
pythondev_help_Malika_2019-02-04T07:42:05.796200
1,549,266,125.7962
6,402
pythondev
help
Ok sure you have 10 items in your list but lists can grow so if you had 999 items the above would work just the same as if you had 1 item in the list
2019-02-04T07:42:34.796700
Waldo
pythondev_help_Waldo_2019-02-04T07:42:34.796700
1,549,266,154.7967
6,403
pythondev
help
besides when you do that slice, you’re telling it to go from the 0-th index to 999
2019-02-04T07:52:15.797200
Hiroko
pythondev_help_Hiroko_2019-02-04T07:52:15.797200
1,549,266,735.7972
6,404
pythondev
help
doesn’t matter if 999 doesn’t exist
2019-02-04T07:52:25.797600
Hiroko
pythondev_help_Hiroko_2019-02-04T07:52:25.797600
1,549,266,745.7976
6,405
pythondev
help
when you ask for a slice with indices that don’t exist, you get an empty list back
2019-02-04T07:53:16.798000
Hiroko
pythondev_help_Hiroko_2019-02-04T07:53:16.798000
1,549,266,796.798
6,406
pythondev
help
```In [1]: t = [i for i in range(10)] In [2]: t[80:90] Out[2]: [] In [3]: t[:999] Out[3]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]```
2019-02-04T07:53:18.798200
Hiroko
pythondev_help_Hiroko_2019-02-04T07:53:18.798200
1,549,266,798.7982
6,407
pythondev
help
Has anyone here had the joys of using Magento APIs (version 2.1+) and automating reporting with python?
2019-02-04T07:56:41.799000
Waldo
pythondev_help_Waldo_2019-02-04T07:56:41.799000
1,549,267,001.799
6,408
pythondev
help
the php ecommerce system?
2019-02-04T07:58:43.799700
Hiroko
pythondev_help_Hiroko_2019-02-04T07:58:43.799700
1,549,267,123.7997
6,409
pythondev
help
Yup
2019-02-04T08:00:55.799900
Waldo
pythondev_help_Waldo_2019-02-04T08:00:55.799900
1,549,267,255.7999
6,410
pythondev
help
it shows error.
2019-02-04T08:03:15.800100
Carrie
pythondev_help_Carrie_2019-02-04T08:03:15.800100
1,549,267,395.8001
6,411
pythondev
help
wtf is going on...
2019-02-04T08:03:19.800300
Carrie
pythondev_help_Carrie_2019-02-04T08:03:19.800300
1,549,267,399.8003
6,412
pythondev
help
:confused:
2019-02-04T08:03:26.800500
Carrie
pythondev_help_Carrie_2019-02-04T08:03:26.800500
1,549,267,406.8005
6,413
pythondev
help
what kind of reporting are you looking for?
2019-02-04T08:13:54.800900
Hiroko
pythondev_help_Hiroko_2019-02-04T08:13:54.800900
1,549,268,034.8009
6,414
pythondev
help
and why python? isn’t there already something inside magento or php for this?
2019-02-04T08:14:07.801300
Hiroko
pythondev_help_Hiroko_2019-02-04T08:14:07.801300
1,549,268,047.8013
6,415
pythondev
help
There is some reporting within Magento, absolutely
2019-02-04T08:19:11.801700
Waldo
pythondev_help_Waldo_2019-02-04T08:19:11.801700
1,549,268,351.8017
6,416
pythondev
help
Issue is we want to pull reports from different tables (which have pretty decent API endpoints themselves) to combine order information, refunds, invoices and any copoun codes used. There is no real single API endpoint that combines all that information
2019-02-04T08:20:13.803000
Waldo
pythondev_help_Waldo_2019-02-04T08:20:13.803000
1,549,268,413.803
6,417
pythondev
help
gotcha. and you want to use python with this?
2019-02-04T08:20:44.803400
Hiroko
pythondev_help_Hiroko_2019-02-04T08:20:44.803400
1,549,268,444.8034
6,418
pythondev
help
what output format?
2019-02-04T08:20:55.803700
Hiroko
pythondev_help_Hiroko_2019-02-04T08:20:55.803700
1,549,268,455.8037
6,419
pythondev
help
Ideally as the scripts are then being run via cronjobs
2019-02-04T08:21:05.804000
Waldo
pythondev_help_Waldo_2019-02-04T08:21:05.804000
1,549,268,465.804
6,420