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
which would be a controller, or view
2019-05-10T12:12:15.216000
Hiroko
pythondev_help_Hiroko_2019-05-10T12:12:15.216000
1,557,490,335.216
23,021
pythondev
help
so for all these three different endpoints, there will be a different handler with different queries?
2019-05-10T12:17:28.217600
Raguel
pythondev_help_Raguel_2019-05-10T12:17:28.217600
1,557,490,648.2176
23,022
pythondev
help
I have a list of files and they all have different types of file extentions, its either `.exe` or `.txt` i have 2 lists how do i make it so that it can detect that it has a file name of a `txt` then it would add it to the TXT list and same for the `exe`
2019-05-10T12:18:18.218600
Rodrick
pythondev_help_Rodrick_2019-05-10T12:18:18.218600
1,557,490,698.2186
23,023
pythondev
help
or like if they are related resources, one handler with if statements, parsing endpoints?
2019-05-10T12:18:25.218700
Raguel
pythondev_help_Raguel_2019-05-10T12:18:25.218700
1,557,490,705.2187
23,024
pythondev
help
`os.path.splitext` might be helpful
2019-05-10T12:19:40.219000
Raguel
pythondev_help_Raguel_2019-05-10T12:19:40.219000
1,557,490,780.219
23,025
pythondev
help
more like, one thing parsing the URL and packaging it into params for your handler
2019-05-10T12:19:58.219200
Hiroko
pythondev_help_Hiroko_2019-05-10T12:19:58.219200
1,557,490,798.2192
23,026
pythondev
help
a mapper would map your URL definition to a handler
2019-05-10T12:20:11.219400
Hiroko
pythondev_help_Hiroko_2019-05-10T12:20:11.219400
1,557,490,811.2194
23,027
pythondev
help
How would I use that in that scenario
2019-05-10T12:20:38.219600
Rodrick
pythondev_help_Rodrick_2019-05-10T12:20:38.219600
1,557,490,838.2196
23,028
pythondev
help
so one handler per endpoint that would handle the HTTP verb required (get, put, post, delete, etc)
2019-05-10T12:21:07.219800
Hiroko
pythondev_help_Hiroko_2019-05-10T12:21:07.219800
1,557,490,867.2198
23,029
pythondev
help
do you have sample file names?
2019-05-10T12:22:13.220000
Raguel
pythondev_help_Raguel_2019-05-10T12:22:13.220000
1,557,490,933.22
23,030
pythondev
help
Yes, dataentry.exe, dataentry2.exe, and dataentry.txt, dataentry2.txt
2019-05-10T12:23:01.220200
Rodrick
pythondev_help_Rodrick_2019-05-10T12:23:01.220200
1,557,490,981.2202
23,031
pythondev
help
But the names will greatly change
2019-05-10T12:23:09.220400
Rodrick
pythondev_help_Rodrick_2019-05-10T12:23:09.220400
1,557,490,989.2204
23,032
pythondev
help
those are just samples
2019-05-10T12:23:19.220600
Rodrick
pythondev_help_Rodrick_2019-05-10T12:23:19.220600
1,557,490,999.2206
23,033
pythondev
help
and when we say endpoint here, /users would be one, and users/123 would be another, and two handlers for each, right?
2019-05-10T12:24:02.220800
Raguel
pythondev_help_Raguel_2019-05-10T12:24:02.220800
1,557,491,042.2208
23,034
pythondev
help
or I should be making like one handler for /users, and then parse that if there is 123 after that, I should fetch from same handler
2019-05-10T12:24:28.221000
Raguel
pythondev_help_Raguel_2019-05-10T12:24:28.221000
1,557,491,068.221
23,035
pythondev
help
you have those names already in list, or you are going to read them from directory?
2019-05-10T12:25:25.221200
Raguel
pythondev_help_Raguel_2019-05-10T12:25:25.221200
1,557,491,125.2212
23,036
pythondev
help
correct. because one would be a List in the response and the other woould be a Detail
2019-05-10T12:26:07.221800
Hiroko
pythondev_help_Hiroko_2019-05-10T12:26:07.221800
1,557,491,167.2218
23,037
pythondev
help
you can share logic between them, but they have different responsibilities
2019-05-10T12:26:23.222000
Hiroko
pythondev_help_Hiroko_2019-05-10T12:26:23.222000
1,557,491,183.222
23,038
pythondev
help
I have them in a list and i have 2 other lists to add the files to but i want it to be able add it to either the EXE filetype list if it is an exe and add it to the TXT filetype list if it is a txt
2019-05-10T12:27:21.222200
Rodrick
pythondev_help_Rodrick_2019-05-10T12:27:21.222200
1,557,491,241.2222
23,039
pythondev
help
okay that makes sense. also, I am not sure I understand controller/view -- let me read on them and get back to you if I have more questions. thanks a lot!!
2019-05-10T12:28:21.222600
Raguel
pythondev_help_Raguel_2019-05-10T12:28:21.222600
1,557,491,301.2226
23,040
pythondev
help
:taco: <@Hiroko>
2019-05-10T12:28:36.222800
Raguel
pythondev_help_Raguel_2019-05-10T12:28:36.222800
1,557,491,316.2228
23,041
pythondev
help
``` txt = [] exe = [] files = ['dataentry.exe', 'dataentry2.exe', 'dataentry.txt', 'dataentry2.txt'] for f in files: ext = f.split('.')[1] if ext == 'txt': txt.append(f) else: exe.append(f) ```
2019-05-10T12:30:48.223600
Raguel
pythondev_help_Raguel_2019-05-10T12:30:48.223600
1,557,491,448.2236
23,042
pythondev
help
for django, check this out: <https://simpleisbetterthancomplex.com/tutorial/2018/02/03/how-to-use-restful-apis-with-django.html>
2019-05-10T12:31:11.223800
Hiroko
pythondev_help_Hiroko_2019-05-10T12:31:11.223800
1,557,491,471.2238
23,043
pythondev
help
also <https://wsvincent.com/official-django-rest-framework-tutorial-beginners-guide/>
2019-05-10T12:32:34.224100
Hiroko
pythondev_help_Hiroko_2019-05-10T12:32:34.224100
1,557,491,554.2241
23,044
pythondev
help
I have been looking into existing API made by a guy before me, and at backend it has like lot of queries like this `select * from users where user=%(user)`, and I was just wondering if that is the best way to go about in terms of flexibility and maintaining it
2019-05-10T12:33:17.224400
Raguel
pythondev_help_Raguel_2019-05-10T12:33:17.224400
1,557,491,597.2244
23,045
pythondev
help
depends
2019-05-10T12:34:01.224600
Hiroko
pythondev_help_Hiroko_2019-05-10T12:34:01.224600
1,557,491,641.2246
23,046
pythondev
help
are you using a framework? flask/django/etc?
2019-05-10T12:34:07.224800
Hiroko
pythondev_help_Hiroko_2019-05-10T12:34:07.224800
1,557,491,647.2248
23,047
pythondev
help
but holy hell, sql injection
2019-05-10T12:34:29.225100
Hiroko
pythondev_help_Hiroko_2019-05-10T12:34:29.225100
1,557,491,669.2251
23,048
pythondev
help
something like this
2019-05-10T12:34:45.225300
Raguel
pythondev_help_Raguel_2019-05-10T12:34:45.225300
1,557,491,685.2253
23,049
pythondev
help
not yet -- these all queries are in aws lambda
2019-05-10T12:35:23.225500
Raguel
pythondev_help_Raguel_2019-05-10T12:35:23.225500
1,557,491,723.2255
23,050
pythondev
help
so instead of using raw sql queries, should I go for ORM based queries? something sqlalchemy does where we map tables and then fetch?
2019-05-10T12:36:12.225800
Raguel
pythondev_help_Raguel_2019-05-10T12:36:12.225800
1,557,491,772.2258
23,051
pythondev
help
OK ill try that
2019-05-10T12:37:14.226000
Rodrick
pythondev_help_Rodrick_2019-05-10T12:37:14.226000
1,557,491,834.226
23,052
pythondev
help
yeah make sense I'll need another way to extract the output
2019-05-10T12:37:50.226200
Avis
pythondev_help_Avis_2019-05-10T12:37:50.226200
1,557,491,870.2262
23,053
pythondev
help
thanks for those links -- will be good reading for today!
2019-05-10T12:39:56.226400
Raguel
pythondev_help_Raguel_2019-05-10T12:39:56.226400
1,557,491,996.2264
23,054
pythondev
help
Great that worked thanks
2019-05-10T12:40:43.226600
Rodrick
pythondev_help_Rodrick_2019-05-10T12:40:43.226600
1,557,492,043.2266
23,055
pythondev
help
Is it possible to print to browser console from within a django view? This seems like a very simple concept, yet I can not find anything about it using google. I am trying to dump a forms submission data to the browser console.
2019-05-10T14:38:05.230100
Charissa
pythondev_help_Charissa_2019-05-10T14:38:05.230100
1,557,499,085.2301
23,056
pythondev
help
django is server side
2019-05-10T14:38:39.230600
Hiroko
pythondev_help_Hiroko_2019-05-10T14:38:39.230600
1,557,499,119.2306
23,057
pythondev
help
browser is entirely separate
2019-05-10T14:38:44.230800
Hiroko
pythondev_help_Hiroko_2019-05-10T14:38:44.230800
1,557,499,124.2308
23,058
pythondev
help
you’d have to do something with javascript for browser side
2019-05-10T14:38:55.231200
Hiroko
pythondev_help_Hiroko_2019-05-10T14:38:55.231200
1,557,499,135.2312
23,059
pythondev
help
None
2019-05-10T14:39:38.231300
Granville
pythondev_help_Granville_2019-05-10T14:39:38.231300
1,557,499,178.2313
23,060
pythondev
help
It looks like the preamble is kind of an extra section between the headers and the multipart dividers. It usually won't be displayed by email readers unless someone looks at the raw source.
2019-05-10T14:45:38.232500
Sasha
pythondev_help_Sasha_2019-05-10T14:45:38.232500
1,557,499,538.2325
23,061
pythondev
help
I’m working with an API that provides some data for where do download content files, html, txt, jpg etc. i can request a document from the api and it gives me the remote path and data. when i save the files with pathlib and write it saves them all lower(). is there any way around this?
2019-05-10T14:59:08.234500
Johna
pythondev_help_Johna_2019-05-10T14:59:08.234500
1,557,500,348.2345
23,062
pythondev
help
Thanks Ed. Yep, doesn't seem to work with Outlook
2019-05-10T15:00:55.234800
Granville
pythondev_help_Granville_2019-05-10T15:00:55.234800
1,557,500,455.2348
23,063
pythondev
help
here’s a note from a thread on the <http://w3.org|w3.org>, basically this shouldn’t be displayed if the mail reader understands multipart <https://www.w3.org/Protocols/rfc1341/rfc1341.html>
2019-05-10T15:05:46.235100
Johna
pythondev_help_Johna_2019-05-10T15:05:46.235100
1,557,500,746.2351
23,064
pythondev
help
<@Johna> You mean the filenames get converted to lower case? Do you know where in the process that happens, i.e. were they uppercase at some point, or are they always lowercase when supplied by the API?
2019-05-10T15:17:11.236500
Sasha
pythondev_help_Sasha_2019-05-10T15:17:11.236500
1,557,501,431.2365
23,065
pythondev
help
i retract this and think i must be doing it myself… probably why :crickets:
2019-05-10T15:17:16.236600
Johna
pythondev_help_Johna_2019-05-10T15:17:16.236600
1,557,501,436.2366
23,066
pythondev
help
yeah… i haven’t figured out _where_ that happens yet… but i now think it’s my script
2019-05-10T15:17:39.237100
Johna
pythondev_help_Johna_2019-05-10T15:17:39.237100
1,557,501,459.2371
23,067
pythondev
help
i’m not calling lower anywhere
2019-05-10T15:17:50.237400
Johna
pythondev_help_Johna_2019-05-10T15:17:50.237400
1,557,501,470.2374
23,068
pythondev
help
but it must be somewhere
2019-05-10T15:17:55.237600
Johna
pythondev_help_Johna_2019-05-10T15:17:55.237600
1,557,501,475.2376
23,069
pythondev
help
lets see the script
2019-05-10T15:18:12.237800
Clemmie
pythondev_help_Clemmie_2019-05-10T15:18:12.237800
1,557,501,492.2378
23,070
pythondev
help
relevant code at least
2019-05-10T15:18:22.238100
Clemmie
pythondev_help_Clemmie_2019-05-10T15:18:22.238100
1,557,501,502.2381
23,071
pythondev
help
``` import os import pathlib import emoji import responsysrest as r # Strange yaml import from <https://pyyaml.org/wiki/PyYAMLDocumentation> from yaml import load, dump try: from yaml import CLoader as Loader#, CDumper as Dumper except ImportError: from yaml import Loader#, Dumper ################# # CONFIGURATION # ################# # Configure local storage print(emoji.emojize(':file_folder: Configuring local storage')) local_path = os.path.join(os.path.dirname(os.getcwd()), 'templates') print(emoji.emojize(f':open_file_folder: Base folder configured:\n\t{local_path}')) # Configure the Responsys API print(emoji.emojize(':thinking_face: Configuring Responsys API connection')) config = r.configuration.auto() creds = r.credentials.auto() print(emoji.emojize(':open_hands: Establishing Responsys API connection')) client = r.Client(config,creds) assert 'authToken' in client._get_context() report = {'successes': 0, 'failures': 0} print(emoji.emojize(':handshake: Responsys API connected' )) # Configure synchronization settings print(emoji.emojize(':thinking_face: Configuring synchronization controllers')) sync_control = load(open('sync_control.yaml'), Loader=Loader) # print(emoji.emojize(':up_arrow: Push:')) # for up in sync_control['up']: # print(f'\t{up}') print(emoji.emojize(':down_arrow: Pull:')) for down in sync_control['down']: print(f'\t{down}') input('Press any key to confirm synchronization') print(emoji.emojize(':nerd_face: Synchronization controllers configured')) ############# # FUNCTIONS # ############# def download(content, local_path=local_path): # Build a destination path by joining the document path from the pulled document and the local file system dest_path_subdirs = '/'.join(client._trim_path(content['documentPath']).split('/')[:-1]) dest_path = pathlib.Path( local_path, dest_path_subdirs, content['documentPath'].split('/')[-1]) # Try to write the contents of the file to disk try: with open(dest_path, 'w') as f: try: f.write(content['content']) print(emoji.emojize(f""":inbox_tray: {local_path} :incoming_envelope: {dest_path}""")) report['successes'] += 1 except: print(emoji.emojize(f":astonished_face: failed to download {content['documentPath'].split('/')[-1]} to {dest_path}")) report['failures'] += 1 # If the we can't find it because there's no folder we're going to make the folder(s) except FileNotFoundError: print(emoji.emojize(f':door: {dest_path} does not exist yet.')) walked_dir = [] for i, part in enumerate(dest_path_subdirs.split('/')[1:]): walked_dir.append(part) try: os.mkdir(pathlib.Path(local_path, 'contentlibrary', '/'.join(walked_dir))) except FileExistsError: pass print(emoji.emojize(f':fairy: Created {dest_path_subdirs} folder')) # Now that the folder is made retry downloading it download(content) def expand_remote_folder(folder): remote_folder_contents = client.list_folder(folder) print(folder) # Get documents from the folder if 'documents' in remote_folder_contents.keys(): for document in remote_folder_contents['documents']: dcmnt_name = document['documentPath'].split('/')[-1] dcmnt = client.get_document( document=dcmnt_name, remote_path='/'.join(document['documentPath'].split('/')[2:-1])) download(dcmnt) # Find more folders recursively if 'folders' in remote_folder_contents.keys(): for fldr in remote_folder_contents['folders']: print(fldr["folderPath"]) expand_remote_folder(fldr["folderPath"].split('/contentlibrary/')[1]) return remote_folder_contents ################ # CONTROL FLOW # ################ # Pull down files recursively from synchronization control for folder in sync_control['down']: expand_remote_folder(folder) ```
2019-05-10T15:18:41.238500
Johna
pythondev_help_Johna_2019-05-10T15:18:41.238500
1,557,501,521.2385
23,072
pythondev
help
you’d need Responsys to test it…. so it’s just eyeballs unless you use that thing (don’t)
2019-05-10T15:19:50.239000
Johna
pythondev_help_Johna_2019-05-10T15:19:50.239000
1,557,501,590.239
23,073
pythondev
help
ah
2019-05-10T15:23:22.239300
Granville
pythondev_help_Granville_2019-05-10T15:23:22.239300
1,557,501,802.2393
23,074
pythondev
help
are you on windows or unix derivative?
2019-05-10T15:24:35.239700
Clemmie
pythondev_help_Clemmie_2019-05-10T15:24:35.239700
1,557,501,875.2397
23,075
pythondev
help
mac, unix
2019-05-10T15:24:41.239900
Johna
pythondev_help_Johna_2019-05-10T15:24:41.239900
1,557,501,881.2399
23,076
pythondev
help
k
2019-05-10T15:24:46.240200
Clemmie
pythondev_help_Clemmie_2019-05-10T15:24:46.240200
1,557,501,886.2402
23,077
pythondev
help
but i managed to get a file w/case preserved
2019-05-10T15:24:56.240500
Johna
pythondev_help_Johna_2019-05-10T15:24:56.240500
1,557,501,896.2405
23,078
pythondev
help
great!
2019-05-10T15:25:02.240800
Clemmie
pythondev_help_Clemmie_2019-05-10T15:25:02.240800
1,557,501,902.2408
23,079
pythondev
help
what was the issue?
2019-05-10T15:25:07.241000
Clemmie
pythondev_help_Clemmie_2019-05-10T15:25:07.241000
1,557,501,907.241
23,080
pythondev
help
no clue, ha
2019-05-10T15:25:13.241200
Johna
pythondev_help_Johna_2019-05-10T15:25:13.241200
1,557,501,913.2412
23,081
pythondev
help
looking
2019-05-10T15:25:15.241400
Johna
pythondev_help_Johna_2019-05-10T15:25:15.241400
1,557,501,915.2414
23,082
pythondev
help
``` doc = client.get_document(document='XML_test_catalog.htm', remote_path='XML') with open(pathlib.Path(doc['documentPath'].split('/')[-1]), 'w') as f: f.write('test') ```
2019-05-10T15:26:17.242400
Johna
pythondev_help_Johna_2019-05-10T15:26:17.242400
1,557,501,977.2424
23,083
pythondev
help
saves the file with caps…
2019-05-10T15:26:35.242900
Johna
pythondev_help_Johna_2019-05-10T15:26:35.242900
1,557,501,995.2429
23,084
pythondev
help
i wrote the responsys client class stuff too, i’m sure it’s not that
2019-05-10T15:27:00.243800
Johna
pythondev_help_Johna_2019-05-10T15:27:00.243800
1,557,502,020.2438
23,085
pythondev
help
I'd be looking at `client.list_folder()`... maybe it only gives you lowercase filenames to start with.
2019-05-10T15:27:08.243900
Sasha
pythondev_help_Sasha_2019-05-10T15:27:08.243900
1,557,502,028.2439
23,086
pythondev
help
dude that’s it
2019-05-10T15:28:29.244200
Johna
pythondev_help_Johna_2019-05-10T15:28:29.244200
1,557,502,109.2442
23,087
pythondev
help
why do they do that… so weird
2019-05-10T15:29:01.244500
Johna
pythondev_help_Johna_2019-05-10T15:29:01.244500
1,557,502,141.2445
23,088
pythondev
help
Windows is case insensitive, and it’s clearer to have unique naming than to rely on casing
2019-05-10T15:29:48.245400
Clemmie
pythondev_help_Clemmie_2019-05-10T15:29:48.245400
1,557,502,188.2454
23,089
pythondev
help
```client.list_folder()['documents'][0]['documentPath'] '/contentlibrary/!all_brands_master_template/version_1/everyday_hero_center.htm'```
2019-05-10T15:29:58.245600
Johna
pythondev_help_Johna_2019-05-10T15:29:58.245600
1,557,502,198.2456
23,090
pythondev
help
should that `!` be there?
2019-05-10T15:30:12.246100
Clemmie
pythondev_help_Clemmie_2019-05-10T15:30:12.246100
1,557,502,212.2461
23,091
pythondev
help
but the file on their system is !All_Brands_Master_Template/Version_1
2019-05-10T15:30:17.246200
Johna
pythondev_help_Johna_2019-05-10T15:30:17.246200
1,557,502,217.2462
23,092
pythondev
help
nah…
2019-05-10T15:30:22.246600
Johna
pythondev_help_Johna_2019-05-10T15:30:22.246600
1,557,502,222.2466
23,093
pythondev
help
that’s “supposed to” be there
2019-05-10T15:30:27.246900
Johna
pythondev_help_Johna_2019-05-10T15:30:27.246900
1,557,502,227.2469
23,094
pythondev
help
its valid, but oof
2019-05-10T15:30:28.247000
Clemmie
pythondev_help_Clemmie_2019-05-10T15:30:28.247000
1,557,502,228.247
23,095
pythondev
help
yea
2019-05-10T15:30:30.247200
Johna
pythondev_help_Johna_2019-05-10T15:30:30.247200
1,557,502,230.2472
23,096
pythondev
help
not my thing, just my problem
2019-05-10T15:30:36.247400
Johna
pythondev_help_Johna_2019-05-10T15:30:36.247400
1,557,502,236.2474
23,097
pythondev
help
solved
2019-05-10T15:30:47.247700
Johna
pythondev_help_Johna_2019-05-10T15:30:47.247700
1,557,502,247.2477
23,098
pythondev
help
but
2019-05-10T15:30:48.247900
Johna
pythondev_help_Johna_2019-05-10T15:30:48.247900
1,557,502,248.2479
23,099
pythondev
help
yea so the resource in their platform has it with case
2019-05-10T15:31:04.248700
Johna
pythondev_help_Johna_2019-05-10T15:31:04.248700
1,557,502,264.2487
23,100
pythondev
help
i guess i was assuming it was a problem
2019-05-10T15:31:15.249100
Johna
pythondev_help_Johna_2019-05-10T15:31:15.249100
1,557,502,275.2491
23,101
pythondev
help
I'm guessing the `!` is to make it sort first... :sweat:
2019-05-10T15:31:26.249600
Sasha
pythondev_help_Sasha_2019-05-10T15:31:26.249600
1,557,502,286.2496
23,102
pythondev
help
i’ll just try to save that lower file back to the same location
2019-05-10T15:31:27.249700
Johna
pythondev_help_Johna_2019-05-10T15:31:27.249700
1,557,502,287.2497
23,103
pythondev
help
yes, that’s why that was done
2019-05-10T15:31:34.249900
Johna
pythondev_help_Johna_2019-05-10T15:31:34.249900
1,557,502,294.2499
23,104
pythondev
help
:disappointed:
2019-05-10T15:31:35.250100
Johna
pythondev_help_Johna_2019-05-10T15:31:35.250100
1,557,502,295.2501
23,105
pythondev
help
we’re working with an external system and when i told my manager we didn’t have backups and we needed to back it up… he just made a remote copy and named it “_BACKUP” so that’s what we’re dealing with here
2019-05-10T15:32:39.251300
Johna
pythondev_help_Johna_2019-05-10T15:32:39.251300
1,557,502,359.2513
23,106
pythondev
help
Just wait for `!!!!All_Brands_Master_Template_new_revised_with_bobs_changes_newer3`...
2019-05-10T15:33:02.251900
Sasha
pythondev_help_Sasha_2019-05-10T15:33:02.251900
1,557,502,382.2519
23,107
pythondev
help
:disappointed:
2019-05-10T15:33:22.252100
Johna
pythondev_help_Johna_2019-05-10T15:33:22.252100
1,557,502,402.2521
23,108
pythondev
help
<@Sasha> sounds like you’ve worked with designers and project managers before
2019-05-10T15:37:15.252600
Johna
pythondev_help_Johna_2019-05-10T15:37:15.252600
1,557,502,635.2526
23,109
pythondev
help
:neutral_face:
2019-05-10T15:41:45.253100
Holly
pythondev_help_Holly_2019-05-10T15:41:45.253100
1,557,502,905.2531
23,110
pythondev
help
wow their API is weird… it just returns whatever case i ask it for… even if that’s not on the system
2019-05-10T15:49:53.253600
Johna
pythondev_help_Johna_2019-05-10T15:49:53.253600
1,557,503,393.2536
23,111
pythondev
help
that sounds...secure....
2019-05-10T15:50:57.253800
Holly
pythondev_help_Holly_2019-05-10T15:50:57.253800
1,557,503,457.2538
23,112
pythondev
help
sounds like you could "ask" for some type of encoded command if it accepts anything lol
2019-05-10T15:51:17.254200
Holly
pythondev_help_Holly_2019-05-10T15:51:17.254200
1,557,503,477.2542
23,113
pythondev
help
Does anyone know of a YAML library that can edit in-line _without_ changing the format, layout, or ordering of the original file?
2019-05-10T15:53:36.254800
Damien
pythondev_help_Damien_2019-05-10T15:53:36.254800
1,557,503,616.2548
23,114
pythondev
help
You ever get super frustrated when you are unable to find any documentation on an issue other than help()?
2019-05-10T15:55:07.255400
Nenita
pythondev_help_Nenita_2019-05-10T15:55:07.255400
1,557,503,707.2554
23,115
pythondev
help
after hours of searching
2019-05-10T15:55:14.255600
Nenita
pythondev_help_Nenita_2019-05-10T15:55:14.255600
1,557,503,714.2556
23,116
pythondev
help
it has to match the lower string, but it’ll return whatever case you supplied as the argument
2019-05-10T16:03:11.255700
Johna
pythondev_help_Johna_2019-05-10T16:03:11.255700
1,557,504,191.2557
23,117
pythondev
help
``` &gt;&gt;&gt; client.get_document(document='xml_test_catalog.htm', remote_path='xmL')['documentPath'] '/contentlibrary/xmL/xml_test_catalog.htm' &gt;&gt;&gt; client.get_document(document='xMl_tEsT_CATalog.hTm', remote_path='xmL')['documentPath'] '/contentlibrary/xmL/xMl_tEsT_CATalog.hTm' &gt;&gt;&gt; client.get_document(document='doesntexist.htm', remote_path='xmL')['documentPath'] Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; KeyError: 'documentPath' ```
2019-05-10T16:04:29.255900
Johna
pythondev_help_Johna_2019-05-10T16:04:29.255900
1,557,504,269.2559
23,118
pythondev
help
I'm looking for an elegant way to use some LRUCache, e.g. from cachetools, with multi-keys.
2019-05-10T16:17:18.257000
Tyson
pythondev_help_Tyson_2019-05-10T16:17:18.257000
1,557,505,038.257
23,119
pythondev
help
(multiple keys pointing to the same, cached object)
2019-05-10T16:17:41.257500
Tyson
pythondev_help_Tyson_2019-05-10T16:17:41.257500
1,557,505,061.2575
23,120