15.04.2013 Views

Core Python Programming (2nd Edition)

Core Python Programming (2nd Edition)

Core Python Programming (2nd Edition)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

- [c] Negation • • • • number<br />

~ [c] Bit inversion • •<br />

int/long<br />

[b] Exponentiation • • • • number<br />

**<br />

* Multiplication • • • • number<br />

/ Classic or true division • • • • number<br />

// Floor division • • • • number<br />

% Modulo/remainder • • • • number<br />

+ Addition • • • • number<br />

- Subtraction • • • • number<br />

> Bit right shift • •<br />

& Bitwise AND • •<br />

^ Bitwise XOR • •<br />

| Bitwise OR • •<br />

[a] A result of "number" indicates any of the four numeric types, perhaps the same as the operands.<br />

[b] ** has a unique relationship with unary operators; see Section 5.5.3 and Table 5.2.<br />

[c] Unary operator.<br />

int/long<br />

int/long<br />

int/long<br />

int/long<br />

int/long

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!