Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iterators + strings + getattr completion #24

Closed
dbrgn opened this issue Oct 2, 2012 · 25 comments
Closed

iterators + strings + getattr completion #24

dbrgn opened this issue Oct 2, 2012 · 25 comments
Labels

Comments

@dbrgn
Copy link
Collaborator

dbrgn commented Oct 2, 2012

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.

@dbrgn
Copy link
Collaborator Author

dbrgn commented Oct 2, 2012

I'll pay you a pint of Murphy's if you solve this 😉 🍻

@davidhalter
Copy link
Owner

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.

@davidhalter
Copy link
Owner

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

@dbrgn
Copy link
Collaborator Author

dbrgn commented Oct 23, 2012

There goes your pint.

@davidhalter
Copy link
Owner

Who knows :-D

@davidhalter
Copy link
Owner

Be prepared! Jedi supports additions now: b22c9c9

@dbrgn
Copy link
Collaborator Author

dbrgn commented Mar 9, 2014

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 ;)

@davidhalter
Copy link
Owner

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 :-)

@davidhalter
Copy link
Owner

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 :-))

@dbrgn
Copy link
Collaborator Author

dbrgn commented Mar 15, 2014

Congrats.

@MathieuDuponchelle
Copy link

I need closure, did you actually get that pint ?

@davidhalter
Copy link
Owner

NO! :D

Not yet ;-)

@MathieuDuponchelle
Copy link

Awwww

@dbrgn
Copy link
Collaborator Author

dbrgn commented Feb 10, 2016

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

@davidhalter remind me next time we meet :D

@hashier
Copy link

hashier commented Mar 19, 2021

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

@dbrgn
Copy link
Collaborator Author

dbrgn commented Mar 19, 2021

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

@davidhalter
Copy link
Owner

I like this thread :D


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

@dbrgn
Copy link
Collaborator Author

dbrgn commented Mar 19, 2021

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 😄)

@hashier
Copy link

hashier commented Mar 23, 2021

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.

@davidhalter
Copy link
Owner

davidhalter commented Mar 23, 2021

@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) :).

@Anu-bhav
Copy link

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

@pvgmenegasso
Copy link

Those little gold nuggets you find lying around in issue discussions.

@dbrgn
Copy link
Collaborator Author

dbrgn commented Apr 27, 2022

It really happened!

@davidhalter
Copy link
Owner

Simple Feature: Takes 2 years to implement
Management: Delays payment for 8 years

Thanks Danilo! :)

@MathieuDuponchelle
Copy link

Finally! Closure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants