[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2022-03-26 Thread Vincent Bernat
Change by Vincent Bernat : -- keywords: +patch nosy: +bernat nosy_count: 4.0 -> 5.0 pull_requests: +30211 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32131 ___ Python tracker <https://bugs.p

[issue46916] There is a problem with escape characters in the path passed in by pathlib.Path.mkdir()

2022-03-04 Thread Vincent FUNG
Vincent FUNG added the comment: Thank you very much for your patient answer, I am still a developer who has just started, and it seems that I need to learn more about it. I used repr().replace to replace with forward slashes, and also restricted paths ending in a slash to Improve

[issue46916] There is a problem with escape characters in the path passed in by pathlib.Path.mkdir()

2022-03-04 Thread Vincent FUNG
Vincent FUNG added the comment: Oh. Got it. I thought pathlib would solve this problem completely now, without having to replace the slashes. Thank you for your patient answer. -- resolution: -> not a bug stage: -> resolved status: open -&g

[issue46916] There is a problem with escape characters in the path passed in by pathlib.Path.mkdir()

2022-03-03 Thread Vincent FUNG
Vincent FUNG added the comment: This problem occurs when the directory starts with 't', but works with os.makedirs(e) or macOS. >>> e = Path(r'F:\ceven\test2') >>> e.mkdir() Traceback (most recent call last): File "", line 1, in File "C:\Program File

[issue46916] There is a problem with escape characters in the path passed in by pathlib.Path.mkdir()

2022-03-03 Thread Vincent FUNG
New submission from Vincent FUNG : This problem occurs when the directory starts with 't', but works with os.makedirs(e) or macOS. >>> e = Path(r'F:\ceven\test2') >>> e.mkdir() Traceback (most recent call last): File "", line 1, in File "C:\Program File

[issue46139] Boolean Logic Check - Built-in Types Documentation page

2021-12-20 Thread Abri Vincent
Abri Vincent added the comment: A short circuit operator. x OR y - if x is false, then y, else x (1). (1) This is a short-circuit operator, so it only evaluates the second argument if the first one is false. The first argument is 'if' The second argument is 'then' The third argument

[issue46139] Boolean Logic Check - Built-in Types Documentation page

2021-12-20 Thread Abri Vincent
Change by Abri Vincent : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46139> ___ ___ Python-bugs-list

[issue46139] Boolean Logic Check - Built-in Types Documentation page

2021-12-20 Thread Abri Vincent
New submission from Abri Vincent : On the documentation page https://docs.python.org/3/library/stdtypes.html the header 'Boolean Operations — and, or, not' provides a table (attached as an image). It states: a.1) x OR y - if x is false, then y, else x ** a.2) x AND y - if x is false

[issue44665] asyncio.create_task() documentation should mention user needs to keep reference to the task

2021-10-22 Thread Vincent Bernat
Vincent Bernat added the comment: Hummm, I have a hard time finding a short example when `__del__` is not called until the task is finished. Sorry. I did run into this several time, for example here: https://github.com/ldo/dbussy/pull/45 (and some internal projects as well). So, it happens

[issue45557] pprint -> underscore_numbers argument not working

2021-10-21 Thread Jean-Philippe VINCENT
Change by Jean-Philippe VINCENT : -- title: Issue 42914 -> pprint -> underscore_numbers argument not working ___ Python tracker <https://bugs.python.org/i

[issue45557] Issue 42914

2021-10-21 Thread Jean-Philippe VINCENT
New submission from Jean-Philippe VINCENT : Hello, I just tried the new attribute underscore_numbers with pprint, it doesn't work for me. I'm working on Windows. [cid:8779885d-01bf-4162-9427-a44de152f7ac] Best regards, Jean-Philippe -- files: image.png messages: 404636 nosy

[issue45469] lambda issue in for-loop

2021-10-14 Thread Vincent Liang
New submission from Vincent Liang : Strange behavior is found when lambda is used inside for-loop. code:(same as attached file) # begin of CODE def aa(x): print("aa") def bb(x): print("bb") namefun = [ ("a", aa), ("b", bb),

[issue44219] Opening a file holds the GIL when it calls "isatty()"

2021-09-09 Thread Vincent Michel
Vincent Michel added the comment: There are a couple of reasons why I did not make changes to the stdstream related functions. The first one is that a PR with many changes is less likely to get reviewed and merged than a PR with fewer changes. The second one is that it's hard for me

[issue44129] zipfile: Add descriptive global variables for general purpose bit flags

2021-09-09 Thread Vincent Michel
Change by Vincent Michel : -- pull_requests: -26670 ___ Python tracker <https://bugs.python.org/issue44129> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44219] Opening a file holds the GIL when it calls "isatty()"

2021-09-09 Thread Vincent Michel
Change by Vincent Michel : -- pull_requests: +26671 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28250 ___ Python tracker <https://bugs.python.org/issu

[issue44129] zipfile: Add descriptive global variables for general purpose bit flags

2021-09-09 Thread Vincent Michel
Change by Vincent Michel : -- nosy: +vxgmichel nosy_count: 2.0 -> 3.0 pull_requests: +26670 pull_request: https://github.com/python/cpython/pull/28250 ___ Python tracker <https://bugs.python.org/issu

[issue44219] Opening a file holds the GIL when it calls "isatty()"

2021-09-08 Thread Vincent Michel
Vincent Michel added the comment: Here's a possible patch that fixes the 3 unprotected calls to `isatty` mentioned above. It successfully passes the test suite. I can submit a PR with this patch if necessary. -- keywords: +patch Added file: https://bugs.python.org/file50270/bpo

[issue44219] Opening a file holds the GIL when it calls "isatty()"

2021-09-07 Thread Vincent Michel
Vincent Michel added the comment: My team ran into this issue while developing a fuse application too. In an effort to help this issue move forward, I tried to list all occurrences of the `isatty` C function in the cpython code base. I found 14 of them. 9 of them are directly related

[issue44665] asyncio.create_task() documentation should mention user needs to keep reference to the task

2021-07-18 Thread Vincent Bernat
New submission from Vincent Bernat : asyncio will only keep weak references to alive tasks (in `_all_tasks`). If a user does not keep a reference to a task and the task is not currently executing or sleeping, the user may get "Task was destroyed but it is pending!". I would sugg

[issue44062] cross: wrong interpreter returned when no python available

2021-05-06 Thread Vincent Fazio
Change by Vincent Fazio : -- keywords: +patch pull_requests: +24614 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25951 ___ Python tracker <https://bugs.python.org/issu

[issue44062] cross: wrong interpreter returned when no python available

2021-05-06 Thread Vincent Fazio
New submission from Vincent Fazio : When trying to cross compile python3.9, `configure` attempts to find a strict python 3.9 version match, however if it fails it still attempts to use `python` in PYTHON_FOR_BUILD instead of failing outright like the code implies it should $/python3

[issue34747] SSLSocket.context cannot be changed on non-connected sockets

2021-03-21 Thread Vincent Pelletier
Vincent Pelletier added the comment: Added: affects Python 3.9 This bug is still preventing (...or shall I say "discourages", as the setter is effective but raises) server-side SSL certificate reloading on long-running services. This codepath on listening sockets is necessary fo

[issue43462] canvas.bbox returns None on 'hidden' items while coords doesn't

2021-03-13 Thread Vincent
Change by Vincent : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43462> ___

[issue43462] canvas.bbox returns None on 'hidden' items while coords doesn't

2021-03-13 Thread Vincent
Vincent added the comment: HI Terry, yes, that's completely true. But what I meant is I have to invoke coords on every item belonging to a tag and then perform some calculations to get the boundary box of all the items belonging to the item. Let's close this issue and I will knock

[issue43462] canvas.bbox returns None on 'hidden' items while coords doesn't

2021-03-11 Thread Vincent
Vincent added the comment: ... calculate the coordinates using the canvas.coords function -- ___ Python tracker <https://bugs.python.org/issue43462> ___ ___

[issue43462] canvas.bbox returns None on 'hidden' items while coords doesn't

2021-03-11 Thread Vincent
Vincent added the comment: Thank you for your comments. Yes, I would doubt that, too. You would expect to get a bounding box regardless what state the canvas item are in. The only way to fix this (and I'm open to suggestions), is to create a (custom) function that calculate every object

[issue43462] canvas.bbox returns None on 'hidden' items while coords doesn't

2021-03-10 Thread Vincent
Vincent added the comment: No, not hang. It returns a NoneType. See this example: >>> x = canvas.bbox('tunnel') >>> type(x) >>> -- ___ Python tracker <http

[issue43462] canvas.bbox returns None on 'hidden' items while coords doesn't

2021-03-10 Thread Vincent
Change by Vincent : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue43462> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue43462] canvas.bbox returns None on 'hidden' items while coords doesn't

2021-03-10 Thread Vincent
New submission from Vincent : canvas.bbox() should return a tuple containing values whether an item is hidden or not. canvax.coords() does return a tuple when an item is hidden. Steps to reproduce: ``` from tkinter import * root = Tk() canvas = Canvas(root) id1 = canvas.create_line

[issue43379] Pasting multiple lines in the REPL is broken since 3.9

2021-03-07 Thread Romain Vincent
Romain Vincent added the comment: The lack of dots was something I noticed. So from your questions (Ned Deily) I have been testing out several things and found a "wae"! But first, to answer your questions: 1. both LF and CRLF and it didn't change anything. 2. Running "

[issue43379] Pasting multiple lines in the REPL is broken since 3.9

2021-03-02 Thread Romain Vincent
New submission from Romain Vincent : DISCLAIMER: This is the first time I submit an issue here. In advance, my humble apologies if I missed something. Feel free to correct me :) -- I regularly test snippets of code by pasting them from a code editor to a shell REPL. It works perfectly well

Re: Question - problem downloading Python

2021-01-14 Thread vincent . vandevyvre
it does not fix it, that is how I >got your email. >How can I get the latest Python version (3.9.1), instead of what I'm >getting (22.7.17)? >Thank you for your time. Please, copy-paste all the content of your terminal (I presume this is wht you name cmd.exe). Vincent -- http

Re: Pickling issue.

2020-12-23 Thread vincent . vandevyvre
On 22/12/20 01:57, Bob Gailer wrote: > > > On Mon, Dec 21, 2020, 3:03 PM Vincent Vande Vyvre > wrote: > > Hi, > > I've an object that I want to serialise with pickle. > When I reload the object the attributes of this object are corre

Pickling issue.

2020-12-21 Thread Vincent Vande Vyvre
Hi, I've an object that I want to serialise with pickle. When I reload the object the attributes of this object are correctly fixed except one of these. This attribute (value) define a simple string. Example: - tag =  XmpTag('Xmp.dc.format',

[issue41214] -O0: Segmentation fault in _PyArg_UnpackStack

2020-10-25 Thread LE GARREC Vincent
LE GARREC Vincent added the comment: I still have the problem with python 3.7.9 but not with python 3.8.6. Since I migrated my system to python 3.8, it's not a problem anymore. I still have python 3.7 installed so if you want, I still can do some tests. -- nosy: +bansan85

Re: Finding it very difficult to move pyexiv2 code from Python 2 to Python 3

2020-08-20 Thread Vincent Vande Vyvre
Le 20/08/20 à 09:07, Robin Becker a écrit : > . >>> so obviously I need to install some version of boost libs or >>> Boost.Python etc etc. Gave up :( >>> -luddite-ly yrs- >>> Robin Becker >>> >> The aur repository, no ? >> >&

Re: Finding it very difficult to move pyexiv2 code from Python 2 to Python 3

2020-08-19 Thread Vincent Vande Vyvre
Le 19/08/20 à 10:15, Robin Becker a écrit : > On 18/08/2020 20:05, Vincent Vande Vyvre wrote: > . >>> >> Hi, >> >> Two solutions: >> 1. Install exiv2-dev and py3exiv2 with pip >> $ sudo apt-get install libexiv2-dev >> $

Re: Finding it very difficult to move pyexiv2 code from Python 2 to Python 3

2020-08-18 Thread Vincent Vande Vyvre
o apt-get update     $ sudo apt-get install python3-exiv2 Don't change your old code for pyexiv2, the names of the modules are unchanged, your old code should work as it. Off course old strings are now unicode. Vincent (AKA VinsS) -- https://mail.python.org/mailman/listinfo/python-list

[issue41109] subclasses of pathlib.PurePosixPath never call __init__ or __new__

2020-08-13 Thread Louis-Vincent Boudreault
Louis-Vincent Boudreault added the comment: This is not true, because the classmethod used the library shortcuts the class mro order, this is to prevent infinite loop inthe __new__. However, If it was using __init__ before hand, we would Not have this issue Le jeu. 13 août 2020 à 15:31, Louis

[issue41109] subclasses of pathlib.PurePosixPath never call __init__ or __new__

2020-08-13 Thread Louis-Vincent Boudreault
Louis-Vincent Boudreault added the comment: This is not true, because the classmethod use the library shortcuts the class mro order, to prevent infinite loop inthe __new__. However, it was using __init__ before hand, we would Not have this issue Le jeu. 13 août 2020 à 15:27, Jeffrey Kintscher

[issue41109] subclasses of pathlib.PurePosixPath never call __init__ or __new__

2020-08-08 Thread Louis-Vincent Boudreault
Louis-Vincent Boudreault added the comment: Path.__new__ should not call _from_parts because it breaks the specialization by directly using object.__new__. This is why `_from_parts` has to be duplicated in each subclass's `__new__`. My suggestion (first draft) is to do the parsing

Re: Fake news Detect

2020-07-18 Thread Vincent Davis
Data Sceptic has a couple podcast and some of the code is open source. https://dataskeptic.com/blog/episodes/2018/algorithmic-detection-of-fake-news Thanks Vincent Davis 720-301-3003 *Want to get a hold of me?* *SMS: awesome.phone: ok...* *email: bad!* On Fri, Jul 17, 2020 at 11:39 PM Mike

[issue41024] doc: Explicitly mention use of 'enum.Enum' as a valid container for 'choices' argument of 'argparse.ArgumentParser.add_argument'

2020-07-17 Thread Vincent Férotin
Vincent Férotin added the comment: Unless I am mistaken, merged pull-request was not backported from master to other potential branches (3.5 -> 3.9 included). There was a message from GitHub 'miss-islington' bot (https://github.com/python/cpython/pull/20964#issuecomment-646991186) say

[issue41024] doc: Explicitly mention use of 'enum.Enum' as a valid container for 'choices' argument of 'argparse.ArgumentParser.add_argument'

2020-07-17 Thread Vincent Férotin
Vincent Férotin added the comment: Explicitly add Raymond Hettinger to nosy list, as he reviewed the corresponding PR. -- nosy: +rhettinger ___ Python tracker <https://bugs.python.org/issue41

How to match scipy.spatial.distance results back to pandas df

2020-07-16 Thread Vincent Davis
ray([8.83911760e-05, 6.31347765e-05, 3.89486842e-05, 2.13775583e-05, 2.10950231e-05, 4.10487515e-05, 6.7000e-05, 9.10878697e-05, 7.61183289e-05, 9.90050504e-05, 7.88162420e-05, 5.90931468e-05, 4.50111097e-05, 4.97393205e-05, 6.78969808e-05, 8.52115016e-05, ... Thanks Vincent Davis

[issue41214] -O0: Segmentation fault in _PyArg_UnpackStack

2020-07-05 Thread Vincent LE GARREC
New submission from Vincent LE GARREC : In Gentoo, I compile my system with -O0 When I compile Apache Serf, python 3.7.8 crashes. When I compile python 3.7 with -O2, python don't crash when compiling Serf. It's the first time that -O0 causes program crash. I run test suite, I don't have any

[issue41024] doc: Explicitly mention use of 'enum.Enum' as a valid container for 'choices' argument of 'argparse.ArgumentParser.add_argument'

2020-06-18 Thread vincent-ferotin
Change by vincent-ferotin : -- keywords: +patch pull_requests: +20142 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20964 ___ Python tracker <https://bugs.python.org/issu

[issue41024] doc: Explicitly mention use of 'enum.Enum' as a valid container for 'choices' argument of 'argparse.ArgumentParser.add_argument'

2020-06-18 Thread vincent-ferotin
New submission from vincent-ferotin : It is currently not obvious, reading :mod:`argparse` documentation, that :meth:`argparse.ArgumentParser.add_argument` could accept as 'choices' parameter an :class:`enum.Enum`. However, it seems (at least to me) that this 'choices' parameter [1

Re: Convert and analyze image data in a spreadsheet.

2020-06-14 Thread Vincent Davis
Dennis, Thanks for your ideas. The researcher I am working with just told me the data is wrong and needs to send me new data and there are other problems with exactly what their research questions is. So this goes nowhere for now. Thanks Vincent Davis 720-301-3003 *Want to get a hold of me

Convert and analyze image data in a spreadsheet.

2020-06-11 Thread Vincent Davis
o keep it in that color format? I think yes. 3. How can I visualize this data as a 6x6 color image and visualize each color on a gray scale. 4. General hints or link of how to proceed would be helpful. Thanks Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: RFC: For Loop Invariants

2020-04-20 Thread Vincent Vande Vyvre
> count = sum(1 for a in chars if a in seek) > > So you haven't really changed any semantics - and it seems that this > is far better than fiddling with the for loop syntax. You can use boolean as integer. >>> chars = "abcaaabkjzhbjacvb" >>> seek = {'a', 'b'

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Vincent Michel
Change by Vincent Michel : Added file: https://bugs.python.org/file48883/comparing_conversions.py ___ Python tracker <https://bugs.python.org/issue39484> ___ ___ Pytho

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Vincent Michel
Vincent Michel added the comment: @mark.dickinson > To be clear: the following is flawed as an accuracy test, because the > *multiplication* by 1e9 introduces additional error. Interesting, I completely missed that! But did you notice that the full conversion might still perform

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Vincent Michel
Vincent Michel added the comment: @serhiy.storchaka > 1580301619906185300/10**9 is more accurate than 1580301619906185300/1e9. I don't know exactly what `F` represents in your example but here is what I get: >>> r = 1580301

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Vincent Michel
Vincent Michel added the comment: > The problem is that there is a double rounding in [...] Actually `float(x) / 1e9` and `x / 1e9` seems to produce the same results: ``` import time import itertools now = time.time

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Vincent Michel
Vincent Michel added the comment: Thanks for your answers, that was very informative! > >>> a/10**9 > 1580301619.9061854 > >>> a/1e9 > 1580301619.9061852 > > I'm not sure which one is "correct". Originally, I thought `a/10**9` was more precis

[issue39484] time_ns() and time() cannot be compared on windows

2020-02-03 Thread Vincent Michel
Change by Vincent Michel : Added file: https://bugs.python.org/file48881/comparing_errors.py ___ Python tracker <https://bugs.python.org/issue39484> ___ ___ Python-bug

[issue39484] time_ns() and time() cannot be compared on windows

2020-01-29 Thread Vincent Michel
Vincent Michel added the comment: I thought about it a bit more and I realized there is no way to recover the time in hundreds of nanoseconds from the float produced by `time.time()` (since the windows time currently takes 54 bits and will take 55 bits in 2028). That means `time

[issue39484] time_ns() and time() cannot be compared on windows

2020-01-29 Thread Vincent Michel
New submission from Vincent Michel : On windows, the timestamps produced by time.time() often end up being equal because of the 15 ms resolution: >>> time.time(), time.time() (1580301469.6875124, 1580301469.6875124) The problem I noticed is that a value produced by time_n

Won't Uninstall

2019-09-20 Thread Fred Vincent
Python 3.7.4 won’t uninstall, I have tried doing what I can such as going to the control panel and uninstalling the program there, but that did not work. Since I am unable to delete it I am unable to download a different version of python. How do I fix this and fully uninstall python? Sent

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2019-07-13 Thread Vincent Michel
Change by Vincent Michel : -- pull_requests: +14550 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14755 ___ Python tracker <https://bugs.python.org/issu

Re: Python 3.73 cannot install py3exiv2

2019-05-02 Thread Vincent Vande Vyvre
ecutable for Windows. But, recently an user send me how it has successfully compiled py3exiv2 for Windows. Hello Vincent,  I’ve run through the trouble of building py3exiv2 on Windows and was successful in doing so, therefore I’d like to present you the steps I’ve taken to get there, so that you c

Re: How to catch a usefull error message ?

2019-04-25 Thread Vincent Vande Vyvre
Le 25/04/19 à 08:25, Chris Angelico a écrit : On Thu, Apr 25, 2019 at 2:32 PM Vincent Vande Vyvre wrote: Le 24/04/19 à 19:57, MRAB a écrit : On 2019-04-23 20:21, Vincent Vande Vyvre wrote: Le 23/04/19 à 20:54, Chris Angelico a écrit : Why a SystemError ? The SystemError means that you're

Re: How to catch a usefull error message ?

2019-04-24 Thread Vincent Vande Vyvre
Le 24/04/19 à 19:57, MRAB a écrit : On 2019-04-23 20:21, Vincent Vande Vyvre wrote: Le 23/04/19 à 20:54, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre wrote: Into the lib: static int ImgProc_init(ImgProc *self, PyObject *args, PyObject *kwds) {   PyObject

Re: How to catch a usefull error message ?

2019-04-24 Thread Vincent Vande Vyvre
Le 23/04/19 à 21:48, MRAB a écrit : On 2019-04-23 19:21, Vincent Vande Vyvre wrote: Le 23/04/19 à 19:23, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 3:18 AM Vincent Vande Vyvre wrote: Hi, In a CPython lib I have an _init() method wich take one argument, a file name.   char

Re: How to catch a usefull error message ?

2019-04-24 Thread Vincent Vande Vyvre
Le 23/04/19 à 20:54, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 4:47 AM Vincent Vande Vyvre wrote: Into the lib: static int ImgProc_init(ImgProc *self, PyObject *args, PyObject *kwds) { PyObject *tmp; char *fname; if (!PyArg_ParseTuple(args, "s", ))

Re: How to catch a usefull error message ?

2019-04-23 Thread Vincent Vande Vyvre
Le 23/04/19 à 19:27, MRAB a écrit : On 2019-04-23 10:56, Vincent Vande Vyvre wrote: Hi, In a CPython lib I have an _init() method wich take one argument, a file name.       char *fname;       if (!PyArg_ParseTuple(args, "s", ))       return NULL; So, if I instanciate

Re: How to catch a usefull error message ?

2019-04-23 Thread Vincent Vande Vyvre
Le 23/04/19 à 19:23, Chris Angelico a écrit : On Wed, Apr 24, 2019 at 3:18 AM Vincent Vande Vyvre wrote: Hi, In a CPython lib I have an _init() method wich take one argument, a file name. char *fname; if (!PyArg_ParseTuple(args, "s", )) return NULL;

How to catch a usefull error message ?

2019-04-23 Thread Vincent Vande Vyvre
is object into a try-except bloc but how to read the error message ? Vincent -- https://mail.python.org/mailman/listinfo/python-list

Re: pip unable to find an extension of a lib.

2019-04-12 Thread Vincent Vande Vyvre
ink the above is likely. Paul Exact, in mode verbose it enumerate all versions of pyqt-sip and all are declared "not compatible with this Python" So I'll create a 3.7.3 venv without the "--with-pydebug" Thanks, Vincent. -- https://mail.python.org/mailman/listinfo/python-list

Re: pip unable to find an extension of a lib.

2019-04-12 Thread Vincent Vande Vyvre
Le 12/04/19 à 07:40, dieter a écrit : Vincent Vande Vyvre writes: ... Using Python-3.7.2 (compiled with --with-pydebug) in a venv, I've encountered this problem: $ pip install --upgrade pip setuptools wheel Successfully installed setuptools-41.0.0 wheel-0.33.1

pip unable to find an extension of a lib.

2019-04-11 Thread Vincent Vande Vyvre
s problem. Thanks for all advices Vincent. -- https://mail.python.org/mailman/listinfo/python-list

[issue31062] socket.makefile does not handle line buffering

2019-03-16 Thread Vincent Michel
Vincent Michel added the comment: I ran into this issue too so I went ahead and created a pull request (https://github.com/python/cpython/pull/12370). -- nosy: +vxgmichel versions: +Python 3.7, Python 3.8 ___ Python tracker <ht

[issue31062] socket.makefile does not handle line buffering

2019-03-16 Thread Vincent Michel
Change by Vincent Michel : -- keywords: +patch pull_requests: +12333 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31062> ___ ___ Py

[issue35973] `growable_int_array type_ignores` in parsetok.c is not always freed.

2019-02-12 Thread Brennan Vincent
Brennan Vincent added the comment: Hi Guido, I have tried applying your patch. It seems to fix the issue (Valgrind no longer reports memory definitely lost). -- ___ Python tracker <https://bugs.python.org/issue35

[issue35973] `growable_int_array type_ignores` in parsetok.c is not always freed.

2019-02-11 Thread Brennan Vincent
New submission from Brennan Vincent : To reproduce: (1) build python: `../configure --prefix=$HOME/prefix --with-pydebug --without-pymalloc && make install` (2) run with valgrind: `valgrind --leak-check=full ~/prefix/bin/python3` (3) exit immediately from the interpreter by pressin

Re: How to force the path of a lib ?

2019-01-24 Thread Vincent Vande Vyvre
Le 23/01/19 à 13:11, Neal Becker a écrit : dieter wrote: Vincent Vande Vyvre writes: . To load external C/C++ shared objects, the dynamic lickage loader (ldd) is used. "ldd" does not look at Pthon's "sys.path". Unless configured differently, it looks at standard p

How to force the path of a lib ?

2019-01-22 Thread Vincent Vande Vyvre
iv2/libexiv2python.cpython-37m-x86_64-linux-gnu.so # and the latest version of libexiv2 ~/CPython/py370_venv/lib/libexiv2.so.0.27.0 All theses path are in the sys.path Now I test my binding: >>> import pyexiv2 Traceback (most recent call last):   File "", line 1, in   File "/home/vin

How to force the path of a lib ?

2019-01-22 Thread Vincent Vande Vyvre
t;, line 1, in   File "/home/vincent/CPython/py370_venv/lib/python3.7/site-packages/py3exiv2-0.1.0-py3.7-linux-x86_64.egg/pyexiv2/__init__.py", line 60, in     import libexiv2python ImportError: /home/vincent/CPython/py370_venv/lib/python3.7/site-packages/py3exiv2-0.1.0-py3.7-linux-x86_6

Re: How to display video files (mkv, wav, mp4 etc) within a TKinter widget?

2019-01-02 Thread Vincent Vande Vyvre
) for this? TIA With Qt it's very easy to implement a video player. See this example: https://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4/view/head:/gui/videoplayer.py It is implemented into this window: https://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4/view/head:/gui

Re: clusters of numbers

2018-12-15 Thread Vincent Davis
Why not start with a histogram. Vincent On Sat, Dec 15, 2018 at 6:46 PM Marc Lucke wrote: > hey guys, > > I have a hobby project that sorts my email automatically for me & I want > to improve it. There's data science and statistical info that I'm > missing, & I alw

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2018-12-04 Thread Vincent Michel
Change by Vincent Michel : -- keywords: +patch Added file: https://bugs.python.org/file47974/patch.diff ___ Python tracker <https://bugs.python.org/issue35

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2018-12-04 Thread Vincent Michel
Change by Vincent Michel : Added file: https://bugs.python.org/file47973/test.py ___ Python tracker <https://bugs.python.org/issue35409> ___ ___ Python-bugs-list mailin

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2018-12-04 Thread Vincent Michel
New submission from Vincent Michel : As far as I can tell, this issue is different than: https://bugs.python.org/issue34730 I noticed `async_gen.aclose()` raises a GeneratorExit exception if the async generator finalization awaits and silence a failing unfinished future (see example.py

[issue35065] Reading received data from a closed TCP stream using `StreamReader.read` might hang forever

2018-10-29 Thread Vincent Michel
Change by Vincent Michel : -- pull_requests: +9528 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35065> ___ ___ Python-bugs-list mai

[issue35065] Reading received data from a closed TCP stream using `StreamReader.read` might hang forever

2018-10-26 Thread Vincent Michel
Vincent Michel added the comment: I found the culprit: https://github.com/python/cpython/blob/a05bef4f5be1bcd0df63ec0eb88b64fdde593a86/Lib/asyncio/streams.py#L350 The call to `_untrack_reader` is performed too soon. Closing the transport causes `protocol.connection_lost()` to be "called

[issue35065] Reading received data from a closed TCP stream using `StreamReader.read` might hang forever

2018-10-26 Thread Vincent Michel
Vincent Michel added the comment: Hi Andrew! I reverted the commit associated with the following PR, and the hanging issue disappeared: https://github.com/python/cpython/pull/9201 I'll look into it. -- type: -> behavior ___ Python trac

[issue35065] Reading received data from a closed TCP stream using `StreamReader.read` might hang forever

2018-10-25 Thread Vincent Michel
New submission from Vincent Michel : I'm not sure whether it is intended or not, but I noticed a change in the behavior of `StreamReader` between version 3.7 and 3.8. Basically, reading some received data from a closed TCP stream using `StreamReader.read` might hang forever, under certain

[issue34747] SSLSocket.context cannot be changed on non-connected sockets

2018-10-15 Thread Vincent Pelletier
Vincent Pelletier added the comment: The reason which led me into this is server certificate renewal: my service crashed on that setter 2 months after starting, when it received a new certificate. I toyed with the idea of closing the listening sockets, but without closing would be even

[issue34747] SSLSocket.context cannot be changed on non-connected sockets

2018-10-15 Thread Vincent Pelletier
Change by Vincent Pelletier : -- assignee: -> christian.heimes components: +Library (Lib), SSL nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issu

[issue34561] Replace list sorting merge_collapse()?

2018-10-02 Thread Vincent Jugé
Vincent Jugé added the comment: After having worked a little bit on improving AdaptiveShiversSort on few-run cases, I designed a new version of the algorithm, called shivers2 in the file runstack.py joined to this message It looks more complicated than the original AdaptiveShiversSort

[issue34561] Replace list sorting merge_collapse()?

2018-09-22 Thread Vincent Jugé
Vincent Jugé added the comment: I see... Indeed, my only goal when adapting Shivers Sort was to maintain some invariant that would make the analysis easy, while mimicking the arguments developed by Buss & Knop for their analysis of (plain) Shivers Sort. It is, however, sure that the n

[issue34561] Replace list sorting merge_collapse()?

2018-09-21 Thread Vincent Jugé
Vincent Jugé added the comment: Dear all, After me and my colleagues worked on the first paper you mention, I recently created another merge-based sorting algorithm, which I called "Adaptive Shivers Sort". This is a close variant of the Augmented Shivers Sort presented by Bu

[issue34747] SSLSocket.context cannot be changed on non-connected sockets

2018-09-20 Thread Vincent Pelletier
New submission from Vincent Pelletier : >From ssl.py, both on 2.7.15 and 3.6.6: class SSLSocket(...): ... @context.setter def context(self, ctx): self._context = ctx self._sslobj.context = ctx _sslobj is only set when socket is connected. While this is not a big is

Fishing from PyPI ?

2018-08-06 Thread Vincent Vande Vyvre
unt Settings <https://pypi.us18.list-manage.com/track/click?u=b96f861be540deb98fd700265=1763135c31=8824682d0f> is : https://pypi.us18.list-manage.com/track/click?u=b96f861be540deb98fd700265=1763135c31=8824682d0f Phishing ? yes, no ? Vincent -- https://mail.python.org/mailman/listinfo/python-list

[issue33979] [Exception message] Display type of not JSON serializable object

2018-06-27 Thread Vincent Lefoulon
Change by Vincent Lefoulon : -- title: Display type of not JSON serializable object -> [Exception message] Display type of not JSON serializable object ___ Python tracker <https://bugs.python.org/issu

[issue33979] Display type of not JSON serializable object

2018-06-27 Thread Vincent Lefoulon
New submission from Vincent Lefoulon : When we call `json.dumps` on a non JSON serializable object, we obtain an error: ``` TypeError: 4 is not JSON serializable ``` Here, 4 was actually a `numpy.int64` object and not a native int. But it is not explicit in the error message. We should

Re: I'm getting a spamassassin party here

2018-06-26 Thread Vincent Vande Vyvre
--- Same day, same hour but arrived today From: "Steven D'Aprano" From: Steven D'Aprano On Sat, 23 Jun 2018 06:26:22 -0400, Richard Damon wrote: [ following the same message ] I've re-received 22 old d

Re: Is it possible to call a class but without a new instance created?

2018-06-18 Thread Vincent Vande Vyvre
e : class Foo:     _instance = None     def __new__(cls, *args, **kwargs):     if cls._instance is None:     cls._instance = super(Foo, cls).__new__(cls, *args, **kwargs)     return cls._instance     def __init__(self, ...):         ... Vincent Send at Mon, 18 Jun 2018 09:17:21 +0200 -- https://mail.python.org/mailman/listinfo/python-list

Obsolete method in the html module

2018-06-09 Thread Vincent Vande Vyvre
.',   DeprecationWarning, stacklevel=2)     return unescape(s) Vincent (send at 08:07 GMT) -- https://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   >