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
Which makes it more frustrating
2018-01-25T13:04:44.000359
Cori
pythondev_help_Cori_2018-01-25T13:04:44.000359
1,516,885,484.000359
31,124
pythondev
help
So I'm not using the decorator
2018-01-25T13:04:58.000794
Cori
pythondev_help_Cori_2018-01-25T13:04:58.000794
1,516,885,498.000794
31,125
pythondev
help
I'm using it in setup
2018-01-25T13:05:05.000454
Cori
pythondev_help_Cori_2018-01-25T13:05:05.000454
1,516,885,505.000454
31,126
pythondev
help
So here I used it as a decorator with pytest
2018-01-25T13:05:25.000221
Sadye
pythondev_help_Sadye_2018-01-25T13:05:25.000221
1,516,885,525.000221
31,127
pythondev
help
I remember there was an issue with mock in setup
2018-01-25T13:06:01.000260
Sadye
pythondev_help_Sadye_2018-01-25T13:06:01.000260
1,516,885,561.00026
31,128
pythondev
help
E.g. mock exists on setup time, but it doesn't work in the test itself
2018-01-25T13:06:24.000224
Sadye
pythondev_help_Sadye_2018-01-25T13:06:24.000224
1,516,885,584.000224
31,129
pythondev
help
if I remember this issue correctly
2018-01-25T13:06:33.000118
Sadye
pythondev_help_Sadye_2018-01-25T13:06:33.000118
1,516,885,593.000118
31,130
pythondev
help
Worked for me before
2018-01-25T13:07:00.000329
Cori
pythondev_help_Cori_2018-01-25T13:07:00.000329
1,516,885,620.000329
31,131
pythondev
help
you have to start a patch in setup
2018-01-25T13:07:31.000439
Zack
pythondev_help_Zack_2018-01-25T13:07:31.000439
1,516,885,651.000439
31,132
pythondev
help
I'll need to find an example before
2018-01-25T13:07:39.000091
Cori
pythondev_help_Cori_2018-01-25T13:07:39.000091
1,516,885,659.000091
31,133
pythondev
help
I start it
2018-01-25T13:07:41.000304
Cori
pythondev_help_Cori_2018-01-25T13:07:41.000304
1,516,885,661.000304
31,134
pythondev
help
ah, hmm
2018-01-25T13:08:28.000715
Zack
pythondev_help_Zack_2018-01-25T13:08:28.000715
1,516,885,708.000715
31,135
pythondev
help
got a weird error
2018-01-25T13:34:54.000573
Pennie
pythondev_help_Pennie_2018-01-25T13:34:54.000573
1,516,887,294.000573
31,136
pythondev
help
```[Errno 2] No such file or directory: 'fig241-150-24-24.png' ```
2018-01-25T13:35:07.000569
Pennie
pythondev_help_Pennie_2018-01-25T13:35:07.000569
1,516,887,307.000569
31,137
pythondev
help
put there is such file he list it :stuck_out_tongue:
2018-01-25T13:35:22.000968
Pennie
pythondev_help_Pennie_2018-01-25T13:35:22.000968
1,516,887,322.000968
31,138
pythondev
help
you need to provide the full path :slightly_smiling_face:
2018-01-25T13:35:29.000561
Micki
pythondev_help_Micki_2018-01-25T13:35:29.000561
1,516,887,329.000561
31,139
pythondev
help
ho I see thanks !
2018-01-25T13:35:39.000610
Pennie
pythondev_help_Pennie_2018-01-25T13:35:39.000610
1,516,887,339.00061
31,140
pythondev
help
otherwise it look in the current directory
2018-01-25T13:35:41.000064
Micki
pythondev_help_Micki_2018-01-25T13:35:41.000064
1,516,887,341.000064
31,141
pythondev
help
like this
2018-01-25T13:36:40.000116
Pennie
pythondev_help_Pennie_2018-01-25T13:36:40.000116
1,516,887,400.000116
31,142
pythondev
help
```for i in range (1,41): a = Path + str(i) print(a) for x in range (1, 9): b = os.listdir(path = a + Path2 + str(x)) for i in range (1,242): os.remove( b +'fig241-150-24-24.png') ```
2018-01-25T13:36:44.000298
Pennie
pythondev_help_Pennie_2018-01-25T13:36:44.000298
1,516,887,404.000298
31,143
pythondev
help
what’s the role of the `range(1,242)` iterator here?
2018-01-25T13:39:14.000054
Zack
pythondev_help_Zack_2018-01-25T13:39:14.000054
1,516,887,554.000054
31,144
pythondev
help
got 242 files in the last folder
2018-01-25T13:40:25.000571
Pennie
pythondev_help_Pennie_2018-01-25T13:40:25.000571
1,516,887,625.000571
31,145
pythondev
help
not necessary?
2018-01-25T13:40:38.000766
Pennie
pythondev_help_Pennie_2018-01-25T13:40:38.000766
1,516,887,638.000766
31,146
pythondev
help
hard to say, but if the filename is hardcoded and the folder is coming from above it, probably not
2018-01-25T13:41:16.000562
Zack
pythondev_help_Zack_2018-01-25T13:41:16.000562
1,516,887,676.000562
31,147
pythondev
help
241
2018-01-25T13:41:18.000754
Pennie
pythondev_help_Pennie_2018-01-25T13:41:18.000754
1,516,887,678.000754
31,148
pythondev
help
sry
2018-01-25T13:41:19.000289
Pennie
pythondev_help_Pennie_2018-01-25T13:41:19.000289
1,516,887,679.000289
31,149
pythondev
help
also you’ll have trouble there with the fact that result of `os.listdir` is a list
2018-01-25T13:41:35.000604
Zack
pythondev_help_Zack_2018-01-25T13:41:35.000604
1,516,887,695.000604
31,150
pythondev
help
of all the items in the directory you gave it
2018-01-25T13:41:46.000872
Zack
pythondev_help_Zack_2018-01-25T13:41:46.000872
1,516,887,706.000872
31,151
pythondev
help
so you are basically saying `os.remove(['some', 'stuff', 'in', 'the', 'directory'] + 'fig241-150-24-24.png')` which doesn’t work
2018-01-25T13:42:42.000267
Zack
pythondev_help_Zack_2018-01-25T13:42:42.000267
1,516,887,762.000267
31,152
pythondev
help
what tools do you guys use to auto-generate api docs other than something like swagger. sphinx?
2018-01-25T13:42:50.000803
Heriberto
pythondev_help_Heriberto_2018-01-25T13:42:50.000803
1,516,887,770.000803
31,153
pythondev
help
Irly have to go now I'll come back later to discuss :stuck_out_tongue:
2018-01-25T13:43:10.000983
Pennie
pythondev_help_Pennie_2018-01-25T13:43:10.000983
1,516,887,790.000983
31,154
pythondev
help
We use standard jsonschema with <https://github.com/lbovet/docson> and some custo I made
2018-01-25T13:43:46.000496
Micki
pythondev_help_Micki_2018-01-25T13:43:46.000496
1,516,887,826.000496
31,155
pythondev
help
ok cool. looking.
2018-01-25T13:44:15.000100
Heriberto
pythondev_help_Heriberto_2018-01-25T13:44:15.000100
1,516,887,855.0001
31,156
pythondev
help
we tried swagger but it was too simple
2018-01-25T13:44:27.000282
Micki
pythondev_help_Micki_2018-01-25T13:44:27.000282
1,516,887,867.000282
31,157
pythondev
help
if falls of quickly if you have deep nested payloads
2018-01-25T13:44:49.000297
Micki
pythondev_help_Micki_2018-01-25T13:44:49.000297
1,516,887,889.000297
31,158
pythondev
help
but it looks create for simple APIs
2018-01-25T13:45:09.000518
Micki
pythondev_help_Micki_2018-01-25T13:45:09.000518
1,516,887,909.000518
31,159
pythondev
help
yeah that’s my issue. which is why it sucks that its been adopted as the “standard” way of describing APIs
2018-01-25T13:45:37.000062
Zack
pythondev_help_Zack_2018-01-25T13:45:37.000062
1,516,887,937.000062
31,160
pythondev
help
i also just saw pdoc which looks neat but seems fairly simple too
2018-01-25T13:45:39.000885
Heriberto
pythondev_help_Heriberto_2018-01-25T13:45:39.000885
1,516,887,939.000885
31,161
pythondev
help
we also have some recursive payload that crashed swagger
2018-01-25T13:46:21.000090
Micki
pythondev_help_Micki_2018-01-25T13:46:21.000090
1,516,887,981.00009
31,162
pythondev
help
looks like docson hasnt been updated in a long time
2018-01-25T13:47:08.000071
Heriberto
pythondev_help_Heriberto_2018-01-25T13:47:08.000071
1,516,888,028.000071
31,163
pythondev
help
ah yeah looks like it
2018-01-25T13:47:46.000499
Micki
pythondev_help_Micki_2018-01-25T13:47:46.000499
1,516,888,066.000499
31,164
pythondev
help
well if you find something good hit me up :slightly_smiling_face:
2018-01-25T13:47:54.000056
Micki
pythondev_help_Micki_2018-01-25T13:47:54.000056
1,516,888,074.000056
31,165
pythondev
help
<https://github.com/BurntSushi/pdoc>
2018-01-25T13:53:57.000508
Heriberto
pythondev_help_Heriberto_2018-01-25T13:53:57.000508
1,516,888,437.000508
31,166
pythondev
help
I’ve been looking at <https://apispec.readthedocs.io/en/latest/index.html>
2018-01-25T13:57:39.000082
Zack
pythondev_help_Zack_2018-01-25T13:57:39.000082
1,516,888,659.000082
31,167
pythondev
help
yea but thats essentially swagger isnt it?
2018-01-25T13:58:10.000223
Heriberto
pythondev_help_Heriberto_2018-01-25T13:58:10.000223
1,516,888,690.000223
31,168
pythondev
help
yeah, it handles that end of things. are you looking more for the user-friendly side of things?
2018-01-25T13:58:47.000287
Zack
pythondev_help_Zack_2018-01-25T13:58:47.000287
1,516,888,727.000287
31,169
pythondev
help
or “human-friendly” I guess I should say?
2018-01-25T13:59:01.000198
Zack
pythondev_help_Zack_2018-01-25T13:59:01.000198
1,516,888,741.000198
31,170
pythondev
help
something other devs and look at for docs. so it should be human friendly in that way
2018-01-25T13:59:21.000700
Heriberto
pythondev_help_Heriberto_2018-01-25T13:59:21.000700
1,516,888,761.0007
31,171
pythondev
help
im not thinking end user docs. thats different
2018-01-25T13:59:51.000160
Heriberto
pythondev_help_Heriberto_2018-01-25T13:59:51.000160
1,516,888,791.00016
31,172
pythondev
help
so my preference there is generally to have something that can allow people to browse the generated spec, like see what arguments it takes, the endpoints, short descriptions, etc.
2018-01-25T14:00:08.000563
Zack
pythondev_help_Zack_2018-01-25T14:00:08.000563
1,516,888,808.000563
31,173
pythondev
help
yea.
2018-01-25T14:00:25.000182
Heriberto
pythondev_help_Heriberto_2018-01-25T14:00:25.000182
1,516,888,825.000182
31,174
pythondev
help
and then other than that just handwrite out some docs describing how to use it, and linking to parts of that generated spec
2018-01-25T14:00:26.000012
Zack
pythondev_help_Zack_2018-01-25T14:00:26.000012
1,516,888,826.000012
31,175
pythondev
help
like swagger ui. lol
2018-01-25T14:00:29.000285
Heriberto
pythondev_help_Heriberto_2018-01-25T14:00:29.000285
1,516,888,829.000285
31,176
pythondev
help
right. heh
2018-01-25T14:00:34.000483
Zack
pythondev_help_Zack_2018-01-25T14:00:34.000483
1,516,888,834.000483
31,177
pythondev
help
I used something similar for RAML previously
2018-01-25T14:00:48.000099
Zack
pythondev_help_Zack_2018-01-25T14:00:48.000099
1,516,888,848.000099
31,178
pythondev
help
ive hit a few issues with swagger as well. but i dont remember what they were
2018-01-25T14:01:05.000292
Heriberto
pythondev_help_Heriberto_2018-01-25T14:01:05.000292
1,516,888,865.000292
31,179
pythondev
help
and RAML could handle the nested stuff mentioned above, or at least it sort of could
2018-01-25T14:01:26.000454
Zack
pythondev_help_Zack_2018-01-25T14:01:26.000454
1,516,888,886.000454
31,180
pythondev
help
but the issue really is Swagger won, so yeah there’s that
2018-01-25T14:01:36.000914
Zack
pythondev_help_Zack_2018-01-25T14:01:36.000914
1,516,888,896.000914
31,181
pythondev
help
the issues though you guys had with swagger, is mostly likely the python implementation.
2018-01-25T14:02:26.000412
Heriberto
pythondev_help_Heriberto_2018-01-25T14:02:26.000412
1,516,888,946.000412
31,182
pythondev
help
in that those should work
2018-01-25T14:02:32.000552
Heriberto
pythondev_help_Heriberto_2018-01-25T14:02:32.000552
1,516,888,952.000552
31,183
pythondev
help
no, like it’s an issue with the spec. it’s literally impossible to represent in swagger
2018-01-25T14:03:21.000214
Zack
pythondev_help_Zack_2018-01-25T14:03:21.000214
1,516,889,001.000214
31,184
pythondev
help
well I would argue it's just not made for that
2018-01-25T14:04:42.000459
Micki
pythondev_help_Micki_2018-01-25T14:04:42.000459
1,516,889,082.000459
31,185
pythondev
help
for simpler endpoints it's pretty good
2018-01-25T14:04:53.000567
Micki
pythondev_help_Micki_2018-01-25T14:04:53.000567
1,516,889,093.000567
31,186
pythondev
help
and you'll always have exceptions and stuff
2018-01-25T14:05:41.000473
Micki
pythondev_help_Micki_2018-01-25T14:05:41.000473
1,516,889,141.000473
31,187
pythondev
help
I’d honestly just be happy if I could express that the endpoint takes an arbitrary JSON object at the specific key
2018-01-25T14:05:46.000018
Zack
pythondev_help_Zack_2018-01-25T14:05:46.000018
1,516,889,146.000018
31,188
pythondev
help
Baby asleep!
2018-01-25T14:07:16.000295
Cori
pythondev_help_Cori_2018-01-25T14:07:16.000295
1,516,889,236.000295
31,189
pythondev
help
i can post code!!!
2018-01-25T14:07:19.000098
Cori
pythondev_help_Cori_2018-01-25T14:07:19.000098
1,516,889,239.000098
31,190
pythondev
help
quick!
2018-01-25T14:07:59.000535
Zack
pythondev_help_Zack_2018-01-25T14:07:59.000535
1,516,889,279.000535
31,191
pythondev
help
:stuck_out_tongue:
2018-01-25T14:08:01.000057
Zack
pythondev_help_Zack_2018-01-25T14:08:01.000057
1,516,889,281.000057
31,192
pythondev
help
pdoc seems to be slightly more manual <https://github.com/BurntSushi/pdoc>
2018-01-25T14:08:19.000845
Heriberto
pythondev_help_Heriberto_2018-01-25T14:08:19.000845
1,516,889,299.000845
31,193
pythondev
help
That is the essential
2018-01-25T14:11:52.000974
Cori
pythondev_help_Cori_2018-01-25T14:11:52.000974
1,516,889,512.000974
31,194
pythondev
help
error:
2018-01-25T14:12:39.000540
Cori
pythondev_help_Cori_2018-01-25T14:12:39.000540
1,516,889,559.00054
31,195
pythondev
help
```E requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: / (Caused by NewConnectionError('&lt;urllib3.connection.HTTPConnection object at 0x7fd082c533c8&gt;: Failed to establish a new connection: [Errno 111] Connection refused',)) ```
2018-01-25T14:12:49.000899
Cori
pythondev_help_Cori_2018-01-25T14:12:49.000899
1,516,889,569.000899
31,196
pythondev
help
hmmm left a typo one sec
2018-01-25T14:16:27.000859
Cori
pythondev_help_Cori_2018-01-25T14:16:27.000859
1,516,889,787.000859
31,197
pythondev
help
done
2018-01-25T14:16:56.000876
Cori
pythondev_help_Cori_2018-01-25T14:16:56.000876
1,516,889,816.000876
31,198
pythondev
help
have you considered/would consider using one of the libs that exist to already mock `requests`?
2018-01-25T14:18:47.001088
Brande
pythondev_help_Brande_2018-01-25T14:18:47.001088
1,516,889,927.001088
31,199
pythondev
help
e.g?
2018-01-25T14:19:10.000451
Cori
pythondev_help_Cori_2018-01-25T14:19:10.000451
1,516,889,950.000451
31,200
pythondev
help
I'm a bit averse to bringing in another lib for it
2018-01-25T14:19:22.000271
Cori
pythondev_help_Cori_2018-01-25T14:19:22.000271
1,516,889,962.000271
31,201
pythondev
help
I'm _sure_ it can work somehow
2018-01-25T14:19:32.000538
Cori
pythondev_help_Cori_2018-01-25T14:19:32.000538
1,516,889,972.000538
31,202
pythondev
help
im trying to remember some of them, hold on, sorry this week has my brain as a bit of mush
2018-01-25T14:20:33.000658
Brande
pythondev_help_Brande_2018-01-25T14:20:33.000658
1,516,890,033.000658
31,203
pythondev
help
I know the feeling
2018-01-25T14:21:42.000647
Cori
pythondev_help_Cori_2018-01-25T14:21:42.000647
1,516,890,102.000647
31,204
pythondev
help
i know there is httpretty
2018-01-25T14:21:45.000436
Brande
pythondev_help_Brande_2018-01-25T14:21:45.000436
1,516,890,105.000436
31,205
pythondev
help
frustrating thing is I'm looking at another project where I mocked requests just fine
2018-01-25T14:22:00.000342
Cori
pythondev_help_Cori_2018-01-25T14:22:00.000342
1,516,890,120.000342
31,206
pythondev
help
its been a rough one for me - company was acquired and i dont want to go along to the new one, so its been a bit messy
2018-01-25T14:22:05.000469
Brande
pythondev_help_Brande_2018-01-25T14:22:05.000469
1,516,890,125.000469
31,207
pythondev
help
``` self. mock_response = mock.MagicMock() self.mock_response.json.return_value = self.data patched_requests = mock.patch('requests.get') mocked_requests = patched_requests.start() self.addCleanup(patched_requests.stop) mocked_requests.return_value = self.mock_response```
2018-01-25T14:22:20.000817
Cori
pythondev_help_Cori_2018-01-25T14:22:20.000817
1,516,890,140.000817
31,208
pythondev
help
Worked fine in another project, slight;y different order and it's testing views not forms - so using an APIClient not accessing the form directly
2018-01-25T14:22:43.000073
Cori
pythondev_help_Cori_2018-01-25T14:22:43.000073
1,516,890,163.000073
31,209
pythondev
help
but.... it worked...
2018-01-25T14:22:47.000561
Cori
pythondev_help_Cori_2018-01-25T14:22:47.000561
1,516,890,167.000561
31,210
pythondev
help
Oh crap really?
2018-01-25T14:22:55.000116
Cori
pythondev_help_Cori_2018-01-25T14:22:55.000116
1,516,890,175.000116
31,211
pythondev
help
I know it's been a rough ride already
2018-01-25T14:23:00.000440
Cori
pythondev_help_Cori_2018-01-25T14:23:00.000440
1,516,890,180.00044
31,212
pythondev
help
yep, facebook
2018-01-25T14:23:28.000686
Brande
pythondev_help_Brande_2018-01-25T14:23:28.000686
1,516,890,208.000686
31,213
pythondev
help
acquired by fb?
2018-01-25T14:24:11.000637
Cori
pythondev_help_Cori_2018-01-25T14:24:11.000637
1,516,890,251.000637
31,214
pythondev
help
yep
2018-01-25T14:24:16.000542
Brande
pythondev_help_Brande_2018-01-25T14:24:16.000542
1,516,890,256.000542
31,215
pythondev
help
yeah I'd leave too
2018-01-25T14:24:22.001039
Cori
pythondev_help_Cori_2018-01-25T14:24:22.001039
1,516,890,262.001039
31,216
pythondev
help
it was on techcrunch and a bunch of stuff the other day
2018-01-25T14:24:23.000177
Brande
pythondev_help_Brande_2018-01-25T14:24:23.000177
1,516,890,263.000177
31,217
pythondev
help
<https://en.wikipedia.org/wiki/List_of_mergers_and_acquisitions_by_Facebook>
2018-01-25T14:25:09.000862
Cori
pythondev_help_Cori_2018-01-25T14:25:09.000862
1,516,890,309.000862
31,218
pythondev
help
yeah i cant share some things ive heard but yeah, im not staying (id have to re-interview for my job anyway), and im now either closing my FB account or stripping it down to a minimum of info just so i can see family posts
2018-01-25T14:25:11.000900
Brande
pythondev_help_Brande_2018-01-25T14:25:11.000900
1,516,890,311.0009
31,219
pythondev
help
thats us at the bottom
2018-01-25T14:25:21.000864
Brande
pythondev_help_Brande_2018-01-25T14:25:21.000864
1,516,890,321.000864
31,220
pythondev
help
Could list yourself on the `talent_acquired` column
2018-01-25T14:25:22.000069
Cori
pythondev_help_Cori_2018-01-25T14:25:22.000069
1,516,890,322.000069
31,221
pythondev
help
or make a `talent_not_acquired` column
2018-01-25T14:25:49.000530
Cori
pythondev_help_Cori_2018-01-25T14:25:49.000530
1,516,890,349.00053
31,222
pythondev
help
sorry
2018-01-25T14:25:50.000290
Cori
pythondev_help_Cori_2018-01-25T14:25:50.000290
1,516,890,350.00029
31,223