[issue44251] ctypes '_get_soname' fails silently on missing objdump

2021-05-27 Thread Guillaume Desforges
New submission from Guillaume Desforges : ## Description Libraries such as oscrypto will use `ctypes.utils.find_library` to look for libraries, which in turns uses ``. However, on Linux, if the system does not have the objdump command, the function fails silently. https://github.com/python

[issue41459] pickle.load raises SystemError on malformed input

2020-08-03 Thread Guillaume
Guillaume added the comment: Hi Eric, I'm not aware of a practical problem caused by this. This was discovered via fuzzing. I reported it because the unexpected error suggest an internal issue within the pickle library. Just before reporting this, I browsed the bug tracker and noti

[issue41459] pickle.load raises SystemError on malformed input

2020-08-02 Thread Guillaume
Guillaume added the comment: Updated Components. I believe pickle fit in the Library category. Note this was discovered with python 3.8.5 -- components: +Library (Lib) -Argument Clinic ___ Python tracker <https://bugs.python.org/issue41

[issue41459] pickle.load raises SystemError on malformed input

2020-08-02 Thread Guillaume
New submission from Guillaume : pickle.load() raises a criptic SystemError with malformed input, whereas I would have expected an UnpicklingError. "SystemError: deallocated bytearray object has exported buffers" Because pickle is not meant for use on untrusted input, this likely

[issue41145] EmailMessage.as_string is altering the message state and actually fix bugs

2020-06-28 Thread Guillaume Gauvrit
New submission from Guillaume Gauvrit : I am currently refactoring code and use the EmailMessage api to build message. I encountered weird behavior while building an email. The `as_string()` method is fixing the `make_alternative` method. So, to me their is two bug here: a `as_string` method

[issue34761] str(super()) != super().__str__()

2018-09-21 Thread Guillaume Dominici
New submission from Guillaume Dominici : The super proxy does not seem to forward call to .__str__() when the call occurs via str() function. It may be an expected behavior, but it looks unexpected to me. Minimal reproduction (tested on Python 3.6, but I believe may newer versions have

[issue34702] urlopen doesn't handle query strings with "file" scheme

2018-09-16 Thread Guillaume Ayoub
New submission from Guillaume Ayoub : urlopen includes query strings in the filename with "file"-scheme URLs. >>> from urllib.request import urlopen >>> urlopen('file:///tmp/test') > >>> urlopen('file:///tmp/test?q') Tracebac

[issue34059] multiprocessing deadlock

2018-07-06 Thread Guillaume Perrault-Archambault
Guillaume Perrault-Archambault added the comment: A friend of mine has suggested a fix that seems to work for now (upgrade numpy from 1.14.3 to 1.14.5). This makes no sense at all but it does seem to work for now. I have a strong suspicion that this is just masking the problem and that it

[issue34059] multiprocessing deadlock

2018-07-06 Thread Guillaume Perrault-Archambault
Guillaume Perrault-Archambault added the comment: Hi Victor and Yang, Thanks for your fast replies. I did initially think it could be a torch issue. Indeed, I have an equivalent numpy testcase that does not deadlock. However, the fact that it gets stuck inside a multiprocessing wait

[issue34059] multiprocessing deadlock

2018-07-05 Thread Guillaume Perrault-Archambault
New submission from Guillaume Perrault-Archambault : The simple code attached causes a deadlock in Linux. Problem is I have to slightly muck around with it depending on the distro and python version to get it to deadlock. On the cluster I use the most (python 3.6.3, CentOS Linux release

[issue29427] Option to skip padding for base64 urlsafe encoding/decoding

2018-05-23 Thread Guillaume
Change by Guillaume : -- keywords: +patch pull_requests: +6702 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue29427> ___ ___ Python-

[issue22102] Zipfile generates Zipfile error in zip with 0 total number of disk in Zip64 end of central directory locator

2018-03-12 Thread Guillaume Carre
Guillaume Carre added the comment: Yes these were pretty large zip 30 to 60Gb with thousands of small files in them I've fixed locally on our servers and we've been happy even after accepting similar sized files from linux machine. I'm also quite surprised about this not be

[issue22102] Zipfile generates Zipfile error in zip with 0 total number of disk in Zip64 end of central directory locator

2018-03-12 Thread Guillaume Carre
Guillaume Carre added the comment: Hi, In my case the zip file was created from windows 7 context menu (send to) Regards, Guillaume On Mon, Mar 12, 2018 at 5:08 AM, Thomas Kluyver wrote: > > Thomas Kluyver added the comment: > > I found source code for some other projects handl

[issue26752] Mock(2.0.0).assert_has_calls() raise AssertionError in two same calls

2017-11-16 Thread Guillaume Boily
Guillaume Boily added the comment: As pointed here: https://github.com/testing-cabal/mock/issues/353, this issue is related to the method assert_has_calls or probably any calls that use the method _call_matcher to match calls. Given that you mock a class and spec it, since we always bind to

[issue31966] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2017-11-07 Thread Guillaume Aldebert
New submission from Guillaume Aldebert : noticed on windows10, 3.6.3-64 and 3.7.0a2-64: using this test.py file: #!/usr/bin/env python3 print('hello\n', end='', flush=True) and running it in unbuffered mode: C:\Dev>py -u test.py hello Traceback (most recent call last):

[issue30717] Add unicode grapheme cluster break algorithm

2017-08-07 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: > I don't think unicodedata is the right place I do agree with that. A new module sounds good, would it be a problem if that module would contain very few functions at first? > Can we mark this as having a Provisional API to give us time to de

[issue30717] Add unicode grapheme cluster break algorithm

2017-08-03 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: I have a few criticism to do against that proto-PEP http://mail.python.org/pipermail/python-dev/2001-July/015938.html In particular, the fact that all those functions return an index prevents any state keeping. That's a problem because: > next_(

[issue30717] Add unicode grapheme cluster break algorithm

2017-08-03 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: Thanks for your consideration. I'm currently fixing what's been asked in the reviews. > But it would be useful to provide also word and sentence iterators. I'll gladly do that as well! > I think emitting a pair (pos, substring) would

[issue30717] str.center() is not unicode aware

2017-08-02 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: Hi, Are you guys still interested? I haven't heard from you in a while -- ___ Python tracker <http://bugs.python.org/is

[issue30717] str.center() is not unicode aware

2017-07-13 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: Hello Steven! Thanks for your reactivity! unicodedata.grapheme_cluster_break() takes a unicode code point as an argument and return its GraphemeBreakProperty as a string. Possible values are listed here: http://www.unicode.org/reports/tr29/#CR help

[issue12568] Add functions to get the width in columns of a character

2017-07-13 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: Hello, I come from bugs.python.org/issue30717 . I have a pending PR that needs review ( https://github.com/python/cpython/pull/2673 ) adding a function that breaks unicode strings into grapheme clusters (aka what one would intuitively call "a char

[issue30717] str.center() is not unicode aware

2017-07-13 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: Hello, I implemented unicodedata.break_graphemes() that returns an iterators that spits consecutive graphemes. This is a "test" implementation meant to see what doesn't fits Python's style and design, to discuss naming and implementa

[issue30717] str.center() is not unicode aware

2017-07-11 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: Hello to all of you, sorry for the delay. Been busy. I added the base code needed to built the grapheme cluster break algorithm. We now have the GraphemeBreakProperty available via unicodedata.grapheme_cluster_break() Can you check that the implementation

[issue30717] str.center() is not unicode aware

2017-06-20 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: Thanks for all those interesting cases you brought here! I didn't think of that at all! I'm using the word "grapheme" as per the definition given in UAX TR29 which is *not* language/locale dependant [1]. This annex is very specific and

[issue30717] str.center() is not unicode aware

2017-06-20 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: Obviously, I'm talking about str.center() but all functions needing a count of graphemes are then not totally correct. I can fix that and add the corresponding function, or an iterator over graphemes, or whatever seems

[issue30717] str.center() is not unicode aware

2017-06-20 Thread Guillaume Sanchez
New submission from Guillaume Sanchez: "a⃑".center(width=5, fillchar=".") produces '..a⃑.' instead of '..a⃑..' The reason is that "a⃑" is composed of two code points (2 UCS4 chars), one 'a' and one combining code point "above

[issue24363] httplib fails to handle semivalid HTTP headers

2017-02-07 Thread Guillaume Boudreau
Guillaume Boudreau added the comment: Any chance this could get reviewed and merged soon? I got hit by a similar issue (see #29445) where the server, which I don't control, sends me invalid HTTP headers, and the prevents all the headers that follow it to not be parsed. The latest att

[issue29445] http.client: missing response headers when malformed header is part of the response

2017-02-04 Thread Guillaume Boudreau
Guillaume Boudreau added the comment: Yes, indeed. The latest patch in 24363 resolves this issue. Sorry for the duplicate. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29445] http.client: missing response headers when malformed header is part of the response

2017-02-04 Thread Guillaume Boudreau
New submission from Guillaume Boudreau: Tested using urllib3 1.20 ``` >>> import urllib3 >>> http = urllib3.PoolManager() >>> r = http.request('GET', >>> 'https://online.chasecanada.ca/ChaseCanada_Consumer/Login.do') >>> r.stat

[issue28604] Exception raised by python3.5 when using en_GB locale

2016-11-03 Thread Guillaume Pasquet (Etenil)
New submission from Guillaume Pasquet (Etenil): This issue was originally reported on Fedora's Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1391280 Description of problem: After switching the monetary locale to en_GB, python then raises an exception when calling locale.local

[issue28318] Python unittest.mock.mock_calls stores references to arguments instead of their values

2016-10-03 Thread Guillaume Chorn
Guillaume Chorn added the comment: If it's true that our ability to accurately deep-copy mutable args makes fixing this behavior impossible, we should at the very least update the official unittest.mock documentation to warn users that testing for mock calls with mutable arguments i

[issue28318] Python unittest.mock.mock_calls stores references to arguments instead of their values

2016-09-30 Thread Guillaume Chorn
New submission from Guillaume Chorn: In the unittest.mock library, when a Mock object stores the calls made on it in its `mock_calls` attribute, it appears to store references to the call arguments instead of the actual values of the call arguments. In cases where call args are mutable types

[issue25340] libraries variable in setup.py ignore for multiprocessing module

2015-10-08 Thread Guillaume DAVY
New submission from Guillaume DAVY: Around line 1455 in setup.py the "libraries" variable is assigned but seems to be ignored when the Extension object for multiprocessing is created. This leads to a linking error on my system : "undefined symbol: clock_gettime" -

[issue23348] distutils.LooseVersion fails to compare two valid versions

2015-01-30 Thread Guillaume
Guillaume added the comment: Do you mean http://bugs.python.org/issue14894 ? -- ___ Python tracker <http://bugs.python.org/issue23348> ___ ___ Python-bugs-list m

[issue23348] distutils.LooseVersion fails to compare two valid versions

2015-01-29 Thread Guillaume
New submission from Guillaume: $ python2.7 -c "from distutils.version import LooseVersion as V; print V('3.16.0-0.bpo.4-amd64') > V('3.16-0.bpo.2-amd64')" False $ python3.4 -c "from distutils.version import LooseVersion as V; print(V('3.1

[issue17703] Trashcan mechanism segfault during interpreter finalization in Python 2.7.4

2014-08-01 Thread Guillaume Matte
Guillaume Matte added the comment: It does still cause a Fatal Error in debug build as PyThreadState_GET() error out if _PyThreadState_Current is NULL -- nosy: +flex.plexico ___ Python tracker <http://bugs.python.org/issue17

[issue22102] Zipfile generates Zipfile error in zip with 0 total number of disk in Zip64 end of central directory locator

2014-07-29 Thread Guillaume Carre
New submission from Guillaume Carre: I've got a zip file with a Zip64 end of central directory locator in which: - total number of disks = - number of the disk with the start of the zip64 end of central directory = According to the test line 176 in zipfile.py this fails: if d

[issue18795] pstats - allow stats sorting by cumulative time per call and total time per call

2014-02-11 Thread Guillaume Gelin
Changes by Guillaume Gelin : -- nosy: +ramnes ___ Python tracker <http://bugs.python.org/issue18795> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-17 Thread Guillaume Lebourgeois
Guillaume Lebourgeois added the comment: "Also, the usual way to decode by using the .decode method." The original bug happened using requests library, so I have no leverage on the used method for decoding. But if you used the "replace" mode with your methodology, you wo

[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-17 Thread Guillaume Lebourgeois
Guillaume Lebourgeois added the comment: My fault, bad paste. Should have written : >>> content = b'+1911\' rel=\'stylesheet\' type=\'text/css\' />\n>> rel="alternate" type="application/rss+xml' >>> codecs.utf

[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-17 Thread Guillaume Lebourgeois
New submission from Guillaume Lebourgeois: After the fetch of a webpage with a wrongly declared encoding, the use of codecs module for a conversion crashes. The issue is reproducible this way : >>> content = b"+1911\' rel=\'stylesheet\' type=\'text

[issue13424] Add examples for open’s new opener argument

2012-11-03 Thread Guillaume P
Guillaume P added the comment: Here is a proposed patch to the documentation. -- keywords: +patch nosy: +guillaumep Added file: http://bugs.python.org/file27866/13424.patch ___ Python tracker <http://bugs.python.org/issue13

[issue14864] Mention logging.disable(logging.NOTSET) to reset the command in logging module documentation

2012-05-20 Thread Guillaume
New submission from Guillaume : In the logging module documentation, nothing tells the user how to undo or reset a call to logging.disable(lvl). From reading the code (python 2.6 version) it seem the correct way to undo disable(lvl) is to call disable(0), but I think calling disable(NOTSET

[issue13538] Docstring of str() and/or behavior

2011-12-06 Thread Guillaume Bouchard
Guillaume Bouchard added the comment: > str always falls back to the repr; in general str(obj) should always return > some value, otherwise the assumptions of a *lot* of Python code would be > broken. Perhaps it may raises a warning ? ie, the only reason encoding exists i

[issue13538] Docstring of str() and/or behavior

2011-12-06 Thread Guillaume Bouchard
New submission from Guillaume Bouchard : The docstring associated with str() says: str(string[, encoding[, errors]]) -> str Create a new string object from the given encoded string. encoding defaults to the current default string encoding. errors can be 'strict', 'r

[issue6753] Python 3.1.1 test_cmd_line fails on Fedora 11

2009-08-21 Thread Guillaume Delcourt-Petetin
Guillaume Delcourt-Petetin added the comment: Nope. 2009/8/21 Amaury Forgeot d'Arc > > Amaury Forgeot d'Arc added the comment: > > Does it happen if you build python from a directory with no accented > letters? > > ---

[issue6753] Python 3.1.1 test_cmd_line fails on Fedora 11

2009-08-21 Thread Guillaume Delcourt-Petetin
New submission from Guillaume Delcourt-Petetin : Just what it says on the label : [...] Traceback (most recent call last): File "./Lib/test/regrtest.py", line 618, in runtest_inner indirect_test() File "/home/Pif/Téléchargement/Python-3.1.1/Python-3.1.1/Lib/

[issue1194378] sendmsg() and recvmsg() for C socket module

2009-05-06 Thread Guillaume Desmottes
Changes by Guillaume Desmottes : -- nosy: +gdesmott ___ Python tracker <http://bugs.python.org/issue1194378> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-01-30 Thread Guillaume Desmottes
Guillaume Desmottes added the comment: Actually, this bug is present when you try to connect to any URL containing an IP6 and a port. So, we have the same problem when using, for example: http = httplib.HTTPConnection('[2a01:8790:16d:0:218:de87:164:8745]:')

[issue5111] httplib: wrong Host header when connecting to IPv6 loopback

2009-01-30 Thread Guillaume Desmottes
New submission from Guillaume Desmottes : To reproduce: - Launch a HTTP server listening on an Inet6 socket on, say, port - Try to connect using the IPv6 loopback: http = httplib.HTTPConnection('[::1]:') http.request('GET', '/foo') r = http.getresponse(

[issue3698] incompatible arguments in warning formatting for idle

2008-08-27 Thread Guillaume Coffin
New submission from Guillaume Coffin <[EMAIL PROTECTED]>: In idle, the function idle_formatwarning_subproc overrides warnings.formatwarning, however the latter in Python 2.6 is called from warnings._show_warning with an additional "line" argument: line 29, in _show_wa

[issue2903] Add __name__ in globals of generated namedtuple namespace

2008-05-17 Thread Guillaume Knispel
New submission from Guillaume Knispel <[EMAIL PROTECTED]>: Some 3rd party tracers rely on frame.f_globals["__name__"] to be set to the module name that contains the code currently executed. frame.f_globals["__name__"] is not defined when some code has been generated w

[issue1907] Httplib.py not supporting timeout - Propose Fix attached

2008-01-22 Thread Guillaume Nourry-Marquis
New submission from Guillaume Nourry-Marquis: The httplib file wasn'T supporting a timeout feature which was essential for my load testing application I built. In order to do that, I had to append a parameter to the connect function, which takes a socket timeout value integer in se

[issue1293] Trailing slash in sys.path cause import failure

2007-10-18 Thread Guillaume Girard
New submission from Guillaume Girard: On win32, the following code: import sys sys.path.append('../bar/') import bar where the file bar.py is present in ../bar/ will return an import error "No module named bar". Remove the trailing slash and the bar.py is imported corre