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 | + | 2017-11-03T14:57:22.000016 | Bella | pythondev_help_Bella_2017-11-03T14:57:22.000016 | 1,509,721,042.000016 | 99,203 |
pythondev | help | And that fixed it. Thanks mike | 2017-11-03T14:58:13.000127 | Enid | pythondev_help_Enid_2017-11-03T14:58:13.000127 | 1,509,721,093.000127 | 99,204 |
pythondev | help | Sure thing | 2017-11-03T14:58:23.000586 | Lory | pythondev_help_Lory_2017-11-03T14:58:23.000586 | 1,509,721,103.000586 | 99,205 |
pythondev | help | that’s actually a great idea, going to steal it. i have a c++ background too | 2017-11-03T15:08:11.000409 | Rob | pythondev_help_Rob_2017-11-03T15:08:11.000409 | 1,509,721,691.000409 | 99,206 |
pythondev | help | <@Lory> :taco: | 2017-11-03T15:13:28.000008 | Johana | pythondev_help_Johana_2017-11-03T15:13:28.000008 | 1,509,722,008.000008 | 99,207 |
pythondev | help | Wooo my first Taco! Thanks <@Johana> | 2017-11-03T15:14:23.000222 | Lory | pythondev_help_Lory_2017-11-03T15:14:23.000222 | 1,509,722,063.000222 | 99,208 |
pythondev | help | I only used to use Slack in-browser but recently changed to Windows desktop. There seems to be some awful behavior with me not getting notifications, and then it doesn't show up on other devices either because I guess I'm not Idle. Anyone know if I can force Slack to just notify me everywhere, always? <https://get.slac... | 2017-11-03T15:29:22.000355 | Mallie | pythondev_help_Mallie_2017-11-03T15:29:22.000355 | 1,509,722,962.000355 | 99,209 |
pythondev | help | It's kinda ruined its reliability. | 2017-11-03T15:29:32.000663 | Mallie | pythondev_help_Mallie_2017-11-03T15:29:32.000663 | 1,509,722,972.000663 | 99,210 |
pythondev | help | <@Mallie> Windows? What happened??!? I'm mostly joking, but partly serious. | 2017-11-03T15:30:38.000073 | Seema | pythondev_help_Seema_2017-11-03T15:30:38.000073 | 1,509,723,038.000073 | 99,211 |
pythondev | help | 1st mistake:
used windows | 2017-11-03T15:31:05.000396 | Johana | pythondev_help_Johana_2017-11-03T15:31:05.000396 | 1,509,723,065.000396 | 99,212 |
pythondev | help | I'm not 100%, still working out the details, but sometimes I just don't get notifications. | 2017-11-03T15:31:06.000285 | Mallie | pythondev_help_Mallie_2017-11-03T15:31:06.000285 | 1,509,723,066.000285 | 99,213 |
pythondev | help | I think it may happen when I am "in" that team as far as Slack is concerned, even if I am not on the window | 2017-11-03T15:31:25.000312 | Mallie | pythondev_help_Mallie_2017-11-03T15:31:25.000312 | 1,509,723,085.000312 | 99,214 |
pythondev | help | you need to restart your computer 3x times. | 2017-11-03T15:31:37.000539 | Johana | pythondev_help_Johana_2017-11-03T15:31:37.000539 | 1,509,723,097.000539 | 99,215 |
pythondev | help | Well to be fair to awful Windows though this is explained in Slack on that link, I just think it's terrible behvior | 2017-11-03T15:31:54.000079 | Mallie | pythondev_help_Mallie_2017-11-03T15:31:54.000079 | 1,509,723,114.000079 | 99,216 |
pythondev | help | Notify on all should be an option | 2017-11-03T15:31:59.000441 | Mallie | pythondev_help_Mallie_2017-11-03T15:31:59.000441 | 1,509,723,119.000441 | 99,217 |
pythondev | help | When I used the browser I'd get a browser notification and a mobile one, always. | 2017-11-03T15:32:30.000156 | Mallie | pythondev_help_Mallie_2017-11-03T15:32:30.000156 | 1,509,723,150.000156 | 99,218 |
pythondev | help | <@Mallie> I wasn't asking about the Slack...I was curious what happened with going Windows | 2017-11-03T15:32:33.000339 | Seema | pythondev_help_Seema_2017-11-03T15:32:33.000339 | 1,509,723,153.000339 | 99,219 |
pythondev | help | Well it's related to the Slack, what do you mean? I don't get notifications from Slack on Windows sometimes and then I also don't get them on mobile is the issue. | 2017-11-03T15:33:12.000191 | Mallie | pythondev_help_Mallie_2017-11-03T15:33:12.000191 | 1,509,723,192.000191 | 99,220 |
pythondev | help | OHHHH | 2017-11-03T15:33:19.000137 | Mallie | pythondev_help_Mallie_2017-11-03T15:33:19.000137 | 1,509,723,199.000137 | 99,221 |
pythondev | help | hahaha | 2017-11-03T15:33:20.000129 | Mallie | pythondev_help_Mallie_2017-11-03T15:33:20.000129 | 1,509,723,200.000129 | 99,222 |
pythondev | help | I've seen your lapto.... lol | 2017-11-03T15:33:22.000285 | Seema | pythondev_help_Seema_2017-11-03T15:33:22.000285 | 1,509,723,202.000285 | 99,223 |
pythondev | help | I've always worked in Linux but had it as a Guest OS | 2017-11-03T15:33:31.000545 | Mallie | pythondev_help_Mallie_2017-11-03T15:33:31.000545 | 1,509,723,211.000545 | 99,224 |
pythondev | help | You were using a vbox | 2017-11-03T15:33:36.000299 | Mallie | pythondev_help_Mallie_2017-11-03T15:33:36.000299 | 1,509,723,216.000299 | 99,225 |
pythondev | help | I have a Linux server at home but my desktop and laptop are Win 10 native | 2017-11-03T15:33:54.000248 | Mallie | pythondev_help_Mallie_2017-11-03T15:33:54.000248 | 1,509,723,234.000248 | 99,226 |
pythondev | help | Haven't you normally done your developing in nix based? I thought you rarely used Windows | 2017-11-03T15:35:29.000185 | Seema | pythondev_help_Seema_2017-11-03T15:35:29.000185 | 1,509,723,329.000185 | 99,227 |
pythondev | help | i loved windows me. that was some good stuff. | 2017-11-03T15:36:24.000670 | Johana | pythondev_help_Johana_2017-11-03T15:36:24.000670 | 1,509,723,384.00067 | 99,228 |
pythondev | help | sike | 2017-11-03T15:37:02.000416 | Johana | pythondev_help_Johana_2017-11-03T15:37:02.000416 | 1,509,723,422.000416 | 99,229 |
pythondev | help | :point_up: i’ve been waiting to use that word again. | 2017-11-03T15:37:17.000036 | Johana | pythondev_help_Johana_2017-11-03T15:37:17.000036 | 1,509,723,437.000036 | 99,230 |
pythondev | help | I think it might have been popular about the time ME came out too... What MS marketing department genius said we should name an OS "me"??!? | 2017-11-03T15:38:38.000484 | Seema | pythondev_help_Seema_2017-11-03T15:38:38.000484 | 1,509,723,518.000484 | 99,231 |
pythondev | help | On a python related note, has anyone found any cool things to do with f-strings besides the normal fair or something that really borked things up? | 2017-11-03T15:40:20.000365 | Seema | pythondev_help_Seema_2017-11-03T15:40:20.000365 | 1,509,723,620.000365 | 99,232 |
pythondev | help | <@Seema> ME -> millennium edition, I suppose | 2017-11-03T15:41:43.000228 | Meg | pythondev_help_Meg_2017-11-03T15:41:43.000228 | 1,509,723,703.000228 | 99,233 |
pythondev | help | IIRC, the original marketing material said that, then after a while went to ME | 2017-11-03T15:42:08.000513 | Meg | pythondev_help_Meg_2017-11-03T15:42:08.000513 | 1,509,723,728.000513 | 99,234 |
pythondev | help | Yeah, but work and just personal stuff are different - games only work in Windows and support for a lot of other general stuff is better. | 2017-11-03T16:01:10.000157 | Mallie | pythondev_help_Mallie_2017-11-03T16:01:10.000157 | 1,509,724,870.000157 | 99,235 |
pythondev | help | I'm working in a Linux VM ~95% of the time | 2017-11-03T16:01:21.000057 | Mallie | pythondev_help_Mallie_2017-11-03T16:01:21.000057 | 1,509,724,881.000057 | 99,236 |
pythondev | help | got it, I "gave up" gaming this year, kind of like alcohol, but it's more because I went Ubuntu and there's only so much WarThunder I can play | 2017-11-03T16:02:24.000309 | Seema | pythondev_help_Seema_2017-11-03T16:02:24.000309 | 1,509,724,944.000309 | 99,237 |
pythondev | help | I have a screaming video card too but it's used less than 1% of the time :disappointed: | 2017-11-03T16:02:56.000261 | Seema | pythondev_help_Seema_2017-11-03T16:02:56.000261 | 1,509,724,976.000261 | 99,238 |
pythondev | help | Haha just go Windows for what you need it for, it won't hurt anything probably | 2017-11-03T16:03:53.000533 | Mallie | pythondev_help_Mallie_2017-11-03T16:03:53.000533 | 1,509,725,033.000533 | 99,239 |
pythondev | help | true, true, I've been playing with virt-man but then I get interested in some new thing, Dask, docker, python 3.6, jupyter, etc. all the while on AMD's new chip. I've only nuked and paved three times now | 2017-11-03T16:06:54.000283 | Seema | pythondev_help_Seema_2017-11-03T16:06:54.000283 | 1,509,725,214.000283 | 99,240 |
pythondev | help | oh, I don't think I have a win10 license around anywhere. I'm too lazy to hunt down some free version of win10 too. | 2017-11-03T16:07:42.000042 | Seema | pythondev_help_Seema_2017-11-03T16:07:42.000042 | 1,509,725,262.000042 | 99,241 |
pythondev | help | Hey everyone,
I am curious on some opinions of using a generic CMS vs building your own. I believe it will help me if I understand how everything works so I will build my own irregardless but I am not sure about which is better for real world project use (granted I know there are different use cases and I should choos... | 2017-11-03T17:14:23.000233 | Vita | pythondev_help_Vita_2017-11-03T17:14:23.000233 | 1,509,729,263.000233 | 99,242 |
pythondev | help | <https://hackernoon.com/how-i-built-a-cms-and-why-you-shouldnt-daff6042413a> | 2017-11-03T17:16:07.000232 | Ciera | pythondev_help_Ciera_2017-11-03T17:16:07.000232 | 1,509,729,367.000232 | 99,243 |
pythondev | help | Haven't read it but it was featured a while ago | 2017-11-03T17:16:17.000145 | Ciera | pythondev_help_Ciera_2017-11-03T17:16:17.000145 | 1,509,729,377.000145 | 99,244 |
pythondev | help | I believe I read this when it was featured (actually think it got featured because a girl built a CMS for her company in one day and someone commented this link on that page). I will re-read it again, but I remember being slightly at odds with the article only because unless I am running a site where blogging (with mul... | 2017-11-03T17:21:48.000045 | Vita | pythondev_help_Vita_2017-11-03T17:21:48.000045 | 1,509,729,708.000045 | 99,245 |
pythondev | help | Well I just thought it might be relevant but I don't really have an opinion on the topic to be honest | 2017-11-03T17:23:38.000230 | Ciera | pythondev_help_Ciera_2017-11-03T17:23:38.000230 | 1,509,729,818.00023 | 99,246 |
pythondev | help | Ahh okay thanks <@Ciera> :taco:
I will still re-read it to be sure I understand the author's point of view though | 2017-11-03T17:24:49.000404 | Vita | pythondev_help_Vita_2017-11-03T17:24:49.000404 | 1,509,729,889.000404 | 99,247 |
pythondev | help | Does anyone know how to place text using turtle.write? I know that I can align - right, left, center, but I there isn't much in the documentation about how to place things at a certain coordinate. | 2017-11-03T21:33:19.000074 | Rick | pythondev_help_Rick_2017-11-03T21:33:19.000074 | 1,509,744,799.000074 | 99,248 |
pythondev | help | Hi everyone, I’m a UX design student working on a developers’ career advice project and I would really appreciate if you could take 1 minute and help me participate in this survey about developers in tech industry. Here is the link <https://www.surveymonkey.com/r/P87VZP8> | 2017-11-04T14:44:03.000055 | Lynda | pythondev_help_Lynda_2017-11-04T14:44:03.000055 | 1,509,806,643.000055 | 99,249 |
pythondev | help | Anyone in here ever has to integrate with Salesforce? | 2017-11-04T16:10:19.000041 | Bruno | pythondev_help_Bruno_2017-11-04T16:10:19.000041 | 1,509,811,819.000041 | 99,250 |
pythondev | help | I may be building a site that needs to integrate with it | 2017-11-04T16:11:12.000104 | Bruno | pythondev_help_Bruno_2017-11-04T16:11:12.000104 | 1,509,811,872.000104 | 99,251 |
pythondev | help | we integrate with SalesForce but i have 0 involvement in what is being done with it. | 2017-11-04T19:28:55.000040 | Johana | pythondev_help_Johana_2017-11-04T19:28:55.000040 | 1,509,823,735.00004 | 99,252 |
pythondev | help | it is how we onboard new schools, teachers, etc. | 2017-11-04T19:29:19.000031 | Johana | pythondev_help_Johana_2017-11-04T19:29:19.000031 | 1,509,823,759.000031 | 99,253 |
pythondev | help | Why does this evaluate to True?
```
b = (1, 2, 3) < (1, 2, 4)
print(b)
# True
``` | 2017-11-04T19:44:41.000059 | Bonita | pythondev_help_Bonita_2017-11-04T19:44:41.000059 | 1,509,824,681.000059 | 99,254 |
pythondev | help | same reason it's true for `123 < 124` or `'abc' < 'abd'` | 2017-11-04T19:47:44.000065 | Suellen | pythondev_help_Suellen_2017-11-04T19:47:44.000065 | 1,509,824,864.000065 | 99,255 |
pythondev | help | values inside a container are compared | 2017-11-04T19:48:08.000070 | Suellen | pythondev_help_Suellen_2017-11-04T19:48:08.000070 | 1,509,824,888.00007 | 99,256 |
pythondev | help | <@Suellen> One comparison that is False makes it all False?
```
a = (1, 2, 3) < (1, 2, 4)
print(a)
# True
b = (1, 2, 3) < (1, 2, 3)
print(b)
# False
c = (1, 2, 3) <= (1, 2, 4)
print(c)
# True
d = (1, 2, 3) < (1, 1, 4)
print(d)
# False
``` | 2017-11-04T19:52:19.000060 | Bonita | pythondev_help_Bonita_2017-11-04T19:52:19.000060 | 1,509,825,139.00006 | 99,257 |
pythondev | help | <@Suellen> Like ‘d’ | 2017-11-04T19:52:58.000042 | Bonita | pythondev_help_Bonita_2017-11-04T19:52:58.000042 | 1,509,825,178.000042 | 99,258 |
pythondev | help | <@Suellen> ‘<=’ and ‘<’ work the same? | 2017-11-04T19:53:18.000006 | Bonita | pythondev_help_Bonita_2017-11-04T19:53:18.000006 | 1,509,825,198.000006 | 99,259 |
pythondev | help | They are compared lexicographically (I hope it's the right term). | 2017-11-04T20:03:42.000052 | Suellen | pythondev_help_Suellen_2017-11-04T20:03:42.000052 | 1,509,825,822.000052 | 99,260 |
pythondev | help | Basically to determine whether a tuple is "less than" another tuple we compare what's inside | 2017-11-04T20:04:05.000050 | Suellen | pythondev_help_Suellen_2017-11-04T20:04:05.000050 | 1,509,825,845.00005 | 99,261 |
pythondev | help | `(1, 2, x) < (1, 2, y)` is True when `x < y`, because that's what's different between these tuples | 2017-11-04T20:04:54.000038 | Suellen | pythondev_help_Suellen_2017-11-04T20:04:54.000038 | 1,509,825,894.000038 | 99,262 |
pythondev | help | <@Suellen> Very clear. Thanks for your help. | 2017-11-04T20:05:27.000071 | Bonita | pythondev_help_Bonita_2017-11-04T20:05:27.000071 | 1,509,825,927.000071 | 99,263 |
pythondev | help | question, someone knows about ionic 2? | 2017-11-04T20:22:01.000035 | Annis | pythondev_help_Annis_2017-11-04T20:22:01.000035 | 1,509,826,921.000035 | 99,264 |
pythondev | help | Him does anyony know how i can assign bin value back to the original dataframe ?
let say i have a dataframe below, Bin group if B=0.5 , Bin group = 1 , B=1, Bin group = 2
Ori want
A B A B Bin group
A1 2 ->A1 2 4
A2 4 A2 4 8 ?
bins = np.linspace(df.a.min... | 2017-11-04T20:51:20.000036 | Jonathan | pythondev_help_Jonathan_2017-11-04T20:51:20.000036 | 1,509,828,680.000036 | 99,265 |
pythondev | help | Hi need some help with homework. Why would a try: skip the except: ? Have a menu selection and want to print an error if the user enters wrong choice. | 2017-11-04T21:05:48.000044 | Fe | pythondev_help_Fe_2017-11-04T21:05:48.000044 | 1,509,829,548.000044 | 99,266 |
pythondev | help | Double checked indentation, the wrong choice doesn't use any of the code but the except: statement is not executed. | 2017-11-04T21:08:09.000029 | Fe | pythondev_help_Fe_2017-11-04T21:08:09.000029 | 1,509,829,689.000029 | 99,267 |
pythondev | help | <https://paste.pound-python.org/show/bgo4C99qHLshwGSSjQpH/> | 2017-11-04T21:21:29.000084 | Fe | pythondev_help_Fe_2017-11-04T21:21:29.000084 | 1,509,830,489.000084 | 99,268 |
pythondev | help | line 146 | 2017-11-04T21:21:54.000049 | Fe | pythondev_help_Fe_2017-11-04T21:21:54.000049 | 1,509,830,514.000049 | 99,269 |
pythondev | help | hi guys,
I have a new program that I have written, I want to test the stdin input, but I'm having some trouble with pytest
is there a good way to do stdin testing with pytest, or am I not supposed to do this?
like for example:
input your name: John | 2017-11-05T01:19:08.000044 | Mitzie | pythondev_help_Mitzie_2017-11-05T01:19:08.000044 | 1,509,844,748.000044 | 99,270 |
pythondev | help | <@Mitzie> plenty of options: you can replace `sys.stdin` with a custom file-like object (for example, `io.StringIO()`), you can mock `yourmodule.input`, or you can mock `builtins.open` | 2017-11-05T01:23:46.000043 | Collette | pythondev_help_Collette_2017-11-05T01:23:46.000043 | 1,509,845,026.000043 | 99,271 |
pythondev | help | I would either go with replacing `sys.stdin` or exclude logic into a separate function, without calling `input` and test this function instead | 2017-11-05T01:24:36.000033 | Collette | pythondev_help_Collette_2017-11-05T01:24:36.000033 | 1,509,845,076.000033 | 99,272 |
pythondev | help | as I expect `input` to be tested by the python testing suite | 2017-11-05T01:24:48.000031 | Collette | pythondev_help_Collette_2017-11-05T01:24:48.000031 | 1,509,845,088.000031 | 99,273 |
pythondev | help | <@Collette> okay thanks! let me look into this | 2017-11-05T01:29:27.000010 | Mitzie | pythondev_help_Mitzie_2017-11-05T01:29:27.000010 | 1,509,845,367.00001 | 99,274 |
pythondev | help | I'm using six to provide py2 and py3 compatibility, but I'm not sure I understand this behaviour:
Python 2:
```>>> six.binary_type(0)
'0'
>>> six.binary_type(1)
'1'
>>> six.binary_type(2)
'2'
```
Python 3:
```>>> six.binary_type(0)
b''
>>> six.binary_type(1)
b'\x00'
>>... | 2017-11-05T07:36:14.000037 | Mirian | pythondev_help_Mirian_2017-11-05T07:36:14.000037 | 1,509,867,374.000037 | 99,275 |
pythondev | help | this is because of python3 | 2017-11-05T07:44:44.000036 | Porsha | pythondev_help_Porsha_2017-11-05T07:44:44.000036 | 1,509,867,884.000036 | 99,276 |
pythondev | help | in python2 bytes and str are the same | 2017-11-05T07:44:55.000074 | Porsha | pythondev_help_Porsha_2017-11-05T07:44:55.000074 | 1,509,867,895.000074 | 99,277 |
pythondev | help | in python3 there are unicode strings and bytes and bytearrays are different | 2017-11-05T07:45:22.000041 | Porsha | pythondev_help_Porsha_2017-11-05T07:45:22.000041 | 1,509,867,922.000041 | 99,278 |
pythondev | help | <@Porsha> does something like this make even sense?
```six.binary_type(str(0).encode())``` | 2017-11-05T07:50:48.000003 | Mirian | pythondev_help_Mirian_2017-11-05T07:50:48.000003 | 1,509,868,248.000003 | 99,279 |
pythondev | help | <@Mirian> I could be wrong but I do not get what the point of doing this is? | 2017-11-05T07:57:08.000018 | Porsha | pythondev_help_Porsha_2017-11-05T07:57:08.000018 | 1,509,868,628.000018 | 99,280 |
pythondev | help | six is for py2/3 compat, so you test for the two possible values of `six.binary_type` | 2017-11-05T07:57:48.000054 | Porsha | pythondev_help_Porsha_2017-11-05T07:57:48.000054 | 1,509,868,668.000054 | 99,281 |
pythondev | help | and then proceed accordingly | 2017-11-05T07:58:04.000033 | Porsha | pythondev_help_Porsha_2017-11-05T07:58:04.000033 | 1,509,868,684.000033 | 99,282 |
pythondev | help | or maybe I am missing the point | 2017-11-05T07:58:09.000015 | Porsha | pythondev_help_Porsha_2017-11-05T07:58:09.000015 | 1,509,868,689.000015 | 99,283 |
pythondev | help | In Python 2, `binary_type` is equivalent too `str`, in Python 3, it's `bytes`. They're defined and behave differently. | 2017-11-05T08:21:06.000029 | Louis | pythondev_help_Louis_2017-11-05T08:21:06.000029 | 1,509,870,066.000029 | 99,284 |
pythondev | help | <@Porsha> I've simplified this example, because there is a for loop there:
``` for i in range(5):
foo.create(Body=body)```
I expect the body to be `b'0'`, `b'1'` etc. | 2017-11-05T08:25:54.000053 | Mirian | pythondev_help_Mirian_2017-11-05T08:25:54.000053 | 1,509,870,354.000053 | 99,285 |
pythondev | help | I'd like to convert `0` to `b'0'` so it works in both version of Python, any tips? :slightly_smiling_face: | 2017-11-05T08:27:27.000038 | Mirian | pythondev_help_Mirian_2017-11-05T08:27:27.000038 | 1,509,870,447.000038 | 99,286 |
pythondev | help | uh yes | 2017-11-05T08:32:49.000001 | Porsha | pythondev_help_Porsha_2017-11-05T08:32:49.000001 | 1,509,870,769.000001 | 99,287 |
pythondev | help | then your above solution should work, I thought you were using `six` in some other way | 2017-11-05T08:34:35.000032 | Porsha | pythondev_help_Porsha_2017-11-05T08:34:35.000032 | 1,509,870,875.000032 | 99,288 |
pythondev | help | Can you explain the context, and why it has to be a binary instead of text string? | 2017-11-05T08:49:24.000002 | Louis | pythondev_help_Louis_2017-11-05T08:49:24.000002 | 1,509,871,764.000002 | 99,289 |
pythondev | help | Are you sure you don't just want text strings in both cases? | 2017-11-05T08:50:44.000056 | Louis | pythondev_help_Louis_2017-11-05T08:50:44.000056 | 1,509,871,844.000056 | 99,290 |
pythondev | help | thanks <@Porsha> :taco: | 2017-11-05T09:00:49.000015 | Mirian | pythondev_help_Mirian_2017-11-05T09:00:49.000015 | 1,509,872,449.000015 | 99,291 |
pythondev | help | I'm calling a method from a library and it expects binary string | 2017-11-05T09:01:53.000151 | Mirian | pythondev_help_Mirian_2017-11-05T09:01:53.000151 | 1,509,872,513.000151 | 99,292 |
pythondev | help | Then you probably want to generate it as a string, and encode it at the point of call with the appropriate encoding? | 2017-11-05T09:05:11.000043 | Louis | pythondev_help_Louis_2017-11-05T09:05:11.000043 | 1,509,872,711.000043 | 99,293 |
pythondev | help | ok, I think that's the right way to do it | 2017-11-05T09:08:02.000077 | Mirian | pythondev_help_Mirian_2017-11-05T09:08:02.000077 | 1,509,872,882.000077 | 99,294 |
pythondev | help | thanks <@Louis> :taco: | 2017-11-05T09:08:13.000074 | Mirian | pythondev_help_Mirian_2017-11-05T09:08:13.000074 | 1,509,872,893.000074 | 99,295 |
pythondev | help | Cool, this should hopefully make implicit encoding errors harder. :) | 2017-11-05T09:09:46.000064 | Louis | pythondev_help_Louis_2017-11-05T09:09:46.000064 | 1,509,872,986.000064 | 99,296 |
pythondev | help | ```
async def connect_socket(self):
async with websockets.connect('<wss://somewebsocketurl.com>') as websocket:
await websocket.send(json.dumps(subscribe))
while True:
message = await websocket.recv()
``` | 2017-11-05T09:28:32.000041 | Tyrone | pythondev_help_Tyrone_2017-11-05T09:28:32.000041 | 1,509,874,112.000041 | 99,297 |
pythondev | help | i want to pass the received message to a collection of objects without having to run connect_socket() collection.length times and without passing the collection to the connect_socket() method, how can i do that preferably? | 2017-11-05T09:34:56.000016 | Tyrone | pythondev_help_Tyrone_2017-11-05T09:34:56.000016 | 1,509,874,496.000016 | 99,298 |
pythondev | help | is there some event on message receive or something i could hook into or a way to run websocket.recv() somewhere outside the method? | 2017-11-05T09:36:31.000026 | Tyrone | pythondev_help_Tyrone_2017-11-05T09:36:31.000026 | 1,509,874,591.000026 | 99,299 |
pythondev | help | well there need to be a link between the two if you want to pass the message | 2017-11-05T09:42:46.000015 | Ciera | pythondev_help_Ciera_2017-11-05T09:42:46.000015 | 1,509,874,966.000015 | 99,300 |
pythondev | help | yes, but i dont know how to realize that. i am not quite sure also why connect_socket() which is run like `asyncio.get_event_loop().run_until_complete(connect_socket())` is blocking, code after that line isnt executed but it could solve my issue as well | 2017-11-05T09:47:31.000062 | Tyrone | pythondev_help_Tyrone_2017-11-05T09:47:31.000062 | 1,509,875,251.000062 | 99,301 |
pythondev | help | `run_until_complete` | 2017-11-05T09:49:34.000058 | Ciera | pythondev_help_Ciera_2017-11-05T09:49:34.000058 | 1,509,875,374.000058 | 99,302 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.