瀏覽代碼

[python] add "delattr" to soft-keywords (see a1795a4f38567479c642eb44573af8d600eea876)

Dan Korostelev 10 年之前
父節點
當前提交
0c2c00709e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      genpy.ml

+ 1 - 1
genpy.ml

@@ -79,7 +79,7 @@ module KeywordHandler = struct
 		let h = Hashtbl.create 0 in
 		List.iter (fun s -> Hashtbl.add h s ()) [
 			"len"; "int"; "float"; "list"; "bool"; "str"; "isinstance"; "print"; "min"; "max";
-			"hasattr"; "getattr"; "setattr"; "callable"; "type"; "ord"; "chr"; "iter"; "map"; "filter";
+			"hasattr"; "getattr"; "setattr"; "delattr"; "callable"; "type"; "ord"; "chr"; "iter"; "map"; "filter";
 			"tuple"; "dict"; "set";
 		];
 		h