home.social

#dicts — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #dicts, aggregated by home.social.

  1. @winniehell

    It is #unfortunate. It would be nice if we had a fourth member to go after #parentheses, #brackets, and #braces.

    I tend not to use set literals, preferring `set(sequence)`. Maybe it's because my brain insists they're broken #dicts.

  2. @winniehell

    It is #unfortunate. It would be nice if we had a fourth member to go after #parentheses, #brackets, and #braces.

    I tend not to use set literals, preferring `set(sequence)`. Maybe it's because my brain insists they're broken #dicts.

  3. @winniehell

    It is #unfortunate. It would be nice if we had a fourth member to go after #parentheses, #brackets, and #braces.

    I tend not to use set literals, preferring `set(sequence)`. Maybe it's because my brain insists they're broken #dicts.

  4. @winniehell

    It is #unfortunate. It would be nice if we had a fourth member to go after #parentheses, #brackets, and #braces.

    I tend not to use set literals, preferring `set(sequence)`. Maybe it's because my brain insists they're broken #dicts.

  5. @winniehell

    It is #unfortunate. It would be nice if we had a fourth member to go after #parentheses, #brackets, and #braces.

    I tend not to use set literals, preferring `set(sequence)`. Maybe it's because my brain insists they're broken #dicts.

  6. @nosherwan @xblasco This article for #Python #dicts is interesting: tenthousandmeters.com/blog/pyt

    For one, it reiterates the time complexity as O(1), but then you can see the graph where it doesn't follow theory when benchmarked.

    The article explains why. CPU Caches.

    But the underlying question is, should be considered O(1) if in practice doesn't follow it?

  7. @nosherwan @xblasco This article for #Python #dicts is interesting: tenthousandmeters.com/blog/pyt

    For one, it reiterates the time complexity as O(1), but then you can see the graph where it doesn't follow theory when benchmarked.

    The article explains why. CPU Caches.

    But the underlying question is, should be considered O(1) if in practice doesn't follow it?

  8. @nosherwan @xblasco This article for #Python #dicts is interesting: tenthousandmeters.com/blog/pyt

    For one, it reiterates the time complexity as O(1), but then you can see the graph where it doesn't follow theory when benchmarked.

    The article explains why. CPU Caches.

    But the underlying question is, should be considered O(1) if in practice doesn't follow it?

  9. @nosherwan @xblasco This article for #Python #dicts is interesting: tenthousandmeters.com/blog/pyt

    For one, it reiterates the time complexity as O(1), but then you can see the graph where it doesn't follow theory when benchmarked.

    The article explains why. CPU Caches.

    But the underlying question is, should be considered O(1) if in practice doesn't follow it?

  10. @[email protected] @xblasco This article for is interesting: tenthousandmeters.com/blog/pyt

    For one, it reiterates the time complexity as O(1), but then you can see the graph where it doesn't follow theory when benchmarked.

    The article explains why. CPU Caches.

    But the underlying question is, should be considered O(1) if in practice doesn't follow it?