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
you’ll see what versions are supported
2019-02-27T08:29:29.916300
Hiroko
pythondev_help_Hiroko_2019-02-27T08:29:29.916300
1,551,256,169.9163
11,021
pythondev
help
None
2019-02-27T08:29:39.916400
Valeri
pythondev_help_Valeri_2019-02-27T08:29:39.916400
1,551,256,179.9164
11,022
pythondev
help
A subset of the data that I see
2019-02-27T08:29:56.917000
Valeri
pythondev_help_Valeri_2019-02-27T08:29:56.917000
1,551,256,196.917
11,023
pythondev
help
gotcha, interesting
2019-02-27T08:30:00.917200
Hiroko
pythondev_help_Hiroko_2019-02-27T08:30:00.917200
1,551,256,200.9172
11,024
pythondev
help
and a headache
2019-02-27T08:30:05.917400
Hiroko
pythondev_help_Hiroko_2019-02-27T08:30:05.917400
1,551,256,205.9174
11,025
pythondev
help
what version ES are you using?
2019-02-27T08:30:16.917800
Hiroko
pythondev_help_Hiroko_2019-02-27T08:30:16.917800
1,551,256,216.9178
11,026
pythondev
help
`6.6.1`
2019-02-27T08:31:02.918200
Valeri
pythondev_help_Valeri_2019-02-27T08:31:02.918200
1,551,256,262.9182
11,027
pythondev
help
The latest I guess
2019-02-27T08:31:19.918400
Valeri
pythondev_help_Valeri_2019-02-27T08:31:19.918400
1,551,256,279.9184
11,028
pythondev
help
understood
2019-02-27T08:32:20.918600
Hiroko
pythondev_help_Hiroko_2019-02-27T08:32:20.918600
1,551,256,340.9186
11,029
pythondev
help
```GET /my_store/products/_search { "query" : { "constant_score" : { "filter" : { "range" : { "price" : { "gte" : 20, "lt" : 40 } } } } } }``` is an example in `ranges`
2019-02-27T08:32:29.918900
Hiroko
pythondev_help_Hiroko_2019-02-27T08:32:29.918900
1,551,256,349.9189
11,030
pythondev
help
I wonder if excluding the `constant_score` and `filter` blocks is the issue
2019-02-27T08:33:27.919600
Hiroko
pythondev_help_Hiroko_2019-02-27T08:33:27.919600
1,551,256,407.9196
11,031
pythondev
help
the follow up examples omit the full example and just target `range` and below, but that may be for brevity
2019-02-27T08:33:50.920200
Hiroko
pythondev_help_Hiroko_2019-02-27T08:33:50.920200
1,551,256,430.9202
11,032
pythondev
help
<@Carmen> thnx for the advice but as i have told i don't want you to do my work just guide or tell me how to think for these kind of problem!! I have the ability to do my own work but just as an advice or guidence i ask this question at this channel as this channel name is HELP!!
2019-02-27T08:43:07.920600
Hilma
pythondev_help_Hilma_2019-02-27T08:43:07.920600
1,551,256,987.9206
11,033
pythondev
help
<@Mariah> this is a competition question!
2019-02-27T08:44:11.920800
Hilma
pythondev_help_Hilma_2019-02-27T08:44:11.920800
1,551,257,051.9208
11,034
pythondev
help
<@Hiroko> Thank you so much, you saved me:hugging_face:
2019-02-27T08:49:29.921600
Jennefer
pythondev_help_Jennefer_2019-02-27T08:49:29.921600
1,551,257,369.9216
11,035
pythondev
help
glad to help :slightly_smiling_face:
2019-02-27T08:50:40.921800
Hiroko
pythondev_help_Hiroko_2019-02-27T08:50:40.921800
1,551,257,440.9218
11,036
pythondev
help
I’m curious, how did you install that version?
2019-02-27T08:50:48.922100
Hiroko
pythondev_help_Hiroko_2019-02-27T08:50:48.922100
1,551,257,448.9221
11,037
pythondev
help
Hi! Does anyone have experience with running Python scripts within JavaScript. I am trying to implement some cryptography and I’ve read that CryptoJS is terrible
2019-02-27T08:56:40.922900
Cheri
pythondev_help_Cheri_2019-02-27T08:56:40.922900
1,551,257,800.9229
11,038
pythondev
help
Do you want a user to interact with the web/JS and then do crypto stuff in python?
2019-02-27T08:57:29.923500
Clemmie
pythondev_help_Clemmie_2019-02-27T08:57:29.923500
1,551,257,849.9235
11,039
pythondev
help
Yes, so essentially say I want to encrypt some data that came from a form in React. I want to encrypt it in Python (because of the implementation of what I’m working with is in Python)
2019-02-27T08:58:17.925000
Cheri
pythondev_help_Cheri_2019-02-27T08:58:17.925000
1,551,257,897.925
11,040
pythondev
help
So I literally have to run some functions at different stages
2019-02-27T08:58:39.925700
Cheri
pythondev_help_Cheri_2019-02-27T08:58:39.925700
1,551,257,919.9257
11,041
pythondev
help
if so you will want to take a look at one of the python web frameworks for handling AJAX events and running the crypto algos you want. Take a look at any of django/flask/pyramid
2019-02-27T08:59:04.926100
Clemmie
pythondev_help_Clemmie_2019-02-27T08:59:04.926100
1,551,257,944.9261
11,042
pythondev
help
Think carefully about what you are trying to do - the data will travel over the wire in plaintext
2019-02-27T08:59:22.926600
Clemmie
pythondev_help_Clemmie_2019-02-27T08:59:22.926600
1,551,257,962.9266
11,043
pythondev
help
Yes I have looked at that
2019-02-27T08:59:42.927100
Cheri
pythondev_help_Cheri_2019-02-27T08:59:42.927100
1,551,257,982.9271
11,044
pythondev
help
and it is not a solution that makes sense even when sending information over TLS
2019-02-27T08:59:58.928000
Cheri
pythondev_help_Cheri_2019-02-27T08:59:58.928000
1,551,257,998.928
11,045
pythondev
help
<@Hiroko> I've followed that guide: <https://docs.djangoproject.com/en/2.1/topics/install/#installing-official-release>
2019-02-27T09:00:13.928700
Jennefer
pythondev_help_Jennefer_2019-02-27T09:00:13.928700
1,551,258,013.9287
11,046
pythondev
help
I have to perform the encryption and re-encryption locally as I do not want the private key t o leave the system.
2019-02-27T09:00:16.929000
Cheri
pythondev_help_Cheri_2019-02-27T09:00:16.929000
1,551,258,016.929
11,047
pythondev
help
when you mean locally, you mean on the server or the client?
2019-02-27T09:00:35.929500
Clemmie
pythondev_help_Clemmie_2019-02-27T09:00:35.929500
1,551,258,035.9295
11,048
pythondev
help
Also I have the stack done in JS already so I don’t want to re=do it
2019-02-27T09:00:35.929600
Cheri
pythondev_help_Cheri_2019-02-27T09:00:35.929600
1,551,258,035.9296
11,049
pythondev
help
Client
2019-02-27T09:00:43.929800
Cheri
pythondev_help_Cheri_2019-02-27T09:00:43.929800
1,551,258,043.9298
11,050
pythondev
help
So, short of building a native app in python, you don’t have any options
2019-02-27T09:00:57.930400
Clemmie
pythondev_help_Clemmie_2019-02-27T09:00:57.930400
1,551,258,057.9304
11,051
pythondev
help
If you want it to work in-browser, it is js or nothing
2019-02-27T09:01:21.931100
Clemmie
pythondev_help_Clemmie_2019-02-27T09:01:21.931100
1,551,258,081.9311
11,052
pythondev
help
Essentially I input some data say my phone number, I want to input that into a python function locally and get the output then send that output over the network
2019-02-27T09:01:30.931300
Cheri
pythondev_help_Cheri_2019-02-27T09:01:30.931300
1,551,258,090.9313
11,053
pythondev
help
You need a native python app for that
2019-02-27T09:01:49.931600
Clemmie
pythondev_help_Clemmie_2019-02-27T09:01:49.931600
1,551,258,109.9316
11,054
pythondev
help
Fair enough!
2019-02-27T09:02:26.932000
Cheri
pythondev_help_Cheri_2019-02-27T09:02:26.932000
1,551,258,146.932
11,055
pythondev
help
Well thanks anyways!
2019-02-27T09:02:29.932200
Cheri
pythondev_help_Cheri_2019-02-27T09:02:29.932200
1,551,258,149.9322
11,056
pythondev
help
How can I import a module from a modules directory which is not a subdir of my source dir?
2019-02-27T09:08:47.934700
Coleen
pythondev_help_Coleen_2019-02-27T09:08:47.934700
1,551,258,527.9347
11,057
pythondev
help
<@Cheri> typically you would rely on the existing layers of encryption provided by things like HTTPS when you post form data to the server
2019-02-27T09:10:22.935900
Ashley
pythondev_help_Ashley_2019-02-27T09:10:22.935900
1,551,258,622.9359
11,058
pythondev
help
Yeah I was thinking of implementing TLS but that would still mean I have to send Alice’s private key over the network and the plaintext and that is too risky.
2019-02-27T09:10:59.938300
Cheri
pythondev_help_Cheri_2019-02-27T09:10:59.938300
1,551,258,659.9383
11,059
pythondev
help
ie, my python file is in `/files/src/file.py` and it contains `from modules import mymod.py`. The module is in `/files/modules/mymod.py`.
2019-02-27T09:11:11.938700
Coleen
pythondev_help_Coleen_2019-02-27T09:11:11.938700
1,551,258,671.9387
11,060
pythondev
help
Look into public key cryptography. If it didn't work, we wouldn't use it
2019-02-27T09:11:30.939300
Ashley
pythondev_help_Ashley_2019-02-27T09:11:30.939300
1,551,258,690.9393
11,061
pythondev
help
I created `modules/__init__.py` but that doesn't seem to help.
2019-02-27T09:11:59.940600
Coleen
pythondev_help_Coleen_2019-02-27T09:11:59.940600
1,551,258,719.9406
11,062
pythondev
help
The technology is already there when using HTTPS, so you don't need to worry about it
2019-02-27T09:12:22.941600
Ashley
pythondev_help_Ashley_2019-02-27T09:12:22.941600
1,551,258,742.9416
11,063
pythondev
help
<@Ashley> I think <@Cheri> is - he wants to encrypt with the client user’s private key ultimately, and is right to not want to send that over the wire
2019-02-27T09:12:38.942400
Clemmie
pythondev_help_Clemmie_2019-02-27T09:12:38.942400
1,551,258,758.9424
11,064
pythondev
help
I am using a very specific type of public key cryptography called Proxy Re-Encryption that’s why I need the functionality in the client side
2019-02-27T09:12:47.942700
Cheri
pythondev_help_Cheri_2019-02-27T09:12:47.942700
1,551,258,767.9427
11,065
pythondev
help
Exactly
2019-02-27T09:13:04.943000
Cheri
pythondev_help_Cheri_2019-02-27T09:13:04.943000
1,551,258,784.943
11,066
pythondev
help
<@Coleen> you want to make a "package" that you can "install" into your python environment. You've got the right idea with `__init__.py`, but make sure your package structure makes sense. You can even make multiple packages if you like. The "install" basically puts a copy of the package into the python's `site-packages` folder, which is where it looks for third-party packages when you try to import them. Just a heads up, though. When you make a virtual environment, you're making a new copy of python that has its own `site-packages` folder. But that's a good thing.
2019-02-27T09:16:52.948200
Ashley
pythondev_help_Ashley_2019-02-27T09:16:52.948200
1,551,259,012.9482
11,067
pythondev
help
I am using a conda environment already, because I have some external dependencies.
2019-02-27T09:17:53.948500
Coleen
pythondev_help_Coleen_2019-02-27T09:17:53.948500
1,551,259,073.9485
11,068
pythondev
help
<@Coleen> conda can manage environments. But you should still make a package that can be installed, and then have conda install it to the environment it's managing for you
2019-02-27T09:20:01.950200
Ashley
pythondev_help_Ashley_2019-02-27T09:20:01.950200
1,551,259,201.9502
11,069
pythondev
help
I see, so the idea is to install my package into the same conda env?
2019-02-27T09:20:37.951300
Coleen
pythondev_help_Coleen_2019-02-27T09:20:37.951300
1,551,259,237.9513
11,070
pythondev
help
But how can I "make" the package?
2019-02-27T09:20:51.951600
Coleen
pythondev_help_Coleen_2019-02-27T09:20:51.951600
1,551,259,251.9516
11,071
pythondev
help
I'm unfamiliar with proxy re-encryption, so I won't be much help then :joy:
2019-02-27T09:21:31.952300
Ashley
pythondev_help_Ashley_2019-02-27T09:21:31.952300
1,551,259,291.9523
11,072
pythondev
help
Hahhaha no worries, essentially I just have to run some python code in a JS app
2019-02-27T09:23:42.954400
Cheri
pythondev_help_Cheri_2019-02-27T09:23:42.954400
1,551,259,422.9544
11,073
pythondev
help
I’ll figure it out somehow! I’m sure someone else has had the same issue at some point!
2019-02-27T09:23:55.955300
Cheri
pythondev_help_Cheri_2019-02-27T09:23:55.955300
1,551,259,435.9553
11,074
pythondev
help
hehehe thakns for the input tho!!\
2019-02-27T09:24:00.955600
Cheri
pythondev_help_Cheri_2019-02-27T09:24:00.955600
1,551,259,440.9556
11,075
pythondev
help
<@Coleen> you can make a "package" by having a folder with an `__init__.py` module in it and (usually) other python modules and packages as well. You can make it installable with `setuptool` and a `setup.py` file (this isn't usually inside your package, but is still bundled in the project's folder along with the package). A quick Google search should bring up a simple guide on how to make a `setup.py` file with `setuptools`
2019-02-27T09:25:32.957800
Ashley
pythondev_help_Ashley_2019-02-27T09:25:32.957800
1,551,259,532.9578
11,076
pythondev
help
Awesome, thanks <@Ashley>!
2019-02-27T09:26:40.958100
Coleen
pythondev_help_Coleen_2019-02-27T09:26:40.958100
1,551,259,600.9581
11,077
pythondev
help
No problem! Good luck!
2019-02-27T09:29:35.958200
Ashley
pythondev_help_Ashley_2019-02-27T09:29:35.958200
1,551,259,775.9582
11,078
pythondev
help
I need to write some scripts but the machine they will run on only has python 2.6.6, and there's sadly no possibilty of getting 3.anything. They'll be fairly simple stuff, mostly string manipulation and spitting out .csv files for load elsewhere. Do I care about the version really, or is there anything I should know? I've not used 2.* at all to date - everything I have done has been python3.
2019-02-27T09:44:46.960000
Chelsey
pythondev_help_Chelsey_2019-02-27T09:44:46.960000
1,551,260,686.96
11,079
pythondev
help
is there a possibility of at least getting 2.7.x?
2019-02-27T09:46:37.960500
Karoline
pythondev_help_Karoline_2019-02-27T09:46:37.960500
1,551,260,797.9605
11,080
pythondev
help
There have been multiple ways people have suggested how you should think about the problem to move towards a solution. "the first step is to figure out your algorithm, just as pencil-and-paper steps. Forget about Python, but make sure you know how the problem is supposed to be solved at all." "take an easy shape, and go one step at a time - what's your problem? - what is the desired outcome? - what do you already know? - what do you need to know?" You haven't showed us anything about what you've already tried, what parts you don't understand, any of the usual things that we need to help someone figure out their problems. Instead, you've been asking us to break it into small parts *for* you. We're more than happy to help solve specific problems you might have, but breaking up the overall problem into smaller tasks is part of the work of solving the problem. You have to be able to break things up into smaller tasks by yourself as part of programming. If you can't seem to do that for this problem, then you need to find a different problem. It's not that you're not cut out for Python or programming, you're just trying to solve a problem that's beyond your current skills, and you should find a different, easier problem to cut your teeth on and build up the mental skills you need to break up a large problem like this into smaller tasks.
2019-02-27T10:15:08.960600
Carmen
pythondev_help_Carmen_2019-02-27T10:15:08.960600
1,551,262,508.9606
11,081
pythondev
help
It might be worth looking into compiling it all into a single executable. You could sneak in 3.x in there that way, if that's a possibility.
2019-02-27T10:19:37.961400
Carmen
pythondev_help_Carmen_2019-02-27T10:19:37.961400
1,551,262,777.9614
11,082
pythondev
help
None
2019-02-27T10:51:08.961500
Alvina
pythondev_help_Alvina_2019-02-27T10:51:08.961500
1,551,264,668.9615
11,083
pythondev
help
TypeError: can't pickle _thread.RLock objects
2019-02-27T10:51:11.961900
Alvina
pythondev_help_Alvina_2019-02-27T10:51:11.961900
1,551,264,671.9619
11,084
pythondev
help
I believe I am getting this error because I am referencing a function in my loop - it works fine when outside of a class
2019-02-27T10:51:36.962500
Alvina
pythondev_help_Alvina_2019-02-27T10:51:36.962500
1,551,264,696.9625
11,085
pythondev
help
process_chunk is a separate function within the same class - any idea how I can reference it?
2019-02-27T10:51:55.962900
Alvina
pythondev_help_Alvina_2019-02-27T10:51:55.962900
1,551,264,715.9629
11,086
pythondev
help
Seems more like you're trying to serialize… something, when you shouldn't be. How are you executing that code? Celery or something like it (tasks runner)?
2019-02-27T10:52:42.963600
Melynda
pythondev_help_Melynda_2019-02-27T10:52:42.963600
1,551,264,762.9636
11,087
pythondev
help
Airflow operator
2019-02-27T10:52:55.964000
Alvina
pythondev_help_Alvina_2019-02-27T10:52:55.964000
1,551,264,775.964
11,088
pythondev
help
but I first made the functions in a normal Python script / jupyter notebook to test it
2019-02-27T10:53:13.964600
Alvina
pythondev_help_Alvina_2019-02-27T10:53:13.964600
1,551,264,793.9646
11,089
pythondev
help
Ah, multiprocessing, I assume is what `mp` is?
2019-02-27T10:53:25.964900
Melynda
pythondev_help_Melynda_2019-02-27T10:53:25.964900
1,551,264,805.9649
11,090
pythondev
help
yes
2019-02-27T10:53:30.965200
Alvina
pythondev_help_Alvina_2019-02-27T10:53:30.965200
1,551,264,810.9652
11,091
pythondev
help
sorry
2019-02-27T10:53:31.965400
Alvina
pythondev_help_Alvina_2019-02-27T10:53:31.965400
1,551,264,811.9654
11,092
pythondev
help
I added more lines of the code for clarity
2019-02-27T10:53:44.965800
Alvina
pythondev_help_Alvina_2019-02-27T10:53:44.965800
1,551,264,824.9658
11,093
pythondev
help
None
2019-02-27T10:54:09.965900
Alvina
pythondev_help_Alvina_2019-02-27T10:54:09.965900
1,551,264,849.9659
11,094
pythondev
help
process_chunk is a function which is just sending compressed CSV files to a REST API
2019-02-27T10:54:29.966800
Alvina
pythondev_help_Alvina_2019-02-27T10:54:29.966800
1,551,264,869.9668
11,095
pythondev
help
&gt; Note When an object is put on a queue, the object is pickled and a background thread later flushes the pickled data to an underlying pipe. This has some consequences which are a little surprising, but should not cause any practical difficulties – if they really bother you then you can instead use a queue created with a manager. Source: <https://docs.python.org/3.7/library/multiprocessing.html#pipes-and-queues>
2019-02-27T10:54:30.967000
Melynda
pythondev_help_Melynda_2019-02-27T10:54:30.967000
1,551,264,870.967
11,096
pythondev
help
hm
2019-02-27T10:58:02.967900
Alvina
pythondev_help_Alvina_2019-02-27T10:58:02.967900
1,551,265,082.9679
11,097
pythondev
help
"The solution, sadly, is just to use a function in the global namespace. You can still make it an instance attribute though, take a look:"
2019-02-27T11:00:56.968100
Alvina
pythondev_help_Alvina_2019-02-27T11:00:56.968100
1,551,265,256.9681
11,098
pythondev
help
<https://stackoverflow.com/questions/32321324/pool-within-a-class-in-python>
2019-02-27T11:01:17.968300
Alvina
pythondev_help_Alvina_2019-02-27T11:01:17.968300
1,551,265,277.9683
11,099
pythondev
help
seems like that might be the approach I will need to take
2019-02-27T11:01:25.968800
Alvina
pythondev_help_Alvina_2019-02-27T11:01:25.968800
1,551,265,285.9688
11,100
pythondev
help
a bit messier but if it works then I'll be happy
2019-02-27T11:01:36.969300
Alvina
pythondev_help_Alvina_2019-02-27T11:01:36.969300
1,551,265,296.9693
11,101
pythondev
help
I think you need to make your iterable (job_zip) pickle-able, which it isn't at the minute since it's a bunch of itertools callables?
2019-02-27T11:04:56.969900
Melynda
pythondev_help_Melynda_2019-02-27T11:04:56.969900
1,551,265,496.9699
11,102
pythondev
help
moving the function outside of the class and then adding self.process_chunk = process_chunk to __init__ worked
2019-02-27T11:07:37.970400
Alvina
pythondev_help_Alvina_2019-02-27T11:07:37.970400
1,551,265,657.9704
11,103
pythondev
help
yeah - should I replace the job_zip? I can add a += count, and the hook, token, stream_id, and execution_id are all static
2019-02-27T11:09:02.971600
Alvina
pythondev_help_Alvina_2019-02-27T11:09:02.971600
1,551,265,742.9716
11,104
pythondev
help
None
2019-02-27T11:09:51.972000
Alvina
pythondev_help_Alvina_2019-02-27T11:09:51.972000
1,551,265,791.972
11,105
pythondev
help
then chunks is just the output of that function which reads a big csv file and compresses it into 50-100MB chunks before sending it
2019-02-27T11:10:25.972900
Alvina
pythondev_help_Alvina_2019-02-27T11:10:25.972900
1,551,265,825.9729
11,106
pythondev
help
Here's what I was testing: <https://gist.github.com/d17e36c1674238725a8e9b06ef955c43> I don't think having the called method in a class in inherently _wrong_, but the iterable (and possibly all locals within the pool call?) must be pickleable.
2019-02-27T11:13:49.974000
Melynda
pythondev_help_Melynda_2019-02-27T11:13:49.974000
1,551,266,029.974
11,107
pythondev
help
Weird, my indentation has gone mental in that gist
2019-02-27T11:14:24.974400
Melynda
pythondev_help_Melynda_2019-02-27T11:14:24.974400
1,551,266,064.9744
11,108
pythondev
help
In the `Incorrect` class, the iterable `job` is a bunch of functions, which can't be serialized. In the `Correct` class, it's just a bunch of strings that are processed by process_chunk. Make sense?
2019-02-27T11:15:34.975200
Melynda
pythondev_help_Melynda_2019-02-27T11:15:34.975200
1,551,266,134.9752
11,109
pythondev
help
Pass data into the pool, not functions or methods, and you should be fine. :slightly_smiling_face:
2019-02-27T11:15:58.975700
Melynda
pythondev_help_Melynda_2019-02-27T11:15:58.975700
1,551,266,158.9757
11,110
pythondev
help
wow, your example looks much nicer than my actual code haha. thanks a bunch
2019-02-27T11:16:25.976300
Alvina
pythondev_help_Alvina_2019-02-27T11:16:25.976300
1,551,266,185.9763
11,111
pythondev
help
yeah, I will test some changes
2019-02-27T11:16:52.976600
Alvina
pythondev_help_Alvina_2019-02-27T11:16:52.976600
1,551,266,212.9766
11,112
pythondev
help
Good luck!
2019-02-27T11:18:34.976800
Melynda
pythondev_help_Melynda_2019-02-27T11:18:34.976800
1,551,266,314.9768
11,113
pythondev
help
Upon an exception using `requests` module, does the function always return `None` to the object?
2019-02-27T11:20:27.977400
Candra
pythondev_help_Candra_2019-02-27T11:20:27.977400
1,551,266,427.9774
11,114
pythondev
help
``` try: r = requests.get('<http://www.sdfkjagdlfbpd.com>') except requests.exceptions.RequestException as e: print(e) if not r: print('requests returned None!') ```
2019-02-27T11:22:48.979000
Candra
pythondev_help_Candra_2019-02-27T11:22:48.979000
1,551,266,568.979
11,115
pythondev
help
functions/methods always return None by default
2019-02-27T11:26:02.980300
Hiroko
pythondev_help_Hiroko_2019-02-27T11:26:02.980300
1,551,266,762.9803
11,116
pythondev
help
so if you’re not returning anything explicitly, the return type is `None`
2019-02-27T11:26:16.980700
Hiroko
pythondev_help_Hiroko_2019-02-27T11:26:16.980700
1,551,266,776.9807
11,117
pythondev
help
I would expect that `r` would remain undefined if an exception is thrown, since the interpreter jumps out of the `get()` call prematurely.
2019-02-27T11:26:26.980800
Sasha
pythondev_help_Sasha_2019-02-27T11:26:26.980800
1,551,266,786.9808
11,118
pythondev
help
So i think the problem is my final while loop. I was able to test that words.split() creates a list for me. But i was wanting to do was add the first character of each of those list entries to result. However it's still returning everything
2019-02-27T11:30:48.981100
Demetrice
pythondev_help_Demetrice_2019-02-27T11:30:48.981100
1,551,267,048.9811
11,119
pythondev
help
The trouble is that your `for y in x` loop is completely inside your `while` loop, so it goes through the whole word before the `while` has a chance to stop it.
2019-02-27T11:33:04.982200
Sasha
pythondev_help_Sasha_2019-02-27T11:33:04.982200
1,551,267,184.9822
11,120