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 | and in `google-api-python-client ` library
and when multiple calls using single connection is done, it's failing with SSL errors intermittently | 2017-10-04T07:37:56.000241 | Florene | pythondev_help_Florene_2017-10-04T07:37:56.000241 | 1,507,102,676.000241 | 95,603 |
pythondev | help | <@Meg>
following is the stack for google- issue
```
File "/usr/lib/python2.7/dist-packages/oauth2client/util.py", line 137, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/googleapiclient/http.py", line 722, in execute
body=self.body, headers=self.headers)
File "/usr/lib/python2.7/dist-packages/oauth2client/client.py", line 622, in new_request
redirections, connection_type)
File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1607, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1349, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1332, in _conn_request
content = response.read()
File "/usr/lib/python2.7/httplib.py", line 593, in read
s = self.fp.read()
File "/usr/lib/python2.7/httplib.py", line 1414, in read
return s + self._file.read()
File "/usr/lib/python2.7/socket.py", line 355, in read
data = self._sock.recv(rbufsize)
File "/usr/lib/python2.7/ssl.py", line 756, in recv
return self.read(buflen)
File "/usr/lib/python2.7/ssl.py", line 643, in read
v = self._sslobj.read(len)
SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1754)
``` | 2017-10-04T07:39:13.000383 | Florene | pythondev_help_Florene_2017-10-04T07:39:13.000383 | 1,507,102,753.000383 | 95,604 |
pythondev | help | so you’re using a connection pool with boto3 to fire off multiple calls? | 2017-10-04T07:46:20.000271 | Meg | pythondev_help_Meg_2017-10-04T07:46:20.000271 | 1,507,103,180.000271 | 95,605 |
pythondev | help | boto3 is already using a connection pool | 2017-10-04T07:46:38.000276 | Meg | pythondev_help_Meg_2017-10-04T07:46:38.000276 | 1,507,103,198.000276 | 95,606 |
pythondev | help | <@Meg>: this is how my code creates conn:
```
self.ec2 = boto3.resource("ec2", region_name=region,
aws_access_key_id=accesskey,
aws_secret_access_key=secretkey)
sts = boto3.client("sts", aws_access_key_id=accesskey,
aws_secret_access_key=secretkey)
``` | 2017-10-04T08:49:27.000295 | Florene | pythondev_help_Florene_2017-10-04T08:49:27.000295 | 1,507,106,967.000295 | 95,607 |
pythondev | help | <@Meg>: i have added few msgs in _/usr/lib/python2.7/dist-packages/boto3/resources/factory.py_
and the issue is coming from
```
def _create_autoload_property(factory_self, name, snake_cased,
...
...
*return self.meta.data.get(name)*
...
```
and the exception coming because self.meta.data is None & error string is : `'NoneType' object has no attribute 'get'` | 2017-10-04T09:38:49.000039 | Florene | pythondev_help_Florene_2017-10-04T09:38:49.000039 | 1,507,109,929.000039 | 95,608 |
pythondev | help | Sounds like a good case for a bug report on the boto3 github issue tracker | 2017-10-04T10:17:31.000502 | Meg | pythondev_help_Meg_2017-10-04T10:17:31.000502 | 1,507,112,251.000502 | 95,609 |
pythondev | help | <@Meg>: are we sure ?
Where should i file it ?
But its causing failures in my code :disappointed: | 2017-10-04T10:43:18.000095 | Florene | pythondev_help_Florene_2017-10-04T10:43:18.000095 | 1,507,113,798.000095 | 95,610 |
pythondev | help | Boto3 github | 2017-10-04T10:44:01.000360 | Meg | pythondev_help_Meg_2017-10-04T10:44:01.000360 | 1,507,113,841.00036 | 95,611 |
pythondev | help | If nothing else, you might get some pointers | 2017-10-04T10:44:18.000447 | Meg | pythondev_help_Meg_2017-10-04T10:44:18.000447 | 1,507,113,858.000447 | 95,612 |
pythondev | help | <@Meg> Okay, Thanks..! | 2017-10-04T11:19:08.000307 | Florene | pythondev_help_Florene_2017-10-04T11:19:08.000307 | 1,507,115,948.000307 | 95,613 |
pythondev | help | <@Meg> Do you have any idea about Google-Cloud problem i'm facing ?
It seems that it's causing because of the library being not-thread-safe
Correct me if i'm wrong. | 2017-10-04T11:22:50.000239 | Florene | pythondev_help_Florene_2017-10-04T11:22:50.000239 | 1,507,116,170.000239 | 95,614 |
pythondev | help | nope, sorry | 2017-10-04T11:23:00.000577 | Meg | pythondev_help_Meg_2017-10-04T11:23:00.000577 | 1,507,116,180.000577 | 95,615 |
pythondev | help | don’t use google cloud at all, its all digital ocean or aws for me | 2017-10-04T11:23:16.000265 | Meg | pythondev_help_Meg_2017-10-04T11:23:16.000265 | 1,507,116,196.000265 | 95,616 |
pythondev | help | oh Ok :smile: | 2017-10-04T11:26:06.000365 | Florene | pythondev_help_Florene_2017-10-04T11:26:06.000365 | 1,507,116,366.000365 | 95,617 |
pythondev | help | but sad to know that the problem of boto3 is causing problems at my side & i am not able to bypass or workaround that..
kinda stops my work.. | 2017-10-04T11:27:09.000436 | Florene | pythondev_help_Florene_2017-10-04T11:27:09.000436 | 1,507,116,429.000436 | 95,618 |
pythondev | help | <@Florene> Are you sharing a single boto3 resource across threads? The docs say not to do that: <http://boto3.readthedocs.io/en/latest/guide/resources.html#multithreading-multiprocessing> | 2017-10-04T11:32:33.000653 | Mallie | pythondev_help_Mallie_2017-10-04T11:32:33.000653 | 1,507,116,753.000653 | 95,619 |
pythondev | help | <@Mallie>: actually i have a single python module & the module init will have a connection aws-resources using boto3 & the same connection variable is used by all the operations
and the problem is occurring when i trigger multiple snapshots, wherein the single client-connection would be used to perform multiple operations.. | 2017-10-04T11:34:03.000530 | Florene | pythondev_help_Florene_2017-10-04T11:34:03.000530 | 1,507,116,843.00053 | 95,620 |
pythondev | help | <@Florene> Yeah I mean I had to read an issue or two and google for a few min (they should be clearer about this) but I think it definitely isn't thread safe, so if you are using the same connection, it's not going to work out for you | 2017-10-04T11:36:21.000656 | Mallie | pythondev_help_Mallie_2017-10-04T11:36:21.000656 | 1,507,116,981.000656 | 95,621 |
pythondev | help | Comment in github that Resource should be made thread safe (opinion) is from 2016 and is still open | 2017-10-04T11:36:39.000193 | Mallie | pythondev_help_Mallie_2017-10-04T11:36:39.000193 | 1,507,116,999.000193 | 95,622 |
pythondev | help | ohh
you're telling this for google api library ? | 2017-10-04T11:38:03.000222 | Florene | pythondev_help_Florene_2017-10-04T11:38:03.000222 | 1,507,117,083.000222 | 95,623 |
pythondev | help | no | 2017-10-04T11:38:08.000573 | Meg | pythondev_help_Meg_2017-10-04T11:38:08.000573 | 1,507,117,088.000573 | 95,624 |
pythondev | help | boto3 | 2017-10-04T11:38:10.000042 | Meg | pythondev_help_Meg_2017-10-04T11:38:10.000042 | 1,507,117,090.000042 | 95,625 |
pythondev | help | oh
this is how i create connection in my code:
```
self.ec2 = boto3.resource("ec2", region_name=region,
aws_access_key_id=accesskey,
aws_secret_access_key=secretkey)
sts = boto3.client("sts", aws_access_key_id=accesskey,
aws_secret_access_key=secretkey)
``` | 2017-10-04T11:38:24.000105 | Florene | pythondev_help_Florene_2017-10-04T11:38:24.000105 | 1,507,117,104.000105 | 95,626 |
pythondev | help | this is nothing to do with google api | 2017-10-04T11:38:25.000413 | Meg | pythondev_help_Meg_2017-10-04T11:38:25.000413 | 1,507,117,105.000413 | 95,627 |
pythondev | help | its all how you’re using boto3 | 2017-10-04T11:38:32.000400 | Meg | pythondev_help_Meg_2017-10-04T11:38:32.000400 | 1,507,117,112.0004 | 95,628 |
pythondev | help | and i use self.ec2 at all places wherever and whenever needed | 2017-10-04T11:38:37.000268 | Florene | pythondev_help_Florene_2017-10-04T11:38:37.000268 | 1,507,117,117.000268 | 95,629 |
pythondev | help | <@Mallie> Could you check whether what you've mentioned as not to be used is same as how i'm using/doing it | 2017-10-04T11:39:44.000596 | Florene | pythondev_help_Florene_2017-10-04T11:39:44.000596 | 1,507,117,184.000596 | 95,630 |
pythondev | help | all you’re showing there is how your instanciating the connection | 2017-10-04T11:40:06.000568 | Meg | pythondev_help_Meg_2017-10-04T11:40:06.000568 | 1,507,117,206.000568 | 95,631 |
pythondev | help | not how you’re using it | 2017-10-04T11:40:09.000304 | Meg | pythondev_help_Meg_2017-10-04T11:40:09.000304 | 1,507,117,209.000304 | 95,632 |
pythondev | help | Like <@Meg> said we aren't looking at that code, we are responding to
> when i fire multi-threaded calls using boto3
> i'm getting boto3 error | 2017-10-04T11:40:43.000395 | Mallie | pythondev_help_Mallie_2017-10-04T11:40:43.000395 | 1,507,117,243.000395 | 95,633 |
pythondev | help | And
> i have a single python module & the module init will have a connection aws-resources using boto3 & the same connection variable is used by all the operations | 2017-10-04T11:41:03.000373 | Mallie | pythondev_help_Mallie_2017-10-04T11:41:03.000373 | 1,507,117,263.000373 | 95,634 |
pythondev | help | It is _not_ thread safe, you need to initialize your resource in each thread if you want to do multi-threaded stuff | 2017-10-04T11:41:57.000347 | Mallie | pythondev_help_Mallie_2017-10-04T11:41:57.000347 | 1,507,117,317.000347 | 95,635 |
pythondev | help | :point_up: | 2017-10-04T11:42:06.000210 | Meg | pythondev_help_Meg_2017-10-04T11:42:06.000210 | 1,507,117,326.00021 | 95,636 |
pythondev | help | oh okay...
yeah
thats what the link says | 2017-10-04T11:43:57.000111 | Florene | pythondev_help_Florene_2017-10-04T11:43:57.000111 | 1,507,117,437.000111 | 95,637 |
pythondev | help | and i think the problem is same for google-problem as well | 2017-10-04T11:44:25.000053 | Florene | pythondev_help_Florene_2017-10-04T11:44:25.000053 | 1,507,117,465.000053 | 95,638 |
pythondev | help | it seems because of multi-threading only :disappointed: | 2017-10-04T11:44:35.000686 | Florene | pythondev_help_Florene_2017-10-04T11:44:35.000686 | 1,507,117,475.000686 | 95,639 |
pythondev | help | i use same connection for multiple operatoins.. | 2017-10-04T11:44:43.000715 | Florene | pythondev_help_Florene_2017-10-04T11:44:43.000715 | 1,507,117,483.000715 | 95,640 |
pythondev | help | <@Mallie>: could you please provide the issue id for thread-safe issue mention? | 2017-10-04T11:48:03.000592 | Florene | pythondev_help_Florene_2017-10-04T11:48:03.000592 | 1,507,117,683.000592 | 95,641 |
pythondev | help | Yeah sure: <https://github.com/boto/boto3/issues/268> | 2017-10-04T11:49:20.000091 | Mallie | pythondev_help_Mallie_2017-10-04T11:49:20.000091 | 1,507,117,760.000091 | 95,642 |
pythondev | help | They also mention in their docs for multithreading to create a new resource instance for each thread or process: <https://boto3.readthedocs.io/en/latest/guide/resources.html#multithreading-multiprocessing> e: beaten by <@Mallie> a bit ago :slightly_smiling_face: | 2017-10-04T11:50:16.000136 | Patty | pythondev_help_Patty_2017-10-04T11:50:16.000136 | 1,507,117,816.000136 | 95,643 |
pythondev | help | thank you so much <@Mallie> <@Patty>
let me know if you think the same for google-library, thanks a ton _in advance_ .. | 2017-10-04T11:51:21.000747 | Florene | pythondev_help_Florene_2017-10-04T11:51:21.000747 | 1,507,117,881.000747 | 95,644 |
pythondev | help | uh, what? this applies to the code, not deployment environment | 2017-10-04T11:52:29.000328 | Meg | pythondev_help_Meg_2017-10-04T11:52:29.000328 | 1,507,117,949.000328 | 95,645 |
pythondev | help | <@Meg>: didn't get you, sorry | 2017-10-04T11:54:09.000209 | Florene | pythondev_help_Florene_2017-10-04T11:54:09.000209 | 1,507,118,049.000209 | 95,646 |
pythondev | help | google-library? | 2017-10-04T11:55:43.000380 | Meg | pythondev_help_Meg_2017-10-04T11:55:43.000380 | 1,507,118,143.00038 | 95,647 |
pythondev | help | >let me know if you think the same for google-library, thanks a ton _in advance_ .. | 2017-10-04T11:55:58.000672 | Meg | pythondev_help_Meg_2017-10-04T11:55:58.000672 | 1,507,118,158.000672 | 95,648 |
pythondev | help | i meant - i faces few problems on using `google-api-python-client` library & i think, the problems that i'm facing is because of the library not being thread-safe
so wanted your thoughts/confirmation on that one... | 2017-10-04T11:57:50.000837 | Florene | pythondev_help_Florene_2017-10-04T11:57:50.000837 | 1,507,118,270.000837 | 95,649 |
pythondev | help | the problem i mentioned above, with stack
let me know if you are not able to find that | 2017-10-04T11:58:28.000735 | Florene | pythondev_help_Florene_2017-10-04T11:58:28.000735 | 1,507,118,308.000735 | 95,650 |
pythondev | help | <@Florene> <https://developers.google.com/api-client-library/python/guide/thread_safety> | 2017-10-04T12:04:49.000252 | Patty | pythondev_help_Patty_2017-10-04T12:04:49.000252 | 1,507,118,689.000252 | 95,651 |
pythondev | help | yeah
<@Patty> even now - i just found the same
(y) | 2017-10-04T12:05:29.000736 | Florene | pythondev_help_Florene_2017-10-04T12:05:29.000736 | 1,507,118,729.000736 | 95,652 |
pythondev | help | Need to check what extra handling would be needed to make it thread-safe for my usage.. | 2017-10-04T12:06:39.000702 | Florene | pythondev_help_Florene_2017-10-04T12:06:39.000702 | 1,507,118,799.000702 | 95,653 |
pythondev | help | It won’t be thread-safe given the library it’s built on. Every request will need to have a new httplib2 object | 2017-10-04T12:09:43.000158 | Patty | pythondev_help_Patty_2017-10-04T12:09:43.000158 | 1,507,118,983.000158 | 95,654 |
pythondev | help | > Need to check what extra handling would be needed to make it thread-safe for my usage..
Don't, that is the wrong path here. | 2017-10-04T12:10:19.000029 | Mallie | pythondev_help_Mallie_2017-10-04T12:10:19.000029 | 1,507,119,019.000029 | 95,655 |
pythondev | help | Those are not easy problems, you should adjust your program to use the library within the restriction of not being thread safe. | 2017-10-04T12:10:42.000546 | Mallie | pythondev_help_Mallie_2017-10-04T12:10:42.000546 | 1,507,119,042.000546 | 95,656 |
pythondev | help | oh
should i not try to handle the issue ?
i mean - say - i have multiple requests coming in & then i should serve as much requests as possible
and to achieve what i was thinking was to create session/connection whenever the request comes up & processing would happen differently for each requests and each of them will have their own session/connection, right ? | 2017-10-04T12:13:43.000088 | Florene | pythondev_help_Florene_2017-10-04T12:13:43.000088 | 1,507,119,223.000088 | 95,657 |
pythondev | help | basically, if you are using modules that aren’t thread safe, then do not multithread or process them | 2017-10-04T12:14:45.000315 | Patty | pythondev_help_Patty_2017-10-04T12:14:45.000315 | 1,507,119,285.000315 | 95,658 |
pythondev | help | ok.
but that also means - the request serving would be serial & nothing can happen in parallel, right ? | 2017-10-04T12:16:03.000019 | Florene | pythondev_help_Florene_2017-10-04T12:16:03.000019 | 1,507,119,363.000019 | 95,659 |
pythondev | help | What <@Patty> is saying is don't use the _modules_ incorrectly. You are free to create multithreaded code, but don't use non-threadsafe components across threads. | 2017-10-04T12:18:04.000505 | Mallie | pythondev_help_Mallie_2017-10-04T12:18:04.000505 | 1,507,119,484.000505 | 95,660 |
pythondev | help | Just create a new boto3 resource for each thread if that is what you want to do | 2017-10-04T12:18:37.000029 | Mallie | pythondev_help_Mallie_2017-10-04T12:18:37.000029 | 1,507,119,517.000029 | 95,661 |
pythondev | help | okay..
got it... | 2017-10-04T12:19:02.000144 | Florene | pythondev_help_Florene_2017-10-04T12:19:02.000144 | 1,507,119,542.000144 | 95,662 |
pythondev | help | Tnx | 2017-10-04T12:19:14.000658 | Florene | pythondev_help_Florene_2017-10-04T12:19:14.000658 | 1,507,119,554.000658 | 95,663 |
pythondev | help | Anyone know who knows how can I limit these circles? | 2017-10-04T12:31:21.000127 | Christin | pythondev_help_Christin_2017-10-04T12:31:21.000127 | 1,507,120,281.000127 | 95,664 |
pythondev | help | I just want the third one that kind of separates the black dots and green dots (Matplotlib) | 2017-10-04T12:31:57.000175 | Christin | pythondev_help_Christin_2017-10-04T12:31:57.000175 | 1,507,120,317.000175 | 95,665 |
pythondev | help | I'm using `Atom` and trying to do a "Find in Project". Some searches do return results and some (which are in my project for sure) do not return results. I've disabled `Exclude VCS Ignored Paths`. I'm on Windows 7 and the newest `Atom`. Has anyone ever run across this? | 2017-10-04T12:45:00.000061 | Dominick | pythondev_help_Dominick_2017-10-04T12:45:00.000061 | 1,507,121,100.000061 | 95,666 |
pythondev | help | Actually it's whatever :slightly_smiling_face:. I just found out about `grepWin` - it's super useful and free. | 2017-10-04T12:50:12.000235 | Dominick | pythondev_help_Dominick_2017-10-04T12:50:12.000235 | 1,507,121,412.000235 | 95,667 |
pythondev | help | <@Dominick> any chance these files are in .gitignore or something like that? | 2017-10-04T12:56:16.000293 | Junita | pythondev_help_Junita_2017-10-04T12:56:16.000293 | 1,507,121,776.000293 | 95,668 |
pythondev | help | <@Junita> nope - plus I think that's what disabling `Exclude VCS Ignored Paths` does...causes it to look in every folder even if its in `.gitignore` | 2017-10-04T12:56:49.000722 | Dominick | pythondev_help_Dominick_2017-10-04T12:56:49.000722 | 1,507,121,809.000722 | 95,669 |
pythondev | help | <@Arlene> hope you found an answer. Sorry I was at a show last night. | 2017-10-04T14:24:28.000274 | Orpha | pythondev_help_Orpha_2017-10-04T14:24:28.000274 | 1,507,127,068.000274 | 95,670 |
pythondev | help | <@Orpha> all good. It looks good. | 2017-10-04T14:47:30.000630 | Arlene | pythondev_help_Arlene_2017-10-04T14:47:30.000630 | 1,507,128,450.00063 | 95,671 |
pythondev | help | Tha KS for the help with sed | 2017-10-04T14:47:36.000606 | Arlene | pythondev_help_Arlene_2017-10-04T14:47:36.000606 | 1,507,128,456.000606 | 95,672 |
pythondev | help | I have some learning questions if someone has some time.
```some_list_comprehension = [
temp_variable.field_of_interest
for temp_variable in a_callable
if temp_variable.my_question_here is some condition
]```
First, conceptually are there any problems with the template? | 2017-10-04T14:57:12.000394 | Seema | pythondev_help_Seema_2017-10-04T14:57:12.000394 | 1,507,129,032.000394 | 95,673 |
pythondev | help | no, that's correct for a list comp | 2017-10-04T15:01:50.000469 | Frieda | pythondev_help_Frieda_2017-10-04T15:01:50.000469 | 1,507,129,310.000469 | 95,674 |
pythondev | help | thanks, my question is about if temp_variable.my_question_here... | 2017-10-04T15:02:19.000277 | Seema | pythondev_help_Seema_2017-10-04T15:02:19.000277 | 1,507,129,339.000277 | 95,675 |
pythondev | help | does Python know whether it's looking for a key or a field or a whatever after the period by inferring from the expression/a_callable ? | 2017-10-04T15:03:03.000250 | Seema | pythondev_help_Seema_2017-10-04T15:03:03.000250 | 1,507,129,383.00025 | 95,676 |
pythondev | help | I would imagine generally one would iterate over something searching for say a field in a class or in a value for a given key AND that Python looks at the "in" statement to determine how/what it is looking for. Am I imagining correctly? | 2017-10-04T15:04:42.000634 | Seema | pythondev_help_Seema_2017-10-04T15:04:42.000634 | 1,507,129,482.000634 | 95,677 |
pythondev | help | For the most part, Python doesn’t do dot accessors like JavaScript | 2017-10-04T15:06:47.000456 | Patty | pythondev_help_Patty_2017-10-04T15:06:47.000456 | 1,507,129,607.000456 | 95,678 |
pythondev | help | So, for a dictionary, you would need to do `dict['key']` | 2017-10-04T15:07:01.000393 | Patty | pythondev_help_Patty_2017-10-04T15:07:01.000393 | 1,507,129,621.000393 | 95,679 |
pythondev | help | To add on to what <@Patty> said, in `temp_variable.my_question_here` `my_question_here` is an attribute, and if it does not exist you will get `AttributeError`, see doc for `getattr()` and `setattr()` to handle getting/setting attributes by name | 2017-10-04T15:08:47.000077 | Mallie | pythondev_help_Mallie_2017-10-04T15:08:47.000077 | 1,507,129,727.000077 | 95,680 |
pythondev | help | It's not a key/value pair | 2017-10-04T15:09:06.000320 | Mallie | pythondev_help_Mallie_2017-10-04T15:09:06.000320 | 1,507,129,746.00032 | 95,681 |
pythondev | help | I'm thinking that I keep seeing list to list comprehension and that it's more about what I've been seeing than what Python can do. | 2017-10-04T15:10:23.000297 | Seema | pythondev_help_Seema_2017-10-04T15:10:23.000297 | 1,507,129,823.000297 | 95,682 |
pythondev | help | Continuing on the attribute part, is that why I can have a list of Class instances and iterate through the attributes of the Classes in the list? | 2017-10-04T15:11:06.000109 | Seema | pythondev_help_Seema_2017-10-04T15:11:06.000109 | 1,507,129,866.000109 | 95,683 |
pythondev | help | Yeah because each `temp_variable` has a `my_question_here` | 2017-10-04T15:11:36.000200 | Mallie | pythondev_help_Mallie_2017-10-04T15:11:36.000200 | 1,507,129,896.0002 | 95,684 |
pythondev | help | If it didn't, you'd get the exception | 2017-10-04T15:11:42.000424 | Mallie | pythondev_help_Mallie_2017-10-04T15:11:42.000424 | 1,507,129,902.000424 | 95,685 |
pythondev | help | I don't think I'm crystal clear on what is an attribute vs field. Time to dig into the docs. | 2017-10-04T15:12:49.000478 | Seema | pythondev_help_Seema_2017-10-04T15:12:49.000478 | 1,507,129,969.000478 | 95,686 |
pythondev | help | Thanks for the help <@Frieda> <@Patty> <@Mallie> | 2017-10-04T15:13:31.000330 | Seema | pythondev_help_Seema_2017-10-04T15:13:31.000330 | 1,507,130,011.00033 | 95,687 |
pythondev | help | <@Seema> I could be wrong but I don't think Python ever explicitly refers to those as fields. Are you referring to fields in the Django sense of things? They define and heavily leverage that term. | 2017-10-04T15:15:15.000462 | Mallie | pythondev_help_Mallie_2017-10-04T15:15:15.000462 | 1,507,130,115.000462 | 95,688 |
pythondev | help | In a class, there are a set of class "things", dunders, methods, class lists,etc. I honestly don't have the confidence to say what the exact name is - in the terminology sense - of each of those things. | 2017-10-04T15:17:27.000685 | Seema | pythondev_help_Seema_2017-10-04T15:17:27.000685 | 1,507,130,247.000685 | 95,689 |
pythondev | help | yeah, there's really no such Python thing as a "field", AFAIK | 2017-10-04T15:17:39.000784 | Frieda | pythondev_help_Frieda_2017-10-04T15:17:39.000784 | 1,507,130,259.000784 | 95,690 |
pythondev | help | What's the proper name for self.__thing__ ? | 2017-10-04T15:17:56.000299 | Seema | pythondev_help_Seema_2017-10-04T15:17:56.000299 | 1,507,130,276.000299 | 95,691 |
pythondev | help | classes only have two member types. attributes and methods | 2017-10-04T15:18:00.000303 | Frieda | pythondev_help_Frieda_2017-10-04T15:18:00.000303 | 1,507,130,280.000303 | 95,692 |
pythondev | help | attributes are variables that are scoped to a class/instance | 2017-10-04T15:18:15.000265 | Frieda | pythondev_help_Frieda_2017-10-04T15:18:15.000265 | 1,507,130,295.000265 | 95,693 |
pythondev | help | methods are functions that are scoped to a class/instance | 2017-10-04T15:18:20.000404 | Frieda | pythondev_help_Frieda_2017-10-04T15:18:20.000404 | 1,507,130,300.000404 | 95,694 |
pythondev | help | are there any weird edge cases like a Class havinga Class or is attributes and methods only? | 2017-10-04T15:18:50.000390 | Seema | pythondev_help_Seema_2017-10-04T15:18:50.000390 | 1,507,130,330.00039 | 95,695 |
pythondev | help | a class having a class... I can't think of any way to do that that wouldn't make it an attribute | 2017-10-04T15:19:21.000249 | Frieda | pythondev_help_Frieda_2017-10-04T15:19:21.000249 | 1,507,130,361.000249 | 95,696 |
pythondev | help | attribute and method it is, thanks | 2017-10-04T15:19:33.000135 | Seema | pythondev_help_Seema_2017-10-04T15:19:33.000135 | 1,507,130,373.000135 | 95,697 |
pythondev | help | you can't really have a nested class, like you could have a nested function | 2017-10-04T15:19:44.000397 | Frieda | pythondev_help_Frieda_2017-10-04T15:19:44.000397 | 1,507,130,384.000397 | 95,698 |
pythondev | help | classes have inheritance, of course, but that's not the same | 2017-10-04T15:20:00.000360 | Frieda | pythondev_help_Frieda_2017-10-04T15:20:00.000360 | 1,507,130,400.00036 | 95,699 |
pythondev | help | <@Frieda>
```
class MyModel(db.Model):
...
class Meta:
database = some_db_connection
``` | 2017-10-04T15:20:35.000409 | Suellen | pythondev_help_Suellen_2017-10-04T15:20:35.000409 | 1,507,130,435.000409 | 95,700 |
pythondev | help | It's a somewhat common way to store meta attributes in some ORMs | 2017-10-04T15:21:19.000087 | Suellen | pythondev_help_Suellen_2017-10-04T15:21:19.000087 | 1,507,130,479.000087 | 95,701 |
pythondev | help | sure but that's handled through some behind-the-scenes abc magic that actually nests it into an attribute | 2017-10-04T15:21:24.000666 | Frieda | pythondev_help_Frieda_2017-10-04T15:21:24.000666 | 1,507,130,484.000666 | 95,702 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.