chey

Results 28 comments of chey

I am curious if this library does work for Robot Inventor (https://www.lego.com/en-us/product/robot-inventor-51515) Any luck @ChristophGaukel ?

`build` doesn't alter URLs: ```python >>> URL("http://localhost:9090").build(port=8080) Traceback (most recent call last): File "", line 1, in File "/Users/chey/work/vicinity/venv/lib/python3.10/site-packages/yarl/_url.py", line 216, in build raise ValueError('Can\'t build URL with "port" but...

Yes, it's clear `with` will not be a good method choice. Maybe `alter` would be sufficient. Looking at `pathlib` i see names like `unparse` and `unsplit` which seem confusing at...

> `pathlib` doesn't have such methods, maybe you were looking at [`urllib.parse`](https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlunsplit) instead? Yes, that's what I was referring to.

> You can add the above locally if you want to: > > ```python > >>> def with_(self, **kwargs): > ... new = self > ... for key, value in...

How different is this new method compared to using the following? ```python >>> url = URL("http://example.com/foo") >>> url / "bar" / "ham" / "spam/sub" URL('http://example.com/foo/bar/ham/spam/sub') ```

This feature already exists.

Take a look at #47 and see if that helps you out.

> 1. suppose we have 40 functions, > and want to expose all, but exclude only 10…. Depending on how you use `import` ... `__all__` could be useful in your...

Your example seems to work fine when I tested it. Since you have a required argument `name`, you have to specify it. ```shell python3 example1.py --name=foo ``` Output ``` NAME...