<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/future.c, branch 2.2</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/future.c?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/future.c?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-08-20T20:32:33Z</updated>
<entry>
<title>Fix SF bug [ #450245 ] Error in parsing future stmts</title>
<updated>2001-08-20T20:32:33Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-08-20T20:32:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1e35ce58e8e1d8c4ac9c54c1422dc5827bb47124'/>
<id>urn:sha1:1e35ce58e8e1d8c4ac9c54c1422dc5827bb47124</id>
<content type='text'>
Check return value from future_parse() in for loop for file_input to
accomodate multiple future statements on separate lines.

Add several comments explaining how the code works.

Remove out-dated XXX comment.
</content>
</entry>
<entry>
<title>Refactor future feature handling</title>
<updated>2001-08-10T21:41:33Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-08-10T21:41:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b857ba261fc468d956e350f51469efd7d5773da2'/>
<id>urn:sha1:b857ba261fc468d956e350f51469efd7d5773da2</id>
<content type='text'>
Replace uses of PyCF_xxx with CO_xxx.

Replace individual feature slots in PyFutureFeatures with single
bitmask ff_features.

When flags must be transfered among the three parts of the interpreter
that care about them -- the pythonrun layer, the compiler, and the
future feature parser -- can simply or (|) the definitions.
</content>
</entry>
<entry>
<title>Implement PEP 238 in its (almost) full glory.</title>
<updated>2001-08-08T05:00:18Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-08T05:00:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4668b000a1d9113394941ad39875c827634feb49'/>
<id>urn:sha1:4668b000a1d9113394941ad39875c827634feb49</id>
<content type='text'>
This introduces:

- A new operator // that means floor division (the kind of division
  where 1/2 is 0).

- The "future division" statement ("from __future__ import division)
  which changes the meaning of the / operator to implement "true
  division" (where 1/2 is 0.5).

- New overloadable operators __truediv__ and __floordiv__.

- New slots in the PyNumberMethods struct for true and floor division,
  new abstract APIs for them, new opcodes, and so on.

I emphasize that without the future division statement, the semantics
of / will remain unchanged until Python 3.0.

Not yet implemented are warnings (default off) when / is used with int
or long arguments.

This has been on display since 7/31 as SF patch #443474.

Flames to /dev/null.
</content>
</entry>
<entry>
<title>future.c:  insert a cosmetic space.</title>
<updated>2001-07-16T03:11:48Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-07-16T03:11:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=51d76f1f7532d9f55e31dbf3fd4dc26be42a839a'/>
<id>urn:sha1:51d76f1f7532d9f55e31dbf3fd4dc26be42a839a</id>
<content type='text'>
pythonrun.c, run_pyc_file():  repair semantic error wrt CO_GENERATOR vs
CO_GENERATOR_ALLOWED.
</content>
</entry>
<entry>
<title>Part way to allowing "from __future__ import generators" to communicate</title>
<updated>2001-07-16T02:29:45Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-07-16T02:29:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5ba58662817b708a453020f0425fe4747ea6d5cb'/>
<id>urn:sha1:5ba58662817b708a453020f0425fe4747ea6d5cb</id>
<content type='text'>
that info to code dynamically compiled *by* code compiled with generators
enabled.  Doesn't yet work because there's still no way to tell the parser
that "yield" is OK (unlike nested_scopes, the parser has its fingers in
this too).
Replaced PyEval_GetNestedScopes by a more-general
PyEval_MergeCompilerFlags.  Perhaps I should not have?  I doubted it was
*intended* to be part of the public API, so just did.
</content>
</entry>
<entry>
<title>Preliminary support for "from __future__ import generators" to enable</title>
<updated>2001-07-15T21:08:29Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-07-15T21:08:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b09f7ed6235783fca27a4f8730c4c33e0f53c16c'/>
<id>urn:sha1:b09f7ed6235783fca27a4f8730c4c33e0f53c16c</id>
<content type='text'>
the yield statement.  I figure we have to have this in before I can
release 2.2a1 on Wednesday.

Note: test_generators is currently broken, I'm counting on Tim to fix
this.
</content>
</entry>
<entry>
<title>When iterating over the names imported in a future statement, ignore the</title>
<updated>2001-03-10T02:15:37Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-03-10T02:15:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=198457a9789cbb176d7d0b3c8b38254b33836deb'/>
<id>urn:sha1:198457a9789cbb176d7d0b3c8b38254b33836deb</id>
<content type='text'>
commas in the concrete syntax; checking those causes a segfault.

This fixes SF bug #407394.
</content>
</entry>
<entry>
<title>Improve SyntaxErrors for bad future statements.  Set file and location</title>
<updated>2001-02-28T17:47:12Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-02-28T17:47:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ad3d3f2f3f19833f59fd7e9ec59e1714e0986e08'/>
<id>urn:sha1:ad3d3f2f3f19833f59fd7e9ec59e1714e0986e08</id>
<content type='text'>
for errors raised in future.c.

Move some helper functions from compile.c to errors.c and make them
API functions: PyErr_SyntaxLocation() and PyErr_ProgramText().
</content>
</entry>
<entry>
<title>Need to support single_input explicitly so from __future__ imports</title>
<updated>2001-02-28T02:26:14Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-02-28T02:26:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=280c81a9402dfa39159c3c01dec217b2ad55c8c9'/>
<id>urn:sha1:280c81a9402dfa39159c3c01dec217b2ad55c8c9</id>
<content type='text'>
are legal at the interactive interpreter prompt.  They don't do
anything yet...
</content>
</entry>
<entry>
<title>Presumed correct compiler pass for future statements</title>
<updated>2001-02-28T01:58:08Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-02-28T01:58:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=39e2f3f82499e2c06c092d38b77d554bee6f31e8'/>
<id>urn:sha1:39e2f3f82499e2c06c092d38b77d554bee6f31e8</id>
<content type='text'>
XXX still need to integrate into symtable API

compile.h: Remove ff_n_simple_stmt; obsolete.

           Add ff_found_docstring used internally to skip one and only
           one string at the beginning of a module.

compile.c: Add check for from __future__ imports to far into the file.

 	   In symtable_global() check for -1 returned from
	   symtable_lookup(), which signifies name not defined.

	   Add missing DECERF in symtable_add_def.

           Free c-&gt;c_future.

future.c:  Add special handling for multiple statements joined on a
	   single line using one or more semicolons; this form can
           include an illegal future statement that would otherwise be
           hard to detect.

	   Add support for detecting and skipping doc strings.
</content>
</entry>
</feed>
