On Wednesday November 14 2007 1:02:24 pm Andi Vajda wrote: > On Wed, 14 Nov 2007, Pete wrote: > > Busy day for me... > > > > It looks like JCC is including generating some type names that aren't > > valid python, such as Field$Index and Field$Store. These appear to be > > inner classes, where $ is used as a separtor. While this doesn't seem to > > be causing any problems, you can't actually refer to the name in a source > > file/type it at a shell prompt (the $ generates a SyntaxError), which > > just feels kinda weird. > > Yes, you can. Use Field.Index or Field.Store, these Index and Store classes > are inner classes to the Field class.
I noted that in one of my solutions. > They are named Field$Index or Field$Store because that's the way Java names > inner classes. Sure, I could rename them, but why ? You can use Field.Store > or Field.Index already. In what situation are you faced with having to deal > with Field$Index ? I don't, it just was one of the auto-complete options in my shell (ipython) and it SyntaxError'd me when I tried to use it. As I said, it's not really a problem, it's just weird to have a name you can't type. Since my complaint's aesthetic, nevermind... -- Peter Fein || 773-575-0694 || [EMAIL PROTECTED] http://www.pobox.com/~pfein/ || PGP: 0xCCF6AE6B irc: [EMAIL PROTECTED] || jabber: [EMAIL PROTECTED] _______________________________________________ pylucene-dev mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
