[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2012-05-27 Thread Phil Daintree
Phil Daintree added the comment: Well maybe this should be a different bug as it is clearly not xml 1.1 related as the linue in the xml gives away :-) To repeat the bug ... using the webERP demo data #!/usr/bin/env python import xmlrpclib x_server = xmlrpclib.Server('http://www.weberp.or

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 2.7 & 3.3 on Win 7, 'a'( brings up calltip (bad). With 3.3, '\xyz'( causes Idle to die (worse) With 2.7, the same or u'\xyz'( have no effect, just like 3(. There are a lot of little differences between 2.7 and 3.x, but the main one is the use of inspect i

[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2012-05-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: Phil: it seems you have hijacked the bug report. Don't do that. If you want to report a bug, please create a new bug report. Structure it as follows: 1. this is what I did 2. this is what happened 3. this is what should have happened instead. -- ___

[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2012-05-27 Thread Phil Daintree
Phil Daintree added the comment: or for less data... #!/usr/bin/env python import xmlrpclib x_server = xmlrpclib.Server('http://www.weberp.org/weberp/api/api_xml-rpc.php',verbose=True) #Get the stock items defined in the webERP installation StockList = x_server.weberp.xmlrpc_SearchStockItem

[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2012-05-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: Panos: you are right. The original issue still exists. However, it is not a bug in Python, but a in the expat library. So I am now closing this report as out-of-scope for Python. There is a bug report open on expat requesting support for XML 1.1, see http:/

[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2012-05-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue12370] Use of super overwrites use of __class__ in class namespace

2012-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 96ab78ef82a7 by Nick Coghlan in branch 'default': Close #14857: fix regression in references to PEP 3135 implicit __class__ closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue http://hg.python.org/cpytho

[issue14857] Direct access to lexically scoped __class__ is broken in 3.3

2012-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset bcb3b81853cc by Nick Coghlan in branch 'default': Tweak importlib._bootstrap to avoid zero-argument super so I can work on issue #14857 without breaking imports http://hg.python.org/cpython/rev/bcb3b81853cc New changeset 96ab78ef82a7 by Nick Coghl

[issue12370] Use of super overwrites use of __class__ in class namespace

2012-05-27 Thread Nick Coghlan
Nick Coghlan added the comment: As the checkin message says, this is once again a problem on trunk. The relevant test is still in place in test_super.py, I just marked it as an expected failure. unittest.mock is currently avoiding the problem via the "_safe_super = super" workaround. So, we

[issue14924] re.finditer() oddity

2012-05-27 Thread Francisco Gracia
New submission from Francisco Gracia : I find baffling the following behaviour of *re.finditer()*: Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> import re >>> m = re.findite

[issue14858] 'pysetup create' off-by-one when choosing classification maturity status interactively.

2012-05-27 Thread Todd DeLuca
Todd DeLuca added the comment: This patch fixes the problem where the user would select a maturity status when runnning 'pysetup create' and the resulting setup.cfq would have a maturity status one less than the user selected. It also fixes the behavior where a user can select '0' as a maturi

[issue14924] re.finditer() oddity

2012-05-27 Thread Ezio Melotti
Ezio Melotti added the comment: All iterators are always true, since you can not know how many elements they will give you until you consume them. This is generally known, however it doesn't seem to be well documented. -- assignee: -> ezio.melotti resolution: -> invalid stage: ->

[issue12370] Use of super overwrites use of __class__ in class namespace

2012-05-27 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14925] email package does not register defect when blank line between header and body is missing

2012-05-27 Thread R. David Murray
New submission from R. David Murray : The error recovery heuristic the parser uses is that if it sees a line with no leading whitespace and no ':' in it, it assumes that the blank line between the headers and the body was missing. It does not, however, register defect for this case. Attached

[issue14926] random.seed docstring needs edit of "*a *is"

2012-05-27 Thread Christopher Smith
New submission from Christopher Smith : In the following, the asterisk and space should change places so bits are used if *a *is a str, would appear as bits are used if *a* is a str, -- components: Library (Lib) messages: 161709 nosy: smichr priority: normal severity: normal stat

[issue14927] add not about int to shuffle

2012-05-27 Thread Christopher Smith
New submission from Christopher Smith : In randrange there is the note, "Do not supply the 'int' argument." That could probably be added to shuffle, too. -- components: Library (Lib) messages: 161710 nosy: smichr priority: normal severity: normal status: open title: add not about int to

[issue14923] Even faster UTF-8 decoding

2012-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this is an implementation-dependent behavior (and on the supported platforms it is implemented well in a certain way). However, if the continuation byte check to do the simplest way ((ch) >= 0x80 && (ch) < 0xC0), this has the same effect (speed up to +

[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers

2012-05-27 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue14924] re.finditer() oddity

2012-05-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: > All iterators are always true, More generally, all objects are true by default. The only false objects in Python are None; container-like objects with a __len__ that returns zero; and number-like objects with a __nonzero__ method that returns False. Gu

[issue14835] plistlib: output empty elements correctly

2012-05-27 Thread Sidney San Martín
Sidney San Martín added the comment: Hynek: Here you go! Ronald: Emailed it in on Friday. -- Added file: http://bugs.python.org/file25734/plistlib_empty_element_test.patch ___ Python tracker _

[issue14928] Fix importlib bootstrapping issues

2012-05-27 Thread Antoine Pitrou
New submission from Antoine Pitrou : See http://mail.python.org/pipermail/python-dev/2012-May/119703.html Two competing proposals: - Benjamin: "Perhaps freeze_importlib.py could be rewritten in C, so importlib could be recompiled when the compiler changes?" - Martin: "Or we support bootstrappi

[issue14928] Fix importlib bootstrapping issues

2012-05-27 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14923] Even faster UTF-8 decoding

2012-05-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > However, if the continuation byte check to do the simplest way ((ch) >= > 0x80 && (ch) < 0xC0), this has the same effect (speed up to +45%) on > AMD Athlon. Doesn't produce any significant speedup on Intel Core i5-2500. --

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2012-05-27 Thread Roger Serwy
Roger Serwy added the comment: (I need to write an extension to auto-apply strip-trailing-whitespace on save.) Terry, I agree that the comment needs improvement. The self.editwin reference to the window needs to be available so that .get_saved() doesn't fail. In retrospect, the original patch

[issue11820] idle3 shell os.system swallows shell command output

2012-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: After thinking some more and re-reading the os.system doc, I am closing this. I think things are working exactly as documented, and in a way that will not be changed. The os.system doc initially says 1. "Execute the command (a string) in a subshell." It does

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2012-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Win 7, a brings up the box on all the latest releases: 2.7.3, 3.2.3, and 3.3.0a3. (These all come with recent tk 8.5.x.) Mike, please retest with 3.2.3 and specify os and tk version and exactly what you entered if there is still a problem. -- nosy

[issue14915] pysetup may leave a package in a half-installed state

2012-05-27 Thread Alexis Metaireau
Alexis Metaireau added the comment: Oh, a potential way to avoid this would be to check that the metadata have the python 3 trove classifier in it. We could also add a way to force the installation even if the right classifier is not present with a special flag passed to the command line. D

[issue11820] idle3 shell os.system swallows shell command output

2012-05-27 Thread Ned Deily
Ned Deily added the comment: I disagree. I think you are confusing Python's sys.std* objects with the std* file descriptors of a process. The important points here are that IDLE is effectively substituting its rpcproxy for the std* file descriptors of the IDLE shell process that it creates *

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Roger Serwy
Roger Serwy added the comment: Terry, the original patch added "Not callable" because I wasn't sure what the consensus was on proper behavior. Now I know. :) Attached is a revision against 3.3a3+ which omits the calltip if the object is not callable. The behavior difference between 2.7 and 3

[issue1672568] silent error in email.message.Message.get_payload

2012-05-27 Thread R. David Murray
R. David Murray added the comment: OK, here is patch based on the new policy support in 3.3. I have some concern that the behavior change it introduces might cause some issues, but since it seems like a reasonable change and is happening at a feature release boundary, I think it should be OK

[issue14924] re.finditer() oddity

2012-05-27 Thread Francisco Gracia
Francisco Gracia added the comment: Thank you both for your quick and clear explanations. However I regret that I keep considering the situation rather unsatisfactory. I can well understand that all objects are true and even that the convention that applies to some of them, like containers, t

[issue11820] idle3 shell os.system swallows shell command output

2012-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I thought I was un-confusing sys.std* Python objects (such as idlelib.rpc.RPCProxy) from std* integer file descriptors, whereas you seem to say they are the same: "copies of the file descriptors (in particular, sys.std*)". The rest of your message seems to im

[issue14928] Fix importlib bootstrapping issues

2012-05-27 Thread Nick Coghlan
Nick Coghlan added the comment: I like MvL's approach if we can make it work - then we can set up the importlib.h regeneration to automatically bootstrap itself from the source file and avoid having to add another binary to the build process. -- nosy: +ncoghlan __

[issue1672568] silent error in email.message.Message.get_payload

2012-05-27 Thread R. David Murray
R. David Murray added the comment: Oh, and to be clear on how this addresses the bug report: if you set 'raise_on_defect' to true when you call the parser, then you'll get an exception when you call msg.get_payload(decode=True). -- ___ Python track

[issue14929] IDLE crashes on *Edit / Find in files ...* command (Python 3.2, Windows XP)

2012-05-27 Thread Francisco Gracia
New submission from Francisco Gracia : There is little more that I can add to the title statement. 1. Start IDLE 2. Go to *Edit* menu option 3. Select *Find in files...* option 4. Put some word in the *Find* input box 5. Press *Search files* button When the command is issued the

[issue1672568] silent error in email.message.Message.get_payload

2012-05-27 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file25737/base64_payload_defects.patch ___ Python tracker ___ ___ Python-b

[issue1672568] silent error in email.message.Message.get_payload

2012-05-27 Thread R. David Murray
R. David Murray added the comment: Hmm. Thinking about it, though, that might not work if there are other errors in the message, many of which are more benign. Probably the raise_on_defect control is a little too coarse. I've been thinking that we need a way to set the policy on an already

[issue14930] Make memoryview weakrefable

2012-05-27 Thread Richard Oudkerk
New submission from Richard Oudkerk : The attached patch makes memoryview objects weakrefable. The reason I would like them to be weakrefable is so that I can manage the finalization and pickling of memoryview objects which wrap shared mmap segments. (It would be even better if memoryview were

[issue14930] Make memoryview weakrefable

2012-05-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks like an obviously good idea. The patch needs tests, though. -- nosy: +pitrou, skrah ___ Python tracker ___ __

[issue11785] email subpackages documentation problems

2012-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 64e82c4f4e10 by R David Murray in branch 'default': #11785: fix the :mod: references in email package submodule titles. http://hg.python.org/cpython/rev/64e82c4f4e10 -- nosy: +python-dev ___ Python track

[issue11820] idle3 shell os.system swallows shell command output

2012-05-27 Thread Ned Deily
Ned Deily added the comment: I didn't mean to imply anything about subprocess.check_output(). It works as expected, that is by explicitly intercepting anything written to the stdout of the forked subprocess and returning it as the call result. What doesn't work is if you try a default subpr

[issue14931] Compattible

2012-05-27 Thread austin McCalley
New submission from austin McCalley : When I try to run python 2.5 scripts on 2.7 it keeps saying error that there is no module named so and so -- components: None messages: 161733 nosy: austin.McCalley priority: normal severity: normal status: open title: Compattible type: behavior ver

[issue11785] email subpackages documentation problems

2012-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset df59aefdb1c8 by R David Murray in branch '2.7': #11785: fix the :mod: references in email package submodule titles. http://hg.python.org/cpython/rev/df59aefdb1c8 New changeset 6737c2ca98ee by R David Murray in branch '3.2': #11785: fix the :mod: re

[issue11785] email subpackages documentation problems

2012-05-27 Thread R. David Murray
R. David Murray added the comment: Fixed. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14931] Compattible

2012-05-27 Thread R. David Murray
R. David Murray added the comment: Most likely your problem is that you installed the module in question for 2.5, but haven't (yet) installed it for 2.7. If you find that this isn't the problem you can reopen the issue and provide more details. But I'm pretty sure that's the problem. -

[issue11820] idle3 shell os.system swallows shell command output

2012-05-27 Thread Roger Serwy
Roger Serwy added the comment: It might be possible to fix this problem by creating pipes to redirect stdout and stderr to the text widget in PyShell. The ShellWindow.py demo in Demo/tkinter/guido may be helpful. -- ___ Python tracker

[issue14929] IDLE crashes on *Edit / Find in files ...* command

2012-05-27 Thread Roger Serwy
Roger Serwy added the comment: When running IDLE from the terminal on Ubuntu, I get the following error: Exception in Tkinter callback Traceback (most recent call last): File "/home/serwy/python/cpython/Lib/tkinter/__init__.py", line 1442, in __call__ return self.func(*args) File "./id

[issue12370] Use of super overwrites use of __class__ in class namespace

2012-05-27 Thread Mark Shannon
Changes by Mark Shannon : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2012-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: The only substantive change I see is replacing the four lines setting 'interp' with a defaulted getattr call. You seem to have missed my point that 'Otherwise, open a new window' is false. It must be that "flist.open(filename)" first checks to see if filename

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2012-05-27 Thread Roger Serwy
Roger Serwy added the comment: You're right. I missed your point about flist.open shifting focus to the already opened file. FileList.py contains the open method. -- ___ Python tracker ___

[issue14929] IDLE crashes on *Edit / Find in files ...* command

2012-05-27 Thread Roger Serwy
Roger Serwy added the comment: The GrepDialog opens a file using plain "open", without specifying the encoding or how to handle errors. The docs for "open" says that "the default encoding is platform dependent (whatever locale.getpreferredencoding() returns)..." This can be problematic, as fi

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'a'(, [](, {}( no longer do anything. [int][0]( and {0:int}[0] bring up int tooltip. However, patch is not a complete fix yet. [int][1]( and {0:int}[1] both 'crash' Idle. So we need to add IndexError and KeyError to +except (NameError, AttributeErro

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Roger Serwy
Roger Serwy added the comment: I'm ok with removing the exception list, but add a comment like "# *any* exception could happen in the eval". -- ___ Python tracker ___ _

[issue14925] email package does not register defect when blank line between header and body is missing

2012-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0869f5f47608 by R David Murray in branch 'default': #14925: email now registers a defect for missing header/body separator. http://hg.python.org/cpython/rev/0869f5f47608 -- nosy: +python-dev ___ Python t

[issue14925] email package does not register defect when blank line between header and body is missing

2012-05-27 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue1672568] silent error in email.message.Message.get_payload

2012-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 17341b51af4f by R David Murray in branch 'default': #1672568: email now registers defects for base64 payload format errors. http://hg.python.org/cpython/rev/17341b51af4f -- nosy: +python-dev ___ Python t

[issue1672568] silent error in email.message.Message.get_payload

2012-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset d68e30be755e by R David Murray in branch 'default': News item for #1672568. http://hg.python.org/cpython/rev/d68e30be755e -- ___ Python tracker

[issue1672568] silent error in email.message.Message.get_payload

2012-05-27 Thread R. David Murray
R. David Murray added the comment: Fix committed. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 938b12452af7 by Terry Jan Reedy in branch '2.7': Issue12510: Attempting to get invalid tooltip no longer closes Idle. http://hg.python.org/cpython/rev/938b12452af7 New changeset 4a7582866735 by Terry Jan Reedy in branch '3.2': Issue12510: Attemptin

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2012-05-27 Thread Eric Snow
Eric Snow added the comment: Long options only would be fine with me. So "--path0" and "--nopath0"? -- ___ Python tracker ___ ___ Py

[issue14928] Fix importlib bootstrapping issues

2012-05-27 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue12515] email modifies the message structure when the parsed email is invalid without registering defects

2012-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 81e008f13b4f by R David Murray in branch 'default': #12515: email now registers a defect if the MIME end boundary is missing. http://hg.python.org/cpython/rev/81e008f13b4f -- nosy: +python-dev ___ Python

[issue12515] email modifies the message structure when the parsed email is invalid without registering defects

2012-05-27 Thread R. David Murray
R. David Murray added the comment: I didn't wind up using your patch (for one thing I forgot that there were two separate issues in this patch and independently rediscovered and fixed the MissingHeaderBodySeparatorDefect one). However, this is now fixed in 3.3. Unfortunately, since it intro

[issue14928] Fix importlib bootstrapping issues

2012-05-27 Thread Nick Coghlan
Nick Coghlan added the comment: There are some additional challenges potentially posed by suggestions like http://bugs.python.org/issue10399, which would allow the compiler itself to use Python extensions. However, those could be overcome by requiring that the compiler support running with a

[issue14929] IDLE crashes on *Edit / Find in files ...* command

2012-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 12454f78967b by Terry Jan Reedy in branch '3.2': Issue14929: Stop Idle 3.x from closing on Unicode decode errors when grepping. http://hg.python.org/cpython/rev/12454f78967b New changeset 058c3099e82d by Terry Jan Reedy in branch 'default': Merge 3

[issue14929] IDLE crashes on *Edit / Find in files ...* command

2012-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Interesting -- and nasty. I have used this successfully with both 3.2 and now 3.3 on Win7 to search idlelib/*.py files and on a directory of my own files, all written by Idle and been quite pleased with the speed. I just tried searching /Lib/*.py for 'itertoo

[issue14929] IDLE crashes on *Edit / Find in files ...* command

2012-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Hit send too soon;-). With that much done, we can think about a more complete fix. See last paragraph above. Also, perhaps dialog box could have encodings field. People should be able to grep python code for any legal identifier, and this means proper decodin

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2012-05-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue14876] IDLE highlighting theme does not preview with user-selected fonts

2012-05-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue14818] C implementation of ElementTree: Some functions should support keyword arguments

2012-05-27 Thread Eli Bendersky
Eli Bendersky added the comment: The whole namespace issue is not very well documented in the ReST doc for ET - should open a new issue on this -- ___ Python tracker ___ __

[issue14818] C implementation of ElementTree: Some functions should support keyword arguments

2012-05-27 Thread Eli Bendersky
Eli Bendersky added the comment: Updated patch with fixed error messages, additional tests and some documentation. No support in SubElement yet -- Added file: http://bugs.python.org/file25741/issue14818.3.patch ___ Python tracker

[issue14660] Implement PEP 420: Implicit Namespace Packages

2012-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset f26721ab3476 by Ned Deily in branch 'default': Issue #14660: Install namespace_pkgs test directories and files. http://hg.python.org/cpython/rev/f26721ab3476 -- ___ Python tracker

[issue14927] add "Do not supply int argument" to random.shuffle docstring

2012-05-27 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +rhettinger title: add not about int to shuffle -> add "Do not supply int argument" to random.shuffle docstring versions: +Python 2.7, Python 3.3 ___ Python tracker ___

[issue14923] Even faster UTF-8 decoding

2012-05-27 Thread Mark Dickinson
Mark Dickinson added the comment: > It seems the patch relies on a two's complement representation of > integers. Mark, do you think that's ok? (1) Relying on two's complement integers seems fine to me: we're already relying on it in other places in Python (e.g., bitwise operations for ints i