Yury Selivanov

@1st1

Founder & CEO of EdgeDB • Python core developer • PSF fellow • async/await • asyncio • uvloop • asyncpg

Vrijeme pridruživanja: studeni 2007.

Medijski sadržaj

  1. 31. sij
    Prikaži ovu nit
  2. 18. stu 2019.

    That sweet feeling of hammering a nail with a nuclear warhead.

  3. 8. stu 2019.

    uvloop has been downloaded 15,000,000 times. oO. Thank you for using it!

  4. 19. ruj 2019.
  5. 19. ruj 2019.

    At Open Core Summit. DM me if you're here! – mjesto: Palace of Fine Arts Theater

  6. 8. ruj 2019.

    I'm in London for a week for Python core sprint at Bloomberg. PM if you want to hang out!

  7. 22. kol 2019.

    MagicStack is relocating. End of an era and a big new beginning. The plate above the window reads .

  8. 14. kol 2019.
  9. 12. kol 2019.

    12. To solve (11), we added a new magic method to Python 3.6: "__init_subclass__". It allows to implement many of the things people typically use metaclasses for with a simpler pattern. E.g. here's a primitive class registry:

    Prikaži ovu nit
  10. 12. kol 2019.

    11. There's a complication though. When metaclasses are used with multiple inheritance, it's easy to arrive to a situation when there's more than one custom metaclass to chose from:

    Prikaži ovu nit
  11. 12. kol 2019.

    8. Now let's get back to __new__ and __init__ methods we talked about in (1). What if we specify them for a metaclass? We certainly can. In that case they will allow us to fully control how classes are constructed:

    Prikaži ovu nit
  12. 12. kol 2019.

    5. A class is a metaclass when it's derived from the "type" class. To later use a metaclass, we use a slightly unintuitive (at first) syntax:

    Prikaži ovu nit
  13. 12. kol 2019.

    2. If we go low-level we will realize that the "class" statement is a syntax sugar. For example, the previous example is (pretty much) equivalent to this:

    Prikaži ovu nit
  14. 12. kol 2019.

    1. We first need to talk about regular classes, and specifically about __new__() and __init__() methods. The former is actually a static method—it's called when an instance of the class is constructed. The __init__() method then initializes that instance.

    Prikaži ovu nit
  15. 9. svi 2019.
  16. 26. tra 2019.

    Is it just me or is Twitter actually overdoing it with the "tweet" button sometimes?

  17. 24. tra 2019.

    2. As a side note, I find the types syntax in TypeScript more readable and convenient than in Python. Maybe we should push for something like that in Python too? What do you think?

    Prikaži ovu nit
  18. 15. tra 2019.
    Odgovor korisnicima
  19. 14. tra 2019.

    An amazing talk about rust, data structures, and concurrency by

  20. 11. tra 2019.

    And yeah, benchmark results are pretty interesting.

Čini se da učitavanje traje već neko vrijeme.

Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.

    Možda bi vam se svidjelo i ovo:

    ·