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
Hey guys, just getting into Python and CS generally, and curious to your perspective. I'm following some course, but there's no real explanation about the process of solving a problem/building your project. Is there a process you guys use to go from problem/start of project (for example in my case, building an interact...
2017-12-13T07:15:32.000148
Robby
pythondev_help_Robby_2017-12-13T07:15:32.000148
1,513,149,332.000148
103,603
pythondev
help
Does anyone here have experience using pathos ?
2017-12-13T09:07:43.000561
Valery
pythondev_help_Valery_2017-12-13T09:07:43.000561
1,513,156,063.000561
103,604
pythondev
help
Which module should I be using if I wish to plot pathways over a google map, or any type of map (using latitude and logitude)
2017-12-13T10:36:47.000428
Glinda
pythondev_help_Glinda_2017-12-13T10:36:47.000428
1,513,161,407.000428
103,605
pythondev
help
Can't you use the google maps api?
2017-12-13T10:41:08.000159
Corrinne
pythondev_help_Corrinne_2017-12-13T10:41:08.000159
1,513,161,668.000159
103,606
pythondev
help
<https://developers.google.com/maps/documentation/embed/guide#directions_mode>
2017-12-13T10:45:27.000557
Corrinne
pythondev_help_Corrinne_2017-12-13T10:45:27.000557
1,513,161,927.000557
103,607
pythondev
help
This is more along the lines I want: <https://jsfiddle.net/api/post/library/pure/>
2017-12-13T10:45:51.000185
Glinda
pythondev_help_Glinda_2017-12-13T10:45:51.000185
1,513,161,951.000185
103,608
pythondev
help
I was googling bad terms, and seems most of the things that were coming up were numpy/ pandas applications that only ran on python2.
2017-12-13T10:46:33.000606
Glinda
pythondev_help_Glinda_2017-12-13T10:46:33.000606
1,513,161,993.000606
103,609
pythondev
help
hmm. I have many databases with a common prefix (`cloud_`) I need to insert a record into all of them into a specific table. all the databases have the same structure. I can get a list of all the db names by querying `information_schema.TABLES` but i havent had to insert data into them dynamically before. how do I do t...
2017-12-13T10:58:47.000551
Bruno
pythondev_help_Bruno_2017-12-13T10:58:47.000551
1,513,162,727.000551
103,610
pythondev
help
I basically want to see if its possible to condense these 2 inserts into one dynamic query, where i can get the DB names from information schema (`key` column is a uniqe and is the PK) ``` INSERT IGNORE INTO db1.constants (`key`, `value`) VALUES ('the_answer', 42); INSERT IGNORE INTO db2.constants (`key`, `value`) VALU...
2017-12-13T11:07:09.000631
Bruno
pythondev_help_Bruno_2017-12-13T11:07:09.000631
1,513,163,229.000631
103,611
pythondev
help
is it a one shot ?
2017-12-13T11:09:11.000157
Ciera
pythondev_help_Ciera_2017-12-13T11:09:11.000157
1,513,163,351.000157
103,612
pythondev
help
maybe something with `psql` so you don't have to connect to each db
2017-12-13T11:09:31.000495
Ciera
pythondev_help_Ciera_2017-12-13T11:09:31.000495
1,513,163,371.000495
103,613
pythondev
help
it is in mysql. for work
2017-12-13T11:15:18.000325
Bruno
pythondev_help_Bruno_2017-12-13T11:15:18.000325
1,513,163,718.000325
103,614
pythondev
help
i have it as part of a normal migration, which will hit all of them. but ops wants me to get it into a data migration, which are just SQL files
2017-12-13T11:16:03.000842
Bruno
pythondev_help_Bruno_2017-12-13T11:16:03.000842
1,513,163,763.000842
103,615
pythondev
help
So I am trying to see if its possible. when the service goes live, there will be many `cloud_%` dtabases
2017-12-13T11:16:44.000241
Bruno
pythondev_help_Bruno_2017-12-13T11:16:44.000241
1,513,163,804.000241
103,616
pythondev
help
as they will be based on clients that pay for that part of our software
2017-12-13T11:17:08.000306
Bruno
pythondev_help_Bruno_2017-12-13T11:17:08.000306
1,513,163,828.000306
103,617
pythondev
help
not sure you can consolidate it into one statement, but output what you need into a single file that can execute sequentially using dynamic sql to generate the sql for all the tables you pull out of information_schema
2017-12-13T11:17:29.000026
Min
pythondev_help_Min_2017-12-13T11:17:29.000026
1,513,163,849.000026
103,618
pythondev
help
can't you ask ops the same file on each DB ?
2017-12-13T11:18:36.000461
Ciera
pythondev_help_Ciera_2017-12-13T11:18:36.000461
1,513,163,916.000461
103,619
pythondev
help
yea, unfortunately the way our tooling is done now, it wont support that easily. we have 2 types of migrations. normal which use typical migration files with an `up` and `down` method, and data only migrations which are just .sql files.
2017-12-13T11:19:09.000951
Bruno
pythondev_help_Bruno_2017-12-13T11:19:09.000951
1,513,163,949.000951
103,620
pythondev
help
i can ask but the way the tooling works now, it may not do that. i would have to specify the db name in the sql file. which is annoying. i may have to have a longer talk with him about updating the tooling for this. or just letting me do it as a normal migration since i already have a PR on github for that.
2017-12-13T11:20:33.000374
Bruno
pythondev_help_Bruno_2017-12-13T11:20:33.000374
1,513,164,033.000374
103,621
pythondev
help
Let me know if I should write this better. I have been reading up on Server Side Events. If I have a url that has event-stream as a content type, how can I get that data from the url to python so I can manipulate or store the data?
2017-12-13T14:00:33.000374
Kristopher
pythondev_help_Kristopher_2017-12-13T14:00:33.000374
1,513,173,633.000374
103,622
pythondev
help
this with a web app?
2017-12-13T14:05:09.000876
Meg
pythondev_help_Meg_2017-12-13T14:05:09.000876
1,513,173,909.000876
103,623
pythondev
help
because edge or IE don’t support SSE at all
2017-12-13T14:05:40.000016
Meg
pythondev_help_Meg_2017-12-13T14:05:40.000016
1,513,173,940.000016
103,624
pythondev
help
<https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Browser_compatibility>
2017-12-13T14:06:04.000526
Meg
pythondev_help_Meg_2017-12-13T14:06:04.000526
1,513,173,964.000526
103,625
pythondev
help
I think I understand the question, I’m using flask and this is an external url
2017-12-13T14:06:07.000179
Kristopher
pythondev_help_Kristopher_2017-12-13T14:06:07.000179
1,513,173,967.000179
103,626
pythondev
help
<@Meg> Hey, I think I figured out my question. Definitely looked at that link you’ve sent over. Thank you for the help. Here’s what I found: <https://stackoverflow.com/questions/27639356/python3-4-read-content-stream-web-request> sseclient
2017-12-13T14:17:39.000077
Kristopher
pythondev_help_Kristopher_2017-12-13T14:17:39.000077
1,513,174,659.000077
103,627
pythondev
help
any reason an `ALTER TABLE` to insert a column would take 10+ minutes? would it take that long even if there are a million records in the db?
2017-12-13T14:41:49.000074
Bruno
pythondev_help_Bruno_2017-12-13T14:41:49.000074
1,513,176,109.000074
103,628
pythondev
help
if there are a million poorly indexed records maybe
2017-12-13T14:42:30.000022
Ozie
pythondev_help_Ozie_2017-12-13T14:42:30.000022
1,513,176,150.000022
103,629
pythondev
help
running it locally it runs almost instantly. but on staging, its taking almost 15min now.
2017-12-13T14:42:30.000244
Bruno
pythondev_help_Bruno_2017-12-13T14:42:30.000244
1,513,176,150.000244
103,630
pythondev
help
i've made that mistake before
2017-12-13T14:42:35.000042
Ozie
pythondev_help_Ozie_2017-12-13T14:42:35.000042
1,513,176,155.000042
103,631
pythondev
help
but it was a ~22million record table so im not sure about the low millions
2017-12-13T14:42:56.000077
Ozie
pythondev_help_Ozie_2017-12-13T14:42:56.000077
1,513,176,176.000077
103,632
pythondev
help
its a high access table so we thought maybe if records were being inserted, but processlist didnt show any open connections.
2017-12-13T14:43:02.000409
Bruno
pythondev_help_Bruno_2017-12-13T14:43:02.000409
1,513,176,182.000409
103,633
pythondev
help
`mysqldump {table}` -&gt; regex to add the new column -&gt; regex to add the new column value `mysql {table} &lt; {the edited dump file}`
2017-12-13T14:44:27.000258
Ozie
pythondev_help_Ozie_2017-12-13T14:44:27.000258
1,513,176,267.000258
103,634
pythondev
help
shitty but works, unless you're doing more than adding a column
2017-12-13T14:44:38.000195
Ozie
pythondev_help_Ozie_2017-12-13T14:44:38.000195
1,513,176,278.000195
103,635
pythondev
help
hilariously shitty
2017-12-13T14:44:48.000108
Ozie
pythondev_help_Ozie_2017-12-13T14:44:48.000108
1,513,176,288.000108
103,636
pythondev
help
well, the field im adding is also adding an index to that field.
2017-12-13T14:44:53.000077
Bruno
pythondev_help_Bruno_2017-12-13T14:44:53.000077
1,513,176,293.000077
103,637
pythondev
help
hmm yea that could take more time
2017-12-13T14:45:20.000575
Ozie
pythondev_help_Ozie_2017-12-13T14:45:20.000575
1,513,176,320.000575
103,638
pythondev
help
if it needs to reindex all the table it can take some times
2017-12-13T14:45:27.000032
Ciera
pythondev_help_Ciera_2017-12-13T14:45:27.000032
1,513,176,327.000032
103,639
pythondev
help
oh well now...
2017-12-13T14:46:56.000237
Bruno
pythondev_help_Bruno_2017-12-13T14:46:56.000237
1,513,176,416.000237
103,640
pythondev
help
apparently the table only has `44,270,310` rows...
2017-12-13T14:47:07.000235
Bruno
pythondev_help_Bruno_2017-12-13T14:47:07.000235
1,513,176,427.000235
103,641
pythondev
help
rip
2017-12-13T14:47:13.000051
Ozie
pythondev_help_Ozie_2017-12-13T14:47:13.000051
1,513,176,433.000051
103,642
pythondev
help
I'd just let it chew until either it finishes or your devops guy starts throwing stuff at you, that's how I usually know I've pegged the DB
2017-12-13T14:48:06.000291
Ozie
pythondev_help_Ozie_2017-12-13T14:48:06.000291
1,513,176,486.000291
103,643
pythondev
help
well, we have to do this on 25 databases...
2017-12-13T14:49:06.000670
Bruno
pythondev_help_Bruno_2017-12-13T14:49:06.000670
1,513,176,546.00067
103,644
pythondev
help
lol
2017-12-13T14:49:14.000075
Ciera
pythondev_help_Ciera_2017-12-13T14:49:14.000075
1,513,176,554.000075
103,645
pythondev
help
sooo, might have to rethink this migration.
2017-12-13T14:49:17.000613
Bruno
pythondev_help_Bruno_2017-12-13T14:49:17.000613
1,513,176,557.000613
103,646
pythondev
help
Hi all, does anyone know if there is a way to make PyQt apps scale correctly on high-res screens like a Surface Pro? The text on buttons etc is tiny by default.
2017-12-13T15:24:06.000646
Nickolas
pythondev_help_Nickolas_2017-12-13T15:24:06.000646
1,513,178,646.000646
103,647
pythondev
help
So I'm trying to get this replace a birthday and for some reason I can't figure out why it's adding a space
2017-12-13T16:06:11.000764
Devorah
pythondev_help_Devorah_2017-12-13T16:06:11.000764
1,513,181,171.000764
103,648
pythondev
help
It won't let me pass this question unless I figure out why it's doing it.
2017-12-13T16:06:31.000527
Devorah
pythondev_help_Devorah_2017-12-13T16:06:31.000527
1,513,181,191.000527
103,649
pythondev
help
``` Your program output did not match the expected output. Your output: Adam Smith 11111985Theodore Anderson 03201990Monty Biscuit-Barrel 10181980Adam Smithers 00000000Ruthy Anderson 06062010 Expected output: Adam Smith ...
2017-12-13T16:08:33.000450
Devorah
pythondev_help_Devorah_2017-12-13T16:08:33.000450
1,513,181,313.00045
103,650
pythondev
help
is the problem of adding spaces or removing them? Looks like you need to get rid of B.strip() to me (since that is removing the spacing)
2017-12-13T16:14:51.000555
Miguelina
pythondev_help_Miguelina_2017-12-13T16:14:51.000555
1,513,181,691.000555
103,651
pythondev
help
Not sure which channel to ask this in, but I'm trying to `ssh` into a server from Windows PowerShell. I'm able to successfully ssh in, but when I do `git remote update` it prompts for a password. It should be `agent-forward`ing my ssh key. Everything works in `Git Bash` perfectly. Anyone have any idea what's going on?
2017-12-13T16:18:28.000389
Dominick
pythondev_help_Dominick_2017-12-13T16:18:28.000389
1,513,181,908.000389
103,652
pythondev
help
In my output it's adding a space which it shouldn't
2017-12-13T16:19:03.000109
Devorah
pythondev_help_Devorah_2017-12-13T16:19:03.000109
1,513,181,943.000109
103,653
pythondev
help
can you do that forward an ssh key ? usually I just create a key/user for the server i'm pulling from with adequate rights
2017-12-13T16:20:08.000670
Ciera
pythondev_help_Ciera_2017-12-13T16:20:08.000670
1,513,182,008.00067
103,654
pythondev
help
<@Ciera> i'm not super experienced with it but git bash seems to do it with no problems?
2017-12-13T16:22:12.000656
Dominick
pythondev_help_Dominick_2017-12-13T16:22:12.000656
1,513,182,132.000656
103,655
pythondev
help
shouldn’t you be using `ForwardAgent` in the ssh config?
2017-12-13T16:22:25.000239
Meg
pythondev_help_Meg_2017-12-13T16:22:25.000239
1,513,182,145.000239
103,656
pythondev
help
i have `ForwardAgent yes` in my ~/.ssh/config file
2017-12-13T16:22:50.000115
Dominick
pythondev_help_Dominick_2017-12-13T16:22:50.000115
1,513,182,170.000115
103,657
pythondev
help
so, the same key you’re using to ssh into
2017-12-13T16:23:13.000305
Meg
pythondev_help_Meg_2017-12-13T16:23:13.000305
1,513,182,193.000305
103,658
pythondev
help
is that the same key that’s for your github?
2017-12-13T16:23:26.000444
Meg
pythondev_help_Meg_2017-12-13T16:23:26.000444
1,513,182,206.000444
103,659
pythondev
help
Does your ssh agent have the identity loaded
2017-12-13T16:23:31.000273
Marilyn
pythondev_help_Marilyn_2017-12-13T16:23:31.000273
1,513,182,211.000273
103,660
pythondev
help
<@Meg> ya, we looked at it today and it's the same key. let me just make sure and check again though.
2017-12-13T16:24:58.000515
Dominick
pythondev_help_Dominick_2017-12-13T16:24:58.000515
1,513,182,298.000515
103,661
pythondev
help
I don't know what the powershell equivalent of `ssh-add -l` is
2017-12-13T16:25:12.000638
Marilyn
pythondev_help_Marilyn_2017-12-13T16:25:12.000638
1,513,182,312.000638
103,662
pythondev
help
<@Marilyn> so I tried `ssh-add` and `ssh-add -l` in PowerShell and it wasn't working
2017-12-13T16:25:16.000429
Dominick
pythondev_help_Dominick_2017-12-13T16:25:16.000429
1,513,182,316.000429
103,663
pythondev
help
and I suspect that’s the difference
2017-12-13T16:25:21.000052
Meg
pythondev_help_Meg_2017-12-13T16:25:21.000052
1,513,182,321.000052
103,664
pythondev
help
powershell and bash are different beasts entirely
2017-12-13T16:25:31.000090
Meg
pythondev_help_Meg_2017-12-13T16:25:31.000090
1,513,182,331.00009
103,665
pythondev
help
ya...PowerShell says `Could not open a connection to your authentication agent.` after `ssh-add -l`
2017-12-13T16:25:56.000021
Dominick
pythondev_help_Dominick_2017-12-13T16:25:56.000021
1,513,182,356.000021
103,666
pythondev
help
Whenever I run into this it's always my ssh agent not having the loaded key from a restart or something
2017-12-13T16:26:50.000766
Marilyn
pythondev_help_Marilyn_2017-12-13T16:26:50.000766
1,513,182,410.000766
103,667
pythondev
help
That part I can't help with on powershell though but hopefully it points you in the right direction
2017-12-13T16:27:19.000407
Marilyn
pythondev_help_Marilyn_2017-12-13T16:27:19.000407
1,513,182,439.000407
103,668
pythondev
help
*def _execute(self, request):* this function is protected or private ?
2017-12-13T17:24:19.000290
Gemma
pythondev_help_Gemma_2017-12-13T17:24:19.000290
1,513,185,859.00029
103,669
pythondev
help
how can i import it in some other class.
2017-12-13T17:24:45.000128
Gemma
pythondev_help_Gemma_2017-12-13T17:24:45.000128
1,513,185,885.000128
103,670
pythondev
help
it's technically neither as we don't have those things in python
2017-12-13T17:25:02.000574
Frieda
pythondev_help_Frieda_2017-12-13T17:25:02.000574
1,513,185,902.000574
103,671
pythondev
help
assuming your new class extends the class that owns `_execute`, you'll have access to it on the instance-level
2017-12-13T17:25:27.000291
Frieda
pythondev_help_Frieda_2017-12-13T17:25:27.000291
1,513,185,927.000291
103,672
pythondev
help
can i import this function or i have to import its class and then make an object of that class to call this function
2017-12-13T17:28:48.000454
Gemma
pythondev_help_Gemma_2017-12-13T17:28:48.000454
1,513,186,128.000454
103,673
pythondev
help
<@Gemma> have you seen if __name__ == "__main__" in python before? <http://thepythonguru.com/what-is-if-__name__-__main__/>
2017-12-13T17:32:32.000162
Seema
pythondev_help_Seema_2017-12-13T17:32:32.000162
1,513,186,352.000162
103,674
pythondev
help
<@Gemma> it's not a function, it's a class method, so you'd have to have an instance of the class to use the method
2017-12-13T17:32:57.000161
Frieda
pythondev_help_Frieda_2017-12-13T17:32:57.000161
1,513,186,377.000161
103,675
pythondev
help
methods belong to classes and are unusable (for the most part) outside of their class's instances
2017-12-13T17:33:18.000228
Frieda
pythondev_help_Frieda_2017-12-13T17:33:18.000228
1,513,186,398.000228
103,676
pythondev
help
<@Frieda> you've done this before, and I'm guessing your spidey sense/experience knows that's his angle, but what did you key in ?
2017-12-13T17:34:23.000250
Seema
pythondev_help_Seema_2017-12-13T17:34:23.000250
1,513,186,463.00025
103,677
pythondev
help
(versus where I'm going with it)
2017-12-13T17:34:38.000608
Seema
pythondev_help_Seema_2017-12-13T17:34:38.000608
1,513,186,478.000608
103,678
pythondev
help
<@Seema> uh, just that it's obviously an instance method (`self` in the signature) and asking about "some other class"
2017-12-13T17:35:15.000563
Frieda
pythondev_help_Frieda_2017-12-13T17:35:15.000563
1,513,186,515.000563
103,679
pythondev
help
he said import and that's what I was keying on
2017-12-13T17:35:39.000138
Seema
pythondev_help_Seema_2017-12-13T17:35:39.000138
1,513,186,539.000138
103,680
pythondev
help
i mean, maybe?
2017-12-13T17:36:19.000325
Frieda
pythondev_help_Frieda_2017-12-13T17:36:19.000325
1,513,186,579.000325
103,681
pythondev
help
<@Devorah> I guess am reading it wrong, but from what I can see from the text you pasted `Your output` has 1 space less preceeding 00000000Ruthy and Anderson as compared to `Expected output`
2017-12-13T17:36:31.000072
Miguelina
pythondev_help_Miguelina_2017-12-13T17:36:31.000072
1,513,186,591.000072
103,682
pythondev
help
<@Gemma> when you say import, do you mean how do you get an instance of that class to use or do you mean from one python script/file to another?
2017-12-13T17:37:10.000157
Seema
pythondev_help_Seema_2017-12-13T17:37:10.000157
1,513,186,630.000157
103,683
pythondev
help
from one python script to another.
2017-12-13T17:37:51.000068
Gemma
pythondev_help_Gemma_2017-12-13T17:37:51.000068
1,513,186,671.000068
103,684
pythondev
help
you'll still need to do what kennethlove was saying but first visit that link and it will explain the key to import from one script to another
2017-12-13T17:39:13.000468
Seema
pythondev_help_Seema_2017-12-13T17:39:13.000468
1,513,186,753.000468
103,685
pythondev
help
<@Gemma> in that case you won't import that method but the whole class itself and instantiate the class into a var and then call the _execute method on that var in your python script
2017-12-13T17:39:24.000375
Miguelina
pythondev_help_Miguelina_2017-12-13T17:39:24.000375
1,513,186,764.000375
103,686
pythondev
help
okay let me try that thanks all <@Frieda> <@Miguelina> <@Seema> :slightly_smiling_face:
2017-12-13T17:40:29.000573
Gemma
pythondev_help_Gemma_2017-12-13T17:40:29.000573
1,513,186,829.000573
103,687
pythondev
help
<@Miguelina> do you see why it's doing that? I can't figure out why it's doing that, it should be a fixed length field with 16 for first and 16 for last and 8 for birthdate
2017-12-13T17:40:33.000263
Devorah
pythondev_help_Devorah_2017-12-13T17:40:33.000263
1,513,186,833.000263
103,688
pythondev
help
<@Devorah> can you replace `workers = workers[:(XX+15)] + B.strip() + workers[(XX+24):]` with `workers = workers[:(XX+15)] + B + workers[(XX+24):]` and see
2017-12-13T17:41:17.000126
Miguelina
pythondev_help_Miguelina_2017-12-13T17:41:17.000126
1,513,186,877.000126
103,689
pythondev
help
<@Devorah> by default strip will remove white spaces before and after your string ``` In [9]: foo = ' Hello ' In [10]: bar = foo.strip() In [11]: foo Out[11]: ' Hello ' In [12]: bar Out[12]: 'Hello' ```
2017-12-13T17:42:48.000043
Miguelina
pythondev_help_Miguelina_2017-12-13T17:42:48.000043
1,513,186,968.000043
103,690
pythondev
help
with it removed it's still adding a space
2017-12-13T17:43:04.000334
Devorah
pythondev_help_Devorah_2017-12-13T17:43:04.000334
1,513,186,984.000334
103,691
pythondev
help
hmm
2017-12-13T17:43:27.000040
Miguelina
pythondev_help_Miguelina_2017-12-13T17:43:27.000040
1,513,187,007.00004
103,692
pythondev
help
<@Devorah> can you tell me what exactly is the goal of the exercise? you wanna search and replace something?
2017-12-13T17:48:40.000395
Miguelina
pythondev_help_Miguelina_2017-12-13T17:48:40.000395
1,513,187,320.000395
103,693
pythondev
help
``` Fixed Length Records You will be passed the filename P, firstname F, lastname L, and a new birthday B. Load the fixed length record file in P, search for F,L in the first and change birthday to B. Then save the file.```
2017-12-13T17:49:16.000579
Devorah
pythondev_help_Devorah_2017-12-13T17:49:16.000579
1,513,187,356.000579
103,694
pythondev
help
<@Gemma> any questions about that?
2017-12-13T17:49:45.000386
Seema
pythondev_help_Seema_2017-12-13T17:49:45.000386
1,513,187,385.000386
103,695
pythondev
help
<@Devorah> whats the output without the B.strip() can you share that here please
2017-12-13T17:51:12.000306
Miguelina
pythondev_help_Miguelina_2017-12-13T17:51:12.000306
1,513,187,472.000306
103,696
pythondev
help
``` LAST RUN on 12/13/2017, 5:52:02 PM Program Output Your program output did not match the expected output. Your output: Adam Smith 11111985Theodore Anderson 03201990Monty Biscuit-Barrel 10181980Adam Smithers 00000000Ruthy Anderson 06062...
2017-12-13T17:52:20.000183
Devorah
pythondev_help_Devorah_2017-12-13T17:52:20.000183
1,513,187,540.000183
103,697
pythondev
help
<@Seema> if a class is inherited from another class e.g class me(person) can i create object of class me simply *anybody=me()* or i should pass person class object in its arguments as well
2017-12-13T17:54:48.000129
Gemma
pythondev_help_Gemma_2017-12-13T17:54:48.000129
1,513,187,688.000129
103,698
pythondev
help
just to be clear,do you want to inherit or create an instance of a class?
2017-12-13T17:57:55.000028
Seema
pythondev_help_Seema_2017-12-13T17:57:55.000028
1,513,187,875.000028
103,699
pythondev
help
in the case of Person, you might want an instance me, you, him, her, but then you might want to have a different behavior and inherit from person into baby and include a method for pooping pants
2017-12-13T17:58:57.000116
Seema
pythondev_help_Seema_2017-12-13T17:58:57.000116
1,513,187,937.000116
103,700
pythondev
help
(anyone can poop their pants, it's the best example I could come up with on the spot :\)
2017-12-13T17:59:27.000250
Seema
pythondev_help_Seema_2017-12-13T17:59:27.000250
1,513,187,967.00025
103,701
pythondev
help
<@Gemma> take a look at this <http://eflorenzano.com/blog/2008/05/04/inheritance-vs-composition/> might help you in choosing what path to take
2017-12-13T18:00:36.000152
Miguelina
pythondev_help_Miguelina_2017-12-13T18:00:36.000152
1,513,188,036.000152
103,702