We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d383a1b commit 8a70fd4Copy full SHA for 8a70fd4
PythonKit/Python.swift
@@ -394,6 +394,10 @@ public struct ThrowingPythonObject {
394
}
395
return (elt0, elt1, elt2, elt3)
396
397
+
398
+ public var count: Int? {
399
+ base.checking.count
400
+ }
401
402
403
@@ -507,6 +511,10 @@ public struct CheckingPythonObject {
507
511
508
512
509
513
514
515
516
+ Int(Python.len(base))
517
510
518
519
520
//===----------------------------------------------------------------------===//
@@ -1402,7 +1410,7 @@ extension PythonObject : Sequence {
1402
1410
1403
1411
extension PythonObject {
1404
1412
public var count: Int {
1405
- Int(Python.len(self))!
1413
+ checking.count!
1406
1414
1407
1415
1408
1416
0 commit comments