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 | what’s the browser dev tools response for the failed click? | 2019-05-30T11:33:47.105200 | Hiroko | pythondev_help_Hiroko_2019-05-30T11:33:47.105200 | 1,559,216,027.1052 | 25,921 |
pythondev | help | Ah nice! thanks for that | 2019-05-30T11:40:41.105300 | Conchita | pythondev_help_Conchita_2019-05-30T11:40:41.105300 | 1,559,216,441.1053 | 25,922 |
pythondev | help | <@Mi> Looks like this should do it:
```>>> a = 'api/customer/{$.orgid}/participant/{$.eid}'
>>> re.findall(r'{\$\.(.*?)}', a)
['orgid', 'eid']```
That's looking for a literal `{$.` and then grabs any characters until the next `}`. | 2019-05-30T12:07:24.106800 | Sasha | pythondev_help_Sasha_2019-05-30T12:07:24.106800 | 1,559,218,044.1068 | 25,923 |
pythondev | help | Thanks a lot!!! | 2019-05-30T12:23:54.107200 | Mi | pythondev_help_Mi_2019-05-30T12:23:54.107200 | 1,559,219,034.1072 | 25,924 |
pythondev | help | Hey quick question | 2019-05-30T12:46:20.107600 | Rolando | pythondev_help_Rolando_2019-05-30T12:46:20.107600 | 1,559,220,380.1076 | 25,925 |
pythondev | help | What happens if a i have and operator in an if for example
```if 'collector' not in keys and row['collector']:
``` if the first is false, does it evaluates the next condition ? | 2019-05-30T12:47:27.108800 | Rolando | pythondev_help_Rolando_2019-05-30T12:47:27.108800 | 1,559,220,447.1088 | 25,926 |
pythondev | help | or it will jump to the next line because the statement wont be true due to the first condition being False? | 2019-05-30T12:47:59.109400 | Rolando | pythondev_help_Rolando_2019-05-30T12:47:59.109400 | 1,559,220,479.1094 | 25,927 |
pythondev | help | The `and` and `or` operators will indeed short-circuit, so the second clause wouldn't be evaluated. | 2019-05-30T12:48:56.110300 | Sasha | pythondev_help_Sasha_2019-05-30T12:48:56.110300 | 1,559,220,536.1103 | 25,928 |
pythondev | help | The left clause will be evaluated first, and then the right one only if the first one is False | 2019-05-30T12:49:00.110400 | Mayra | pythondev_help_Mayra_2019-05-30T12:49:00.110400 | 1,559,220,540.1104 | 25,929 |
pythondev | help | Cool thats what i thought, thanks guys | 2019-05-30T12:49:29.110700 | Rolando | pythondev_help_Rolando_2019-05-30T12:49:29.110700 | 1,559,220,569.1107 | 25,930 |
pythondev | help | and if we put parans around `if 'collector' not in (keys and row['collector']):`? | 2019-05-30T12:54:41.111600 | Raguel | pythondev_help_Raguel_2019-05-30T12:54:41.111600 | 1,559,220,881.1116 | 25,931 |
pythondev | help | That's a little weird. If `keys` is non-empty, it would check if `'collector'` was in `keys`. If `keys` is empty, it would check if `'collector'` was in `row['collector']`. But it won't check if it's in both, as you might expect from English grammar. (Edit: this is wrong, see below.) | 2019-05-30T13:01:47.113800 | Sasha | pythondev_help_Sasha_2019-05-30T13:01:47.113800 | 1,559,221,307.1138 | 25,932 |
pythondev | help | yes i didnt met not in | 2019-05-30T13:04:12.114000 | Rolando | pythondev_help_Rolando_2019-05-30T13:04:12.114000 | 1,559,221,452.114 | 25,933 |
pythondev | help | ment in | 2019-05-30T13:04:13.114300 | Rolando | pythondev_help_Rolando_2019-05-30T13:04:13.114300 | 1,559,221,453.1143 | 25,934 |
pythondev | help | but the real question was about the evaluation if the first one was false | 2019-05-30T13:04:27.114700 | Rolando | pythondev_help_Rolando_2019-05-30T13:04:27.114700 | 1,559,221,467.1147 | 25,935 |
pythondev | help | was feeling blank that would be printed so just started checking what gets printed | 2019-05-30T13:13:14.115000 | Raguel | pythondev_help_Raguel_2019-05-30T13:13:14.115000 | 1,559,221,994.115 | 25,936 |
pythondev | help | Actually what I said above was for `or` logic, so I got it wrong, oops. | 2019-05-30T13:19:44.116100 | Sasha | pythondev_help_Sasha_2019-05-30T13:19:44.116100 | 1,559,222,384.1161 | 25,937 |
pythondev | help | so it goes like this that if it is `(True or False)`, it will evaluate to `True` and so on, right? | 2019-05-30T13:23:43.117500 | Raguel | pythondev_help_Raguel_2019-05-30T13:23:43.117500 | 1,559,222,623.1175 | 25,938 |
pythondev | help | `if 'this' in (a and b):` doesn’t look right to me if `a` and `b` are lists
```
>>> ['this', 'that', 'thee'] and ['no', 'not', 'nope']
['no', 'not', 'nope']
``` | 2019-05-30T16:52:53.120400 | Brain | pythondev_help_Brain_2019-05-30T16:52:53.120400 | 1,559,235,173.1204 | 25,939 |
pythondev | help | <@Brain> that's because it won't work. The `and` operator in this case is leveraging "truthiness" | 2019-05-30T17:01:00.121200 | Ashley | pythondev_help_Ashley_2019-05-30T17:01:00.121200 | 1,559,235,660.1212 | 25,940 |
pythondev | help | basically, `a` is considered "truthy", so it moves on to `b` | 2019-05-30T17:01:22.121700 | Ashley | pythondev_help_Ashley_2019-05-30T17:01:22.121700 | 1,559,235,682.1217 | 25,941 |
pythondev | help | because `b` is also "truthy", the whole statement evaluates to `b` | 2019-05-30T17:01:43.122200 | Ashley | pythondev_help_Ashley_2019-05-30T17:01:43.122200 | 1,559,235,703.1222 | 25,942 |
pythondev | help | e.g. | 2019-05-30T17:01:54.122400 | Ashley | pythondev_help_Ashley_2019-05-30T17:01:54.122400 | 1,559,235,714.1224 | 25,943 |
pythondev | help | ```
>>> [1,2,3] and [4,5,6]
[4, 5, 6]
>>>
``` | 2019-05-30T17:02:01.122700 | Ashley | pythondev_help_Ashley_2019-05-30T17:02:01.122700 | 1,559,235,721.1227 | 25,944 |
pythondev | help | it's kind of the opposite of a shortcircuit | 2019-05-30T17:02:21.123000 | Ashley | pythondev_help_Ashley_2019-05-30T17:02:21.123000 | 1,559,235,741.123 | 25,945 |
pythondev | help | if you look at the `or` operator, it has similar logic | 2019-05-30T17:02:31.123300 | Ashley | pythondev_help_Ashley_2019-05-30T17:02:31.123300 | 1,559,235,751.1233 | 25,946 |
pythondev | help | but stops at the first "truthy" thing and just evaluates to that | 2019-05-30T17:02:48.123700 | Ashley | pythondev_help_Ashley_2019-05-30T17:02:48.123700 | 1,559,235,768.1237 | 25,947 |
pythondev | help | e.g. | 2019-05-30T17:03:04.124100 | Ashley | pythondev_help_Ashley_2019-05-30T17:03:04.124100 | 1,559,235,784.1241 | 25,948 |
pythondev | help | ```
>>> [1,2,3] or [4,5,6]
[1, 2, 3]
>>>
``` | 2019-05-30T17:03:12.124400 | Ashley | pythondev_help_Ashley_2019-05-30T17:03:12.124400 | 1,559,235,792.1244 | 25,949 |
pythondev | help | basically, whichever thing in the comparison answers the "question" is what the comparison resolves to | 2019-05-30T17:03:56.125100 | Ashley | pythondev_help_Ashley_2019-05-30T17:03:56.125100 | 1,559,235,836.1251 | 25,950 |
pythondev | help | for example | 2019-05-30T17:04:04.125400 | Ashley | pythondev_help_Ashley_2019-05-30T17:04:04.125400 | 1,559,235,844.1254 | 25,951 |
pythondev | help | ```
>>> False and [1,2,3]
False
>>>
``` | 2019-05-30T17:04:12.125700 | Ashley | pythondev_help_Ashley_2019-05-30T17:04:12.125700 | 1,559,235,852.1257 | 25,952 |
pythondev | help | ```
>>> [] and [1,2,3]
[]
>>>
``` | 2019-05-30T17:04:35.126100 | Ashley | pythondev_help_Ashley_2019-05-30T17:04:35.126100 | 1,559,235,875.1261 | 25,953 |
pythondev | help | it really doesn't care about the `[1,2,3]` in the last two examples, because it already knew the answer to the "question" after looking at the first thing | 2019-05-30T17:05:02.127000 | Ashley | pythondev_help_Ashley_2019-05-30T17:05:02.127000 | 1,559,235,902.127 | 25,954 |
pythondev | help | you;d need to do two separate `in` evaluations | 2019-05-30T17:05:35.128500 | Hiroko | pythondev_help_Hiroko_2019-05-30T17:05:35.128500 | 1,559,235,935.1285 | 25,955 |
pythondev | help | you can’t say “hey, for this one thing, I want you to look in two lists at once” | 2019-05-30T17:05:50.129400 | Hiroko | pythondev_help_Hiroko_2019-05-30T17:05:50.129400 | 1,559,235,950.1294 | 25,956 |
pythondev | help | well I wouldn’t say this won’t work.
For example, `>>> 'this' in (True and ['this', 'that'])` will work, but I wouldn’t approve such PR :smile: | 2019-05-30T17:06:06.130300 | Brain | pythondev_help_Brain_2019-05-30T17:06:06.130300 | 1,559,235,966.1303 | 25,957 |
pythondev | help | Hi — I am wondering if someone can explain how to create an empty base python virtual environment for a Heroku deployment. If I do something like `conda create --name empty_env python=3.7` it wants to install quite a few packages (`ca-certificates`, `sqlite`, etc.). How can I be sure my new environment only has what it needs? Thanks! | 2019-05-30T17:06:11.130500 | Nicky | pythondev_help_Nicky_2019-05-30T17:06:11.130500 | 1,559,235,971.1305 | 25,958 |
pythondev | help | it works out in an actual `if` statement, because whichever it resolves to will also be evaluated based on its truthiness | 2019-05-30T17:06:12.130600 | Ashley | pythondev_help_Ashley_2019-05-30T17:06:12.130600 | 1,559,235,972.1306 | 25,959 |
pythondev | help | <@Brain> the reason that works is because `(True and ['this', 'that'])` evaluates to just `['this', 'that']` | 2019-05-30T17:07:05.131900 | Ashley | pythondev_help_Ashley_2019-05-30T17:07:05.131900 | 1,559,236,025.1319 | 25,960 |
pythondev | help | the `True and` is moot | 2019-05-30T17:07:10.132200 | Ashley | pythondev_help_Ashley_2019-05-30T17:07:10.132200 | 1,559,236,030.1322 | 25,961 |
pythondev | help | Salmon, that wasn’t me who asked the question | 2019-05-30T17:07:31.132600 | Brain | pythondev_help_Brain_2019-05-30T17:07:31.132600 | 1,559,236,051.1326 | 25,962 |
pythondev | help | I just mentioned that `if 'this' in (a and b):` doesn’t look right | 2019-05-30T17:07:55.133100 | Brain | pythondev_help_Brain_2019-05-30T17:07:55.133100 | 1,559,236,075.1331 | 25,963 |
pythondev | help | oh woops :joy: | 2019-05-30T17:07:55.133200 | Ashley | pythondev_help_Ashley_2019-05-30T17:07:55.133200 | 1,559,236,075.1332 | 25,964 |
pythondev | help | <@Raguel> read above for the explanation | 2019-05-30T17:08:10.133500 | Ashley | pythondev_help_Ashley_2019-05-30T17:08:10.133500 | 1,559,236,090.1335 | 25,965 |
pythondev | help | :eyes: | 2019-05-30T17:08:22.133900 | Raguel | pythondev_help_Raguel_2019-05-30T17:08:22.133900 | 1,559,236,102.1339 | 25,966 |
pythondev | help | you can also do `if 'this' in (*a, *b):` | 2019-05-30T17:08:39.134300 | Ashley | pythondev_help_Ashley_2019-05-30T17:08:39.134300 | 1,559,236,119.1343 | 25,967 |
pythondev | help | I was just trying to wrap my head around truthiness actually by trying different combinations | 2019-05-30T17:11:32.135400 | Raguel | pythondev_help_Raguel_2019-05-30T17:11:32.135400 | 1,559,236,292.1354 | 25,968 |
pythondev | help | There's a list of things that are considered falsey somewhere | 2019-05-30T17:18:03.135900 | Ashley | pythondev_help_Ashley_2019-05-30T17:18:03.135900 | 1,559,236,683.1359 | 25,969 |
pythondev | help | Pretty much everything else is considered truthy | 2019-05-30T17:18:14.136300 | Ashley | pythondev_help_Ashley_2019-05-30T17:18:14.136300 | 1,559,236,694.1363 | 25,970 |
pythondev | help | still not sure why this evaluates to latter here? | 2019-05-30T17:44:43.136700 | Raguel | pythondev_help_Raguel_2019-05-30T17:44:43.136700 | 1,559,238,283.1367 | 25,971 |
pythondev | help | and if we do `['this', 'that'] and True`, it evaluates to `True` | 2019-05-30T17:45:19.136900 | Raguel | pythondev_help_Raguel_2019-05-30T17:45:19.136900 | 1,559,238,319.1369 | 25,972 |
pythondev | help | Because the first thing didn't fully answer the question. Both have to be truthy, so if the first one was truthy, then the only thing that matters is the 2nd thing | 2019-05-30T18:30:09.137500 | Ashley | pythondev_help_Ashley_2019-05-30T18:30:09.137500 | 1,559,241,009.1375 | 25,973 |
pythondev | help | If the 2nd thing is truthy, then that fully answers the question | 2019-05-30T18:30:45.137700 | Ashley | pythondev_help_Ashley_2019-05-30T18:30:45.137700 | 1,559,241,045.1377 | 25,974 |
pythondev | help | So I learned something new in class, apparently comparing floats in java is a no-no using >==< operators is this true in python even if the float is only one decimal place? like `x <= 16.5`? | 2019-05-30T18:45:11.139900 | Priscilla | pythondev_help_Priscilla_2019-05-30T18:45:11.139900 | 1,559,241,911.1399 | 25,975 |
pythondev | help | <https://www.python.org/dev/peps/pep-0485/> | 2019-05-30T18:50:17.140800 | Hiroko | pythondev_help_Hiroko_2019-05-30T18:50:17.140800 | 1,559,242,217.1408 | 25,976 |
pythondev | help | I'm not sure what the Java warning is about, but floats can be inherently weird at edge cases:
```>>> 0.2 == 2 * 0.1
True
>>> 0.3 == 3 * 0.1
False
>>> 0.3 < 3 * 0.1
True``` | 2019-05-30T18:51:04.141100 | Sasha | pythondev_help_Sasha_2019-05-30T18:51:04.141100 | 1,559,242,264.1411 | 25,977 |
pythondev | help | Under the hood:
```>>> 0.2
0.20000000000000001
>>> 0.3
0.29999999999999999``` | 2019-05-30T18:52:24.141500 | Sasha | pythondev_help_Sasha_2019-05-30T18:52:24.141500 | 1,559,242,344.1415 | 25,978 |
pythondev | help | that’s why PEP485 added a few things to python 3.5 | 2019-05-30T18:52:51.141900 | Hiroko | pythondev_help_Hiroko_2019-05-30T18:52:51.141900 | 1,559,242,371.1419 | 25,979 |
pythondev | help | and thats why `assertAlmostEqual` is part of the unittest lib | 2019-05-30T18:53:21.142800 | Hiroko | pythondev_help_Hiroko_2019-05-30T18:53:21.142800 | 1,559,242,401.1428 | 25,980 |
pythondev | help | great link <@Hiroko> thank you! | 2019-05-30T18:53:29.142900 | Priscilla | pythondev_help_Priscilla_2019-05-30T18:53:29.142900 | 1,559,242,409.1429 | 25,981 |
pythondev | help | Just saw this. Did you make any headway? | 2019-05-30T19:23:05.143000 | Ashely | pythondev_help_Ashely_2019-05-30T19:23:05.143000 | 1,559,244,185.143 | 25,982 |
pythondev | help | I'm thinking my best chance for success is going to be preformatting/parsing before it goes in. Flatten it a bit so it can be accessed easier as a DB object. | 2019-05-30T19:24:43.143200 | Ashely | pythondev_help_Ashely_2019-05-30T19:24:43.143200 | 1,559,244,283.1432 | 25,983 |
pythondev | help | Not a magical stroke of python genius, but closer to what I do for a living anyway | 2019-05-30T19:25:25.143400 | Ashely | pythondev_help_Ashely_2019-05-30T19:25:25.143400 | 1,559,244,325.1434 | 25,984 |
pythondev | help | Ah makes sense. Forgot I was using `and`! | 2019-05-30T19:31:11.144900 | Raguel | pythondev_help_Raguel_2019-05-30T19:31:11.144900 | 1,559,244,671.1449 | 25,985 |
pythondev | help | <@Ashley> :taco: | 2019-05-30T19:34:19.146000 | Raguel | pythondev_help_Raguel_2019-05-30T19:34:19.146000 | 1,559,244,859.146 | 25,986 |
pythondev | help | So I am not seeing a way to compare a float to 2 other floats, like making sure that x is between 13.1 and 16.5 right now I am doing this. Do you think I should find the number in between and make the tolerance span the whole tolerance? | 2019-05-30T19:34:50.146700 | Priscilla | pythondev_help_Priscilla_2019-05-30T19:34:50.146700 | 1,559,244,890.1467 | 25,987 |
pythondev | help | Anytime you're comparing float equality you should have a tolerance such that `abs(x - y) < tol` | 2019-05-30T19:41:17.152000 | Bethany | pythondev_help_Bethany_2019-05-30T19:41:17.152000 | 1,559,245,277.152 | 25,988 |
pythondev | help | However in your case it might be reasonable to not do that, as you're checking if your value is within a range | 2019-05-30T19:41:45.152700 | Bethany | pythondev_help_Bethany_2019-05-30T19:41:45.152700 | 1,559,245,305.1527 | 25,989 |
pythondev | help | Depending on your domain, does it matter if you're wrong within 1e-15 of the edge? | 2019-05-30T19:42:27.153700 | Bethany | pythondev_help_Bethany_2019-05-30T19:42:27.153700 | 1,559,245,347.1537 | 25,990 |
pythondev | help | hmm that wasnt defined in the specs I was given. | 2019-05-30T19:44:09.155800 | Priscilla | pythondev_help_Priscilla_2019-05-30T19:44:09.155800 | 1,559,245,449.1558 | 25,991 |
pythondev | help | the only thing they said was the measured value must be between 13.1 and 16.5 vDC | 2019-05-30T19:45:03.157000 | Priscilla | pythondev_help_Priscilla_2019-05-30T19:45:03.157000 | 1,559,245,503.157 | 25,992 |
pythondev | help | so I dont think its bad if its wrong within 1e-15 | 2019-05-30T19:45:31.157500 | Priscilla | pythondev_help_Priscilla_2019-05-30T19:45:31.157500 | 1,559,245,531.1575 | 25,993 |
pythondev | help | I have this class that represents gas properties and its attributes are used by various chemical reaction functions and other types of engineering calculations. I’m not entirely clear on how to use the various aspects (properties, class methods, static methods, etc.) of classes in Python so I would love to get some feedback on the construction of this class. Please provide feedback in a Thread so I don’t miss anything. Thanks. | 2019-05-30T19:50:59.157600 | Fawn | pythondev_help_Fawn_2019-05-30T19:50:59.157600 | 1,559,245,859.1576 | 25,994 |
pythondev | help | neat I think i found it I can just round to 1 decimal place. :smile:
`if lower <= float_tp4 <= upper and round(float_tp4, 1) == float_tp4` | 2019-05-30T19:58:14.158500 | Priscilla | pythondev_help_Priscilla_2019-05-30T19:58:14.158500 | 1,559,246,294.1585 | 25,995 |
pythondev | help | ```I have this class that represents gas properties and its attributes are used by various chemical reaction functions and other types of engineering calculations. I’m not entirely clear on how to use the various aspects (properties, class methods, static methods, etc.) of classes in Python so I would love to get some feedback on the construction of this class. Please provide feedback in a Thread so I don’t miss anything. Thanks.``` | 2019-05-30T20:52:15.159400 | Leana | pythondev_help_Leana_2019-05-30T20:52:15.159400 | 1,559,249,535.1594 | 25,996 |
pythondev | help | oops, didnt mean to post that from bot | 2019-05-30T20:52:56.159900 | Priscilla | pythondev_help_Priscilla_2019-05-30T20:52:56.159900 | 1,559,249,576.1599 | 25,997 |
pythondev | help | does anyone have library or information recommendations in regards to designing simulations? | 2019-05-31T01:12:21.164000 | Krishna | pythondev_help_Krishna_2019-05-31T01:12:21.164000 | 1,559,265,141.164 | 25,998 |
pythondev | help | I'm trying to implement Firestore into a script i'm running in a Google Cloud Function. The script works fine locally, but when deployed as a Cloud Function I'm getting this traceback:
```File "/user_code/main.py", line 97, in format_response inject_message(threadId, msg) File "/user_code/main.py", line 34, in inject_message doc_ref = db.collection(thread).document() File "/env/local/lib/python3.7/site-packages/google/cloud/firestore_v1/client.py", line 192, in collection path = collection_path[0].split(_helpers.DOCUMENT_PATH_DELIMITER) AttributeError: 'dict' object has no attribute 'split'``` | 2019-05-31T01:19:10.165100 | Conchita | pythondev_help_Conchita_2019-05-31T01:19:10.165100 | 1,559,265,550.1651 | 25,999 |
pythondev | help | I'm not sure about that, sorry. Details on your avatar? | 2019-05-31T01:19:47.165400 | Conchita | pythondev_help_Conchita_2019-05-31T01:19:47.165400 | 1,559,265,587.1654 | 26,000 |
pythondev | help | Something weird seems to be going on there... it's acting as if `data` were being passed as the `thread` parameter instead. I'm thinking that either there's a different version of the code running than what you think, or else there's some extra context in your full code which is altering the behavior. | 2019-05-31T01:30:57.167900 | Sasha | pythondev_help_Sasha_2019-05-31T01:30:57.167900 | 1,559,266,257.1679 | 26,001 |
pythondev | help | Hmm I took another approach to this and then the traceback is authentication issues :woman-facepalming: | 2019-05-31T01:37:17.168900 | Conchita | pythondev_help_Conchita_2019-05-31T01:37:17.168900 | 1,559,266,637.1689 | 26,002 |
pythondev | help | I have a question, might be a stupid one:
I'm implementing grafanalib to convert our monitoring system to IaC and have this folder structure:
`-- dashboards
`-- CustomMetrics
|-- CustomMetrics-DEV.py
|-- __init__.py
`-- rows
|-- EC2Scaling
| `-- panels
| `-- __init__.py
|-- HealthCheck
| `-- panels
| `-- __init__.py
|-- HeapUsage
| `-- panels
| `-- __init__.py
|-- InstanceCount
| |-- InstanceCount.py
| |-- __init__.py
| `-- panels
| |-- InstanceCountForCommon.py
| `-- __init__.py
`-- TaskCount
`-- panels
`-- __init__.py
Now my question is, how can I import all py files from top .py (CustomMetrics-DEV.py) recursively. I need to do this because I pass objects from sub .py files to parent ones. They are nested. I made it this way because I wanted it to be modular. I couldn't find a relevant question on the internet. | 2019-05-31T01:58:19.172800 | Manual | pythondev_help_Manual_2019-05-31T01:58:19.172800 | 1,559,267,899.1728 | 26,003 |
pythondev | help | ```
Which is better?
- list(map(str.lower, comma_separated_string.split(',')))
- [x.lower() for x in comma_separated_string.split(',')]
``` | 2019-05-31T02:19:38.174100 | Chrystal | pythondev_help_Chrystal_2019-05-31T02:19:38.174100 | 1,559,269,178.1741 | 26,004 |
pythondev | help | 1st one is more pythonic, but performance wise 2nd is better since lambda evaluation is slow. | 2019-05-31T02:22:19.175400 | Chrystal | pythondev_help_Chrystal_2019-05-31T02:22:19.175400 | 1,559,269,339.1754 | 26,005 |
pythondev | help | any channel related to blockchain? | 2019-05-31T02:40:04.175800 | Johnetta | pythondev_help_Johnetta_2019-05-31T02:40:04.175800 | 1,559,270,404.1758 | 26,006 |
pythondev | help | The market aspects come up in <#C6LAK3SKE|etc_finance> reasonably often, but there's not a good home for the technical angle. | 2019-05-31T02:42:09.176600 | Sasha | pythondev_help_Sasha_2019-05-31T02:42:09.176600 | 1,559,270,529.1766 | 26,007 |
pythondev | help | Anyone ever looked at Bismuth? | 2019-05-31T02:42:44.176900 | Conchita | pythondev_help_Conchita_2019-05-31T02:42:44.176900 | 1,559,270,564.1769 | 26,008 |
pythondev | help | Its a coin built with Python | 2019-05-31T02:43:02.177300 | Conchita | pythondev_help_Conchita_2019-05-31T02:43:02.177300 | 1,559,270,582.1773 | 26,009 |
pythondev | help | <@Chrystal> list comprehensions are actually pythonic, and there are no lambdas in #1 | 2019-05-31T02:58:01.178100 | Jettie | pythondev_help_Jettie_2019-05-31T02:58:01.178100 | 1,559,271,481.1781 | 26,010 |
pythondev | help | they are not pythonic if they are unwieldy | 2019-05-31T02:58:10.178400 | Jettie | pythondev_help_Jettie_2019-05-31T02:58:10.178400 | 1,559,271,490.1784 | 26,011 |
pythondev | help | Hi guys,
Do you know if is there a way to read the test cases from a file?
I am using pytest, and at the moment my test looks like this:
```
@pytest.mark.parametrize("field1, field2", [
('test 1 log string', ['result', 'expected', 'as', 'a', 'list'),
('test 2 log string', ['result', 'expected', 'as', 'a', 'list'),
[...]
])
def test_fun(field1, field2):
assert ....
``` | 2019-05-31T03:34:52.182200 | Alicia | pythondev_help_Alicia_2019-05-31T03:34:52.182200 | 1,559,273,692.1822 | 26,012 |
pythondev | help | ```
def params_from_file(path):
with open(path, 'rt') as f:
return json.load(f)
@pytest.mark.parametrize('field1, field2', params_from_file('1.json'))``` | 2019-05-31T04:06:47.183600 | Jettie | pythondev_help_Jettie_2019-05-31T04:06:47.183600 | 1,559,275,607.1836 | 26,013 |
pythondev | help | There is a 502 error | 2019-05-31T04:49:32.183900 | Arturo | pythondev_help_Arturo_2019-05-31T04:49:32.183900 | 1,559,278,172.1839 | 26,014 |
pythondev | help | hey all | 2019-05-31T05:41:41.184600 | Eugenio | pythondev_help_Eugenio_2019-05-31T05:41:41.184600 | 1,559,281,301.1846 | 26,015 |
pythondev | help | what should i be using for dependency management now? | 2019-05-31T05:41:49.184900 | Eugenio | pythondev_help_Eugenio_2019-05-31T05:41:49.184900 | 1,559,281,309.1849 | 26,016 |
pythondev | help | like making sure my app can get the right python version and packages? | 2019-05-31T05:42:13.185500 | Eugenio | pythondev_help_Eugenio_2019-05-31T05:42:13.185500 | 1,559,281,333.1855 | 26,017 |
pythondev | help | python versions can be managed using `pyenv`. For package management, you've got a host of choices, I'd recommend either `pipenv` or `poetry` | 2019-05-31T05:45:22.186100 | Mica | pythondev_help_Mica_2019-05-31T05:45:22.186100 | 1,559,281,522.1861 | 26,018 |
pythondev | help | thanks | 2019-05-31T05:55:04.186600 | Eugenio | pythondev_help_Eugenio_2019-05-31T05:55:04.186600 | 1,559,282,104.1866 | 26,019 |
pythondev | help | ill look into poetry because i havent heard of that before | 2019-05-31T05:55:21.187000 | Eugenio | pythondev_help_Eugenio_2019-05-31T05:55:21.187000 | 1,559,282,121.187 | 26,020 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.