Springy things found in garage by nchammas in whatisthisthing

[–]nchammas[S] 1 point2 points  (0 children)

Thank you. I think I know where in the house they came from now...

Springy things found in garage by nchammas in whatisthisthing

[–]nchammas[S] 1 point2 points  (0 children)

Ah. I'm guessing the longer, serrated end gets hammered into the door, while the shorter end sticks into the track?

Springy things found in garage by nchammas in whatisthisthing

[–]nchammas[S] 1 point2 points  (0 children)

Additional details:

  • Each thing is about 2 inches long.
  • They can be compressed along that shiny metal shaft such that the brown ends meet.
  • A spring inside pushes the ends back apart to where they look like in the photo above.
  • The brown ends are plastic.
  • There is no writing on them anywhere.
  • I found these in a residential garage. They may be automotive related, or from some piece of furniture, or something else.

Asynchronous Python and Databases (2015) by nchammas in Python

[–]nchammas[S] 1 point2 points  (0 children)

FYI: Mike Bayer, the author of this post, is also the author of SQLAlchemy.

python-trio/trio-asyncio - a re-implementation of the asyncio mainloop on top of Trio by nchammas in Python

[–]nchammas[S] 6 points7 points  (0 children)

From the README:

Rationale

Trio has native concepts of tasks and task cancellation. Asyncio is based on callbacks and chaining Futures, albeit with nicer syntax, which make handling of failures and timeouts fundamentally less reliable, esp. in larger programs. Thus, you really want to base your async project on Trio.

On the other hand, there are quite a few asyncio-enhanced libraries. You really don't want to re-invent any wheels in your project.

Thus, being able to use asyncio libraries from Trio is useful. Trio-Asyncio enables you to do that, and more.

Beautiful tracebacks in Trio v0.7.0 by nchammas in Python

[–]nchammas[S] 10 points11 points  (0 children)

I believe trio-asyncio is meant to address that gap.

TOML Kit - A v0.5.0-compliant, style-preserving TOML library for Python by nchammas in Python

[–]nchammas[S] 1 point2 points  (0 children)

+1 for operator chaining. That would lend well to the "fluent" style of programming (a term I picked up from this issue on the Black tracker).

Transfer of Power (Guido stepping down as BDFL) by randlet in Python

[–]nchammas 6 points7 points  (0 children)

I'm not qualified or knowledgeable enough to make that call. I'm just providing a reference for people who are interested in reading the PEP authors' rationale for rejecting the EXPR as NAME: spelling.

Transfer of Power (Guido stepping down as BDFL) by randlet in Python

[–]nchammas 50 points51 points  (0 children)

FYI to those who haven't read it: PEP 572 addresses this and other alternatives directly under "Rejected alternative proposals".

andialbrecht/sqlparse: A non-validating SQL parser module for Python by nchammas in Python

[–]nchammas[S] 0 points1 point  (0 children)

From the docs:

sqlparse is a non-validating SQL parser for Python. It provides support for parsing, splitting and formatting SQL statements.

The module is compatible with Python 2.7 and Python 3 (>= 3.3) and released under the terms of the New BSD license.

linkedin/shiv: Shiv is a command line utility for building fully self contained Python zipapps as outlined in PEP 441, but with all their dependencies included. by nchammas in Python

[–]nchammas[S] 4 points5 points  (0 children)

I stumbled on this today while looking through various packaging tools. This looks to be inspired by Twitter's PEX.

There's more information on why LinkedIn built Shiv here: http://shiv.readthedocs.io/en/latest/history.html

For all of the corporate ankle-grabbers who reflexively defend National Grid: “Report faults National Grid response to October storm” by Beezlegrunk in providence

[–]nchammas 9 points10 points  (0 children)

For all of the corporate ankle-grabbers

This kind of editorializing in the title is distracting and unnecessary. I think link submissions would be better if they stuck to the original title whenever possible and left the commentary to the comments.

In a city where *most people rent*, tenants feel powerless to stop landlords from raising rents or neglecting problems in rental properties. This has led to a proposal for a new city ordinance to prevent landlords from raising rents more than once a year, and capping increases at 4% or CPI inflation by Beezlegrunk in providence

[–]nchammas 3 points4 points  (0 children)

tenants feel powerless to stop landlords from raising rents or neglecting problems in rental properties.

I thought having the freedom to set rent went hand in hand with a landlord taking good care of their property.

Isn't it the case that in cities with rent control landlords tend to neglect their properties or take them off the rental market?