W3cubDocs

/Haxe Python

Lib

package python

Available on python

Platform-specific Python Library. Provides some platform-specific functions for the Python target, such as conversion from Haxe types to native types and vice-versa.

Static methods

static anonAsDict (o:{}):Dict<String, Dynamic>

Returns the underlying Dictionary of the anonymous object o. Modifications to this dictionary are reflected in the anonymous Object too.

static anonToDict (o:{}):Dict<String, Dynamic>

Returns a flat copy of the underlying Dictionary of o.

static dictAsAnon (d:Dict<String, Dynamic>):Dynamic

Returns the Dictionary d as an anonymous Object. Modifications to the object are reflected in the Dictionary too.

static dictToAnon (v:Dict<String, Dynamic>):Dynamic

Returns an anonymous Object which holds the same data as the Dictionary v.

static print (v:Dynamic):Void

Print the specified value on the default output.

static println (v:Dynamic):Void

Print the specified value on the default output followed by a newline character.

static inline toHaxeIterable<T> (it:NativeIterable<T>):HaxeIterable<T>

Return Haxe iterable from Python native iterable.

static inline toHaxeIterator<T> (it:NativeIterator<T>):HaxeIterator<T>

Return Haxe iterator instance from Python native iterable.

static toPythonIterable<T> (it:Iterable<T>):NativeIterable<T>

Return Python native iterable from Haxe iterable.

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/python/Lib.html