[issue25084] remove semi-busy loop in py2.7 threading.Condition.wait(timeout=x)

2015-09-15 Thread matteo
Changes by matteo : -- nosy: +matteo ___ Python tracker <http://bugs.python.org/issue25084> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue3475] _elementtree.c import can fail silently

2008-07-31 Thread Matteo Bertini
New submission from Matteo Bertini <[EMAIL PROTECTED]>: Playing with PyInstaller I have found that the final part of _elementtree.c: Index: Modules/_elementtree.c === --- Modules/_elementtree.c (revisione 59540) +++ M

[issue1068268] subprocess is not EINTR-safe

2008-09-05 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: I'd like to suggest to rise the priority of this bug. Till this bus is around, no way using any module using subprocess.Popen form a PyQt app (and I suppose PyGtk and wxPython too). -- nosy:

[issue1068268] subprocess is not EINTR-safe

2008-09-17 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: Upgrade subprocess.py patch to 25-maint r65475 (apply cleanly with http://bugs.python.org/issue2113 fixed) -- keywords: +patch Added file: http://bugs.python.org/file11511/subprocess-eintr-safety-25maint-r65475

[issue4017] IDLE 2.6 broken on OSX (Leopard)

2008-10-12 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: I have the same error as in msg74221 RuntimeError: tk.h version (8.4) doesn't match libtk.a version (8.5) Some workaround not involving a full rebuild? -- nosy: +naufraghi ___ Pyt

[issue1068268] subprocess is not EINTR-safe

2008-10-17 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: Factorized try-except code, merged r65475 from 25-maint. Protetect std[in|out|err] read and write too. Added file: http://bugs.python.org/file11818/subprocess-retry-on-EINTR-std-in-out-er

[issue1068268] subprocess is not EINTR-safe

2008-10-17 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: Ups, forgot a _no_intr around select.select Index: subprocess.py === --- subprocess.py (revisione 19645) +++ subprocess.py (copia locale) @@ -1178,7 +

[issue3588] sysconfig variable LINKFORSHARED has wrong value for MacOS X framework build

2008-11-04 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: I confirm this issue, some handy workaround available? -- nosy: +naufraghi ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3588] sysconfig variable LINKFORSHARED has wrong value for MacOS X framework build

2008-11-04 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: The solution I found is: LINKFORSHARED = -u _PyMac_Error -framework Python as in the Apple included Python Makefile and LDFLAGS += -F$(PYTHONFRAMEWORKPREFIX) that makes linker use the right framework (not sure, but works with Mac

[issue3588] sysconfig variable LINKFORSHARED has wrong value for MacOS X framework build

2008-11-05 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: I can add that providing the option: -mmacosx-version-min=10.4 or setting the anv var MACOSX_DEPLOYMENT_TARGET=10.4 is it possible to build an extension in MacPython.org too (without that option there was a problem with some 10.

[issue1068268] subprocess is not EINTR-safe

2008-12-18 Thread Matteo Bertini
Matteo Bertini added the comment: Python 2.5.3 is near but the I think the fix in http://svn.python.org/view?rev=65475&view=rev is not enough, there are a lot of other places where EINTR can cause and error. -- versions: +Python 2.5.3 ___ Py

[issue1068268] subprocess is not EINTR-safe

2008-12-23 Thread Matteo Bertini
Matteo Bertini added the comment: Please have a look at the proposed patch: http://bugs.python.org/file11511/subprocess-eintr-safety-25maint- r65475.patch the list is more or less the patch itself. ___ Python tracker <http://bugs.python.org/issue1068

[issue1068268] subprocess is not EINTR-safe

2008-12-24 Thread Matteo Bertini
Changes by Matteo Bertini : Removed file: http://bugs.python.org/file11818/subprocess-retry-on-EINTR-std-in-out-err.diff ___ Python tracker <http://bugs.python.org/issue1068

[issue1068268] subprocess is not EINTR-safe

2008-12-24 Thread Matteo Bertini
Changes by Matteo Bertini : Removed file: http://bugs.python.org/file11511/subprocess-eintr-safety-25maint-r65475.patch ___ Python tracker <http://bugs.python.org/issue1068

[issue1068268] subprocess is not EINTR-safe

2008-12-24 Thread Matteo Bertini
Matteo Bertini added the comment: no EINTR patch upgraded to 25-maint r65475 that protects: *) all direct calls *) all returned fd I hope :P Added file: http://bugs.python.org/file12438/no-EINTR-subprocess.py-25-maint-r65475.patch ___ Python tracker

[issue38200] Adding itertools.pairwise to the standard library?

2019-09-17 Thread Matteo Dell'Amico
New submission from Matteo Dell'Amico : I use itertools.pairwise all the time and I wonder if the same happens to others. I'm thinking that others may be in the same situation, and having this simple recipe already included in the library would be definitely more convenient than co

[issue38200] Adding itertools.pairwise to the standard library?

2019-10-01 Thread Matteo Dell'Amico
Matteo Dell'Amico added the comment: Sorry for taking so long to answer, I didn't see notifications somehow. Raymond, my use case is in general something that happens when I'm doing analytics on sequences of events (e.g., URLs visited by a browser) or paths in a graph. I lo

[issue43653] Typo in the random.shuffle docs

2021-03-29 Thread Matteo Bertucci
New submission from Matteo Bertucci : Hello! The current documentation for random.shuffle reads: > The optional argument random is a 0-argument function returning a random > float in [0.0, 1.0); by default, this is the function random(). I believe the range here should use matching s

[issue43653] Typo in the random.shuffle docs

2021-03-29 Thread Matteo Bertucci
Change by Matteo Bertucci : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43653> ___ ___ Python-bugs-list

[issue43653] Typo in the random.shuffle docs

2021-03-29 Thread Matteo Bertucci
Matteo Bertucci added the comment: Oh I see, I was used to seeing open intervals using ]a, b[. All good then! -- ___ Python tracker <https://bugs.python.org/issue43

[issue45762] Missing `list` symbols in the object inventory

2021-11-09 Thread Matteo Bertucci
New submission from Matteo Bertucci : Sphinx generates a quite useful inventory file, listing all the different symbols available inside the documentation. You can find the docs.python.org inventory over at https://docs.python.org/objects.inv. The syntax of this file can be found here https

[issue40439] Error in an external reference

2020-05-18 Thread Matteo Bertucci
Change by Matteo Bertucci : -- keywords: +patch nosy: +Akarys nosy_count: 4.0 -> 5.0 pull_requests: +19485 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20184 ___ Python tracker <https://bugs.python.org/i

[issue42240] Add Maxheap version of a heappush into heapq module

2020-12-04 Thread Matteo Dell'Amico
Matteo Dell'Amico added the comment: Personally, I'd find a maxheap in the standard library helpful, and a quick Google search tells me I'm not alone. I generally have to deal with numeric values, so I have these choices: - ugly code (e.g., `minus_distance, elem = heappop(he

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2017-05-05 Thread Matteo Bertini
Matteo Bertini added the comment: Bumped in this bug yesterday, sadly a script working (by chance) in Python2 doesn't work in Python3 because of this bug. -- nosy: +naufraghi ___ Python tracker <http://bugs.python.org/is

[issue16285] Erroneously encoding tilde to %7e in quote

2012-10-19 Thread Matteo Parrucci
New submission from Matteo Parrucci: RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt) says: For consistency, percent-encoded octets in the ranges of ALPHA (%41-%5A and %61-%7A), DIGIT (%30-%39), hyphen (%2D), period (%2E), underscore (%5F), or tilde (%7E) should not be created by URI producers

[issue19185] Allow multiprocessing Pool initializer to return values

2013-10-06 Thread Matteo Cafasso
New submission from Matteo Cafasso: This patch allows the pool initializer function to return the initialized values. The returned values will be passed to the called function as first positional argument. Previously the common pattern was to store the initialized objects into global

[issue19185] Allow multiprocessing Pool initializer to return values

2013-10-06 Thread Matteo Cafasso
Matteo Cafasso added the comment: I agree with your point, I've probably made my considerations too quickly. The consideration was based on the fact that returning any value previously was a misuse (without consequences) of the initializer itself. Now the misuse would be exposed by th

[issue19185] Allow multiprocessing Pool initializer to return values

2013-10-09 Thread Matteo Cafasso
Matteo Cafasso added the comment: On 07/10/13 13:32, Richard Oudkerk wrote: > Richard Oudkerk added the comment: > > I think "misuse" is an exageration. Various functions change some state and > return a value that is usually ignored, e.g. os.umask(), signal.signal(

[issue19185] Allow multiprocessing Pool initializer to return values

2013-10-21 Thread Matteo Cafasso
Matteo Cafasso added the comment: On 09/10/13 22:59, Richard Oudkerk wrote: > Yes. But my point was that somebody might have used such a function as the > initializer argument. The proposed change would break a program which does > > with Pool(initializer=os.nice, initargs=(

[issue7111] core dump when stderr is moved

2009-10-24 Thread Matteo Bertini
Changes by Matteo Bertini : -- nosy: +naufraghi ___ Python tracker <http://bugs.python.org/issue7111> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7111] stdout closed

2009-10-24 Thread Matteo Bertini
Changes by Matteo Bertini : -- title: core dump when stderr is moved -> stdout closed ___ Python tracker <http://bugs.python.org/issue7111> ___ ___ Python-

[issue7111] core dump when stderr is moved

2009-10-24 Thread Matteo Bertini
Matteo Bertini added the comment: sorry, title restored! -- title: stdout closed -> core dump when stderr is moved ___ Python tracker <http://bugs.python.org/iss

[issue1488934] file.write + closed pipe = no error

2009-10-24 Thread Matteo Bertini
Changes by Matteo Bertini : -- nosy: +naufraghi type: -> behavior ___ Python tracker <http://bugs.python.org/issue1488934> ___ ___ Python-bugs-list mai

[issue1596] Broken pipes should be handled better in 2.x

2009-10-24 Thread Matteo Bertini
Changes by Matteo Bertini : -- nosy: +naufraghi ___ Python tracker <http://bugs.python.org/issue1596> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5350] Modification to "pairwise" in itertools recipes

2009-02-23 Thread Matteo Dell'Amico
New submission from Matteo Dell'Amico : I feel that the "pairwise" recipe could be slightly more elegant if "for elem in b: break" became a simpler next(b) (or b.next() for Python 2.x). It is also more natural to modify the recipes to suit one's needs (e.g., re

[issue5350] Modification to "pairwise" in itertools recipes

2009-02-23 Thread Matteo Dell'Amico
Matteo Dell'Amico added the comment: Georg, you're right, there's a StopIteration to catch. My thinko was mistaking the function for a generator where the exception propagation would have done the right thing. The amended version now becomes next(b) for x, y in zip(a, b): yield

[issue5352] Missing 'non overlapping' clause in str.count documentation

2009-02-23 Thread Matteo Dell'Amico
New submission from Matteo Dell'Amico : The str.count (http://docs.python.org/dev/py3k/library/stdtypes.html) documentation does not report that it returns the number of *non-overlapping* instances. For example, I expected 'aaa'.count('aa') to be 2 and not 1. Compare th

[issue5350] Modification to "pairwise" in itertools recipes

2009-02-23 Thread Matteo Dell'Amico
Matteo Dell'Amico added the comment: great Raymond! :) ___ Python tracker <http://bugs.python.org/issue5350> ___ ___ Python-bugs-list mailing list Unsubsc

[issue5647] MutableSet.__iand__ implementation calls self.discard while iterating on self

2009-04-01 Thread Matteo Dell'Amico
New submission from Matteo Dell'Amico : The current MutableSet.__iand__ implementation calls self.discard while iterating on self. This creates strange problems while implementing MutableSet with simple choices. For example, consider the attached file which implements set by delegating eith

[issue5647] MutableSet.__iand__ implementation calls self.discard while iterating on self

2009-04-01 Thread Matteo Dell'Amico
Matteo Dell'Amico added the comment: I suggest solving the problem by changing the implementation to: def __iand__(self, c): self -= self - c: or to def __iand__(self, c): for item in self - c: self.discard(item) -- ___ P

[issue5779] _elementtree import can fail silently

2009-04-17 Thread Matteo Bertini
New submission from Matteo Bertini : (the patch is old, I forwarded it to Fredrik but I forgot to open the bug) Playing with PyInstaller I have found that the final part of _elementtree.c: Index: Modules/_elementtree.c

[issue5779] _elementtree import can fail silently

2009-04-17 Thread Matteo Bertini
Matteo Bertini added the comment: Ups, I duplicated myself... issue3475 -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue5779> ___ _

[issue5867] No way to create an abstract classmethod

2009-04-28 Thread Matteo Dell'Amico
New submission from Matteo Dell'Amico : Is there a way to define an abstract classmethod? The two obvious ways don't seem to work properly. Python 3.0.1+ (r301:69556, Apr 15 2009, 17:25:52) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or &q

[issue9031] distutils uses invalid "-Wstrict-prototypes" flag when compiling C++ extension module

2010-06-18 Thread Matteo Vescovi
New submission from Matteo Vescovi : Hi, It seems like distutils passes an invalid "-Wstrict-prototypes" flag when compiling a C++ extension module on Linux (tested on Debian lenny and sid). running build running build_py creating build creating build/lib.linux-i686-2.6 copying

[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2016-12-15 Thread Matteo Bertini
Matteo Bertini added the comment: I'm back on this issue with a minimal patch, and a longer motivation. Distutils does not support Visual C++ for Python compiler, but it could, with a one-line patch. The proposed workaround is to use `setuptools`. But, we are not alone in this World,

[issue29039] Segmentation fault when using PyUnicode_FromString

2016-12-21 Thread Matteo Cafasso
New submission from Matteo Cafasso: The following code snippet: -- #include #include int main() { char *broken_string[8]; char broken_char = 4294967252; sprintf(broken_string, "%c", broken_char); PyUnicode_FromString(bro

[issue24068] statistics module - incorrect results with boolean input

2015-05-20 Thread Matteo Dell'Amico
Changes by Matteo Dell'Amico : -- nosy: +della ___ Python tracker <http://bugs.python.org/issue24068> ___ ___ Python-bugs-list mailing list Unsubscr

[issue39603] [security] http.client: HTTP Header Injection in the HTTP method

2020-09-28 Thread Mauro Matteo Cascella
Mauro Matteo Cascella added the comment: Hello, CVE-2020-26116 has been requested/assigned for this flaw via MITRE form: https://cveform.mitre.org/ I suggest mentioning it in the related vulnerability page: https://python-security.readthedocs.io/vuln/http-header-injection-method.html Also