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
Get rid of the first closing paren
2019-01-30T17:12:28.319400
Clemmie
pythondev_help_Clemmie_2019-01-30T17:12:28.319400
1,548,868,348.3194
5,521
pythondev
help
You ended the function call early with it
2019-01-30T17:12:39.320000
Clemmie
pythondev_help_Clemmie_2019-01-30T17:12:39.320000
1,548,868,359.32
5,522
pythondev
help
ah sorry thanks
2019-01-30T17:12:43.320200
Granville
pythondev_help_Granville_2019-01-30T17:12:43.320200
1,548,868,363.3202
5,523
pythondev
help
No worries
2019-01-30T17:12:49.320400
Clemmie
pythondev_help_Clemmie_2019-01-30T17:12:49.320400
1,548,868,369.3204
5,524
pythondev
help
<@Candi> I might be misunderstanding your dataset, but perhaps you can do this with pandas directly (instead of the for/if loop) ? Since 'data' is the name of your dataframe...something like this might work: `data[data.name.str.startswith('http')]` "name" is whatever the column you want to search is called. So if it'...
2019-01-30T17:14:33.322200
Marth
pythondev_help_Marth_2019-01-30T17:14:33.322200
1,548,868,473.3222
5,525
pythondev
help
<@Candi> <@Francesca> I found this site useful <https://regexone.com/> for learning about regex
2019-01-30T17:15:10.323300
Caridad
pythondev_help_Caridad_2019-01-30T17:15:10.323300
1,548,868,510.3233
5,526
pythondev
help
``` # # Fatal error in , line 0 # API fatal error handler returned after process out of memory # { Error: Command failed: meteor --raw-logs at checkExecSyncError (child_process.js:622:11) at execSync (child_process.js:659:13) at _callee$ (C:\Users\Lebogang Nkhuna\AppData\Roaming\npm\node_modules\reaction-cl...
2019-01-30T17:17:48.324100
Tasia
pythondev_help_Tasia_2019-01-30T17:17:48.324100
1,548,868,668.3241
5,527
pythondev
help
<@Candi> check to make sure x is a string - it might not be a string or it might be empty - you can also wrap x with `str(x)` to make sure even if its a number that is evaluated like a string
2019-01-30T17:17:54.324400
Sparkle
pythondev_help_Sparkle_2019-01-30T17:17:54.324400
1,548,868,674.3244
5,528
pythondev
help
please advice... trying to run an web app
2019-01-30T17:18:20.324900
Tasia
pythondev_help_Tasia_2019-01-30T17:18:20.324900
1,548,868,700.3249
5,529
pythondev
help
are you trying to build on a server?
2019-01-30T17:33:27.325300
Hiroko
pythondev_help_Hiroko_2019-01-30T17:33:27.325300
1,548,869,607.3253
5,530
pythondev
help
I had that issue when trying to build a react app on an amazon t2.small instance. Didn’t have enough memory to run the build and got something similar
2019-01-30T17:33:55.325900
Hiroko
pythondev_help_Hiroko_2019-01-30T17:33:55.325900
1,548,869,635.3259
5,531
pythondev
help
as is, seems like you’re out of free memory to run the build
2019-01-30T17:34:25.326300
Hiroko
pythondev_help_Hiroko_2019-01-30T17:34:25.326300
1,548,869,665.3263
5,532
pythondev
help
<@Sparkle> thanks a lot for your help
2019-01-30T18:07:07.327400
Candi
pythondev_help_Candi_2019-01-30T18:07:07.327400
1,548,871,627.3274
5,533
pythondev
help
<@Tasia> <https://github.com/reactioncommerce/reaction/issues/2940> might be related
2019-01-30T18:08:57.327800
Hiroko
pythondev_help_Hiroko_2019-01-30T18:08:57.327800
1,548,871,737.3278
5,534
pythondev
help
<@Francesca> It's basically doing string variable substitution. If `"key"` is in `vardic`, then it replaces `"{key}"` in the string with the associated value in the dict.
2019-01-30T18:23:11.329500
Sasha
pythondev_help_Sasha_2019-01-30T18:23:11.329500
1,548,872,591.3295
5,535
pythondev
help
It's not immediately clear to me why your colleague implemented this instead of using `str.format()`.
2019-01-30T18:27:10.330200
Sasha
pythondev_help_Sasha_2019-01-30T18:27:10.330200
1,548,872,830.3302
5,536
pythondev
help
Possibly because if you expand all of the keys in a dict ala `.format(**vardic)`, you're going to get key errors if there are additional keys within the dict that aren't in the string. It'll also throw errors (I believe) if there is a placeholder in the string that isn't in `vardic`.
2019-01-30T19:01:38.332600
Carmen
pythondev_help_Carmen_2019-01-30T19:01:38.332600
1,548,874,898.3326
5,537
pythondev
help
I think additional entries in the dict are okay, since people use the `**locals()` trick sometimes. But good point about not complaining about missing keys.
2019-01-30T19:12:37.333400
Sasha
pythondev_help_Sasha_2019-01-30T19:12:37.333400
1,548,875,557.3334
5,538
pythondev
help
Yeah, just tested it empirically, and extra keys doesn't cause a problem.
2019-01-30T19:13:17.333700
Carmen
pythondev_help_Carmen_2019-01-30T19:13:17.333700
1,548,875,597.3337
5,539
pythondev
help
But not having enough keys does indeed throw a KeyError
2019-01-30T19:13:29.334200
Carmen
pythondev_help_Carmen_2019-01-30T19:13:29.334200
1,548,875,609.3342
5,540
pythondev
help
Anyone have tips for comparing two lists of dictionaries on multiple keys? For example I have two lists which contain dicts that both have the following keys: ``` list_a = [{'key1':'abc', 'key2':123, 'keyX':'blip'}, {'key1':'def', 'key2':456, 'keyX':'blip'}] list_b = ...
2019-01-30T22:45:15.334600
Devin
pythondev_help_Devin_2019-01-30T22:45:15.334600
1,548,888,315.3346
5,541
pythondev
help
<@Tamekia> tried <https://pypi.org/project/dictdiffer/> ?
2019-01-30T23:01:28.334800
Ellen
pythondev_help_Ellen_2019-01-30T23:01:28.334800
1,548,889,288.3348
5,542
pythondev
help
i just stumbled upon that, i’m gonna give it a shot
2019-01-30T23:01:44.335200
Devin
pythondev_help_Devin_2019-01-30T23:01:44.335200
1,548,889,304.3352
5,543
pythondev
help
thanks!
2019-01-30T23:01:46.335400
Devin
pythondev_help_Devin_2019-01-30T23:01:46.335400
1,548,889,306.3354
5,544
pythondev
help
i haven't tried it, but i should :joy: <https://github.com/yourlabs/django-dbdiff/issues/19>
2019-01-30T23:02:20.335800
Ellen
pythondev_help_Ellen_2019-01-30T23:02:20.335800
1,548,889,340.3358
5,545
pythondev
help
hmm i dunno if this will get me what i need, but it’s useful for sure
2019-01-30T23:08:49.336300
Devin
pythondev_help_Devin_2019-01-30T23:08:49.336300
1,548,889,729.3363
5,546
pythondev
help
i think some creative use of `filter()` might be what i need
2019-01-30T23:09:14.337000
Devin
pythondev_help_Devin_2019-01-30T23:09:14.337000
1,548,889,754.337
5,547
pythondev
help
dictdiffer has close to 500 stars, but if you come up with something cool please let me know :joy:
2019-01-30T23:18:34.337900
Ellen
pythondev_help_Ellen_2019-01-30T23:18:34.337900
1,548,890,314.3379
5,548
pythondev
help
i'm not satisfied with my own implementation in dbdiff ... that's pretty old software (for me :joy:)
2019-01-30T23:19:03.338500
Ellen
pythondev_help_Ellen_2019-01-30T23:19:03.338500
1,548,890,343.3385
5,549
pythondev
help
I’ll report back :+1:
2019-01-30T23:23:23.338800
Devin
pythondev_help_Devin_2019-01-30T23:23:23.338800
1,548,890,603.3388
5,550
pythondev
help
thanks in advance <@Tamekia>, :bed: :mantelpiece_clock: for me, have fun :joy:
2019-01-30T23:30:16.339800
Ellen
pythondev_help_Ellen_2019-01-30T23:30:16.339800
1,548,891,016.3398
5,551
pythondev
help
Absolutely, giving it a try now
2019-01-31T00:16:22.339900
Conchita
pythondev_help_Conchita_2019-01-31T00:16:22.339900
1,548,893,782.3399
5,552
pythondev
help
I'm going to apply some duct tape to my app lol
2019-01-31T00:23:14.340300
Conchita
pythondev_help_Conchita_2019-01-31T00:23:14.340300
1,548,894,194.3403
5,553
pythondev
help
I'm logging the time since the last time my global variables changed. If it suddenly is 30 seconds or more since last update, I will reconnect my stream
2019-01-31T00:25:31.340500
Conchita
pythondev_help_Conchita_2019-01-31T00:25:31.340500
1,548,894,331.3405
5,554
pythondev
help
I know it's not ideal as it is treating the symptoms contrary to curing the root problem
2019-01-31T00:26:33.340700
Conchita
pythondev_help_Conchita_2019-01-31T00:26:33.340700
1,548,894,393.3407
5,555
pythondev
help
But I haven't been able to break the application in a couple of days
2019-01-31T00:26:45.340900
Conchita
pythondev_help_Conchita_2019-01-31T00:26:45.340900
1,548,894,405.3409
5,556
pythondev
help
Well that wouldn't completely solve your problem
2019-01-31T00:37:32.341100
Valeri
pythondev_help_Valeri_2019-01-31T00:37:32.341100
1,548,895,052.3411
5,557
pythondev
help
It would certainly be helpful
2019-01-31T00:38:00.341300
Valeri
pythondev_help_Valeri_2019-01-31T00:38:00.341300
1,548,895,080.3413
5,558
pythondev
help
Hi Everyone, I am trying this code: from moviepy.editor import * from moviepy.video.tools.tracking import manual_tracking from moviepy.video.tools.tracking import Trajectory clip = VideoFileClip("sample.mp4") #the next line is for the manual tracking and its saving # to a file, it must be commented once the tracking...
2019-01-31T02:00:51.342400
Winona
pythondev_help_Winona_2019-01-31T02:00:51.342400
1,548,900,051.3424
5,559
pythondev
help
I don't know anything about this library, but I see `nobjects=1` as a parameter. Changing that might allow for multiple objects?
2019-01-31T02:05:22.343200
Sasha
pythondev_help_Sasha_2019-01-31T02:05:22.343200
1,548,900,322.3432
5,560
pythondev
help
Yes, I have changed This and also: traj, traj1, = Trajectory.load_list('traj.txt') But How I'll call both varibales at a same time, I tried like this: clip_blurred = clip.fx( vfx.headblur, (traj1, traj2, ), 50) But error is coming.
2019-01-31T02:17:11.344600
Winona
pythondev_help_Winona_2019-01-31T02:17:11.344600
1,548,901,031.3446
5,561
pythondev
help
'traj.txt' file saving (x,y) position for both variables after that, But Output is not showing. Problem is, How both variables will be called at the same time?
2019-01-31T02:19:44.346600
Winona
pythondev_help_Winona_2019-01-31T02:19:44.346600
1,548,901,184.3466
5,562
pythondev
help
Can you chain two `fx` calls? Like `blur1 = clip.fx(... traj1 ...)` and `blur2 = blur1.fx(... traj2 ...)`?
2019-01-31T02:22:51.347800
Sasha
pythondev_help_Sasha_2019-01-31T02:22:51.347800
1,548,901,371.3478
5,563
pythondev
help
Oh, Yeah It's working now. Thanks. But It's for only 2 objects. How I can use it for more than 3 or more objects at the same time. ??
2019-01-31T02:28:29.350000
Winona
pythondev_help_Winona_2019-01-31T02:28:29.350000
1,548,901,709.35
5,564
pythondev
help
You should be able to loop over as many objects as you want. Just use `trajs = Trajectory.load_list('traj.txt')` and you should be able to refer to the different paths as `trajs[0]`, etc.
2019-01-31T02:33:05.351600
Sasha
pythondev_help_Sasha_2019-01-31T02:33:05.351600
1,548,901,985.3516
5,565
pythondev
help
Okay, Let me try this. Thanks <@Sasha>
2019-01-31T02:35:38.352100
Winona
pythondev_help_Winona_2019-01-31T02:35:38.352100
1,548,902,138.3521
5,566
pythondev
help
:smile:
2019-01-31T02:39:33.352200
Leida
pythondev_help_Leida_2019-01-31T02:39:33.352200
1,548,902,373.3522
5,567
pythondev
help
thats what i like with python - you can hack it to work and it wont yell at you
2019-01-31T02:40:03.352400
Leida
pythondev_help_Leida_2019-01-31T02:40:03.352400
1,548,902,403.3524
5,568
pythondev
help
the stream probably tells you that there is a problem but you are not listening to it proper. Your solution if it works it works
2019-01-31T02:43:39.352600
Leida
pythondev_help_Leida_2019-01-31T02:43:39.352600
1,548,902,619.3526
5,569
pythondev
help
Hello. Does anyone know how to write a code about Gaussian Elimination w/ Pivoting? :slightly_smiling_face:
2019-01-31T02:45:05.353500
Doretha
pythondev_help_Doretha_2019-01-31T02:45:05.353500
1,548,902,705.3535
5,570
pythondev
help
The `numpy` library has good matrix-manipulation functions.
2019-01-31T02:46:40.354200
Sasha
pythondev_help_Sasha_2019-01-31T02:46:40.354200
1,548,902,800.3542
5,571
pythondev
help
I kept on getting this after run: ValueError: operands could not be broadcast together with shapes (6,) (36,36)
2019-01-31T02:49:13.354400
Doretha
pythondev_help_Doretha_2019-01-31T02:49:13.354400
1,548,902,953.3544
5,572
pythondev
help
It looks weird that your `guess` has only 2 elements... I would have expected 6.
2019-01-31T02:53:02.355100
Sasha
pythondev_help_Sasha_2019-01-31T02:53:02.355100
1,548,903,182.3551
5,573
pythondev
help
I dont know what your end goal is. If its just to scrape the data and not go much into learning python or programming in general then as is is probably fine.
2019-01-31T02:56:40.355200
Leida
pythondev_help_Leida_2019-01-31T02:56:40.355200
1,548,903,400.3552
5,574
pythondev
help
Ahh. So i tried running it again with 6 elements, still i get the same error.
2019-01-31T02:56:41.355400
Doretha
pythondev_help_Doretha_2019-01-31T02:56:41.355400
1,548,903,401.3554
5,575
pythondev
help
I suspect something is wrong with your matrix axes, that the `dot` call wants a 1x6 instead of a 6x1 or something. I'd start printing out some of your intermediate results in the loop and see if they have the right dimensions.
2019-01-31T02:58:34.355600
Sasha
pythondev_help_Sasha_2019-01-31T02:58:34.355600
1,548,903,514.3556
5,576
pythondev
help
Solved issue. Thanks <@Valeri> &amp; <@Sasha> :taco::taco:
2019-01-31T02:59:36.356500
Winona
pythondev_help_Winona_2019-01-31T02:59:36.356500
1,548,903,576.3565
5,577
pythondev
help
Your code dips into using threads. Threads are like different dimensions for data processing. In one the data grabbing is done, in the other the processing and saving. The problem with threads is passing data between them. You can have problems where two different threads try to write or read the same data and the outc...
2019-01-31T03:02:54.356600
Leida
pythondev_help_Leida_2019-01-31T03:02:54.356600
1,548,903,774.3566
5,578
pythondev
help
It seems to me that the stream not only returns you the values it grabbed off twitter but also sends you all the errors that happend on the other thread. For debugging you should figure out how to read the errors the stream sends you. Your solution of simply restarting the stream may well be the only option even if you...
2019-01-31T03:06:23.356900
Leida
pythondev_help_Leida_2019-01-31T03:06:23.356900
1,548,903,983.3569
5,579
pythondev
help
here’s what it ended up as. I worked with someone on Codementor cause i ran out of time. ``` def compute_difference(enroll, cv_data, wanted_keys=["section_id", "user_id"]): """Returns differences between two lists of dictionary. Takes two lists of dictionaries, A, and B, and returns two lists L1, L2 where:...
2019-01-31T03:38:01.357300
Devin
pythondev_help_Devin_2019-01-31T03:38:01.357300
1,548,905,881.3573
5,580
pythondev
help
im running python3.7 on my raspberry pi and somehow f-strings work in repl but throws errors in scripts
2019-01-31T04:27:49.358500
Leida
pythondev_help_Leida_2019-01-31T04:27:49.358500
1,548,908,869.3585
5,581
pythondev
help
ah nvm i think i solved it...
2019-01-31T04:28:01.358800
Leida
pythondev_help_Leida_2019-01-31T04:28:01.358800
1,548,908,881.3588
5,582
pythondev
help
different user different python3 alias
2019-01-31T04:28:14.359100
Leida
pythondev_help_Leida_2019-01-31T04:28:14.359100
1,548,908,894.3591
5,583
pythondev
help
Hey everyone, does anybody know how to properly package `langdetect` with pyinstaller? Been trying with `.spec` files but without success :disappointed:
2019-01-31T05:16:03.359900
Lucius
pythondev_help_Lucius_2019-01-31T05:16:03.359900
1,548,911,763.3599
5,584
pythondev
help
Willing to buy someone a coffee for taking me through it :face_with_rolling_eyes:
2019-01-31T05:39:48.360200
Lucius
pythondev_help_Lucius_2019-01-31T05:39:48.360200
1,548,913,188.3602
5,585
pythondev
help
you want it to distribute it by pip
2019-01-31T08:20:40.361500
Rolando
pythondev_help_Rolando_2019-01-31T08:20:40.361500
1,548,922,840.3615
5,586
pythondev
help
or with an exe
2019-01-31T08:20:44.361700
Rolando
pythondev_help_Rolando_2019-01-31T08:20:44.361700
1,548,922,844.3617
5,587
pythondev
help
It needs to be a .exe for win 10 :)
2019-01-31T08:38:50.362300
Lucius
pythondev_help_Lucius_2019-01-31T08:38:50.362300
1,548,923,930.3623
5,588
pythondev
help
Newbie question, how could I convert 39999 to 399.99?
2019-01-31T09:39:31.367700
Jolanda
pythondev_help_Jolanda_2019-01-31T09:39:31.367700
1,548,927,571.3677
5,589
pythondev
help
`39999/100`
2019-01-31T09:40:43.368200
Carrol
pythondev_help_Carrol_2019-01-31T09:40:43.368200
1,548,927,643.3682
5,590
pythondev
help
`float(39999) / float(100)`
2019-01-31T09:42:46.369300
Conrad
pythondev_help_Conrad_2019-01-31T09:42:46.369300
1,548,927,766.3693
5,591
pythondev
help
Do you have any idea what I need to check, to solve this error " Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings' " this happens only if i click some links in my app
2019-01-31T09:43:01.369600
Lourie
pythondev_help_Lourie_2019-01-31T09:43:01.369600
1,548,927,781.3696
5,592
pythondev
help
<@Jolanda> are you trying to get it to money?
2019-01-31T09:43:55.369900
Cleotilde
pythondev_help_Cleotilde_2019-01-31T09:43:55.369900
1,548,927,835.3699
5,593
pythondev
help
<https://askubuntu.com/questions/640010/fatal-python-error-py-initialize-unable-to-get-the-locale-encoding-syntaxe>
2019-01-31T09:44:28.370000
Jonas
pythondev_help_Jonas_2019-01-31T09:44:28.370000
1,548,927,868.37
5,594
pythondev
help
Are you doing anything strange with Python itself? Any C libraries you've written?
2019-01-31T09:45:10.370300
Jonas
pythondev_help_Jonas_2019-01-31T09:45:10.370300
1,548,927,910.3703
5,595
pythondev
help
ive done that a year ago, i can check my code wait some minutes
2019-01-31T10:09:20.370500
Rolando
pythondev_help_Rolando_2019-01-31T10:09:20.370500
1,548,929,360.3705
5,596
pythondev
help
ok, used cx_freeze
2019-01-31T10:10:47.370700
Rolando
pythondev_help_Rolando_2019-01-31T10:10:47.370700
1,548,929,447.3707
5,597
pythondev
help
here is the setup
2019-01-31T10:10:49.370900
Rolando
pythondev_help_Rolando_2019-01-31T10:10:49.370900
1,548,929,449.3709
5,598
pythondev
help
```from cx_Freeze import setup, Executable import os.path PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__)) os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6') os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6') base = None executables = [Executable("k...
2019-01-31T10:11:04.371100
Rolando
pythondev_help_Rolando_2019-01-31T10:11:04.371100
1,548,929,464.3711
5,599
pythondev
help
then i had to run a comand i dont remember but check cx freeze documentation
2019-01-31T10:11:20.371300
Rolando
pythondev_help_Rolando_2019-01-31T10:11:20.371300
1,548,929,480.3713
5,600
pythondev
help
Yes
2019-01-31T10:25:49.371600
Jolanda
pythondev_help_Jolanda_2019-01-31T10:25:49.371600
1,548,930,349.3716
5,601
pythondev
help
you could do something like this
2019-01-31T10:33:29.371800
Cleotilde
pythondev_help_Cleotilde_2019-01-31T10:33:29.371800
1,548,930,809.3718
5,602
pythondev
help
``` &gt;&gt;&gt; num = 39999 &gt;&gt;&gt; num_float = num / 100.00 &gt;&gt;&gt; '${:,.2f}'.format(num_float) '$399.99' ```
2019-01-31T10:33:37.372100
Cleotilde
pythondev_help_Cleotilde_2019-01-31T10:33:37.372100
1,548,930,817.3721
5,603
pythondev
help
if you want the dollar sign
2019-01-31T10:33:42.372300
Cleotilde
pythondev_help_Cleotilde_2019-01-31T10:33:42.372300
1,548,930,822.3723
5,604
pythondev
help
or if you’re doing multiple currency, <https://github.com/carlospalol/money>
2019-01-31T10:34:53.372600
Hiroko
pythondev_help_Hiroko_2019-01-31T10:34:53.372600
1,548,930,893.3726
5,605
pythondev
help
So I’m trying to work with a subprocess where the subprocess is asking for input, but I want to store the output
2019-01-31T10:36:13.373300
Faith
pythondev_help_Faith_2019-01-31T10:36:13.373300
1,548,930,973.3733
5,606
pythondev
help
input gets passed to the process. But as I’m storing the output in subprocess.PIPE it isn’t being shown on the screen
2019-01-31T10:36:44.373900
Faith
pythondev_help_Faith_2019-01-31T10:36:44.373900
1,548,931,004.3739
5,607
pythondev
help
I’m probably missing something but I rarely use subprocess
2019-01-31T10:36:59.374300
Faith
pythondev_help_Faith_2019-01-31T10:36:59.374300
1,548,931,019.3743
5,608
pythondev
help
Anyone know a way to print the output while still capturing it?
2019-01-31T10:37:24.374700
Faith
pythondev_help_Faith_2019-01-31T10:37:24.374700
1,548,931,044.3747
5,609
pythondev
help
If you want to capture the output as well as print it, you'll need to either get a file-type object that you can pass into pipe that will store and print at the same time, or you'll need to be regularly printing the file object you passed as the stdout.
2019-01-31T10:39:39.375900
Carmen
pythondev_help_Carmen_2019-01-31T10:39:39.375900
1,548,931,179.3759
5,610
pythondev
help
Hi all, I am trying to understand classes and don’t get what you need in parameters, or why you’d use them. I’ve set up my version of an exercism exercise to translate age into different second values on different planets. I want my class to interpret the user data and change the value based on that. Conceptually I’m l...
2019-01-31T11:56:09.376700
Leopoldo
pythondev_help_Leopoldo_2019-01-31T11:56:09.376700
1,548,935,769.3767
5,611
pythondev
help
so, the first bit, `class SpaceAge`
2019-01-31T12:04:15.377200
Hiroko
pythondev_help_Hiroko_2019-01-31T12:04:15.377200
1,548,936,255.3772
5,612
pythondev
help
the parameter for that is for anything that class should inherit from a parent class
2019-01-31T12:04:37.377700
Hiroko
pythondev_help_Hiroko_2019-01-31T12:04:37.377700
1,548,936,277.3777
5,613
pythondev
help
lets say you have ```class Shape(object): # methods here class Circle(Shape): # methods here that can ovveride methods in Shape ```
2019-01-31T12:05:44.378800
Hiroko
pythondev_help_Hiroko_2019-01-31T12:05:44.378800
1,548,936,344.3788
5,614
pythondev
help
so, lets say you want to have a method `area` in `Shape ```class Shape(object): def area(self): raise NotImplementedError('Shape doesn't define a default implementation of area') class Circle(Shape): def __init__(self, diameter): self.diameter = diameter def area(self): return (ma...
2019-01-31T12:09:12.381500
Hiroko
pythondev_help_Hiroko_2019-01-31T12:09:12.381500
1,548,936,552.3815
5,615
pythondev
help
so, you can do ```s = Shape()```
2019-01-31T12:09:26.381900
Hiroko
pythondev_help_Hiroko_2019-01-31T12:09:26.381900
1,548,936,566.3819
5,616
pythondev
help
but if you do `s.area()`, you’ll get your error, because it explifictly raises the not implemented error
2019-01-31T12:09:54.382600
Hiroko
pythondev_help_Hiroko_2019-01-31T12:09:54.382600
1,548,936,594.3826
5,617
pythondev
help
however, if you do ```c = Circle(2947) c.area() # outputs 6821033.038```
2019-01-31T12:10:50.383400
Hiroko
pythondev_help_Hiroko_2019-01-31T12:10:50.383400
1,548,936,650.3834
5,618
pythondev
help
so, for your example, you can remove `e_seconds` from `SpaceAge`
2019-01-31T12:11:22.384100
Hiroko
pythondev_help_Hiroko_2019-01-31T12:11:22.384100
1,548,936,682.3841
5,619
pythondev
help
its already a parameter for your init, so you pass it in like ```s_a = SpaceAge(8376456) s_a.jupiter() # calls the method ```
2019-01-31T12:12:21.385100
Hiroko
pythondev_help_Hiroko_2019-01-31T12:12:21.385100
1,548,936,741.3851
5,620