FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/python/ql/src/Classes/MissingCallToDel.py at codeql-cli/v2.15.3 · github/codeql · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
github
/
codeql
Public
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
10k
Code
Issues
998
Pull requests
461
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
python
/
ql
/
src
/
Classes
/
MissingCallToDel.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (17 loc) · 554 Bytes
Breadcrumbs
codeql
/
python
/
ql
/
src
/
Classes
/
MissingCallToDel.py
Copy path
File metadata and controls
26 lines (17 loc) · 554 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class
Vehicle
(
object
):
def
__del__
(
self
):
recycle
(
self
.
base_parts
)
class
Car
(
Vehicle
):
def
__del__
(
self
):
recycle
(
self
.
car_parts
)
Vehicle
.
__del__
(
self
)
#Car.__del__ is missed out.
class
SportsCar
(
Car
,
Vehicle
):
def
__del__
(
self
):
recycle
(
self
.
sports_car_parts
)
Vehicle
.
__del__
(
self
)
#Fix SportsCar by calling Car.__del__
class
FixedSportsCar
(
Car
,
Vehicle
):
def
__del__
(
self
):
recycle
(
self
.
sports_car_parts
)
Car
.
__del__
(
self
)
Back
|
FazBrowse Home
|
New Git URL