Peter McCormick added the comment:
This definitely works for the _socket.listen use case!
In terms of generating such a signature using Argument Clinic, currently this
is required:
backlog: int(py_default=builtins.min(SOMAXCONN, 128),
c_default=Py_MIN(SOMAXCONN, 128)) = 000
The
Peter McCormick added the comment:
I missed the fact that Larry's patch obviates the need for the `builtins.`
prefix, shortening the Argument Clinic parameter specification into:
backlog: int(py_default=min(SOMAXCONN, 128), c_default=Py_MIN(SOMAXCONN,
128))
--
paul j3 added the comment:
It'll take me a while to work through this proposed patch. My first reaction
is that I am uncomfortable with adding an attribute to all parsers just to
implement this help feature. For one thing it seems to cross functionality
boundaries.
I need to review how
Terry J. Reedy added the comment:
Pending application of a patch, the following will work to only add args to
sys.argv when running from an Idle editor.
import sys
# ...
if __name__ == '__main__':
if 'idlelib.PyShell' in sys.modules:
sys.argv.extend(('a', '-2')) # add your
Serhiy Storchaka added the comment:
Thank you for your review Larry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20175
___
___
Changes by lilydjwg lilyd...@gmail.com:
--
nosy: +lilydjwg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
___
Python-bugs-list mailing
Roundup Robot added the comment:
New changeset 2d8e4047c270 by Serhiy Storchaka in branch '3.4':
Backported tests from issue #20175.
https://hg.python.org/cpython/rev/2d8e4047c270
New changeset 867c509c8c5e by Serhiy Storchaka in branch '2.7':
Backported tests from issue #20175.
Changes by Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de:
--
nosy: +wolma
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5680
___
___
Roundup Robot added the comment:
New changeset 49007ed1a1a5 by Serhiy Storchaka in branch 'default':
Issue #20175: Converted the _io module to Argument Clinic.
https://hg.python.org/cpython/rev/49007ed1a1a5
--
nosy: +python-dev
___
Python tracker
New submission from Boris FELD:
I'm trying to create some UDP sockets for doing multicast communication. I have
the working code in synchronous way and try to port it to asyncio.
One last issue is blocking for me, I'm on Mac OS X and for multicast UDP to
work, the SO_REUSEPORT must be set on
Marc-Andre Lemburg added the comment:
We do some monkey-patching on MSVCCompiler as well, but mostly because
distutils doesn't define a good way to subclass or configure a compiler class.
IMO, monkey patching is a really bad idea. distutils should be evolved to
provide more proper extension
Marc-Andre Lemburg added the comment:
I'm not sure I like the way the simple idea Antoine has now resulted in a
complete mess across platforms.
None of this is documented anywhere except on this ticket.
Since the change is a major one for anyone creating installers, packagers or
otherwise
Paul Moore added the comment:
Sounds fair enough to me. I guess you have most of the bases covered, and
AFAIK, we've never actually supported building extensions with anything other
than the compiler python.org uses, so that seems a reasonable view to take.
Apart from the numpy/scipy guys,
Paul Moore added the comment:
Hmm, I thought everyone was too scared to change distutils. Brave man :-)
More seriously, I'm not sure I can comment usefully, I don't really understand
any of this code, and the changes are pretty big. I guess the biggest risk is
that someone directly references
ha034 added the comment:
Hey guys,
Just add:
if os.path.exists('/etc/arch-release'):
distname = 'arch'
in _dist_try_harder
then replace the old list with this one:
_supported_dists = (
'SuSE', 'debian', 'fedora', 'redhat', 'centos',
'mandrake', 'mandriva', 'rocks',
Steve Dower added the comment:
Numpy uses a fork of distutils anyway, and currently nobody builds against 3.5
because of the compiler change. There are all sorts of monkey patches out there
against this module and msvc9compiler (I've written some) and those should be
unnecessary now, so I
Steve Dower added the comment:
Is there a way for those users to specify the version that they want? I can
flow that through from somewhere, and honestly the compiler arguments have not
changed in a long time. The problem is detecting an installation.
I have formalized the DISTUTILS_USE_SDK
Guido van Rossum added the comment:
I think we left this unfinished. I think it would be best if we added a sock
parameter (like for create_server()) but also added reuse_address and
reuse_port parameters, treated similarly like the one on create_server(), and
added a reuse_port parameter to
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23970
___
___
Michael McFadden added the comment:
@Christie - Nope. This patch can stand on it's own, simply moving the
package to where it belongs.
In fact, I'd recommend applying the patch first.
--
___
Python tracker rep...@bugs.python.org
Peter McCormick added the comment:
The smallest of typo fixes.
--
Added file: http://bugs.python.org/file39068/pdm-iofile_typo-v1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20175
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - not a bug
stage: - resolved
status: open - closed
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17831
Raúl Cumplido added the comment:
Added new patch as per review comments.
--
Added file: http://bugs.python.org/file39069/21327.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21327
___
Howard Haimovitch added the comment:
tested with David:
two tests were made one using IE and the other using Firefox.
Both were treated properly by the URL.lib library.
Browsers do not preserve the backslash character. IE turns it into a forward
slash and Firefox turns it into %5c. So urlliv is
Changes by Raúl Cumplido raulcumpl...@gmail.com:
--
nosy: +raulcd
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21250
___
___
Python-bugs-list
Marc-Andre Lemburg added the comment:
On 16.04.2015 18:12, Nick Coghlan wrote:
I can tell you exactly where these files need to live side by side: index
servers. We currently paper over it on PyPI for Windows and Mac OS X by
leveraging the implicitly defined ABI compatibility of the
R. David Murray added the comment:
Thanks, Michael.
--
resolution: - fixed
stage: - resolved
status: open - closed
type: - behavior
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18128
Roundup Robot added the comment:
New changeset c969413584cf by R David Murray in branch 'default':
#18128: use standard + timezone format in POT-Creation-Date header.
https://hg.python.org/cpython/rev/c969413584cf
--
nosy: +python-dev
___
Python
Matthias Klose added the comment:
Nick filed issue #23966 to document these changes. Yes, these tags should be
documented, so that installers don't have to guess (currently they are only
exposed in importlib.machinery.EXTENSION_SUFFIXES.
What you describe as a simple idea is just another
Nick Coghlan added the comment:
Capturing some additional notes regarding the purpose of multiarch platform
triplets. These triplets should unambiguously capture:
* syscall ABI (~= kernel)
* instruction set (IA-32, IA-64, PowerPC, ARM, ARM64, etc)
* endianness (big- or little-
* word size
Serhiy Storchaka added the comment:
The patch updated to the tip.
--
Added file: http://bugs.python.org/file39070/dbm_clinic_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20184
___
Serhiy Storchaka added the comment:
The patch updated to the tip.
--
Added file: http://bugs.python.org/file39071/codecs_clinic_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20173
Marc-Andre Lemburg added the comment:
On 16.04.2015 17:30, Matthias Klose wrote:
Matthias Klose added the comment:
Nick filed issue #23966 to document these changes. Yes, these tags should be
documented, so that installers don't have to guess (currently they are only
exposed in
Nick Coghlan added the comment:
I can tell you exactly where these files need to live side by side: index
servers. We currently paper over it on PyPI for Windows and Mac OS X by
leveraging the implicitly defined ABI compatibility of the CPython binary
releases published on python.org, but
Serhiy Storchaka added the comment:
The patch updated to the tip.
--
Added file: http://bugs.python.org/file39072/ssl_clinic_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20179
___
Matthias Klose added the comment:
On 04/16/2015 05:56 PM, Marc-Andre Lemburg wrote:
Marc-Andre Lemburg added the comment:
On 16.04.2015 17:30, Matthias Klose wrote:
Matthias Klose added the comment:
Nick filed issue #23966 to document these changes. Yes, these tags should be
Berker Peksag added the comment:
Alternatively, you can import public functions from support/script_helper.py in
support/__init__.py.
Then you can do
from test.support import assert_python_ok
--
nosy: +berker.peksag
stage: needs patch - patch review
versions: +Python 3.5 -Python
Nick Coghlan added the comment:
I think the convert to str - process as str - convert back to bytes approach
is a good one - it's the same one we use in urllib.parse.
In this case, since we explicit need to handle mixed encodings, I also agree
with the idea of using surrogate escape to make
Vova added the comment:
I don't know why I hardcoded version of HTTP, it was almost 6 months ago. Maybe
because it just POC, or maybe because HTTP 1.0 is not allowed CONNECT method.
Thank you for your patch and also for IDN support.
--
___
Python
Berker Peksag added the comment:
Reviewing iss9517_move_script_helpers_py.patch:
* Can you move script_helper.py by using hg mv?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9517
___
Changes by David Watson bai...@users.sourceforge.net:
--
nosy: +baikie
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22397
___
___
Maciej Szulik added the comment:
After talking to David I'm submitting the patch once again with one slight
change in ACKS file (I've put the names in the sorted order).
--
Added file: http://bugs.python.org/file39073/issue16914.patch
___
Python
Christie added the comment:
So @flipmcf we're sticking with the test.support.script_helper namespace?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9517
___
Antti Haapala added the comment:
I am the current maintainer of python-Levenshtein package on PyPI/Github, but I
wrote about 0 % of the functionality; almost everything excepting bug fixes and
Python 3 compatibility was written by the original author David Necas and
possibly contributors; now
Marc-Andre Lemburg added the comment:
On 16.04.2015 18:53, Matthias Klose wrote:
I'm disappointed that you discredit any other use case besides what you think
as
the typical use case as not real life use case. Maybe you are focused on x86
only, but if you've been to PyCon 2014, you should
David Watson added the comment:
Sending multiple control messages at once isn't Linux-specific - the tests in
question passed on FreeBSD.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20669
Marc-Andre Lemburg added the comment:
On 16.04.2015 15:18, Steve Dower wrote:
Is there a way for those users to specify the version that they want?
Indirectly, yes. There's the build_ext --compiler argument which then
interfaces to ccompiler.new_compiler. In essence, you can specify
the
Joel Taddei added the comment:
I took a stab at the calendar module. Found a few items in the documentation
which weren't listed in the above list:
LocaleTextCalendar, LocaleHTMLCalendar, and weekheader.
I was curious though about week and prweek as month and prmonth are documented
and
Changes by Peter McCormick pe...@pdmccormick.com:
--
nosy: +pdmccormick
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20175
___
___
Éric Araujo added the comment:
Again, if PyPI can display both pieces of information, then it will be okay to
send both. The change should not break third-party indexes like devpi-server.
Is there a PyPI ticket for this?
--
___
Python tracker
Donald Stufft added the comment:
Perhaps you can point me to some use cases where the triple
platform tag is really useful.
If I understand correctly (and ABI isn't my strong suite), it would be useful
in the sense that you could utilize it to create a sort of fat wheel that
included the
Ned Deily added the comment:
Antoine's ticket is the first in two decades to request being
able to install .so extension files side-by-side, so even if
times and platforms change, people don't seem to have a big
issues without this feature.
That's exactly what PEP 3149 was supposed to
Marc-Andre Lemburg added the comment:
On 16.04.2015 19:44, Donald Stufft wrote:
Donald Stufft added the comment:
Perhaps you can point me to some use cases where the triple
platform tag is really useful.
If I understand correctly (and ABI isn't my strong suite), it would be useful
in
David Watson added the comment:
In this test (and nearby ones), the receiver provides too little space to
receive the file descriptors that are sent, so that the control message has to
be truncated if it is to be received at all. The warning may indicate that the
cmsghdr struct received
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23970
___
___
Donald Stufft added the comment:
PyPI should already handle it fine, and Warehouse certainly does.
--
nosy: +dstufft
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16108
___
Marc-Andre Lemburg added the comment:
On 16.04.2015 19:14, Marc-Andre Lemburg wrote:
However, for plain .so files that you have on your system (which will
mostly like not support more than 2-4 different architecture configurations
running at the same time), I don't currently see a need to
Marc-Andre Lemburg added the comment:
On 16.04.2015 19:47, Ned Deily wrote:
Ned Deily added the comment:
Antoine's ticket is the first in two decades to request being
able to install .so extension files side-by-side, so even if
times and platforms change, people don't seem to have a big
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +mark.dickinson, rhettinger, serhiy.storchaka
stage: - needs patch
type: - security
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23974
R. David Murray added the comment:
Review comments added.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16914
___
___
Python-bugs-list mailing
Roundup Robot added the comment:
New changeset 1b9e81cb83bc by R David Murray in branch 'default':
#7159: generalize urllib prior auth support.
https://hg.python.org/cpython/rev/1b9e81cb83bc
--
nosy: +python-dev
___
Python tracker
Changes by Ned Deily n...@acm.org:
--
nosy: +steve.dower, zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5497
___
___
Python-bugs-list
Stéphane Wirtel added the comment:
Based on the patch of Łukasz, I have updated it to the last revision of Python
3.5a3 (today, 16th April)
stephane@sg1 ~/p/c/bin ./python3.5 --version
Python 3.5.0a3+
stephane@sg1 ~/p/c/bin ./python3.5
Python 3.5.0a3+ (default:c969413584cf+, Apr 16 2015,
New submission from Wolfgang Maier:
numbers.Rational defines __float__ like this:
def __float__(self):
float(self) = self.numerator / self.denominator
It's important that this conversion use the integer's true
division rather than casting one side to float before dividing
so
Roundup Robot added the comment:
New changeset 1b9e81cb83bc by R David Murray in branch 'default':
#7159: generalize urllib prior auth support.
https://hg.python.org/cpython/rev/1b9e81cb83bc
--
___
Python tracker rep...@bugs.python.org
New submission from D. Alphus:
When ZipFile.writestr is called with arcname as its first parameter, it creates
a ZipInfo object that has 0o0600 16 as its external_attr. Files created with
write generally have 0o0100600 (S_IFREG is set indicating a regular file). Some
archive managers (like
R. David Murray added the comment:
Since the direction we are heading seems to toward deprecating
linux_distribution (see http://bugs.python.org/issue1322#msg207427), I think
this issue should be closed.
--
nosy: +r.david.murray
___
Python tracker
R. David Murray added the comment:
Here is the doc patch for the design that Akshit and I agreed to after
re-consideration of the API. This eliminates the HTTPBasicPriorAuthHandler in
favor of the HTTPPasswdMgrWithPriorAuth password manager and putting support
for prior auth on the
Martin v. Löwis added the comment:
I think the approach taken in this script is incorrect. It leads to false
modifications of the stable ABI, making it in fact unstable. Four examples:
PyAST_FromNode does not belong to the stable ABI, because struct _node
doesn't belong to the stable ABI (see
Stéphane Wirtel added the comment:
what's the status of this issue? about SSL and Python on Windows for the
builder script.
--
nosy: +matrixise
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5497
Brett Cannon added the comment:
Patch LGTM.
--
stage: - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20769
___
___
Roundup Robot added the comment:
New changeset 65037930edb0 by R David Murray in branch 'default':
#16914: add timestamps to smtplib debugging output via new debuglevel 2.
https://hg.python.org/cpython/rev/65037930edb0
--
nosy: +python-dev
___
Python
Roundup Robot added the comment:
New changeset de19c0ffe8d5 by R David Murray in branch 'default':
News item for #16914.
https://hg.python.org/cpython/rev/de19c0ffe8d5
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16914
Akshit Khurana added the comment:
Updated code as per docs
--
Added file: http://bugs.python.org/file39075/auth11.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7159
___
R. David Murray added the comment:
Actually attaching the patch this time.
--
Added file: http://bugs.python.org/file39074/prior_auth_docs.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7159
Maciej Szulik added the comment:
Review comments addressed in latest patch.
--
Added file: http://bugs.python.org/file39077/issue16914.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16914
Marc-Andre Lemburg added the comment:
On 16.04.2015 20:17, Donald Stufft wrote:
Donald Stufft added the comment:
Well, it's even more wasteful if you have to download 100MB wheels
with all the different platforms when the dedicated wheel would just
need 1.5MB.
I think it's going to
New submission from Christopher Gurnee:
Due to an optimization in random.randrange() only in Python 2, as the
stop-start range approaches 2^53 the output becomes noticeably biased. This bug
also affects random.SystemRandom.
For example, counting the number of even ints in a set of 10^6 random
R. David Murray added the comment:
Thanks Gavin and Maciej. I can tell it is the end of the sprints...my brain is
fuzzy and I forgot both the news item and missed the missing versionchanged
when I reviewed
--
resolution: - fixed
stage: patch review - resolved
status: open -
Skip Montanaro added the comment:
I'm completely unqualified to offer a concrete, expert opinion here, but it
seems like defaulting _maxwidth to 1L52 should work. I have no idea of the
resulting performance implications though.
for bpf in (45, 46, 47, 48, 49, 50, 51, 52, 53):
... print
Christopher Gurnee added the comment:
I shouldn't have called this a rounding error issue, that's not really what it
is.
A smaller example might help.
If I'm given a random int, x, in the range [0, 12), and asked to produce from
it a random int, y, in the range (0,8], I've got (at least?)
R. David Murray added the comment:
The commit just made re-engineers the new API to generalize it. Now we can
fully support the MAY preemptively send part of the rfc, even when doing the
normal 401 dance for the first request. This is accomplished through a new
password manager instead of a
Roundup Robot added the comment:
New changeset 724473a18ada by R David Murray in branch 'default':
#16914: reflow paragraph and add missing versionchanged.
https://hg.python.org/cpython/rev/724473a18ada
--
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
Martin, if you think the patch is complete and ready to commit, please change
the stage to commit review. I'm trying to encourage core devs to look at the
patches in commit review state and commit them :)
--
nosy: +r.david.murray
Steve Dower added the comment:
So it looks like what I should do is use the include_dirs and library_dirs
members from CCompiler so they can be set through other properties.
The extra arguments are passed into compile() as extra_preargs and
extra_postargs, though I'm not entirely sure where
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22980
___
___
Python-bugs-list
Steve Dower added the comment:
That would be the preferred way to do it, but we got no traction from anyone at
PyCon or on python-dev when we tried to get people to look at what's changed.
I suspect we haven't marketed the stable API well enough to have a lot of
users, and the build tools
Changes by Akshit Khurana axitkhur...@gmail.com:
--
nosy: +axitkhurana
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19494
___
___
Marc-Andre Lemburg added the comment:
On 16.04.2015 20:21, Ned Deily wrote:
Ned Deily added the comment:
No, PEP 3149 is about the Python ABI, following PEP 3147,
which implements this for PYC files.
The intent is to be able to have mutliple *Python* ABI/API versions
installed
Marc-Andre Lemburg added the comment:
On 17.04.2015 00:51, Donald Stufft wrote:
Since you need special support for such ZIP files (either using dlopen
hacks or temporarily extracting them), you might as well deal with
the platform dependencies in that handler. No need to force the
platform
Greg Ward added the comment:
Just uploaded https://bugs.python.org/file39083/fa4c6160c518.diff. Pretty sure
I've addressed all of @berker.peksag's review comments: thanks for that!
I also fixed a number of subtle bugs in the tests. Pro tip: when asserting that
something raises TypeError,
Berker Peksag added the comment:
Thanks, looks great. Two trivial comments about the documentation:
* Needs ``.. versionadded:: 3.5``
* *dfunc(a, b, fromfile, tofile, fromfiledate, tofiledate, n, lineterm)* -
``dfunc(a, b, fromfile, tofile, fromfiledate, tofiledate, n, lineterm)``
--
Alex Lord added the comment:
Any follow up on this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18262
___
___
Python-bugs-list mailing list
Changes by Ned Deily n...@acm.org:
--
nosy: +alanmcintyre, serhiy.storchaka, twouters
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18262
___
___
Terry J. Reedy added the comment:
Although the text is aimed at people writing tests, I agree with starting with
a new short section 0. Running all Idle tests. The sentence already there is
specific to automated unittests. There is also a separate human-mediated test
system run with python
New submission from bjonnh:
in
https://docs.python.org/3.5/howto/descriptor.html#static-methods-and-class-methods
(same problem in all python 3.x documentations)
There is this example where the return of f function is printed and there is
already a print in the function:
class E(object):
Larry Hastings added the comment:
One more idea. We annotate with an when you pass in a pointer to a variable.
So format unit 'i' would get [ int], 's' would get [ char *], and 'es#'
would get [char *, char *, int].
--
___
Python tracker
Changes by Ned Deily n...@acm.org:
--
nosy: +rhettinger
versions: +Python 2.7 -Python 3.2, Python 3.3, Python 3.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23984
___
Changes by Ned Deily n...@acm.org:
--
stage: needs patch - patch review
versions: +Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18262
___
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:
--
nosy: +piotr.dobrogost
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22269
___
___
1 - 100 of 133 matches
Mail list logo