<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python, 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/Python?h=v2.2a3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python?h=v2.2a3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-09-07T08:45:55Z</updated>
<entry>
<title>SF bug [#458941] Looks like a unary minus bug.</title>
<updated>2001-09-07T08:45:55Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-07T08:45:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=51e2651b298cf59653133baf556f4cca3c569583'/>
<id>urn:sha1:51e2651b298cf59653133baf556f4cca3c569583</id>
<content type='text'>
com_factor():  when a unary minus is attached to a float or imaginary zero,
don't optimize the UNARY_MINUS opcode away:  the const dict can't
distinguish between +0.0 and -0.0, so ended up treating both like the
first one added to it.  Optimizing UNARY_PLUS away isn't a problem.

(BTW, I already uploaded the 2.2a3 Windows installer, and this isn't
important enough to delay the release.)
</content>
</entry>
<entry>
<title>Rename 'getset' to 'property'.</title>
<updated>2001-09-06T21:56:42Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-06T21:56:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8bce4acb17ee7146c5736ad020ea0e129bd7f67b'/>
<id>urn:sha1:8bce4acb17ee7146c5736ad020ea0e129bd7f67b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patch #455231: Support ELF properly on OpenBSD.</title>
<updated>2001-09-05T14:24:43Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-09-05T14:24:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=36546db7507273f9a1dffc6d8497c738b93f5fa2'/>
<id>urn:sha1:36546db7507273f9a1dffc6d8497c738b93f5fa2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>builtin_execfile(): initialize another local that the GCC on leroy</title>
<updated>2001-09-05T13:37:47Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-05T13:37:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b3a639ed7d53ab49eae174c5605d0861c56489f3'/>
<id>urn:sha1:b3a639ed7d53ab49eae174c5605d0861c56489f3</id>
<content type='text'>
found it necessary to warn about.
</content>
</entry>
<entry>
<title>At Guido's suggestion, here's a new C API function, PyObject_Dir(), like</title>
<updated>2001-09-04T22:08:56Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-04T22:08:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7eea37e8317bda88d9f50b862f13642e837957ce'/>
<id>urn:sha1:7eea37e8317bda88d9f50b862f13642e837957ce</id>
<content type='text'>
__builtin__.dir().  Moved the guts from bltinmodule.c to object.c.
</content>
</entry>
<entry>
<title>Move call_trace(..., PyTrace_CALL, ...) call to top of eval_frame.  That</title>
<updated>2001-09-04T19:03:35Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nascheme@enme.ucalgary.ca</email>
</author>
<published>2001-09-04T19:03:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6c0f20088f81d9d84124c265d58a2a8e7d47b059'/>
<id>urn:sha1:6c0f20088f81d9d84124c265d58a2a8e7d47b059</id>
<content type='text'>
way it's called each time a generator is resumed.  The tracing of normal
functions should be unaffected by this change.
</content>
</entry>
<entry>
<title>builtin_dir():  Treat classic classes like types.  Use PyDict_Keys instead</title>
<updated>2001-09-04T01:20:04Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-04T01:20:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=37a309db7086381da6ae176cec8817cdd75de872'/>
<id>urn:sha1:37a309db7086381da6ae176cec8817cdd75de872</id>
<content type='text'>
of PyMapping_Keys because we know we have a real dict.  Tolerate that
objects may have an attr named "__dict__" that's not a dict (Py_None
popped up during testing).

test_descr.py, test_dir():  Test the new classic-class behavior; beef up
the new-style class test similarly.

test_pyclbr.py, checkModule():  dir(C) is no longer a synonym for
C.__dict__.keys() when C is a classic class (looks like the same thing
that burned distutils! -- should it be *made* a synoym again?  Then it
would be inconsistent with new-style class behavior.).
</content>
</entry>
<entry>
<title>Make dir() wordier (see the new docstring).  The new behavior is a mixed</title>
<updated>2001-09-03T05:47:38Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-03T05:47:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5d2b77cf31c5a3cbabc74936831480b9caea3a12'/>
<id>urn:sha1:5d2b77cf31c5a3cbabc74936831480b9caea3a12</id>
<content type='text'>
bag.  It's clearly wrong for classic classes, at heart because a classic
class doesn't have a __class__ attribute, and I'm unclear on whether
that's feature or bug.  I'll repair this once I find out (in the
meantime, dir() applied to classic classes won't find the base classes,
while dir() applied to a classic-class instance *will* find the base
classes but not *their* base classes).

Please give the new dir() a try and see whether you love it or hate it.
The new dir([]) behavior is something I could come to love.  Here's
something to hate:

&gt;&gt;&gt; class C:
...     pass
...
&gt;&gt;&gt; c = C()
&gt;&gt;&gt; dir(c)
['__doc__', '__module__']
&gt;&gt;&gt;

The idea that an instance has a __doc__ attribute is jarring (of course
it's really c.__class__.__doc__ == C.__doc__; likewise for __module__).

OTOH, the code already has too many special cases, and dir(x) doesn't
have a compelling or clear purpose when x isn't a module.
</content>
</entry>
<entry>
<title>Added glue routine for PyMac_BuildFSSpec, PyMac_GetFSRef and PyMac_BuildFSRef.</title>
<updated>2001-09-01T23:39:58Z</updated>
<author>
<name>Jack Jansen</name>
<email>jack.jansen@cwi.nl</email>
</author>
<published>2001-09-01T23:39:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fabd00fa91277d2536d97d033e0f7ac561c65fab'/>
<id>urn:sha1:fabd00fa91277d2536d97d033e0f7ac561c65fab</id>
<content type='text'>
Moved the declarations to pymactoolbox.h.
</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>
</feed>
