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 | Even from instagram? Ok i will make sure to ask just in case | 2017-09-26T17:00:05.000220 | Vita | pythondev_help_Vita_2017-09-26T17:00:05.000220 | 1,506,445,205.00022 | 94,703 |
pythondev | help | Instagram can't permit you to use people's images, their license is non-transferrable | 2017-09-26T17:00:34.000227 | Suellen | pythondev_help_Suellen_2017-09-26T17:00:34.000227 | 1,506,445,234.000227 | 94,704 |
pythondev | help | doesnt matter where they are from, it matters where they are going and what they are being used for | 2017-09-26T17:00:38.000057 | Patty | pythondev_help_Patty_2017-09-26T17:00:38.000057 | 1,506,445,238.000057 | 94,705 |
pythondev | help | <@Meg> `context['parent] = reverse('aircraft_list')`
and `<a href="{{parent}}">` ? | 2017-09-26T17:00:39.000405 | Tammi | pythondev_help_Tammi_2017-09-26T17:00:39.000405 | 1,506,445,239.000405 | 94,706 |
pythondev | help | i.e. users grant instagram a license, and may grant other licenses to other people themselves | 2017-09-26T17:00:55.000290 | Suellen | pythondev_help_Suellen_2017-09-26T17:00:55.000290 | 1,506,445,255.00029 | 94,707 |
pythondev | help | Okey dokes, doubtful most will care but it is always good to do things right | 2017-09-26T17:01:56.000148 | Vita | pythondev_help_Vita_2017-09-26T17:01:56.000148 | 1,506,445,316.000148 | 94,708 |
pythondev | help | <@Meg> I was doing something, wrong, it works! thanks! | 2017-09-26T17:02:25.000448 | Tammi | pythondev_help_Tammi_2017-09-26T17:02:25.000448 | 1,506,445,345.000448 | 94,709 |
pythondev | help | 1 person caring could be a big headache, and maybe not a cheap one either | 2017-09-26T17:06:09.000323 | Patty | pythondev_help_Patty_2017-09-26T17:06:09.000323 | 1,506,445,569.000323 | 94,710 |
pythondev | help | True | 2017-09-26T17:06:26.000255 | Vita | pythondev_help_Vita_2017-09-26T17:06:26.000255 | 1,506,445,586.000255 | 94,711 |
pythondev | help | but if you keep doing them you could put up notices asking for photos to be shared, etc so you can gather them for that use | 2017-09-26T17:06:57.000030 | Patty | pythondev_help_Patty_2017-09-26T17:06:57.000030 | 1,506,445,617.00003 | 94,712 |
pythondev | help | or have someone go to events and take photos | 2017-09-26T17:07:04.000223 | Patty | pythondev_help_Patty_2017-09-26T17:07:04.000223 | 1,506,445,624.000223 | 94,713 |
pythondev | help | Our plan is to have someone take photos at the next event (hopefully someone not too expensive), we had a person who took most of the photos for last year but their camera wasn't the best | 2017-09-26T17:09:18.000229 | Vita | pythondev_help_Vita_2017-09-26T17:09:18.000229 | 1,506,445,758.000229 | 94,714 |
pythondev | help | Anyone here know graph theory very well, or much about Directed Acyclic Graphs? | 2017-09-26T18:48:16.000113 | Beula | pythondev_help_Beula_2017-09-26T18:48:16.000113 | 1,506,451,696.000113 | 94,715 |
pythondev | help | <@Beula> what you need to know about DAGs | 2017-09-26T19:12:03.000009 | Patty | pythondev_help_Patty_2017-09-26T19:12:03.000009 | 1,506,453,123.000009 | 94,716 |
pythondev | help | graph theory is like the only part of theory i enjoyed in grad school | 2017-09-26T19:12:25.000206 | Patty | pythondev_help_Patty_2017-09-26T19:12:25.000206 | 1,506,453,145.000206 | 94,717 |
pythondev | help | My interest was piqued by working on some data pipeline stuff - so I am not entirely sure where to look to learn more ¯\_(ツ)_/¯ | 2017-09-26T19:12:44.000164 | Beula | pythondev_help_Beula_2017-09-26T19:12:44.000164 | 1,506,453,164.000164 | 94,718 |
pythondev | help | I thought about writing a new runner in Go, but don't know enough about it | 2017-09-26T19:13:03.000126 | Beula | pythondev_help_Beula_2017-09-26T19:13:03.000126 | 1,506,453,183.000126 | 94,719 |
pythondev | help | So far, the luigi API is good, but I like the features of airflow | 2017-09-26T19:14:02.000132 | Beula | pythondev_help_Beula_2017-09-26T19:14:02.000132 | 1,506,453,242.000132 | 94,720 |
pythondev | help | hmm, trying to think of things other than my algos book | 2017-09-26T19:14:53.000110 | Patty | pythondev_help_Patty_2017-09-26T19:14:53.000110 | 1,506,453,293.00011 | 94,721 |
pythondev | help | bayesian reasoning is all DAGs | 2017-09-26T19:15:05.000073 | Patty | pythondev_help_Patty_2017-09-26T19:15:05.000073 | 1,506,453,305.000073 | 94,722 |
pythondev | help | Maybe what I'm about to question is nearly impossible :disappointed: | 2017-09-26T19:15:38.000295 | Lana | pythondev_help_Lana_2017-09-26T19:15:38.000295 | 1,506,453,338.000295 | 94,723 |
pythondev | help | I have this Python code:
```
from bs4 import BeautifulSoup as soup
import requests
class Article(object):
def __init__(self, url = '<https://es.wikipedia.org/wiki/Especial:Aleatoria>'):
self.url = requests.get(url)
self.html = self.url.content
self.url.close()
self.soup = soup(self.html, "html.parser")
self.title = self.soup.h1.text
``` | 2017-09-26T19:15:50.000236 | Lana | pythondev_help_Lana_2017-09-26T19:15:50.000236 | 1,506,453,350.000236 | 94,724 |
pythondev | help | I'm trying to collect _X_ article from Wikipedia | 2017-09-26T19:16:11.000142 | Lana | pythondev_help_Lana_2017-09-26T19:16:11.000142 | 1,506,453,371.000142 | 94,725 |
pythondev | help | But this: `<https://es.wikipedia.org/wiki/Especial:Aleatoria>` is a random article generator | 2017-09-26T19:16:34.000260 | Lana | pythondev_help_Lana_2017-09-26T19:16:34.000260 | 1,506,453,394.00026 | 94,726 |
pythondev | help | this is “the” algos book which covers a good amount of graph theory <https://mitpress.mit.edu/books/introduction-algorithms> | 2017-09-26T19:16:36.000213 | Patty | pythondev_help_Patty_2017-09-26T19:16:36.000213 | 1,506,453,396.000213 | 94,727 |
pythondev | help | so I want to find where this url did redirect... Is there a way? How? | 2017-09-26T19:17:23.000001 | Lana | pythondev_help_Lana_2017-09-26T19:17:23.000001 | 1,506,453,443.000001 | 94,728 |
pythondev | help | What article are you actually trying to get specifically | 2017-09-26T19:17:40.000256 | Martha | pythondev_help_Martha_2017-09-26T19:17:40.000256 | 1,506,453,460.000256 | 94,729 |
pythondev | help | oh yeah - you can just use requests like this: | 2017-09-26T19:18:00.000336 | Martha | pythondev_help_Martha_2017-09-26T19:18:00.000336 | 1,506,453,480.000336 | 94,730 |
pythondev | help | Anyone, lol... Suposse it redirects to the "Slack" article... I want the url | 2017-09-26T19:18:22.000198 | Lana | pythondev_help_Lana_2017-09-26T19:18:22.000198 | 1,506,453,502.000198 | 94,731 |
pythondev | help | minimum spanning trees, single source shortest path are used | 2017-09-26T19:18:25.000262 | Patty | pythondev_help_Patty_2017-09-26T19:18:25.000262 | 1,506,453,505.000262 | 94,732 |
pythondev | help | <@Lana> Look at the status code and LOCATION header, the status will be a 302 or a 301, and the LOCATION will give you the address:
```
$ curl -i <https://es.wikipedia.org/wiki/Especial:Aleatoria>
HTTP/2 302
date: Tue, 26 Sep 2017 23:17:58 GMT
content-type: text/html; charset=utf-8
location: <https://es.wikipedia.org/wiki/Inukami!>
``` | 2017-09-26T19:18:38.000191 | Beula | pythondev_help_Beula_2017-09-26T19:18:38.000191 | 1,506,453,518.000191 | 94,733 |
pythondev | help | Where is that? Within the response? | 2017-09-26T19:19:21.000033 | Lana | pythondev_help_Lana_2017-09-26T19:19:21.000033 | 1,506,453,561.000033 | 94,734 |
pythondev | help | the header | 2017-09-26T19:19:30.000202 | Duane | pythondev_help_Duane_2017-09-26T19:19:30.000202 | 1,506,453,570.000202 | 94,735 |
pythondev | help | Yes, it's with the response. the location is a header, status is the status (first line of a response) | 2017-09-26T19:19:49.000024 | Beula | pythondev_help_Beula_2017-09-26T19:19:49.000024 | 1,506,453,589.000024 | 94,736 |
pythondev | help | :thinking_face: thanks <@Patty> - Not sure I will follow through with this on the project since I am fairly opposed to NiH usually | 2017-09-26T19:20:50.000025 | Beula | pythondev_help_Beula_2017-09-26T19:20:50.000025 | 1,506,453,650.000025 | 94,737 |
pythondev | help | I cannot find it... :disappointed: | 2017-09-26T19:21:40.000211 | Lana | pythondev_help_Lana_2017-09-26T19:21:40.000211 | 1,506,453,700.000211 | 94,738 |
pythondev | help | The algos book! He comes. | 2017-09-26T19:21:49.000241 | Mallie | pythondev_help_Mallie_2017-09-26T19:21:49.000241 | 1,506,453,709.000241 | 94,739 |
pythondev | help | NiH | 2017-09-26T19:21:59.000104 | Mallie | pythondev_help_Mallie_2017-09-26T19:21:59.000104 | 1,506,453,719.000104 | 94,740 |
pythondev | help | ? | 2017-09-26T19:22:35.000329 | Mallie | pythondev_help_Mallie_2017-09-26T19:22:35.000329 | 1,506,453,755.000329 | 94,741 |
pythondev | help | "Not Invented Here" <@Mallie> | 2017-09-26T19:22:44.000021 | Beula | pythondev_help_Beula_2017-09-26T19:22:44.000021 | 1,506,453,764.000021 | 94,742 |
pythondev | help | <@Lana> ```import requests
r =requests.get('<https://es.wikipedia.org/wiki/Especial:Aleatoria>')
print(r.url)``` | 2017-09-26T19:22:59.000100 | Martha | pythondev_help_Martha_2017-09-26T19:22:59.000100 | 1,506,453,779.0001 | 94,743 |
pythondev | help | <@Lana> - what are you using? | 2017-09-26T19:23:01.000221 | Beula | pythondev_help_Beula_2017-09-26T19:23:01.000221 | 1,506,453,781.000221 | 94,744 |
pythondev | help | I'm an idiot, hahahah thanks | 2017-09-26T19:23:43.000144 | Lana | pythondev_help_Lana_2017-09-26T19:23:43.000144 | 1,506,453,823.000144 | 94,745 |
pythondev | help | <@Martha> :taco: | 2017-09-26T19:23:54.000204 | Lana | pythondev_help_Lana_2017-09-26T19:23:54.000204 | 1,506,453,834.000204 | 94,746 |
pythondev | help | <@Beula> | 2017-09-26T19:24:09.000027 | Lana | pythondev_help_Lana_2017-09-26T19:24:09.000027 | 1,506,453,849.000027 | 94,747 |
pythondev | help | thanks no problem :slightly_smiling_face: | 2017-09-26T19:24:12.000062 | Martha | pythondev_help_Martha_2017-09-26T19:24:12.000062 | 1,506,453,852.000062 | 94,748 |
pythondev | help | <@Beula> :taco: | 2017-09-26T19:24:15.000160 | Lana | pythondev_help_Lana_2017-09-26T19:24:15.000160 | 1,506,453,855.00016 | 94,749 |
pythondev | help | Not an idiot! Just too close to the problem :smile: | 2017-09-26T19:24:24.000222 | Beula | pythondev_help_Beula_2017-09-26T19:24:24.000222 | 1,506,453,864.000222 | 94,750 |
pythondev | help | My problem was I didn't use `self.url.url` (messy stuff, need to rename the variables) | 2017-09-26T19:25:01.000146 | Lana | pythondev_help_Lana_2017-09-26T19:25:01.000146 | 1,506,453,901.000146 | 94,751 |
pythondev | help | <@Martha> :taco: :taco: nice work knowing the framework used and the way to handle it! | 2017-09-26T19:27:20.000066 | Beula | pythondev_help_Beula_2017-09-26T19:27:20.000066 | 1,506,454,040.000066 | 94,752 |
pythondev | help | thanks :slightly_smiling_face: | 2017-09-26T19:27:58.000293 | Martha | pythondev_help_Martha_2017-09-26T19:27:58.000293 | 1,506,454,078.000293 | 94,753 |
pythondev | help | can you specify to pip that you only want to install a package if you're running python2.7? | 2017-09-26T23:57:36.000186 | Winnie | pythondev_help_Winnie_2017-09-26T23:57:36.000186 | 1,506,470,256.000186 | 94,754 |
pythondev | help | <@Winnie> checkout PEP508, basically append `; python_version < "2.7"` (or similar) | 2017-09-27T00:00:37.000098 | Beula | pythondev_help_Beula_2017-09-27T00:00:37.000098 | 1,506,470,437.000098 | 94,755 |
pythondev | help | <https://www.python.org/dev/peps/pep-0508/> | 2017-09-27T00:00:40.000074 | Beula | pythondev_help_Beula_2017-09-27T00:00:40.000074 | 1,506,470,440.000074 | 94,756 |
pythondev | help | Here's a good SO answer on it: <https://stackoverflow.com/a/35614580/1584762> | 2017-09-27T00:01:33.000017 | Beula | pythondev_help_Beula_2017-09-27T00:01:33.000017 | 1,506,470,493.000017 | 94,757 |
pythondev | help | thanks!
What did you google? | 2017-09-27T00:08:19.000116 | Winnie | pythondev_help_Winnie_2017-09-27T00:08:19.000116 | 1,506,470,899.000116 | 94,758 |
pythondev | help | `pip conditional requirement` | 2017-09-27T00:08:36.000185 | Beula | pythondev_help_Beula_2017-09-27T00:08:36.000185 | 1,506,470,916.000185 | 94,759 |
pythondev | help | I remember seeing the pep at one point, but couldn't recall which one | 2017-09-27T00:08:56.000153 | Beula | pythondev_help_Beula_2017-09-27T00:08:56.000153 | 1,506,470,936.000153 | 94,760 |
pythondev | help | Is it possible to specify that you want to ensure a package is re-installed?
Or maybe I shouldn't be doing that?
I and many others had an issue where lxml needed to be re-installed to work correctly | 2017-09-27T00:18:32.000105 | Winnie | pythondev_help_Winnie_2017-09-27T00:18:32.000105 | 1,506,471,512.000105 | 94,761 |
pythondev | help | Not AFAIK in the `requirements.txt`, but someone could do `pip install --force-reinstall -r requirements.txt` I think. Check `pip install --help` | 2017-09-27T00:20:09.000163 | Beula | pythondev_help_Beula_2017-09-27T00:20:09.000163 | 1,506,471,609.000163 | 94,762 |
pythondev | help | thanks! | 2017-09-27T00:30:10.000153 | Winnie | pythondev_help_Winnie_2017-09-27T00:30:10.000153 | 1,506,472,210.000153 | 94,763 |
pythondev | help | In yesterday's #SyPY, Tim showed how str.startswith can take a tuple of strings | 2017-09-27T02:12:57.000248 | Winnie | pythondev_help_Winnie_2017-09-27T02:12:57.000248 | 1,506,478,377.000248 | 94,764 |
pythondev | help | is there anything similar for checking if a string contains different strings? | 2017-09-27T02:13:21.000018 | Winnie | pythondev_help_Winnie_2017-09-27T02:13:21.000018 | 1,506,478,401.000018 | 94,765 |
pythondev | help | i.e.
` "a" in "ab" or "b" in "ab"` | 2017-09-27T02:13:46.000005 | Winnie | pythondev_help_Winnie_2017-09-27T02:13:46.000005 | 1,506,478,426.000005 | 94,766 |
pythondev | help | I have a list like so
```
[(292, 'JP1kE9RyXoFJwnkNqZezUPBbaG8MEXTd8rLQn'),
(293, '5ZL7o6GX8qCGyeNMpLb3S1mlg89N4ZsZrPDGb')]
```
and an array of dicts, like so:
```
[
{"transaction_id": "JP1kE9RyXoFJwnkNqZezUPBbaG8MEXTd8rLQn",
"amount": "5"},
{"transaction_id": "5ZL7o6GX8qCGyeNMpLb3S1mlg89N4ZsZrPDGb",
"amount": "5"},
]
```
I need to join them so the dict looks like this
```
[
{"id": 292,
"transaction_id": "JP1kE9RyXoFJwnkNqZezUPBbaG8MEXTd8rLQn",
"amount": "5"},
{"id": 293,
"transaction_id": "5ZL7o6GX8qCGyeNMpLb3S1mlg89N4ZsZrPDGb",
"amount": "5"},
]
```
I know I can just iterate over them with for loops but it feel messy. I was looking at `zip` but i dont think it will do what I need. I could get one of each of these or I could get hundreds at least. Thoughts? | 2017-09-27T02:36:25.000013 | Bruno | pythondev_help_Bruno_2017-09-27T02:36:25.000013 | 1,506,479,785.000013 | 94,767 |
pythondev | help | these are records being inserted. Or do you think to get the results, it would just be easier to re-query the db based on the id's I get back. Im doing this as once I get the ids from the inserted records, I want to push them all so a queue so I can have pub/sub clients get the updates easily | 2017-09-27T02:39:07.000187 | Bruno | pythondev_help_Bruno_2017-09-27T02:39:07.000187 | 1,506,479,947.000187 | 94,768 |
pythondev | help | couldn't figure out how to have the `returning` work ? | 2017-09-27T02:39:49.000138 | Ciera | pythondev_help_Ciera_2017-09-27T02:39:49.000138 | 1,506,479,989.000138 | 94,769 |
pythondev | help | Personnally I would just re-querry the db | 2017-09-27T02:40:25.000137 | Ciera | pythondev_help_Ciera_2017-09-27T02:40:25.000137 | 1,506,480,025.000137 | 94,770 |
pythondev | help | `any([x in 'ab' for x in 'ab'])` - I don't think there is a string method way since you're supposed to use `in` to check for substrings | 2017-09-27T02:47:23.000165 | Mallie | pythondev_help_Mallie_2017-09-27T02:47:23.000165 | 1,506,480,443.000165 | 94,771 |
pythondev | help | Which is better?
```
if text and ("hello" in text.lower() or "hi" in text.lower()):
print(text)
```
or
```
if text:
new_text = text.lower()
if ("hello" in new_text or "hi" in new_text.lower()):
print(text)
``` | 2017-09-27T03:43:36.000045 | Winnie | pythondev_help_Winnie_2017-09-27T03:43:36.000045 | 1,506,483,816.000045 | 94,772 |
pythondev | help | hmm there isn't really one better than the other | 2017-09-27T03:55:44.000047 | Ciera | pythondev_help_Ciera_2017-09-27T03:55:44.000047 | 1,506,484,544.000047 | 94,773 |
pythondev | help | can't you say b is more efficient? | 2017-09-27T04:04:22.000167 | Winnie | pythondev_help_Winnie_2017-09-27T04:04:22.000167 | 1,506,485,062.000167 | 94,774 |
pythondev | help | or does python cache the result? | 2017-09-27T04:04:38.000217 | Winnie | pythondev_help_Winnie_2017-09-27T04:04:38.000217 | 1,506,485,078.000217 | 94,775 |
pythondev | help | huh I think it does cache the result
in which case I would go with a | 2017-09-27T04:07:49.000407 | Winnie | pythondev_help_Winnie_2017-09-27T04:07:49.000407 | 1,506,485,269.000407 | 94,776 |
pythondev | help | ```
r = re.compile("((hello)+|(hi)+)", re.I)
if r.search(text):
print(text)
``` | 2017-09-27T04:10:56.000124 | Carri | pythondev_help_Carri_2017-09-27T04:10:56.000124 | 1,506,485,456.000124 | 94,777 |
pythondev | help | speed diff in theses cases would be very slow, it doesn't really matter | 2017-09-27T04:12:26.000199 | Ciera | pythondev_help_Ciera_2017-09-27T04:12:26.000199 | 1,506,485,546.000199 | 94,778 |
pythondev | help | `0.13232997500017518`
`0.13498673000049166` | 2017-09-27T04:21:15.000433 | Ciera | pythondev_help_Ciera_2017-09-27T04:21:15.000433 | 1,506,486,075.000433 | 94,779 |
pythondev | help | for 1 million loop | 2017-09-27T04:21:20.000019 | Ciera | pythondev_help_Ciera_2017-09-27T04:21:20.000019 | 1,506,486,080.000019 | 94,780 |
pythondev | help | `1.2024858120003046` with `re` | 2017-09-27T04:22:56.000318 | Ciera | pythondev_help_Ciera_2017-09-27T04:22:56.000318 | 1,506,486,176.000318 | 94,781 |
pythondev | help | hoist the re.compile out of the loop | 2017-09-27T04:29:55.000168 | Carri | pythondev_help_Carri_2017-09-27T04:29:55.000168 | 1,506,486,595.000168 | 94,782 |
pythondev | help | still faster using the `in`, but it's more comparable. 727ns/loop vs 282ns/loop | 2017-09-27T04:32:15.000331 | Carri | pythondev_help_Carri_2017-09-27T04:32:15.000331 | 1,506,486,735.000331 | 94,783 |
pythondev | help | :thumbsup: | 2017-09-27T04:35:39.000230 | Ciera | pythondev_help_Ciera_2017-09-27T04:35:39.000230 | 1,506,486,939.00023 | 94,784 |
pythondev | help | Hey guys, i have made a MultiValueField but i just cant seem to render it onto the form. If you look <https://codeshare.io/2KoL6P> at line 52 you can see i have attached it to the form field but im still just getting a basic text field. Can anyone help me understand why, and what i have done wrong to make this happen :slightly_smiling_face: thanks | 2017-09-27T08:16:57.000303 | Robbin | pythondev_help_Robbin_2017-09-27T08:16:57.000303 | 1,506,500,217.000303 | 94,785 |
pythondev | help | is that <#C0LMFRMB5|django> ? :slightly_smiling_face: | 2017-09-27T08:23:33.000260 | Ciera | pythondev_help_Ciera_2017-09-27T08:23:33.000260 | 1,506,500,613.00026 | 94,786 |
pythondev | help | yeah, i posted in there nearly an hour ago. So i thought i would give it ago in here :stuck_out_tongue: | 2017-09-27T08:25:47.000027 | Robbin | pythondev_help_Robbin_2017-09-27T08:25:47.000027 | 1,506,500,747.000027 | 94,787 |
pythondev | help | :thumbsup: | 2017-09-27T08:34:12.000168 | Ciera | pythondev_help_Ciera_2017-09-27T08:34:12.000168 | 1,506,501,252.000168 | 94,788 |
pythondev | help | doesn't python cache the compile anyway | 2017-09-27T09:26:53.000063 | Winnie | pythondev_help_Winnie_2017-09-27T09:26:53.000063 | 1,506,504,413.000063 | 94,789 |
pythondev | help | when you exit the python repl, do all objects go through their del methods? | 2017-09-27T09:44:36.000479 | Winnie | pythondev_help_Winnie_2017-09-27T09:44:36.000479 | 1,506,505,476.000479 | 94,790 |
pythondev | help | > It is not guaranteed that __del__() methods are called for objects that still exist when the interpreter exits.
As per: <https://docs.python.org/3/reference/datamodel.html> | 2017-09-27T09:52:57.000771 | Suellen | pythondev_help_Suellen_2017-09-27T09:52:57.000771 | 1,506,505,977.000771 | 94,791 |
pythondev | help | how do I ensure my program exits "correctly" | 2017-09-27T09:54:25.000478 | Winnie | pythondev_help_Winnie_2017-09-27T09:54:25.000478 | 1,506,506,065.000478 | 94,792 |
pythondev | help | your OS will do a cleanup anyways | 2017-09-27T09:54:59.000629 | Suellen | pythondev_help_Suellen_2017-09-27T09:54:59.000629 | 1,506,506,099.000629 | 94,793 |
pythondev | help | let me rephrase | 2017-09-27T09:55:11.000040 | Winnie | pythondev_help_Winnie_2017-09-27T09:55:11.000040 | 1,506,506,111.00004 | 94,794 |
pythondev | help | @yea I got `returning` to work just playing with different things and I thought of that and was trying to find if there was a good way to do that. Mostly it was a question about joining tuples and ducks | 2017-09-27T09:55:27.000657 | Bruno | pythondev_help_Bruno_2017-09-27T09:55:27.000657 | 1,506,506,127.000657 | 94,795 |
pythondev | help | I have a requests object which holds a connection
I'd like to safely log out on exit | 2017-09-27T09:55:41.000668 | Winnie | pythondev_help_Winnie_2017-09-27T09:55:41.000668 | 1,506,506,141.000668 | 94,796 |
pythondev | help | Dicts . Stupid phone | 2017-09-27T09:55:45.000481 | Bruno | pythondev_help_Bruno_2017-09-27T09:55:45.000481 | 1,506,506,145.000481 | 94,797 |
pythondev | help | <@Winnie> well, you can use a `with` statement to do a cleanup in case of an exception or what not
```
with request.Session() as s:
# do stuff
``` | 2017-09-27T09:56:57.000454 | Suellen | pythondev_help_Suellen_2017-09-27T09:56:57.000454 | 1,506,506,217.000454 | 94,798 |
pythondev | help | but if your program is killed by a signal or something like that, you are out of luck | 2017-09-27T09:57:23.000477 | Suellen | pythondev_help_Suellen_2017-09-27T09:57:23.000477 | 1,506,506,243.000477 | 94,799 |
pythondev | help | that won't help me in the repl though right | 2017-09-27T10:02:16.000244 | Winnie | pythondev_help_Winnie_2017-09-27T10:02:16.000244 | 1,506,506,536.000244 | 94,800 |
pythondev | help | well.. no.. if you really need a cleanup right before an exit and you're using REPL, I suggest `atexit` | 2017-09-27T10:05:40.000602 | Suellen | pythondev_help_Suellen_2017-09-27T10:05:40.000602 | 1,506,506,740.000602 | 94,801 |
pythondev | help | so, got a celery question for the gurus here.
Lets say you have a task that takes in an argument, and uses those args to do some processing and generate parameters for a large number of short-lived tasks to execute.
How can you have a task execute _after_ the last of those short lived tasks has executed? | 2017-09-27T10:06:54.000081 | Meg | pythondev_help_Meg_2017-09-27T10:06:54.000081 | 1,506,506,814.000081 | 94,802 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.