[issue46447] datetime.isoformat() documentation does not point to the risk of using it with naive datetime objects

2022-01-24 Thread Jean Carlo Machado
Change by Jean Carlo Machado : -- keywords: +patch pull_requests: +29032 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30850 ___ Python tracker <https://bugs.python.org/issu

[issue46447] datetime.isoformat() documentation does not point to the risk of using it with naive datetime objects

2022-01-20 Thread Jean Carlo Machado
New submission from Jean Carlo Machado : datetime.utcnow() already present a warning box describing the risk of using it without specifying timezone information. However, one might still have the same problem and never encounter this warning information by doing datetime.now().isoformat

[issue43964] ctypes CDLL search path issue on MacOS

2021-06-26 Thread Carlo Cabrera
Carlo Cabrera added the comment: Re option 3: relying on `DYLD_LIBRARY_PATH` or `DYLD_FRAMEWORK_PATH` isn't a great solution either because of SIP. It's can get impractical to use in many standard Makefile-based build systems, for example. (cf. https://github.com/qmk/qmk_cli

[issue33533] Provide an async iterator version of as_completed

2020-10-15 Thread Carlo Dri
Change by Carlo Dri : -- nosy: +carlodri ___ Python tracker <https://bugs.python.org/issue33533> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32244] Multiprocessing: multiprocessing.connection.Listener.accept() should accept a timeout

2020-10-15 Thread Carlo Dri
Change by Carlo Dri : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue32244> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32244] Multiprocessing: multiprocessing.connection.Listener.accept() should accept a timeout

2020-10-15 Thread Carlo Dri
Carlo Dri added the comment: In agree with this proposal! I was looking for the exact same possibility of specifying a timeout to the accept() method, both in AF_INET and AF_PIPE sockets. If there is any better way to implement this I would love to hear it. -- nosy: +carlodri

[issue37152] Add AF_LOCAL alias for AF_UNIX

2019-06-05 Thread carlo
carlo added the comment: > I'm -1 to add the alias. It just adds to the confusion. It's also against the > Zen of Python: "There should be one-- and preferably only one --obvious way > to do it." Agreed with the zen of python. This is my first PR / issue, th

[issue37152] Add AF_LOCAL alias for AF_UNIX

2019-06-04 Thread carlo
Change by carlo : -- keywords: +patch pull_requests: +13695 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13810 ___ Python tracker <https://bugs.python.org/issu

[issue37152] Add AF_LOCAL alias for AF_UNIX

2019-06-04 Thread carlo
New submission from carlo : both mean the same thing and are used to reference local socket files if you do a `man socket` one of the lines says PF_LOCALHost-internal protocols, formerly called PF_UNIX, (AF and PF mean the same thing here, but importantly it shows that PF_UNIX has

[issue34410] Segfault/TimeoutError: itertools.tee of multiprocessing.pool.imap_unordered

2018-08-21 Thread Carlo Rosati
Carlo Rosati added the comment: If what you've said is correct, would it make the most sense to create a Manager method which returns a Proxy to a tee'd iterator? -- ___ Python tracker <https://bugs.python.o

[issue34410] Segfault/TimeoutError: itertools.tee of multiprocessing.pool.imap_unordered

2018-08-16 Thread Carlo Rosati
Carlo Rosati added the comment: `for i in itertools.count()` in the first implementation I posted should be `while True`. I was using that for debugging. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34410] Segfault/TimeoutError: itertools.tee of multiprocessing.pool.imap_unordered

2018-08-16 Thread Carlo Rosati
Carlo Rosati added the comment: I've actually written a few workarounds that should be considered a multiprocessing specific tee function. I need feedback/critique on these. Hopefully we can all agree on one solution that's the best. It is unfortunate that the multiprocessing ma

[issue34410] Segfault/TimeoutError: itertools.tee of multiprocessing.pool.imap_unordered

2018-08-15 Thread Carlo Rosati
Carlo Rosati added the comment: You'll also need to lock when modifying the manager's list. Does anyone know how to do this using the multiprocessing.Queues without deadlocking? -- ___ Python tracker <https://bugs.python.o

[issue34410] Segfault/TimeoutError: itertools.tee of multiprocessing.pool.imap_unordered

2018-08-15 Thread Carlo Rosati
Carlo Rosati added the comment: Okay I needed to do .pop(0) instead of .pop(-1) which is probably O(N) -- ___ Python tracker <https://bugs.python.org/issue34

[issue34410] Segfault/TimeoutError: itertools.tee of multiprocessing.pool.imap_unordered

2018-08-15 Thread Carlo Rosati
Carlo Rosati added the comment: I figured out that the problem is itertools.tee does not use a multiprocessing.Manager proxied object for shared state. I was able to create a workaround tee as follows. def multiprocessing_tee(iterable, n=2): """Write a multiprocessing saf

[issue34410] Segfault/TimeoutError: itertools.tee of multiprocessing.pool.imap_unordered

2018-08-14 Thread Carlo Rosati
New submission from Carlo Rosati : Hello, When I run the attached code, I encounter a segmentation fault. Thanks, Carlo -- files: 3.py messages: 323546 nosy: carlorosati priority: normal severity: normal status: open title: Segfault/TimeoutError: itertools.tee of

[issue29006] 2.7.13 _sqlite more prone to "database table is locked"

2017-01-12 Thread Gian-Carlo Pascutto
Gian-Carlo Pascutto added the comment: >Then we wait for someone that really knows why the change was done in the >first place. Python 2.7 had a regression compared to 2.6 where a SELECT after a COMMIT would silently return the wrong data: http://bugs.python.org/issue2312

[issue27488] Underscore not showing Mac El Capitan

2016-07-11 Thread Monti Carlo
New submission from Monti Carlo: Trying to type in underscore and it just made a space... Downloaded 3.5.2 and it works fine. -- components: IDLE messages: 270205 nosy: Monti Carlo priority: normal severity: normal status: open title: Underscore not showing Mac El Capitan versions

[issue26157] Typo in asyncio documentation

2016-01-19 Thread Carlo Beccarini
Changes by Carlo Beccarini : -- keywords: +patch Added file: http://bugs.python.org/file41662/patch.diff ___ Python tracker <http://bugs.python.org/issue26

[issue26157] Typo in asyncio documentation

2016-01-19 Thread Carlo Beccarini
Changes by Carlo Beccarini : -- versions: +Python 3.4 ___ Python tracker <http://bugs.python.org/issue26157> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26157] Typo in asyncio documentation

2016-01-19 Thread Carlo Beccarini
Carlo Beccarini added the comment: Absolutely. -- nosy: +Paradisee ___ Python tracker <http://bugs.python.org/issue26157> ___ ___ Python-bugs-list mailin

[issue26125] Incorrect error message in the module asyncio.selector_events.

2016-01-15 Thread Carlo Beccarini
Carlo Beccarini added the comment: https://github.com/python/asyncio/pull/313 -- ___ Python tracker <http://bugs.python.org/issue26125> ___ ___ Python-bugs-list m

[issue26125] Incorrect error message in the module asyncio.selector_events.

2016-01-15 Thread Carlo Beccarini
Changes by Carlo Beccarini : -- type: behavior -> versions: +Python 3.4 -Python 3.5, Python 3.6 Added file: http://bugs.python.org/file41625/patch.diff ___ Python tracker <http://bugs.python.org/issu

[issue26125] Incorrect error message in the module asyncio.selector_events.

2016-01-15 Thread Carlo Beccarini
New submission from Carlo Beccarini: Incorrect error message in the module asyncio.selector_events for the methods: _SelectorSocketTransport.write _SelectorSslTransport.write _SelectorDatagramTransport.sendto. The previous error was raising a Tuple: TypeError: ('data argument must be byt

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-25 Thread Gian Carlo Martinelli
Gian Carlo Martinelli added the comment: Any additional input on this issue? -- ___ Python tracker <http://bugs.python.org/issue25356> ___ ___ Python-bugs-list m

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-10 Thread Gian Carlo Martinelli
Gian Carlo Martinelli added the comment: @Terry Using 'Find in Files' (Alt+F3) works fine. I can type everything normally. Also in the Output everything is fine. Apparently the problem is only with diacriticals (I mentioned 'ç', but it is working (I have a particula

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Gian Carlo Martinelli
Gian Carlo Martinelli added the comment: Terry, first of all thanks for trying to solve this. I usually start IDLE using Ubuntu's dash. The problem is with more than just the three characters. Others that I have tested and that don't work include "ç", "`", u

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Gian Carlo Martinelli
Gian Carlo Martinelli added the comment: 1) Do the keys work in the Ubuntu console? Yes. 2) Do the keys work in interactive python (not IDLE), started with 'python' at the console prompt. Yes. 3) In IDLE, go to Help->About IDLE. What is the Tk version. Best if 8.6.x, if

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Gian Carlo Martinelli
New submission from Gian Carlo Martinelli: IDLE (using Python 3.4 on Ubuntu) does not recognize accent key presses (ex: ~, ^, '). This makes it impossible to program in some languages. -- components: IDLE messages: 252620 nosy: Gian Carlo Martinelli priority: normal severity: n

[issue10513] sqlite3.InterfaceError after commit

2015-03-06 Thread Gian-Carlo Pascutto
Gian-Carlo Pascutto added the comment: I believe http://bugs.python.org/issue23129 is a dupe of this. The patch here has been in "patch review" for 9 months. That seems fairly long for something that's a regression that potentially silently produces the wrong data. ---

[issue23129] sqlite3 COMMIT nested in SELECT returns unexpected results

2015-03-06 Thread Gian-Carlo Pascutto
Gian-Carlo Pascutto added the comment: I've ran into this as well, when a program that was running correctly with PostgreSQL turned out to produce garbage with SQLite. Code to reproduce roughly looks like this: sel_cursor = conn.cursor() sel_cursor.execute("SELECT prim_k

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-04 Thread Carlo Beccarini
Changes by Carlo Beccarini : Removed file: http://bugs.python.org/file38307/functions.rst ___ Python tracker <http://bugs.python.org/issue23512> ___ ___ Python-bugs-list m

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-03 Thread Carlo Beccarini
Changes by Carlo Beccarini : -- keywords: +patch Added file: http://bugs.python.org/file38316/issue23512.diff ___ Python tracker <http://bugs.python.org/issue23

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-02 Thread Carlo Beccarini
Changes by Carlo Beccarini : Removed file: http://bugs.python.org/file38305/functions.rst ___ Python tracker <http://bugs.python.org/issue23512> ___ ___ Python-bugs-list m

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-02 Thread Carlo Beccarini
Changes by Carlo Beccarini : Added file: http://bugs.python.org/file38307/functions.rst ___ Python tracker <http://bugs.python.org/issue23512> ___ ___ Python-bugs-list m

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-02 Thread Carlo Beccarini
Changes by Carlo Beccarini : Added file: http://bugs.python.org/file38305/functions.rst ___ Python tracker <http://bugs.python.org/issue23512> ___ ___ Python-bugs-list m

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-02 Thread Carlo Beccarini
Carlo Beccarini added the comment: diff -r 3019effc44f2 Doc/library/functions.rst --- a/Doc/library/functions.rst Mon Mar 02 11:17:05 2015 -0500 +++ b/Doc/library/functions.rst Mon Mar 02 21:13:27 2015 +0100 @@ -22,10 +22,10 @@ :func:`classmethod` :func:`getattr`:func:`map` |func

[issue23512] The list of built-in http://text-processing.com/demo/sentiments is not alphabetical on https://docs.python.org/2/library/functions.html

2015-02-27 Thread Carlo Beccarini
Carlo Beccarini added the comment: Maybe we could put them in another table below the current one. -- ___ Python tracker <http://bugs.python.org/issue23

[issue23512] The list of built-in http://text-processing.com/demo/sentiments is not alphabetical on https://docs.python.org/2/library/functions.html

2015-02-27 Thread Carlo Beccarini
Carlo Beccarini added the comment: Well, these built-in are considered as non essential. -- nosy: +Paradisee title: List of builtins is not alphabetical on https://docs.python.org/2/library/functions.html -> The list of built-in http://text-processing.com/demo/sentiments is

[issue22307] os.getlogin() documentation has misleading side note

2014-08-30 Thread Carlo
New submission from Carlo: The documentation for os.getlogin() says: ... ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the currently effective user id Either, os.getuid() should be changed to os.geteuid(), or the wording should be changed. -- assignee: docs@python

[issue10560] Fixes for Windows sources

2013-02-24 Thread Carlo Bramini
Carlo Bramini added the comment: Hello, no problem, the fix on GetModuleHandle() can be avoided without problems if you want. Anyways, although nowadays the "hybrid" operating systems like Windows 9x/ME are dead and burried, in this particular case I would still suggest to us

[issue10560] Fixes for Windows sources

2013-02-23 Thread Carlo Bramini
Carlo Bramini added the comment: I have downloaded the latest sources with HG and, with the only exception of the variable "cookie" now conditionally declared with an "#ifdef HAVE_SXS", yes, all these fixes are still actual. -- sta

[issue13917] Python 2.7.2 and 3.2.2 execl crash

2012-02-01 Thread Carlo Di Dato
Changes by Carlo Di Dato : -- versions: +Python 3.2 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue13917> ___ ___ Python-bugs-list mailing list Unsub

[issue13917] Python 2.7.2 and 3.2.2 execl crash

2012-02-01 Thread Carlo Di Dato
New submission from Carlo Di Dato : These lines make Python 2.7.2 and 3.2.2 crash import os os.execl("cmd.exe", "") Regards -- components: Windows messages: 152428 nosy: shinnai priority: normal severity: normal status: open title: Python 2.7.2 and 3.2.2 exe

[issue13252] new decumulate() function in itertools module

2011-10-23 Thread Carlo Verre
New submission from Carlo Verre : After in Python 3.2 the accumulate() function has been added to itertools module, for self-evident reasons of completeness and symmetry we could add in 3.3 the inverse decumulate() function, which, given the iterable argument p, yields p[0], p[1] - p[0], p[2

[issue10560] Fixes for Windows sources

2010-11-28 Thread Carlo Bramini
Carlo Bramini added the comment: I modified the patch by using Py_LL() as suggested in a previous comment. I just would like to say that these fixes are not required to compiling under MSVC5: I was able to compile all the sources as they were, even without changes and this is a great thing

[issue10560] Fixes for Windows sources

2010-11-28 Thread Carlo Bramini
Carlo Bramini added the comment: According to the instructions received at #python-dev, I'm posting a new patch with the same fixes made on the most recent SVN sources (py3k). Actually the new patch does not include the fixes made on the GetFileAttributesEx wrappers since they have

[issue10560] Fixes for Windows sources

2010-11-28 Thread Carlo Bramini
New submission from Carlo Bramini : Hello, I was able to compile latest python sources with MSVC5, by importing and fixing a bit the project workspaces of MSVC6. During this action I received some messages, so I gave a look to the sources and I would like to suggest the following fixes: 1) in

[issue2139] sqlite3 module needs upgrading

2008-02-18 Thread carlo verr
New submission from carlo verr: In Python 2.5.2.c1 the sqlite3 module contains (exactly as Python 2.5.1 does) PySQLite 2.3.2 with SQLite 3.3.4, which is very old and very buggy, it hungs randomly. Last available version of SQLite is 3.5.6. Last available version of PySQLite for Python 2.5 is