<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/regexmodule.c, branch v1.5</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/regexmodule.c?h=v1.5</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/regexmodule.c?h=v1.5'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>1997-10-01T04:29:29Z</updated>
<entry>
<title>Apply two changes, systematically:</title>
<updated>1997-10-01T04:29:29Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-10-01T04:29:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0cb96de2699fa032ef1379ebb62a4dfb66ee5fde'/>
<id>urn:sha1:0cb96de2699fa032ef1379ebb62a4dfb66ee5fde</id>
<content type='text'>
(1) Use PyErr_NewException("module.class", NULL, NULL) to create the
    exception object.

(2) Remove all calls to Py_FatalError(); instead, return or
    ignore the errors -- the import code now checks PyErr_Occurred()
    after calling a module's init function, so it's no longer a
    fatal error for the initialization to fail.

Also did some small cleanups, e.g. removed unnecessary test for
"already initialized" from initfpectl(), and unified
initposix()/initnt().

I haven't checked this very thoroughly, so while the changes are
pretty trivial -- beware of untested code!
</content>
</entry>
<entry>
<title>Change [_Py_]re_compile_pattern() to return a char*.</title>
<updated>1997-09-03T00:47:36Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-09-03T00:47:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d19c04a88e8c4720818e3a01671547ffdde01c98'/>
<id>urn:sha1:d19c04a88e8c4720818e3a01671547ffdde01c98</id>
<content type='text'>
Since it only returns an error message (or NULL) there's no reason
for it to be unsigned char *, and various compilers like this better.
</content>
</entry>
<entry>
<title>Casts by Jack to shut up the Mac compiler.</title>
<updated>1997-08-18T15:31:24Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-08-18T15:31:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ed2554a396f5adc8a701d61539d1ed565baf9934'/>
<id>urn:sha1:ed2554a396f5adc8a701d61539d1ed565baf9934</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use _Py_re_match/search instead of re_match/search; these may become</title>
<updated>1997-08-14T14:35:12Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-08-14T14:35:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0318bd6ae6f14ba04345b768e76fca3c6c1a67ab'/>
<id>urn:sha1:0318bd6ae6f14ba04345b768e76fca3c6c1a67ab</id>
<content type='text'>
different in a future version.
</content>
</entry>
<entry>
<title>1.5a3 prerelease 1 from AMK</title>
<updated>1997-08-13T22:34:14Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-08-13T22:34:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=95e8053a9ff42a544197e562fdf4c462fc34e8b4'/>
<id>urn:sha1:95e8053a9ff42a544197e562fdf4c462fc34e8b4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix big ineficciency in regobj.search/match (introduced by Barry in an</title>
<updated>1997-05-12T16:04:09Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-05-12T16:04:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4a807f59391b497730342cf4cd07207ef50cfb51'/>
<id>urn:sha1:4a807f59391b497730342cf4cd07207ef50cfb51</id>
<content type='text'>
otherwise laudible attempt to rationalize the argument parsing): it
would save a copy of the original string instead of a reference to it.
Go back to saving a reference, but keep the "s#" format (using a hack
that involves two argument parsing steps, first using "O", then using
"s#").
</content>
</entry>
<entry>
<title>regex_get_syntax(): New module function exported to Python.</title>
<updated>1997-02-18T18:48:50Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>1997-02-18T18:48:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=909d7c3284c84dd50574aca78c59ed4fea3de4b0'/>
<id>urn:sha1:909d7c3284c84dd50574aca78c59ed4fea3de4b0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Nailed a couple of memory leaks, caught by Purify.</title>
<updated>1997-01-09T22:22:05Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>1997-01-09T22:22:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4bc9d3956059fd8ba6e41e8550336dc6de60bb02'/>
<id>urn:sha1:4bc9d3956059fd8ba6e41e8550336dc6de60bb02</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Several changes.  Test program to follow.</title>
<updated>1996-12-20T21:56:07Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>1996-12-20T21:56:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c357325663150599e3cf5e0ee03270d20ea2bc58'/>
<id>urn:sha1:c357325663150599e3cf5e0ee03270d20ea2bc58</id>
<content type='text'>
- Where optional arguments were being used, converted to
  PyArg_ParseTuple() style instead of nested PyArg_Parse() style.

- Check for and handle many potential error conditions that were never
  being tested.

- internal reg_* functions renamed to regobj_* (makes it easier to
  figure out which are global regex functions and which are for regex
  objects).

- reg_group (now regobj_group) was quite extensively reworked.  it no
  longer recurses to do its job (by factoring core functionality into
  a separate function that knows about string and integer indexes).

- some minor formatting fixes.

- regex_set_syntax() now invalidates the cache.  Without this change
  (in the example below), the second search would produce different
  output depending on whether the first search were performed or not
  (since performing the first search would cache the compiled object
  with RE_SYNTAX_EMACS, causing the second test to unexpectedly fail).

  regex.search('(a+)|(b+)', 'cdb')
  prev = regex.set_syntax(RE_SYNTAX_AWK)
  regex.search('(a+)|(b+)', 'cdb')
</content>
</entry>
<entry>
<title>Keep gcc -Wall happy.</title>
<updated>1996-12-05T23:43:35Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1996-12-05T23:43:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a376cc5cc86c62f912886c4002ed1a9b3b213b88'/>
<id>urn:sha1:a376cc5cc86c62f912886c4002ed1a9b3b213b88</id>
<content type='text'>
</content>
</entry>
</feed>
