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 | Asking because I would like to follow best practices and not come up with a hack that will haunt me later on. | 2018-02-27T01:38:12.000093 | Hans | pythondev_help_Hans_2018-02-27T01:38:12.000093 | 1,519,695,492.000093 | 36,224 |
pythondev | help | Although in my dict, the `id` value is a number, so I'm surprised that I need conversion. | 2018-02-27T01:39:10.000115 | Hans | pythondev_help_Hans_2018-02-27T01:39:10.000115 | 1,519,695,550.000115 | 36,225 |
pythondev | help | That would work but you would also want to catch errors in businessId can't be cast to an int | 2018-02-27T01:39:25.000136 | Lashandra | pythondev_help_Lashandra_2018-02-27T01:39:25.000136 | 1,519,695,565.000136 | 36,226 |
pythondev | help | Oh.. So to catch errors, it would be better for `businessId` to be a `string`, even though it is entered as an `int` | 2018-02-27T01:40:44.000177 | Hans | pythondev_help_Hans_2018-02-27T01:40:44.000177 | 1,519,695,644.000177 | 36,227 |
pythondev | help | The best practice way would be to use a regex in the app.route similar to this stack overflow answer <https://stackoverflow.com/a/5872904> | 2018-02-27T01:41:13.000107 | Lashandra | pythondev_help_Lashandra_2018-02-27T01:41:13.000107 | 1,519,695,673.000107 | 36,228 |
pythondev | help | Or, I suggest using `flask_restful` `reqparse`. <https://flask-restful.readthedocs.io/en/0.3.5/reqparse.html> so you may define the arguments explicitly. | 2018-02-27T01:41:40.000245 | Margert | pythondev_help_Margert_2018-02-27T01:41:40.000245 | 1,519,695,700.000245 | 36,229 |
pythondev | help | <@Margert> At this point, I'm not sure that I could handle using a `Flask` package. I'm not yet there. :cry: | 2018-02-27T01:43:42.000259 | Hans | pythondev_help_Hans_2018-02-27T01:43:42.000259 | 1,519,695,822.000259 | 36,230 |
pythondev | help | aren't you already using flask restful? | 2018-02-27T01:44:25.000270 | Verline | pythondev_help_Verline_2018-02-27T01:44:25.000270 | 1,519,695,865.00027 | 36,231 |
pythondev | help | Now I’m confused, I merely suggested using `reqparse`. Are you not trying to create a restful api? | 2018-02-27T01:45:46.000175 | Margert | pythondev_help_Margert_2018-02-27T01:45:46.000175 | 1,519,695,946.000175 | 36,232 |
pythondev | help | <@Verline> no I'm not. I'm building the API with `flask` | 2018-02-27T01:45:54.000324 | Hans | pythondev_help_Hans_2018-02-27T01:45:54.000324 | 1,519,695,954.000324 | 36,233 |
pythondev | help | <@Margert> yes. But to use `reqparse`, I assume you need to use `flask-restful` right? | 2018-02-27T01:46:52.000306 | Hans | pythondev_help_Hans_2018-02-27T01:46:52.000306 | 1,519,696,012.000306 | 36,234 |
pythondev | help | I’m pretty sure you’ll do just fine <@Hans>. Try going through the flask tutorial. :slightly_smiling_face: | 2018-02-27T01:46:57.000045 | Margert | pythondev_help_Margert_2018-02-27T01:46:57.000045 | 1,519,696,017.000045 | 36,235 |
pythondev | help | flask_restful is a really useful set of tools for building apis with flask, I'd highly recommend it, it will make your life easier | 2018-02-27T01:47:29.000234 | Verline | pythondev_help_Verline_2018-02-27T01:47:29.000234 | 1,519,696,049.000234 | 36,236 |
pythondev | help | <@Margert> I have. So I'm not completely blank, but the issue above is taking forever to solve. | 2018-02-27T01:48:13.000047 | Hans | pythondev_help_Hans_2018-02-27T01:48:13.000047 | 1,519,696,093.000047 | 36,237 |
pythondev | help | <@Verline> I'll try it and see. When I have time though. Right now I'm in a crunch for time | 2018-02-27T01:48:26.000031 | Hans | pythondev_help_Hans_2018-02-27T01:48:26.000031 | 1,519,696,106.000031 | 36,238 |
pythondev | help | Check this out <@Hans> <https://flask-restful.readthedocs.io/en/0.3.5/quickstart.html#full-example> | 2018-02-27T01:48:28.000146 | Margert | pythondev_help_Margert_2018-02-27T01:48:28.000146 | 1,519,696,108.000146 | 36,239 |
pythondev | help | i wish they used HTTPie for their examples rather than curl | 2018-02-27T01:49:59.000271 | Verline | pythondev_help_Verline_2018-02-27T01:49:59.000271 | 1,519,696,199.000271 | 36,240 |
pythondev | help | HTTPie is so much nicer | 2018-02-27T01:50:06.000174 | Verline | pythondev_help_Verline_2018-02-27T01:50:06.000174 | 1,519,696,206.000174 | 36,241 |
pythondev | help | Well, curl is used in general and comes pre-installed with most OS. But yes, I do agree that HTTPie is definitely a lot nicer. | 2018-02-27T01:52:33.000109 | Margert | pythondev_help_Margert_2018-02-27T01:52:33.000109 | 1,519,696,353.000109 | 36,242 |
pythondev | help | Hi. Can someone recommend me a framework for command line development. I am looking into Cement and Cliff. Then there is Python Fire. I was going towards Cement but am not sure if Python Fire is better or not? | 2018-02-27T04:54:46.000343 | Donya | pythondev_help_Donya_2018-02-27T04:54:46.000343 | 1,519,707,286.000343 | 36,243 |
pythondev | help | I like Click | 2018-02-27T04:58:49.000278 | Zack | pythondev_help_Zack_2018-02-27T04:58:49.000278 | 1,519,707,529.000278 | 36,244 |
pythondev | help | people seem to like click | 2018-02-27T05:06:21.000175 | Verline | pythondev_help_Verline_2018-02-27T05:06:21.000175 | 1,519,707,981.000175 | 36,245 |
pythondev | help | I just got a new computer last week, however on my old one I had set up a public key for ssh into my linode server. But when I tried to login to my server from my new machine I was not allowed to, do I need to remove the old key from my old computer? Or can I simply create a new one on my new machine? | 2018-02-27T05:16:32.000304 | Milo | pythondev_help_Milo_2018-02-27T05:16:32.000304 | 1,519,708,592.000304 | 36,246 |
pythondev | help | you need to recover the key from your old machine, or create a new one on your new machine, and upload the public key to the linode server somehow | 2018-02-27T05:17:39.000504 | Zack | pythondev_help_Zack_2018-02-27T05:17:39.000504 | 1,519,708,659.000504 | 36,247 |
pythondev | help | if I recall linode has a virtual console, right? | 2018-02-27T05:17:47.000313 | Zack | pythondev_help_Zack_2018-02-27T05:17:47.000313 | 1,519,708,667.000313 | 36,248 |
pythondev | help | yes the lisp one I think? | 2018-02-27T05:18:04.000517 | Milo | pythondev_help_Milo_2018-02-27T05:18:04.000517 | 1,519,708,684.000517 | 36,249 |
pythondev | help | It has nothing to do with lisp, you’ll just be looking for a way to get access to the machine without needing a password, basically | 2018-02-27T05:18:31.000051 | Zack | pythondev_help_Zack_2018-02-27T05:18:31.000051 | 1,519,708,711.000051 | 36,250 |
pythondev | help | well if you still have the old laptop it may be easier to get the key from there | 2018-02-27T05:20:29.000310 | Micki | pythondev_help_Micki_2018-02-27T05:20:29.000310 | 1,519,708,829.00031 | 36,251 |
pythondev | help | then would I just copy it over? | 2018-02-27T05:24:43.000499 | Milo | pythondev_help_Milo_2018-02-27T05:24:43.000499 | 1,519,709,083.000499 | 36,252 |
pythondev | help | to your new machine | 2018-02-27T05:25:00.000164 | Zack | pythondev_help_Zack_2018-02-27T05:25:00.000164 | 1,519,709,100.000164 | 36,253 |
pythondev | help | :point_up: | 2018-02-27T05:25:06.000255 | Micki | pythondev_help_Micki_2018-02-27T05:25:06.000255 | 1,519,709,106.000255 | 36,254 |
pythondev | help | I agree with <@Micki>, that’s the way to go if you still have access | 2018-02-27T05:25:27.000508 | Zack | pythondev_help_Zack_2018-02-27T05:25:27.000508 | 1,519,709,127.000508 | 36,255 |
pythondev | help | cool will do that, annoying I don't have the machine with me now :grinning: | 2018-02-27T05:26:24.000466 | Milo | pythondev_help_Milo_2018-02-27T05:26:24.000466 | 1,519,709,184.000466 | 36,256 |
pythondev | help | thanks <@Micki>:taco: <@Zack> :taco: | 2018-02-27T05:27:08.000102 | Milo | pythondev_help_Milo_2018-02-27T05:27:08.000102 | 1,519,709,228.000102 | 36,257 |
pythondev | help | I got one more question, not really python related, so can ommit from here if need be, but on this site <http://shewfood.co.uk/> the links don't work in bigger than mobile view which is weird. | 2018-02-27T05:39:00.000223 | Milo | pythondev_help_Milo_2018-02-27T05:39:00.000223 | 1,519,709,940.000223 | 36,258 |
pythondev | help | Hello together :wave:
I joined this group in order to pimp my Python knowledge and I hope I'm at the right place. I'm pretty much a Python beginner coming from a years long Ruby background | 2018-02-27T05:43:01.000019 | Season | pythondev_help_Season_2018-02-27T05:43:01.000019 | 1,519,710,181.000019 | 36,259 |
pythondev | help | OK let me check click. <@Zack> <@Verline> | 2018-02-27T06:21:02.000268 | Donya | pythondev_help_Donya_2018-02-27T06:21:02.000268 | 1,519,712,462.000268 | 36,260 |
pythondev | help | how can I find where the driver for my `ODBC Driver 13 for SQL Server` is? | 2018-02-27T06:39:50.000071 | Milo | pythondev_help_Milo_2018-02-27T06:39:50.000071 | 1,519,713,590.000071 | 36,261 |
pythondev | help | currently my `odbcinst.ini` file looks like this;
```
[ODBC]
Trace = No
TraceFile = /tmp/odbc.log
[FreeTDS]
Description = FreeTDS
Driver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so
Setup = /usr/lib/x86_64-linux-gnu/odbc/libtdsS.so
UsageCount = 1
[ODBC Driver 13 for SQL Server]
Description=Microsoft ODBC Driver 1... | 2018-02-27T06:40:22.000172 | Milo | pythondev_help_Milo_2018-02-27T06:40:22.000172 | 1,519,713,622.000172 | 36,262 |
pythondev | help | This is so confusing I have installed it correctly, but I have no idea where the location of the driver is | 2018-02-27T06:57:46.000410 | Milo | pythondev_help_Milo_2018-02-27T06:57:46.000410 | 1,519,714,666.00041 | 36,263 |
pythondev | help | Hi guys
I'm new in the channel and I would like to ask you if is possible to change an existing web application to multi tenant application if it's possible could you show the documentation | 2018-02-27T07:49:00.000496 | Logan | pythondev_help_Logan_2018-02-27T07:49:00.000496 | 1,519,717,740.000496 | 36,264 |
pythondev | help | probably. did you build it with an existing framework and if so, is there anything in that framework that would support multi-tenancy? | 2018-02-27T07:49:44.000370 | Floy | pythondev_help_Floy_2018-02-27T07:49:44.000370 | 1,519,717,784.00037 | 36,265 |
pythondev | help | Yes I did with django | 2018-02-27T07:55:38.000439 | Logan | pythondev_help_Logan_2018-02-27T07:55:38.000439 | 1,519,718,138.000439 | 36,266 |
pythondev | help | ok, and IIRC there is a django multi-tenancy app | 2018-02-27T07:57:49.000368 | Floy | pythondev_help_Floy_2018-02-27T07:57:49.000368 | 1,519,718,269.000368 | 36,267 |
pythondev | help | have you looked at that? | 2018-02-27T07:57:55.000116 | Floy | pythondev_help_Floy_2018-02-27T07:57:55.000116 | 1,519,718,275.000116 | 36,268 |
pythondev | help | No I haven't but now I will | 2018-02-27T08:03:33.000361 | Logan | pythondev_help_Logan_2018-02-27T08:03:33.000361 | 1,519,718,613.000361 | 36,269 |
pythondev | help | for future reference, <http://djangopackages.org|djangopackages.org> is a great site to check if you’re looking for things to add onto a django project | 2018-02-27T08:04:11.000017 | Floy | pythondev_help_Floy_2018-02-27T08:04:11.000017 | 1,519,718,651.000017 | 36,270 |
pythondev | help | Thanks a lot for your help | 2018-02-27T08:17:31.000127 | Logan | pythondev_help_Logan_2018-02-27T08:17:31.000127 | 1,519,719,451.000127 | 36,271 |
pythondev | help | you can easily log the exception with
```
try:
# stuff
except Exception as e:
your_logger.exception(e)
``` | 2018-02-27T10:42:48.000750 | Micki | pythondev_help_Micki_2018-02-27T10:42:48.000750 | 1,519,728,168.00075 | 36,272 |
pythondev | help | no need to use the `traceback` module | 2018-02-27T10:43:50.000377 | Micki | pythondev_help_Micki_2018-02-27T10:43:50.000377 | 1,519,728,230.000377 | 36,273 |
pythondev | help | or maybe it does other things that I'm not aware of | 2018-02-27T10:44:05.000884 | Micki | pythondev_help_Micki_2018-02-27T10:44:05.000884 | 1,519,728,245.000884 | 36,274 |
pythondev | help | <@Micki> i guess the `traceback` module is giving us more data or something. or at least that’s what the author thought :slightly_smiling_face: | 2018-02-27T10:44:12.000144 | Kieth | pythondev_help_Kieth_2018-02-27T10:44:12.000144 | 1,519,728,252.000144 | 36,275 |
pythondev | help | is there anyone else who would just not do this refactor? | 2018-02-27T10:49:51.000006 | Kieth | pythondev_help_Kieth_2018-02-27T10:49:51.000006 | 1,519,728,591.000006 | 36,276 |
pythondev | help | and leave the old code as it is? | 2018-02-27T10:50:00.000410 | Kieth | pythondev_help_Kieth_2018-02-27T10:50:00.000410 | 1,519,728,600.00041 | 36,277 |
pythondev | help | <@Kieth> super small but: 2 lines between imports and code, and an extra line should be between your 2 return statements (basically, PEP8) | 2018-02-27T10:51:04.000555 | Brande | pythondev_help_Brande_2018-02-27T10:51:04.000555 | 1,519,728,664.000555 | 36,278 |
pythondev | help | oh yeah :slightly_smiling_face: | 2018-02-27T10:51:39.000385 | Kieth | pythondev_help_Kieth_2018-02-27T10:51:39.000385 | 1,519,728,699.000385 | 36,279 |
pythondev | help | also you should use `%` for logging over `format()` for lazy evaluation, otherwise it’ll be evaluated each pass | 2018-02-27T10:53:20.000554 | Brande | pythondev_help_Brande_2018-02-27T10:53:20.000554 | 1,519,728,800.000554 | 36,280 |
pythondev | help | that’s interesting, i didn’t know about that difference | 2018-02-27T10:54:09.000999 | Kieth | pythondev_help_Kieth_2018-02-27T10:54:09.000999 | 1,519,728,849.000999 | 36,281 |
pythondev | help | ```<http://exc_logger.info|exc_logger.info>("Suppressed exception caught while running %s: %s", func.__name__, traceback.format_exc())``` | 2018-02-27T10:54:30.000733 | Brande | pythondev_help_Brande_2018-02-27T10:54:30.000733 | 1,519,728,870.000733 | 36,282 |
pythondev | help | first one here: <https://www.simonmweber.com/2014/11/24/python-logging-traps.html> | 2018-02-27T10:55:33.000702 | Brande | pythondev_help_Brande_2018-02-27T10:55:33.000702 | 1,519,728,933.000702 | 36,283 |
pythondev | help | and I wouldn't log that in info but you do you :slightly_smiling_face: | 2018-02-27T10:56:08.000483 | Micki | pythondev_help_Micki_2018-02-27T10:56:08.000483 | 1,519,728,968.000483 | 36,284 |
pythondev | help | lol | 2018-02-27T10:56:15.000274 | Kieth | pythondev_help_Kieth_2018-02-27T10:56:15.000274 | 1,519,728,975.000274 | 36,285 |
pythondev | help | i didn’t want to poison the waters, but this is a refactor I am resisting | 2018-02-27T10:57:07.000107 | Kieth | pythondev_help_Kieth_2018-02-27T10:57:07.000107 | 1,519,729,027.000107 | 36,286 |
pythondev | help | i think it just obscures the try/except we’re doing | 2018-02-27T10:57:19.000782 | Kieth | pythondev_help_Kieth_2018-02-27T10:57:19.000782 | 1,519,729,039.000782 | 36,287 |
pythondev | help | at least for me it’s a lot easier to read the inline version | 2018-02-27T10:57:30.000312 | Kieth | pythondev_help_Kieth_2018-02-27T10:57:30.000312 | 1,519,729,050.000312 | 36,288 |
pythondev | help | but i don’t know if that’s just me :stuck_out_tongue: | 2018-02-27T10:57:35.000353 | Kieth | pythondev_help_Kieth_2018-02-27T10:57:35.000353 | 1,519,729,055.000353 | 36,289 |
pythondev | help | well if that gets called more than once, each extra time you’re saving doing all of the try/except logic | 2018-02-27T10:58:07.000722 | Brande | pythondev_help_Brande_2018-02-27T10:58:07.000722 | 1,519,729,087.000722 | 36,290 |
pythondev | help | was curious so I looked. It seems if you use `log.exception` it automatically find the traceback | 2018-02-27T10:58:15.000872 | Micki | pythondev_help_Micki_2018-02-27T10:58:15.000872 | 1,519,729,095.000872 | 36,291 |
pythondev | help | but it logged it as an error | 2018-02-27T10:58:23.000102 | Micki | pythondev_help_Micki_2018-02-27T10:58:23.000102 | 1,519,729,103.000102 | 36,292 |
pythondev | help | that might be why you use `traceback` | 2018-02-27T10:58:35.000313 | Micki | pythondev_help_Micki_2018-02-27T10:58:35.000313 | 1,519,729,115.000313 | 36,293 |
pythondev | help | <https://docs.python.org/3/library/logging.html#logging.Logger.exception> | 2018-02-27T10:58:38.000113 | Micki | pythondev_help_Micki_2018-02-27T10:58:38.000113 | 1,519,729,118.000113 | 36,294 |
pythondev | help | and imo a try/except is more noob friendly than the other function | 2018-02-27T10:59:10.000273 | Micki | pythondev_help_Micki_2018-02-27T10:59:10.000273 | 1,519,729,150.000273 | 36,295 |
pythondev | help | or maybe use it as a decorator to `do_something` | 2018-02-27T10:59:38.000648 | Micki | pythondev_help_Micki_2018-02-27T10:59:38.000648 | 1,519,729,178.000648 | 36,296 |
pythondev | help | it looks like they already changed it from `info` to `error` in fact | 2018-02-27T11:01:31.000551 | Kieth | pythondev_help_Kieth_2018-02-27T11:01:31.000551 | 1,519,729,291.000551 | 36,297 |
pythondev | help | so i guess `log.exception()` would be identical to what we’re using huh | 2018-02-27T11:01:41.000347 | Kieth | pythondev_help_Kieth_2018-02-27T11:01:41.000347 | 1,519,729,301.000347 | 36,298 |
pythondev | help | <@Brande> check out what happens if you try using the `exc_return_value` keyword:
```
# old code was:
try:
myvar = do_something("myarg")
except:
myvar = "alternate"
<http://logger.info|logger.info>("Suppressed exception caught while running {}: {}".\
format(func.__name__, traceback.fo... | 2018-02-27T11:04:01.000696 | Kieth | pythondev_help_Kieth_2018-02-27T11:04:01.000696 | 1,519,729,441.000696 | 36,299 |
pythondev | help | ^^ idunno about you but I feel like the extra lines are worth reading the code and knowing what the heck it’s doing :smile: | 2018-02-27T11:04:20.000389 | Kieth | pythondev_help_Kieth_2018-02-27T11:04:20.000389 | 1,519,729,460.000389 | 36,300 |
pythondev | help | yeah old code is way clearer | 2018-02-27T11:06:01.000483 | Micki | pythondev_help_Micki_2018-02-27T11:06:01.000483 | 1,519,729,561.000483 | 36,301 |
pythondev | help | i’m working on a library, and i’m finding that i’m passing variables around quite a bit. i’ve thought about breaking the main() function into a class, but i could also do nested functions to get the globals, i’m kind of confused how i should proceed | 2018-02-27T11:17:05.000506 | Tobias | pythondev_help_Tobias_2018-02-27T11:17:05.000506 | 1,519,730,225.000506 | 36,302 |
pythondev | help | there is maybe one counterpoint on the above, at least `func_suppress_exc()` can be put under test | 2018-02-27T11:24:55.000226 | Kieth | pythondev_help_Kieth_2018-02-27T11:24:55.000226 | 1,519,730,695.000226 | 36,303 |
pythondev | help | I don’t think that helps in this case much because it’s so likely someone is going to call it incorrectly | 2018-02-27T11:25:04.000981 | Kieth | pythondev_help_Kieth_2018-02-27T11:25:04.000981 | 1,519,730,704.000981 | 36,304 |
pythondev | help | <@Kieth> why do you want to suppress exceptions in the first place? | 2018-02-27T11:26:59.000268 | Aleida | pythondev_help_Aleida_2018-02-27T11:26:59.000268 | 1,519,730,819.000268 | 36,305 |
pythondev | help | I'd like to see functions you're willing to wrap in `func_suppress_exc` | 2018-02-27T11:27:34.000725 | Aleida | pythondev_help_Aleida_2018-02-27T11:27:34.000725 | 1,519,730,854.000725 | 36,306 |
pythondev | help | <@Aleida> it’s funny you should ask that… that is a battle I have already lost. the best case I can personally make for it is that we’re working with legacy code and we can’t yet guarantee that everything we call isn’t going to fail for non-fatal reasons, and if we raise the exception that can break some mission criti... | 2018-02-27T11:30:14.000443 | Kieth | pythondev_help_Kieth_2018-02-27T11:30:14.000443 | 1,519,731,014.000443 | 36,307 |
pythondev | help | <@Aleida> btw, you would NOT like to see the functions we’re wrapping :wink: | 2018-02-27T11:32:22.000287 | Kieth | pythondev_help_Kieth_2018-02-27T11:32:22.000287 | 1,519,731,142.000287 | 36,308 |
pythondev | help | :barf: | 2018-02-27T11:32:32.000460 | Kieth | pythondev_help_Kieth_2018-02-27T11:32:32.000460 | 1,519,731,152.00046 | 36,309 |
pythondev | help | Hmm | 2018-02-27T11:32:36.000104 | Aleida | pythondev_help_Aleida_2018-02-27T11:32:36.000104 | 1,519,731,156.000104 | 36,310 |
pythondev | help | Sounds like the function that raised an exception can possibly leave the whole app in a weird, inconsistent state | 2018-02-27T11:33:04.000632 | Aleida | pythondev_help_Aleida_2018-02-27T11:33:04.000632 | 1,519,731,184.000632 | 36,311 |
pythondev | help | Maybe you can just hook into <https://docs.python.org/3/library/sys.html#sys.excepthook> ? | 2018-02-27T11:33:33.000817 | Aleida | pythondev_help_Aleida_2018-02-27T11:33:33.000817 | 1,519,731,213.000817 | 36,312 |
pythondev | help | <@Aleida> if i’m reading it correctly it seems like that would allow the exception to raise and stop the program, but we would control logging first | 2018-02-27T11:35:30.000149 | Kieth | pythondev_help_Kieth_2018-02-27T11:35:30.000149 | 1,519,731,330.000149 | 36,313 |
pythondev | help | but i’m not sure i’m reading it correctly :slightly_smiling_face: | 2018-02-27T11:35:37.000182 | Kieth | pythondev_help_Kieth_2018-02-27T11:35:37.000182 | 1,519,731,337.000182 | 36,314 |
pythondev | help | Oh, right, I forgot that hook can't prevent the exception from being raised | 2018-02-27T11:36:10.000247 | Aleida | pythondev_help_Aleida_2018-02-27T11:36:10.000247 | 1,519,731,370.000247 | 36,315 |
pythondev | help | with script in atom, does anyone know if you can run small segments on code to see if it works? | 2018-02-27T11:36:20.000244 | Milo | pythondev_help_Milo_2018-02-27T11:36:20.000244 | 1,519,731,380.000244 | 36,316 |
pythondev | help | <@Kieth> I honestly don't think that you should have such function. Maybe you can let your program die and configure your process manager to autorestart it in case of a failure? | 2018-02-27T11:37:27.000114 | Aleida | pythondev_help_Aleida_2018-02-27T11:37:27.000114 | 1,519,731,447.000114 | 36,317 |
pythondev | help | <@Aleida> my hands are kind of tied on that, basically the code already catches all exceptions and our mandate is to make our change without modifying that behavior :disappointed: | 2018-02-27T11:38:22.000314 | Kieth | pythondev_help_Kieth_2018-02-27T11:38:22.000314 | 1,519,731,502.000314 | 36,318 |
pythondev | help | but within that mandate I think I’m still opposed to turning the inline try/except into a function | 2018-02-27T11:38:58.000362 | Kieth | pythondev_help_Kieth_2018-02-27T11:38:58.000362 | 1,519,731,538.000362 | 36,319 |
pythondev | help | mkay | 2018-02-27T11:38:58.000488 | Aleida | pythondev_help_Aleida_2018-02-27T11:38:58.000488 | 1,519,731,538.000488 | 36,320 |
pythondev | help | even if it was actually better it would be making it more convenient to do something bad :stuck_out_tongue: | 2018-02-27T11:39:18.000841 | Kieth | pythondev_help_Kieth_2018-02-27T11:39:18.000841 | 1,519,731,558.000841 | 36,321 |
pythondev | help | but it’s not better | 2018-02-27T11:39:21.000080 | Kieth | pythondev_help_Kieth_2018-02-27T11:39:21.000080 | 1,519,731,561.00008 | 36,322 |
pythondev | help | <https://docs.python.org/3/library/contextlib.html#contextlib.suppress> | 2018-02-27T11:39:41.000727 | Aleida | pythondev_help_Aleida_2018-02-27T11:39:41.000727 | 1,519,731,581.000727 | 36,323 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.