Re: editor recommendations?

2021-03-03 Thread Lele Gaifax
Cameron Simpson writes: > My fingers know vim. Some others' fingers know emacs. Emacs has also an Evil[1] mode, that mimics some vi/vim features. I suggest taking a look at Doom Emacs[2], a popular so-called "Emacs distribution", that provides an out-of-the-box great experience with a modular

[issue22228] Adapt bash readline operate-and-get-next function

2020-12-20 Thread Lele Gaifax
Lele Gaifax added the comment: Hey, recompiling current master against readline 8.1 gives an interpreter where this is already working: rl_operate_and_get_next() is bound to Control-o in the standard emacs keymap! http://git.savannah.gnu.org/cgit/readline.git/tree/emacs_keymap.c?h=readline

[issue22228] Adapt bash readline operate-and-get-next function

2020-12-17 Thread Lele Gaifax
Lele Gaifax added the comment: Apparently, now the operate-and-get-next function has been moved to the readline library, so hopefully it will be easier to get its advantage. See point 2.j in https://lwn.net/Articles/839213/ -- ___ Python tracker

Re: Strange namespace issue

2020-08-11 Thread Lele Gaifax
lse: print(" a value,", v) In this case, it would be less practical to determine what the script defined: by any chance this case is the first I wrote, and here the choice to pass the third argument was surely "deliberate". But I see this is somewhat fragile, and

Strange namespace issue

2020-08-10 Thread Lele Gaifax
.. Thanks in advance for any enlightenment! ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.org/mailman/listinfo/python-list

Re: Data model and attribute resolution in subclasses

2020-03-02 Thread Lele Gaifax
nfused its meaning: >>> class Base: ... pass ... >>> class Derived(Base): ... pass ... >>> print(Base.__subclasses__()) [] ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad ave

Re: Cython, producing different modules from the same .pyx

2019-12-20 Thread Lele Gaifax
Ethan Furman writes: > If you don't get an answer here, you can try the Cython Users group: Thanks, reposted the same question there. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia

Re: Cython, producing different modules from the same .pyx

2019-12-20 Thread Lele Gaifax
Greg Ewing writes: > You could try creating a set of top-level .pyx stubs, each of > which just 'include' the real code. Thank you, will try this approach! ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura

Cython, producing different modules from the same .pyx

2019-12-19 Thread Lele Gaifax
ldn't find a way to alter that name. Did I miss something, or is the only way to duplicate the source .pyx file to a different name? Thanks in advance, ciao, lele. (*) https://github.com/lelit/pglast/blob/master/setup.py#L76 -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real

[issue22228] Adapt bash readline operate-and-get-next function

2019-02-08 Thread Lele Gaifax
Lele Gaifax added the comment: I rebased my work on current master of the cpython git repository, cherry picking the changes from the old branch (that was based on a at the time unofficial git mirror of the mercurial repository). To avoid any ambiguity I called it "issue8_3

[issue22228] Adapt bash readline operate-and-get-next function

2019-02-06 Thread Lele Gaifax
Lele Gaifax added the comment: Luckily the referenced branch is still around on GH: https://github.com/lelit/cpython-hg-mirror/tree/issue8_2 As the name says, it is not related to modern CPython' git repo though. -- ___ Python tracker <ht

[issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring

2018-10-08 Thread Lele Gaifax
Change by Lele Gaifax : -- keywords: +patch pull_requests: +9141 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

Re: functions vs methods

2018-07-21 Thread Lele Gaifax
is correct, why not make len also as a part of list > class itself? Yes, that's correct. For the reason, see https://docs.python.org/3/faq/design.html#why-does-python-use-methods-for-some-functionality-e-g-list-index-but-functions-for-other-e-g-len-list ciao, lele. -- nickname: Lele Gaifax | Qu

[issue34166] Tools/msgfmt.py emits a DeprecationWarning under Python 3.7

2018-07-20 Thread Lele Gaifax
New submission from Lele Gaifax : $ python3.7 msgfmt.py -o test.mo test.po msgfmt.py:199: DeprecationWarning: tostring() is deprecated. Use tobytes() instead. output = generate() -- components: Demos and Tools messages: 322001 nosy: lelit priority: normal severity: normal status

Re: syntax oddities

2018-05-18 Thread Lele Gaifax
What's wrong with top-posting? >> The answers that precede the questions >>> What's the most boring thing in e-mails? :-) ciao, lele. -- nickname: Lele Gaifax | Perché è contrario al normale senso di lettura real: Emanuele Gaifas | > Cosa c'è di male nel rispondere in cima?

Re: f-string anomaly

2018-05-14 Thread Lele Gaifax
Ken Kundert <then...@nurdletech.com> writes: > Lele, > I am using Python3.6. d has to be an object of mydict. My bad, sorry, I completely missed the premise :-|. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comin

Re: f-string anomaly

2018-05-14 Thread Lele Gaifax
Traceback (most recent call last): File "", line 1, in ValueError: Invalid format specifier Which Python version are you using? ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.

Re: f-string anomaly

2018-05-14 Thread Lele Gaifax
} and {v} >>> print(f'this is {k} and {v}') this is 1 and 2 >>> print(f'Email: {d:{{k}} {{v}}}') Traceback (most recent call last): File "", line 1, in NameError: name 'd' is not defined ciao, lele. -- nickname: Lele Gaifax

[issue27645] Supporting native backup facility of SQLite

2018-03-17 Thread Lele Gaifax
Lele Gaifax <lelegai...@gmail.com> added the comment: Thank you Berker, I'm sorry I could not find the time to investigate the problem by myself. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue27645] Supporting native backup facility of SQLite

2018-03-12 Thread Lele Gaifax
Lele Gaifax <lelegai...@gmail.com> added the comment: Sorry, I could not find an easy enough way to compile against SQLite 3.8.7.1, being on Debian sid myself (3.22). I hope to find some time to try harder. -- ___ Python tracke

[issue27645] Supporting native backup facility of SQLite

2018-01-25 Thread Lele Gaifax
Lele Gaifax <lelegai...@gmail.com> added the comment: I suspect this won't land in 3.7... Let me know if I can do something to make that happen, or instead if I should try to rebase the change on top of current master and rectify references to the Python v

Re: Right way to io.open(...) an existing file object in Python 2.7?

2018-01-16 Thread Lele Gaifax
Skip Montanaro <skip.montan...@gmail.com> writes: > I don't see any sort of "fdopen" or "freopen" equivalent mentioned in the io > module documentation. Is this possible in a clean way? > There is an os.fdopen(), so maybe newf = os.fdopen(fp.fileno()) ci

Re: Simple graphic library for beginners

2018-01-12 Thread Lele Gaifax
g lucky" Google advices. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.org/mailman/listinfo/python-list

Re: Generating SVG from turtle graphics

2018-01-11 Thread Lele Gaifax
going to draw. Anyway, in the past I used http://pyx.sourceforge.net/ to produce the images for a book[1] on the Carrom game, and I enjoyed its simplicity. ciao, lele. [1] https://bitbucket.org/lele/cta -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincer

Re: RegExp - please help me!

2017-12-27 Thread Lele Gaifax
lob/43ce2e8cdf54e4e1e8b0352e37adbd72e568e100/src/postgres/include/nodes/parsenodes.h [4] https://github.com/lelit/pg_query/blob/master/pg_query/enums/parsenodes.py -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero

[issue27645] Supporting native backup facility of SQLite

2017-12-11 Thread Lele Gaifax
Lele Gaifax <lelegai...@gmail.com> added the comment: Thank you Serhiy, ok: will simplify the method, hopefully tomorrow. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32274] Potential leak in pysqlite_connection_init()

2017-12-11 Thread Lele Gaifax
Lele Gaifax <lelegai...@gmail.com> added the comment: You are right, thank you. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <https://bu

[issue27645] Supporting native backup facility of SQLite

2017-12-11 Thread Lele Gaifax
Lele Gaifax <lelegai...@gmail.com> added the comment: I need advice on Serhiy's proposal of dropping support to plain file name (see also https://github.com/python/cpython/pull/4238#discussion_r155725986). Wrt the other point I filed issue

[issue32274] Potential leak in pysqlite_connection_init()

2017-12-11 Thread Lele Gaifax
New submission from Lele Gaifax <lelegai...@gmail.com>: The function calls ``sqlite3_open()`` that, if I understand its documentation correctly[#], returns a new connection object in all cases (that is, even on errors) with the only exception of "out of memory" (in wh

Re: Stackoverflow question: Is there a built-in identity function in Python?

2017-12-07 Thread Lele Gaifax
Chris Angelico <ros...@gmail.com> writes: > On Fri, Dec 8, 2017 at 6:29 AM, Lele Gaifax <l...@metapensiero.it> wrote: >> Chris Angelico <ros...@gmail.com> writes: >> >>> On Fri, Dec 8, 2017 at 5:53 AM, Peter Otten <__pete...@web.de> w

Re: Stackoverflow question: Is there a built-in identity function in Python?

2017-12-07 Thread Lele Gaifax
entity((('spam', 'eggs', 7),)) \ == identity'spam', 'eggs', 7),),)) should yield True? ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.org/mailman/listinfo/python-list

Re: SystemError: error return without exception set

2017-12-07 Thread Lele Gaifax
uch APIs return NULL they also call PyErr_SetXXX() appropriately. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.org/mailman/listinfo/python-list

[issue27645] Supporting native backup facility of SQLite

2017-12-05 Thread Lele Gaifax
Lele Gaifax <lelegai...@gmail.com> added the comment: Just to keep the door open, I'm willing to to whatever is needed to see this accepted and merged. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

Re: Easiest way to access C module in Python

2017-11-07 Thread Lele Gaifax
d from life.so >>> dir(life) ['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__test__', 'life'] Can you try to import the "life" module and print its "dir()" to see the symbols it exposes? ciao, lele. -- nickname: Lele Gaifax | Quando

Re: Easiest way to access C module in Python

2017-11-07 Thread Lele Gaifax
omplish that. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.org/mailman/listinfo/python-list

Re: Easiest way to access C module in Python

2017-11-07 Thread Lele Gaifax
tmp/ct/life.cpython-36m-x86_64-linux-gnu.so $ python -c "import life; print(life.life())" 42 As other said, for a single function accepting no arguments and returning a single value Cython may be an heavy tool, but I bet you can imagine more complex situations... ciao, lele. -- nickna

[issue27645] Supporting native backup facility of SQLite

2017-11-02 Thread Lele Gaifax
Lele Gaifax <lelegai...@gmail.com> added the comment: As suggested by Brett Cannon, I closed the original PR#377 and opened a new one against a rebased version of the implementation. -- ___ Python tracker <rep...@bugs.python.or

[issue27645] Supporting native backup facility of SQLite

2017-11-02 Thread Lele Gaifax
Change by Lele Gaifax <lelegai...@gmail.com>: -- pull_requests: +4203 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue27645> ___ _

Re: Invoking return through a function?

2017-10-30 Thread Lele Gaifax
int, MacroPy! See https://github.com/azazel75/macropy for a 3.5+ version. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929

Re: Compression of random binary data

2017-10-24 Thread Lele Gaifax
quot;, while the other would be "movie.avi.zip.zip.zip.zip.zip"... some sort of https://en.wikipedia.org/wiki/Water_memory applied to file system entries :-) ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò

[issue27645] Supporting native backup facility of SQLite

2017-10-24 Thread Lele Gaifax
Lele Gaifax <lelegai...@gmail.com> added the comment: Reasonable and quite simple to implement: done in commit https://github.com/lelit/cpython/commit/960303f9eb394e2ba91d10e5e674997a48811ac2 -- ___ Python tracker <rep...@bugs.python.or

Re: choice of web-framework

2017-10-22 Thread Lele Gaifax
Chris Warrick <kwpol...@gmail.com> writes: > Zope is effectively dead these days. Except it's alive and kicking: https://blog.gocept.com/ :-) ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi

Re: why del is not a function or method?

2017-10-16 Thread Lele Gaifax
FAQs, see https://docs.python.org/3/faq/design.html#why-does-python-use-methods-for-some-functionality-e-g-list-index-but-functions-for-other-e-g-len-list and the next one. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver

Re: The "loop and a half"

2017-10-09 Thread Lele Gaifax
to edit the files. If it's just a matter of "finding one", look no further and try out Emacs's TRAMP :-) ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it |

Re: OT again sorry [Re: Interactive scripts (back on topic for once) [was Re: The "loop and a half"]]

2017-10-08 Thread Lele Gaifax
thers said already, it's difficult-to-impossible to get a one-size-fits-all configuration that satisfies everybody (where the cardinality of "everybody" exceeds 1, of course). ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comin

[issue27645] Supporting native backup facility of SQLite

2017-10-05 Thread Lele Gaifax
Lele Gaifax <lelegai...@gmail.com> added the comment: I rebased my v2 set of changesets into a new branch: https://github.com/lelit/cpython/tree/sqlite-backup-api-v3 I really don't know if anybody is interested beyond me, I did everything has been suggested/requested, and honestly

Re: newb question about @property

2017-10-03 Thread Lele Gaifax
tivity, as usually the details of *where* a logger writes the messages are better left to a configuration done at another level :) ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l.

Re: PyYaml not using Yaml 1.2?

2017-08-04 Thread Lele Gaifax
ports format 1.2. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.org/mailman/listinfo/python-list

Re: YAML in std lib?

2017-07-31 Thread Lele Gaifax
is fork, https://pypi.python.org/pypi/ruamel.yaml, that seems actively maintained: it supports YAML 1.2 for example. But I agree with you, I do not see a good enough reason to include it in the standard library. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real:

[issue27645] Supporting native backup facility of SQLite

2017-07-22 Thread Lele Gaifax
Lele Gaifax added the comment: Monthly offer to do whatever is needed to easy the path to adoption :-) -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27645] Supporting native backup facility of SQLite

2017-06-08 Thread Lele Gaifax
Lele Gaifax added the comment: Is there any chance this could be accepted for Python 3.7? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

Re: Openpyxl cell format

2017-06-05 Thread Lele Gaifax
ll's content, but I could be wrong: I bet that the cell is marked as containing a datetime value, and that's what you are getting. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@met

Re: Openpyxl cell format

2017-06-05 Thread Lele Gaifax
ain why you get 2016 as the year... ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.org/mailman/listinfo/python-list

Re: Backward compatible of Python 2 and Python 3

2017-06-05 Thread Lele Gaifax
. One popular way of doing that is by using https://pypi.python.org/pypi/six/1.10.0 ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero

Re: Manager for project templates, that allows "incremental" feature addition

2017-06-02 Thread Lele Gaifax
Lele Gaifax <l...@metapensiero.it> writes: > Paul Moore <p.f.mo...@gmail.com> writes: > >> On Thursday, 23 March 2017 15:56:43 UTC, Paul Moore wrote: >> >> Sadly, it doesn't support Windows, which is what I use. > > FYI, I just saw https://pypi.

Re: How to install Python package from source on Windows

2017-05-17 Thread Lele Gaifax
ss the autoconf people! ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to install Python package from source on Windows

2017-05-17 Thread Lele Gaifax
he github.com project, and download a plain zip archive from https://github.com/python/cpython/archive/master.zip. Getting a specific branch is left as an exercize for the reader. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver

Re: Metaclass conundrum - binding value from an outer scope

2017-04-20 Thread Lele Gaifax
gs, _underlying=underlying): return _underlying(self._instance, *args) help? ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1

Re: Temporary variables in list comprehensions

2017-04-06 Thread Lele Gaifax
[(tmp, tmp + 1) for x in data with expensive_calculation(x) as tmp if tmp is not None] that fits the usual "with" syntax. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di

Re: Spam user

2017-03-31 Thread Lele Gaifax
Ricardo A Baila <lop...@gmail.com> writes: > Could someone remove wucbad...@gmx.com from the group? Strange, I could not see such messages, neither in the newsgroup (gmane) nor on the ML archives. Are you sure you are not receiving those as private messages? ciao, lele. -- nickn

Re: Manager for project templates, that allows "incremental" feature addition

2017-03-24 Thread Lele Gaifax
nately it's Py2 only :-\ If you can try it under Windows, maybe I could be convinced in contributing some Py3 compatibility fixes, and try to support that too in my tinject. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver

Re: Manager for project templates, that allows "incremental" feature addition

2017-03-23 Thread Lele Gaifax
Paul Moore <p.f.mo...@gmail.com> writes: > Sadly, it doesn't support Windows, which is what I use. I'm sorry, there is little I can do on that front, but if you come up with an alternative library, please let me know. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quel

Re: Manager for project templates, that allows "incremental" feature addition

2017-03-22 Thread Lele Gaifax
tps://pypi.python.org/pypi/metapensiero.tool.tinject It seems to fit some, but not all, of your requested features. Hope this helps, ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l..

Re: When will os.remove fail?

2017-03-14 Thread Lele Gaifax
ty file 'othersfile'? y $ ls -l *file* ls: cannot access '*file*': No such file or directory my 0.02€ ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- For

Re: When will os.remove fail?

2017-03-12 Thread Lele Gaifax
n on the directory containing the file, not on the file itself. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.or

[issue27645] Supporting native backup facility of SQLite

2017-03-01 Thread Lele Gaifax
Lele Gaifax added the comment: Thank you Aviv, I applied your suggestions and opened a PR. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27645] Supporting native backup facility of SQLite

2017-02-27 Thread Lele Gaifax
Lele Gaifax added the comment: Now that we are is officially on GH, would you welcome a PR rebasing this patch on top of the master branch? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

Re: problem with Python 3.6 + PyX

2017-02-10 Thread Lele Gaifax
have it installed? If so, is it "reachable" by your $PATH variable? A quick test to re-render my PyX-based images with Python 3.6 didn't reveal any problem... ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad a

[issue29271] Task.current_task(None) returns unexpected result

2017-01-13 Thread Lele Gaifax
Lele Gaifax added the comment: Yay, Yury is too fast!! :-) -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29271> ___ ___ Pyth

[issue29271] Task.current_task(None) returns unexpected result

2017-01-13 Thread Lele Gaifax
Lele Gaifax added the comment: FWIW, the problem afflicts other functions, for example the following script exhibits a similar difference: import asyncio async def coro(): print(asyncio.Task.all_tasks()) print(asyncio.Task.all_tasks(None)) loop = asyncio.get_event_loop

[issue29271] Task.current_task(None) returns unexpected result

2017-01-13 Thread Lele Gaifax
Changes by Lele Gaifax <lelegai...@gmail.com>: -- nosy: +lelit ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29271> ___ __

[issue28830] Typo in whatsnew entry for 3.6

2016-11-29 Thread Lele Gaifax
Lele Gaifax added the comment: Ok, thank you. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28830> ___ ___ Python-bugs-list

[issue28830] Typo in whatsnew entry for 3.6

2016-11-29 Thread Lele Gaifax
New submission from Lele Gaifax: At https://hg.python.org/cpython/rev/52038705827d#l1.18 there is an "as part" where probably a "are part" was meant. -- assignee: docs@python components: Documentation messages: 281977 nosy: docs@python, lelit priority: normal sev

Re: Different behaviour of regexp in 3.6.0b2

2016-10-15 Thread Lele Gaifax
Serhiy Storchaka <storch...@gmail.com> writes: > Seems the documentation is not accurate. Could you file a report on > https://bugs.python.org/ ? Thank you everybody answered! Here it is: http://bugs.python.org/issue28450 ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di q

[issue28450] Misleading/inaccurate documentation about unknown escape sequences

2016-10-15 Thread Lele Gaifax
New submission from Lele Gaifax: Python 3.6+ is stricter about escaped sequences in string literals. The documentation need some improvement to clarify the change: for example https://docs.python.org/3.6/library/re.html#re.sub first says that “Unknown escapes such as \& are left a

Re: Different behaviour of regexp in 3.6.0b2

2016-10-14 Thread Lele Gaifax
Ned Batchelder <n...@nedbatchelder.com> writes: > On Friday, October 14, 2016 at 12:50:44 PM UTC-4, Lele Gaifax wrote: >> Chris Angelico <ros...@gmail.com> writes: >> >> > There's a shift as of 3.6 to make unrecognized alphabetic escapes into >> >

Re: Different behaviour of regexp in 3.6.0b2

2016-10-14 Thread Lele Gaifax
Lele Gaifax <l...@metapensiero.it> writes: > And the documentation as well, to clarify the fact immediately, without > assuming one will scroll down to the "changed in version" part (at least, that > is what seem the rule in other parts of the manual). Also, I'd p

Re: Different behaviour of regexp in 3.6.0b2

2016-10-14 Thread Lele Gaifax
Chris Angelico <ros...@gmail.com> writes: > There's a shift as of 3.6 to make unrecognized alphabetic escapes into > errors, or at least warnings. But we are talking about raw strings here, specifically r'\s+'. I agree that with plain strings it's a plus. ciao, lele. -- nickname:

Re: Different behaviour of regexp in 3.6.0b2

2016-10-14 Thread Lele Gaifax
Peter Otten <__pete...@web.de> writes: > Lele Gaifax wrote: > >> The original intent is to replace spaces within a string with the regular >> expression \s+ (see >> ... >> Accordingly to the documentation >> (https://docs.python.org/3.6/library/re.htm

Different behaviour of regexp in 3.6.0b2

2016-10-14 Thread Lele Gaifax
the repl argument] such as \& are left alone”. Am I missing something, or is this a regression? In the meantime, I will alert the pgcli people. Thanks in advance, bye, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.org/mailman/listinfo/python-list

Re: ANN: dedent 0.5 released

2016-09-29 Thread Lele Gaifax
Isn't it roughly the same as https://docs.python.org/3.6/library/textwrap.html#textwrap.dedent ? ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero

Re: [RELEASE] Python 3.6.0b1 is now available

2016-09-13 Thread Lele Gaifax
me)! I recall we had a very brief exchange on this at the time, and I event spent a few days trying a quick approach (basically passing also the ordered list of keywords...). Anyway, we are in a new millenium now, and two major versions forward! ;-) Thank you all, ciao, lele. -- nickname: Lele

[issue27645] Supporting native backup facility of SQLite

2016-08-16 Thread Lele Gaifax
Lele Gaifax added the comment: I guess the chance of getting this merged before the 3.6 betas is very low, but if there is *anything* I could do to raise it, please tell :-) -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue27745] Fix typos in Argument Clinic howto

2016-08-12 Thread Lele Gaifax
Changes by Lele Gaifax <lelegai...@gmail.com>: Removed file: http://bugs.python.org/file44083/ac-doc-typos.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27745] Fix typos in Argument Clinic howto

2016-08-12 Thread Lele Gaifax
Lele Gaifax added the comment: Re-uploaded the patch file, without spurious stuff. -- Added file: http://bugs.python.org/file44084/ac-doc-typos.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27745] Fix typos in Argument Clinic howto

2016-08-12 Thread Lele Gaifax
Lele Gaifax added the comment: Yes, sorry about that, picked the wrong file :-| I will renew the patch shortly! -- components: -Documentation versions: -Python 3.5 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27745] Fix typos in Argument Clinic howto

2016-08-12 Thread Lele Gaifax
New submission from Lele Gaifax: The attached patch, available also as https://github.com/lelit/cpython/commit/9e33f33e87ad594daae71ccdbe6f0a5c5f8aca65, fixes a few typos in the Argument Clinic howto document. -- components: Argument Clinic files: ac-doc-typos.patch keywords: patch

[issue27645] Supporting native backup facility of SQLite

2016-07-30 Thread Lele Gaifax
Lele Gaifax added the comment: Ok, the agreement is fullfilled. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27645> ___ ___

[issue27645] Supporting native backup facility of SQLite

2016-07-28 Thread Lele Gaifax
Lele Gaifax added the comment: WRT to the agreement form, I guess I'll have to compile it even if I already contributed to Python decades ago (ObjC, readline, NeXT support...), right? Will try to do whatever is needed in the next days

[issue27645] Supporting native backup facility of SQLite

2016-07-28 Thread Lele Gaifax
Lele Gaifax added the comment: For the documentation see https://github.com/lelit/cpython/commit/bd82f8de9800ae40b33ddf1e4b7d72f10bc9c10e or the attached patch. -- Added file: http://bugs.python.org/file43930/issue27645-doc.patch ___ Python tracker

[issue27645] Supporting native backup facility of SQLite

2016-07-28 Thread Lele Gaifax
Changes by Lele Gaifax <lelegai...@gmail.com>: -- keywords: +patch Added file: http://bugs.python.org/file43928/issue27645.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27645] Supporting native backup facility of SQLite

2016-07-28 Thread Lele Gaifax
Lele Gaifax added the comment: Here is a preliminary implementation: https://github.com/lelit/cpython/commit/b7456eb6a55568639a41efb5d88ab4d9b3c20337 -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27645] Supporting native backup facility of SQLite

2016-07-28 Thread Lele Gaifax
New submission from Lele Gaifax: It would be nice if the sqlite3 stdlib module could expose the SQLite Online Backup API. I'm willing to implement it, as encouraged by Paul Moore. See also: https://mail.python.org/pipermail/python-dev/2016-July/145570.html -- components: Extension

[issue22228] Adapt bash readline operate-and-get-next function

2016-06-22 Thread Lele Gaifax
Lele Gaifax added the comment: I addressed Martin's comments (thank you!) in https://github.com/lelit/cpython/commits/issue8_2, removing pointless usage of a macro and avoiding usage of module's state to store the "next line index", keeping it in a plain static variable. Let m

[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Lele Gaifax
Lele Gaifax added the comment: Daniel, are these misplaced comments, or should your quite big attachments tell me something I'm missing? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Lele Gaifax
Lele Gaifax added the comment: In https://github.com/lelit/cpython/commit/3e5e557a876831a99c21f5a173623cb05ff48abf I reimplemented the functionality in a slightly different and hopefully better way, rebasing it on current master. IANAL, but I think that the new approach is different enough

[issue22228] Adapt bash readline operate-and-get-next function

2016-06-16 Thread Lele Gaifax
Lele Gaifax added the comment: I will try to address your concerns. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8> ___ ___

[issue22228] Adapt bash readline operate-and-get-next function

2016-06-16 Thread Lele Gaifax
Lele Gaifax added the comment: The patch does not apply cleanly anymore, with current 3.6a3. If there is any chance it could be taken into consideration, I will try to rebase it on top of current version. @Berker: as I don't use Rietveld, is it possible for me to reach the comment you

Re: Anonymous hyperlinks in restructuredtext

2016-05-28 Thread Lele Gaifax
it works This is an example... Hope this helps, ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.org/mailman

Re: Untrusted code execution

2016-04-08 Thread Lele Gaifax
-- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.org/mailman/listinfo/python-list

  1   2   3   >