Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #146458

Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB

From Lawrence D’Oliveiro <ldo@nz.invalid>
Newsgroups comp.sys.mac.system, alt.os.linux, alt.comp.os.windows-11, comp.lang.python
Subject Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB
Date 2026-08-20 22:57 +0000
Organization A noiseless patient Spider
Message-ID <11680p6$3s8jk$1@dont-email.me> (permalink)
References <116673g$ptq$1@nnrp.usenet.blueworldhosting.com> <1166bch$39qqm$2@dont-email.me> <1167a7q$l51$1@nnrp.usenet.blueworldhosting.com>

Cross-posted to 4 groups.

Show all headers | View raw


On Thu, 20 Aug 2026 08:32:58 -0800, Maria Sophia wrote:

> If I were to adapt your db_iter concept while keeping parameterized
> queries safe, I'd probably modify it to accept a parameters tuple
> like this:
>
> Python
> def db_iter(conn, cmd, params=(), mapfn=lambda x: x):
>     """Executes cmd with parameters and yields mapped results."""
>     for item in conn.cursor().execute(cmd, params):
>         yield mapfn(item)

Yes, fair enough. I prefer to use APSW rather than the SQLite binding
in the standard library; that seems nicer in some ways, providing more
flexibility in placeholders for parameter substitution
<https://rogerbinns.github.io/apsw/example.html#why-you-use-bindings-to-provide-values>.

I tend to fall out of the habit of using placeholder mechanisms,
because they don’t cope with more advanced cases.

Back to comp.sys.mac.system | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

PSA: A python script to clone your phone exactly, over Wi-Fi or USB Maria Sophia <mariasophia@comprehension.com> - 2026-08-19 22:33 -0800
  Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-08-20 07:46 +0000
    Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB Maria Sophia <mariasophia@comprehension.com> - 2026-08-20 08:14 -0800
    Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB Maria Sophia <mariasophia@comprehension.com> - 2026-08-20 08:32 -0800
      Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-08-20 22:57 +0000
        Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB Maria Sophia <mariasophia@comprehension.com> - 2026-08-21 01:37 -0800
    Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB Maria Sophia <mariasophia@comprehension.com> - 2026-08-23 12:36 -0800
  Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB Alan <nuh-uh@nope.com> - 2026-08-20 07:44 -0700
    Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB "Kerr-Mudd, John" <admin@127.0.0.1> - 2026-08-20 19:06 +0100
      Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB Chris <ithinkiam@gmail.com> - 2026-08-21 04:20 +0000
        Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-08-21 07:04 +0000
        Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB Maria Sophia <mariasophia@comprehension.com> - 2026-08-20 23:05 -0800
  Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB Maria Sophia <mariasophia@comprehension.com> - 2026-08-21 00:30 -0800
    Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB "Kerr-Mudd, John" <admin@127.0.0.1> - 2026-08-21 17:42 +0100
      Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB Maria Sophia <mariasophia@comprehension.com> - 2026-08-23 12:05 -0800

csiph-web