JavaMiniPython Version 1.1 Released

1 view
Skip to first unread message

Roger Binns

unread,
Feb 10, 2012, 12:31:59 AM2/10/12
to java-min...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A clicky version of the change history is at
http://doc.java-mini-python.googlecode.com/hg/changes.html

All Java non-public items marked private to avoid them showing up in
completions if you copied the code to your own package. (Issue 1)

Do not use String.isEmpty() as it doesn?t exist on Android (Issue 2)

Public entry points are synchronized to prevent concurrent usage (Issue 3)

Added dict.get(key, default) (Issue 5)

Dictionary members can be obtained and set via attribute style access too
(Issue 6):

a={"foo": 3}
# Get
print a["foo"], a.foo
# Set
a.bar=7
print a["bar"], a.bar

Added is/is not operator. Behind the scenes this translates x is y into
id(x) == id(y).

It is possible to do a form of object orientation keeping data and the
functions that operate on it together in the same dictionary as documented
(Issue 7)

Code that attempted to do a rich compare of dictionaries was removed and
their id() is used instead. (Comparisons).

Added dict.copy (Issue 8)

Added jmp-compile option to only do a syntax check

Fixed returns within for loops (Issue 10)

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk80q88ACgkQmOOfHg372QSSOwCgt0gBB4EgoSRMdWCi1fwuiVfE
FUwAoKBrXwZoKi39S/9L9OetbY/gWwrI
=1o9M
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages