[issue23967] Make inspect.signature expression evaluation more powerful

2015-04-16 Thread Peter McCormick
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

[issue23967] Make inspect.signature expression evaluation more powerful

2015-04-16 Thread Peter McCormick
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)) --

[issue22848] Subparser help does not respect SUPPRESS argument

2015-04-16 Thread paul j3
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

[issue5680] Command-line arguments when running in IDLE

2015-04-16 Thread Terry J. Reedy
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

[issue20175] Derby #6: Convert 50 sites to Argument Clinic across 8 files

2015-04-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Larry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20175 ___ ___

[issue1602] windows console doesn't print or input Unicode

2015-04-16 Thread lilydjwg
Changes by lilydjwg lilyd...@gmail.com: -- nosy: +lilydjwg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list mailing

[issue20175] Derby #6: Convert 50 sites to Argument Clinic across 8 files

2015-04-16 Thread Roundup Robot
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.

[issue5680] Command-line arguments when running in IDLE

2015-04-16 Thread Wolfgang Maier
Changes by Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de: -- nosy: +wolma ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5680 ___ ___

[issue20175] Derby #6: Convert 50 sites to Argument Clinic across 8 files

2015-04-16 Thread Roundup Robot
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

[issue23972] Asyncio reuseport

2015-04-16 Thread Boris FELD
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

[issue23970] Update distutils.msvccompiler for VC14

2015-04-16 Thread Marc-Andre Lemburg
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

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Marc-Andre Lemburg
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

[issue23970] Update distutils.msvccompiler for VC14

2015-04-16 Thread Paul Moore
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,

[issue23970] Update distutils.msvccompiler for VC14

2015-04-16 Thread Paul Moore
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

[issue20454] platform.linux_distribution() returns empty value on Archlinux and python 2.7

2015-04-16 Thread ha034
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',

[issue23970] Update distutils.msvccompiler for VC14

2015-04-16 Thread Steve Dower
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

[issue23970] Update distutils.msvccompiler for VC14

2015-04-16 Thread Steve Dower
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

[issue23972] Asyncio reuseport

2015-04-16 Thread Guido van Rossum
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

[issue23970] Update distutils.msvccompiler for VC14

2015-04-16 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23970 ___ ___

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-04-16 Thread Michael McFadden
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

[issue20175] Derby #6: Convert 50 sites to Argument Clinic across 8 files

2015-04-16 Thread Peter McCormick
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

[issue17831] urllib.URLopener.open breaks ActiveDirectory user

2015-04-16 Thread R. David Murray
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

[issue21327] socket.type value changes after using settimeout()

2015-04-16 Thread Raúl Cumplido
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 ___

[issue17831] urllib.URLopener.open breaks ActiveDirectory user

2015-04-16 Thread Howard Haimovitch
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

[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2015-04-16 Thread Raúl Cumplido
Changes by Raúl Cumplido raulcumpl...@gmail.com: -- nosy: +raulcd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21250 ___ ___ Python-bugs-list

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Marc-Andre Lemburg
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

[issue18128] pygettext: non-standard timestamp format in POT-Creation-Date

2015-04-16 Thread R. David Murray
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

[issue18128] pygettext: non-standard timestamp format in POT-Creation-Date

2015-04-16 Thread Roundup Robot
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

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Matthias Klose
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

[issue23966] More clearly expose/explain native and cross-build target information

2015-04-16 Thread Nick Coghlan
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) * endian­ness (big- or little- * word size

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2015-04-16 Thread Serhiy Storchaka
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 ___

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2015-04-16 Thread Serhiy Storchaka
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

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Marc-Andre Lemburg
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

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Nick Coghlan
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

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2015-04-16 Thread Serhiy Storchaka
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 ___

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Matthias Klose
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

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-04-16 Thread Berker Peksag
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

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-16 Thread Nick Coghlan
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

[issue22708] httplib/http.client in method _tunnel used HTTP/1.0 CONNECT method

2015-04-16 Thread Vova
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

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-04-16 Thread Berker Peksag
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 ___

[issue22397] test_socket failure on AIX

2015-04-16 Thread David Watson
Changes by David Watson bai...@users.sourceforge.net: -- nosy: +baikie ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22397 ___ ___

[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2015-04-16 Thread Maciej Szulik
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

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-04-16 Thread Christie
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 ___

[issue16108] Include maintainer information in register/upload

2015-04-16 Thread Antti Haapala
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

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Marc-Andre Lemburg
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

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-16 Thread David Watson
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

[issue23970] Update distutils.msvccompiler for VC14

2015-04-16 Thread Marc-Andre Lemburg
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

[issue23883] __all__ lists are incomplete

2015-04-16 Thread Joel Taddei
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

[issue20175] Derby #6: Convert 50 sites to Argument Clinic across 8 files

2015-04-16 Thread Peter McCormick
Changes by Peter McCormick pe...@pdmccormick.com: -- nosy: +pdmccormick ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20175 ___ ___

[issue16108] Include maintainer information in register/upload

2015-04-16 Thread Éric Araujo
É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

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Donald Stufft
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

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Ned Deily
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

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Marc-Andre Lemburg
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

[issue23828] test_socket testCmsgTruncLen0 gets received malformed or improperly-truncated ancillary data warning under OS X

2015-04-16 Thread David Watson
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

[issue23970] Update distutils.msvccompiler for VC14

2015-04-16 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23970 ___ ___

[issue16108] Include maintainer information in register/upload

2015-04-16 Thread Donald Stufft
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 ___

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Marc-Andre Lemburg
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

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Marc-Andre Lemburg
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

[issue23974] random.randrange() biased output

2015-04-16 Thread Serhiy Storchaka
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

[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2015-04-16 Thread R. David Murray
R. David Murray added the comment: Review comments added. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16914 ___ ___ Python-bugs-list mailing

[issue7159] Urllib2 authentication memory.

2015-04-16 Thread Roundup Robot
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

[issue5497] openssl compileerror with original source

2015-04-16 Thread Ned Deily
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

[issue22829] Add --prompt option to venv

2015-04-16 Thread Stéphane Wirtel
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,

[issue23975] numbers.Rational implements __float__ incorrectly

2015-04-16 Thread Wolfgang Maier
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

[issue19494] Add urllib2.HTTPBasicPriorAuthHandler for use with APIs that don't return 401 errors

2015-04-16 Thread Roundup Robot
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

[issue23976] ZipFile.writestr implies non-regular files

2015-04-16 Thread D. Alphus
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

[issue20454] platform.linux_distribution() returns empty value on Archlinux and python 2.7

2015-04-16 Thread R. David Murray
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

[issue7159] Urllib2 authentication memory.

2015-04-16 Thread R. David Murray
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

[issue23903] Generate PC/python3.def by scraping headers

2015-04-16 Thread Martin v . Löwis
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

[issue5497] openssl compileerror with original source

2015-04-16 Thread Stéphane Wirtel
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

[issue20769] Reload() description is unclear

2015-04-16 Thread Brett Cannon
Brett Cannon added the comment: Patch LGTM. -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20769 ___ ___

[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2015-04-16 Thread Roundup Robot
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

[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2015-04-16 Thread Roundup Robot
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

[issue7159] Urllib2 authentication memory.

2015-04-16 Thread Akshit Khurana
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 ___

[issue7159] Urllib2 authentication memory.

2015-04-16 Thread R. David Murray
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

[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2015-04-16 Thread Maciej Szulik
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

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Marc-Andre Lemburg
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

[issue23974] random.randrange() biased output

2015-04-16 Thread Christopher Gurnee
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

[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2015-04-16 Thread R. David Murray
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 -

[issue23974] random.randrange() biased output

2015-04-16 Thread Skip Montanaro
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

[issue23974] random.randrange() biased output

2015-04-16 Thread Christopher Gurnee
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?)

[issue19494] Add urllib2.HTTPBasicPriorAuthHandler for use with APIs that don't return 401 errors

2015-04-16 Thread R. David Murray
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

[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2015-04-16 Thread Roundup Robot
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

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2015-04-16 Thread R. David Murray
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

[issue23970] Update distutils.msvccompiler for VC14

2015-04-16 Thread Steve Dower
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

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22980 ___ ___ Python-bugs-list

[issue23903] Generate PC/python3.def by scraping headers

2015-04-16 Thread Steve Dower
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

[issue19494] Add urllib2.HTTPBasicPriorAuthHandler for use with APIs that don't return 401 errors

2015-04-16 Thread Akshit Khurana
Changes by Akshit Khurana axitkhur...@gmail.com: -- nosy: +axitkhurana ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19494 ___ ___

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Marc-Andre Lemburg
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

[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Marc-Andre Lemburg
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

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-16 Thread Greg Ward
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,

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-16 Thread Berker Peksag
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)`` --

[issue18262] ZipInfo.external_attr are not documented

2015-04-16 Thread Alex Lord
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

[issue18262] ZipInfo.external_attr are not documented

2015-04-16 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +alanmcintyre, serhiy.storchaka, twouters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18262 ___ ___

[issue23964] Update README documentation for IDLE tests.

2015-04-16 Thread Terry J. Reedy
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

[issue23984] Documentation error: Descriptors

2015-04-16 Thread bjonnh
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):

[issue23980] Documentation for format units starting with 'e' is inconsistent

2015-04-16 Thread Larry Hastings
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

[issue23984] Documentation error: Descriptors

2015-04-16 Thread Ned Deily
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 ___

[issue18262] ZipInfo.external_attr are not documented

2015-04-16 Thread Ned Deily
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 ___

[issue22269] Resolve distutils option conflicts with priorities

2015-04-16 Thread Piotr Dobrogost
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net: -- nosy: +piotr.dobrogost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22269 ___ ___

  1   2   >