<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/intobject.c, branch v2.2a3</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/intobject.c?h=v2.2a3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/intobject.c?h=v2.2a3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-09-05T06:24:58Z</updated>
<entry>
<title>Make the error msgs in our pow() implementations consistent.</title>
<updated>2001-09-05T06:24:58Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-05T06:24:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4c483c4d8eac8603ff299adbd373e4f14da61ff9'/>
<id>urn:sha1:4c483c4d8eac8603ff299adbd373e4f14da61ff9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change long/long true division to return as many good bits as it can;</title>
<updated>2001-09-04T06:17:36Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-04T06:17:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e2a600099d3b61327aba5be94d30d40773faa2c9'/>
<id>urn:sha1:e2a600099d3b61327aba5be94d30d40773faa2c9</id>
<content type='text'>
e.g., (1L &lt;&lt; 40000)/(1L &lt;&lt; 40001) returns 0.5, not Inf or NaN or whatever.
</content>
</entry>
<entry>
<title>Move int_true_divide next to the other division routines.</title>
<updated>2001-09-04T05:52:47Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-04T05:52:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9c1d7fd5f2173dc72ecdb1df7816c7e432437e02'/>
<id>urn:sha1:9c1d7fd5f2173dc72ecdb1df7816c7e432437e02</id>
<content type='text'>
</content>
</entry>
<entry>
<title>New restriction on pow(x, y, z):  If z is not None, x and y must be of</title>
<updated>2001-09-03T08:35:41Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-03T08:35:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=32f453eaa476c78376cd721d29ba8ab726e400bb'/>
<id>urn:sha1:32f453eaa476c78376cd721d29ba8ab726e400bb</id>
<content type='text'>
integer types, and y must be &gt;= 0.  See discussion at
http://sf.net/tracker/index.php?func=detail&amp;aid=457066&amp;group_id=5470&amp;atid=105470
</content>
</entry>
<entry>
<title>Add warning mode for classic division, almost exactly as specified in</title>
<updated>2001-08-31T17:40:15Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-31T17:40:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=393661d15fa76ec46e9f7b71e97bf2ed38470620'/>
<id>urn:sha1:393661d15fa76ec46e9f7b71e97bf2ed38470620</id>
<content type='text'>
PEP 238.  Changes:

- add a new flag variable Py_DivisionWarningFlag, declared in
  pydebug.h, defined in object.c, set in main.c, and used in
  {int,long,float,complex}object.c.  When this flag is set, the
  classic division operator issues a DeprecationWarning message.

- add a new API PyRun_SimpleStringFlags() to match
  PyRun_SimpleString().  The main() function calls this so that
  commands run with -c can also benefit from -Dnew.

- While I was at it, I changed the usage message in main() somewhat:
  alphabetized the options, split it in *four* parts to fit in under
  512 bytes (not that I still believe this is necessary -- doc strings
  elsewhere are much longer), and perhaps most visibly, don't display
  the full list of options on each command line error.  Instead, the
  full list is only displayed when -h is used, and otherwise a brief
  reminder of -h is displayed.  When -h is used, write to stdout so
  that you can do `python -h | more'.

Notes:

- I don't want to use the -W option to control whether the classic
  division warning is issued or not, because the machinery to decide
  whether to display the warning or not is very expensive (it involves
  calling into the warnings.py module).  You can use -Werror to turn
  the warnings into exceptions though.

- The -Dnew option doesn't select future division for all of the
  program -- only for the __main__ module.  I don't know if I'll ever
  change this -- it would require changes to the .pyc file magic
  number to do it right, and a more global notion of compiler flags.

- You can usefully combine -Dwarn and -Dnew: this gives the __main__
  module new division, and warns about classic division everywhere
  else.
</content>
</entry>
<entry>
<title>Fix typo: double semicolons.</title>
<updated>2001-08-30T03:09:31Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-30T03:09:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d93dce1699ed40efdd2f69c18861eba2fa8806f3'/>
<id>urn:sha1:d93dce1699ed40efdd2f69c18861eba2fa8806f3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make int, long and float subclassable.</title>
<updated>2001-08-29T15:47:46Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-29T15:47:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bef1417f9f31fdf0f7b7bdb458c1c1f17c5cfada'/>
<id>urn:sha1:bef1417f9f31fdf0f7b7bdb458c1c1f17c5cfada</id>
<content type='text'>
This uses a slightly wimpy and wasteful approach, but it works. :-)
</content>
</entry>
<entry>
<title>err_ovf(): only raise OverflowError when OverflowWarning was raised.</title>
<updated>2001-08-23T21:32:40Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-23T21:32:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0b13116a625d3a91e9f4507ed81f8b3575cdef8c'/>
<id>urn:sha1:0b13116a625d3a91e9f4507ed81f8b3575cdef8c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>int_pow():  Repair typo when passing on to float pow (the 2nd argument was</title>
<updated>2001-08-23T21:28:33Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-08-23T21:28:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=31960db5a56d07584c53970799c530f42183f7b9'/>
<id>urn:sha1:31960db5a56d07584c53970799c530f42183f7b9</id>
<content type='text'>
being passed as both the 2nd and 3rd args).  Regression test will follow.
</content>
</entry>
<entry>
<title>Change all case where we used to raise OverflowError to issue a</title>
<updated>2001-08-23T02:59:04Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-23T02:59:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e27f795b72c11e18e1e28e939e4713992d4f6189'/>
<id>urn:sha1:e27f795b72c11e18e1e28e939e4713992d4f6189</id>
<content type='text'>
warning and then redo the operation using long ints.
</content>
</entry>
</feed>
