<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/psycopg2.git/psycopg/adapter_qstring.c, branch code-cleanup</title>
<subtitle>github.com: psycopg/psycopg2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/'/>
<entry>
<title>Stricter use of PyArg_ParseTuple typed objects</title>
<updated>2019-01-21T02:00:04+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2018-12-27T22:46:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=79de02d7d5d5612f6ac54a953cca3eaa8a641470'/>
<id>79de02d7d5d5612f6ac54a953cca3eaa8a641470</id>
<content type='text'>
The function expect PyObject *, not subclasses.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function expect PyObject *, not subclasses.
</pre>
</div>
</content>
</entry>
<entry>
<title>Dropped compiler warning about signed/unsigned comparisons</title>
<updated>2017-02-08T08:44:08+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2017-02-07T19:07:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=d2cd1236a8638eeee39d78187e76572ed6bfc19d'/>
<id>d2cd1236a8638eeee39d78187e76572ed6bfc19d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't look up for Python encoding</title>
<updated>2016-12-29T21:11:58+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2016-12-26T18:47:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=3295beb7774098659a40649d65e84f7ae9a4838e'/>
<id>3295beb7774098659a40649d65e84f7ae9a4838e</id>
<content type='text'>
Store the encode/decode functions for the right codec in the connection.
The Python encoding name has been dropped of the connection to avoid the
temptation to use it...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Store the encode/decode functions for the right codec in the connection.
The Python encoding name has been dropped of the connection to avoid the
temptation to use it...
</pre>
</div>
</content>
</entry>
<entry>
<title>Use -1 instead of 0 to say "calculate the length" in many funcs</title>
<updated>2016-12-26T23:29:01+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2016-12-26T19:01:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=dfe547856ee946163dfdc695723f7ab67865228b'/>
<id>dfe547856ee946163dfdc695723f7ab67865228b</id>
<content type='text'>
0 is a valid length, isn't it?
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
0 is a valid length, isn't it?
</pre>
</div>
</content>
</entry>
<entry>
<title>conn-&gt;codec rename to pyenc</title>
<updated>2016-12-26T11:25:13+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2016-12-26T11:25:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=f439ca61d678ed2fe34c132580cd6e8a581819f7'/>
<id>f439ca61d678ed2fe34c132580cd6e8a581819f7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow adapting bytes using QuotedString on Python 3 too</title>
<updated>2016-07-01T18:14:00+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2016-07-01T18:11:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=5bcaf11f9db43f15d52943916647a0cc0dc6ffca'/>
<id>5bcaf11f9db43f15d52943916647a0cc0dc6ffca</id>
<content type='text'>
Close #365.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Close #365.
</pre>
</div>
</content>
</entry>
<entry>
<title>Test moved to the right module, cleanup, but same problem</title>
<updated>2016-07-01T17:01:16+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2016-07-01T15:57:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=2e8e61b8d41144cbb65dfce786335ff7c625b4f7'/>
<id>2e8e61b8d41144cbb65dfce786335ff7c625b4f7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Work in progress on writable encoding</title>
<updated>2016-07-01T17:00:05+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2016-07-01T10:17:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=bada1f1f8e390c7d0ef8eea88cdb16e6f78c1eec'/>
<id>bada1f1f8e390c7d0ef8eea88cdb16e6f78c1eec</id>
<content type='text'>
Would help using adapt(unicode) to quote strings without a connection,
see ticket #331.

Currently in heisenbug state: if test_connection_wins_anyway and
test_encoding_default run (in this order), the latter fail because the
returned value is "'\xe8 '", with an extra space. Skipping the first
test, the second succeed.

The bad value is returned by the libpq:

    ql = PQescapeString(to+eq+1, from, len);

just returns len = 2 and an extra space in the string... meh.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Would help using adapt(unicode) to quote strings without a connection,
see ticket #331.

Currently in heisenbug state: if test_connection_wins_anyway and
test_encoding_default run (in this order), the latter fail because the
returned value is "'\xe8 '", with an extra space. Skipping the first
test, the second succeed.

The bad value is returned by the libpq:

    ql = PQescapeString(to+eq+1, from, len);

just returns len = 2 and an extra space in the string... meh.
</pre>
</div>
</content>
</entry>
<entry>
<title>Dropped simple type wrapper functions</title>
<updated>2014-08-15T01:54:31+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2014-08-15T01:37:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=a2b01cdf4221f4fad94143606c06141ce91ef7bd'/>
<id>a2b01cdf4221f4fad94143606c06141ce91ef7bd</id>
<content type='text'>
These functions don't need to exist: exposing the type in the module is
enough. It is actually better as one may use isinstance and such.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These functions don't need to exist: exposing the type in the module is
enough. It is actually better as one may use isinstance and such.
</pre>
</div>
</content>
</entry>
<entry>
<title>Dropped almost-no-op customized objects repr()</title>
<updated>2014-08-15T01:54:10+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2014-08-15T01:06:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=95165cef7d6157945802ffeb98d51c43fd4033e9'/>
<id>95165cef7d6157945802ffeb98d51c43fd4033e9</id>
<content type='text'>
The default repr is enough: it prints &lt;TypeName at 0xADDR&gt; instead of
&lt;TypeName object at 0xADDR&gt;.

The only people being hurt by this change are the ones using doctests:
they deserve it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The default repr is enough: it prints &lt;TypeName at 0xADDR&gt; instead of
&lt;TypeName object at 0xADDR&gt;.

The only people being hurt by this change are the ones using doctests:
they deserve it.
</pre>
</div>
</content>
</entry>
</feed>
