Added '#' formatting to integers. This adds the 0b, 0o, or 0x prefix for bin, oct, hex. There's still one failing case, and I need to finish the docs. I hope to finish those today.
diff --git a/Lib/test/test_string.py b/Lib/test/test_string.py
index 5c20a2b..20cff0a 100644
--- a/Lib/test/test_string.py
+++ b/Lib/test/test_string.py
@@ -192,6 +192,10 @@
self.assertRaises(ValueError, fmt.format, "{0}", 10, 20, i=100)
self.assertRaises(ValueError, fmt.format, "{i}", 10, 20, i=100)
+ # Alternate formatting is not supported
+ self.assertRaises(ValueError, format, '', '#')
+ self.assertRaises(ValueError, format, '', '#20')
+
class BytesAliasTest(unittest.TestCase):
def test_builtin(self):