New submission from STINNER Victor:
According to the issue #23618, when connect() fails with EINTR, retrying
connect() may only work on some platforms. To have a reliable behaviour on all
platforms, we should wait until the socket becomes writable because the
connection runs asynchronously in
New submission from Serhiy Storchaka:
getint, getdouble and getboolean were thin wrappers around Tcl functions that
converted string result of Tcl call to specified Python type. Since 2.3
_tkinter can return not only string, but int, float, etc and Tcl_Obj (if
wantobject is True). getXXX
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23880
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - out of date
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15227
___
Robert Kuska added the comment:
Le 06/04/2015 13:29, Nick Coghlan a écrit :
So while this isn't a feature upstream itself needs, it's one
potentially needed by multiple *downstreams*, so in my view it makes
sense for us to work with upstream to come up with the one obvious way
for
STINNER Victor added the comment:
(2) ftp://ftp.mirror.nl/pub/gnu/
DNS resolution:
$ host ftp.mirror.nl
ftp.mirror.nl is an alias for download.xs4all.nl.
download.xs4all.nl is an alias for dl.xs4all.nl.
dl.xs4all.nl has address 194.109.21.66
dl.xs4all.nl has IPv6 address
Changes by Neil Girdhar mistersh...@gmail.com:
Added file: http://bugs.python.org/file38856/starunpack40.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2292
___
New submission from STINNER Victor:
test_urllib2net uses multiple public FTP servers. Since yesterday, there are
issues with 2 FTP servers:
(1)
ftp://gatekeeper.research.compaq.com/pub/DEC/SRC/research-reports/00README-Legal-Rules-Regs
= DNS server error
$ host gatekeeper.research.compaq.com
Roundup Robot added the comment:
New changeset 69d4e199b88e by Victor Stinner in branch '2.7':
Issue #23881: urllib.ftpwrapper constructor now closes the socket if the FTP
https://hg.python.org/cpython/rev/69d4e199b88e
New changeset 7b168db16e67 by Victor Stinner in branch '3.4':
Issue #23881:
Roundup Robot added the comment:
New changeset 40ddcd785f7b by Victor Stinner in branch '3.4':
Issue #23881: ftp://gatekeeper.research.compaq.com/ and ftp://ftp.debian.org/
https://hg.python.org/cpython/rev/40ddcd785f7b
New changeset 225be6be3893 by Victor Stinner in branch '2.7':
ssue #23881:
STINNER Victor added the comment:
Python 2.7 used ftp://ftp.kernel.org/pub/linux/kernel/README whereas Python
3.4/3.6 uses ftp://ftp.debian.org/debian/README.
Right now, ftp://ftp.kernel.org/pub/linux/kernel/README doesn't respond. So I
also modified Python 2.7 to uses ftp.debian.org as
Changes by STINNER Victor victor.stin...@gmail.com:
--
components: +Tests
versions: +Python 2.7, Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23881
___
STINNER Victor added the comment:
For ftp.kernel.org, it may be related to a FS data corruption bug:
2015-02-03: FTP limited on mirrors.kernel.org
https://www.kernel.org/ftp-limited-on-mirrorskernelorg.html
We've had to temporarily limit FTP access to mirrors.kernel.org due to high IO
load.
STINNER Victor added the comment:
$ host gatekeeper.research.compaq.com 212.27.40.240
Host gatekeeper.research.compaq.com not found: 2(SERVFAIL)
What happened to gatekeeper.dec.com?
http://gatekeeper.dec.com/what-happened-to-gatekeeper.html
Maybe we should use ftp://apotheca.hpl.hp.com/
New submission from Florian Apolloner:
Unittest discovery does not seem to work if the tests package is a namespace
package. The attached file should have all details to reproduce, as soon as I
readd an __init__.py everything works fine.
Test was done using python3.4.2 and 3.4.3
--
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, michael.foord, rbcollins
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23882
___
Martin Panter added the comment:
IMO the two documented exceptions should definitely be added to __all__.
Not so sure, but list2cmdline() should probably be left out, with a comment
explaining the decision. It is not mentioned in the main documentation that I
can find, but it is mentioned in
Alex Shkop added the comment:
This patch adds new line symbol. For some reason py_compile module prints only
SyntaxErrors with traceback. All other exceptions are printed with Sorry: and
in one line.
--
keywords: +patch
nosy: +ashkop
Added file:
R. David Murray added the comment:
I believe it is and should remain internal. I agree that the mention should be
deleted from the docstring. We removed it from the docs a while back but I
guess we forgot the docstring.
(If there were an external API for doing what list2cmdline does, it
STINNER Victor added the comment:
test_urllib2net looks to pass on enough buildbots, I close the issue.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23881
Martin Panter added the comment:
FYI I posted a patch at Issue 22852 to retain the empty netloc “//” when
appropriate. But even if there is interest in that patch, I guess it can still
only be applied to the next version of Python (3.5 or whatever), being a new
feature.
Maybe you could
STINNER Victor added the comment:
I only saw the issue once, I close the bug.
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23772
___
R. David Murray added the comment:
I believe the original objection was that it made it too easy to globally (and
in a not-obvious-to-the-end-user way) disable validation. That argument seems
to apply equally well to the proposed patch, so an environment var at least
isn't worse; but it does
Cyd Haselton added the comment:
Will do, re: removing the '+'.
Also, attempted to apply the updated patch and got the following:
/bld/python/cpython-master $ patch -p1 issue_20306\ \(1\).patch
patching file Modules/pwdmodule.c
Possibly reversed hunk 1 at 244
Hunk 1 FAILED 79/79.
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23882
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 81ce9d412a4c by Benjamin Peterson in branch '3.4':
remove smtpd dead code (closes #23873)
https://hg.python.org/cpython/rev/81ce9d412a4c
New changeset ea21b99d002e by Benjamin Peterson in branch 'default':
merge 3.4 (#23873)
Antoine Pitrou added the comment:
Environment variables are hidden state. It makes them rather dangerous from a
security POV (even more so than a root-modifiable configuration file, since it
is less well-defined who can set an environment variable that will be inherited
by some process).
As
Guido van Rossum added the comment:
LGTM.
On Apr 7, 2015 1:23 AM, STINNER Victor rep...@bugs.python.org wrote:
New submission from STINNER Victor:
According to the issue #23618, when connect() fails with EINTR, retrying
connect() may only work on some platforms. To have a reliable
Roundup Robot added the comment:
New changeset a48e76252952 by Serhiy Storchaka in branch 'default':
Issue #23411: Added DefragResult, ParseResult, SplitResult, DefragResultBytes,
https://hg.python.org/cpython/rev/a48e76252952
--
nosy: +python-dev
New submission from Serhiy Storchaka:
Here is a (perhaps incomplete) list of documented names absent in __all__ lists
of respective modules. Perhaps some of them (but not all) are worth to be added
to __all__ lists.
calendar.Calendar
calendar.HTMLCalendar
calendar.TextCalendar
cgi.test
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +subprocess __all__ is incomplete
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23883
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23411
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
versions: -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23411
___
Cyd Haselton added the comment:
Update: Removing the random '+' on line 87 of pwdmodule.c allowed the build to
continue but it failed again with the following during or soon after linking:
Objects/unicodeobject.o: In function `PyUnicode_EncodeLocale':
Serhiy Storchaka added the comment:
0. It seems that this pushes conversions from python code (app.py,
tkinter.py) to C (_tkinter.py). Correct? What is being gained from a user
viewpoint?
The benefit is that widget.tk.getint(widget.tk.call(...)) (and
widget.getint(widget.call(...)))
Steve Dougherty added the comment:
Any word on either changing the documentation to match the behaviour or fixing
this as a bug?
--
nosy: +sdougherty
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11205
New submission from Peter Marsh:
Hello,
Reasonably frequently I find myself needing to pass a date as a command line
argument to a Python script I've written. Currently, argparse does not have a
built support for dates - this adds a new class to argparse (much like the
existing FileType)
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - out of date
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6650
___
Changes by SilentGhost ghost@gmail.com:
--
nosy: +bethard
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23884
___
___
Python-bugs-list mailing
Terry J. Reedy added the comment:
I don't quite understand this, but I think I should. Here are preliminary
questions.
0. It seems that this pushes conversions from python code (app.py, tkinter.py)
to C (_tkinter.py). Correct? What is being gained from a user viewpoint?
1. getint,
Roundup Robot added the comment:
New changeset eca51493c770 by Victor Stinner in branch '3.4':
Issue #23879, asyncio: SelectorEventLoop.sock_connect() must not call connect()
https://hg.python.org/cpython/rev/eca51493c770
--
nosy: +python-dev
___
STINNER Victor added the comment:
LGTM.
Thanks for the review.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23879
___
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: +paul.j3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23884
___
___
Python-bugs-list
Guido van Rossum added the comment:
This needs a code patch. But it can only be fixed for 3.5.
On Apr 7, 2015 11:21 AM, Steve Dougherty rep...@bugs.python.org wrote:
Steve Dougherty added the comment:
Any word on either changing the documentation to match the behaviour or
fixing this as a
STINNER Victor added the comment:
More complete (and working) patch. Most unit tests pass, but two unit tests
must be updated to match the new error message.
--
Added file: http://bugs.python.org/file38860/faulthandler_exc_handler-2.patch
___
Python
STINNER Victor added the comment:
test_expr_bignum() should tolerate the long type:
http://buildbot.python.org/all/builders/x86%20Tiger%202.7/builds/3007/steps/test/logs/stdio
==
FAIL: test_expr_bignum (test.test_tcl.TclTest)
Serhiy Storchaka added the comment:
It is important that the result is an int at least for small ints. So I prefer
to keep limited test.
-self.assertIsInstance(result, type(int(result)))
+if abs(result) 2**31:
+self.assertIsInstance(result, int)
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, orsenthil
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23885
___
Gregory P. Smith added the comment:
i'm moving this to the more recent issue as i like the patch in that one better.
--
superseder: - Fix EINTR Socket Module issues in 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20611
paul j3 added the comment:
It's a possible addition, but I don't have sense of the demand for it.
I wonder, what does the class offer that a function like this doesn't?
def adate(date_string):
return datetime.datetime.strptime(date_string,'%Y-%m-%d').date()
I'd be hesitant to add
Martin Panter added the comment:
http.client.HTTPMessage: See Issue 23439. There was resistance to adding this
(and the status code constants), though IMO they should be added, since they
are documented public APIs.
http.server.test(): In Issue 23418, I consciously left this function out. It
Changes by Gregory P. Smith g...@krypto.org:
--
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20611
___
New submission from Marcin Kościelnicki:
All hell breaks loose when unicode is passed as the second argument to
urllib.quote in Python 2:
import urllib
urllib.quote('\xce\x91', u'')
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/python2.7/urllib.py, line
Gregory P. Smith added the comment:
I like the socketmodule.c part of socket_eintr.1.patch, but it appears to still
have the issue haypo describes in https://bugs.python.org/issue20611#msg240194
where connect() cannot be called more than once. The kernel carries on with
the connect without
R. David Murray added the comment:
Yes, I think this is a case where it is better for the application to define
exactly what it needs rather than try to define a general solution that won't
satisfy everyone :)
FileType's purpose is actually, I think, to give you an *open* file. Which is
Roundup Robot added the comment:
New changeset 10b0a8076be8 by Gregory P. Smith in branch 'default':
Addresses Issue #10838: The subprocess now module includes
https://hg.python.org/cpython/rev/10b0a8076be8
--
nosy: +python-dev
___
Python tracker
paul j3 added the comment:
Examples of datetime types from Stackoverflow:
http://stackoverflow.com/questions/21437258/defining-python-argparse-arguments
The suggested answer (but not accepted) is 'type=lambda s:
datetime.datetime.strptime(s, '%Y-%m-%d')'
another
Paul McMillan added the comment:
As Martin said, backporting a change for this wouldn't be appropriate
for Python 2.7. The 2.7 docs could certainly be updated to make this
clearer, but we can't introduce a breaking change like that to the
stable release.
--
Changes by Gregory P. Smith g...@krypto.org:
--
assignee: - gregory.p.smith
keywords: +needs review
stage: - patch review
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23863
Gregory P. Smith added the comment:
the things left to to before closing this are to rename mswindows and MAXFD as
those shouldn't be exported... and to wait for the windows buildbots to tell me
if i missed adding anything to the intentionally_excluded list in the unittest.
--
R. David Murray added the comment:
The typerror isn't going to happen for backward compatibility reasons. A fix
isn't likely to happen because python2 doesn't really support unicode in
urllib, to my understanding (if I'm wrong about that the answser changes). I'm
not sure whether casting to
Gregory P. Smith added the comment:
Done. MAXFD was already gone in 3.5 (yay).
--
assignee: - gregory.p.smith
resolution: - fixed
stage: needs patch - commit review
status: open - closed
type: - behavior
versions: +Python 3.2 -Python 3.5
___
Roundup Robot added the comment:
New changeset 4c14afc3f931 by Gregory P. Smith in branch 'default':
issue10838: Rename the subprocess.mswindows internal global to _mswindows.
https://hg.python.org/cpython/rev/4c14afc3f931
--
___
Python tracker
James Tocknell added the comment:
Here's a patch for 2.7 (based of the head of the 2.7 branch), something similar
could be done for 3.4 (I wasn't sure what branch I was supposed to base the
patch off, since 3.4 is inactive). The string requirement was already noted in
the docstring of the
R. David Murray added the comment:
Unfortunately no, that would be a new feature and so can't go into 2.7. Maybe
someone could backport the work that has been done in this area so people could
patch locally, but I don't think it is a small job and I'm pretty sure no one
on the core team is
Martin Panter added the comment:
The change to aifc shouldn’t be needed, unless the underlying file object’s
close() is not idempotent. And if that is the case, you’re fixing the bug in
the wrong place :)
Most of the other changes look good from a rough review, though I was only
familiar
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12808
___
___
Python-bugs-list
Raymond Hettinger added the comment:
Closing as not-a-bug. It seems that the __del__ method in requests needs to
make one of the adjustments suggested by Antoine.
--
priority: high - normal
resolution: - not a bug
status: open - closed
___
Python
Martin Panter added the comment:
Sounds like this might be more appropriate for the BufferedReader and related
classes, and less so for the writer and abstract base class.
The proposed API seems strange to me. Is there an illustration of how it might
be used? I suspect it wouldn’t be all that
Steve added the comment:
Hi,
This issue is causing my organization problems. We are using python 2.7.9 with
pyodbc 3.0.7
The application DB is SQL Server and they have started using Datetime2 (see:
https://msdn.microsoft.com/en-us/library/bb677335.aspx?f=255MSPPError=-2147217396)
They did
William Woodall added the comment:
I was getting the same error as the OP in my application.
I did something like this to work around the problem:
import asyncio
import atexit
def close_asyncio_loop():
loop = None
try:
loop = asyncio.get_event_loop()
except AttributeError:
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: commit review - resolved
versions: +Python 3.5 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10838
___
72 matches
Mail list logo