Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 23 10:21
    dependabot[bot] labeled #2128
  • Sep 23 10:21

    dependabot[bot] on pip

    Bump urllib3 from 1.26.6 to 1.2… (compare)

  • Sep 23 10:21
    dependabot[bot] opened #2128
  • Sep 23 05:10
    dependabot[bot] labeled #301
  • Sep 23 05:10
    dependabot[bot] opened #301
  • Sep 23 05:10

    dependabot[bot] on pip

    Bump urllib3 from 1.26.6 to 1.2… (compare)

  • Sep 23 00:19
    dependabot[bot] labeled #357
  • Sep 23 00:19
    dependabot[bot] opened #357
  • Sep 23 00:19

    dependabot[bot] on pip

    Bump urllib3 from 1.26.6 to 1.2… (compare)

  • Sep 22 08:09
    paugier opened #2127
  • Sep 20 21:59
    klen closed #2095
  • Sep 20 10:21
    dependabot[bot] labeled #2126
  • Sep 20 10:21
    dependabot[bot] opened #2126
  • Sep 20 10:21

    dependabot[bot] on pip

    Bump charset-normalizer from 2.… (compare)

  • Sep 20 05:38

    pquentin on pip

    (compare)

  • Sep 20 05:38

    pquentin on master

    Bump charset-normalizer from 2.… (compare)

  • Sep 20 05:38
    pquentin closed #356
  • Sep 20 05:09

    dependabot[bot] on pip

    (compare)

  • Sep 20 05:09
    dependabot[bot] closed #299
  • Sep 20 05:09
    dependabot[bot] labeled #300
Lura Skye
@Fuyukai
but it got removed and now that stayed there
Matthias Urlichs
@smurfix
Well, I've seen worse explanations for inexplicable code ;-)
Lura Skye
@Fuyukai
i've rewritten the ws code in that lbi about 5 times already
going for a sixth now at some point
trio-tyro
@trio-tyro
What do Poll and Pong mean in context of Dataplicity Lomond? I understood lil' bit about Poll from Wikipedia but I'd like to know more clearly.
Nathaniel J. Smith
@njsmith
@trio-tyro it looks like Poll is a quirky thing that's specific to that library: https://lomond.readthedocs.io/en/latest/guide.html#polling
Pong is a standard websocket thing – the websocket protocol has basically 5 types of messages it can send: a text (unicode) message, a binary message, a Ping, a Pong, or Close
Ping/Pong are for keepalive: https://en.wikipedia.org/wiki/Keepalive
Matthias Urlichs
@smurfix
You can simply remove poll from that library when you're converting it to Trio, it only makes sense for a synchronous library
Nathaniel J. Smith
@njsmith
hmm, so currently we have BrokenStreamError and ClosedStreamError, and ResourceBusyError... now I need to rename ClosedStreamError to either ResourceClosedError or ClosedResourceError or ClosedError, and I'm not sure which to pick :-)
Lura Skye
@Fuyukai
any chance you could make them into a proper exception tree too
like have them inherit from something
Nathaniel J. Smith
@njsmith
if it makes sense? what are the more abstract categories that you think people would want to catch and treat the same?
Lura Skye
@Fuyukai
well given that they're connection errors maybe being inherited from ConnectionError
Nathaniel J. Smith
@njsmith
they're already pretty distinct (BrokenStreamError = peer or network problem, encompasses lots of different OSErrors, ClosedStreamError/whatever we call it = you closed this then tried to use it, ResourceBusyError = you're trying to read/write the same object from two different tasks at the same time)
Lura Skye
@Fuyukai
oh ResourceBusyError doesn't fit
I didn't see that
but BrokenStreamError/ClosedStreamError would be nice as ConnectionError (or even OSError) subclasses
Nathaniel J. Smith
@njsmith
the builtin ConnectionError is part of the OSError hierarchy, so instances are supposed to have some specific errno; these aren't really that
e.g. you can get a {Broken,Closed}StreamError from an in-memory stream; the point is they abstract away from the actual transport mechanism, while OSErrors are all about one specific transport mechanism
maybe I should just rename all of them to BrokenResourceError / ClosedResourceError / BusyResourceError while I'm at it
but BusyResource sounds a little weird, I guess b/c POSIX has a standard "Device or resource busy" message, so I'm used to hearing them in that order...
or could just make them BrokenError / ClosedError / BusyError but feels a bit too terse
Matthias Urlichs
@smurfix
does anybody here have Mac OSX, or can get me a SSH login on one? the trio-asyncio test stalls semi-randomly on Travis and I have no idea why that happens, or how to debug that
Adam Hopkins
@ahopkins
Hello everyone. Can I just say kudos to all the core developers?
I have been struggling for a couple days to get exactly the right service setup I want to handle keeping several files open for I/O while handling incoming sockets.
I was just not happy with the arrangement that I had. After stumbling upon trio, I was up and running EXACTLY as I envisioned it in about 10 minutes.
What a breath of fresh air. Well done.
So easy and seemless.
Nathaniel J. Smith
@njsmith
@ahopkins oh excellent!
what were you using before?
Adam Hopkins
@ahopkins
asyncio
Nathaniel J. Smith
@njsmith
@smurfix hmm, I have a login on a MacOS machine, but not admin rights... I could try asking tomorrow about getting you a login. Or if you get desperate, there's options like: https://www.howtogeek.com/289594/how-to-install-macos-sierra-in-virtualbox-on-windows-10/
Adam Hopkins
@ahopkins
I was going to switch to curio, and before deciding I stumbled upon your article
Nathaniel J. Smith
@njsmith
@smurfix it seems likely that someone around here has macos, but I don't know how many people have ssh access set up :-/
@ahopkins well, I'm glad it's working out for you :-) is there anything that tripped you up so far?
Adam Hopkins
@ahopkins
@njsmith Nope. Thank you for asking. The documentation is very helpful and I have found the API quite intuitive.
Is there a list somewhere of projects created using trio?
Nathaniel J. Smith
@njsmith
you can search pypi for projects with the Framework :: Trio classifier: https://pypi.org/search/?c=Framework+%3A%3A+Trio
not sure if everyone is using it yet though
I also want to add a page to the docs with some suggestions for common needs, but haven't gotten around to it yet
Quentin Pradet
@pquentin
@smurfix I have a macOS machine but cannot give access to it unfortunately
  cannot collect test class 'TestBaseSelectorEventLoop' because it has a __init__ constructor
  cannot collect test class 'TestSubprocessTransport' because it has a __init__ constructor
^ is this expected?
tests/python/test_events.py::TrioEventLoopTests::test_read_pty_output appears to stall indeed
it's funny because I have written a pty-related script at work that only works on macOS but not on Linux
Quentin Pradet
@pquentin
I also have 3 xpass
Matthias Urlichs
@smurfix
@pquentin Can you could help fix this bug? that'd be awesome.
Quentin Pradet
@pquentin
@smurfix is it the only that stalls?
Matthias Urlichs
@smurfix
There's one other, with a fairly silly name that I was sure to remember but currently can't. :-/
but I'll just restart the Mac build job a couple of times and Travis will find it
Quentin Pradet
@pquentin
I'll try to look but can't make promises, sorry!