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 | Probably because you have no active conda environments. `python -V` just shows the system python info. | 2019-02-18T01:45:19.993100 | Chester | pythondev_help_Chester_2019-02-18T01:45:19.993100 | 1,550,454,319.9931 | 9,221 |
pythondev | help | python -V
Python 3.7.2 | 2019-02-18T01:47:35.993500 | Gianna | pythondev_help_Gianna_2019-02-18T01:47:35.993500 | 1,550,454,455.9935 | 9,222 |
pythondev | help | is it normal ? | 2019-02-18T01:47:45.993700 | Gianna | pythondev_help_Gianna_2019-02-18T01:47:45.993700 | 1,550,454,465.9937 | 9,223 |
pythondev | help | but it have to show anaconda yes? | 2019-02-18T01:47:57.993900 | Gianna | pythondev_help_Gianna_2019-02-18T01:47:57.993900 | 1,550,454,477.9939 | 9,224 |
pythondev | help | <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment> | 2019-02-18T01:48:47.994100 | Chester | pythondev_help_Chester_2019-02-18T01:48:47.994100 | 1,550,454,527.9941 | 9,225 |
pythondev | help | what is my environment name ? | 2019-02-18T01:49:55.994300 | Gianna | pythondev_help_Gianna_2019-02-18T01:49:55.994300 | 1,550,454,595.9943 | 9,226 |
pythondev | help | ```conda info --envs
# conda environments:
#
base * /Users/alif/anaconda3``` | 2019-02-18T01:50:40.994600 | Gianna | pythondev_help_Gianna_2019-02-18T01:50:40.994600 | 1,550,454,640.9946 | 9,227 |
pythondev | help | <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#viewing-a-list-of-your-environments> | 2019-02-18T01:50:52.994900 | Chester | pythondev_help_Chester_2019-02-18T01:50:52.994900 | 1,550,454,652.9949 | 9,228 |
pythondev | help | <http://prntscr.com/mmiwyg> | 2019-02-18T01:52:58.995200 | Gianna | pythondev_help_Gianna_2019-02-18T01:52:58.995200 | 1,550,454,778.9952 | 9,229 |
pythondev | help | Have you tried running `conda init <name of shell>` | 2019-02-18T02:30:17.995500 | Waldo | pythondev_help_Waldo_2019-02-18T02:30:17.995500 | 1,550,457,017.9955 | 9,230 |
pythondev | help | Insert what the name of the environment you want in place of `<name of shell>` | 2019-02-18T02:30:49.995700 | Waldo | pythondev_help_Waldo_2019-02-18T02:30:49.995700 | 1,550,457,049.9957 | 9,231 |
pythondev | help | So in the above try running `conda init anaconda3` | 2019-02-18T02:32:05.996100 | Waldo | pythondev_help_Waldo_2019-02-18T02:32:05.996100 | 1,550,457,125.9961 | 9,232 |
pythondev | help | Then `conda activate anaconda3` | 2019-02-18T02:32:26.996300 | Waldo | pythondev_help_Waldo_2019-02-18T02:32:26.996300 | 1,550,457,146.9963 | 9,233 |
pythondev | help | ```conda init anaconda3
ArgumentError: Invalid shells:
- anaconda3
Currently available shells are:
- bash
- fish
- powershell
- tcsh
- xonsh
- zsh``` | 2019-02-18T02:52:16.996700 | Gianna | pythondev_help_Gianna_2019-02-18T02:52:16.996700 | 1,550,458,336.9967 | 9,234 |
pythondev | help | man u should first show ur full stack trace or else we cant help u | 2019-02-18T03:00:59.997300 | Idell | pythondev_help_Idell_2019-02-18T03:00:59.997300 | 1,550,458,859.9973 | 9,235 |
pythondev | help | Ok try a different shell name like `anaconda_test` | 2019-02-18T03:17:57.997400 | Waldo | pythondev_help_Waldo_2019-02-18T03:17:57.997400 | 1,550,459,877.9974 | 9,236 |
pythondev | help | So `conda init anaconda_test` | 2019-02-18T03:18:19.997600 | Waldo | pythondev_help_Waldo_2019-02-18T03:18:19.997600 | 1,550,459,899.9976 | 9,237 |
pythondev | help | Then `conda activate anaconda_test` | 2019-02-18T03:18:40.997800 | Waldo | pythondev_help_Waldo_2019-02-18T03:18:40.997800 | 1,550,459,920.9978 | 9,238 |
pythondev | help | but how it will active my acaconda? with python | 2019-02-18T03:40:44.998000 | Gianna | pythondev_help_Gianna_2019-02-18T03:40:44.998000 | 1,550,461,244.998 | 9,239 |
pythondev | help | running `conda activate <name>` runs a an anaconda environment | 2019-02-18T03:47:47.998200 | Waldo | pythondev_help_Waldo_2019-02-18T03:47:47.998200 | 1,550,461,667.9982 | 9,240 |
pythondev | help | you create the environment first with `conda init <name>` then activate that virtual environment with `conda activate <name>` | 2019-02-18T03:49:07.998500 | Waldo | pythondev_help_Waldo_2019-02-18T03:49:07.998500 | 1,550,461,747.9985 | 9,241 |
pythondev | help | If i want a decorator to just act like a pointer to something, can that work? basically, I want to be able to wrap a lot of different functions in one decorator(or similar) and then call something that reaches into each function and returns a variable from it | 2019-02-18T05:50:29.000500 | Vanita | pythondev_help_Vanita_2019-02-18T05:50:29.000500 | 1,550,469,029.0005 | 9,242 |
pythondev | help | as in pull a variable from the decorated function? | 2019-02-18T05:51:25.000900 | Mica | pythondev_help_Mica_2019-02-18T05:51:25.000900 | 1,550,469,085.0009 | 9,243 |
pythondev | help | yup | 2019-02-18T05:51:33.001100 | Vanita | pythondev_help_Vanita_2019-02-18T05:51:33.001100 | 1,550,469,093.0011 | 9,244 |
pythondev | help | Not without involving real black magic | 2019-02-18T05:52:23.002100 | Chester | pythondev_help_Chester_2019-02-18T05:52:23.002100 | 1,550,469,143.0021 | 9,245 |
pythondev | help | it doesn’t have to be a decorator, i’m just trying to identify a way of reaching into a subset of functions and return information about them. a way of adding a descriptor or tag really to each one | 2019-02-18T05:52:25.002200 | Vanita | pythondev_help_Vanita_2019-02-18T05:52:25.002200 | 1,550,469,145.0022 | 9,246 |
pythondev | help | You should really return these values explicitly | 2019-02-18T05:52:36.002700 | Chester | pythondev_help_Chester_2019-02-18T05:52:36.002700 | 1,550,469,156.0027 | 9,247 |
pythondev | help | depends what you mean by information, not sure you could pull varaible values, without a huge amount of work, but you could potentially monitor stuff like runtime and memory usage :thinking_face: | 2019-02-18T05:53:36.003600 | Mica | pythondev_help_Mica_2019-02-18T05:53:36.003600 | 1,550,469,216.0036 | 9,248 |
pythondev | help | I don’t believe I’ve a way of over riding the function class for my use case unfortunately | 2019-02-18T05:53:39.003800 | Vanita | pythondev_help_Vanita_2019-02-18T05:53:39.003800 | 1,550,469,219.0038 | 9,249 |
pythondev | help | Sorry, I should explain what I’m trying to do. I’ve a flask app being built thats gonna have a _fairly_ large codebase with a LOT of routes. I know they have `flask routes` through `click` which returns all the routes but you only really get the route, function name and the method. I’d love more info outside of “More d... | 2019-02-18T05:55:00.005500 | Vanita | pythondev_help_Vanita_2019-02-18T05:55:00.005500 | 1,550,469,300.0055 | 9,250 |
pythondev | help | initially I thought of trying to see could I modify the `@app.route()` decorator to have a `desc` or similar argument that would be pulled somehow but I guess I need to figure out what `flask routes` is calling first | 2019-02-18T05:55:50.006500 | Vanita | pythondev_help_Vanita_2019-02-18T05:55:50.006500 | 1,550,469,350.0065 | 9,251 |
pythondev | help | so you want to extend the existing `flask routes` command? | 2019-02-18T05:57:22.007400 | Mica | pythondev_help_Mica_2019-02-18T05:57:22.007400 | 1,550,469,442.0074 | 9,252 |
pythondev | help | so you can also display a description | 2019-02-18T05:57:31.007800 | Mica | pythondev_help_Mica_2019-02-18T05:57:31.007800 | 1,550,469,451.0078 | 9,253 |
pythondev | help | or use another command, it doesn’t have to extend | 2019-02-18T05:57:39.008000 | Vanita | pythondev_help_Vanita_2019-02-18T05:57:39.008000 | 1,550,469,459.008 | 9,254 |
pythondev | help | Thanks for the continues support on the matter! So the command is the hackrf_spiflash -r and I will need to find out how it is build in order to recreate the process and then call this command? | 2019-02-18T05:58:24.008700 | Lorinda | pythondev_help_Lorinda_2019-02-18T05:58:24.008700 | 1,550,469,504.0087 | 9,255 |
pythondev | help | hmm ok, I'm guessing you'd want to pull the endpoint docs or something? hmm ye that sounds like it'd be a huge amount of work haha :sweat_smile: | 2019-02-18T05:58:35.009000 | Mica | pythondev_help_Mica_2019-02-18T05:58:35.009000 | 1,550,469,515.009 | 9,256 |
pythondev | help | How I can find how it builds the command? In your experience what my angle should be in order to find that info for hackrf_spiflash -r? | 2019-02-18T05:58:59.009400 | Lorinda | pythondev_help_Lorinda_2019-02-18T05:58:59.009400 | 1,550,469,539.0094 | 9,257 |
pythondev | help | honestly its just a string that’ll exist on that endpoint, I know theres a `app.url_map.iter_rules()` but i don’t know enough Python to know if I can extend that or not (or how that’d work tbh) | 2019-02-18T06:03:49.010600 | Vanita | pythondev_help_Vanita_2019-02-18T06:03:49.010600 | 1,550,469,829.0106 | 9,258 |
pythondev | help | sure you can | 2019-02-18T06:21:25.010900 | Jettie | pythondev_help_Jettie_2019-02-18T06:21:25.010900 | 1,550,470,885.0109 | 9,259 |
pythondev | help | you can make a decorator that would do `blueprint.add_route`, and then also take a `desc` argument (and possibly more) and store it in your own dict (like url_map) | 2019-02-18T06:26:12.012000 | Jettie | pythondev_help_Jettie_2019-02-18T06:26:12.012000 | 1,550,471,172.012 | 9,260 |
pythondev | help | oh so instead of calling `app.route`, I’d wrap that and give it my own? Interesting! | 2019-02-18T06:30:47.012600 | Vanita | pythondev_help_Vanita_2019-02-18T06:30:47.012600 | 1,550,471,447.0126 | 9,261 |
pythondev | help | ```
def add_route(app, description, **kwargs):
def decorator(f):
app.add_route(f, **kwargs)
your_storage_or_whatever[f.__name__] = {'description': description}
return f
return decorator
``` | 2019-02-18T07:42:59.014200 | Jettie | pythondev_help_Jettie_2019-02-18T07:42:59.014200 | 1,550,475,779.0142 | 9,262 |
pythondev | help | something kind of like this, but with correct argument names %) | 2019-02-18T07:43:11.014700 | Jettie | pythondev_help_Jettie_2019-02-18T07:43:11.014700 | 1,550,475,791.0147 | 9,263 |
pythondev | help | I found the file hackrf_spiflash that contains the -r process. | 2019-02-18T08:07:52.015100 | Lorinda | pythondev_help_Lorinda_2019-02-18T08:07:52.015100 | 1,550,477,272.0151 | 9,264 |
pythondev | help | <https://github.com/mossmann/hackrf/blob/master/host/hackrf-tools/src/hackrf_spiflash.c> | 2019-02-18T08:08:37.015300 | Lorinda | pythondev_help_Lorinda_2019-02-18T08:08:37.015300 | 1,550,477,317.0153 | 9,265 |
pythondev | help | The function you showed me before does what you need to do. The only difference is the command it builds. Try to follow how that function builds the command. Like I said, aside from the `subprocess` and `QtCore` stuff, it's working with standard python objects, so it should be easy to follow what it does. You can eithe... | 2019-02-18T08:12:13.015600 | Ashley | pythondev_help_Ashley_2019-02-18T08:12:13.015600 | 1,550,477,533.0156 | 9,266 |
pythondev | help | Do you want to maybe pull the docstring from the routed function? | 2019-02-18T08:12:45.016500 | Bethany | pythondev_help_Bethany_2019-02-18T08:12:45.016500 | 1,550,477,565.0165 | 9,267 |
pythondev | help | Which specifically is the function and which the command? | 2019-02-18T08:19:07.016600 | Lorinda | pythondev_help_Lorinda_2019-02-18T08:19:07.016600 | 1,550,477,947.0166 | 9,268 |
pythondev | help | The function is the hackrf_spiflash -r. | 2019-02-18T08:20:42.016800 | Lorinda | pythondev_help_Lorinda_2019-02-18T08:20:42.016800 | 1,550,478,042.0168 | 9,269 |
pythondev | help | But which is the command? | 2019-02-18T08:20:46.017000 | Lorinda | pythondev_help_Lorinda_2019-02-18T08:20:46.017000 | 1,550,478,046.017 | 9,270 |
pythondev | help | i hadn’t decided if it’d be a docstring or just a string of some sort. Thats great <@Jettie>,thanks! | 2019-02-18T08:52:34.018300 | Vanita | pythondev_help_Vanita_2019-02-18T08:52:34.018300 | 1,550,479,954.0183 | 9,271 |
pythondev | help | Anyone recommend a good primer for ML that explains things from a very high level without necessarily going into details? I need to pick up the lingo / concepts lickety split. | 2019-02-18T09:57:44.019400 | Judith | pythondev_help_Judith_2019-02-18T09:57:44.019400 | 1,550,483,864.0194 | 9,272 |
pythondev | help | Anything specific in ML?
ML libraries for Python? The math/statistics behind? | 2019-02-18T10:09:13.020100 | Yaeko | pythondev_help_Yaeko_2019-02-18T10:09:13.020100 | 1,550,484,553.0201 | 9,273 |
pythondev | help | <https://www.tensorflow.org/tutorials/keras> | 2019-02-18T10:10:21.020300 | Jewell | pythondev_help_Jewell_2019-02-18T10:10:21.020300 | 1,550,484,621.0203 | 9,274 |
pythondev | help | <@Judith> what does high level mean to you? For a business perspective, or somebody who knows stats but not ML | 2019-02-18T10:25:46.022200 | Bethany | pythondev_help_Bethany_2019-02-18T10:25:46.022200 | 1,550,485,546.0222 | 9,275 |
pythondev | help | None | 2019-02-18T10:38:46.022400 | Leana | pythondev_help_Leana_2019-02-18T10:38:46.022400 | 1,550,486,326.0224 | 9,276 |
pythondev | help | ML primer :point_up_2: | 2019-02-18T10:38:51.022600 | Jonas | pythondev_help_Jonas_2019-02-18T10:38:51.022600 | 1,550,486,331.0226 | 9,277 |
pythondev | help | I need to be able to understand, conceptually, training sets vs models vs experiments, etc. The lifecycle of an ML project on a conceptual level. | 2019-02-18T10:48:05.024700 | Judith | pythondev_help_Judith_2019-02-18T10:48:05.024700 | 1,550,486,885.0247 | 9,278 |
pythondev | help | <https://www.coursera.org/learn/machine-learning> - do this | 2019-02-18T10:50:25.025500 | Jonas | pythondev_help_Jonas_2019-02-18T10:50:25.025500 | 1,550,487,025.0255 | 9,279 |
pythondev | help | It's from andrew NG and it covers the conceptual basis for ML | 2019-02-18T10:50:38.026200 | Jonas | pythondev_help_Jonas_2019-02-18T10:50:38.026200 | 1,550,487,038.0262 | 9,280 |
pythondev | help | Haha, I was just typing the same thing - I took that course. It's quite heavy on the maths sometimes if that's a problem, but you will understand the concepts afterwards. | 2019-02-18T10:50:55.026800 | Chelsey | pythondev_help_Chelsey_2019-02-18T10:50:55.026800 | 1,550,487,055.0268 | 9,281 |
pythondev | help | tl;dr it's pretty much just automagically drawing any line on any graph | 2019-02-18T10:51:05.027100 | Jonas | pythondev_help_Jonas_2019-02-18T10:51:05.027100 | 1,550,487,065.0271 | 9,282 |
pythondev | help | and from that line you can infer predictions | 2019-02-18T10:51:21.027400 | Jonas | pythondev_help_Jonas_2019-02-18T10:51:21.027400 | 1,550,487,081.0274 | 9,283 |
pythondev | help | The first two weeks of course cover that for you | 2019-02-18T10:51:54.028000 | Jonas | pythondev_help_Jonas_2019-02-18T10:51:54.028000 | 1,550,487,114.028 | 9,284 |
pythondev | help | Also dealing with grouping information, not just the linear regression, though if you can understand the linear regression you can at least start to have a good conversation about ML. | 2019-02-18T10:52:29.028800 | Chelsey | pythondev_help_Chelsey_2019-02-18T10:52:29.028800 | 1,550,487,149.0288 | 9,285 |
pythondev | help | I have a friend that wants to "learn programming" – anyone have a good beginner course, assuming zero knowledge? | 2019-02-18T11:04:32.029400 | Melynda | pythondev_help_Melynda_2019-02-18T11:04:32.029400 | 1,550,487,872.0294 | 9,286 |
pythondev | help | there are some good stuff here g#learning-resources | 2019-02-18T11:05:24.029800 | Jimmy | pythondev_help_Jimmy_2019-02-18T11:05:24.029800 | 1,550,487,924.0298 | 9,287 |
pythondev | help | <https://github.com/pyslackers/learning-resources> | 2019-02-18T11:05:25.030000 | Leana | pythondev_help_Leana_2019-02-18T11:05:25.030000 | 1,550,487,925.03 | 9,288 |
pythondev | help | and I always recommend automate the boring stuff | 2019-02-18T11:05:31.030300 | Jimmy | pythondev_help_Jimmy_2019-02-18T11:05:31.030300 | 1,550,487,931.0303 | 9,289 |
pythondev | help | I want to configure hierarchical rules such as -
```Rules
dimension_1: *
dimension_2: *
value: val1
dimension_1: abc
dimension_2: *
value: val2
dimension_1: xyz
dimension_2: *
value: val3
dimension_1: xyz
dimension_2: lem
value: val4```
And I want to do lookups such as -
```Lookup "dimension1:abc,dimension2:lem"... | 2019-02-18T11:41:22.031500 | Rosamaria | pythondev_help_Rosamaria_2019-02-18T11:41:22.031500 | 1,550,490,082.0315 | 9,290 |
pythondev | help | Thanks for the recommendation! | 2019-02-18T11:44:51.031600 | Judith | pythondev_help_Judith_2019-02-18T11:44:51.031600 | 1,550,490,291.0316 | 9,291 |
pythondev | help | not 100% sure I understand your use-case, but this might help: <https://github.com/santinic/pampy> | 2019-02-18T11:51:26.032300 | My | pythondev_help_My_2019-02-18T11:51:26.032300 | 1,550,490,686.0323 | 9,292 |
pythondev | help | never used it, but saw it going around Github recently and it seemed super interesting | 2019-02-18T11:52:42.032800 | My | pythondev_help_My_2019-02-18T11:52:42.032800 | 1,550,490,762.0328 | 9,293 |
pythondev | help | so, if I read the README file correctly, you'd have something like
```
match(x,
('abc', _), val2,
('xyz', _), val3,
('xyz', 'lem'), val4,
(_, _), val1
)
``` | 2019-02-18T11:56:08.034800 | My | pythondev_help_My_2019-02-18T11:56:08.034800 | 1,550,490,968.0348 | 9,294 |
pythondev | help | (I might be over-simplifying it a bit too much, but it's a start :slightly_smiling_face: ) | 2019-02-18T11:57:23.035400 | My | pythondev_help_My_2019-02-18T11:57:23.035400 | 1,550,491,043.0354 | 9,295 |
pythondev | help | That's a clever little library | 2019-02-18T12:03:37.035700 | Rosamaria | pythondev_help_Rosamaria_2019-02-18T12:03:37.035700 | 1,550,491,417.0357 | 9,296 |
pythondev | help | Might be a nice thing to use in an innards of the higher level config management library i'm looking for :slightly_smiling_face: | 2019-02-18T12:04:42.036700 | Rosamaria | pythondev_help_Rosamaria_2019-02-18T12:04:42.036700 | 1,550,491,482.0367 | 9,297 |
pythondev | help | Am I the only one who struggles with this? We store much of our business logic in these kinds of hierarchical configurations. | 2019-02-18T12:11:00.037900 | Rosamaria | pythondev_help_Rosamaria_2019-02-18T12:11:00.037900 | 1,550,491,860.0379 | 9,298 |
pythondev | help | Inevitably as the system evolves, the configuration goes from 'a smart way to store complex conditions' to '2000 line behemoth which is impossible to maintain' | 2019-02-18T12:12:06.039200 | Rosamaria | pythondev_help_Rosamaria_2019-02-18T12:12:06.039200 | 1,550,491,926.0392 | 9,299 |
pythondev | help | problem is we don’t have precognition, and when the business rules change and evolve, the actual code has to adapt too | 2019-02-18T12:19:04.040000 | Hiroko | pythondev_help_Hiroko_2019-02-18T12:19:04.040000 | 1,550,492,344.04 | 9,300 |
pythondev | help | other way around. You sent me the code for the function. that function generated a command | 2019-02-18T12:19:33.040700 | Ashley | pythondev_help_Ashley_2019-02-18T12:19:33.040700 | 1,550,492,373.0407 | 9,301 |
pythondev | help | and the necessary amount of adaption varies a great deal depending on the level of abstrction in the original solution :slightly_smiling_face: | 2019-02-18T12:19:42.041100 | Hiroko | pythondev_help_Hiroko_2019-02-18T12:19:42.041100 | 1,550,492,382.0411 | 9,302 |
pythondev | help | Right, it's a tough nut to crack. I feel like there are some missing tools to help us crack us | 2019-02-18T12:27:19.041700 | Rosamaria | pythondev_help_Rosamaria_2019-02-18T12:27:19.041700 | 1,550,492,839.0417 | 9,303 |
pythondev | help | hello, how to check if a value is of type `typing.List` in python 3.6 and above?
I tried something like:
```
class GenericMeta(type): pass
t = type(klass) # <class 'typing._GenericAlias'>
t == GenericMeta # returns False
``` | 2019-02-18T13:12:45.044100 | Deangelo | pythondev_help_Deangelo_2019-02-18T13:12:45.044100 | 1,550,495,565.0441 | 9,304 |
pythondev | help | Does anyone know why in some of the matplotlib source code they have function docstrings as strings like:
```def some_function():
'some description of the function as a string'```
instead of using comments? I don't think I've seen that before. I'm specifically looking at the `matplotlib/axis.py` `Axes` class | 2019-02-18T13:14:09.045700 | Cherish | pythondev_help_Cherish_2019-02-18T13:14:09.045700 | 1,550,495,649.0457 | 9,305 |
pythondev | help | <@Britt> why do you want to know if it's specifically a list? | 2019-02-18T13:15:09.046300 | Jonas | pythondev_help_Jonas_2019-02-18T13:15:09.046300 | 1,550,495,709.0463 | 9,306 |
pythondev | help | `isinstance(obj, list)` will do the trick | 2019-02-18T13:15:16.046700 | Jonas | pythondev_help_Jonas_2019-02-18T13:15:16.046700 | 1,550,495,716.0467 | 9,307 |
pythondev | help | Oh, if you're comparing a class against `typing.List`, try `issubclass()` | 2019-02-18T13:16:01.047600 | Jonas | pythondev_help_Jonas_2019-02-18T13:16:01.047600 | 1,550,495,761.0476 | 9,308 |
pythondev | help | I'm using this to convert a nested dict to a Class instance | 2019-02-18T13:16:27.048700 | Deangelo | pythondev_help_Deangelo_2019-02-18T13:16:27.048700 | 1,550,495,787.0487 | 9,309 |
pythondev | help | <@Cherish> these comments are exposed as `obj.__doc__`, so it's handy for them to be there for auto-generating documentation. It's also convention | 2019-02-18T13:16:45.049700 | Jonas | pythondev_help_Jonas_2019-02-18T13:16:45.049700 | 1,550,495,805.0497 | 9,310 |
pythondev | help | so looping through dict keys and values | 2019-02-18T13:16:46.049900 | Deangelo | pythondev_help_Deangelo_2019-02-18T13:16:46.049900 | 1,550,495,806.0499 | 9,311 |
pythondev | help | let me check if any of those suggestions will do | 2019-02-18T13:17:07.050400 | Deangelo | pythondev_help_Deangelo_2019-02-18T13:17:07.050400 | 1,550,495,827.0504 | 9,312 |
pythondev | help | thanks <@Jonas> :taco: | 2019-02-18T13:17:31.051200 | Cherish | pythondev_help_Cherish_2019-02-18T13:17:31.051200 | 1,550,495,851.0512 | 9,313 |
pythondev | help | In general though, try to avoid concrete comparisons | 2019-02-18T13:17:54.052000 | Jonas | pythondev_help_Jonas_2019-02-18T13:17:54.052000 | 1,550,495,874.052 | 9,314 |
pythondev | help | if you want to iterate through something, try `isinstance(obj, collections.abc.Iterable)` | 2019-02-18T13:18:12.052500 | Jonas | pythondev_help_Jonas_2019-02-18T13:18:12.052500 | 1,550,495,892.0525 | 9,315 |
pythondev | help | because what if your value changes from a list to a tuple down the road. Your code will still work in theory, but your isinstance check will fail. | 2019-02-18T13:18:42.053000 | Jonas | pythondev_help_Jonas_2019-02-18T13:18:42.053000 | 1,550,495,922.053 | 9,316 |
pythondev | help | makes sense | 2019-02-18T13:24:03.053400 | Deangelo | pythondev_help_Deangelo_2019-02-18T13:24:03.053400 | 1,550,496,243.0534 | 9,317 |
pythondev | help | and for dict? do I use the abstract Mapping? | 2019-02-18T13:24:12.053700 | Deangelo | pythondev_help_Deangelo_2019-02-18T13:24:12.053700 | 1,550,496,252.0537 | 9,318 |
pythondev | help | yep | 2019-02-18T13:24:17.054100 | Jonas | pythondev_help_Jonas_2019-02-18T13:24:17.054100 | 1,550,496,257.0541 | 9,319 |
pythondev | help | Be careful though | 2019-02-18T13:24:26.054400 | Jonas | pythondev_help_Jonas_2019-02-18T13:24:26.054400 | 1,550,496,266.0544 | 9,320 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.