--e5iev4uv6jfpewj6
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2024-08-22 01:44:35 +0000, Kevin M. Wilson via Python-list wrote:
break (Old_MacDonald:23 | name[indx] =3D=3D 'd', indx =3D 4), based on th=
e doc spec in python.org=A0(
https://docs.python.org/3/library/pdb.html#debu= gger-commands)
Cell In[1], line 20
break (Old_MacDonald:23 | name[indx] =3D=3D 'd', indx =3D 4)
^
SyntaxError: invalid syntax
I got one blank white screen when I entered the exact first line of the p=
ython.org-->b(reak)=A0[([filename:]lineno=A0|=A0function)=A0[,=A0condition]]
You misunderstood the notation. The | means "or", it is not something
you have to type literally.
So the syntax is:
either a line number (maybe in a different file) or a function name
optionally followed by a condition after a comma
So in your case probably something like:
break Old_MacDonald:23, name[indx] =3D=3D 'd'
(I'm not sure what "indx =3D 4" was supposed to do. You can't assign
inside of a condition.)
hp
--=20
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | |
hjp@hjp.at | -- Charles Stross, "Creative writing
__/ |
http://www.hjp.at/ | challenge!"
--e5iev4uv6jfpewj6
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmbG1ekACgkQ8g5IURL+ KF0aEA//d0QN59PTIs5JbHPyLXnpEEJx1bvtJhjkNSbv/feLGWJGqH2c4TILjJxA jCL9Wda52d8ZBIdsW96Mtiq9IEZfOe3iBeMREfos6SJGBbvPdADm8zqb1yAGBApT spxAYkRHkOdb3hXHTu0NcdaDs57iO8D1fBzpXUdgLj71KK/flbS+nWB9ZFyI+QfP qg6R7rUYmTTifWra8FM/c6k9Bfd2ojk2X5EWoOKehSNniEBerJlw4S1w5yalMotz G5iqCpekfTLQl/EYYvK/ngejAebJcJnNmHetnEKLuMoyavepOl3EImugV7GGHAwg 0SCcDL0zPoQPAjfLE65JS495wmOnJ/kU4cnWK+lPcL0HeFg5jXBYseg2sTBr3GFe 4Op5cp3n6W/al75xc2yI5rsX40S3AcKggmamyuCkgGdVUXmnCwRlIEsMpSFNk7nI 3GKXs5ZGodveKcemhNax7cxPQ7aiDa2XdujH0qmFz5q4cg6dfnetS4RVI53WV4LN rHkmlM2TUjVaMRDFYMOymeKRtfraZWV9hxXrXuWMjPaG2okvd3aI0KzTcUtugzDA K5k20rq5dvhzZtfJcgVvQhjD/AQzrMd3cCKIysOQ3ZbPDvc8z0J49zeQNH9LykoB FltQpCLH1/oT4+H/bzrX8CuLidYXrBVAGIFhDvbI83F3a84Byw4=
=voIR
-----END PGP SIGNATURE-----
--e5iev4uv6jfpewj6--
--- MBSE BBS v1.0.8.4 (Linux-x86_64)
* Origin: ---:- FTN<->UseNet Gate -:--- (3:633/280.2@fidonet)