Posts by brettcannon@fosstodon.org
(DIR) Post #AQgjnEZUpyvYbhCEwC by brettcannon@fosstodon.org
2022-12-16T18:54:31Z
0 likes, 0 repeats
@nedbat Because no one has proposed it? https://github.com/python/cpython/issues?q=is%3Aissue+pathlib+chdir+is%3Aclosed . Pathlib probably should have been just a pure path-manipulation module, but it has _just_ enough impure methods that it's slowly grown organically to encompass more and more stuff when viewed from the perspective of simplified FS operations (e.g. picking up os.walk(), but not shutils.rmtree()).Please open an issue and I'm happy to have a discussion over there about the idea.
(DIR) Post #AQgjnGL2GiY45QRifw by brettcannon@fosstodon.org
2022-12-16T23:59:13Z
0 likes, 0 repeats
@nedbat @gpshead Possibly not. If you look at what `Path` has, you could draw the line at:1. Everything; there should only be PurePath2. Anything that doesn't help with path resolution; .resolve() is fine, open() is not3. Anything that manipulates state; read_text() is fine, but write_text() isn't4. Anything that just has side effects; unlink(), chdir()5. Some other line I can't think ofBut people ask for more in pathlib constantly because the prefer the API. 🤷
(DIR) Post #ARiU1sBRitKdhV0ovQ by brettcannon@fosstodon.org
2023-01-16T21:41:03Z
0 likes, 0 repeats
@bbaugh @stargirl Can you clarify what you mean by "install or use packages that were not intended"? What tool is installing things that you didn't intend to install?
(DIR) Post #ASEpyuVH3b9c4nzrIe by brettcannon@fosstodon.org
2023-01-13T20:14:17Z
0 likes, 0 repeats
@simon I don't have the time write now to code up an example, but for wasmtime I think you're looking for its concept of _fuel_, which you can control from their Python API (and CLI): https://bytecodealliance.github.io/wasmtime-py/#wasmtime.Config.consume_fuel
(DIR) Post #AUICaJCeBP3hI8NbuK by brettcannon@fosstodon.org
2023-04-04T00:23:30Z
0 likes, 1 repeats
In case contributing to CPython seemed too arduous due to getting set up, I got GitHub Codespaces prebuilds turned on thanks to the PSF! Now you can get a working build of CPython and docs, all with vscode.dev in the browser, in less than a minute!https://discuss.python.org/t/github-codespaces-prebuilds-now-available/25442I'm going to be really curious to hear if this helps out at the PyCon US sprints this year (I unfortunately can't stick around for the sprints).
(DIR) Post #AVkojJuont9EWHxxei by brettcannon@fosstodon.org
2023-05-17T18:21:23Z
0 likes, 0 repeats
@mjg59 Don't forget the shopping mall at Emery and 40th or that it had the nicest movie theater back when I went to Cal
(DIR) Post #AW3n6aMD4BinCDJIJc by brettcannon@fosstodon.org
2023-05-26T22:02:27Z
0 likes, 0 repeats
@simon I know @BajoranEngineer is also a huge fan
(DIR) Post #AWJSVtoOPRff9SzZfE by brettcannon@fosstodon.org
2023-06-02T23:40:18Z
0 likes, 1 repeats
Assuming the analysis by the Fast CPython team is accurate (https://discuss.python.org/t/pep-703-making-the-global-interpreter-lock-optional-3-12-updates/26503/9), getting rid of the GIL is projected to cost 15% of performance on single-threaded code if it were put into Python 3.12. They also extrapolate out and say it could potentially cost 30% for Python 3.14 if the Fast CPython team meet their goals. (FYI the no-GIL PEP projects a 6% cost.)What is the single-threaded performance cost you're willing to pay to get rid of the GIL?
(DIR) Post #AWl5iqV0LPtszN0W2q by brettcannon@fosstodon.org
2023-06-16T19:23:45Z
0 likes, 0 repeats
@simon I use hover.com w/o researching every bullet point listed 😅 And they have been around long enough to rebrand (used to be Tucows)
(DIR) Post #AXSmpx3B7Fm1INrbhw by brettcannon@fosstodon.org
2023-07-07T21:15:31Z
0 likes, 0 repeats
Just upgraded to gigabit fibre internet with #Telus (from 300 Mbps which I actually reached consistently). Speeds that I'm now seeing with my #eero Pro 6E on my new #Pixel Tablet in #Vancouver:- #Mullvad (connected to their Vancouver PoP): 150 Mbps (what I had before)- VPN by #Google One: 390 Mbps- No VPN: 640 Mbps
(DIR) Post #AXuD36jwEEKHaq5nQO by brettcannon@fosstodon.org
2023-07-20T21:14:27Z
1 likes, 0 repeats
Thinking about moving to https://cosocial.ca/ (https://cosocial.info/) to support a Canadian Mastodon instance. Have people found moving to a new Mastodon instance a smooth one?
(DIR) Post #AY82nXawTMk7syvufw by brettcannon@fosstodon.org
2023-07-27T18:57:24Z
0 likes, 0 repeats
@paulralph @seresearchers @academicchatter Did you ask ChatGPT because you already knew how to do ANCOVA in SPSS, or because you believe it's easier regardless of whether you knew?Does SPSS have a way to export your stats work for open reproducibility w/o buying SPSS?
(DIR) Post #AYBAqT6EQoyZNIYjp2 by brettcannon@fosstodon.org
2023-07-28T21:58:52Z
0 likes, 1 repeats
The #Python steering council's decision on PEP 703 which attempts to remove the GIL: https://discuss.python.org/t/a-steering-council-notice-about-pep-703-making-the-global-interpreter-lock-optional-in-cpython/30474Note that this will initially be an experiment. As such, the SC is reserving its right to drop the experiment if it becomes too burdensome to support (both in CPython and in the community in general, including lack of uptake). So for all of those who have been asking for the GIL to be removed, this is very much a "put up or shut up" situation for the community to show they support this.
(DIR) Post #AZB20J3vERhfHN5rgO by brettcannon@fosstodon.org
2023-08-27T23:13:27Z
0 likes, 0 repeats
Short blog post on why I bother trying to lower my carbon footprint by at least a little bit https://snarky.ca/why-i-put-in-some-effort-to-lower-my-carbon-footprint/
(DIR) Post #AZoM9VnAI7l8xyAiW0 by brettcannon@fosstodon.org
2023-09-16T01:01:15Z
0 likes, 0 repeats
Does anyone set the `PYTHONHOME` environment variable? I'm trying to determine how important it is to support in an API.
(DIR) Post #AciJ2LngJzUYAjL4Ea by brettcannon@fosstodon.org
2023-12-11T22:21:13Z
0 likes, 0 repeats
@simon Unfortunately conda environments make the term ambiguous.
(DIR) Post #AsEVAykVnkqlxgD3ku by brettcannon@fosstodon.org
2025-03-19T21:51:42Z
0 likes, 0 repeats
@pganssle I just asked what country they are shipping from since that will greatly influence import taxes and tariffs for non-Americans.
(DIR) Post #AsfJuss1mX63kFzUhM by brettcannon@fosstodon.org
2025-03-31T21:24:47Z
0 likes, 1 repeats
PEP 751 has been accepted! https://peps.python.org/pep-0751/This means #Python now has a lock file standard that can act as an export target for all tools that can create some sort of lock file. And for some tools the format can act as their primary lock file format as well instead of some proprietary format.Also, happy National Indigenous Languages Day in Canada! https://www.canada.ca/en/prairies-economic-development/services/indigenous/national-indigenous-languages-day.html
(DIR) Post #AsfJuxnxR5oP357oY4 by brettcannon@fosstodon.org
2025-03-31T21:27:05Z
0 likes, 0 repeats
Because PEP 751 was accepted as-is, @hynek gets out of having to produce a video on the subject (unless he wants to).
(DIR) Post #Au6NvjrroAweBSjDmq by brettcannon@fosstodon.org
2025-05-14T21:15:12Z
0 likes, 1 repeats
There were layoffs at MS yesterday and 3 #Python core devs from the Faster CPython team were caught in them. If you know of any jobs, please send them their way (they kind of know Python, CPython, and its internals well 😉):Eric Snow: https://www.linkedin.com/in/ericsnowcurrently/Irit Katriel: https://www.linkedin.com/in/irit-katriel/Mark Shannon: https://www.linkedin.com/in/mark-shannon-bb459551/