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
<@Concha> and Long is a large integer
2018-02-21T08:35:13.000295
Kimberli
pythondev_help_Kimberli_2018-02-21T08:35:13.000295
1,519,202,113.000295
35,124
pythondev
help
It's not very considerate of them to just name it "long"...
2018-02-21T08:35:47.000431
Barney
pythondev_help_Barney_2018-02-21T08:35:47.000431
1,519,202,147.000431
35,125
pythondev
help
is it 8 bytes or 4?
2018-02-21T08:35:51.000192
Barney
pythondev_help_Barney_2018-02-21T08:35:51.000192
1,519,202,151.000192
35,126
pythondev
help
I think C spec says that long is at least 4 bytes, but there's no upper limit
2018-02-21T08:36:12.000342
Barney
pythondev_help_Barney_2018-02-21T08:36:12.000342
1,519,202,172.000342
35,127
pythondev
help
well, plain ints are implemented using `long` in C, which gives at least 32 bits precision
2018-02-21T08:36:40.000169
Floy
pythondev_help_Floy_2018-02-21T08:36:40.000169
1,519,202,200.000169
35,128
pythondev
help
long in python have unlimited precision
2018-02-21T08:36:57.000015
Floy
pythondev_help_Floy_2018-02-21T08:36:57.000015
1,519,202,217.000015
35,129
pythondev
help
hmmm...good to know :thinking_face:
2018-02-21T08:37:17.000506
Kimberli
pythondev_help_Kimberli_2018-02-21T08:37:17.000506
1,519,202,237.000506
35,130
pythondev
help
<https://docs.python.org/2/library/stdtypes.html#typesnumeric>
2018-02-21T08:37:24.000314
Floy
pythondev_help_Floy_2018-02-21T08:37:24.000314
1,519,202,244.000314
35,131
pythondev
help
why python2? :sad_face:
2018-02-21T08:37:36.000322
Barney
pythondev_help_Barney_2018-02-21T08:37:36.000322
1,519,202,256.000322
35,132
pythondev
help
where it says 'byte' it should be 'bytes' so the PLU code is 8 bytes, the description is 25 (I don't now why it says 24+1)
2018-02-21T08:37:57.000100
Concha
pythondev_help_Concha_2018-02-21T08:37:57.000100
1,519,202,277.0001
35,133
pythondev
help
they count NUL-byte separately?
2018-02-21T08:38:24.000370
Barney
pythondev_help_Barney_2018-02-21T08:38:24.000370
1,519,202,304.00037
35,134
pythondev
help
hinting that a description is 24 readable chars at the max, and one NUL
2018-02-21T08:38:46.000522
Barney
pythondev_help_Barney_2018-02-21T08:38:46.000522
1,519,202,326.000522
35,135
pythondev
help
it's ok, there's a dropdown. :slightly_smiling_face:
2018-02-21T08:41:30.000334
Concha
pythondev_help_Concha_2018-02-21T08:41:30.000334
1,519,202,490.000334
35,136
pythondev
help
:slightly_less_sad_face:
2018-02-21T08:42:06.000054
Barney
pythondev_help_Barney_2018-02-21T08:42:06.000054
1,519,202,526.000054
35,137
pythondev
help
I’m on py2 at work, 3 at home
2018-02-21T08:42:30.000336
Floy
pythondev_help_Floy_2018-02-21T08:42:30.000336
1,519,202,550.000336
35,138
pythondev
help
¯\_(ツ)_/¯
2018-02-21T08:42:36.000301
Floy
pythondev_help_Floy_2018-02-21T08:42:36.000301
1,519,202,556.000301
35,139
pythondev
help
so like a superhero then
2018-02-21T08:42:59.000374
Concha
pythondev_help_Concha_2018-02-21T08:42:59.000374
1,519,202,579.000374
35,140
pythondev
help
ha
2018-02-21T08:43:19.000489
Floy
pythondev_help_Floy_2018-02-21T08:43:19.000489
1,519,202,599.000489
35,141
pythondev
help
hopefully going to 3 by August
2018-02-21T08:43:43.000141
Floy
pythondev_help_Floy_2018-02-21T08:43:43.000141
1,519,202,623.000141
35,142
pythondev
help
I don't remember Iron Man using both JARVIS 2 and 3
2018-02-21T08:43:47.000481
Barney
pythondev_help_Barney_2018-02-21T08:43:47.000481
1,519,202,627.000481
35,143
pythondev
help
mild mannered python 2 programmer by day
2018-02-21T08:43:58.000483
Concha
pythondev_help_Concha_2018-02-21T08:43:58.000483
1,519,202,638.000483
35,144
pythondev
help
etc.
2018-02-21T08:44:10.000610
Concha
pythondev_help_Concha_2018-02-21T08:44:10.000610
1,519,202,650.00061
35,145
pythondev
help
so basically for my purposes it's int
2018-02-21T08:44:23.000477
Concha
pythondev_help_Concha_2018-02-21T08:44:23.000477
1,519,202,663.000477
35,146
pythondev
help
yeah it's like long disappears in 3.6. I don't see it explicitly stated, but if you change the dropdown on the docs from 2 to 3, there's no mention of long
2018-02-21T08:49:47.000453
Concha
pythondev_help_Concha_2018-02-21T08:49:47.000453
1,519,202,987.000453
35,147
pythondev
help
there's no long in python 3
2018-02-21T08:50:25.000189
Barney
pythondev_help_Barney_2018-02-21T08:50:25.000189
1,519,203,025.000189
35,148
pythondev
help
ints are ints
2018-02-21T08:50:29.000263
Barney
pythondev_help_Barney_2018-02-21T08:50:29.000263
1,519,203,029.000263
35,149
pythondev
help
yeah
2018-02-21T08:50:35.000462
Concha
pythondev_help_Concha_2018-02-21T08:50:35.000462
1,519,203,035.000462
35,150
pythondev
help
Thanks
2018-02-21T08:58:08.000257
Dierdre
pythondev_help_Dierdre_2018-02-21T08:58:08.000257
1,519,203,488.000257
35,151
pythondev
help
hi guys, I’d like to get your opinion on this snippet of code. I have a datasource with pymongo, and I need to query it for some values and populate a JSON with those values. `datasource` is the instance of pymongo I use to query the db. My question is related more on the security and reliability aspects of the code....
2018-02-21T09:00:25.000532
Maya
pythondev_help_Maya_2018-02-21T09:00:25.000532
1,519,203,625.000532
35,152
pythondev
help
oh btw thank you everyone. ::throws dollar bills everywhere::
2018-02-21T09:01:06.000654
Concha
pythondev_help_Concha_2018-02-21T09:01:06.000654
1,519,203,666.000654
35,153
pythondev
help
:smile:
2018-02-21T09:01:17.000088
Concha
pythondev_help_Concha_2018-02-21T09:01:17.000088
1,519,203,677.000088
35,154
pythondev
help
:thumbsup:
2018-02-21T09:01:44.000564
Floy
pythondev_help_Floy_2018-02-21T09:01:44.000564
1,519,203,704.000564
35,155
pythondev
help
you got it!
2018-02-21T09:01:57.000518
Kimberli
pythondev_help_Kimberli_2018-02-21T09:01:57.000518
1,519,203,717.000518
35,156
pythondev
help
btw, we use :taco: here. you get five per day to give out
2018-02-21T09:01:58.000017
Floy
pythondev_help_Floy_2018-02-21T09:01:58.000017
1,519,203,718.000017
35,157
pythondev
help
just use `@username :taco:`
2018-02-21T09:02:09.000236
Floy
pythondev_help_Floy_2018-02-21T09:02:09.000236
1,519,203,729.000236
35,158
pythondev
help
:smile:
2018-02-21T09:02:24.000683
Floy
pythondev_help_Floy_2018-02-21T09:02:24.000683
1,519,203,744.000683
35,159
pythondev
help
<@Maya> to clarify...are you saying you're running a query within your code and assigning the result to a variable?
2018-02-21T09:02:45.000344
Kimberli
pythondev_help_Kimberli_2018-02-21T09:02:45.000344
1,519,203,765.000344
35,160
pythondev
help
I am creating a JSON assigning values to keys
2018-02-21T09:03:15.000080
Maya
pythondev_help_Maya_2018-02-21T09:03:15.000080
1,519,203,795.00008
35,161
pythondev
help
ha. we are having tacos tonight. oddly enough. (my wife wanted taco tuesday. i had to remind her that although alliteration is nice, she is not home tuesday nights, so it's taco wednesday). anyway, back to topic...
2018-02-21T09:03:28.000002
Concha
pythondev_help_Concha_2018-02-21T09:03:28.000002
1,519,203,808.000002
35,162
pythondev
help
where values are the results of queries
2018-02-21T09:03:32.000372
Maya
pythondev_help_Maya_2018-02-21T09:03:32.000372
1,519,203,812.000372
35,163
pythondev
help
just to get your opinion on the safety of that piece of code
2018-02-21T09:04:27.000118
Maya
pythondev_help_Maya_2018-02-21T09:04:27.000118
1,519,203,867.000118
35,164
pythondev
help
well personally if you're only performing a count then I don't see much wrong with that
2018-02-21T09:04:27.000284
Kimberli
pythondev_help_Kimberli_2018-02-21T09:04:27.000284
1,519,203,867.000284
35,165
pythondev
help
how are you gaining access?
2018-02-21T09:04:46.000163
Kimberli
pythondev_help_Kimberli_2018-02-21T09:04:46.000163
1,519,203,886.000163
35,166
pythondev
help
are your creds in the code?
2018-02-21T09:04:59.000459
Kimberli
pythondev_help_Kimberli_2018-02-21T09:04:59.000459
1,519,203,899.000459
35,167
pythondev
help
no, no personal information at all.
2018-02-21T09:05:49.000370
Maya
pythondev_help_Maya_2018-02-21T09:05:49.000370
1,519,203,949.00037
35,168
pythondev
help
what if the db crashes
2018-02-21T09:06:02.000063
Maya
pythondev_help_Maya_2018-02-21T09:06:02.000063
1,519,203,962.000063
35,169
pythondev
help
or it is not reachable
2018-02-21T09:06:08.000302
Maya
pythondev_help_Maya_2018-02-21T09:06:08.000302
1,519,203,968.000302
35,170
pythondev
help
so pymongo won’t be able to perform the queris
2018-02-21T09:06:25.000350
Maya
pythondev_help_Maya_2018-02-21T09:06:25.000350
1,519,203,985.00035
35,171
pythondev
help
that has more to do with the size of the query rather than is security
2018-02-21T09:06:49.000049
Kimberli
pythondev_help_Kimberli_2018-02-21T09:06:49.000049
1,519,204,009.000049
35,172
pythondev
help
then it should raise an exception for you to handle
2018-02-21T09:06:49.000290
Floy
pythondev_help_Floy_2018-02-21T09:06:49.000290
1,519,204,009.00029
35,173
pythondev
help
right...you can put limits on the size of your queries
2018-02-21T09:07:13.000442
Kimberli
pythondev_help_Kimberli_2018-02-21T09:07:13.000442
1,519,204,033.000442
35,174
pythondev
help
or just use a message queuer
2018-02-21T09:07:41.000530
Kimberli
pythondev_help_Kimberli_2018-02-21T09:07:41.000530
1,519,204,061.00053
35,175
pythondev
help
yes, is not related to any kind of data security. the kind of data I handle are just temperature or something like that
2018-02-21T09:07:51.000450
Maya
pythondev_help_Maya_2018-02-21T09:07:51.000450
1,519,204,071.00045
35,176
pythondev
help
also make your mongoDB has the correct indexes for your queries to prevent scatter gathers and unnecessary performance issues
2018-02-21T09:08:41.000227
Kimberli
pythondev_help_Kimberli_2018-02-21T09:08:41.000227
1,519,204,121.000227
35,177
pythondev
help
Agree
2018-02-21T09:09:16.000703
Maya
pythondev_help_Maya_2018-02-21T09:09:16.000703
1,519,204,156.000703
35,178
pythondev
help
thanks a lot for your opinions
2018-02-21T09:09:28.000402
Maya
pythondev_help_Maya_2018-02-21T09:09:28.000402
1,519,204,168.000402
35,179
pythondev
help
you got it!
2018-02-21T09:09:34.000370
Kimberli
pythondev_help_Kimberli_2018-02-21T09:09:34.000370
1,519,204,174.00037
35,180
pythondev
help
I see seleinum has removed the phantomjs headless browser. What should I use instead
2018-02-21T11:31:32.000097
Milo
pythondev_help_Milo_2018-02-21T11:31:32.000097
1,519,212,692.000097
35,181
pythondev
help
chrome
2018-02-21T11:33:14.000126
Floy
pythondev_help_Floy_2018-02-21T11:33:14.000126
1,519,212,794.000126
35,182
pythondev
help
<@Milo> I use firefox or chrome in a headless X with `xvfbwrapper`
2018-02-21T11:33:42.000729
Huong
pythondev_help_Huong_2018-02-21T11:33:42.000729
1,519,212,822.000729
35,183
pythondev
help
TIL - docstrings have PEPs that I never realized had pretty strict guidlines.
2018-02-21T11:33:50.000499
Reynalda
pythondev_help_Reynalda_2018-02-21T11:33:50.000499
1,519,212,830.000499
35,184
pythondev
help
Of course if you want to see it, don't use that
2018-02-21T11:33:59.000487
Huong
pythondev_help_Huong_2018-02-21T11:33:59.000487
1,519,212,839.000487
35,185
pythondev
help
I like Chrome personally, but had slightly more issues using it in test than FF
2018-02-21T11:34:24.000133
Huong
pythondev_help_Huong_2018-02-21T11:34:24.000133
1,519,212,864.000133
35,186
pythondev
help
It has been FF with geckodriver for me for sometime
2018-02-21T11:34:31.000028
Huong
pythondev_help_Huong_2018-02-21T11:34:31.000028
1,519,212,871.000028
35,187
pythondev
help
so would I simply use `webdriver.FireFox()`
2018-02-21T11:36:25.000513
Milo
pythondev_help_Milo_2018-02-21T11:36:25.000513
1,519,212,985.000513
35,188
pythondev
help
I only hit the sites 4 times a day so makes sense I guess?
2018-02-21T11:36:54.000550
Milo
pythondev_help_Milo_2018-02-21T11:36:54.000550
1,519,213,014.00055
35,189
pythondev
help
Hey guys. How can I write a program that controls another program. For example a web browser or an .exe program? Basically mimics user input. I want to write an ML application for a process simulation program to optimize settings.
2018-02-21T11:42:14.000031
Billy
pythondev_help_Billy_2018-02-21T11:42:14.000031
1,519,213,334.000031
35,190
pythondev
help
I'm looking for a nudge in the right direction. :slightly_smiling_face:
2018-02-21T11:42:37.000273
Billy
pythondev_help_Billy_2018-02-21T11:42:37.000273
1,519,213,357.000273
35,191
pythondev
help
for python, look in robot framework
2018-02-21T11:42:38.000530
Floy
pythondev_help_Floy_2018-02-21T11:42:38.000530
1,519,213,358.00053
35,192
pythondev
help
Thanks <@Floy> :taco:
2018-02-21T11:42:53.000115
Billy
pythondev_help_Billy_2018-02-21T11:42:53.000115
1,519,213,373.000115
35,193
pythondev
help
<@Milo> Yeah, `webdriver.FireFox()` and you need `geckodriver` <https://github.com/mozilla/geckodriver/>
2018-02-21T11:45:12.000838
Huong
pythondev_help_Huong_2018-02-21T11:45:12.000838
1,519,213,512.000838
35,194
pythondev
help
how do i add a custom class decorator?
2018-02-21T11:53:20.000280
Felisa
pythondev_help_Felisa_2018-02-21T11:53:20.000280
1,519,214,000.00028
35,195
pythondev
help
``` 3 class UserRoute(Resource): 4 method_decorators = [api_auth.authenticate_token] ```
2018-02-21T12:12:58.000308
Elisha
pythondev_help_Elisha_2018-02-21T12:12:58.000308
1,519,215,178.000308
35,196
pythondev
help
the `method_decorators` line i believe
2018-02-21T12:13:12.000028
Elisha
pythondev_help_Elisha_2018-02-21T12:13:12.000028
1,519,215,192.000028
35,197
pythondev
help
hi guys, I feel like a am not fully understanding how the io.BytesIO and garbage collection works in Python 3.6.3 I have a toy example with `memory_profiler`: ``` from memory_profiler import profile import io @profile def _test(): stream = open("test.jpeg", 'rb') data = io.BytesIO(stream.read()) stream = N...
2018-02-21T12:13:35.000559
Lesley
pythondev_help_Lesley_2018-02-21T12:13:35.000559
1,519,215,215.000559
35,198
pythondev
help
in this case ive `import api_auth`
2018-02-21T12:13:36.000888
Elisha
pythondev_help_Elisha_2018-02-21T12:13:36.000888
1,519,215,216.000888
35,199
pythondev
help
basically i want to use the decorator to add a class to a list
2018-02-21T12:26:39.000157
Felisa
pythondev_help_Felisa_2018-02-21T12:26:39.000157
1,519,215,999.000157
35,200
pythondev
help
It works for the abstract class, which i've decorated
2018-02-21T12:28:21.000484
Felisa
pythondev_help_Felisa_2018-02-21T12:28:21.000484
1,519,216,101.000484
35,201
pythondev
help
But the subclass becomes a string :neutral_face:
2018-02-21T12:28:29.000678
Felisa
pythondev_help_Felisa_2018-02-21T12:28:29.000678
1,519,216,109.000678
35,202
pythondev
help
hmm wierd
2018-02-21T12:32:21.000032
Elisha
pythondev_help_Elisha_2018-02-21T12:32:21.000032
1,519,216,341.000032
35,203
pythondev
help
I'm still in learning/hacking mode with python unfortunately, I only found out about `method_decorator` because I wanted to run the same authentication method on every API route
2018-02-21T12:33:05.000189
Elisha
pythondev_help_Elisha_2018-02-21T12:33:05.000189
1,519,216,385.000189
35,204
pythondev
help
even then im not 100% sure how it works or what package it came from, I'm just smashing things together
2018-02-21T12:33:35.000272
Elisha
pythondev_help_Elisha_2018-02-21T12:33:35.000272
1,519,216,415.000272
35,205
pythondev
help
I've just created a new virtualenv specifying the base prefix. `virtualenv --python=S:\python\python.exe env` .virtualenv is telling me that it's used the correct python base, however it looks like loads of the Lib packages are still missing.
2018-02-21T12:45:30.000051
Porsha
pythondev_help_Porsha_2018-02-21T12:45:30.000051
1,519,217,130.000051
35,206
pythondev
help
from `virtualenv --help` =&gt; ```The default is the interpreter that virtualenv was installed with (s:\python\python.exe)```
2018-02-21T12:48:52.000182
Porsha
pythondev_help_Porsha_2018-02-21T12:48:52.000182
1,519,217,332.000182
35,207
pythondev
help
ok <@Porsha> so what’s the problem?
2018-02-21T13:28:15.000409
Floy
pythondev_help_Floy_2018-02-21T13:28:15.000409
1,519,219,695.000409
35,208
pythondev
help
you have your virtualenv, which contains the basic libs of the python install
2018-02-21T13:28:34.000293
Floy
pythondev_help_Floy_2018-02-21T13:28:34.000293
1,519,219,714.000293
35,209
pythondev
help
eg, isolated from everythign else on your ssystem
2018-02-21T13:28:45.000771
Floy
pythondev_help_Floy_2018-02-21T13:28:45.000771
1,519,219,725.000771
35,210
pythondev
help
time for you to activate the env and install packages
2018-02-21T13:28:57.000531
Floy
pythondev_help_Floy_2018-02-21T13:28:57.000531
1,519,219,737.000531
35,211
pythondev
help
the virtualenv Lib is missing package directories such as asyncio, json etc. Only about 1/3 of the packages are in the env
2018-02-21T13:31:47.000229
Porsha
pythondev_help_Porsha_2018-02-21T13:31:47.000229
1,519,219,907.000229
35,212
pythondev
help
Happy to be corrected if I'm being stupid
2018-02-21T13:32:18.000475
Porsha
pythondev_help_Porsha_2018-02-21T13:32:18.000475
1,519,219,938.000475
35,213
pythondev
help
I assumed the new virtualenv would contain all the same packages as installed in the base python specified
2018-02-21T13:32:58.000218
Porsha
pythondev_help_Porsha_2018-02-21T13:32:58.000218
1,519,219,978.000218
35,214
pythondev
help
IIRC it includes everything from the base install of the python interpreter you’re using. doesn’t include stuff you’ve installed with pip
2018-02-21T13:36:00.000204
Floy
pythondev_help_Floy_2018-02-21T13:36:00.000204
1,519,220,160.000204
35,215
pythondev
help
activate the env, start a shell session. `import json` &lt;-- does that throw any errors? what about `json.__path__`?
2018-02-21T13:37:02.000320
Floy
pythondev_help_Floy_2018-02-21T13:37:02.000320
1,519,220,222.00032
35,216
pythondev
help
```In [1]: import json In [2]: json.__path__ Out[2]: ['/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json']```
2018-02-21T13:37:28.000306
Floy
pythondev_help_Floy_2018-02-21T13:37:28.000306
1,519,220,248.000306
35,217
pythondev
help
`json.__path__` points to the base install
2018-02-21T13:47:15.000529
Porsha
pythondev_help_Porsha_2018-02-21T13:47:15.000529
1,519,220,835.000529
35,218
pythondev
help
`['c:\\users\\julian nash\\python36\\Lib\\json']`
2018-02-21T13:47:56.000238
Porsha
pythondev_help_Porsha_2018-02-21T13:47:56.000238
1,519,220,876.000238
35,219
pythondev
help
I guess I’m still not entirely clear as to the problem you’re encountering?
2018-02-21T13:48:02.000648
Floy
pythondev_help_Floy_2018-02-21T13:48:02.000648
1,519,220,882.000648
35,220
pythondev
help
I know you’re setting up a virtualenv
2018-02-21T13:48:12.000752
Floy
pythondev_help_Floy_2018-02-21T13:48:12.000752
1,519,220,892.000752
35,221
pythondev
help
and that you can activate it, but you’re wondering about the lack of files in the env directory?
2018-02-21T13:48:30.000747
Floy
pythondev_help_Floy_2018-02-21T13:48:30.000747
1,519,220,910.000747
35,222
pythondev
help
when I create a new virtualenv it's missing loads of standard library modules
2018-02-21T13:49:20.000389
Porsha
pythondev_help_Porsha_2018-02-21T13:49:20.000389
1,519,220,960.000389
35,223