GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — codeql/python/ql/src/Classes/SlotsInOldStyleClass.ql at main · max2max4u/codeql Expand file tree/ Copy pathSlotsInOldStyleClass.qlMore file actions 18 lines (16 loc) · 567 Bytes / Copy pathSlotsInOldStyleClass.qlFile metadata and controls18 lines (16 loc) · 567 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 /** * @name `__slots__` in old-style class * @description Overriding the class dictionary by declaring `__slots__` is not supported by old-style * classes. * @kind problem * @problem.severity error * @tags portability * correctness * @sub-severity low * @precision very-high * @id py/slots-in-old-style-class */ import python from ClassObject c where not c.isNewStyle() and c.declaresAttribute("__slots__") and not c.failedInference() select c, "Using __slots__ in an old style class just creates a class attribute called '__slots__'" |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |