Hi Thomas,
On Fri, 2 Mar 2012, Thomas Koch wrote:
thanks for the feedback! I revised the code and send you attached a new
patch.
Sorry for the delay in getting back to you.
I integrated your patch and fixed a bunch of formatting and bugs in it.
The collections-demo.py is not fully function
Hi Thomas,
Here are comments inline on your patch, quoting just the relevant fragments.
Thank you !
Andi..
Index: python/collections.py
===
--- python/collections.py (revision 1292224)
+++ python/collections.py (work
> Attached is a patch against
> http://svn.apache.org/repos/asf/lucene/pylucene/branches/pylucene_3_5/
> (revision 1292224)
>
Should be attached NOW ,-)
regards
Thomas
s
>>> ps.size()
3
>>> js = lucene.HashSet(ps)
>>> js
now we have created an instance of a java.utilHashSet with a python "native"
set (s) wrapped by the collections.JavaSet as constructor argument
(BTW, I found it difficult to understand why one class
> Arrays.asList converts java arrays to java lists, and you can pass a
python
> sequence to it. From there, all of the collection constructors can be
passed
> other collections.
>
Thanks, Aric - that helped a lot.
Will also look at the hints Andi send earlier this day.
Regards,
Thomas