Daniele Varrazzo

Results 122 issues of Daniele Varrazzo

Hello, I have tried to use pyre to introduce `LiteralString` in psycopg 3 codebase. I could fix all the internal usage of LiteralString, however, several methods of [`string.Formatter`](https://docs.python.org/3.8/library/string.html#string.Formatter) might be...

Hello, I am introducing `LiteralString` in psycopg 3: see the [literal-string](https://github.com/psycopg/psycopg/tree/literal-string) branch. As a final result, functions such as `cursor.execute()` would require a literal string rather than any string expression....

The `FILER_STORAGE['public']['thumbnails']['THUMBNAIL_OPTIONS'] is not documented in https://django-filer.readthedocs.io/en/latest/settings.html#filer-storages It seems interesting to know about it, because the configuration documented: ``` 'thumbnails': { 'ENGINE': 'filer.storage.PublicFileSystemStorage', 'OPTIONS': { 'location': '/path/to/media/filer_thumbnails', 'base_url': '/media/filer_thumbnails/', },...

stale

**Is your feature request related to a problem? Please describe.**. In complex deployment, it has happened sometimes that two AKVS entries were generated, defining the same secret. This results in...

enhancement

Traceback on Py3 in v0.17 with gcc 6: ``` /gcc-python-plugin/gcc-with-cpychecker -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION=2.8.dev0 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=100006...

The function [`PyLong_FromString`](https://docs.python.org/3/c-api/long.html#c.PyLong_FromString) takes an optional pointer `pend` and returns a pointer to the unparsed part of the string. This is not considered and results in false positives, e.g. [in...

The function: ```c static PyObject * pfloat_getquoted(pfloatObject *self, PyObject *args) { PyObject *rv; double n = 3.14; if (isnan(n)) rv = PyString_FromString("'NaN'::float"); else if (isinf(n)) { if (n > 0)...

Analysing the function: ```c RAISES_NEG static int _psyco_curs_prefetch(cursorObject *self) { int i = 0; if (self->pgres == NULL) { Dprintf("_psyco_curs_prefetch: trying to fetch data"); do { i = pq_fetch(self, 0);...

The following function: ```c static PyObject * psyco_curs_callproc(cursorObject *self, PyObject *args) { PyObject *parameters = NULL; Py_ssize_t nparameters = 0; if (!PyArg_ParseTuple(args, "O", &parameters)) { goto exit; } nparameters =...

Checking the function the refcount checker reports a refcount error like the following: ![image](https://user-images.githubusercontent.com/199429/50553844-c37bee80-0caf-11e9-91a7-1a87e974d52f.png) `PyTuple_SET_ITEM` should have stolen a reference but it seems it didn't.