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
ok, then the problem happens when email is converted to a `str` (bytes), just before being sent
2017-08-24T16:56:36.000174
Suellen
pythondev_help_Suellen_2017-08-24T16:56:36.000174
1,503,593,796.000174
90,903
pythondev
help
maybe headers aren't set, I'm not really familiar with email protocols
2017-08-24T16:56:51.000014
Suellen
pythondev_help_Suellen_2017-08-24T16:56:51.000014
1,503,593,811.000014
90,904
pythondev
help
cool, so then it's the email that's the problem then
2017-08-24T16:56:59.000008
Ashly
pythondev_help_Ashly_2017-08-24T16:56:59.000008
1,503,593,819.000008
90,905
pythondev
help
email headers: ``` Content-Type: multipart/alternative; boundary="f403045f8fb4acce3805573ba064" --f403045f8fb4acce3805573ba064 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ```
2017-08-24T16:57:38.000319
Ashly
pythondev_help_Ashly_2017-08-24T16:57:38.000319
1,503,593,858.000319
90,906
pythondev
help
email sent out as: ``` email = EmailMultiAlternatives( subject, text_body, 'Foo <[email protected]>', to=['%s <%s>' % (to_user.name, to_user.email)], cc=[cc_emails] if cc_emails else None, bcc=['<%s>' % settings.INTERNAL_DEV_EMAIL] ) email.attach_alternative(html_body, "text/html") email.send() ```
2017-08-24T16:58:18.000001
Ashly
pythondev_help_Ashly_2017-08-24T16:58:18.000001
1,503,593,898.000001
90,907
pythondev
help
using django core mail
2017-08-24T16:58:22.000369
Ashly
pythondev_help_Ashly_2017-08-24T16:58:22.000369
1,503,593,902.000369
90,908
pythondev
help
is it always broken like `????`
2017-08-24T16:59:28.000440
Suellen
pythondev_help_Suellen_2017-08-24T16:59:28.000440
1,503,593,968.00044
90,909
pythondev
help
?
2017-08-24T16:59:29.000227
Suellen
pythondev_help_Suellen_2017-08-24T16:59:29.000227
1,503,593,969.000227
90,910
pythondev
help
yep
2017-08-24T16:59:35.000327
Ashly
pythondev_help_Ashly_2017-08-24T16:59:35.000327
1,503,593,975.000327
90,911
pythondev
help
I'm lost
2017-08-24T17:05:04.000528
Suellen
pythondev_help_Suellen_2017-08-24T17:05:04.000528
1,503,594,304.000528
90,912
pythondev
help
not really familiar with Django either, so I don't know.. but it should handle unicode fine, being a top framework
2017-08-24T17:05:54.000252
Suellen
pythondev_help_Suellen_2017-08-24T17:05:54.000252
1,503,594,354.000252
90,913
pythondev
help
<@Suellen> yeah me too. thanks for helping out though. at least now i know why it shows up like `hey \U0001f642` in the test
2017-08-24T17:13:37.000195
Ashly
pythondev_help_Ashly_2017-08-24T17:13:37.000195
1,503,594,817.000195
90,914
pythondev
help
hello guys
2017-08-24T18:51:19.000176
Hyman
pythondev_help_Hyman_2017-08-24T18:51:19.000176
1,503,600,679.000176
90,915
pythondev
help
I got a question about using the requests python module
2017-08-24T18:51:46.000066
Hyman
pythondev_help_Hyman_2017-08-24T18:51:46.000066
1,503,600,706.000066
90,916
pythondev
help
<@Hyman> best to just ask the question, someone will likely be along to help :)
2017-08-24T18:52:15.000258
Beula
pythondev_help_Beula_2017-08-24T18:52:15.000258
1,503,600,735.000258
90,917
pythondev
help
If I send a POST request using this module let us say en encoded form for a login, when the server will answer, where are we going to have the response
2017-08-24T18:54:02.000223
Hyman
pythondev_help_Hyman_2017-08-24T18:54:02.000223
1,503,600,842.000223
90,918
pythondev
help
where?
2017-08-24T19:00:28.000247
Suellen
pythondev_help_Suellen_2017-08-24T19:00:28.000247
1,503,601,228.000247
90,919
pythondev
help
it depends on where you make the request. in postman it will show the response. if in the terminal, it will spit out the response when done (httpie is great for this). in a python script, there should be some response object you can get the results from. how you access that will depend on what library you are using to make the request. In order for people know better answer, it helps to have a sample of what you are doing. <@Hyman>
2017-08-24T19:03:21.000273
Bruno
pythondev_help_Bruno_2017-08-24T19:03:21.000273
1,503,601,401.000273
90,920
pythondev
help
<@Hyman> on the response object. It will be as `.json()` if the response is a Json one, otherwise I think `.data()` both are covered in the docs
2017-08-24T19:17:21.000085
Beula
pythondev_help_Beula_2017-08-24T19:17:21.000085
1,503,602,241.000085
90,921
pythondev
help
<http://docs.python-requests.org/en/master/user/quickstart/#response-content>
2017-08-24T19:18:06.000212
Beula
pythondev_help_Beula_2017-08-24T19:18:06.000212
1,503,602,286.000212
90,922
pythondev
help
:waving_white_flag: I'm confused about something This app is creating an object which calls another class' _init_ and then later modifies the variables within based on a config file. When a function from that particular class is called, it uses the init values, not the ones assigned outside the class. Clearly this is some kind of scoping issue but understand it well enough to explain it to my colleague. :confused:
2017-08-25T02:57:32.000060
Dell
pythondev_help_Dell_2017-08-25T02:57:32.000060
1,503,629,852.00006
90,923
pythondev
help
<@Dell> can you show us the code?
2017-08-25T03:03:47.000102
Collette
pythondev_help_Collette_2017-08-25T03:03:47.000102
1,503,630,227.000102
90,924
pythondev
help
technically no but I kind of boiled it down to the essence here
2017-08-25T03:05:36.000100
Dell
pythondev_help_Dell_2017-08-25T03:05:36.000100
1,503,630,336.0001
90,925
pythondev
help
so where this json is loading and setting it, that works - but when _run_ is called those assignments don't exist
2017-08-25T03:07:03.000311
Dell
pythondev_help_Dell_2017-08-25T03:07:03.000311
1,503,630,423.000311
90,926
pythondev
help
it just goes back to None
2017-08-25T03:07:25.000186
Dell
pythondev_help_Dell_2017-08-25T03:07:25.000186
1,503,630,445.000186
90,927
pythondev
help
That is really bad code, but it should work as you showed: <https://ideone.com/4K0N7E>
2017-08-25T03:13:32.000043
Collette
pythondev_help_Collette_2017-08-25T03:13:32.000043
1,503,630,812.000043
90,928
pythondev
help
ahhh yeah that's much more straightforward
2017-08-25T03:24:32.000019
Dell
pythondev_help_Dell_2017-08-25T03:24:32.000019
1,503,631,472.000019
90,929
pythondev
help
AFAIK when you edit a message with taco, the tacobot can't notice that
2017-08-25T03:25:28.000188
Collette
pythondev_help_Collette_2017-08-25T03:25:28.000188
1,503,631,528.000188
90,930
pythondev
help
noooo
2017-08-25T03:25:33.000139
Dell
pythondev_help_Dell_2017-08-25T03:25:33.000139
1,503,631,533.000139
90,931
pythondev
help
<@Collette> :taco:
2017-08-25T03:25:39.000233
Dell
pythondev_help_Dell_2017-08-25T03:25:39.000233
1,503,631,539.000233
90,932
pythondev
help
Thanks :slightly_smiling_face:
2017-08-25T03:25:42.000145
Collette
pythondev_help_Collette_2017-08-25T03:25:42.000145
1,503,631,542.000145
90,933
pythondev
help
that's better
2017-08-25T03:25:43.000309
Dell
pythondev_help_Dell_2017-08-25T03:25:43.000309
1,503,631,543.000309
90,934
pythondev
help
_deletes wrong one_
2017-08-25T03:25:55.000115
Dell
pythondev_help_Dell_2017-08-25T03:25:55.000115
1,503,631,555.000115
90,935
pythondev
help
Finally I understand how the taco bot works...
2017-08-25T03:26:07.000046
Ramona
pythondev_help_Ramona_2017-08-25T03:26:07.000046
1,503,631,567.000046
90,936
pythondev
help
hahaha :stars: the more you know...
2017-08-25T03:26:22.000073
Dell
pythondev_help_Dell_2017-08-25T03:26:22.000073
1,503,631,582.000073
90,937
pythondev
help
<@Lenny> help
2017-08-25T03:26:26.000273
Ciera
pythondev_help_Ciera_2017-08-25T03:26:26.000273
1,503,631,586.000273
90,938
pythondev
help
&gt; `settings: dm off`: turns off notifications from me The best command ever.
2017-08-25T03:27:52.000240
Collette
pythondev_help_Collette_2017-08-25T03:27:52.000240
1,503,631,672.00024
90,939
pythondev
help
<@Collette> but how will you see a new taco-related GIF?
2017-08-25T05:15:18.000327
Suellen
pythondev_help_Suellen_2017-08-25T05:15:18.000327
1,503,638,118.000327
90,940
pythondev
help
Anyone knows how to `pip install` large C-based packages *in parallel* such as cython, pandas, scipy?
2017-08-25T05:28:35.000327
Leigh
pythondev_help_Leigh_2017-08-25T05:28:35.000327
1,503,638,915.000327
90,941
pythondev
help
Multiple terminals?
2017-08-25T05:29:00.000198
Vada
pythondev_help_Vada_2017-08-25T05:29:00.000198
1,503,638,940.000198
90,942
pythondev
help
Not that I;ve ever tried
2017-08-25T05:29:05.000327
Vada
pythondev_help_Vada_2017-08-25T05:29:05.000327
1,503,638,945.000327
90,943
pythondev
help
numpy provides `NPY_NUM_BUILD_JOBS` environment variable but could not find similar things in others
2017-08-25T05:29:07.000066
Leigh
pythondev_help_Leigh_2017-08-25T05:29:07.000066
1,503,638,947.000066
90,944
pythondev
help
why? does it really take so long you can't wait?
2017-08-25T05:29:14.000206
Vada
pythondev_help_Vada_2017-08-25T05:29:14.000206
1,503,638,954.000206
90,945
pythondev
help
because i'm installing them on Alpine linux,
2017-08-25T05:29:24.000189
Leigh
pythondev_help_Leigh_2017-08-25T05:29:24.000189
1,503,638,964.000189
90,946
pythondev
help
pypa's shiny "manylinux" wheels does not work
2017-08-25T05:29:39.000312
Leigh
pythondev_help_Leigh_2017-08-25T05:29:39.000312
1,503,638,979.000312
90,947
pythondev
help
so it builds everything from ground up
2017-08-25T05:29:46.000235
Leigh
pythondev_help_Leigh_2017-08-25T05:29:46.000235
1,503,638,986.000235
90,948
pythondev
help
I saw there are discussions on adding "musllinux" tag but it seems to be taking some time to get agreement
2017-08-25T05:30:21.000251
Leigh
pythondev_help_Leigh_2017-08-25T05:30:21.000251
1,503,639,021.000251
90,949
pythondev
help
<@Suellen> unfortunately gifs still ignore that setting
2017-08-25T05:31:04.000329
Collette
pythondev_help_Collette_2017-08-25T05:31:04.000329
1,503,639,064.000329
90,950
pythondev
help
I tried `MAKEFLAGS` `MAKEOPTS` environment variables but pip seems to just call the C compiler directly without using Makefile
2017-08-25T05:31:35.000192
Leigh
pythondev_help_Leigh_2017-08-25T05:31:35.000192
1,503,639,095.000192
90,951
pythondev
help
I'll like to use robobrowser to sumit a form but I don't know where the response goess about
2017-08-25T05:31:36.000373
Hyman
pythondev_help_Hyman_2017-08-25T05:31:36.000373
1,503,639,096.000373
90,952
pythondev
help
<@Collette> why unfortunately? :cry:
2017-08-25T05:35:55.000065
Suellen
pythondev_help_Suellen_2017-08-25T05:35:55.000065
1,503,639,355.000065
90,953
pythondev
help
y u no like tacobot
2017-08-25T05:36:03.000202
Suellen
pythondev_help_Suellen_2017-08-25T05:36:03.000202
1,503,639,363.000202
90,954
pythondev
help
you know, when the robot / AI apocalypse starts.. I know I'm gonna be their friend
2017-08-25T05:36:55.000108
Suellen
pythondev_help_Suellen_2017-08-25T05:36:55.000108
1,503,639,415.000108
90,955
pythondev
help
hello guys. sorry I am new here and even python development. I just want to know if anyone know how to use like a Rubocop to have a clean code and standard, and to use the Unit testing
2017-08-25T05:37:27.000065
Assunta
pythondev_help_Assunta_2017-08-25T05:37:27.000065
1,503,639,447.000065
90,956
pythondev
help
<@Leigh> wheels don't work because Alpine uses a very peculiar C library
2017-08-25T05:37:59.000305
Suellen
pythondev_help_Suellen_2017-08-25T05:37:59.000305
1,503,639,479.000305
90,957
pythondev
help
<@Assunta> rubocop is for ruby, you’ll want the python equivalent which will be something like flake8
2017-08-25T05:38:39.000190
Junita
pythondev_help_Junita_2017-08-25T05:38:39.000190
1,503,639,519.00019
90,958
pythondev
help
or maybe someone has something for recent to suggest, it’s been a while since I’ve set up a python project
2017-08-25T05:39:11.000374
Junita
pythondev_help_Junita_2017-08-25T05:39:11.000374
1,503,639,551.000374
90,959
pythondev
help
ah I can use flake8. I will look on it <@Junita>
2017-08-25T05:39:15.000060
Assunta
pythondev_help_Assunta_2017-08-25T05:39:15.000060
1,503,639,555.00006
90,960
pythondev
help
thanks
2017-08-25T05:39:25.000287
Assunta
pythondev_help_Assunta_2017-08-25T05:39:25.000287
1,503,639,565.000287
90,961
pythondev
help
yes please. I need help on how to ensure to align my team in python development
2017-08-25T05:39:43.000204
Assunta
pythondev_help_Assunta_2017-08-25T05:39:43.000204
1,503,639,583.000204
90,962
pythondev
help
because I am preparing all the process materials we need
2017-08-25T05:39:57.000153
Assunta
pythondev_help_Assunta_2017-08-25T05:39:57.000153
1,503,639,597.000153
90,963
pythondev
help
<@Junita> isn't the flavor of the month pylint? Is there any significant difference between flake8 and pylint?
2017-08-25T05:40:10.000103
Ramona
pythondev_help_Ramona_2017-08-25T05:40:10.000103
1,503,639,610.000103
90,964
pythondev
help
<@Suellen> yeah, i already know -- i'm asking how to build c-based packages faster
2017-08-25T05:40:11.000075
Leigh
pythondev_help_Leigh_2017-08-25T05:40:11.000075
1,503,639,611.000075
90,965
pythondev
help
(even not on alpine linux)
2017-08-25T05:40:19.000125
Leigh
pythondev_help_Leigh_2017-08-25T05:40:19.000125
1,503,639,619.000125
90,966
pythondev
help
<@Ramona> I don't thing there is. But I'm not a big user of them. I usually just put flake8 with a little bit of options and that's all
2017-08-25T05:40:55.000366
Ciera
pythondev_help_Ciera_2017-08-25T05:40:55.000366
1,503,639,655.000366
90,967
pythondev
help
i can bear with that i need to build things from ground up, but i want to make the build processes fast
2017-08-25T05:40:59.000197
Leigh
pythondev_help_Leigh_2017-08-25T05:40:59.000197
1,503,639,659.000197
90,968
pythondev
help
wheel are not available ?
2017-08-25T05:41:30.000190
Ciera
pythondev_help_Ciera_2017-08-25T05:41:30.000190
1,503,639,690.00019
90,969
pythondev
help
not on alpine
2017-08-25T05:41:36.000286
Meg
pythondev_help_Meg_2017-08-25T05:41:36.000286
1,503,639,696.000286
90,970
pythondev
help
make a docker image
2017-08-25T05:41:49.000049
Meg
pythondev_help_Meg_2017-08-25T05:41:49.000049
1,503,639,709.000049
90,971
pythondev
help
accept the slow build time
2017-08-25T05:41:53.000363
Meg
pythondev_help_Meg_2017-08-25T05:41:53.000363
1,503,639,713.000363
90,972
pythondev
help
deploy to docker hub
2017-08-25T05:41:57.000207
Meg
pythondev_help_Meg_2017-08-25T05:41:57.000207
1,503,639,717.000207
90,973
pythondev
help
<@Ramona> quite possible. once I have that kinda stuff going on a project it tends to stay that way
2017-08-25T05:41:59.000073
Junita
pythondev_help_Junita_2017-08-25T05:41:59.000073
1,503,639,719.000073
90,974
pythondev
help
how about unit testing any idea?
2017-08-25T05:42:04.000206
Assunta
pythondev_help_Assunta_2017-08-25T05:42:04.000206
1,503,639,724.000206
90,975
pythondev
help
so it’s been a while since I’ve looked into this stuff.
2017-08-25T05:42:09.000045
Junita
pythondev_help_Junita_2017-08-25T05:42:09.000045
1,503,639,729.000045
90,976
pythondev
help
and use that image
2017-08-25T05:42:10.000201
Meg
pythondev_help_Meg_2017-08-25T05:42:10.000201
1,503,639,730.000201
90,977
pythondev
help
hmm. could you built your own wheel and upload on your own devpi or something ?
2017-08-25T05:42:15.000371
Ciera
pythondev_help_Ciera_2017-08-25T05:42:15.000371
1,503,639,735.000371
90,978
pythondev
help
hmm
2017-08-25T05:42:19.000004
Leigh
pythondev_help_Leigh_2017-08-25T05:42:19.000004
1,503,639,739.000004
90,979
pythondev
help
but not sure that easier to do
2017-08-25T05:42:23.000047
Ciera
pythondev_help_Ciera_2017-08-25T05:42:23.000047
1,503,639,743.000047
90,980
pythondev
help
i'm already using multi-staged builds to make it fast
2017-08-25T05:42:33.000302
Leigh
pythondev_help_Leigh_2017-08-25T05:42:33.000302
1,503,639,753.000302
90,981
pythondev
help
<@Assunta> standard library unittest module or pytest
2017-08-25T05:42:50.000048
Ciera
pythondev_help_Ciera_2017-08-25T05:42:50.000048
1,503,639,770.000048
90,982
pythondev
help
then, another way of question: how to determine all the file list that is created by the build process of a wheel?
2017-08-25T05:42:57.000246
Leigh
pythondev_help_Leigh_2017-08-25T05:42:57.000246
1,503,639,777.000246
90,983
pythondev
help
yeah I think pytest is the common thing these days. there again I’m out of date, using nose still
2017-08-25T05:43:10.000203
Junita
pythondev_help_Junita_2017-08-25T05:43:10.000203
1,503,639,790.000203
90,984
pythondev
help
yeah pytest is the common one
2017-08-25T05:43:33.000307
Ciera
pythondev_help_Ciera_2017-08-25T05:43:33.000307
1,503,639,813.000307
90,985
pythondev
help
thanks <@Ciera>
2017-08-25T05:43:46.000110
Assunta
pythondev_help_Assunta_2017-08-25T05:43:46.000110
1,503,639,826.00011
90,986
pythondev
help
I will look on it. since I am not aware in python. I used in Ruby Rspec and TDD. using codeship
2017-08-25T05:44:21.000131
Assunta
pythondev_help_Assunta_2017-08-25T05:44:21.000131
1,503,639,861.000131
90,987
pythondev
help
but will look fully on it
2017-08-25T05:44:39.000174
Assunta
pythondev_help_Assunta_2017-08-25T05:44:39.000174
1,503,639,879.000174
90,988
pythondev
help
thanks guys for the details.
2017-08-25T05:44:44.000177
Assunta
pythondev_help_Assunta_2017-08-25T05:44:44.000177
1,503,639,884.000177
90,989
pythondev
help
i'm already doing like this: ``` FROM python:3.6-alpine as python-source RUN cd /; tar czpf python.tar.gz /usr/local/ FROM myimage:latest COPY --from=python-source /python.tar.gz / RUN cd /; tar xzpf python.tar.gz ```
2017-08-25T05:44:53.000175
Leigh
pythondev_help_Leigh_2017-08-25T05:44:53.000175
1,503,639,893.000175
90,990
pythondev
help
pytest might have somehting for TDD (but not sure I don't use it)
2017-08-25T05:45:01.000342
Ciera
pythondev_help_Ciera_2017-08-25T05:45:01.000342
1,503,639,901.000342
90,991
pythondev
help
maybe if i can do the same for cython/scipy/pandas/..., it will be great
2017-08-25T05:45:15.000015
Leigh
pythondev_help_Leigh_2017-08-25T05:45:15.000015
1,503,639,915.000015
90,992
pythondev
help
<@Ciera> ok, but is there anyway to have a continuous development that includes unit testing? I found this book: <http://www.obeythetestinggoat.com/book/praise.harry.html> using django
2017-08-25T05:46:30.000207
Assunta
pythondev_help_Assunta_2017-08-25T05:46:30.000207
1,503,639,990.000207
90,993
pythondev
help
but I am not sure If I am on the right track
2017-08-25T05:46:49.000171
Assunta
pythondev_help_Assunta_2017-08-25T05:46:49.000171
1,503,640,009.000171
90,994
pythondev
help
that depend on your CI
2017-08-25T05:46:51.000178
Ciera
pythondev_help_Ciera_2017-08-25T05:46:51.000178
1,503,640,011.000178
90,995
pythondev
help
yeah that’s more of a process question than a tools question
2017-08-25T05:47:01.000057
Junita
pythondev_help_Junita_2017-08-25T05:47:01.000057
1,503,640,021.000057
90,996
pythondev
help
you might also want to look into `tox`
2017-08-25T05:47:03.000033
Ciera
pythondev_help_Ciera_2017-08-25T05:47:03.000033
1,503,640,023.000033
90,997
pythondev
help
`Gives boto a facelift` Nice one :smile:
2017-08-25T05:47:38.000057
Ciera
pythondev_help_Ciera_2017-08-25T05:47:38.000057
1,503,640,058.000057
90,998
pythondev
help
heh
2017-08-25T05:47:44.000086
Junita
pythondev_help_Junita_2017-08-25T05:47:44.000086
1,503,640,064.000086
90,999
pythondev
help
so, would it be sufficient to zip &amp; copy the package directory (e.g., `/usr/local/lib/python3.6/site-packages/numpy`), with some tweaks on pkg-info files
2017-08-25T05:49:33.000110
Leigh
pythondev_help_Leigh_2017-08-25T05:49:33.000110
1,503,640,173.00011
91,000
pythondev
help
<@Leigh> <https://github.com/cython/cython/blob/7af5d3e92a59906927a566e5dc4a99eeaca49b96/.travis.yml> It seems that CFLAGS can be passed easily for Cython build
2017-08-25T05:49:39.000128
Suellen
pythondev_help_Suellen_2017-08-25T05:49:39.000128
1,503,640,179.000128
91,001
pythondev
help
But I couldn't find anything standard
2017-08-25T05:49:47.000356
Suellen
pythondev_help_Suellen_2017-08-25T05:49:47.000356
1,503,640,187.000356
91,002