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 | got you ryan..will work on it and get back to you | 2019-05-23T12:07:04.142500 | Hana | pythondev_help_Hana_2019-05-23T12:07:04.142500 | 1,558,613,224.1425 | 25,021 |
pythondev | help | The keyword you're needing for that type of vulnerability is "SQL injection". | 2019-05-23T12:10:29.143200 | Carmen | pythondev_help_Carmen_2019-05-23T12:10:29.143200 | 1,558,613,429.1432 | 25,022 |
pythondev | help | lol yeah | 2019-05-23T12:11:16.144100 | Holly | pythondev_help_Holly_2019-05-23T12:11:16.144100 | 1,558,613,476.1441 | 25,023 |
pythondev | help | There's an insane amount written about it, since it's one of the oldest and most venerable exploits for websites, pretty much since the web started and people were running database-driven websites. | 2019-05-23T12:11:20.144300 | Carmen | pythondev_help_Carmen_2019-05-23T12:11:20.144300 | 1,558,613,480.1443 | 25,024 |
pythondev | help | its also one of the most common due to api construction and data validation being missed :slightly_smiling_face: | 2019-05-23T12:11:53.144800 | Holly | pythondev_help_Holly_2019-05-23T12:11:53.144800 | 1,558,613,513.1448 | 25,025 |
pythondev | help | love me some pen testing | 2019-05-23T12:11:59.145000 | Holly | pythondev_help_Holly_2019-05-23T12:11:59.145000 | 1,558,613,519.145 | 25,026 |
pythondev | help | just so happens python is also the best language to write those types of tools in too :smile: | 2019-05-23T12:13:25.145300 | Holly | pythondev_help_Holly_2019-05-23T12:13:25.145300 | 1,558,613,605.1453 | 25,027 |
pythondev | help | Glad to be a part in this group of experts..looking forward to learn a lot from you guys :slightly_smiling_face: | 2019-05-23T12:32:19.146100 | Hana | pythondev_help_Hana_2019-05-23T12:32:19.146100 | 1,558,614,739.1461 | 25,028 |
pythondev | help | keep the hunger <@Hana>! | 2019-05-23T12:33:44.146400 | Holly | pythondev_help_Holly_2019-05-23T12:33:44.146400 | 1,558,614,824.1464 | 25,029 |
pythondev | help | getting an odd index out of range issue on a `range(len(listvar))` loop and I'm not sure why | 2019-05-23T13:14:44.147300 | Holly | pythondev_help_Holly_2019-05-23T13:14:44.147300 | 1,558,617,284.1473 | 25,030 |
pythondev | help | ```
def toHits(rolls,toHit):
for i in range(len(rolls)):
print("Array Index ",i)
if rolls[i] < toHit:
del rolls[i]
return rolls
``` | 2019-05-23T13:14:47.147500 | Holly | pythondev_help_Holly_2019-05-23T13:14:47.147500 | 1,558,617,287.1475 | 25,031 |
pythondev | help | I tried doing `range(len(rolls)-1))` which threw the same error | 2019-05-23T13:14:59.147900 | Holly | pythondev_help_Holly_2019-05-23T13:14:59.147900 | 1,558,617,299.1479 | 25,032 |
pythondev | help | it seems like its constantly trying to do len+1 | 2019-05-23T13:15:11.148200 | Holly | pythondev_help_Holly_2019-05-23T13:15:11.148200 | 1,558,617,311.1482 | 25,033 |
pythondev | help | ```
rray Index 0
Array Index 1
Array Index 2
Array Index 3
Traceback (most recent call last):
File "probability.py", line 51, in <module>
hits = toHits(rollCounts, int(toHit))
File "probability.py", line 18, in toHits
if rolls[i] < toHit:
IndexError: list index out of range
``` | 2019-05-23T13:15:44.148400 | Holly | pythondev_help_Holly_2019-05-23T13:15:44.148400 | 1,558,617,344.1484 | 25,034 |
pythondev | help | not sure why its triggering there unless there's something I'm missing | 2019-05-23T13:16:05.148900 | Holly | pythondev_help_Holly_2019-05-23T13:16:05.148900 | 1,558,617,365.1489 | 25,035 |
pythondev | help | you are iterating through the length of rolls, but changing the length inside the loop with `del rolls[i]` | 2019-05-23T13:16:31.149500 | Clemmie | pythondev_help_Clemmie_2019-05-23T13:16:31.149500 | 1,558,617,391.1495 | 25,036 |
pythondev | help | hmmm, I thought order of operations would negate that | 2019-05-23T13:16:51.150200 | Holly | pythondev_help_Holly_2019-05-23T13:16:51.150200 | 1,558,617,411.1502 | 25,037 |
pythondev | help | since the length is evaluated at the beginning, if you del even one you will get an index error | 2019-05-23T13:16:52.150300 | Clemmie | pythondev_help_Clemmie_2019-05-23T13:16:52.150300 | 1,558,617,412.1503 | 25,038 |
pythondev | help | yeah makes sense | 2019-05-23T13:16:57.150500 | Holly | pythondev_help_Holly_2019-05-23T13:16:57.150500 | 1,558,617,417.1505 | 25,039 |
pythondev | help | I guess I should just append the values to a new list | 2019-05-23T13:17:03.150800 | Holly | pythondev_help_Holly_2019-05-23T13:17:03.150800 | 1,558,617,423.1508 | 25,040 |
pythondev | help | that makes sense | 2019-05-23T13:17:08.151100 | Holly | pythondev_help_Holly_2019-05-23T13:17:08.151100 | 1,558,617,428.1511 | 25,041 |
pythondev | help | you could, or just use a list comprehension, it's cleaner | 2019-05-23T13:17:22.151600 | Clemmie | pythondev_help_Clemmie_2019-05-23T13:17:22.151600 | 1,558,617,442.1516 | 25,042 |
pythondev | help | this loop is the perfect moment to introduce filter too | 2019-05-23T13:17:25.151900 | Carlo | pythondev_help_Carlo_2019-05-23T13:17:25.151900 | 1,558,617,445.1519 | 25,043 |
pythondev | help | I'd love to use a list comprehension I'm just so bad at them | 2019-05-23T13:17:40.152800 | Holly | pythondev_help_Holly_2019-05-23T13:17:40.152800 | 1,558,617,460.1528 | 25,044 |
pythondev | help | lol | 2019-05-23T13:17:42.153000 | Holly | pythondev_help_Holly_2019-05-23T13:17:42.153000 | 1,558,617,462.153 | 25,045 |
pythondev | help | You can also iterate from the end of the list down to the beginning. | 2019-05-23T13:17:42.153100 | Sasha | pythondev_help_Sasha_2019-05-23T13:17:42.153100 | 1,558,617,462.1531 | 25,046 |
pythondev | help | probably a could opportunity to learn | 2019-05-23T13:17:46.153400 | Holly | pythondev_help_Holly_2019-05-23T13:17:46.153400 | 1,558,617,466.1534 | 25,047 |
pythondev | help | <@Sasha> that's also a good thought | 2019-05-23T13:17:56.153700 | Holly | pythondev_help_Holly_2019-05-23T13:17:56.153700 | 1,558,617,476.1537 | 25,048 |
pythondev | help | `return [roll for roll in rolls if roll >= to_hit]` | 2019-05-23T13:18:05.153900 | Clemmie | pythondev_help_Clemmie_2019-05-23T13:18:05.153900 | 1,558,617,485.1539 | 25,049 |
pythondev | help | yeah, you also don't need the length and i, just iterating through the objects. But deleting from your iterator while iterating is almost always going to cause problems at some point | 2019-05-23T13:18:53.155100 | Clemmie | pythondev_help_Clemmie_2019-05-23T13:18:53.155100 | 1,558,617,533.1551 | 25,050 |
pythondev | help | that makes perfect sense | 2019-05-23T13:19:09.155500 | Holly | pythondev_help_Holly_2019-05-23T13:19:09.155500 | 1,558,617,549.1555 | 25,051 |
pythondev | help | <@Clemmie> <@Sasha> <@Carlo> :taco: | 2019-05-23T13:19:28.156100 | Holly | pythondev_help_Holly_2019-05-23T13:19:28.156100 | 1,558,617,568.1561 | 25,052 |
pythondev | help | <@Holly> just think of list comprehentions as "[return this] for [each item in items] if [condition]" | 2019-05-23T13:19:34.156300 | Carlo | pythondev_help_Carlo_2019-05-23T13:19:34.156300 | 1,558,617,574.1563 | 25,053 |
pythondev | help | :+1: | 2019-05-23T13:20:21.156800 | Holly | pythondev_help_Holly_2019-05-23T13:20:21.156800 | 1,558,617,621.1568 | 25,054 |
pythondev | help | that's actually a huge help | 2019-05-23T13:20:25.157000 | Holly | pythondev_help_Holly_2019-05-23T13:20:25.157000 | 1,558,617,625.157 | 25,055 |
pythondev | help | always been my weak point | 2019-05-23T13:20:30.157200 | Holly | pythondev_help_Holly_2019-05-23T13:20:30.157200 | 1,558,617,630.1572 | 25,056 |
pythondev | help | when you need to return a list derived from another list, you can often immediately start looking at comprehensions | 2019-05-23T13:21:42.158100 | Carlo | pythondev_help_Carlo_2019-05-23T13:21:42.158100 | 1,558,617,702.1581 | 25,057 |
pythondev | help | yeah, makse sense | 2019-05-23T13:34:53.158700 | Holly | pythondev_help_Holly_2019-05-23T13:34:53.158700 | 1,558,618,493.1587 | 25,058 |
pythondev | help | I'd like to write a program which would perform some activities exactly when the time reaches for my defined value. For example I want to print('hello world') when the system time reaches 8AM and print("second task") when the time is 9AM. Is there any specific module which could ease this behavior? | 2019-05-23T14:04:19.159100 | Alma | pythondev_help_Alma_2019-05-23T14:04:19.159100 | 1,558,620,259.1591 | 25,059 |
pythondev | help | Any pointers would be really great! | 2019-05-23T14:04:42.159500 | Alma | pythondev_help_Alma_2019-05-23T14:04:42.159500 | 1,558,620,282.1595 | 25,060 |
pythondev | help | <@Alma> launch your script from a cronjob? | 2019-05-23T14:08:14.160800 | Carlo | pythondev_help_Carlo_2019-05-23T14:08:14.160800 | 1,558,620,494.1608 | 25,061 |
pythondev | help | otherwise if you really have to do it in python, like <https://github.com/dbader/schedule> (haven't tested it) | 2019-05-23T14:09:21.162000 | Carlo | pythondev_help_Carlo_2019-05-23T14:09:21.162000 | 1,558,620,561.162 | 25,062 |
pythondev | help | I think Celery does scheduling too, but that would be pretty overkill for a `print` or simple tasks imho <http://www.celeryproject.org/> | 2019-05-23T14:09:35.162500 | Carlo | pythondev_help_Carlo_2019-05-23T14:09:35.162500 | 1,558,620,575.1625 | 25,063 |
pythondev | help | Its going to be a Windows machine. And to answer your question, unfortunately that would not help in my case... there are many tasks I would like to do and putting each of them inside a cronjob scheduler would not be a viable option | 2019-05-23T14:10:13.163400 | Alma | pythondev_help_Alma_2019-05-23T14:10:13.163400 | 1,558,620,613.1634 | 25,064 |
pythondev | help | windows has a task scheduler too I think | 2019-05-23T14:10:58.163700 | Carlo | pythondev_help_Carlo_2019-05-23T14:10:58.163700 | 1,558,620,658.1637 | 25,065 |
pythondev | help | but yeah... a scheduler is what you're looking for ¯\_(ツ)_/¯ | 2019-05-23T14:11:27.164400 | Carlo | pythondev_help_Carlo_2019-05-23T14:11:27.164400 | 1,558,620,687.1644 | 25,066 |
pythondev | help | <@Carlo> yep | 2019-05-23T14:13:00.165400 | Alma | pythondev_help_Alma_2019-05-23T14:13:00.165400 | 1,558,620,780.1654 | 25,067 |
pythondev | help | Not sure about what kind of tasks you have, there is luigi/airflow which allow task scheduling and workflow management | 2019-05-23T14:13:24.166100 | Raguel | pythondev_help_Raguel_2019-05-23T14:13:24.166100 | 1,558,620,804.1661 | 25,068 |
pythondev | help | lets say i start the program, program waits in the backgroup till the machine time is 8am, once the time hits, do some task, and when the time becomes 9am, do xyz task... something like this | 2019-05-23T14:14:01.167000 | Alma | pythondev_help_Alma_2019-05-23T14:14:01.167000 | 1,558,620,841.167 | 25,069 |
pythondev | help | s/backgroup/background/ | 2019-05-23T14:14:19.167600 | Alma | pythondev_help_Alma_2019-05-23T14:14:19.167600 | 1,558,620,859.1676 | 25,070 |
pythondev | help | and what type of tasks are these -- maybe a little background? | 2019-05-23T14:15:51.169300 | Raguel | pythondev_help_Raguel_2019-05-23T14:15:51.169300 | 1,558,620,951.1693 | 25,071 |
pythondev | help | <@Raguel> sure sure. Lets see program runs, i m waiting for 8am to happen, once its 8am, open (chrome and visit some websites.. and then close it after 5 minutes automatically)... now again wait, and when it becomes 9am, open MS Word and close it after 10 seconds... something like that... this task will run till evening... there are different type of tasks defined for each hour... | 2019-05-23T14:18:52.172200 | Alma | pythondev_help_Alma_2019-05-23T14:18:52.172200 | 1,558,621,132.1722 | 25,072 |
pythondev | help | Hope you got the idea <@Raguel> | 2019-05-23T14:19:04.172500 | Alma | pythondev_help_Alma_2019-05-23T14:19:04.172500 | 1,558,621,144.1725 | 25,073 |
pythondev | help | <@Carlo> schedule seems to be amazing and mostly it fits my requirements!! | 2019-05-23T14:31:15.173000 | Alma | pythondev_help_Alma_2019-05-23T14:31:15.173000 | 1,558,621,875.173 | 25,074 |
pythondev | help | thanks man for this | 2019-05-23T14:31:26.173300 | Alma | pythondev_help_Alma_2019-05-23T14:31:26.173300 | 1,558,621,886.1733 | 25,075 |
pythondev | help | :slightly_smiling_face: | 2019-05-23T14:31:27.173500 | Alma | pythondev_help_Alma_2019-05-23T14:31:27.173500 | 1,558,621,887.1735 | 25,076 |
pythondev | help | cheers to all !! | 2019-05-23T14:31:32.173700 | Alma | pythondev_help_Alma_2019-05-23T14:31:32.173700 | 1,558,621,892.1737 | 25,077 |
pythondev | help | for your support on looking into this issue | 2019-05-23T14:31:46.174000 | Alma | pythondev_help_Alma_2019-05-23T14:31:46.174000 | 1,558,621,906.174 | 25,078 |
pythondev | help | ```
def mock_request(*args):
class MockResponse:
def __init__(self, content, status_code):
self.content = content
self.status_code = status_code
mock_request('og')
```
Why when i try to call args[0] it returns me `args = ('og',)` instead of ‘og’? | 2019-05-23T15:39:57.175400 | Nanci | pythondev_help_Nanci_2019-05-23T15:39:57.175400 | 1,558,625,997.1754 | 25,079 |
pythondev | help | It shouldn't... do you have a spurious comma somewhere? | 2019-05-23T15:48:19.176000 | Sasha | pythondev_help_Sasha_2019-05-23T15:48:19.176000 | 1,558,626,499.176 | 25,080 |
pythondev | help | As far as i know, no… | 2019-05-23T15:49:39.176700 | Nanci | pythondev_help_Nanci_2019-05-23T15:49:39.176700 | 1,558,626,579.1767 | 25,081 |
pythondev | help | Or to clarify, `args` would be `('og',)`, but `args[0]` should be `'og'`. | 2019-05-23T15:49:48.177100 | Sasha | pythondev_help_Sasha_2019-05-23T15:49:48.177100 | 1,558,626,588.1771 | 25,082 |
pythondev | help | I’m actually calling it `@mock.patch('api.serializers.requests.get', side_effect=mock_request('og'))` | 2019-05-23T15:49:49.177200 | Nanci | pythondev_help_Nanci_2019-05-23T15:49:49.177200 | 1,558,626,589.1772 | 25,083 |
pythondev | help | yeah | 2019-05-23T15:49:56.177400 | Nanci | pythondev_help_Nanci_2019-05-23T15:49:56.177400 | 1,558,626,596.1774 | 25,084 |
pythondev | help | can you show where you call it? | 2019-05-23T15:50:22.177900 | Clemmie | pythondev_help_Clemmie_2019-05-23T15:50:22.177900 | 1,558,626,622.1779 | 25,085 |
pythondev | help | None | 2019-05-23T15:50:27.178000 | Nanci | pythondev_help_Nanci_2019-05-23T15:50:27.178000 | 1,558,626,627.178 | 25,086 |
pythondev | help | ah | 2019-05-23T15:50:42.178400 | Clemmie | pythondev_help_Clemmie_2019-05-23T15:50:42.178400 | 1,558,626,642.1784 | 25,087 |
pythondev | help | None | 2019-05-23T15:52:14.178500 | Nanci | pythondev_help_Nanci_2019-05-23T15:52:14.178500 | 1,558,626,734.1785 | 25,088 |
pythondev | help | That’s how i’m calling it | 2019-05-23T15:52:22.178900 | Nanci | pythondev_help_Nanci_2019-05-23T15:52:22.178900 | 1,558,626,742.1789 | 25,089 |
pythondev | help | `args` is a pdb command, that does `Print the argument list of the current function.` I think it is causing you issues | 2019-05-23T15:55:52.180100 | Clemmie | pythondev_help_Clemmie_2019-05-23T15:55:52.180100 | 1,558,626,952.1801 | 25,090 |
pythondev | help | if you try to print it from the code iteself I think you will get what you want | 2019-05-23T15:56:19.180600 | Clemmie | pythondev_help_Clemmie_2019-05-23T15:56:19.180600 | 1,558,626,979.1806 | 25,091 |
pythondev | help | that is a nasty one | 2019-05-23T15:56:55.181000 | Clemmie | pythondev_help_Clemmie_2019-05-23T15:56:55.181000 | 1,558,627,015.181 | 25,092 |
pythondev | help | Woah, really? | 2019-05-23T15:57:53.181300 | Nanci | pythondev_help_Nanci_2019-05-23T15:57:53.181300 | 1,558,627,073.1813 | 25,093 |
pythondev | help | That’s why its behaviour was so weird | 2019-05-23T15:58:26.181800 | Nanci | pythondev_help_Nanci_2019-05-23T15:58:26.181800 | 1,558,627,106.1818 | 25,094 |
pythondev | help | Thank you <@Clemmie> | 2019-05-23T16:00:48.182200 | Nanci | pythondev_help_Nanci_2019-05-23T16:00:48.182200 | 1,558,627,248.1822 | 25,095 |
pythondev | help | Weird, when i make a conditional like `if args[0]: …` I get ‘MockResponse’ object is not an iterator | 2019-05-23T16:23:42.183400 | Nanci | pythondev_help_Nanci_2019-05-23T16:23:42.183400 | 1,558,628,622.1834 | 25,096 |
pythondev | help | Even if I’m not iterating through it anywhere | 2019-05-23T16:23:56.183800 | Nanci | pythondev_help_Nanci_2019-05-23T16:23:56.183800 | 1,558,628,636.1838 | 25,097 |
pythondev | help | what's the exact error? | 2019-05-23T16:39:55.184500 | Ashley | pythondev_help_Ashley_2019-05-23T16:39:55.184500 | 1,558,629,595.1845 | 25,098 |
pythondev | help | `*** TypeError: 'MockResponse' object is not an iterator`
I appears to be because I’m using
```
@mock.patch('api.serializers.requests.get', side_effect=mock_request('og'))
```
and it tries to run `requests.get(…)`
Then it returns the error | 2019-05-23T16:46:18.185600 | Nanci | pythondev_help_Nanci_2019-05-23T16:46:18.185600 | 1,558,629,978.1856 | 25,099 |
pythondev | help | I just had to replace `side_effect=...` for `return_value=...` | 2019-05-23T17:13:44.186200 | Nanci | pythondev_help_Nanci_2019-05-23T17:13:44.186200 | 1,558,631,624.1862 | 25,100 |
pythondev | help | Is there a way to select a dict by a value in a list without looping through them?
Example:
```[{u'keys': [u'<https://www.example.co.uk/category/bath-lifts>', u'lifts', u'MOBILE'], u'impressions': 984.0, u'clicks': 140.0, u'ctr': 0.14227642276422764, u'position': 1.3587398373983741},
{u'keys': [u'<https://www.example.co.uk/category/bath-lifts>', u'bath lift', u'MOBILE'], u'impressions': 984.0, u'clicks': 140.0, u'ctr': 0.14227642276422764, u'position': 1.3587398373983741}]
```
How would I select just `{u'keys': [u'<https://www.example.co.uk/category/bath-lifts>', u'bath lift', u'MOBILE'], u'impressions': 984.0, u'clicks': 140.0, u'ctr': 0.14227642276422764, u'position': 1.3587398373983741}` based on having 'bath lift' as a reference | 2019-05-23T18:44:23.188000 | Nikki | pythondev_help_Nikki_2019-05-23T18:44:23.188000 | 1,558,637,063.188 | 25,101 |
pythondev | help | and 'bath lift' being the second value in the value pair list | 2019-05-23T18:45:41.188600 | Nikki | pythondev_help_Nikki_2019-05-23T18:45:41.188600 | 1,558,637,141.1886 | 25,102 |
pythondev | help | Nope, you need to loop through it, I'm afraid. If it is a performance issue or a common operation, you might want to construct a second dictionary with the reverse mapping, i.e. use `'bath lift'` as a key and the rest of the data as a value. | 2019-05-23T18:50:55.189900 | Sasha | pythondev_help_Sasha_2019-05-23T18:50:55.189900 | 1,558,637,455.1899 | 25,103 |
pythondev | help | Yea, just wanted to do it as quickly as possible - thanks for the info | 2019-05-23T18:54:08.190600 | Nikki | pythondev_help_Nikki_2019-05-23T18:54:08.190600 | 1,558,637,648.1906 | 25,104 |
pythondev | help | At least syntactically, you can do it easily with something like `matches = [x for x in data if 'bath lift' in x['keys']]`, for instance. But it's still a loop. | 2019-05-23T19:01:31.191700 | Sasha | pythondev_help_Sasha_2019-05-23T19:01:31.191700 | 1,558,638,091.1917 | 25,105 |
pythondev | help | <@Nikki> to reinforce what was said, the only way you can access something in a list is either
• looping through it, or
• you know the index of the slot where the thing is. | 2019-05-23T19:37:14.192700 | Hiroko | pythondev_help_Hiroko_2019-05-23T19:37:14.192700 | 1,558,640,234.1927 | 25,106 |
pythondev | help | that’s one of the basics of that data structure, regardless of language | 2019-05-23T19:37:27.193100 | Hiroko | pythondev_help_Hiroko_2019-05-23T19:37:27.193100 | 1,558,640,247.1931 | 25,107 |
pythondev | help | I ended up with this snippet ```urllib.parse.quote_plus("{{{}}}".format(",".join(f"{k}:{v}" for k, v in contact_info.items())))``` :slightly_smiling_face: | 2019-05-23T23:51:38.000500 | Philip | pythondev_help_Philip_2019-05-23T23:51:38.000500 | 1,558,655,498.0005 | 25,108 |
pythondev | help | hello everyone, I have a question about dependency injection and modules.
I have a class `App` using `requests` I would like to write some test but instead of mocking each `requests` call I would like to use a stub object that respect the api in order to test App
```
import requests
class App:
def __init__(self, request: requests) :
self._request = request
# some requests with autocompletions
<http://self_.request.post|self_.request.post>("<http://github.com>", data="stuff")
self_.request.get("<http://github.com>")
# in my test the "request" is stub or mocked
```
of course if what I am doing is dumb, please let me know :slightly_smiling_face: | 2019-05-24T02:32:07.006900 | Lavinia | pythondev_help_Lavinia_2019-05-24T02:32:07.006900 | 1,558,665,127.0069 | 25,109 |
pythondev | help | python isnt static typed so you can pass in what ever as long as the stub has relevant methods attached | 2019-05-24T02:50:10.007700 | Leida | pythondev_help_Leida_2019-05-24T02:50:10.007700 | 1,558,666,210.0077 | 25,110 |
pythondev | help | <@Leida> or is it? <https://docs.python.org/3/library/typing.html#type-aliases> :slightly_smiling_face: | 2019-05-24T02:51:35.008000 | Carlee | pythondev_help_Carlee_2019-05-24T02:51:35.008000 | 1,558,666,295.008 | 25,111 |
pythondev | help | yeah you can add it manually but its up to you to add it :stuck_out_tongue: | 2019-05-24T02:52:25.008600 | Leida | pythondev_help_Leida_2019-05-24T02:52:25.008600 | 1,558,666,345.0086 | 25,112 |
pythondev | help | Question: Is `w.txt` opened every time `other()` is called | 2019-05-24T03:29:37.009400 | Rubie | pythondev_help_Rubie_2019-05-24T03:29:37.009400 | 1,558,668,577.0094 | 25,113 |
pythondev | help | This message was deleted. | 2019-05-24T03:29:45.009600 | Alejandrina | pythondev_help_Alejandrina_2019-05-24T03:29:45.009600 | 1,558,668,585.0096 | 25,114 |
pythondev | help | yes | 2019-05-24T03:31:46.009800 | Malika | pythondev_help_Malika_2019-05-24T03:31:46.009800 | 1,558,668,706.0098 | 25,115 |
pythondev | help | thank you, is there an easy way to avoid this, like shallow copy | 2019-05-24T03:32:13.010000 | Rubie | pythondev_help_Rubie_2019-05-24T03:32:13.010000 | 1,558,668,733.01 | 25,116 |
pythondev | help | Actually, when i delete `w.txt` before calling it the second time it still works so i'm not sure it does | 2019-05-24T03:43:42.010300 | Rubie | pythondev_help_Rubie_2019-05-24T03:43:42.010300 | 1,558,669,422.0103 | 25,117 |
pythondev | help | That or it's left open in memory because i never close it :slightly_smiling_face: | 2019-05-24T03:58:24.010500 | Rubie | pythondev_help_Rubie_2019-05-24T03:58:24.010500 | 1,558,670,304.0105 | 25,118 |
pythondev | help | Hi guys, can anyone help me show which start method is better for multiprocessing? fork or forkserver???? no talk about spawn on Windows....Thanks | 2019-05-24T04:04:45.011700 | Bulah | pythondev_help_Bulah_2019-05-24T04:04:45.011700 | 1,558,670,685.0117 | 25,119 |
pythondev | help | you generally want to open files with a context manager so that it is automatically closed when exiting context manager scope | 2019-05-24T04:08:31.012000 | Leida | pythondev_help_Leida_2019-05-24T04:08:31.012000 | 1,558,670,911.012 | 25,120 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.