On Fri, Mar 16 2018, Brian May <b...@debian.org> wrote:
> If I try to run the following program on Debian Stretch:
>
> === cut ===
> #!/usr/bin/python3
> import notmuch
> db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
>
> def abcdef():
>     pass
>
> q_new = notmuch.Query(db, 'tag:new')
> === cut ===
>
> I get the following output:
>
> brian@wspdigital:~$ /usr/bin/python3 ./tagmail
> Aborted
>
> If I comment/remove any of the lines out (including the function that isn't
> even referenced anywhere) or switch to Python2, then it works without any
> problems.
>
> Am wondering if this is a Python3 bug.

This is certainly very weird.  I am able to reproduce.  If I change the
script to this, though, it works fine:

  #!/usr/bin/python3
  import notmuch
  db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
  q_new = notmuch.Query(db, 'tag:new')

Something about the function definition in there causes this??

Attachment: signature.asc
Description: PGP signature

Reply via email to