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 | <@Yaeko> though about it as well, and I think I'll go this route. <@Jonas> I keep those logs for about 1-2months, and then delete those. I don't just keep those as logs, those are related to 2 more models, so I can check all that data in one place I mean in django-admin dashboard. My examples, was quite heavily stripped down with models values, and serializers values as well. | 2019-02-28T07:53:30.097900 | Faustina | pythondev_help_Faustina_2019-02-28T07:53:30.097900 | 1,551,340,410.0979 | 11,421 |
pythondev | help | Hi guys, I am sharing this one here | 2019-02-28T08:38:45.098200 | Celine | pythondev_help_Celine_2019-02-28T08:38:45.098200 | 1,551,343,125.0982 | 11,422 |
pythondev | help | Hi guys. Is there a way to handle module imports efficiently without using relatives imports. I have a folder structure like this:
main_folder:
-folder1:
script1.py
-folder1_1:
script2.py
-folder2:
script3.py
I need to do something like this:
from script3 import foo | 2019-02-28T09:53:43.103100 | Anika | pythondev_help_Anika_2019-02-28T09:53:43.103100 | 1,551,347,623.1031 | 11,423 |
pythondev | help | you could do abs imports or convert one of the modules to an installable package? | 2019-02-28T09:55:36.103500 | Mica | pythondev_help_Mica_2019-02-28T09:55:36.103500 | 1,551,347,736.1035 | 11,424 |
pythondev | help | also don't forget the `__init__.py` files :stuck_out_tongue: | 2019-02-28T09:55:45.103800 | Mica | pythondev_help_Mica_2019-02-28T09:55:45.103800 | 1,551,347,745.1038 | 11,425 |
pythondev | help | Yeah, you can use `__init__.py` to add stuff to the namespace for a package, and give yourself a shortcut. It's not necessarily more efficient in terms of performance, but can help make your imports cleaner/more sensible | 2019-02-28T10:04:16.106700 | Ashley | pythondev_help_Ashley_2019-02-28T10:04:16.106700 | 1,551,348,256.1067 | 11,426 |
pythondev | help | This message was deleted. | 2019-02-28T10:23:25.108100 | Alejandrina | pythondev_help_Alejandrina_2019-02-28T10:23:25.108100 | 1,551,349,405.1081 | 11,427 |
pythondev | help | Seems like a scam actually | 2019-02-28T10:26:10.108600 | Lillia | pythondev_help_Lillia_2019-02-28T10:26:10.108600 | 1,551,349,570.1086 | 11,428 |
pythondev | help | Corporate VPN blocked it | 2019-02-28T10:26:33.108800 | Lillia | pythondev_help_Lillia_2019-02-28T10:26:33.108800 | 1,551,349,593.1088 | 11,429 |
pythondev | help | Yeah, I'm not going to give my email out to some random thing someone put on Slack | 2019-02-28T10:26:54.109200 | Jonas | pythondev_help_Jonas_2019-02-28T10:26:54.109200 | 1,551,349,614.1092 | 11,430 |
pythondev | help | <@Amal> we have a <#C3GFPUBGF|show_and_tell> channel | 2019-02-28T10:27:11.109600 | Hiroko | pythondev_help_Hiroko_2019-02-28T10:27:11.109600 | 1,551,349,631.1096 | 11,431 |
pythondev | help | but my VPN blocked it | 2019-02-28T10:27:20.109900 | Hiroko | pythondev_help_Hiroko_2019-02-28T10:27:20.109900 | 1,551,349,640.1099 | 11,432 |
pythondev | help | <https://aircto.in/> is a 502 | 2019-02-28T10:27:36.110200 | Jonas | pythondev_help_Jonas_2019-02-28T10:27:36.110200 | 1,551,349,656.1102 | 11,433 |
pythondev | help | very dodgy | 2019-02-28T10:27:38.110500 | Jonas | pythondev_help_Jonas_2019-02-28T10:27:38.110500 | 1,551,349,658.1105 | 11,434 |
pythondev | help | deleting this due to questions about validity. | 2019-02-28T10:29:48.111000 | Hiroko | pythondev_help_Hiroko_2019-02-28T10:29:48.111000 | 1,551,349,788.111 | 11,435 |
pythondev | help | am trying to build text to speech in our own voice, but am unable get the audio of the words can anyone help me out here | 2019-02-28T10:41:23.112300 | Angelo | pythondev_help_Angelo_2019-02-28T10:41:23.112300 | 1,551,350,483.1123 | 11,436 |
pythondev | help | Knowing how to ask a good question is a highly invaluable skill that will benefit you greatly in any career. Two good resources for suggestions and strategies to help you structure and phrase your question to make it easier for those here to understand your problem and help you work to a solution are:
• <https://www.mikeash.com/getting_answers.html>
• <https://stackoverflow.com/help/how-to-ask>
| 2019-02-28T10:45:42.112600 | Leana | pythondev_help_Leana_2019-02-28T10:45:42.112600 | 1,551,350,742.1126 | 11,437 |
pythondev | help | If you have a question, please just ask it. Please do not ask for topic experts; do not DM or ping random users. We cannot begin to answer a question until we actually get a question.
<http://sol.gfxile.net/dontask.html|*Asking Questions*> | 2019-02-28T10:46:09.113000 | Leana | pythondev_help_Leana_2019-02-28T10:46:09.113000 | 1,551,350,769.113 | 11,438 |
pythondev | help | None | 2019-02-28T11:09:38.113300 | Alvina | pythondev_help_Alvina_2019-02-28T11:09:38.113300 | 1,551,352,178.1133 | 11,439 |
pythondev | help | that works but this does not: | 2019-02-28T11:09:46.113700 | Alvina | pythondev_help_Alvina_2019-02-28T11:09:46.113700 | 1,551,352,186.1137 | 11,440 |
pythondev | help | None | 2019-02-28T11:10:40.113800 | Alvina | pythondev_help_Alvina_2019-02-28T11:10:40.113800 | 1,551,352,240.1138 | 11,441 |
pythondev | help | does the psql command need to be a single string instead of a list? | 2019-02-28T11:11:06.114400 | Alvina | pythondev_help_Alvina_2019-02-28T11:11:06.114400 | 1,551,352,266.1144 | 11,442 |
pythondev | help | <@Alvina> use SQLAlchemy instead. It's a much easier interface to work with | 2019-02-28T11:29:02.116100 | Ashley | pythondev_help_Ashley_2019-02-28T11:29:02.116100 | 1,551,353,342.1161 | 11,443 |
pythondev | help | ooooeee lol trying to do python+SQL through bash commands? | 2019-02-28T11:29:50.116600 | Claudine | pythondev_help_Claudine_2019-02-28T11:29:50.116600 | 1,551,353,390.1166 | 11,444 |
pythondev | help | i like the whimsical nature of that haha, but i agree with <@Ashley> there are some nice modules out there that will make your life much easier if you have the option of using them | 2019-02-28T11:30:35.117500 | Claudine | pythondev_help_Claudine_2019-02-28T11:30:35.117500 | 1,551,353,435.1175 | 11,445 |
pythondev | help | agreed | 2019-02-28T11:30:56.117700 | Hiroko | pythondev_help_Hiroko_2019-02-28T11:30:56.117700 | 1,551,353,456.1177 | 11,446 |
pythondev | help | effectively, this approach is making your life much harder than it needs to be | 2019-02-28T11:31:11.118100 | Hiroko | pythondev_help_Hiroko_2019-02-28T11:31:11.118100 | 1,551,353,471.1181 | 11,447 |
pythondev | help | props for attempting it though | 2019-02-28T11:32:16.118400 | Claudine | pythondev_help_Claudine_2019-02-28T11:32:16.118400 | 1,551,353,536.1184 | 11,448 |
pythondev | help | as they say: `To a man with a hammer, the world is a nail` | 2019-02-28T11:32:40.118800 | Claudine | pythondev_help_Claudine_2019-02-28T11:32:40.118800 | 1,551,353,560.1188 | 11,449 |
pythondev | help | The past couple of years I've preferred `if the only tool you have is a hammer, every problem begins to look like your thumb` | 2019-02-28T11:35:09.119500 | Jame | pythondev_help_Jame_2019-02-28T11:35:09.119500 | 1,551,353,709.1195 | 11,450 |
pythondev | help | I like `most people would be surprised by just how much you can do with a hammer` | 2019-02-28T11:37:15.120100 | Clemmie | pythondev_help_Clemmie_2019-02-28T11:37:15.120100 | 1,551,353,835.1201 | 11,451 |
pythondev | help | <@Ashley> this is for bulk exporting large amounts of data (10-50 million rows) on a schedule | 2019-02-28T11:39:37.121000 | Alvina | pythondev_help_Alvina_2019-02-28T11:39:37.121000 | 1,551,353,977.121 | 11,452 |
pythondev | help | COPY is much faster | 2019-02-28T11:39:46.121400 | Alvina | pythondev_help_Alvina_2019-02-28T11:39:46.121400 | 1,551,353,986.1214 | 11,453 |
pythondev | help | and PSQL allows me to copy from a remote server to another file location | 2019-02-28T11:39:59.121900 | Alvina | pythondev_help_Alvina_2019-02-28T11:39:59.121900 | 1,551,353,999.1219 | 11,454 |
pythondev | help | are you moving entire tables? or just a set of rows from a table? | 2019-02-28T11:40:20.122300 | Claudine | pythondev_help_Claudine_2019-02-28T11:40:20.122300 | 1,551,354,020.1223 | 11,455 |
pythondev | help | rows from a table | 2019-02-28T11:40:26.122600 | Alvina | pythondev_help_Alvina_2019-02-28T11:40:26.122600 | 1,551,354,026.1226 | 11,456 |
pythondev | help | oof | 2019-02-28T11:40:29.123000 | Claudine | pythondev_help_Claudine_2019-02-28T11:40:29.123000 | 1,551,354,029.123 | 11,457 |
pythondev | help | i do a lot of shifting around entire tables | 2019-02-28T11:40:36.123400 | Claudine | pythondev_help_Claudine_2019-02-28T11:40:36.123400 | 1,551,354,036.1234 | 11,458 |
pythondev | help | <@Alvina> SQLAlchemy can be used as an interface for multiple DBs, including postgresql | 2019-02-28T11:41:03.124200 | Ashley | pythondev_help_Ashley_2019-02-28T11:41:03.124200 | 1,551,354,063.1242 | 11,459 |
pythondev | help | yeah - not the full table in all cases (unless I do a material view), otherwise I select specific columns and do some joins to dump to a file | 2019-02-28T11:41:17.124700 | Alvina | pythondev_help_Alvina_2019-02-28T11:41:17.124700 | 1,551,354,077.1247 | 11,460 |
pythondev | help | which is then uploaded in bulk to a visualization service | 2019-02-28T11:41:26.125200 | Alvina | pythondev_help_Alvina_2019-02-28T11:41:26.125200 | 1,551,354,086.1252 | 11,461 |
pythondev | help | it is a full replacement of data though (dimensions can change historically) | 2019-02-28T11:41:39.125800 | Alvina | pythondev_help_Alvina_2019-02-28T11:41:39.125800 | 1,551,354,099.1258 | 11,462 |
pythondev | help | just saying you can use it to work with psql instead of going through bash | 2019-02-28T11:41:49.126000 | Ashley | pythondev_help_Ashley_2019-02-28T11:41:49.126000 | 1,551,354,109.126 | 11,463 |
pythondev | help | ahh, i'll check using psql with it | 2019-02-28T11:42:14.126400 | Alvina | pythondev_help_Alvina_2019-02-28T11:42:14.126400 | 1,551,354,134.1264 | 11,464 |
pythondev | help | there's should be a few guides out there for exactly what you want to do | 2019-02-28T11:42:33.126800 | Ashley | pythondev_help_Ashley_2019-02-28T11:42:33.126800 | 1,551,354,153.1268 | 11,465 |
pythondev | help | seems like it is using psycopg2 which I am familiar with and use a lot (copy_to, copy_from, copy_expert, and execute_values) | 2019-02-28T11:45:49.128000 | Alvina | pythondev_help_Alvina_2019-02-28T11:45:49.128000 | 1,551,354,349.128 | 11,466 |
pythondev | help | i believe the \copy command in psql is faster though ("psql is the fastest client out there. The reason is because it's in C (as opposed to others that have many layers of stuff to present or translate data), its TCP messages are minimal.") | 2019-02-28T11:47:27.128800 | Alvina | pythondev_help_Alvina_2019-02-28T11:47:27.128800 | 1,551,354,447.1288 | 11,467 |
pythondev | help | <https://dba.stackexchange.com/questions/36235/export-remote-postgres-table-to-csv-file-on-local-machine> | 2019-02-28T11:51:25.131000 | Alvina | pythondev_help_Alvina_2019-02-28T11:51:25.131000 | 1,551,354,685.131 | 11,468 |
pythondev | help | hey guys, I am currently moving data from flat files on an EC2 instance to onprem MSSQl — I am using df.to_sql, and was wondering if anyone has used bcp utility on linux to do so? | 2019-02-28T11:51:38.131800 | Raguel | pythondev_help_Raguel_2019-02-28T11:51:38.131800 | 1,551,354,698.1318 | 11,469 |
pythondev | help | that's the post which got me started from COPY (psycopg2) to psql in the first place since I am transferring data from remote server A to remote server B | 2019-02-28T11:52:00.132300 | Alvina | pythondev_help_Alvina_2019-02-28T11:52:00.132300 | 1,551,354,720.1323 | 11,470 |
pythondev | help | I pulled down a repo, editted + recompiled it (python & C++), and I'd like to use it in a project. how would I force my virtual environment to reference this local version when using the module instead of using the downloaded release version?
my guess is that i uninstall the old module and then just `mv` my updated version in there, but that seems like it would be a bit naive | 2019-02-28T12:12:10.135400 | Jorge | pythondev_help_Jorge_2019-02-28T12:12:10.135400 | 1,551,355,930.1354 | 11,471 |
pythondev | help | <@Jorge> if it's a python repo, does it have a setup.py? | 2019-02-28T12:22:17.136100 | Ashley | pythondev_help_Ashley_2019-02-28T12:22:17.136100 | 1,551,356,537.1361 | 11,472 |
pythondev | help | yea | 2019-02-28T12:22:36.136300 | Jorge | pythondev_help_Jorge_2019-02-28T12:22:36.136300 | 1,551,356,556.1363 | 11,473 |
pythondev | help | If you activate your virtual environment, and then install it through that setup.py , it should install it to your virtual environment | 2019-02-28T12:26:24.137400 | Ashley | pythondev_help_Ashley_2019-02-28T12:26:24.137400 | 1,551,356,784.1374 | 11,474 |
pythondev | help | I am using <http://exercism.io|exercism.io> to learn python, while there are mentors for core exercises (but normally takes a while to get a review), I would like to have someone review my side exercises. Anyone has time for this? Don't think it will take very long. Here is one of the side exercises: <https://github.com/stt106/exercism-python/tree/master/robot-name> | 2019-02-28T12:56:59.139500 | Lanny | pythondev_help_Lanny_2019-02-28T12:56:59.139500 | 1,551,358,619.1395 | 11,475 |
pythondev | help | thanks for the help. I had to reinstall the module because of some cmake issues, but my local library is correctly working now :slightly_smiling_face:
:taco: <@Ashley> | 2019-02-28T13:11:11.141800 | Jorge | pythondev_help_Jorge_2019-02-28T13:11:11.141800 | 1,551,359,471.1418 | 11,476 |
pythondev | help | Hi, what's a compact way of extracting a substring based on regex ? Preferably something that's OS independent | 2019-02-28T13:49:44.142700 | Angele | pythondev_help_Angele_2019-02-28T13:49:44.142700 | 1,551,361,784.1427 | 11,477 |
pythondev | help | For example: I have a string: "dir_name/filename.extension" and I want to get filename.extension or just filename | 2019-02-28T13:50:46.143400 | Angele | pythondev_help_Angele_2019-02-28T13:50:46.143400 | 1,551,361,846.1434 | 11,478 |
pythondev | help | for that pattern specifically. `.*\/(.*)` | 2019-02-28T13:53:09.143900 | Claudine | pythondev_help_Claudine_2019-02-28T13:53:09.143900 | 1,551,361,989.1439 | 11,479 |
pythondev | help | that would capture everything after the slash | 2019-02-28T13:53:21.144200 | Claudine | pythondev_help_Claudine_2019-02-28T13:53:21.144200 | 1,551,362,001.1442 | 11,480 |
pythondev | help | `.*` matches as many of any character it can up until `\/` which is your forward slash, the backslash is just escaping it because it's a special character, then the `(.*)` will match everything else til the end of the string and put it in a capture group | 2019-02-28T13:54:49.145700 | Claudine | pythondev_help_Claudine_2019-02-28T13:54:49.145700 | 1,551,362,089.1457 | 11,481 |
pythondev | help | i can toss you a code example if you aren't super familiar with regex | 2019-02-28T13:55:13.146000 | Claudine | pythondev_help_Claudine_2019-02-28T13:55:13.146000 | 1,551,362,113.146 | 11,482 |
pythondev | help | also feel free to pop into my second home <#CC4NKARK6|regex> | 2019-02-28T13:55:24.146300 | Claudine | pythondev_help_Claudine_2019-02-28T13:55:24.146300 | 1,551,362,124.1463 | 11,483 |
pythondev | help | <@Angele> there's also specific file path libraries that breakdown the paths into the folders filename, and extension. I would opt for that instead of re-inventing the wheel | 2019-02-28T13:58:25.147400 | Ashley | pythondev_help_Ashley_2019-02-28T13:58:25.147400 | 1,551,362,305.1474 | 11,484 |
pythondev | help | :point_up: | 2019-02-28T13:58:34.147700 | Claudine | pythondev_help_Claudine_2019-02-28T13:58:34.147700 | 1,551,362,314.1477 | 11,485 |
pythondev | help | Many thanks <@Claudine> I can figure it out :slightly_smiling_face: | 2019-02-28T13:58:39.147800 | Angele | pythondev_help_Angele_2019-02-28T13:58:39.147800 | 1,551,362,319.1478 | 11,486 |
pythondev | help | no problem at all | 2019-02-28T13:58:52.148300 | Claudine | pythondev_help_Claudine_2019-02-28T13:58:52.148300 | 1,551,362,332.1483 | 11,487 |
pythondev | help | Thanks <@Ashley>. Btw is the os module platform dependent? | 2019-02-28T13:59:15.149200 | Angele | pythondev_help_Angele_2019-02-28T13:59:15.149200 | 1,551,362,355.1492 | 11,488 |
pythondev | help | i love regex | 2019-02-28T13:59:15.149300 | Claudine | pythondev_help_Claudine_2019-02-28T13:59:15.149300 | 1,551,362,355.1493 | 11,489 |
pythondev | help | I treat it as a necessary evil :wink: | 2019-02-28T13:59:32.149600 | Angele | pythondev_help_Angele_2019-02-28T13:59:32.149600 | 1,551,362,372.1496 | 11,490 |
pythondev | help | haha, i dont think it's evil at all | 2019-02-28T13:59:57.150000 | Claudine | pythondev_help_Claudine_2019-02-28T13:59:57.150000 | 1,551,362,397.15 | 11,491 |
pythondev | help | i like to use it whenever i can wherever i can | 2019-02-28T14:00:08.150400 | Claudine | pythondev_help_Claudine_2019-02-28T14:00:08.150400 | 1,551,362,408.1504 | 11,492 |
pythondev | help | it's not evil, but it's for very specific circumstances | 2019-02-28T14:00:26.150700 | Ashley | pythondev_help_Ashley_2019-02-28T14:00:26.150700 | 1,551,362,426.1507 | 11,493 |
pythondev | help | I don't believe the os module is platform dependant | 2019-02-28T14:00:36.151000 | Ashley | pythondev_help_Ashley_2019-02-28T14:00:36.151000 | 1,551,362,436.151 | 11,494 |
pythondev | help | :+1: | 2019-02-28T14:00:43.151100 | Angele | pythondev_help_Angele_2019-02-28T14:00:43.151100 | 1,551,362,443.1511 | 11,495 |
pythondev | help | Thanks again both! Incredibly useful channel if I may say so | 2019-02-28T14:01:09.151700 | Angele | pythondev_help_Angele_2019-02-28T14:01:09.151700 | 1,551,362,469.1517 | 11,496 |
pythondev | help | You should see some of the abominations against nature <@Claudine> has come up with in regex :wink: | 2019-02-28T14:02:30.152300 | Clemmie | pythondev_help_Clemmie_2019-02-28T14:02:30.152300 | 1,551,362,550.1523 | 11,497 |
pythondev | help | oh god lol | 2019-02-28T14:02:38.152500 | Claudine | pythondev_help_Claudine_2019-02-28T14:02:38.152500 | 1,551,362,558.1525 | 11,498 |
pythondev | help | they were so terrible a regex channel was created to quarantine me | 2019-02-28T14:02:57.152900 | Claudine | pythondev_help_Claudine_2019-02-28T14:02:57.152900 | 1,551,362,577.1529 | 11,499 |
pythondev | help | mighty and terrible | 2019-02-28T14:03:03.153100 | Claudine | pythondev_help_Claudine_2019-02-28T14:03:03.153100 | 1,551,362,583.1531 | 11,500 |
pythondev | help | the first time i made a regex that returned a `pattern to long` error i had to reevaluate my life | 2019-02-28T14:04:37.153900 | Claudine | pythondev_help_Claudine_2019-02-28T14:04:37.153900 | 1,551,362,677.1539 | 11,501 |
pythondev | help | o.O --- TIL | 2019-02-28T14:05:24.154300 | Clemmie | pythondev_help_Clemmie_2019-02-28T14:05:24.154300 | 1,551,362,724.1543 | 11,502 |
pythondev | help | ...Get a better regex parser? | 2019-02-28T14:09:42.154600 | Carmen | pythondev_help_Carmen_2019-02-28T14:09:42.154600 | 1,551,362,982.1546 | 11,503 |
pythondev | help | Joking aside, that sounds like the sort of "what the frak?" situation that shouldn't really come up with a fully-general regex parser. | 2019-02-28T14:10:12.155600 | Carmen | pythondev_help_Carmen_2019-02-28T14:10:12.155600 | 1,551,363,012.1556 | 11,504 |
pythondev | help | well it was a sort of dumb situation haha, I was generating some dynamic patterns and had an unwieldy number of alternations | 2019-02-28T14:11:17.156400 | Claudine | pythondev_help_Claudine_2019-02-28T14:11:17.156400 | 1,551,363,077.1564 | 11,505 |
pythondev | help | it was poor design, no fault of the parser really | 2019-02-28T14:11:39.156900 | Claudine | pythondev_help_Claudine_2019-02-28T14:11:39.156900 | 1,551,363,099.1569 | 11,506 |
pythondev | help | Well, yeah, I figured there was something dynamic going on there, but I can see legitimate cases where you'd use a regex that's really long. | 2019-02-28T14:12:51.157800 | Carmen | pythondev_help_Carmen_2019-02-28T14:12:51.157800 | 1,551,363,171.1578 | 11,507 |
pythondev | help | yea for sure, in this case it was some location focused NLP and i needed to filter a dynamic list of towns | 2019-02-28T14:13:31.158500 | Claudine | pythondev_help_Claudine_2019-02-28T14:13:31.158500 | 1,551,363,211.1585 | 11,508 |
pythondev | help | worked well until the list of towns was in the 10s of thousands | 2019-02-28T14:13:53.158900 | Claudine | pythondev_help_Claudine_2019-02-28T14:13:53.158900 | 1,551,363,233.1589 | 11,509 |
pythondev | help | given the choice i probably wouldn't have built a regex based NLP system but sometimes you inherit some projects that are wonky as fuck | 2019-02-28T14:14:47.159800 | Claudine | pythondev_help_Claudine_2019-02-28T14:14:47.159800 | 1,551,363,287.1598 | 11,510 |
pythondev | help | Well, the other thing is that what works at a small scale sometimes doesn't work at a large scale. They probably designed the original system and thought about the trade-off, but weren't using it for a massive dataset like that. | 2019-02-28T14:19:52.160700 | Carmen | pythondev_help_Carmen_2019-02-28T14:19:52.160700 | 1,551,363,592.1607 | 11,511 |
pythondev | help | I have 2 functions:
```def function_one(bla)
do something
return a, b, c
def function_two(par1, par2, par3, par4)
do something_else
return x```
I would like for function 1 pass the result to fuction 2 like this:
```my_variable = fuction_two(function_one(x), foo)```
I get error:
```
TypeError: function_two() missing 2 required positional arguments: 'par3' and 'par4'
```
What's the right way? | 2019-02-28T18:49:23.165800 | Jennifer | pythondev_help_Jennifer_2019-02-28T18:49:23.165800 | 1,551,379,763.1658 | 11,512 |
pythondev | help | In other words, I would like the return from function_one (a, b, c) to be the input of function 2 plus one more argument.
a = par1
b = par2
c = par3
something_else = par4 | 2019-02-28T18:51:14.167700 | Jennifer | pythondev_help_Jennifer_2019-02-28T18:51:14.167700 | 1,551,379,874.1677 | 11,513 |
pythondev | help | You want the `*` operator to unpack the tuple into parameters... `function_two(*function_one(x), foo)`. | 2019-02-28T18:51:21.168000 | Sasha | pythondev_help_Sasha_2019-02-28T18:51:21.168000 | 1,551,379,881.168 | 11,514 |
pythondev | help | ^ | 2019-02-28T18:51:27.168200 | Carmen | pythondev_help_Carmen_2019-02-28T18:51:27.168200 | 1,551,379,887.1682 | 11,515 |
pythondev | help | Let me try. | 2019-02-28T18:51:39.168300 | Jennifer | pythondev_help_Jennifer_2019-02-28T18:51:39.168300 | 1,551,379,899.1683 | 11,516 |
pythondev | help | <@Sasha> it worked like a charm. Thank you SO MUCH! :slightly_smiling_face: | 2019-02-28T18:52:43.168500 | Jennifer | pythondev_help_Jennifer_2019-02-28T18:52:43.168500 | 1,551,379,963.1685 | 11,517 |
pythondev | help | :+1: | 2019-02-28T18:53:12.168700 | Sasha | pythondev_help_Sasha_2019-02-28T18:53:12.168700 | 1,551,379,992.1687 | 11,518 |
pythondev | help | Out of curiosity if I wanted just a subset of the return values? (the first, or second, or first and third?) | 2019-02-28T18:53:33.168900 | Jennifer | pythondev_help_Jennifer_2019-02-28T18:53:33.168900 | 1,551,380,013.1689 | 11,519 |
pythondev | help | You should be able to slice them like a regular list or tuple, like `function_one(x)[1:2]`. | 2019-02-28T18:54:17.169100 | Sasha | pythondev_help_Sasha_2019-02-28T18:54:17.169100 | 1,551,380,057.1691 | 11,520 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.