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 | hey <@Glinda>. Thanks for the feedback. Will definitely look at implementing a better solution. The date submitted by the form is from a javascript date selector so should be formatted the same every time. But agree with you I should find a better solution. | 2017-11-30T20:17:50.000723 | Corrinne | pythondev_help_Corrinne_2017-11-30T20:17:50.000723 | 1,512,073,070.000723 | 101,703 |
pythondev | help | redine? | 2017-11-30T22:50:09.000593 | Winnie | pythondev_help_Winnie_2017-11-30T22:50:09.000593 | 1,512,082,209.000593 | 101,704 |
pythondev | help | redefine | 2017-11-30T22:53:29.000691 | Glinda | pythondev_help_Glinda_2017-11-30T22:53:29.000691 | 1,512,082,409.000691 | 101,705 |
pythondev | help | <@Glinda> my data is like this
```
<name>
<description>
[description]*
Alternate: <text>
[text]*
2nd Alternate: <text>
[text]*
<name>
...
``` | 2017-11-30T22:55:25.000789 | Winnie | pythondev_help_Winnie_2017-11-30T22:55:25.000789 | 1,512,082,525.000789 | 101,706 |
pythondev | help | if that makes sense | 2017-11-30T22:55:41.000023 | Winnie | pythondev_help_Winnie_2017-11-30T22:55:41.000023 | 1,512,082,541.000023 | 101,707 |
pythondev | help | Do you actually have brackets or is that your way of showing variables | 2017-11-30T22:55:56.000434 | Glinda | pythondev_help_Glinda_2017-11-30T22:55:56.000434 | 1,512,082,556.000434 | 101,708 |
pythondev | help | latter | 2017-11-30T22:56:26.000573 | Winnie | pythondev_help_Winnie_2017-11-30T22:56:26.000573 | 1,512,082,586.000573 | 101,709 |
pythondev | help | so the text relating to the description/alt1/alt2 can be made up of one or more lines following it, until the next mode is seen | 2017-11-30T22:57:23.000800 | Winnie | pythondev_help_Winnie_2017-11-30T22:57:23.000800 | 1,512,082,643.0008 | 101,710 |
pythondev | help | <@Winnie> what was your question? | 2017-11-30T23:10:25.000190 | Collette | pythondev_help_Collette_2017-11-30T23:10:25.000190 | 1,512,083,425.00019 | 101,711 |
pythondev | help | None | 2017-11-30T23:10:57.000250 | Winnie | pythondev_help_Winnie_2017-11-30T23:10:57.000250 | 1,512,083,457.00025 | 101,712 |
pythondev | help | <@Winnie> I posted a couple of ways you can make it more pythonic | 2017-11-30T23:24:10.000743 | Glinda | pythondev_help_Glinda_2017-11-30T23:24:10.000743 | 1,512,084,250.000743 | 101,713 |
pythondev | help | thank you but they don't solve what my program is solving | 2017-11-30T23:24:28.000432 | Winnie | pythondev_help_Winnie_2017-11-30T23:24:28.000432 | 1,512,084,268.000432 | 101,714 |
pythondev | help | How so? | 2017-11-30T23:27:52.000950 | Glinda | pythondev_help_Glinda_2017-11-30T23:27:52.000950 | 1,512,084,472.00095 | 101,715 |
pythondev | help | After looking at the data it appears that your values for each dictionary can span multiple lines | 2017-11-30T23:30:22.000760 | Glinda | pythondev_help_Glinda_2017-11-30T23:30:22.000760 | 1,512,084,622.00076 | 101,716 |
pythondev | help | yeah | 2017-11-30T23:30:28.000358 | Winnie | pythondev_help_Winnie_2017-11-30T23:30:28.000358 | 1,512,084,628.000358 | 101,717 |
pythondev | help | Are you also removing new line characters? | 2017-11-30T23:30:36.000063 | Glinda | pythondev_help_Glinda_2017-11-30T23:30:36.000063 | 1,512,084,636.000063 | 101,718 |
pythondev | help | only at the end | 2017-11-30T23:31:16.000386 | Winnie | pythondev_help_Winnie_2017-11-30T23:31:16.000386 | 1,512,084,676.000386 | 101,719 |
pythondev | help | can you give an example of your desired processed ? | 2017-11-30T23:34:13.000325 | Glinda | pythondev_help_Glinda_2017-11-30T23:34:13.000325 | 1,512,084,853.000325 | 101,720 |
pythondev | help | Something like you're yielding a single dictionary for each `'name': 'value'` pair? `yield {'name': 'value', 'desc': 'multiline combined', 'alt1' : 'multiline combined', 'alt2': 'multiline combined' }` | 2017-11-30T23:36:56.000043 | Glinda | pythondev_help_Glinda_2017-11-30T23:36:56.000043 | 1,512,085,016.000043 | 101,721 |
pythondev | help | yeah | 2017-11-30T23:47:32.000137 | Winnie | pythondev_help_Winnie_2017-11-30T23:47:32.000137 | 1,512,085,652.000137 | 101,722 |
pythondev | help | <@Corrinne> what has worked for me so far is to just store unix timestamps in the database as integers, and then handle all the formatting application-side. this takes care of a single format for datetime, plus no confusion with timezones since everything is utc. | 2017-12-01T01:50:30.000595 | Cleora | pythondev_help_Cleora_2017-12-01T01:50:30.000595 | 1,512,093,030.000595 | 101,723 |
pythondev | help | can some one point me to a understanding to run a main .py for running 4 scripts at diffrent times everyday ..
1,py - run betweeen 09-16
2.py - run at 18 and end at 22 - run sound.py one time at 18
3.py - run between 22-09
script 1-2-3.py is a visual script with tkinter with diffrent msg in fullscreen | 2017-12-01T03:12:47.000375 | Marg | pythondev_help_Marg_2017-12-01T03:12:47.000375 | 1,512,097,967.000375 | 101,724 |
pythondev | help | cron? | 2017-12-01T03:14:59.000552 | Suellen | pythondev_help_Suellen_2017-12-01T03:14:59.000552 | 1,512,098,099.000552 | 101,725 |
pythondev | help | or a Windows Scheduler if you're on Win | 2017-12-01T03:15:13.000532 | Suellen | pythondev_help_Suellen_2017-12-01T03:15:13.000532 | 1,512,098,113.000532 | 101,726 |
pythondev | help | It's easy to start at $TIME1, but a bit trickier to stop the script at $TIME2 | 2017-12-01T03:15:52.000180 | Suellen | pythondev_help_Suellen_2017-12-01T03:15:52.000180 | 1,512,098,152.00018 | 101,727 |
pythondev | help | well $TIME2 can be a param you pass to the script and it shutdown by itself at that time | 2017-12-01T03:22:32.000286 | Ciera | pythondev_help_Ciera_2017-12-01T03:22:32.000286 | 1,512,098,552.000286 | 101,728 |
pythondev | help | can be messy :confused: | 2017-12-01T03:23:37.000248 | Suellen | pythondev_help_Suellen_2017-12-01T03:23:37.000248 | 1,512,098,617.000248 | 101,729 |
pythondev | help | what if it's doing something | 2017-12-01T03:23:46.000429 | Suellen | pythondev_help_Suellen_2017-12-01T03:23:46.000429 | 1,512,098,626.000429 | 101,730 |
pythondev | help | I don't really like self-exiting stuff :slightly_smiling_face: | 2017-12-01T03:23:58.000097 | Suellen | pythondev_help_Suellen_2017-12-01T03:23:58.000097 | 1,512,098,638.000097 | 101,731 |
pythondev | help | well I don't know the script but I would imagine a `while time.time() < $TIME2` | 2017-12-01T03:24:30.000022 | Ciera | pythondev_help_Ciera_2017-12-01T03:24:30.000022 | 1,512,098,670.000022 | 101,732 |
pythondev | help | so you don't just nuke everything at the end :smile: | 2017-12-01T03:25:03.000037 | Ciera | pythondev_help_Ciera_2017-12-01T03:25:03.000037 | 1,512,098,703.000037 | 101,733 |
pythondev | help | running everything in linux ( openbox) | 2017-12-01T03:34:15.000119 | Marg | pythondev_help_Marg_2017-12-01T03:34:15.000119 | 1,512,099,255.000119 | 101,734 |
pythondev | help | Is the program interactive or is it just displaying things? | 2017-12-01T03:35:24.000453 | Suellen | pythondev_help_Suellen_2017-12-01T03:35:24.000453 | 1,512,099,324.000453 | 101,735 |
pythondev | help | just displaying | 2017-12-01T03:38:14.000323 | Marg | pythondev_help_Marg_2017-12-01T03:38:14.000323 | 1,512,099,494.000323 | 101,736 |
pythondev | help | Then <@Ciera>’s advice is the way to go. You can provide a command-line argument to this script, which would be, for example, a number of seconds to run.
And then you launch it using cron at 9:00 for 7 hours:
`/path/to/script1.py 25200` | 2017-12-01T03:48:07.000244 | Suellen | pythondev_help_Suellen_2017-12-01T03:48:07.000244 | 1,512,100,087.000244 | 101,737 |
pythondev | help | I'm not exactly sure about cron and graphical applications, let me check | 2017-12-01T03:48:34.000622 | Suellen | pythondev_help_Suellen_2017-12-01T03:48:34.000622 | 1,512,100,114.000622 | 101,738 |
pythondev | help | if it's a modern linux I would use systemd timers instead of cron :slightly_smiling_face: | 2017-12-01T03:49:18.000509 | Ciera | pythondev_help_Ciera_2017-12-01T03:49:18.000509 | 1,512,100,158.000509 | 101,739 |
pythondev | help | oh, right | 2017-12-01T03:49:29.000313 | Suellen | pythondev_help_Suellen_2017-12-01T03:49:29.000313 | 1,512,100,169.000313 | 101,740 |
pythondev | help | haven't had the chance to use this yet | 2017-12-01T03:49:37.000534 | Suellen | pythondev_help_Suellen_2017-12-01T03:49:37.000534 | 1,512,100,177.000534 | 101,741 |
pythondev | help | cron is just so comfy :slightly_smiling_face: | 2017-12-01T03:49:45.000416 | Suellen | pythondev_help_Suellen_2017-12-01T03:49:45.000416 | 1,512,100,185.000416 | 101,742 |
pythondev | help | yeah cron is easy | 2017-12-01T03:50:09.000542 | Ciera | pythondev_help_Ciera_2017-12-01T03:50:09.000542 | 1,512,100,209.000542 | 101,743 |
pythondev | help | but for more complex things systemd timers are nice. | 2017-12-01T03:50:28.000031 | Ciera | pythondev_help_Ciera_2017-12-01T03:50:28.000031 | 1,512,100,228.000031 | 101,744 |
pythondev | help | oh, you can even stop the service after a number of seconds | 2017-12-01T03:51:22.000487 | Suellen | pythondev_help_Suellen_2017-12-01T03:51:22.000487 | 1,512,100,282.000487 | 101,745 |
pythondev | help | no need to code anything in the app itself | 2017-12-01T03:51:32.000232 | Suellen | pythondev_help_Suellen_2017-12-01T03:51:32.000232 | 1,512,100,292.000232 | 101,746 |
pythondev | help | yeah but then you nuke everything I suppose and don't cleanup | 2017-12-01T03:51:53.000212 | Ciera | pythondev_help_Ciera_2017-12-01T03:51:53.000212 | 1,512,100,313.000212 | 101,747 |
pythondev | help | or you would need to listen for `SIGHUP` / `SIGKILL` | 2017-12-01T03:52:09.000941 | Ciera | pythondev_help_Ciera_2017-12-01T03:52:09.000941 | 1,512,100,329.000941 | 101,748 |
pythondev | help | afaik, systemd doesn't really `kill -9` right away | 2017-12-01T03:52:11.000271 | Suellen | pythondev_help_Suellen_2017-12-01T03:52:11.000271 | 1,512,100,331.000271 | 101,749 |
pythondev | help | yeah and they also implemented a watchdog to restart your service if not responding | 2017-12-01T03:52:55.000480 | Ciera | pythondev_help_Ciera_2017-12-01T03:52:55.000480 | 1,512,100,375.00048 | 101,750 |
pythondev | help | guys is there any existing library in python to get disk speed / IO and network IO apart from psutil | 2017-12-01T06:02:09.000437 | Sara | pythondev_help_Sara_2017-12-01T06:02:09.000437 | 1,512,108,129.000437 | 101,751 |
pythondev | help | why isn't psutil suitable? | 2017-12-01T06:02:58.000128 | Suellen | pythondev_help_Suellen_2017-12-01T06:02:58.000128 | 1,512,108,178.000128 | 101,752 |
pythondev | help | Hi guys! Can som1 help me with making a script. I am new in Python. I have one script that downloads files every 15s and put them in the zip and now I need to make another script that follows the changes of those files and if the zip folders are'nt increasing in size the notification should be sent on particular email. | 2017-12-01T08:35:40.000840 | Ivonne | pythondev_help_Ivonne_2017-12-01T08:35:40.000840 | 1,512,117,340.00084 | 101,753 |
pythondev | help | Hey <@Ivonne>. I don't think anyone here will do the work for you. Maybe try to do something by yourself and if you get stuck ask for help on a specific issue. If you are new to python we often recommend <https://automatetheboringstuff.com/> | 2017-12-01T08:48:23.000337 | Ciera | pythondev_help_Ciera_2017-12-01T08:48:23.000337 | 1,512,118,103.000337 | 101,754 |
pythondev | help | Hey guys, so im trying to get all the duplicate part_no's that i have stores in a table, and have that in a report that can be downloaded at anytime.
```
def duplicate_components(request):
response = HttpResponse(content_type='text.csv')
response['Content-Disposition'] = 'attachment; filename="duplicate_compon... | 2017-12-01T09:03:35.000585 | Robbin | pythondev_help_Robbin_2017-12-01T09:03:35.000585 | 1,512,119,015.000585 | 101,755 |
pythondev | help | what I’d do is look at <http://xlsxwriter.readthedocs.io/> | 2017-12-01T09:06:01.000902 | Meg | pythondev_help_Meg_2017-12-01T09:06:01.000902 | 1,512,119,161.000902 | 101,756 |
pythondev | help | use that to generate an excel spreadsheet | 2017-12-01T09:06:13.000053 | Meg | pythondev_help_Meg_2017-12-01T09:06:13.000053 | 1,512,119,173.000053 | 101,757 |
pythondev | help | but your original question… your output is doing exactly what you’re telling it to do | 2017-12-01T09:06:43.000567 | Meg | pythondev_help_Meg_2017-12-01T09:06:43.000567 | 1,512,119,203.000567 | 101,758 |
pythondev | help | because `dups` is a queryset | 2017-12-01T09:07:14.000007 | Meg | pythondev_help_Meg_2017-12-01T09:07:14.000007 | 1,512,119,234.000007 | 101,759 |
pythondev | help | how do you iterate over a queryset to extract the values you need to some intermediate object? | 2017-12-01T09:07:34.000360 | Meg | pythondev_help_Meg_2017-12-01T09:07:34.000360 | 1,512,119,254.00036 | 101,760 |
pythondev | help | Yeah i know, im struggling with how i can convert it so i can use keys to print them to a csv file | 2017-12-01T09:07:45.000664 | Robbin | pythondev_help_Robbin_2017-12-01T09:07:45.000664 | 1,512,119,265.000664 | 101,761 |
pythondev | help | well, you’re telling it to use values | 2017-12-01T09:08:03.000208 | Meg | pythondev_help_Meg_2017-12-01T09:08:03.000208 | 1,512,119,283.000208 | 101,762 |
pythondev | help | I have tried to use values_list, i don't know any other alternatives. | 2017-12-01T09:08:46.000638 | Robbin | pythondev_help_Robbin_2017-12-01T09:08:46.000638 | 1,512,119,326.000638 | 101,763 |
pythondev | help | assuming you have a loop like `for dup in dups` | 2017-12-01T09:10:50.000557 | Meg | pythondev_help_Meg_2017-12-01T09:10:50.000557 | 1,512,119,450.000557 | 101,764 |
pythondev | help | you’d access the property with a dot variable like `dup.part_no`, `dup.name_count` | 2017-12-01T09:11:13.000221 | Meg | pythondev_help_Meg_2017-12-01T09:11:13.000221 | 1,512,119,473.000221 | 101,765 |
pythondev | help | oh, wait | 2017-12-01T09:11:31.000831 | Meg | pythondev_help_Meg_2017-12-01T09:11:31.000831 | 1,512,119,491.000831 | 101,766 |
pythondev | help | I have tried: So i have other reports that i have created | 2017-12-01T09:11:31.001031 | Robbin | pythondev_help_Robbin_2017-12-01T09:11:31.001031 | 1,512,119,491.001031 | 101,767 |
pythondev | help | its a dict set | 2017-12-01T09:11:37.000629 | Meg | pythondev_help_Meg_2017-12-01T09:11:37.000629 | 1,512,119,497.000629 | 101,768 |
pythondev | help | so it’d be `dup.get('part_no')` | 2017-12-01T09:11:47.000155 | Meg | pythondev_help_Meg_2017-12-01T09:11:47.000155 | 1,512,119,507.000155 | 101,769 |
pythondev | help | ahhhhh | 2017-12-01T09:12:06.000020 | Robbin | pythondev_help_Robbin_2017-12-01T09:12:06.000020 | 1,512,119,526.00002 | 101,770 |
pythondev | help | yeah, because with that one, you’re using the queryset with the actual model objects | 2017-12-01T09:12:18.000203 | Meg | pythondev_help_Meg_2017-12-01T09:12:18.000203 | 1,512,119,538.000203 | 101,771 |
pythondev | help | with `values`, its just pulling out the field and value alone, and you have to use dict notation | 2017-12-01T09:12:37.000884 | Meg | pythondev_help_Meg_2017-12-01T09:12:37.000884 | 1,512,119,557.000884 | 101,772 |
pythondev | help | writer.writerow([dups.get('part_no'), dups.get('name_count')]) | 2017-12-01T09:13:22.000364 | Robbin | pythondev_help_Robbin_2017-12-01T09:13:22.000364 | 1,512,119,602.000364 | 101,773 |
pythondev | help | no | 2017-12-01T09:13:51.000129 | Meg | pythondev_help_Meg_2017-12-01T09:13:51.000129 | 1,512,119,631.000129 | 101,774 |
pythondev | help | because `dups` is a list of dicts | 2017-12-01T09:13:57.000523 | Meg | pythondev_help_Meg_2017-12-01T09:13:57.000523 | 1,512,119,637.000523 | 101,775 |
pythondev | help | thats why i need the for loop? | 2017-12-01T09:14:16.000049 | Robbin | pythondev_help_Robbin_2017-12-01T09:14:16.000049 | 1,512,119,656.000049 | 101,776 |
pythondev | help | yes | 2017-12-01T09:14:29.000218 | Meg | pythondev_help_Meg_2017-12-01T09:14:29.000218 | 1,512,119,669.000218 | 101,777 |
pythondev | help | unless there’s some way `writerow` will take in a dict | 2017-12-01T09:14:49.000496 | Meg | pythondev_help_Meg_2017-12-01T09:14:49.000496 | 1,512,119,689.000496 | 101,778 |
pythondev | help | hmm, you can use dictwriter instead | 2017-12-01T09:15:11.000361 | Meg | pythondev_help_Meg_2017-12-01T09:15:11.000361 | 1,512,119,711.000361 | 101,779 |
pythondev | help | <https://stackoverflow.com/a/8331638/214892> | 2017-12-01T09:15:30.000479 | Meg | pythondev_help_Meg_2017-12-01T09:15:30.000479 | 1,512,119,730.000479 | 101,780 |
pythondev | help | help I have 2 counters containing objects but when I find their difference I get an empty counter back | 2017-12-01T09:15:44.000623 | Winnie | pythondev_help_Winnie_2017-12-01T09:15:44.000623 | 1,512,119,744.000623 | 101,781 |
pythondev | help | What is the best place to learn fundamentals of computer science and programming I feel like i am missing some things and want to retouch my vocabulary and fundamentals of how things work data memory etc | 2017-12-01T09:32:56.000561 | Lilliam | pythondev_help_Lilliam_2017-12-01T09:32:56.000561 | 1,512,120,776.000561 | 101,782 |
pythondev | help | <@Winnie> can you show the code snippet? | 2017-12-01T09:34:20.000209 | Suellen | pythondev_help_Suellen_2017-12-01T09:34:20.000209 | 1,512,120,860.000209 | 101,783 |
pythondev | help | Perhaps this book: <https://bigmachine.io/products/the-imposters-handbook> | 2017-12-01T09:37:06.000958 | Louvenia | pythondev_help_Louvenia_2017-12-01T09:37:06.000958 | 1,512,121,026.000958 | 101,784 |
pythondev | help | NVM I GOT IT | 2017-12-01T09:39:25.000985 | Winnie | pythondev_help_Winnie_2017-12-01T09:39:25.000985 | 1,512,121,165.000985 | 101,785 |
pythondev | help | <@Suellen> it was a problem of iterating an iterator twice | 2017-12-01T09:39:39.000375 | Winnie | pythondev_help_Winnie_2017-12-01T09:39:39.000375 | 1,512,121,179.000375 | 101,786 |
pythondev | help | that's the second time I've had that bug | 2017-12-01T09:40:15.000774 | Winnie | pythondev_help_Winnie_2017-12-01T09:40:15.000774 | 1,512,121,215.000774 | 101,787 |
pythondev | help | any tips on how to stop shooting myself in the foot like that? | 2017-12-01T09:40:35.000412 | Winnie | pythondev_help_Winnie_2017-12-01T09:40:35.000412 | 1,512,121,235.000412 | 101,788 |
pythondev | help | don't iterate over already exhausted generators ¯\_(ツ)_/¯ | 2017-12-01T09:43:05.000109 | Suellen | pythondev_help_Suellen_2017-12-01T09:43:05.000109 | 1,512,121,385.000109 | 101,789 |
pythondev | help | but I don't know that they're generators... | 2017-12-01T09:43:15.000459 | Winnie | pythondev_help_Winnie_2017-12-01T09:43:15.000459 | 1,512,121,395.000459 | 101,790 |
pythondev | help | my functions took in an items field | 2017-12-01T09:43:38.000332 | Winnie | pythondev_help_Winnie_2017-12-01T09:43:38.000332 | 1,512,121,418.000332 | 101,791 |
pythondev | help | but I had items as Counter.elements() | 2017-12-01T09:43:52.001032 | Winnie | pythondev_help_Winnie_2017-12-01T09:43:52.001032 | 1,512,121,432.001032 | 101,792 |
pythondev | help | thanks any free ebooks out there or anything? | 2017-12-01T10:00:09.001138 | Lilliam | pythondev_help_Lilliam_2017-12-01T10:00:09.001138 | 1,512,122,409.001138 | 101,793 |
pythondev | help | I plan on purchasing this though this seems good but do you know of any free material | 2017-12-01T10:01:16.000682 | Lilliam | pythondev_help_Lilliam_2017-12-01T10:01:16.000682 | 1,512,122,476.000682 | 101,794 |
pythondev | help | By counter you mean `collections.Counter` ? | 2017-12-01T10:08:55.000077 | Glinda | pythondev_help_Glinda_2017-12-01T10:08:55.000077 | 1,512,122,935.000077 | 101,795 |
pythondev | help | Couple of problems I might not be understanding correctly.
1. You aren't sure if you are getting an iterator or a iterable. In the first case you exhaust your iterable when you compare. The second case you can do a good check later.
2. You are always getting an iterator and will always run into the exhausted iterato... | 2017-12-01T10:16:20.000455 | Glinda | pythondev_help_Glinda_2017-12-01T10:16:20.000455 | 1,512,123,380.000455 | 101,796 |
pythondev | help | So in the case that you actually have an iterable you don't need to worry about exhausting your iterable. This leads us to how do you deal with exhausting an iterable? Well one way is to create an iterable like a list, but this gets rid of the advantages of an iterable- the returned contents could be really large. | 2017-12-01T10:18:29.000517 | Glinda | pythondev_help_Glinda_2017-12-01T10:18:29.000517 | 1,512,123,509.000517 | 101,797 |
pythondev | help | Here's a function that goes over another method that keeps it in an iterable, and lets you deal with not having large memory concerns.
<http://www.effectivepython.com/2015/01/03/be-defensive-when-iterating-over-arguments/> | 2017-12-01T10:19:19.000436 | Glinda | pythondev_help_Glinda_2017-12-01T10:19:19.000436 | 1,512,123,559.000436 | 101,798 |
pythondev | help | return True if y else False | 2017-12-01T10:29:37.000551 | Glinda | pythondev_help_Glinda_2017-12-01T10:29:37.000551 | 1,512,124,177.000551 | 101,799 |
pythondev | help | ```def test_funct(y_val):
return True if y_val else False
if __name__ == '__main__':
print(test_funct(None))
print(test_funct(1))``` | 2017-12-01T10:30:52.000693 | Glinda | pythondev_help_Glinda_2017-12-01T10:30:52.000693 | 1,512,124,252.000693 | 101,800 |
pythondev | help | That's making it longer, I know you can do a one line statement for when you have a boolean operation, I just can't remember the syntax for it | 2017-12-01T10:31:58.000764 | Lory | pythondev_help_Lory_2017-12-01T10:31:58.000764 | 1,512,124,318.000764 | 101,801 |
pythondev | help | So you want `single line if else value assignment?` | 2017-12-01T10:33:01.000070 | Glinda | pythondev_help_Glinda_2017-12-01T10:33:01.000070 | 1,512,124,381.00007 | 101,802 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.