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 | only have run and debug setup and tools | 2018-03-07T22:13:34.000189 | Bertha | pythondev_help_Bertha_2018-03-07T22:13:34.000189 | 1,520,460,814.000189 | 38,024 |
pythondev | help | Press ctrl+alt+s and check terminal settings may it is disabled.
Or go to settings/preferences then check terminal settings. | 2018-03-07T22:27:02.000231 | Tammi | pythondev_help_Tammi_2018-03-07T22:27:02.000231 | 1,520,461,622.000231 | 38,025 |
pythondev | help | got it thank you! | 2018-03-07T22:42:59.000253 | Bertha | pythondev_help_Bertha_2018-03-07T22:42:59.000253 | 1,520,462,579.000253 | 38,026 |
pythondev | help | now for some reason my "Run" window is floating | 2018-03-07T22:43:10.000079 | Bertha | pythondev_help_Bertha_2018-03-07T22:43:10.000079 | 1,520,462,590.000079 | 38,027 |
pythondev | help | I saw that i can choose to float or not too | 2018-03-07T22:43:20.000253 | Bertha | pythondev_help_Bertha_2018-03-07T22:43:20.000253 | 1,520,462,600.000253 | 38,028 |
pythondev | help | how do dock the window back into the main text editor window? | 2018-03-07T22:43:32.000243 | Bertha | pythondev_help_Bertha_2018-03-07T22:43:32.000243 | 1,520,462,612.000243 | 38,029 |
pythondev | help | By dragging it there | 2018-03-07T22:48:35.000204 | Tammi | pythondev_help_Tammi_2018-03-07T22:48:35.000204 | 1,520,462,915.000204 | 38,030 |
pythondev | help | I'm looking for a blog post that I read a while ago, I wonder if anyone else has read it? It was a well written post as part of a series, and it was specifically about premature abstraction. It had a good example about a company wanting to make orders to suppliers via http request, and trying to create a base class, wh... | 2018-03-08T04:34:38.000380 | Dierdre | pythondev_help_Dierdre_2018-03-08T04:34:38.000380 | 1,520,483,678.00038 | 38,031 |
pythondev | help | i feel extra dumb today, because I just realized that list comprehensions are just math set notation. (my degrees are in math) | 2018-03-08T08:46:09.000602 | Concha | pythondev_help_Concha_2018-03-08T08:46:09.000602 | 1,520,498,769.000602 | 38,032 |
pythondev | help | context switch fail | 2018-03-08T08:46:15.000336 | Concha | pythondev_help_Concha_2018-03-08T08:46:15.000336 | 1,520,498,775.000336 | 38,033 |
pythondev | help | Did you know that relational databases are an implementation of set theory? | 2018-03-08T08:47:40.000391 | Floy | pythondev_help_Floy_2018-03-08T08:47:40.000391 | 1,520,498,860.000391 | 38,034 |
pythondev | help | yeah, for some reason I caught that one :smile: | 2018-03-08T08:48:27.000091 | Concha | pythondev_help_Concha_2018-03-08T08:48:27.000091 | 1,520,498,907.000091 | 38,035 |
pythondev | help | <https://medium.com/fullstackhacks/sql-rdbms-set-theory-in-action-767c11cc1de8> | 2018-03-08T08:48:37.000344 | Floy | pythondev_help_Floy_2018-03-08T08:48:37.000344 | 1,520,498,917.000344 | 38,036 |
pythondev | help | Interesting reading | 2018-03-08T08:48:48.000141 | Floy | pythondev_help_Floy_2018-03-08T08:48:48.000141 | 1,520,498,928.000141 | 38,037 |
pythondev | help | oh wow, I didn't realize the extent though | 2018-03-08T08:48:58.000441 | Concha | pythondev_help_Concha_2018-03-08T08:48:58.000441 | 1,520,498,938.000441 | 38,038 |
pythondev | help | thanks | 2018-03-08T08:49:01.000227 | Concha | pythondev_help_Concha_2018-03-08T08:49:01.000227 | 1,520,498,941.000227 | 38,039 |
pythondev | help | Math in action :grinning: | 2018-03-08T08:49:44.000170 | Floy | pythondev_help_Floy_2018-03-08T08:49:44.000170 | 1,520,498,984.00017 | 38,040 |
pythondev | help | i mean, yeah I guess I did know. basically unions, intersections, etc. | 2018-03-08T08:50:31.000366 | Concha | pythondev_help_Concha_2018-03-08T08:50:31.000366 | 1,520,499,031.000366 | 38,041 |
pythondev | help | guess the literal words 'set theory' didn't come to mind but I was thinking in terms of the logic | 2018-03-08T08:50:51.000012 | Concha | pythondev_help_Concha_2018-03-08T08:50:51.000012 | 1,520,499,051.000012 | 38,042 |
pythondev | help | this question is really probably academic but | 2018-03-08T09:01:23.000091 | Concha | pythondev_help_Concha_2018-03-08T09:01:23.000091 | 1,520,499,683.000091 | 38,043 |
pythondev | help | if I create a list with a list comprehension, does python remember the list comprehension or just the resulting list? | 2018-03-08T09:01:38.000355 | Concha | pythondev_help_Concha_2018-03-08T09:01:38.000355 | 1,520,499,698.000355 | 38,044 |
pythondev | help | i.e. if I have EVEN = [2*x for x in range(1,20)] | 2018-03-08T09:02:36.000288 | Concha | pythondev_help_Concha_2018-03-08T09:02:36.000288 | 1,520,499,756.000288 | 38,045 |
pythondev | help | type (EVEN) is list | 2018-03-08T09:02:44.000163 | Concha | pythondev_help_Concha_2018-03-08T09:02:44.000163 | 1,520,499,764.000163 | 38,046 |
pythondev | help | comprehension - gone forever? | 2018-03-08T09:03:00.000295 | Concha | pythondev_help_Concha_2018-03-08T09:03:00.000295 | 1,520,499,780.000295 | 38,047 |
pythondev | help | well that's the goal of it | 2018-03-08T09:04:04.000137 | Micki | pythondev_help_Micki_2018-03-08T09:04:04.000137 | 1,520,499,844.000137 | 38,048 |
pythondev | help | Could you explain what you want to achieve ? | 2018-03-08T09:04:14.000615 | Micki | pythondev_help_Micki_2018-03-08T09:04:14.000615 | 1,520,499,854.000615 | 38,049 |
pythondev | help | absolutely nothing. Just curious | 2018-03-08T09:05:18.000861 | Concha | pythondev_help_Concha_2018-03-08T09:05:18.000861 | 1,520,499,918.000861 | 38,050 |
pythondev | help | that's why I say it's purely academic. just wondering how python thinks | 2018-03-08T09:06:31.000096 | Concha | pythondev_help_Concha_2018-03-08T09:06:31.000096 | 1,520,499,991.000096 | 38,051 |
pythondev | help | if I recall, and someone can correct me if I’m wrong on this, but in python2 variables in the list comprehension could “leak” into the surrounding scope | 2018-03-08T09:08:42.000250 | Zack | pythondev_help_Zack_2018-03-08T09:08:42.000250 | 1,520,500,122.00025 | 38,052 |
pythondev | help | and in python 3 that was corrected. so as of python3 it “forgets” everything about the comprehension, effectively, after its done | 2018-03-08T09:09:15.000068 | Zack | pythondev_help_Zack_2018-03-08T09:09:15.000068 | 1,520,500,155.000068 | 38,053 |
pythondev | help | or at least any memory used is eligible for garbage collection. how that works in practice I can’t really speak to, maybe somebody else can | 2018-03-08T09:09:39.000419 | Zack | pythondev_help_Zack_2018-03-08T09:09:39.000419 | 1,520,500,179.000419 | 38,054 |
pythondev | help | "List Comprehension Loop Variables: In previous versions of Python, giving the variable that is iterated over in a list comprehension the same name as a global variable could lead to the value of the global variable being changed — something you usually don’t want. This irritating bug has been fixed in Python 3, so you... | 2018-03-08T09:11:06.000137 | Concha | pythondev_help_Concha_2018-03-08T09:11:06.000137 | 1,520,500,266.000137 | 38,055 |
pythondev | help | source: <https://blog.appdynamics.com/engineering/the-key-differences-between-python-2-and-python-3/> | 2018-03-08T09:11:13.000258 | Concha | pythondev_help_Concha_2018-03-08T09:11:13.000258 | 1,520,500,273.000258 | 38,056 |
pythondev | help | That what you'r referring to? <@Zack> | 2018-03-08T09:11:33.000158 | Concha | pythondev_help_Concha_2018-03-08T09:11:33.000158 | 1,520,500,293.000158 | 38,057 |
pythondev | help | yeah | 2018-03-08T09:12:32.000035 | Zack | pythondev_help_Zack_2018-03-08T09:12:32.000035 | 1,520,500,352.000035 | 38,058 |
pythondev | help | Can someone give me an example: Given a list of Strings, create a function that accepts the list, a "find" String, and a "replace" String. The function replaces all instances of the "find" String in the list with the "replace" String. | 2018-03-08T10:08:51.000275 | Maia | pythondev_help_Maia_2018-03-08T10:08:51.000275 | 1,520,503,731.000275 | 38,059 |
pythondev | help | oh misread that one sec... | 2018-03-08T10:18:07.000382 | Elisha | pythondev_help_Elisha_2018-03-08T10:18:07.000382 | 1,520,504,287.000382 | 38,060 |
pythondev | help | ```
def do_the_thing(strings, find_string, replace_string):
for string in strings:
string = string.replace(find_string, replace_string)
``` | 2018-03-08T10:20:16.000291 | Elisha | pythondev_help_Elisha_2018-03-08T10:20:16.000291 | 1,520,504,416.000291 | 38,061 |
pythondev | help | Hi, I am using Ansible that is generating some python that is hanging on the host machine. I have been pulling my hair out for two days over this. I tried the Ansible iirc channel but they said its a python problem so I’m hoping one of you can point me in the right direction.
Here is my Ansible code which just hags ... | 2018-03-08T10:47:17.000377 | Elias | pythondev_help_Elias_2018-03-08T10:47:17.000377 | 1,520,506,037.000377 | 38,062 |
pythondev | help | when I get an hanging ansible it's usually due to network problem | 2018-03-08T10:58:14.000078 | Micki | pythondev_help_Micki_2018-03-08T10:58:14.000078 | 1,520,506,694.000078 | 38,063 |
pythondev | help | have you tried adding the key by hand ? and is that working ? | 2018-03-08T10:58:25.000318 | Micki | pythondev_help_Micki_2018-03-08T10:58:25.000318 | 1,520,506,705.000318 | 38,064 |
pythondev | help | thats what I am just about to do. | 2018-03-08T10:58:50.000740 | Elias | pythondev_help_Elias_2018-03-08T10:58:50.000740 | 1,520,506,730.00074 | 38,065 |
pythondev | help | I was wondering the same | 2018-03-08T10:58:55.000552 | Elias | pythondev_help_Elias_2018-03-08T10:58:55.000552 | 1,520,506,735.000552 | 38,066 |
pythondev | help | and if that works I would try to execute `/usr/bin/python3 /tmp/.ansible/tmp/ansible-tmp-1520523619.8851929-108759809298868/apt_key.py` and see what happens | 2018-03-08T10:59:15.000060 | Micki | pythondev_help_Micki_2018-03-08T10:59:15.000060 | 1,520,506,755.00006 | 38,067 |
pythondev | help | ok going through the steps now | 2018-03-08T11:00:32.000516 | Elias | pythondev_help_Elias_2018-03-08T11:00:32.000516 | 1,520,506,832.000516 | 38,068 |
pythondev | help | Ok so I installed they key by hand, ran Ansible again and it completed. Not sure where that leave me… | 2018-03-08T11:04:08.000407 | Elias | pythondev_help_Elias_2018-03-08T11:04:08.000407 | 1,520,507,048.000407 | 38,069 |
pythondev | help | maybe execute a command to install the key versus using the ansible module | 2018-03-08T11:05:11.000133 | Elias | pythondev_help_Elias_2018-03-08T11:05:11.000133 | 1,520,507,111.000133 | 38,070 |
pythondev | help | well that's normal. If ansible find the key is already installed it will not do it | 2018-03-08T11:07:00.000217 | Micki | pythondev_help_Micki_2018-03-08T11:07:00.000217 | 1,520,507,220.000217 | 38,071 |
pythondev | help | if you remove it by hand it will probably fail afterwards | 2018-03-08T11:07:17.000734 | Micki | pythondev_help_Micki_2018-03-08T11:07:17.000734 | 1,520,507,237.000734 | 38,072 |
pythondev | help | I would try grabbin the script generated by ansible and try executing it | 2018-03-08T11:08:38.000297 | Micki | pythondev_help_Micki_2018-03-08T11:08:38.000297 | 1,520,507,318.000297 | 38,073 |
pythondev | help | so likely it was failing on the install portion. I was thinking it was on retrieval before. | 2018-03-08T11:08:48.000278 | Elias | pythondev_help_Elias_2018-03-08T11:08:48.000278 | 1,520,507,328.000278 | 38,074 |
pythondev | help | I could also fail on the retrieval. Some weirds things can happen with SSL/TLS version | 2018-03-08T11:09:22.000891 | Micki | pythondev_help_Micki_2018-03-08T11:09:22.000891 | 1,520,507,362.000891 | 38,075 |
pythondev | help | on older python | 2018-03-08T11:09:26.000012 | Micki | pythondev_help_Micki_2018-03-08T11:09:26.000012 | 1,520,507,366.000012 | 38,076 |
pythondev | help | I did that and it weas hanging on “import ‘encodings.cp437’” but thats not in the script at all so it must be something else down the chain in another library | 2018-03-08T11:09:36.000387 | Elias | pythondev_help_Elias_2018-03-08T11:09:36.000387 | 1,520,507,376.000387 | 38,077 |
pythondev | help | how was the python installed ? | 2018-03-08T11:09:57.000441 | Micki | pythondev_help_Micki_2018-03-08T11:09:57.000441 | 1,520,507,397.000441 | 38,078 |
pythondev | help | im using python3 and tried python2.x | 2018-03-08T11:10:04.000407 | Elias | pythondev_help_Elias_2018-03-08T11:10:04.000407 | 1,520,507,404.000407 | 38,079 |
pythondev | help | It came installed with the vagrant image. ubuntu/trusty64 | 2018-03-08T11:10:32.000727 | Elias | pythondev_help_Elias_2018-03-08T11:10:32.000727 | 1,520,507,432.000727 | 38,080 |
pythondev | help | but I also did an apt-get update and upgrade as troubleshooting | 2018-03-08T11:11:08.000816 | Elias | pythondev_help_Elias_2018-03-08T11:11:08.000816 | 1,520,507,468.000816 | 38,081 |
pythondev | help | so I removed the key and its hanging again as you suggested | 2018-03-08T11:13:41.000259 | Elias | pythondev_help_Elias_2018-03-08T11:13:41.000259 | 1,520,507,621.000259 | 38,082 |
pythondev | help | it's a bit hard to debug like that :confused: | 2018-03-08T11:16:48.000054 | Micki | pythondev_help_Micki_2018-03-08T11:16:48.000054 | 1,520,507,808.000054 | 38,083 |
pythondev | help | maybe someone lese has an idea why this encoding is causing trouble | 2018-03-08T11:17:17.000340 | Micki | pythondev_help_Micki_2018-03-08T11:17:17.000340 | 1,520,507,837.00034 | 38,084 |
pythondev | help | ```
class Solution(object):
def findAnagrams(self, s, p):
"""
:type s: str
:type p: str
:rtype: List[int]
"""
indicies = []
window_hashtable = {}
# fill window hashtable
for i in range(len(p)):
if p[i] in window_hashtable:
... | 2018-03-08T11:54:48.000639 | Winifred | pythondev_help_Winifred_2018-03-08T11:54:48.000639 | 1,520,510,088.000639 | 38,085 |
pythondev | help | ~the copy-paste ate the formatting~ | 2018-03-08T11:59:32.000477 | Monroe | pythondev_help_Monroe_2018-03-08T11:59:32.000477 | 1,520,510,372.000477 | 38,086 |
pythondev | help | <@Winifred> why does it have to be a class? | 2018-03-08T12:34:52.000810 | Kacie | pythondev_help_Kacie_2018-03-08T12:34:52.000810 | 1,520,512,492.00081 | 38,087 |
pythondev | help | Does not, it’s from leetcode. | 2018-03-08T12:35:09.000415 | Winifred | pythondev_help_Winifred_2018-03-08T12:35:09.000415 | 1,520,512,509.000415 | 38,088 |
pythondev | help | For some strange reason they like classes… I wrote it myself and I think it doesn’t like that it’s not as efficient as it passes once it gets up to this long string of “a” | 2018-03-08T12:35:55.000632 | Winifred | pythondev_help_Winifred_2018-03-08T12:35:55.000632 | 1,520,512,555.000632 | 38,089 |
pythondev | help | theres some things there that are not pythonic | 2018-03-08T12:36:09.000656 | Kacie | pythondev_help_Kacie_2018-03-08T12:36:09.000656 | 1,520,512,569.000656 | 38,090 |
pythondev | help | alot of the syntax really | 2018-03-08T12:36:15.000747 | Kacie | pythondev_help_Kacie_2018-03-08T12:36:15.000747 | 1,520,512,575.000747 | 38,091 |
pythondev | help | feels like a java/c++/c# guy came in and did something quickly on python | 2018-03-08T12:36:37.000053 | Kacie | pythondev_help_Kacie_2018-03-08T12:36:37.000053 | 1,520,512,597.000053 | 38,092 |
pythondev | help | The actual method and class formatting and commenting are the default templates | 2018-03-08T12:37:00.000205 | Winifred | pythondev_help_Winifred_2018-03-08T12:37:00.000205 | 1,520,512,620.000205 | 38,093 |
pythondev | help | anyway, no big deal, looking for feedback anyway, especially on the nested for loop section being better. I think maybe I should have written that part more efficiently, not sure how. | 2018-03-08T12:38:01.000592 | Winifred | pythondev_help_Winifred_2018-03-08T12:38:01.000592 | 1,520,512,681.000592 | 38,094 |
pythondev | help | <@Micki> I finally got this to work…. Despite the documentation I had to format the keyserver url like this ``` key_server: "<hkp://keyserver.ubuntu.com:80>" ``` | 2018-03-08T13:51:50.000118 | Elias | pythondev_help_Elias_2018-03-08T13:51:50.000118 | 1,520,517,110.000118 | 38,095 |
pythondev | help | definitively looking like ssl issue | 2018-03-08T13:53:52.000697 | Micki | pythondev_help_Micki_2018-03-08T13:53:52.000697 | 1,520,517,232.000697 | 38,096 |
pythondev | help | How would I go about subtracting values of one dict from values of another dict so that:
```this_page = dict(total=float(), pilot_in_command=float(),
second_in_command=float(), cross_country=float(),
instructor=float(), dual=float(), solo=float(), instrument=float(),
... | 2018-03-08T14:06:52.000632 | Adelina | pythondev_help_Adelina_2018-03-08T14:06:52.000632 | 1,520,518,012.000632 | 38,097 |
pythondev | help | Hello! | 2018-03-08T18:00:16.000075 | Carly | pythondev_help_Carly_2018-03-08T18:00:16.000075 | 1,520,532,016.000075 | 38,098 |
pythondev | help | Say I have code:
```if eggs():
spam = bacon()
# ...
if 'spam' in locals():
sausage(spam)``` | 2018-03-08T18:01:52.000415 | Carly | pythondev_help_Carly_2018-03-08T18:01:52.000415 | 1,520,532,112.000415 | 38,099 |
pythondev | help | Is it better to have `spam = None` before the first line and check for `if spam` instead? Assuming `bacon()` always return truthy values. | 2018-03-08T18:02:59.000004 | Carly | pythondev_help_Carly_2018-03-08T18:02:59.000004 | 1,520,532,179.000004 | 38,100 |
pythondev | help | <@Carly> Someone else could weigh in on this. I think you’re fine here. | 2018-03-08T18:36:08.000287 | Winifred | pythondev_help_Winifred_2018-03-08T18:36:08.000287 | 1,520,534,168.000287 | 38,101 |
pythondev | help | Yeah, I think it’s best to initialize spam to None, and then test it if you want `if spam is None:` | 2018-03-08T18:42:23.000041 | Zack | pythondev_help_Zack_2018-03-08T18:42:23.000041 | 1,520,534,543.000041 | 38,102 |
pythondev | help | checking to see if `spam` is in `locals()` isn’t very pythonic | 2018-03-08T18:42:42.000420 | Zack | pythondev_help_Zack_2018-03-08T18:42:42.000420 | 1,520,534,562.00042 | 38,103 |
pythondev | help | a linter probably wouldn’t like that - and you are linting your code, right? :stuck_out_tongue: | 2018-03-08T18:44:03.000326 | Zack | pythondev_help_Zack_2018-03-08T18:44:03.000326 | 1,520,534,643.000326 | 38,104 |
pythondev | help | Hi there, anyone has experience with pulling a json message from postgres DB and updating an existing record with that message as an array? Was hoping to see a working example if anyone has one handy? | 2018-03-08T22:55:16.000245 | Mindi | pythondev_help_Mindi_2018-03-08T22:55:16.000245 | 1,520,549,716.000245 | 38,105 |
pythondev | help | Hi..!! i am a newbie to the python language. can anyone refer the best tutorial site to learn python and django ? Thanks in advance..!!! | 2018-03-08T23:10:56.000127 | Lakisha | pythondev_help_Lakisha_2018-03-08T23:10:56.000127 | 1,520,550,656.000127 | 38,106 |
pythondev | help | Dive inti Python would be helpful | 2018-03-08T23:14:11.000136 | Tammi | pythondev_help_Tammi_2018-03-08T23:14:11.000136 | 1,520,550,851.000136 | 38,107 |
pythondev | help | I am having trouble getting pipenv to work on OSX. I installed python3 and pip-3.6 with MacPorts. | 2018-03-09T01:45:20.000009 | Steffanie | pythondev_help_Steffanie_2018-03-09T01:45:20.000009 | 1,520,559,920.000009 | 38,108 |
pythondev | help | ```
$ python3 -m pipenv install
Creating a virtualenv for this project…
⠋Using base prefix '/opt/local/Library/Frameworks/Python.framework/Versions/3.6'
New python executable in /Users/bsechter/.local/share/virtualenvs/unic-wgSHlWoM/bin/python3
Also creating executable in /Users/bsechter/.local/share/virtualenvs/unic-w... | 2018-03-09T01:46:24.000263 | Steffanie | pythondev_help_Steffanie_2018-03-09T01:46:24.000263 | 1,520,559,984.000263 | 38,109 |
pythondev | help | Any help would be appreciated. I have set LANG and LC_ALL to en_US.UTF-8 and I have tried a few variations of the pipenv invocation. They all have the same result. | 2018-03-09T01:49:38.000008 | Steffanie | pythondev_help_Steffanie_2018-03-09T01:49:38.000008 | 1,520,560,178.000008 | 38,110 |
pythondev | help | Morning everyone, any block chain developer on here? I need some help | 2018-03-09T04:05:00.000048 | Jospeh | pythondev_help_Jospeh_2018-03-09T04:05:00.000048 | 1,520,568,300.000048 | 38,111 |
pythondev | help | why can't i define a function like this | 2018-03-09T05:56:04.000466 | Gia | pythondev_help_Gia_2018-03-09T05:56:04.000466 | 1,520,574,964.000466 | 38,112 |
pythondev | help | ```
203 def plot2d_w2slices(data,
--> 204 hslice_pos=data.shape[0] // 2,
205 vslice_pos=9 * data.shape[1] // 10,
206 hslice_opts={'ls': '--', 'color': '0.25'},
NameError: name 'data' is not defined
``` | 2018-03-09T05:56:12.000383 | Gia | pythondev_help_Gia_2018-03-09T05:56:12.000383 | 1,520,574,972.000383 | 38,113 |
pythondev | help | where the keyword arguments have a default value that depends on the value of the first argument passed when calling the function | 2018-03-09T05:56:59.000298 | Gia | pythondev_help_Gia_2018-03-09T05:56:59.000298 | 1,520,575,019.000298 | 38,114 |
pythondev | help | you wouldn’t want to do that anyway - the keyword defaults are evaluated once, not each time the function is run | 2018-03-09T05:59:10.000433 | Zack | pythondev_help_Zack_2018-03-09T05:59:10.000433 | 1,520,575,150.000433 | 38,115 |
pythondev | help | so you’d be getting wrong data. | 2018-03-09T05:59:19.000448 | Zack | pythondev_help_Zack_2018-03-09T05:59:19.000448 | 1,520,575,159.000448 | 38,116 |
pythondev | help | just default it to `None`, do a `if hslice_pos is None` and then assign it at the top of the function and you’ll be on your way. | 2018-03-09T06:00:03.000265 | Zack | pythondev_help_Zack_2018-03-09T06:00:03.000265 | 1,520,575,203.000265 | 38,117 |
pythondev | help | you’ll want to do that with `hslice_opts` as well - if somebody mutates that the default argument will change | 2018-03-09T06:00:23.000225 | Zack | pythondev_help_Zack_2018-03-09T06:00:23.000225 | 1,520,575,223.000225 | 38,118 |
pythondev | help | if someone mutates what? | 2018-03-09T06:02:12.000012 | Gia | pythondev_help_Gia_2018-03-09T06:02:12.000012 | 1,520,575,332.000012 | 38,119 |
pythondev | help | i then have the next line vslice_opts = hslice_opts | 2018-03-09T06:02:45.000432 | Gia | pythondev_help_Gia_2018-03-09T06:02:45.000432 | 1,520,575,365.000432 | 38,120 |
pythondev | help | in the definition | 2018-03-09T06:02:56.000232 | Gia | pythondev_help_Gia_2018-03-09T06:02:56.000232 | 1,520,575,376.000232 | 38,121 |
pythondev | help | ```
205 vslice_pos=None,
206 hslice_opts={'ls': '--', 'color': '0.25'},
--> 207 vslice_opts=hslice_opts):
208 r"""
209 >>> uu = np.linspace(0, np.pi, 128)
NameError: name 'hslice_opts' is not defined
``` | 2018-03-09T06:03:49.000262 | Gia | pythondev_help_Gia_2018-03-09T06:03:49.000262 | 1,520,575,429.000262 | 38,122 |
pythondev | help | if the values in `hslice_opts` are changed for some reason in the function, the next time it runs it would not be the values you defined | 2018-03-09T06:05:12.000268 | Zack | pythondev_help_Zack_2018-03-09T06:05:12.000268 | 1,520,575,512.000268 | 38,123 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.