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 | haha, yes its basically like - have you turned it on? :joy: | 2019-01-21T11:14:56.021600 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:14:56.021600 | 1,548,069,296.0216 | 3,421 |
pythondev | help | sorry, I don’t have any ideas. | 2019-01-21T11:14:58.021800 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:14:58.021800 | 1,548,069,298.0218 | 3,422 |
pythondev | help | perfect! I should have remembered that one :see_no_evil: <@Hiroko> :taco: | 2019-01-21T11:14:59.021900 | Arturo | pythondev_help_Arturo_2019-01-21T11:14:59.021900 | 1,548,069,299.0219 | 3,423 |
pythondev | help | was your db under high load at that time? | 2019-01-21T11:15:57.022400 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:15:57.022400 | 1,548,069,357.0224 | 3,424 |
pythondev | help | perhaps if it was under high load with elevated query times, perhaps the scheduler wasn’t able to fire off at the appropriate time due to a query timeout? | 2019-01-21T11:16:38.023100 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:16:38.023100 | 1,548,069,398.0231 | 3,425 |
pythondev | help | I’m just spitballing here | 2019-01-21T11:16:46.023300 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:16:46.023300 | 1,548,069,406.0233 | 3,426 |
pythondev | help | also are you logging db queries? | 2019-01-21T11:17:35.023600 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:17:35.023600 | 1,548,069,455.0236 | 3,427 |
pythondev | help | Nope, latency and and requests, seem pretty normal | 2019-01-21T11:17:49.023800 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:17:49.023800 | 1,548,069,469.0238 | 3,428 |
pythondev | help | agreed | 2019-01-21T11:18:02.024300 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:18:02.024300 | 1,548,069,482.0243 | 3,429 |
pythondev | help | I am logging queries yes | 2019-01-21T11:19:12.024900 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:19:12.024900 | 1,548,069,552.0249 | 3,430 |
pythondev | help | since the scheduler is db backed, I’m curious whether it actually executed the query | 2019-01-21T11:19:22.025200 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:19:22.025200 | 1,548,069,562.0252 | 3,431 |
pythondev | help | if so, it narrows down whether the failure happened before or after the db was checked | 2019-01-21T11:20:03.026000 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:20:03.026000 | 1,548,069,603.026 | 3,432 |
pythondev | help | Then we would see a dip during that time no? The scheduler should have checked atleast a couple of times within that 2 hour period, because about 3 tasks were missed within that period | 2019-01-21T11:20:42.026800 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:20:42.026800 | 1,548,069,642.0268 | 3,433 |
pythondev | help | ah actually there was a slight problem, it was to do with 'lte' not being the complete string, do you think I should use regex to get it? | 2019-01-21T11:21:51.026900 | Arturo | pythondev_help_Arturo_2019-01-21T11:21:51.026900 | 1,548,069,711.0269 | 3,434 |
pythondev | help | correct | 2019-01-21T11:22:37.027300 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:22:37.027300 | 1,548,069,757.0273 | 3,435 |
pythondev | help | which graph is the db monitor? | 2019-01-21T11:23:36.028000 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:23:36.028000 | 1,548,069,816.028 | 3,436 |
pythondev | help | <https://stackoverflow.com/questions/14849293/python-find-index-position-in-list-based-of-partial-string> | 2019-01-21T11:24:08.028500 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:24:08.028500 | 1,548,069,848.0285 | 3,437 |
pythondev | help | The first one is total requests, and 3rd is latency. Both are actually for postgres, the db | 2019-01-21T11:24:14.028900 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:24:14.028900 | 1,548,069,854.0289 | 3,438 |
pythondev | help | :thumbsup: | 2019-01-21T11:24:56.029300 | Arturo | pythondev_help_Arturo_2019-01-21T11:24:56.029300 | 1,548,069,896.0293 | 3,439 |
pythondev | help | gotcha. but it doesn’t show which query is being executed | 2019-01-21T11:25:01.029600 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:25:01.029600 | 1,548,069,901.0296 | 3,440 |
pythondev | help | just that something happened | 2019-01-21T11:25:32.030000 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:25:32.030000 | 1,548,069,932.03 | 3,441 |
pythondev | help | Oh right, the logs are below. Is there something specific you want to look at? | 2019-01-21T11:26:12.030700 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:26:12.030700 | 1,548,069,972.0307 | 3,442 |
pythondev | help | That time range? | 2019-01-21T11:26:16.030900 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:26:16.030900 | 1,548,069,976.0309 | 3,443 |
pythondev | help | Hows this. | 2019-01-21T11:26:54.031000 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:26:54.031000 | 1,548,070,014.031 | 3,444 |
pythondev | help | ah, ok. so, the query did execute, and none of them have errors occured | 2019-01-21T11:27:36.031600 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:27:36.031600 | 1,548,070,056.0316 | 3,445 |
pythondev | help | hmm | 2019-01-21T11:28:00.031800 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:28:00.031800 | 1,548,070,080.0318 | 3,446 |
pythondev | help | and I assume they returned a result set | 2019-01-21T11:28:50.033100 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:28:50.033100 | 1,548,070,130.0331 | 3,447 |
pythondev | help | :thinking_face: | 2019-01-21T11:29:09.033600 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:29:09.033600 | 1,548,070,149.0336 | 3,448 |
pythondev | help | At the end of the day though, this is all quite low level. If I implemented this scheduler, then for sure, this investigation makes sense. But this is a library and I am at the mercy of its own implementation and bugs. Unfortunately, based on the number of issues piling up, its not very well supported.
Based on this a... | 2019-01-21T11:30:11.034900 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:30:11.034900 | 1,548,070,211.0349 | 3,449 |
pythondev | help | the primary advantage of django-celery-beat is the django admin integration | 2019-01-21T11:31:12.035300 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:31:12.035300 | 1,548,070,272.0353 | 3,450 |
pythondev | help | do you need that? | 2019-01-21T11:31:15.035500 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:31:15.035500 | 1,548,070,275.0355 | 3,451 |
pythondev | help | I would have thought its also the models and the structure it setups to have the scheduler based on the DB, run by beat. | 2019-01-21T11:31:52.036400 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:31:52.036400 | 1,548,070,312.0364 | 3,452 |
pythondev | help | I don't use the admin too much, I look it at every now and then to check for schedule times | 2019-01-21T11:32:07.036800 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:32:07.036800 | 1,548,070,327.0368 | 3,453 |
pythondev | help | and to verify if that task should have fired | 2019-01-21T11:32:51.037500 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:32:51.037500 | 1,548,070,371.0375 | 3,454 |
pythondev | help | :thumbsup: | 2019-01-21T11:33:03.037700 | Hiroko | pythondev_help_Hiroko_2019-01-21T11:33:03.037700 | 1,548,070,383.0377 | 3,455 |
pythondev | help | This is a core part of my app, so if you have another other suggestions for schedulers I am all for it. As far as I can tell, I can keep celery around and remove beat.
Have something else inspect the DB and keep an eye on what should fire when, and then tell celery to run it. | 2019-01-21T11:35:31.039500 | Lawanna | pythondev_help_Lawanna_2019-01-21T11:35:31.039500 | 1,548,070,531.0395 | 3,456 |
pythondev | help | RE: Python's versions of virtual environments, are they intended just for development purposes or are they also intended to go to production? (In order to follow this thread, please hover over and click on the comment/start thread icon to the far right to open another window where you can enter your comments. Thanks) | 2019-01-21T17:26:42.044000 | Corey | pythondev_help_Corey_2019-01-21T17:26:42.044000 | 1,548,091,602.044 | 3,457 |
pythondev | help | well, you can use them in both | 2019-01-21T17:31:05.044200 | Hiroko | pythondev_help_Hiroko_2019-01-21T17:31:05.044200 | 1,548,091,865.0442 | 3,458 |
pythondev | help | I have when working directly with non dockerized projects | 2019-01-21T17:31:24.044700 | Hiroko | pythondev_help_Hiroko_2019-01-21T17:31:24.044700 | 1,548,091,884.0447 | 3,459 |
pythondev | help | reason is, separating packages from system python is usually a good thing | 2019-01-21T17:31:38.045100 | Hiroko | pythondev_help_Hiroko_2019-01-21T17:31:38.045100 | 1,548,091,898.0451 | 3,460 |
pythondev | help | and FWIW, it was only recently that linux distros started including py3 by default, so if I needed to use that, it included installing which 3.x version I needed. Might not have necessarily been needed, but it is good practice that I tend to follow | 2019-01-21T17:32:48.046400 | Hiroko | pythondev_help_Hiroko_2019-01-21T17:32:48.046400 | 1,548,091,968.0464 | 3,461 |
pythondev | help | I was worried that might affect performance. Good to know! | 2019-01-21T18:48:55.047400 | Shanna | pythondev_help_Shanna_2019-01-21T18:48:55.047400 | 1,548,096,535.0474 | 3,462 |
pythondev | help | Hey everyone, I was wondering if there were any guidelines in python for naming projects under a single organization. In Java, there is the reverse-domain-name convention. I see that python doesn't really conform to this. Is there a "pythonic" way to name python projects under a single organization? | 2019-01-21T19:35:49.050500 | Vita | pythondev_help_Vita_2019-01-21T19:35:49.050500 | 1,548,099,349.0505 | 3,463 |
pythondev | help | Not really. I mean, you could do it as an internal convention | 2019-01-21T19:46:55.051300 | Hiroko | pythondev_help_Hiroko_2019-01-21T19:46:55.051300 | 1,548,100,015.0513 | 3,464 |
pythondev | help | But usually it’s just project name to whatever internal modules and packages | 2019-01-21T19:47:45.052600 | Hiroko | pythondev_help_Hiroko_2019-01-21T19:47:45.052600 | 1,548,100,065.0526 | 3,465 |
pythondev | help | Thanks, I did find this PEP: <https://www.python.org/dev/peps/pep-0423/>. But it is deferred. Still has some good stuff though. | 2019-01-21T19:49:05.053300 | Vita | pythondev_help_Vita_2019-01-21T19:49:05.053300 | 1,548,100,145.0533 | 3,466 |
pythondev | help | And won’t be implemented anytime soon | 2019-01-21T19:51:00.053900 | Hiroko | pythondev_help_Hiroko_2019-01-21T19:51:00.053900 | 1,548,100,260.0539 | 3,467 |
pythondev | help | <https://www.python.org/dev/peps/pep-0426/> | 2019-01-21T19:51:04.054100 | Hiroko | pythondev_help_Hiroko_2019-01-21T19:51:04.054100 | 1,548,100,264.0541 | 3,468 |
pythondev | help | There really isn’t a need for that kind of rigid hierarchy with python. The conventions are less enterprise-y and more relaxed | 2019-01-21T19:57:02.056400 | Hiroko | pythondev_help_Hiroko_2019-01-21T19:57:02.056400 | 1,548,100,622.0564 | 3,469 |
pythondev | help | Yes, PEP-423 seems more like guidelines. I don't think there is much to implement per se. | 2019-01-21T20:00:47.056900 | Vita | pythondev_help_Vita_2019-01-21T20:00:47.056900 | 1,548,100,847.0569 | 3,470 |
pythondev | help | I have one scraper that I currently run locally but I intend to put it up in the great clouds of the internet. One thing I have to do to achieve that, is finding the base directory of my project (regardless of where it runs). Does this line achieve this? ```BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__f... | 2019-01-22T00:19:04.061700 | Conchita | pythondev_help_Conchita_2019-01-22T00:19:04.061700 | 1,548,116,344.0617 | 3,471 |
pythondev | help | Yes it does | 2019-01-22T00:28:14.062100 | Valeri | pythondev_help_Valeri_2019-01-22T00:28:14.062100 | 1,548,116,894.0621 | 3,472 |
pythondev | help | Sweet, here's your :taco: <@Valeri> | 2019-01-22T00:29:06.062500 | Conchita | pythondev_help_Conchita_2019-01-22T00:29:06.062500 | 1,548,116,946.0625 | 3,473 |
pythondev | help | Lol thanks | 2019-01-22T00:31:49.062700 | Valeri | pythondev_help_Valeri_2019-01-22T00:31:49.062700 | 1,548,117,109.0627 | 3,474 |
pythondev | help | :pacman: | 2019-01-22T00:32:14.062800 | Valeri | pythondev_help_Valeri_2019-01-22T00:32:14.062800 | 1,548,117,134.0628 | 3,475 |
pythondev | help | Where I can ask for code review and get good review? | 2019-01-22T01:19:42.064000 | Karen | pythondev_help_Karen_2019-01-22T01:19:42.064000 | 1,548,119,982.064 | 3,476 |
pythondev | help | This channel is okay, <@Karen> | 2019-01-22T01:27:36.066900 | Chester | pythondev_help_Chester_2019-01-22T01:27:36.066900 | 1,548,120,456.0669 | 3,477 |
pythondev | help | <@Karen> it depends. Best would be leveraging your colleagues / folks from the field who are familiar with the problems you are solving. If you are looking for correct styling, you might be already aware, but here is the link to PEP-8: <https://www.python.org/dev/peps/pep-0008/;> In case there is a question about effic... | 2019-01-22T01:27:36.067000 | Leonie | pythondev_help_Leonie_2019-01-22T01:27:36.067000 | 1,548,120,456.067 | 3,478 |
pythondev | help | (Btw, thanks for your very unique nickname!) | 2019-01-22T01:27:45.067300 | Chester | pythondev_help_Chester_2019-01-22T01:27:45.067300 | 1,548,120,465.0673 | 3,479 |
pythondev | help | whats wrong with my nickname? | 2019-01-22T01:28:21.067700 | Karen | pythondev_help_Karen_2019-01-22T01:28:21.067700 | 1,548,120,501.0677 | 3,480 |
pythondev | help | It's actually very good - we have soooo many `@JP`s, `@Jose`s and so on | 2019-01-22T01:29:54.069100 | Chester | pythondev_help_Chester_2019-01-22T01:29:54.069100 | 1,548,120,594.0691 | 3,481 |
pythondev | help | It's hard to do a proper mention | 2019-01-22T01:30:12.069500 | Chester | pythondev_help_Chester_2019-01-22T01:30:12.069500 | 1,548,120,612.0695 | 3,482 |
pythondev | help | it's just first name+ first letter of last name | 2019-01-22T01:32:21.070000 | Karen | pythondev_help_Karen_2019-01-22T01:32:21.070000 | 1,548,120,741.07 | 3,483 |
pythondev | help | None | 2019-01-22T01:34:18.070300 | Karen | pythondev_help_Karen_2019-01-22T01:34:18.070300 | 1,548,120,858.0703 | 3,484 |
pythondev | help | is this code optimal? can it be impoved? | 2019-01-22T01:34:35.070800 | Karen | pythondev_help_Karen_2019-01-22T01:34:35.070800 | 1,548,120,875.0708 | 3,485 |
pythondev | help | You can use a list comprehension if you want: `instance_name = [x['name'] for x in instances]`. | 2019-01-22T01:35:56.071600 | Sasha | pythondev_help_Sasha_2019-01-22T01:35:56.071600 | 1,548,120,956.0716 | 3,486 |
pythondev | help | Append while you match | 2019-01-22T01:36:07.071900 | Valeri | pythondev_help_Valeri_2019-01-22T01:36:07.071900 | 1,548,120,967.0719 | 3,487 |
pythondev | help | Or a generator would work, and also satisfy <@Valeri>’s compute-as-you-go suggestion. | 2019-01-22T01:43:07.073200 | Sasha | pythondev_help_Sasha_2019-01-22T01:43:07.073200 | 1,548,121,387.0732 | 3,488 |
pythondev | help | <@Sasha> would it be too much if I ask you to show me how to convert it to a generator? | 2019-01-22T01:44:10.073800 | Karen | pythondev_help_Karen_2019-01-22T01:44:10.073800 | 1,548,121,450.0738 | 3,489 |
pythondev | help | another alternative | 2019-01-22T01:44:16.073900 | Leonie | pythondev_help_Leonie_2019-01-22T01:44:16.073900 | 1,548,121,456.0739 | 3,490 |
pythondev | help | A generator would just be `instance_name = (x['name'] for x in instances)`. Parentheses instead of brackets. <@Leonie>’s approach is similar. | 2019-01-22T01:45:48.075000 | Sasha | pythondev_help_Sasha_2019-01-22T01:45:48.075000 | 1,548,121,548.075 | 3,491 |
pythondev | help | I see thanks guys/gals! | 2019-01-22T01:48:43.075400 | Karen | pythondev_help_Karen_2019-01-22T01:48:43.075400 | 1,548,121,723.0754 | 3,492 |
pythondev | help | BTW there was nothing particularly "wrong" with your original version. These are just some ways you can save a line or two. | 2019-01-22T01:50:35.076600 | Sasha | pythondev_help_Sasha_2019-01-22T01:50:35.076600 | 1,548,121,835.0766 | 3,493 |
pythondev | help | I know, I really want to learn to write easy to read and understand code that works fast enough... | 2019-01-22T01:51:15.077200 | Karen | pythondev_help_Karen_2019-01-22T01:51:15.077200 | 1,548,121,875.0772 | 3,494 |
pythondev | help | Sadly I have deadlines so I have to write working code no matter if it's spaghetti | 2019-01-22T01:51:51.077800 | Karen | pythondev_help_Karen_2019-01-22T01:51:51.077800 | 1,548,121,911.0778 | 3,495 |
pythondev | help | Syntactic sugar won't make your code run faster | 2019-01-22T01:53:15.078700 | Lynnette | pythondev_help_Lynnette_2019-01-22T01:53:15.078700 | 1,548,121,995.0787 | 3,496 |
pythondev | help | I know | 2019-01-22T01:54:44.079000 | Karen | pythondev_help_Karen_2019-01-22T01:54:44.079000 | 1,548,122,084.079 | 3,497 |
pythondev | help | I think I have optimal speed, but readability is a problem. | 2019-01-22T01:55:29.079800 | Karen | pythondev_help_Karen_2019-01-22T01:55:29.079800 | 1,548,122,129.0798 | 3,498 |
pythondev | help | `for` loops are usually slower than map and list comprehension | 2019-01-22T02:01:14.080500 | Leonie | pythondev_help_Leonie_2019-01-22T02:01:14.080500 | 1,548,122,474.0805 | 3,499 |
pythondev | help | is it okay if i have some simple logic in `if __name__ == '__main__':` | 2019-01-22T02:04:28.080800 | Karen | pythondev_help_Karen_2019-01-22T02:04:28.080800 | 1,548,122,668.0808 | 3,500 |
pythondev | help | like this
```
if args.rname:
main(args.action, args.project_id, args.bucket_name, args.zone, args.rname, args.count, args.cpu, args.ram,
args.disk_size, args.disk_size,
True)
else:
main(args.action, args.project_id, args.bucket_name, args.zone, args.name[0], args.count,... | 2019-01-22T02:04:52.081100 | Karen | pythondev_help_Karen_2019-01-22T02:04:52.081100 | 1,548,122,692.0811 | 3,501 |
pythondev | help | <@Karen>, I would reduce the number of arguments passed to main(). Instead, I would use arg parser in the body of main. Which package do you currently use for arg parsing? Is it argparse? | 2019-01-22T02:08:29.082800 | Leonie | pythondev_help_Leonie_2019-01-22T02:08:29.082800 | 1,548,122,909.0828 | 3,502 |
pythondev | help | <@Leonie> yes argparse | 2019-01-22T02:09:27.083200 | Karen | pythondev_help_Karen_2019-01-22T02:09:27.083200 | 1,548,122,967.0832 | 3,503 |
pythondev | help | what's the difference if i pass them to main or parse them inside main? | 2019-01-22T02:10:47.084300 | Karen | pythondev_help_Karen_2019-01-22T02:10:47.084300 | 1,548,123,047.0843 | 3,504 |
pythondev | help | There is this trick that you could use assuming main() calls other function that actually needs those arguments:
```
args = parser.parse_args()
some_function(**vars(args))
```
As for why reducing the number of args, it is readability and parsing args when you are going to use them rather than before. | 2019-01-22T02:13:00.086300 | Leonie | pythondev_help_Leonie_2019-01-22T02:13:00.086300 | 1,548,123,180.0863 | 3,505 |
pythondev | help | I see thank you :kissing_heart: I actually just saw that i repeated one argument by mistake, asking questions is so useful. | 2019-01-22T02:15:30.087600 | Karen | pythondev_help_Karen_2019-01-22T02:15:30.087600 | 1,548,123,330.0876 | 3,506 |
pythondev | help | main() is normally not where actual functionality happens, but it is rather an entry point... that's another reason for deferring passing args and not blowing args list of main() | 2019-01-22T02:16:55.088900 | Leonie | pythondev_help_Leonie_2019-01-22T02:16:55.088900 | 1,548,123,415.0889 | 3,507 |
pythondev | help | There is also `os.getcwd()` that return the current working directory. It's not the base directory but the directory the script was launch from | 2019-01-22T03:22:36.089700 | Jimmy | pythondev_help_Jimmy_2019-01-22T03:22:36.089700 | 1,548,127,356.0897 | 3,508 |
pythondev | help | Noted! Thanks | 2019-01-22T03:38:29.089900 | Conchita | pythondev_help_Conchita_2019-01-22T03:38:29.089900 | 1,548,128,309.0899 | 3,509 |
pythondev | help | For one of my scrapers I'm building I try to pass a url to scrape. However, I'm getting the following error ```requests.exceptions.InvalidSchema: No connection adapters were found for '('<https://bitinfocharts.com/top-100-richest-auroracoin-addresses-1.html>',)'
``` I have tried both format methods as you can see in my... | 2019-01-22T03:42:14.091100 | Conchita | pythondev_help_Conchita_2019-01-22T03:42:14.091100 | 1,548,128,534.0911 | 3,510 |
pythondev | help | I removed the rest of the scraper logic for readability | 2019-01-22T03:42:54.091800 | Conchita | pythondev_help_Conchita_2019-01-22T03:42:54.091800 | 1,548,128,574.0918 | 3,511 |
pythondev | help | There's a comma at the end of L#10 | 2019-01-22T03:46:46.094000 | Conrad | pythondev_help_Conrad_2019-01-22T03:46:46.094000 | 1,548,128,806.094 | 3,512 |
pythondev | help | I'm more of a python 2.x guy, but I'm not sure that should be there | 2019-01-22T03:47:04.094400 | Conrad | pythondev_help_Conrad_2019-01-22T03:47:04.094400 | 1,548,128,824.0944 | 3,513 |
pythondev | help | it seems to set `self.url` to a tuple instead of a string | 2019-01-22T03:47:23.094700 | Conrad | pythondev_help_Conrad_2019-01-22T03:47:23.094700 | 1,548,128,843.0947 | 3,514 |
pythondev | help | yes exactly :point_up: | 2019-01-22T03:48:20.094900 | Jimmy | pythondev_help_Jimmy_2019-01-22T03:48:20.094900 | 1,548,128,900.0949 | 3,515 |
pythondev | help | `self.url` is a tuple of one element `url` | 2019-01-22T03:48:40.095500 | Jimmy | pythondev_help_Jimmy_2019-01-22T03:48:40.095500 | 1,548,128,920.0955 | 3,516 |
pythondev | help | from my shell -:
```
In [1]: x = "<http://www.google.com|www.google.com>",
In [2]: x
Out[2]: ('<http://www.google.com|www.google.com>',)
In [3]: x = "<http://www.google.com|www.google.com>"
In [4]: x
Out[4]: '<http://www.google.com|www.google.com>'
``` | 2019-01-22T03:49:37.095700 | Conrad | pythondev_help_Conrad_2019-01-22T03:49:37.095700 | 1,548,128,977.0957 | 3,517 |
pythondev | help | Aha! The comma was the cause! Have a :taco: <@Jimmy> <@Conrad> | 2019-01-22T03:51:45.096800 | Conchita | pythondev_help_Conchita_2019-01-22T03:51:45.096800 | 1,548,129,105.0968 | 3,518 |
pythondev | help | morning, I have a dict where I want to replace some values with a dictcomp
```
dik = {'room':None, 'square':'10m2'}
try:
ads = {k: v.replace('Zimmer', '').replace('m2', '') for k, v in dik.items()}
except AttributeError: # if value is None
pass
print(dik)
>>>> {'room': None, 'square': '10m2'}
```
i... | 2019-01-22T03:52:21.097200 | Bernita | pythondev_help_Bernita_2019-01-22T03:52:21.097200 | 1,548,129,141.0972 | 3,519 |
pythondev | help | `k: v.replace('Zimmer', '').replace('m2', '') for k, v in dik.items() if v is not None` | 2019-01-22T03:53:01.097700 | Jimmy | pythondev_help_Jimmy_2019-01-22T03:53:01.097700 | 1,548,129,181.0977 | 3,520 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.