The Guardian’s chief culture writer Charlotte Higgins on why she was inspired to learn Ukrainian and what it taught her about its people For Charlotte Higgins, the Guardian’s chief culture writer, visiting Ukraine and meeting the artists, novelists and poets under fire changed her life. “It was even before I went home that I decided I needed to learn some Ukrainian,” she tells Helen Pidd . Back in London, she began having weekly lessons with Olha Makar , who was living in the far west of Ukraine and squeezed in teaching between helping displaced teenagers. Continue reading...
The jury reached a verdict in less than three hours in a case that had been unsolved for nearly 30 years. Davis was convicted of murder with the use of a deadly weapon and could be sentenced to life in prison.
Introducing wrapture New from Graham Dumpleton (of wrapt , mod_wsgi, and New Relic's Python agent fame), who describes Wrapture as taking the monkeypatching ideas from wrapt and extending them to apply to testing and tracing at the same time. Wrapture ( full documentation here ) makes it easy to wrap any function or method such that all access can be traced, or can be overridden to return a different value. It acts as both an alternative to unittest.mock and a way to implement tracing against an existing project: Attaching observation to code you do not control, recording what flows through it, and doing so without disturbing the program being watched, is a problem I have never really stopped thinking about. Wrapture includes OpenTelemetry support and even has an entirely configuration-based mechanism for adding tracing to an existing Python project, which looks like this: capture = " summary " [[ observe ]] target = " domain:Calculator " name = [ " outer " , " inner " ] [[ sink ]] type = " jsonlines " path = " trace.jsonl " This is still a very young project - just a few weeks old - but it's off to a very promising start. Interestingly, this is also Graham's first attempt at large entirely agent-driven project: Every line of code and documentation in wrapture was written by an AI assistant working under my direction. I want to be upfront about that, and equally upfront about what it was not. This was not vibe coding, where a one-shot prompt produces a pile of generated code and the person driving hopes for the best because they lack the knowledge to judge what came back. Vibe coding has earned its bad reputation. I engineered wrapture carefully from the start. I have spent a long time in this particular corner of Python and knew exactly what the result needed to be, and the AI was the means of producing it rather than the source of the design. In a follow-up post, Unit testing with wrapture , Graham shows the testing patterns supported by the new library: def test_stub_with_wrapture (): with wrapture . binding ( Gateway , "charge" ). on_call . returns ({ "id" : "stub" , "amount" : 0 } ): assert OrderService (). place ( 500 )[ "id" ] == "stub" And this neat example of a test that calls and then modifies the return value from the original method: def test_pinned_result_with_wrapture (): charge = wrapture . binding ( Gateway , "charge" ) charge . on_call . transforms_result ( lambda r : { ** r , "id" : "ch_TEST" } ) with charge : assert OrderService (). place ( 500 ) == { "id" : "ch_TEST" , "amount" : 500 } (In both of these examples the OrderService().place(...) method calls Gateway().charge(...) .) Tags: graham-dumpleton , monkey-patching , python , testing , pytest , observability , ai-assisted-programming , agentic-engineering , opentelemetry
Google raised the price of its 4K streaming box to $149, up $50 from its original $99 price. The new price is currently live at the Google Store and Best Buy, but Amazon appears to still be offering the original price. The price hike comes just a couple of weeks after Google launched its new […]
325 #kakapo! The chicks from this year's record breeding season are now juveniles and so have been added to the population. In 1995 there were just 51 kākāpō left. Recovery of critically endangered species is possible with sustained effort. — Andrew Digby , providing the best news of the year Tags: kakapo
After the Census Bureau issued a report tied to a Trump-aligned think tank, the bureau's parent agency cut language banning political interference from its scientific integrity policy, NPR learned.