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
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
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
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 &
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 &
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'
T
Change by Abri Vincent :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue46139>
___
___
Python-bugs-list
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 f
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
Change by Jean-Philippe VINCENT :
--
title: Issue 42914 -> pprint -> underscore_numbers argument not working
___
Python tracker
<https://bugs.python.org/i
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: 4
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),
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
Change by Vincent Michel :
--
pull_requests: -26670
___
Python tracker
<https://bugs.python.org/issue44129>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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/file5027
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 to
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
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
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
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
Change by Vincent :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue43462>
___
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 kn
Vincent added the comment:
... calculate the coordinates using the canvas.coords function
--
___
Python tracker
<https://bugs.python.org/issue43462>
___
___
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 o
Vincent added the comment:
No, not hang. It returns a NoneType.
See this example:
>>> x = canvas.bbox('tunnel')
>>> type(x)
>>>
--
___
Python tracker
Change by Vincent :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue43462>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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 &
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
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: +ban
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
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
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 parsi
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-6469
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
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&
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
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'
Change by Vincent Michel :
Added file: https://bugs.python.org/file48883/comparing_conversions.py
___
Python tracker
<https://bugs.python.org/issue39484>
___
___
Pytho
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
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 = 15
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
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 p
Change by Vincent Michel :
Added file: https://bugs.python.org/file48881/comparing_errors.py
___
Python tracker
<https://bugs.python.org/issue39484>
___
___
Python-bug
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()` and
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
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
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
Change by Vincent Michel :
--
keywords: +patch
pull_requests: +12333
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31062>
___
___
Py
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
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
Change by Vincent Michel :
--
keywords: +patch
Added file: https://bugs.python.org/file47974/patch.diff
___
Python tracker
<https://bugs.python.org/issue35
Change by Vincent Michel :
Added file: https://bugs.python.org/file47973/test.py
___
Python tracker
<https://bugs.python.org/issue35409>
___
___
Python-bugs-list mailin
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
Change by Vincent Michel :
--
pull_requests: +9528
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35065>
___
___
Python-bugs-list mai
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
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
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 ce
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
Change by Vincent Pelletier :
--
assignee: -> christian.heimes
components: +Library (Lib), SSL
nosy: +christian.heimes
___
Python tracker
<https://bugs.python.org/issu
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 but
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
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 Buss
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
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
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
Change by Bob Vincent :
--
nosy: +pillarsdotnet
___
Python tracker
<https://bugs.python.org/issue1294959>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Vincent Michel :
It's currently not possible to receive replies from multicast UDP with asyncio,
as reported in the following issue:
https://github.com/python/asyncio/issues/480
That's because asyncio connects the UDP socket to the broadcast address,
causing a
Vincent Gatine added the comment:
Tried your suggestion. Nothing is printed and program still crash.
--
___
Python tracker
<https://bugs.python.org/issue31
Changes by Vincent Gatine :
--
nosy: +nurelin
___
Python tracker
<https://bugs.python.org/issue31532>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Vincent Gatine :
--
keywords: +patch
pull_requests: +3668
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31532>
___
___
Py
Changes by Vincent Michel :
--
pull_requests: +3418
___
Python tracker
<http://bugs.python.org/issue29627>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Vincent Michel :
--
pull_requests: +3417
___
Python tracker
<http://bugs.python.org/issue31307>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Vincent Michel:
Calling `config_parser.read` with `'test'` is equivalent to:
config_parser.read(['test'])
while calling `config_parser.read` with `b'test'` is treated as:
config_parser.read([116, 101, 115, 116])
which means py
Vincent Pelletier added the comment:
My original point of view was that:
- python3 is right to only accept integers, consistently with "str != bytes"
- python2 is rather right to accept str, consistently with "str == bytes"
- maybe the bug is that python2 should not reject
New submission from Vincent Pelletier:
Quoting a github gist[1] (not mine, I found it while googling for this error)
clearly illustrating the issue:
# Python 2
>>> b = bytearray(8)
>>> v = memoryview(b)
>>> v[0] = 42
Traceback (most recent call last):
File &quo
New submission from Vincent Vanlaer:
Example:
X-Report-Abuse:
=?us-ascii?q?=3Chttps=3A=2F=2Fwww=2Emailitapp=2Ecom=2Freport=5Fabuse=2Ephp=3Fmid=3Dxxx-xxx-?=
=?us-ascii?q?=3D=3D-xxx-xx-xx=3E?=
When this header is parsed and reencoded as bytes using policy.default, the
Vincent Michel added the comment:
I agree with Yury's ideas about the implementation of this feature. However, it
is a bit confusing to have `asyncio.get_event_loop` defined as:
def get_event_loop():
policy = get_event_loop_policy()
return policy.get_running_loop
Vincent Legoll added the comment:
Maybe if the server change is not approved you can still push the part of the
patch that un-hardwire that server name everywhere...
--
___
Python tracker
<http://bugs.python.org/issue25
Changes by Vincent Legoll :
--
nosy: +vincent-legoll
___
Python tracker
<http://bugs.python.org/issue25940>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Vincent Davis:
>From the documentation pages for python 2.7 and 3.4, 3.5, 3.6 it is possible
>to select another python version in the breadcrumb at the top left of the
>page. This is not available for python 2.6, 3.2 and 3.3.
See related issue which is clos
Vincent Michel added the comment:
I attached a patch that should sum up all the points we discussed.
I replaced the `call_soon_threadsafe` example with:
loop.call_soon_threadsafe(callback, *args)
cause I couldn't find a simple specific usage. Let me know if you think of a
better ex
Vincent Michel added the comment:
> The docs look good.
Should I add a note to explain why the loop argument has to be explicitly
passed? (there is a note at the beginning of the `task functions` section
stating "In the functions below, the optional loop argument ...")
> Wha
Vincent Michel added the comment:
I attached the first version of the documentation for
`run_coroutine_threadsafe`. The `Concurrency and multithreading` section also
needs to be updated but I could already use some feedback.
Also, I think we should add a `try-except` in the callback function
Vincent Michel added the comment:
While I was working on the documentation update, I realized that what we called
`run_coroutine_threadsafe` is actually a thread-safe version of
`ensure_future`. What about renaming it to `ensure_future_threadsafe`? It might
be a bit late since
New submission from Vincent Caloone:
For "large" POST request (> 25 ko), cgi.FieldStorage() doesn't contains all
field in the html form. When we trace the root of the issue, it is located in
file server.py :
if self.command.lower() == "post" and nbytes > 0:
New submission from Vincent Legoll:
Here is a patch to fix a missing word in the urllib doc
--
assignee: docs@python
components: Documentation
files: python-doc-fix.hgpatch
messages: 245927
nosy: docs@python, vincent-legoll
priority: normal
severity: normal
status: open
title: [doc
Vincent Alquier added the comment:
Martin: You're right, it's the same issue, and only related to python2's old
style classes. Sorry for the useless noise.
Demian: My problem is `len(obj)` raises an Using AttributeError in python2
(with obj being old style class instance).
Vincent Alquier added the comment:
Another issue should be addressed by patch...
When trying to guess the content-length, here is the code you find...
try:
thelen = str(len(body))
except TypeError as te:
[...]
The call to `len` will raise a `TypeError
Changes by Vincent Davis :
--
nosy: +Vincentdavis
___
Python tracker
<http://bugs.python.org/issue21360>
___
___
Python-bugs-list mailing list
Unsubscribe:
Vincent Davis added the comment:
Anything else need to be done on this patch?
--
nosy: +Vincentdavis
___
Python tracker
<http://bugs.python.org/issue18
Vincent Davis added the comment:
Looks like this is ready to be applied and closed or just closed.
--
nosy: +Vincentdavis
___
Python tracker
<http://bugs.python.org/issue20
Vincent Davis added the comment:
Rather than dealing with the time delta how about getting the time twice and
checking that we are between and at least once we have the same day.
i.e.
ts1 = time()
today = self.theclass.today()
ts2 = time()
todayagain1 = self.theclass.fromtimestamp(ts1
Vincent Besanceney added the comment:
If I understand it right, in a simple case like this:
class Foo(object):
def __setattr__(self, name, value):
# some logic, then...
super(Foo, self).__setattr__(name, value)
calling super is equivalent to calling object.__setattr__, but
New submission from Vincent Besanceney:
In:
https://docs.python.org/2.7/reference/datamodel.html#customizing-attribute-access
Regarding the description of __setattr__ method: "For new-style classes, rather
than accessing the instance dictionary, it should call the base class method
wit
New submission from Vincent Michel:
The Bytearray type is a mutable object that support the read-write buffer
interface. The fcntl.ioctl() function is supposed to handle mutable object
(such as array.array) for the system calls in order to pass object that are
more than 1024 bytes long.
The
Vincent Pelletier added the comment:
Then I guess SafeTransport should be cleaned to remove its dead code (tuple
host handling), and the class you link to should be included (in spirit if not
verbatim) in xmlrpclib.
Also, sorry, I realized after posting that this bug is a dupe of #1581. But
New submission from Vincent Pelletier :
SafeTransport class supports a 2-tuple as uri, in order to pass x509 parameters
to httplib.HTTPSConnection .
xmlrpclib.ServerProxy.__init__ fails when given such tuple, because it calls:
urllib.splittype(uri)
without checking uri type first.
Minimal
1 - 100 of 151 matches
Mail list logo