New submission from Nicolas SURRIBAS :
When passing to socket.create_connection a timeout option above (approximately)
127 seconds, the timeout is not respected.
Code to reproduce the issue :
import socket
from time import monotonic
print(socket.getdefaulttimeout())
start = monotonic()
try
New submission from Nicolas SURRIBAS :
Hello,
I bumped into this strange behavior several times when using os.scandir on
mounted NFS shares. I'm using Python 3.9.1
>>> path = b'/mnt/nfs_share/sdb1/System Volume Information/'
>>> l = list(os.s
Nicolas Dessart added the comment:
I've just rebased this PR but the CI builds failed (for unrelated reasons?).
That being said I think that this particular issue should mostly be resolved by
bpo-41100 and PR-22855 in particular. My PR 18560 still brings the support for
Ellipsis/... i
Nicolas added the comment:
Sorry, I meant https://www.meridigital.com
--
___
Python tracker
<https://bugs.python.org/issue36207>
___
___
Python-bugs-list mailin
Nicolas added the comment:
Seems like we have the same issue with http://meridigital.com/robots.txt
--
nosy: +nico702 -matthieuhemea
___
Python tracker
<https://bugs.python.org/issue36
Nicolas Gimenez added the comment:
Relase: 0.32
Lang: English
Python version: 3.8.3
--
___
Python tracker
<https://bugs.python.org/issue40664>
___
___
Python-bug
New submission from Nicolas Gimenez :
On this page:
https://docs.python.org/3/howto/functional.html
The example:
"itertools.dropwhile(is_even, itertools.count()) =>
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ..."
is wrong. It should be:
"itertools.dropwhile(is_even, itertools.count(
Nicolas Dessart added the comment:
As I said in the associated PR, the build is failing on macOS because ctypes
uses an obsolete libffi version bundled into Modules/_ctypes/libffi_osx for
this platform. This old version of libffi is missing ffi_prep_cif_var.
There is an open issue that
Change by Nicolas Dessart :
--
versions: +Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue39
Change by Nicolas Dessart :
--
pull_requests: +17940
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18560
___
Python tracker
<https://bugs.python.org/issu
Change by Nicolas Dessart :
Removed file:
https://bugs.python.org/file48895/ctypes_variadic_function_tests.diff
___
Python tracker
<https://bugs.python.org/issue39
Change by Nicolas Dessart :
Added file:
https://bugs.python.org/file48896/ctypes_variadic_function_tests.diff
___
Python tracker
<https://bugs.python.org/issue39
New submission from Nicolas Dessart :
On armhf and for variadic functions (and contrary to non-variadic functions),
the VFP co-processor registers are not used for float argument parameter
passing. This specificity is apparently completely disregarded by ctypes which
always uses
Change by Nicolas Évrard :
--
nosy: +nicoe
___
Python tracker
<https://bugs.python.org/issue34155>
___
___
Python-bugs-list mailing list
Unsubscribe:
Nicolas Hug added the comment:
Thanks for the link,
But I don't see any justification for this behavior*? Why should lists be
compacted but not dicts (even when explicitly asked)?
At the very least it should be made clear in the documentation that dicts are
not compacted.
* Maybe th
Nicolas Hug added the comment:
Sorry:
[2]
https://github.com/scikit-learn/scikit-learn/pull/11705/files#diff-f83e8d9362766b385472f1be7fed9482R96
--
___
Python tracker
<https://bugs.python.org/issue34
Nicolas Hug added the comment:
Thank you for the feedback!
I'll try the python-ideas mail list. I posted a message on Python-list [1] a
few weeks ago but it didn't get much traction.
I'm not sure about what the final solution could be (if any), but I had to hack
pprint mys
Change by Nicolas Hug :
--
versions: +Python 3.8 -Python 3.7
___
Python tracker
<https://bugs.python.org/issue34798>
___
___
Python-bugs-list mailing list
Unsub
New submission from Nicolas Hug :
Dict representations that exceed the line width are printed with one line per
key-value pair, ignoring the compact=True parameter:
>>> pprint.pprint({i: 0 for i in range(15)}, compact=True)
{0: 0,
1: 0,
2: 0,
3: 0,
4: 0,
5: 0,
6: 0,
7: 0,
8:
Nicolas Hainaux added the comment:
I understand that the statement "when python starts, it runs using the C
locale..." should not be correct anymore (and the doc should then be updated),
but in fact this statement is still true on the systems I tested; only, the
output of locale
Nicolas Hainaux added the comment:
Sorry, I did not realize that using the word "unset" was completely misleading:
I only meant "before any use of locale.setlocale() in python". So I'll rephrase
this all, and add details about the python versions and platforms in thi
New submission from Nicolas Hainaux :
Expected behaviour:
When unset, the locale in use is `C` (as stated in python documentation) and
`locale.getlocale()` returns `(None, None)` on Linux with python2.7 or on
Windows with python2.7 and python 3.6 (at least):
$ python2
Python 2.7.15
Change by Nicolas Noé :
--
keywords: +patch
pull_requests: +7457
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33911>
___
___
Python-
Nicolas Noé added the comment:
I'm willing to try solving this!
--
nosy: +niconoe
___
Python tracker
<https://bugs.python.org/issue33911>
___
___
Pytho
New submission from Nicolas Savoire:
With python3.5, fnmatch appears not to be thrad safe. It fails with the
following exception:
Traceback (most recent call last):
File "test.py", line 18, in
f.result()
File "/opt/anaconda3/lib/python3.5/concurrent/futures/_base.py
New submission from Damien Nicolas:
When calling asyncio.ensure_future() on a coroutine, and if the loop is closed,
ensure_future() will raise a RuntimeError.
However, it still creates a Task, which will generate a RuntimeWarning that we
can’t fix since there is no way to cancel the Task
New submission from Nicolas Évrard:
Some of the arguments although specified further in the documentation do not
appear in the signature of TextTestRunner.
Here's a simple patch to include them.
--
assignee: docs@python
components: Documentation
files: unittest_doc_bug.diff
key
Changes by Nicolas Demarchi :
--
nosy: +gilgamezh
___
Python tracker
<http://bugs.python.org/issue25675>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Nicolas Primeau:
Converting arbitrarily large float type numbers to integer type number results
in a non trivially different number.
This can be repeated in all Python versions, same with Python 2 with longs.
Expected behaviour would be an integer representation of 1e+44
Changes by Nicolas Jouanin :
--
nosy: +njouanin
___
Python tracker
<http://bugs.python.org/issue11943>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Nicolas Jouanin :
--
nosy: +njouanin
___
Python tracker
<http://bugs.python.org/issue19084>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Nicolas Demarchi:
When Envbuilder creates a new virtualenv with system_site_packages=True,
in the process of installing pip itself it actually doesn't install it inside
the virtualenv because it is already there in the system.
However when you do it manually
Changes by Nicolas Limage :
--
nosy: -Nicolas.Limage
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
New submission from Nicolas Limage:
The current version of the ipaddress library implements containment
relationship in a way that a network is never contained in another network :
>>> from ipaddress import IPv4Network,IPv4Address
>>> IPv4Network(u'192.168.22.
Nicolas Frattaroli added the comment:
I had the same issue. It wouldn't just crash, it would crash sometimes, and not
other times. About 50% of the time.
The solution to remove msvcr as suggested by Marek did work. I didn't apply his
patch, however, because I'm using a
Changes by Nicolas Schodet :
--
nosy: -schodet
___
Python tracker
<http://bugs.python.org/issue15785>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Nicolas Schodet :
--
nosy: -schodet
___
Python tracker
<http://bugs.python.org/issue14223>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Nicolas :
The function set by readline.set_completer must return one completion per call.
This should be great if we can return an iterable, because with current
implementation I have to write a wrapper:
cache = None
def completer(text, state):
if cache:
if len
Nicolas Dumazet added the comment:
> It's the other end which decides to return ENOTCONN upon shutdown(SHUT_RD) on
> OS X, which is questionable
> (not sure it's against the BSD socket API, since shutdown(SHUT_RD) doesn't
> have any counterpart in the TCP laye
Changes by Nicolas Goutte :
Added file: http://bugs.python.org/file23841/windows_1252ok.py
___
Python tracker
<http://bugs.python.org/issue13525>
___
___
Python-bug
New submission from Nicolas Goutte :
Current Behaviour
The tutorial of Python 3.2.x has an example to set an encoding in a source
file: http://docs.python.org/py3k/tutorial/interpreter.html#source-code-encoding
It explains to set the following line at the start of the source code
Nicolas Bareil added the comment:
Martin v. Löwis writes:
>> what do you think about a DeprecationWarning at runtime?
>
> What API exactly should this deprecate?
Ooops, lapsus. I was thinking about a RuntimeWarning raised on HTTPS
request (in httplib.HTTPSConnection.connect
Nicolas Bareil added the comment:
Hello,
Your patch about SSLContext is great! But what can we do about python 2.x?
I understand that we have to keep backward compatibility but something has to
be done for improving current situation, even Paypal API (*) recommends using
urllib.urlopen
New submission from Nicolas Évrard :
While using pyflake on some of my file I noticed in a copied version of _group
two unused variables.
The attached patch fixed that very little annoyance.
--
components: Library (Lib)
files: locale.diff
keywords: patch
messages: 146549
nosy: nicoe
Nicolas Estibals added the comment:
Thanks for your help and the interesting discussion with this issue.
--
___
Python tracker
<http://bugs.python.org/issue12
Nicolas Estibals added the comment:
Sorry for the late, my week-end was more busy than expected. Here is the
corrected version of the patch.
--
Added file: http://bugs.python.org/file22511/send_message_rfc2822_v2.patch
___
Python tracker
<h
Nicolas Estibals added the comment:
I wasn't aware of the problem of guessing which are the correct Resent-* field,
tthis does not seem to be that easy, however taking only the first one should
be a good heuristic for next release.
I think we now agree on the "automatic proces
Nicolas Estibals added the comment:
Hi,
Treating this as a bug is a good news, if we don't user of the function will
ask for python 3.3
I also think the part concerning the Sender header is pretty clear and we can
fix it easily.
About the Resent-* fields, I'm not sure of the righ
New submission from Nicolas Estibals :
smtplib.send_message permits to send messages that are in python Message
representation by selecting smtp's "from" and "to" in the message headers. Most
of the time the implementation is correct but if the message is bounced
(Re
Nicolas Bareil added the comment:
Hello Mads
> Until now Python failed to the safe side by not matching on
> subjectAltName iPAddress but also not falling back to commonName
> if they were specified. AFAICS, with this change it is possible to
> create strange certificates that
Nicolas Bareil added the comment:
Hello Antoine, Steffen,
You are absolutely right about removing the 'not san' part. Here is the
new patch, with tests :
diff -r c22d5b37f6a4 Lib/ssl.py
--- a/Lib/ssl.pyFri May 06 09:31:02 2011 +0300
+++ b/Lib/ssl.pyFri May 06 12:
New submission from Nicolas Bareil :
When connecting to a SSL server, the certificate verification failed if
it has a subjectAltName extension without any dNSName entry inside: it
should fallback to the Common Name.
Example:
>>> cert = conn.getpeercert()
>>> cert
New submission from Nicolas Joly :
NetBSD do require the very same fix from issue 9185, to handle ERANGE errno
returned when the size argument is greater than zero but smaller
than the length of the pathname plus 1.
Without it, the testsuite do indeed loops indefinitely.
Thanks
Nicolas Delaby added the comment:
the PyXML sax parser support this feature.
May be it can be backported into stdlib ?
--
nosy: +Nicolas.Delaby
___
Python tracker
<http://bugs.python.org/issue10
Nicolas Dumazet added the comment:
Hello,
1) Can you please avoid putting several statements in the same line?
2) wouldnt it be better to compute only once the contents of methods()? I'm not
sure that module-initialization time is okay for CPython, but at the very least
you can lazily
Nicolas Joly added the comment:
I do not tested it extensively, but seems so.
nj...@petaure [temp/python27]> ./python
Python 2.7.1+ (release27-maint:87432M, Dec 22 2010, 01:10:26)
[GCC 4.1.3 20080704 prerelease (NetBSD nb2 20081120)] on netbsd5
Type "help", "copyright"
New submission from Nicolas Joly :
The configure script do hardcode compilers for LDSHARED/LDCXXSHARED on NetBSD,
which should be avoided.
[...]
checking for gcc... gcc
checking whether gcc accepts -g... yes
[...]
checking SO... .so
checking LDSHARED... cc -shared
checking CCSHARED... -fPIC
Nicolas Kaiser added the comment:
Sorry, found it - with patched builds of Python 2.6.5 and 3.1.2:
python2.6 test_binascii.py
test_base64invalid (__main__.BinASCIITest) ... ok
test_base64valid (__main__.BinASCIITest) ... ok
test_crc32 (__main__.BinASCIITest) ... ok
test_empty_string (__main__
Nicolas Kaiser added the comment:
That's ./Lib/test/test_unittest.py?
With patched builds of Python 2.6.5 and 3.1.2:
--
Ran 126 tests in 0.015s
OK
-
Changes by Nicolas Kaiser :
--
keywords: +patch
Added file: http://bugs.python.org/file19504/python-binascii.diff
___
Python tracker
<http://bugs.python.org/issue10
New submission from Nicolas Kaiser :
Hi there!
I noticed two expressions that can be simplified like:
(a || (!a && b)) => (a || b)
Best regards,
Nicolas Kaiser
---
--- a/Modules/binascii.c2010-11-05 13:21:22.075303326 +0100
+++ b/Modules/binascii.c2010-11-05 13:24:1
Changes by Nicolas Schodet :
--
nosy: +schodet
___
Python tracker
<http://bugs.python.org/issue6755>
___
___
Python-bugs-list mailing list
Unsubscribe:
Nicolas Dumazet added the comment:
Sure, where was my head.
So, a simple patch like this one:
_oldheaderinit = email.Header.Header.__init__
def _unifiedheaderinit(self, *args, **kw):
# override continuation_ws
kw['continuation_ws'] = ' '
_oldheaderin
Nicolas Dumazet added the comment:
Hello folks.
(stumbling on this bug with Python2.7 release, noting that a few Mercurial
tests broke with 2.7)
I have no problem whatsoever with the fix itself (you know emails better than
me), but you broke backwards compatibility for
Changes by Nicolas Dumazet :
--
nosy: +nicdumz
___
Python tracker
<http://bugs.python.org/issue6715>
___
___
Python-bugs-list mailing list
Unsubscribe:
Nicolas Dumazet added the comment:
Sure, I'd be happy to contribute a patch.
I uploaded a patch on Rietveld, at http://codereview.appspot.com/110078
Let me know how it looks.
--
___
Python tracker
<http://bugs.python.org/i
Nicolas Dumazet added the comment:
Great, I don't know how I missed that bug.
It looks really similar to the patch I had written at
http://codereview.appspot.com/111041
So your patch looks correct to me, and does solve the issue locally.
--
nosy: +ni
New submission from Nicolas Dumazet :
test_distutils, test_zipfile, test_gzip and test_zimport are not
completely safe when zlib module is not available.
I've uploaded a patch on Rietveld which solves the issue here:
http://codereview.appspot.com/111041
Those are my first steps with Rie
New submission from Nicolas Dumazet :
README shows http://www.python.org/community/lists.html as an URL for
mailing list details, but it should be
http://www.python.org/community/lists/
Attaching a patch.
--
assignee: georg.brandl
components: Documentation
files: readme-url-mls.patch
New submission from Nicolas Dumazet :
I had a bad time understanding what happens in Mac OS X after a shutdown
call: after calling shutdown(SH_WR) on side A, a corresponding
shutdown(SH_RD) on side B would raise a socket.error: socket is not
connected.
It is quite surprising when you are used to
Nicolas Dumazet added the comment:
I'm including a patch which replaces send by sendall in the examples in
both socket and socketserver.
--
keywords: +patch
nosy: +nicdumz
Added file: http://bugs.python.org/file14776/socket.patch
___
Python tr
New submission from Nicolas Goutte :
In the documentation for csv.writer, the example
spamWriter = csv.writer(open('eggs.csv', 'w'), delimiter=' ',
quotechar='|', quoting=QUOTE_MINIMAL)
does not work, as Python complains about "SyntaxError: inva
Nicolas Dumazet added the comment:
It seems that the fix is still not perfect.
At the moment ( r73906 ), if you try to build trunk using Python 2.6,
you get:
> python setup.py build
running build
running build_ext
Traceback (most recent call last):
File "setup.py", line 1901,
New submission from Nicolas Frantzen :
Hi,
I'm pretty new to the community but I get an error using the minidom
parseString() method. Here is my code (ulta simple!):
import xml.dom.minidom
xml = "hello"
doc = xml.dom.minidom.parsString(xml)
And here is my error trace:
Traceba
New submission from Nicolas Dumazet :
Hello!
gc.set_debug is provided to help debugging a leaking program. That tool
can be very useful indeed.
Debugging information, however, is written to sys.stderr, and there are
cases where this behavior can be a problem: chances are that stderr can
be
Changes by Nicolas Dumazet :
--
nosy: +nicdumz
___
Python tracker
<http://bugs.python.org/issue5154>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Nicolas Goutte :
In http://docs.python.org/library/functions.html#print the print function
is documented to have a parameter named end with a default 'n'. However
the default should be '\n' as documented in Python 3 (
http://docs.python.org/3.0/library/
Changes by Nicolas Grilly <[EMAIL PROTECTED]>:
--
nosy: +ngrilly
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3006>
___
__
Nicolas Grilly <[EMAIL PROTECTED]> added the comment:
It seems using protocol version 2 is not enough:
>>> s = pickle.dumps(partial_f, 2)
>>> f = pickle.loads(s)
Traceback (most recent call last):
...
TypeError: type 'partial' takes at least on
Nicolas Lécureuil added the comment:
is there a fix applied on mandriva python :
--- (empty file)
+++ cooker/python/current/SOURCES/python-2.5.1-detect-mandriva.patch
Sat Mar 8 03:22:50 2008
@@ -0,0 +1,10 @@
+--- Lib/platform.py.old2007-10-05 20:17:15.0 +0800
Lib
New submission from Nicolas Lécureuil:
here is a patch fixing the issue by changing mandrake to mandriva
--
components: Library (Lib)
files: python-2.5-change-mandrake.patch
keywords: patch
messages: 63370
nosy: neoclust
severity: normal
status: open
title: Change Mandrake by Mandriva
script: (to extend c++ in python)
filename: stpwsusr.py CANT BE
"wsusr.py"!!!
its bad,because everybody usally name the files
like the program/module.
source:
/*/
from distutils.core import setup, Extension
mylib_dirs=['/home/dev/Wi
82 matches
Mail list logo