<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/future.c, branch 2.3</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.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/future.c?h=2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-12-11T14:04:59Z</updated>
<entry>
<title>Constify filenames and scripts. Fixes #651362.</title>
<updated>2002-12-11T14:04:59Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-12-11T14:04:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=95292d6caa3af3196c5b9f5f95dae209815c09e5'/>
<id>urn:sha1:95292d6caa3af3196c5b9f5f95dae209815c09e5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed more hair in support of future-generator stmts.</title>
<updated>2002-04-12T01:20:10Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-04-12T01:20:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2bbdba3c00c33453a2591ffce798c870d9a0ae22'/>
<id>urn:sha1:2bbdba3c00c33453a2591ffce798c870d9a0ae22</id>
<content type='text'>
</content>
</entry>
<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>
</feed>
