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 | <@Ciera> I got your point but I followed a website example ,it was written like that | 2017-12-27T08:17:27.000035 | Bette | pythondev_help_Bette_2017-12-27T08:17:27.000035 | 1,514,362,647.000035 | 106,003 |
pythondev | help | yeah like I mentioned yesterday, I think you should stop using that site. :confused: | 2017-12-27T08:18:32.000274 | Junita | pythondev_help_Junita_2017-12-27T08:18:32.000274 | 1,514,362,712.000274 | 106,004 |
pythondev | help | they do seem to have nice illustrations of your program. could be good for beginners. But yeah, sites that have bad example code should be banned | 2017-12-27T08:23:04.000104 | Dinah | pythondev_help_Dinah_2017-12-27T08:23:04.000104 | 1,514,362,984.000104 | 106,005 |
pythondev | help | yesterday it also seemed to allow invalid syntax | 2017-12-27T08:26:02.000032 | Junita | pythondev_help_Junita_2017-12-27T08:26:02.000032 | 1,514,363,162.000032 | 106,006 |
pythondev | help | I feel kind of bad recommending not to use something without a good alternative though. :confused: | 2017-12-27T08:26:25.000284 | Junita | pythondev_help_Junita_2017-12-27T08:26:25.000284 | 1,514,363,185.000284 | 106,007 |
pythondev | help | still, nothing is worse the giving a developer bad habits (not to mention wrong habits...) | 2017-12-27T08:27:30.000009 | Dinah | pythondev_help_Dinah_2017-12-27T08:27:30.000009 | 1,514,363,250.000009 | 106,008 |
pythondev | help | IDLE, Jupyter Notebook and Anaconda Prompt. | 2017-12-27T08:29:18.000159 | Eugenie | pythondev_help_Eugenie_2017-12-27T08:29:18.000159 | 1,514,363,358.000159 | 106,009 |
pythondev | help | Yeah, certainly at least in the case of yesterday it actively caused some confusion, and yeah using builtins as variable names is definitely something to be avoided. | 2017-12-27T08:29:57.000077 | Junita | pythondev_help_Junita_2017-12-27T08:29:57.000077 | 1,514,363,397.000077 | 106,010 |
pythondev | help | With new_list = list, you don't actually have two lists. The assignment just copies the reference to the list, not the actual list, so both new_list and list refer to the same list after the assignment. | 2017-12-27T08:34:21.000053 | Eugenie | pythondev_help_Eugenie_2017-12-27T08:34:21.000053 | 1,514,363,661.000053 | 106,011 |
pythondev | help | Where as new_list=list[:] you can actually slice it but is a weird syntax and dosen't make any sense. | 2017-12-27T08:36:13.000008 | Eugenie | pythondev_help_Eugenie_2017-12-27T08:36:13.000008 | 1,514,363,773.000008 | 106,012 |
pythondev | help | PyCharm as main editor, Jupyter for small prototyping and research (changed my world), IPython as REPL for quick stuff | 2017-12-27T08:36:58.000263 | Dinah | pythondev_help_Dinah_2017-12-27T08:36:58.000263 | 1,514,363,818.000263 | 106,013 |
pythondev | help | You can visit my blog: <http://pythonteaching.blogspot.in|pythonteaching.blogspot.in> | 2017-12-27T08:37:15.000032 | Eugenie | pythondev_help_Eugenie_2017-12-27T08:37:15.000032 | 1,514,363,835.000032 | 106,014 |
pythondev | help | Are you using IDLE??? didn't know it existed until now and just opened it. I don't get it - why? | 2017-12-27T08:45:12.000226 | Dinah | pythondev_help_Dinah_2017-12-27T08:45:12.000226 | 1,514,364,312.000226 | 106,015 |
pythondev | help | May be u are having problem regarding the installation.. | 2017-12-27T08:52:37.000189 | Eugenie | pythondev_help_Eugenie_2017-12-27T08:52:37.000189 | 1,514,364,757.000189 | 106,016 |
pythondev | help | <@Junita> yesterday I found out that the error was on my side,I confused s little between 1 and l ,but today was a different case | 2017-12-27T09:25:15.000038 | Bette | pythondev_help_Bette_2017-12-27T09:25:15.000038 | 1,514,366,715.000038 | 106,017 |
pythondev | help | <#C07EYDP25|webdev> | 2017-12-27T10:21:38.000321 | Margherita | pythondev_help_Margherita_2017-12-27T10:21:38.000321 | 1,514,370,098.000321 | 106,018 |
pythondev | help | It looks weird at first, but it helps with doc strings, and your ide can help you fix common mistakes. For instance if you specify `def func(input: str)->str:` but you forget to return something or you have paths that don't return something then your IDE can say `hey bud you need to fix this your code is conflicting... | 2017-12-27T10:31:15.000137 | Glinda | pythondev_help_Glinda_2017-12-27T10:31:15.000137 | 1,514,370,675.000137 | 106,019 |
pythondev | help | <@Eugenie> have you tried pycharm? It's like IDLE but so much better. | 2017-12-27T10:33:13.000152 | Glinda | pythondev_help_Glinda_2017-12-27T10:33:13.000152 | 1,514,370,793.000152 | 106,020 |
pythondev | help | Oh.. is it I didn't tried it..
| 2017-12-27T10:34:28.000139 | Eugenie | pythondev_help_Eugenie_2017-12-27T10:34:28.000139 | 1,514,370,868.000139 | 106,021 |
pythondev | help | Let me try that then | 2017-12-27T10:34:34.000219 | Eugenie | pythondev_help_Eugenie_2017-12-27T10:34:34.000219 | 1,514,370,874.000219 | 106,022 |
pythondev | help | <@Bette> please stop using `list` when you reference a list.
```>>> tup = tuple((1,2,3,4))
>>> tup
(1, 2, 3, 4)
>>> some_list = list(tup)
>>> some_list
[1, 2, 3, 4]
>>> list = [1,2,3,4]
>>> b = list((1,2,3,4))
Traceback (most recent call last):
File "<stdin>... | 2017-12-27T10:36:37.000239 | Glinda | pythondev_help_Glinda_2017-12-27T10:36:37.000239 | 1,514,370,997.000239 | 106,023 |
pythondev | help | list is a function meant to convert some iterable object to a list. By using list as a variable name you're overriding this function which leads to bad things. | 2017-12-27T10:37:02.000514 | Glinda | pythondev_help_Glinda_2017-12-27T10:37:02.000514 | 1,514,371,022.000514 | 106,024 |
pythondev | help | Additionally if you wish to get help here please stop using non-standard ways of showing us your code. The harder you make us to read and understand your work (bad images, pastebin, unformatted text) means you're going to get less help. | 2017-12-27T10:38:35.000206 | Glinda | pythondev_help_Glinda_2017-12-27T10:38:35.000206 | 1,514,371,115.000206 | 106,025 |
pythondev | help | Please click the plus button to the left add `new code or text snippet` and select Python for highlighting. | 2017-12-27T10:39:30.000065 | Glinda | pythondev_help_Glinda_2017-12-27T10:39:30.000065 | 1,514,371,170.000065 | 106,026 |
pythondev | help | ```
list = {}
``` | 2017-12-27T10:42:57.000231 | Suellen | pythondev_help_Suellen_2017-12-27T10:42:57.000231 | 1,514,371,377.000231 | 106,027 |
pythondev | help | not that's a workstopper | 2017-12-27T10:43:12.000064 | Suellen | pythondev_help_Suellen_2017-12-27T10:43:12.000064 | 1,514,371,392.000064 | 106,028 |
pythondev | help | I remember reading an article about someone who overrided `list` to make it lose some elements from time to time. | 2017-12-27T10:44:14.000095 | Ciera | pythondev_help_Ciera_2017-12-27T10:44:14.000095 | 1,514,371,454.000095 | 106,029 |
pythondev | help | elements become loose? | 2017-12-27T10:44:27.000386 | Suellen | pythondev_help_Suellen_2017-12-27T10:44:27.000386 | 1,514,371,467.000386 | 106,030 |
pythondev | help | not sure I could implement such a thing | 2017-12-27T10:44:49.000087 | Suellen | pythondev_help_Suellen_2017-12-27T10:44:49.000087 | 1,514,371,489.000087 | 106,031 |
pythondev | help | ;-) | 2017-12-27T10:44:55.000058 | Suellen | pythondev_help_Suellen_2017-12-27T10:44:55.000058 | 1,514,371,495.000058 | 106,032 |
pythondev | help | :coffee: | 2017-12-27T10:45:04.000318 | Ciera | pythondev_help_Ciera_2017-12-27T10:45:04.000318 | 1,514,371,504.000318 | 106,033 |
pythondev | help | Why do you think he used dictionary notation `list({})` | 2017-12-27T10:48:57.000352 | Glinda | pythondev_help_Glinda_2017-12-27T10:48:57.000352 | 1,514,371,737.000352 | 106,034 |
pythondev | help | You can use the "+" button to the left of the text/message field and then select "Code or text snippet" when posting code blocks. Makes it much more readable. :slightly_smiling_face: | 2017-12-27T11:40:11.000176 | Deedee | pythondev_help_Deedee_2017-12-27T11:40:11.000176 | 1,514,374,811.000176 | 106,035 |
pythondev | help | I use IntelliJ Idea at work -- but oddly enough I don't use the Python plugin (which is essentially PyCharm) for Python development. I tend to use Jupyter lab a lot lately -- also IPython and SublimeText. But PyCharm is quite good. | 2017-12-27T11:57:49.000239 | Phung | pythondev_help_Phung_2017-12-27T11:57:49.000239 | 1,514,375,869.000239 | 106,036 |
pythondev | help | yep. IDLE should be used as an absolute last resort | 2017-12-27T11:58:17.000327 | Meg | pythondev_help_Meg_2017-12-27T11:58:17.000327 | 1,514,375,897.000327 | 106,037 |
pythondev | help | I've used IDLE before when I was testing things out on RPi. :confused: | 2017-12-27T12:08:03.000300 | Glinda | pythondev_help_Glinda_2017-12-27T12:08:03.000300 | 1,514,376,483.0003 | 106,038 |
pythondev | help | It's really not fun. | 2017-12-27T12:08:15.000387 | Glinda | pythondev_help_Glinda_2017-12-27T12:08:15.000387 | 1,514,376,495.000387 | 106,039 |
pythondev | help | "cat" -> Unix -> Linux -> Linus -> git. I get it now! :slightly_smiling_face: | 2017-12-27T13:55:53.000298 | Phung | pythondev_help_Phung_2017-12-27T13:55:53.000298 | 1,514,382,953.000298 | 106,040 |
pythondev | help | Yes, if you do: | 2017-12-27T13:56:37.000293 | Phung | pythondev_help_Phung_2017-12-27T13:56:37.000293 | 1,514,382,997.000293 | 106,041 |
pythondev | help | list = something | 2017-12-27T13:56:46.000036 | Phung | pythondev_help_Phung_2017-12-27T13:56:46.000036 | 1,514,383,006.000036 | 106,042 |
pythondev | help | You could end up listless | 2017-12-27T13:56:51.000146 | Phung | pythondev_help_Phung_2017-12-27T13:56:51.000146 | 1,514,383,011.000146 | 106,043 |
pythondev | help | <@Glinda> point noted from next time I'll be little careful with variable names | 2017-12-27T14:57:44.000084 | Bette | pythondev_help_Bette_2017-12-27T14:57:44.000084 | 1,514,386,664.000084 | 106,044 |
pythondev | help | Hello Guyz, I need help to convert flat list of paths to dictionary | 2017-12-28T01:15:08.000038 | Criselda | pythondev_help_Criselda_2017-12-28T01:15:08.000038 | 1,514,423,708.000038 | 106,045 |
pythondev | help | input = [('/config/db', ''), ('/config/db/0.0.0.0', ''), ('/config/db/0.0.0.0/ip', '0.0.0.0'), ('/config/db/0.0.0.0/port', '3333'), ('/config/db/1.1.1.1', ''), ('/config/db/1.1.1.1/ip', '1.1.1.1'), ('/config/db/1.1.1.1/port', '3333')]
output = {"db":{"0.0.0.0":{"ip": "0.0.0.0", "port":"3333"}, "1.1.1.1":{"ip":"1.1.1.1"... | 2017-12-28T01:15:18.000153 | Criselda | pythondev_help_Criselda_2017-12-28T01:15:18.000153 | 1,514,423,718.000153 | 106,046 |
pythondev | help | I have following logic which creates dictionary but not able to place value in ti | 2017-12-28T01:19:47.000004 | Criselda | pythondev_help_Criselda_2017-12-28T01:19:47.000004 | 1,514,423,987.000004 | 106,047 |
pythondev | help | paths_list = []
for k, v in input:
paths_list.append(k)
def fun(group, items, path):
sep = lambda i:i.split('/', 1)
head = [i for i in items if len(sep(i))==2]
tail = [i for i in items if len(sep(i))==1]
gv = groupby(sorted(head), lambda i:sep(i)[0])
return group, dict([(i, path+i) for i in tai... | 2017-12-28T01:19:50.000155 | Criselda | pythondev_help_Criselda_2017-12-28T01:19:50.000155 | 1,514,423,990.000155 | 106,048 |
pythondev | help | Hey bud, if you could use code formatting. | 2017-12-28T01:20:47.000020 | Glinda | pythondev_help_Glinda_2017-12-28T01:20:47.000020 | 1,514,424,047.00002 | 106,049 |
pythondev | help | ```input = [('/config/db', ''),
('/config/db/0.0.0.0', ''),
('/config/db/0.0.0.0/ip', '0.0.0.0'),
('/config/db/0.0.0.0/port', '3333'),
('/config/db/1.1.1.1', ''),
('/config/db/1.1.1.1/ip', '1.1.1.1'),
('/config/db/1.1.1.1/port', '3333')]
output = {"db":{"0.0.0.0":{
... | 2017-12-28T01:20:50.000138 | Glinda | pythondev_help_Glinda_2017-12-28T01:20:50.000138 | 1,514,424,050.000138 | 106,050 |
pythondev | help | Another thing, your function `fun` is doing way too much. This looks like you got the code from somewhere or are combining lots of code and are unsure of how it's working. Take it one step at a time and find out what is actually happening. | 2017-12-28T01:29:27.000179 | Glinda | pythondev_help_Glinda_2017-12-28T01:29:27.000179 | 1,514,424,567.000179 | 106,051 |
pythondev | help | For instance, it looks like you're using ` sep = lambda i:i.split('/', 1)` to check if there's a `/` in the string. This can be accomplished in a more pythonic sense with `'/' in '/config/db/0.0.0.0'` which equals `True` and `'/' in '333'` which equals `False` | 2017-12-28T01:38:15.000081 | Glinda | pythondev_help_Glinda_2017-12-28T01:38:15.000081 | 1,514,425,095.000081 | 106,052 |
pythondev | help | Pycharm/Vim | 2017-12-28T02:31:16.000019 | Wade | pythondev_help_Wade_2017-12-28T02:31:16.000019 | 1,514,428,276.000019 | 106,053 |
pythondev | help | My colleagues freak out if they have to look at code with vim :joy: | 2017-12-28T02:32:38.000077 | Wade | pythondev_help_Wade_2017-12-28T02:32:38.000077 | 1,514,428,358.000077 | 106,054 |
pythondev | help | :heart: vim | 2017-12-28T10:40:45.000240 | Glinda | pythondev_help_Glinda_2017-12-28T10:40:45.000240 | 1,514,457,645.00024 | 106,055 |
pythondev | help | vim is pretty good, albeit with a steep learning curve | 2017-12-28T10:45:59.000047 | Meg | pythondev_help_Meg_2017-12-28T10:45:59.000047 | 1,514,457,959.000047 | 106,056 |
pythondev | help | same with emacs | 2017-12-28T10:46:02.000188 | Meg | pythondev_help_Meg_2017-12-28T10:46:02.000188 | 1,514,457,962.000188 | 106,057 |
pythondev | help | but I tend to use it alot when looking at stuff on the server | 2017-12-28T10:46:14.000421 | Meg | pythondev_help_Meg_2017-12-28T10:46:14.000421 | 1,514,457,974.000421 | 106,058 |
pythondev | help | Anyone have experience with 3D plots in Matplotlib and able to help me figure out how to make a 3D animated plot? | 2017-12-28T11:36:32.000459 | Lakeesha | pythondev_help_Lakeesha_2017-12-28T11:36:32.000459 | 1,514,460,992.000459 | 106,059 |
pythondev | help | <@Criselda> You can do this a couple of ways:
1) For long code samples, where numbered lines might help w/ communication, click the "+" button to the left of the message box and select "Code or text snippet".
2) For shorter code blocks, like the one <@Glinda> made, close the code in triple ticks | 2017-12-28T12:16:11.000255 | Deedee | pythondev_help_Deedee_2017-12-28T12:16:11.000255 | 1,514,463,371.000255 | 106,060 |
pythondev | help | Is there a way to prevent `*.egg-info` directories from installing when running `pip install -r ~/foobar/requirements.txt --no-compile --no-binary=:all: --isolated -t ~/foobar/vendor`? Context: trying to setup an environment meant to be containered and not updated thereafter | 2017-12-28T12:21:03.000226 | Dorothy | pythondev_help_Dorothy_2017-12-28T12:21:03.000226 | 1,514,463,663.000226 | 106,061 |
pythondev | help | Hi. I have a tool called ezored (<http://ezored.com|ezored.com>) that use dependencies (another git repository fo example) and call inside each dependency a file "build.py" using subprocess. It is working perfect, but have some limitations. All data that i need make build.py see, i need pass it as an environment variab... | 2017-12-28T12:42:18.000253 | Johnsie | pythondev_help_Johnsie_2017-12-28T12:42:18.000253 | 1,514,464,938.000253 | 106,062 |
pythondev | help | How to find the lowest IP value in a dict where the dict looks like:
```{'172.18.7.70': 'none', '172.18.4.5': 'none', '172.18.15.159': 'none', '172.18.12.176': 'none'}``` | 2017-12-28T14:42:44.000119 | Stacy | pythondev_help_Stacy_2017-12-28T14:42:44.000119 | 1,514,472,164.000119 | 106,063 |
pythondev | help | the IP module probably has some tool for that | 2017-12-28T14:43:48.000183 | Ciera | pythondev_help_Ciera_2017-12-28T14:43:48.000183 | 1,514,472,228.000183 | 106,064 |
pythondev | help | Nice | 2017-12-28T14:48:55.000146 | Stacy | pythondev_help_Stacy_2017-12-28T14:48:55.000146 | 1,514,472,535.000146 | 106,065 |
pythondev | help | <@Stacy> I think you need convert the IP to number first:
```
import socket, struct
def ip2long(ip):
"""
Convert an IP string to long
"""
packedIP = socket.inet_aton(ip)
return struct.unpack("!L", packedIP)[0]
``` | 2017-12-28T14:51:44.000011 | Johnsie | pythondev_help_Johnsie_2017-12-28T14:51:44.000011 | 1,514,472,704.000011 | 106,066 |
pythondev | help | <@Stacy> here's an even simpler method:
```>>> import ipaddress
>>> int(ipaddress.ip_address('192.168.0.1'))
3232235521
>>> int(ipaddress.ip_address('192.168.0.2'))
3232235522``` | 2017-12-28T15:05:22.000224 | Glinda | pythondev_help_Glinda_2017-12-28T15:05:22.000224 | 1,514,473,522.000224 | 106,067 |
pythondev | help | and to get it back: ```>>> ipaddress.ip_address(3232235522)
IPv4Address('192.168.0.2')``` | 2017-12-28T15:07:15.000070 | Glinda | pythondev_help_Glinda_2017-12-28T15:07:15.000070 | 1,514,473,635.00007 | 106,068 |
pythondev | help | `{'.'.join(['{0:0>3}'.format(v) for v in ip.split('.')]):data for ip, data in d.iteritems()}` | 2017-12-28T15:09:02.000098 | Dorothy | pythondev_help_Dorothy_2017-12-28T15:09:02.000098 | 1,514,473,742.000098 | 106,069 |
pythondev | help | ```
hoststatus = {'172.18.7.70': 'none', '172.18.4.5': 'none', '172.18.15.159': 'none', '172.18.12.176': 'none'}
for k,v in hoststatus.iteritems():
addr.append(ipaddress.ip_address(k.decode('utf-8')))
print min(addr)```
returns 172.18.4.5 | 2017-12-28T15:13:58.000036 | Stacy | pythondev_help_Stacy_2017-12-28T15:13:58.000036 | 1,514,474,038.000036 | 106,070 |
pythondev | help | Worked with the ipaddress | 2017-12-28T15:14:04.000131 | Stacy | pythondev_help_Stacy_2017-12-28T15:14:04.000131 | 1,514,474,044.000131 | 106,071 |
pythondev | help | Here's another fun method:
```data = {'172.18.7.70': 'none', '172.18.4.5': 'none', '172.18.15.159': 'none', '172.18.12.176': 'none'}
min(data.keys(), key = lambda t: ipaddress.ip_address(t))``` | 2017-12-28T15:22:17.000073 | Glinda | pythondev_help_Glinda_2017-12-28T15:22:17.000073 | 1,514,474,537.000073 | 106,072 |
pythondev | help | Thanks <@Glinda> <@Johnsie> and <@Ciera> | 2017-12-28T15:31:22.000158 | Stacy | pythondev_help_Stacy_2017-12-28T15:31:22.000158 | 1,514,475,082.000158 | 106,073 |
pythondev | help | And about my problem? Anyone can help me? | 2017-12-28T16:08:12.000086 | Johnsie | pythondev_help_Johnsie_2017-12-28T16:08:12.000086 | 1,514,477,292.000086 | 106,074 |
pythondev | help | Hello | 2017-12-28T16:36:04.000178 | Christin | pythondev_help_Christin_2017-12-28T16:36:04.000178 | 1,514,478,964.000178 | 106,075 |
pythondev | help | Anyone with AWS Experience? | 2017-12-28T16:36:10.000175 | Christin | pythondev_help_Christin_2017-12-28T16:36:10.000175 | 1,514,478,970.000175 | 106,076 |
pythondev | help | <@Christin> Some of the guys in <#C22DMH61M|devops> might be able to help, but then again they just may point you back to this channel for questions :upside_down_face: | 2017-12-28T16:50:12.000158 | Myong | pythondev_help_Myong_2017-12-28T16:50:12.000158 | 1,514,479,812.000158 | 106,077 |
pythondev | help | i am trying to get python to enter input into the cmd after i run a command is that possible? | 2017-12-28T16:55:25.000156 | Lilliam | pythondev_help_Lilliam_2017-12-28T16:55:25.000156 | 1,514,480,125.000156 | 106,078 |
pythondev | help | Thanks, its more of a deployment issue | 2017-12-28T16:57:09.000123 | Christin | pythondev_help_Christin_2017-12-28T16:57:09.000123 | 1,514,480,229.000123 | 106,079 |
pythondev | help | <@Lilliam>can you give an example? | 2017-12-28T17:00:01.000024 | Myong | pythondev_help_Myong_2017-12-28T17:00:01.000024 | 1,514,480,401.000024 | 106,080 |
pythondev | help | Like you're trying to run a command on the console from within python? | 2017-12-28T17:00:20.000155 | Myong | pythondev_help_Myong_2017-12-28T17:00:20.000155 | 1,514,480,420.000155 | 106,081 |
pythondev | help | yes this cmd runas /user:Administrator cmd and after that it ask for input which i want python to do that for me | 2017-12-28T17:04:11.000241 | Lilliam | pythondev_help_Lilliam_2017-12-28T17:04:11.000241 | 1,514,480,651.000241 | 106,082 |
pythondev | help | <@Myong> | 2017-12-28T17:32:10.000240 | Lilliam | pythondev_help_Lilliam_2017-12-28T17:32:10.000240 | 1,514,482,330.00024 | 106,083 |
pythondev | help | So you're on windows I imagine and attempting to run a command as administrator | 2017-12-28T17:36:15.000078 | Myong | pythondev_help_Myong_2017-12-28T17:36:15.000078 | 1,514,482,575.000078 | 106,084 |
pythondev | help | yes | 2017-12-28T17:38:11.000251 | Lilliam | pythondev_help_Lilliam_2017-12-28T17:38:11.000251 | 1,514,482,691.000251 | 106,085 |
pythondev | help | is it possible | 2017-12-28T18:15:31.000152 | Lilliam | pythondev_help_Lilliam_2017-12-28T18:15:31.000152 | 1,514,484,931.000152 | 106,086 |
pythondev | help | Hi, can anyone help me with s strange problem?
<https://travis-ci.org/ezored/ezored/jobs/322719711>
On test log, i print:
```
Current data:
['flag']
['flag']
```
That is the lines:
```
new_target_data.c_flags.extend(['flag'])
print('Current data:')
print(target_data.c_flags)
print(new_target_data.c_flags)
```
Th... | 2017-12-28T18:58:05.000145 | Johnsie | pythondev_help_Johnsie_2017-12-28T18:58:05.000145 | 1,514,487,485.000145 | 106,087 |
pythondev | help | I'm looking at your code, and it looks like you're defining `c_flags` inside the class `TargetData` but not inside the the `__init__` for the class so it's a class and not an instance variable? | 2017-12-28T19:18:47.000160 | Glinda | pythondev_help_Glinda_2017-12-28T19:18:47.000160 | 1,514,488,727.00016 | 106,088 |
pythondev | help | but i need initiate it inside __init__ ? | 2017-12-28T19:24:49.000004 | Johnsie | pythondev_help_Johnsie_2017-12-28T19:24:49.000004 | 1,514,489,089.000004 | 106,089 |
pythondev | help | I'm not sure one sec. | 2017-12-28T19:27:57.000056 | Glinda | pythondev_help_Glinda_2017-12-28T19:27:57.000056 | 1,514,489,277.000056 | 106,090 |
pythondev | help | ok | 2017-12-28T19:28:32.000142 | Johnsie | pythondev_help_Johnsie_2017-12-28T19:28:32.000142 | 1,514,489,312.000142 | 106,091 |
pythondev | help | Yeah that's the case it looks like | 2017-12-28T19:30:27.000021 | Glinda | pythondev_help_Glinda_2017-12-28T19:30:27.000021 | 1,514,489,427.000021 | 106,092 |
pythondev | help | <https://repl.it/repls/CoarseFamousPitbull> | 2017-12-28T19:30:27.000140 | Glinda | pythondev_help_Glinda_2017-12-28T19:30:27.000140 | 1,514,489,427.00014 | 106,093 |
pythondev | help | See how `first.variable` and `second.variable` have the same memory value prior to changing? | 2017-12-28T19:30:58.000124 | Glinda | pythondev_help_Glinda_2017-12-28T19:30:58.000124 | 1,514,489,458.000124 | 106,094 |
pythondev | help | But `first` and `second` have different memory values? | 2017-12-28T19:31:13.000112 | Glinda | pythondev_help_Glinda_2017-12-28T19:31:13.000112 | 1,514,489,473.000112 | 106,095 |
pythondev | help | yes | 2017-12-28T19:33:24.000061 | Johnsie | pythondev_help_Johnsie_2017-12-28T19:33:24.000061 | 1,514,489,604.000061 | 106,096 |
pythondev | help | but im reading another thing that help too | 2017-12-28T19:33:32.000022 | Johnsie | pythondev_help_Johnsie_2017-12-28T19:33:32.000022 | 1,514,489,612.000022 | 106,097 |
pythondev | help | you are correct | 2017-12-28T19:33:34.000154 | Johnsie | pythondev_help_Johnsie_2017-12-28T19:33:34.000154 | 1,514,489,614.000154 | 106,098 |
pythondev | help | but the rule is only for dict/list | 2017-12-28T19:33:41.000103 | Johnsie | pythondev_help_Johnsie_2017-12-28T19:33:41.000103 | 1,514,489,621.000103 | 106,099 |
pythondev | help | see | 2017-12-28T19:33:50.000078 | Johnsie | pythondev_help_Johnsie_2017-12-28T19:33:50.000078 | 1,514,489,630.000078 | 106,100 |
pythondev | help | <https://repl.it/repls/GainsboroClutteredXiphiasgladius> | 2017-12-28T19:33:51.000095 | Johnsie | pythondev_help_Johnsie_2017-12-28T19:33:51.000095 | 1,514,489,631.000095 | 106,101 |
pythondev | help | Yeah at first I tried setting it equal to 2 | 2017-12-28T19:34:01.000027 | Glinda | pythondev_help_Glinda_2017-12-28T19:34:01.000027 | 1,514,489,641.000027 | 106,102 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.