[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2013-12-30 Thread Larry Hastings
Larry Hastings added the comment: I wouldn't call this a new feature--it's definitely a bug fix. So the "feature freeze" rule does not automatically apply. I definitely wouldn't permit this once we reach release candidates, but we aren't there yet. I get the impression that it will break cod

[issue20098] email policy needs a mangle_from setting

2013-12-30 Thread R. David Murray
New submission from R. David Murray: I missed this. It still defaults to True in Generator. It should default to False in the new policies (but True in compat32). -- components: email keywords: easy messages: 207116 nosy: barry, r.david.murray priority: normal severity: normal stage:

[issue20097] Bad use of `self` in importlib

2013-12-30 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Add tests for importlib.machinery.WindowsRegistryFinder ___ Python tracker ___ ___ Python-

[issue20097] Bad use of `self` in importlib

2013-12-30 Thread Brett Cannon
Changes by Brett Cannon : -- stage: needs patch -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2013-12-30 Thread Ethan Furman
Ethan Furman added the comment: I can live with the deprecation route. I'll create a patch today or tomorrow for that. -- ___ Python tracker ___ ___

[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2013-12-30 Thread R. David Murray
R. David Murray added the comment: We don't usually *break* existing working code even if the output is wrong. If you want to make '%x' % 3.14, etc, raise an error, I think you we should go through a deprecation period first. The deprecation messages should, of course, be added now. In othe

[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-12-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a872126f4a1 by Zachary Ware in branch 'default': Issue #19544, #6516: check ZLIB_SUPPORT, not zlib (which might not be bound) http://hg.python.org/cpython/rev/2a872126f4a1 -- ___ Python tracker

[issue6516] reset owner/group to root for distutils tarballs

2013-12-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a872126f4a1 by Zachary Ware in branch 'default': Issue #19544, #6516: check ZLIB_SUPPORT, not zlib (which might not be bound) http://hg.python.org/cpython/rev/2a872126f4a1 -- ___ Python tracker

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2013-12-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0e10367c88ce by Zachary Ware in branch 'default': Issue19619: skip zlib error test when zlib not available http://hg.python.org/cpython/rev/0e10367c88ce -- ___ Python tracker

[issue20097] Bad use of `self` in importlib

2013-12-30 Thread Christian Heimes
Christian Heimes added the comment: Thanks! :) -- assignee: -> brett.cannon nosy: +brett.cannon stage: -> needs patch ___ Python tracker ___ ___

[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-12-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 83f12a9593db by Zachary Ware in branch 'default': Issue #19544, #6516: check ZLIB_SUPPORT, not zlib (which might not be bound) http://hg.python.org/cpython/rev/83f12a9593db -- ___ Python tracker

[issue6516] reset owner/group to root for distutils tarballs

2013-12-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 83f12a9593db by Zachary Ware in branch 'default': Issue #19544, #6516: check ZLIB_SUPPORT, not zlib (which might not be bound) http://hg.python.org/cpython/rev/83f12a9593db -- ___ Python tracker

[issue20097] Bad use of `self` in importlib

2013-12-30 Thread Ram Rachum
Ram Rachum added the comment: Sorry, bad link, this is the right link: http://hg.python.org/cpython/file/fd846837492d/Lib/importlib/_bootstrap.py#l1409 -- ___ Python tracker ___

[issue20097] Bad use of `self` in importlib

2013-12-30 Thread Christian Heimes
Christian Heimes added the comment: I don't see a class method at line 1431. -- nosy: +christian.heimes ___ Python tracker ___ ___ Pyt

[issue20097] Bad use of `self` in importlib

2013-12-30 Thread Ram Rachum
New submission from Ram Rachum: There's a bad usage of `self` here: http://hg.python.org/cpython/file/fd846837492d/Lib/importlib/_bootstrap.py#l1431 `self` isn't defined because it's a class method. -- components: Library (Lib) messages: 207105 nosy: cool-RR priority: normal sever

[issue18604] Consolidate gui available checks in test.support

2013-12-30 Thread Zachary Ware
Zachary Ware added the comment: Here's a patch for 3.4, and some sample verbose output[1] from the AMD64 Win7 buildbot (which runs buildbot as a service, and thus has no gui available). [1] http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%20custom/builds/40/steps/test/logs/stdio

[issue20096] Mention modernize and future in Python 2/3 porting HOWTO

2013-12-30 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20096] Mention modernize and future in Python 2/3 porting HOWTO

2013-12-30 Thread Brett Cannon
New submission from Brett Cannon: https://github.com/mitsuhiko/python-modernize http://python-future.org/ Should also restructure to de-emphasize 2to3 and other approaches. In all honesty it should probably be nearly gutted to just "here are examples of how to write Python 2/3 compatible code"

[issue18310] itertools.tee() can't accept keyword arguments

2013-12-30 Thread py.user
Changes by py.user : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue18310] itertools.tee() can't accept keyword arguments

2013-12-30 Thread py.user
py.user added the comment: for example http://docs.python.org/3/library/itertools.html#itertools.permutations has same description and it's a keyword compare "itertools.tee(iterable, n=2)" "itertools.permutations(iterable, r=None)" >>> itertools.permutations('abc') >>> itertools.permutations

[issue18310] itertools.tee() can't accept keyword arguments

2013-12-30 Thread py.user
Changes by py.user : -- status: closed -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2013-12-30 Thread Eric V. Smith
Eric V. Smith added the comment: I agree the behavior is bad and should be fixed. But it's a new feature that will break existing code, and 3.4 is in beta, and therefore feature freeze. Unfortunately, I think this has to go into 3.5, unless you can get Larry to grant you an exception. ---

[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2013-12-30 Thread Ethan Furman
Ethan Furman added the comment: I can see why we wouldn't want to make this change in a point release, but this is a feature release we're talking about and this seems like buggy behavior: --> hex(3.14) Traceback (most recent call last): File "", line 1, in TypeError: 'float' object cannot b

[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2013-12-30 Thread Eric V. Smith
Eric V. Smith added the comment: While I think this is an improvement, I don't think we can make this change in behavior at this stage in 3.4. Won't it have to go in 3.5? -- ___ Python tracker

[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2013-12-30 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2013-12-30 Thread Ethan Furman
Ethan Furman added the comment: Better doc enhancement thanks to R. David Murray (thanks!). -- Added file: http://bugs.python.org/file33289/issue19995.stoneleaf.03.patch ___ Python tracker _

[issue20047] bytearray partition bug

2013-12-30 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue18314] Have os.unlink remove junction points

2013-12-30 Thread Kim Gräsman
Kim Gräsman added the comment: I really needed the well-wishing with regard to buffer sizing :-) Here's a patch for a couple of fronts: - Teach os.unlink about junction points - Introduce _winapi.CreateJunction - Introduce a new test suite in test_os.py for junction points I pulled the definiti

[issue20095] what is that result!?

2013-12-30 Thread Liam Marsh
Liam Marsh added the comment: can you add an approximation of the result in the command? (ex: the biggest precision in the values is 0.1, so it won't show after 4.0) meen while, thank you. -- ___ Python tracker ___

[issue19732] python fails to build when configured with --with-system-libmpdec

2013-12-30 Thread Stefan Krah
Stefan Krah added the comment: I wanted to force people to link explicitly with -l:libmpdec.so.2 in order to avoid picking up a wrong version. But indeed that won't work since the GNU linker happily picks up the static lib with -lmpdec if libmpdec.so is missing. The docs are part of my website

[issue20095] what is that result!?

2013-12-30 Thread Mark Dickinson
Changes by Mark Dickinson : -- components: +Interpreter Core -Regular Expressions ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20095] what is that result!?

2013-12-30 Thread Mark Dickinson
Mark Dickinson added the comment: This is how binary floating-point arithmetic works. See http://docs.python.org/3/tutorial/floatingpoint.html for some explanations. -- nosy: +mark.dickinson resolution: -> invalid status: open -> closed ___ Python

[issue7464] circular reference in HTTPResponse by urllib2

2013-12-30 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: No, the socket is actually closed when response's close() method is called. The problem is that the HTTPResponse object, buried deep within the nested classes returned from do_open(), has a circular reference, and _it_ will not go away. No one is _re

[issue20095] what is that result!?

2013-12-30 Thread Liam Marsh
New submission from Liam Marsh: when does 3*0.1 make 0.30004 ? YES it is the same program! -- components: Regular Expressions messages: 207092 nosy: Liam.Marsh, ezio.melotti, mrabarnett priority: normal severity: normal status: open title: what is that result!? versions: Pyth