Jedi: iterators + strings + getattr completion

Created on 2 Oct 2012  路  21Comments  路  Source: davidhalter/jedi

class FooBar(object):
    raboof = 'fourtytwo'

target = u'' 
for char in reversed(['f', 'o', 'o', 'b', 'a', 'r']):
    target += char

answer = getattr(FooBar, target)
answer.<tab>

...doesn't work. Jedi sucks so much.

feature

Most helpful comment

You owe me a pint of Murphy's :-) Jedi sucks not so much anymore ;-)

(It just about 2 weeks to complete this (refactoring/restructuring Jedi code), which means I'm willing to give up two weeks of my life just for a pint :-))

All 21 comments

I'll pay you a pint of Murphy's if you solve this :wink: :beers:

I think you forgot to include meta classes, array indexing and setattr. There are far more complicated ways to do this :-D But I agree. Jedi sucks so much.

I'll close this for now. Concatenating strings is very very far away and probably won't be implemented ever.

There goes your pint.

Who knows :-D

Uhh... Well, my balcony is ready, the sun is shining and the shop next door carries Murphy's. By the way, I also have a new Weber barbecue and a lake next door. The offer stands ;)

argh... reversed is a little bit annoying since it's quite a complicated builtin as a whole - not that it would be hard to implement, but it's just not as clean as I would like it :-)

You owe me a pint of Murphy's :-) Jedi sucks not so much anymore ;-)

(It just about 2 weeks to complete this (refactoring/restructuring Jedi code), which means I'm willing to give up two weeks of my life just for a pint :-))

Congrats.

I need closure, did you _actually_ get that pint ?

NO! :D

Not yet ;-)

Awwww

Arrgh @MathieuDuponchelle, why did you bring that up :(

@davidhalter remind me next time we meet :D

5 years later, did we get a happy ending and a pint of Murphy's?

Good call! I added an entry to my calendar on June 1st: "Invite @davidhalter in case the pandemic has faded away".

I like this thread :D


He didn't even bring a pint of Murphy's to my wedding :)

Well, YOU on the other hand you didn't even offer your guests a chair, we had to sit on the floor!!!


(PS: To be precise, we sat on pillows on a meadow and it was awesome!)

(PPS: This @davidhalter guy even forced all his guests sing "Bohemian Rhapsody" in full length before we were allowed to eat!)

(PPPS: I also like this thread 馃槃)

Since I saw Threema in your profile @dbrgn maybe there is a > 0 % chance that you and @davidhalter every go to the CCC (Chaos Communication Congress)? If the pandemic every fades out and you go, I would offer free friendship counseling over some Murphies or Mate that I would provide. I think what you have is worth fighting for! <3 Don't just throw it away.

@hashier I'm usually not at CCC, I'm just watching the talks :). @dbrgn has attended at least once AFAIK. But if you're ever in Zurich let us know (or if I'm ever in Oslo I will let you know) :).

Man this is like a running meme, I was reading the documentation and I came here to find this still active. 馃槀馃憤

Was this page helpful?
0 / 5 - 0 ratings