[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-03-01 Thread koobs
koobs added the comment: Regressions on FreeBSD buildbots (test_coding) http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.3/builds/626/steps/test/logs/stdio -- nosy: +koobs ___ Python tracker rep...@bugs.python.org

[issue19966] Wrong mtimes of Include/Python-ast.h and Python/Python-ast.c in tarballs

2014-03-01 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19966 ___ ___ Python-bugs-list mailing

[issue20814] tracemalloc example

2014-03-01 Thread Jeong-Min Lee
New submission from Jeong-Min Lee: Running the Pretty top example (http://docs.python.org/dev/library/tracemalloc.html#pretty-top) in the tracemalloc module documentation causes a ValueError. Traceback (most recent call last): File t.py, line 32, in module

[issue20814] tracemalloc example - Pretty Top

2014-03-01 Thread Jeong-Min Lee
Changes by Jeong-Min Lee false...@gmail.com: -- title: tracemalloc example - tracemalloc example - Pretty Top ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20814 ___

[issue20814] tracemalloc example - Pretty Top

2014-03-01 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +haypo versions: -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20814 ___

[issue20811] str.format for fixed width float can return a string longer than the maximum specified

2014-03-01 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20811 ___ ___

[issue20633] SystemError: Parent module 'multiprocessing' not loaded, cannot perform relative import

2014-03-01 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- assignee: - sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20633 ___ ___ Python-bugs-list

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-03-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20731 ___

[issue20811] str.format for fixed width float can return a string longer than the maximum specified

2014-03-01 Thread Eric V. Smith
Eric V. Smith added the comment: I think you always want the leading zero. Mark (Dickinson), what do yo think? And I also think changing it at this point would be problematic. -- nosy: +anthonybaxter, barry, benjamin.peterson, eric.araujo, georg.brandl, gvanrossum, lemburg, loewis,

[issue20811] str.format for fixed width float can return a string longer than the maximum specified

2014-03-01 Thread Eric V. Smith
Eric V. Smith added the comment: Oops, not sure how the nosy list got changed. Sorry about that. -- nosy: -anthonybaxter, barry, benjamin.peterson, eric.araujo, georg.brandl, gvanrossum, lemburg, loewis, tarek ___ Python tracker

[issue20465] Upgrade SQLite to 3.8.3 with 3.4.0 Windows and OS X installers

2014-03-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: 3.8.3 has been superseded by 3.8.3.1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20465 ___ ___

[issue20815] ipaddress unit tests PEP8

2014-03-01 Thread Michel Albert
New submission from Michel Albert: While I was looking at the source of the ipaddress unit-tests, I noticed a couple of PEP8 violations. This patch fixes these (verified using the ``pep8`` tool). There are no behavioural changes. Only white-space. Test-cases ran successfully before, and

[issue11558] Raise a more helpful exception in email.message.Message.attach after set_payload(some string)

2014-03-01 Thread Varun Sharma
Varun Sharma added the comment: I have made a patch which raises TypeError whenever a string type payload is attached to message using email.Message.attach() method.I have also added a unit test for the same. Need review. -- keywords: +patch nosy: +varun Added file:

[issue16135] Removal of OS/2 support

2014-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5e05d7d3db9c by Andrew Kuchling in branch 'default': #16135: remove mentions of OS/2 from the documentation http://hg.python.org/cpython/rev/5e05d7d3db9c -- ___ Python tracker rep...@bugs.python.org

[issue20815] ipaddress unit tests PEP8

2014-03-01 Thread Nick Coghlan
Nick Coghlan added the comment: Unfortunately, the pep8 tool includes some additional invented rules of its own, mostly related to being far too strict about indentation of continuation lines. PEP 8 is actually mostly silent on that topic, merely pointing out a couple of specific things

[issue20374] Failure to compile with readline-6.3-rc1

2014-03-01 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20374 ___ ___ Python-bugs-list mailing

[issue11558] Raise a more helpful exception in email.message.Message.attach after set_payload(some string)

2014-03-01 Thread R. David Murray
R. David Murray added the comment: Thanks, Varun. Your patch addresses an issue with the current API, but it doesn't address the problem raised in this issue. The problem in this issue is what happens when the *payload* is a string, and you call attach (to attach a message object) on that

[issue20811] str.format for fixed width float can return a string longer than the maximum specified

2014-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: '0.12345678' or '+0.1234567' could both be considered equally valid. Who can say which is really The One True Way? :) -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20811

[issue20746] test_pdb fails in refleak mode

2014-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: The doctests are executed with 'test.globs' as globals which is set in the 'find' method of doctest.DocTestFinder, and cleared after each run (unless 'clear_globs' is false). One possible fix is to have test.regrtest 'find' a new test_runner before each run

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-03-01 Thread Georg Brandl
Georg Brandl added the comment: This needs to be fixed for 3.3.5rc2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20731 ___ ___

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset dcf4fbf446ca by Benjamin Peterson in branch '3.3': fix test on debug builds (closes #20731) http://hg.python.org/cpython/rev/dcf4fbf446ca -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue20813] Backport revised 2to3 guide to older branches

2014-03-01 Thread Brett Cannon
Brett Cannon added the comment: Good point about the 2.7 backport. I'm still not worried about 3.3, though, by the fact that 3.4 should land in less than a month. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20813

[issue20813] Backport revised 2to3 guide to older branches

2014-03-01 Thread Brett Cannon
Brett Cannon added the comment: But then if Larry doesn't cherrypick it then backporting would be a good idea, and considering it's probably safer to just backport the changes by doing a whole copy copy then we might as well backport. -- assignee: - brett.cannon

[issue20812] Explicitly cover application migration in the 2-3 guide

2014-03-01 Thread Brett Cannon
Brett Cannon added the comment: Something like this should go at the top almost as a tl;dr to get the point across that regardless of the state of your dependencies, start writing Python 3-compatible code **today** and if you must update old code piecemeal. I'll add something next time I have

[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-01 Thread Jeremiah Lowin
New submission from Jeremiah Lowin: Tested in Python 3.3 and Python 3.4.0rc1 5e05d7d3db9c If a function has keyword-only arguments but no keyword-only defaults, then calling inspect.getcallargs with no arguments results in the wrong TypeError being raised. Example: import inspect def

[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-01 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20816 ___ ___ Python-bugs-list

[issue20766] reference leaks in pdb

2014-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: After applying patch 'regrtest.diff' from issue 20746, the command: $ ./python -m test -W -R3:3 test_pdb succeeds now and shows there are no reference leaks. However, with the following change in Lib/test/test_pdb.py and patch 'regrtest.diff' applied:

[issue20746] test_pdb fails in refleak mode

2014-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: See also issue 20766. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20746 ___ ___ Python-bugs-list mailing

[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-01 Thread Jeremiah Lowin
Jeremiah Lowin added the comment: I created a patch to resolve this. If a function has keyword-only arguments, then inspect.getcallargs checks if the argument is in kwonlydefaults. However, kwonlydefaults is None if no defaults were specified. In that situation, 'kwarg in kwonlydefaults'

[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-01 Thread Jeremiah Lowin
Jeremiah Lowin added the comment: Apologies, the patch is attached here. -- keywords: +patch Added file: http://bugs.python.org/file34260/issue20816.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20816

[issue20817] inspect.getcallargs() raises the wrong error if 3+ arguments are missing

2014-03-01 Thread Jeremiah Lowin
New submission from Jeremiah Lowin: If inspect.getcallargs() is called on a function and three or more arguments are missing, an IndexError is raised instead of the expected TypeError. This bug is present in Python 3.3 and 3.4.0 rc1 (5e05d7d3db9c). However, it worked as expected in Python

[issue20817] inspect.getcallargs() raises the wrong error if 3+ arguments are missing

2014-03-01 Thread Jeremiah Lowin
Jeremiah Lowin added the comment: The bug is caused by a list of names not getting properly expanded when generating the error message. This patch fixes it (simply by adding a * in the appropriate place) and tests that a TypeError, not an IndexError, is raised. -- keywords: +patch

[issue20815] ipaddress unit tests PEP8

2014-03-01 Thread Michel Albert
Michel Albert added the comment: Thanks for the quick reply! I did not know the pep8 tool added it's own rules :( I have read PEP8 a long while ago and have since relied on the tool to do the right thing. Many of it's idiosyncrasies have probably made their way into my blood since :( And

[issue17457] Unittest discover fails with namespace packages and builtin modules

2014-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 57cb8a6e8f10 by R David Murray in branch 'default': whatsnew: unittest discover works on namespace packages (#17457). http://hg.python.org/cpython/rev/57cb8a6e8f10 -- ___ Python tracker

[issue1043134] Add preferred extensions for MIME types

2014-03-01 Thread David Lindquist
David Lindquist added the comment: I don't think it is unreasonable to return a well-known extension for certain mime types, text/plain being the most obvious (and most in need of repair; .ksh??). I've attached a patch based on the previous discussion. -- keywords: +patch nosy:

[issue20817] inspect.getcallargs() raises the wrong error if 3+ arguments are missing

2014-03-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- assignee: - yselivanov nosy: +larry, ncoghlan, yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20817 ___

[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- assignee: - yselivanov nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20816 ___

[issue20811] str.format for fixed width float can return a string longer than the maximum specified

2014-03-01 Thread aubmoon
aubmoon added the comment: Neither of those strictly meets the stated format. '0.12345678' is missing the + which is explicit in the format and '+0.1234567' does not have 8 decimal places. Only '+.12345678' has a length of 10, 8 decimal places, and the required sign. I realize this definitely an

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-03-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for fixing it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20731 ___ ___ Python-bugs-list mailing

[issue20811] str.format for fixed width float can return a string longer than the maximum specified

2014-03-01 Thread Stefan Krah
Stefan Krah added the comment: aubmoon: Would it be a possibility just to use 'f' instead? {:+10.7f}.format(1.12345678) '+1.1234568' {:+10.7f}.format(0.12345678) '+0.1234568' -- nosy: +skrah ___ Python tracker rep...@bugs.python.org

[issue20465] Upgrade SQLite to 3.8.3 with 3.4.0 Windows and OS X installers

2014-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5fa3f6d82d61 by Ned Deily in branch 'default': Issue #20465: Update OS X installer build to use SQLite 3.8.0.1. http://hg.python.org/cpython/rev/5fa3f6d82d61 -- ___ Python tracker rep...@bugs.python.org

[issue20465] Upgrade SQLite to 3.8.3 with 3.4.0 Windows and OS X installers

2014-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset a8470f88e7b4 by Ned Deily in branch 'default': Issue #20465: fix NEWS typo (it's 3.8.3.1) http://hg.python.org/cpython/rev/a8470f88e7b4 -- ___ Python tracker rep...@bugs.python.org

[issue20818] 3.4 cherry pick: 5fa3f6d82d61 and a8470f88e7b4 - OS X installer use SQLite 3.8.3.1

2014-03-01 Thread Ned Deily
New submission from Ned Deily: Update the OS X installer build to use SQLite 3.8.3.1 instead of 3.8.3 (see Issue20465). -- assignee: larry components: Build messages: 212524 nosy: larry, ned.deily priority: release blocker severity: normal stage: commit review status: open title: 3.4

[issue20465] Upgrade SQLite to 3.8.3 with 3.4.0 Windows and OS X installers

2014-03-01 Thread Ned Deily
Ned Deily added the comment: Fix a bug (ticket 4c86b126f2) that causes rows to go missing on some queries with OR clauses and IS NOT NULL operators in the WHERE clause, when the SQLITE_ENABLE_STAT3 or SQLITE_ENABLE_STAT4 compile-time options are used.

[issue20811] str.format for fixed width float can return a string longer than the maximum specified

2014-03-01 Thread aubmoon
aubmoon added the comment: That is exactly what I tried first. It turns out in the particular case I have been working the 8th digit is needed for correct answers. The job is a port of a punch card FORTRAN system into something more modern. The catch is the system is a scientific application

[issue20811] str.format for fixed width float can return a string longer than the maximum specified

2014-03-01 Thread Eric V. Smith
Eric V. Smith added the comment: I still think this is a special case that we won't fix. And even if we did, you'd have to wait until 3.5. But instead of your solution, it might be easier to wrap your floats in a class that implements your version of format, based on float's format with some

[issue20815] ipaddress unit tests PEP8

2014-03-01 Thread Nick Coghlan
Nick Coghlan added the comment: I'd suggest focusing more on the structured tests at the top of the file - the ones further down we largely incorporated wholesale from the original ipaddr project, and didn't go back and enforce PEP 8 compliance, but the new tests should follow the style

[issue20249] test_posix.test_initgroups fails when running with no supplementary groups

2014-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 82bcc626ffd4 by Benjamin Peterson in branch '3.3': fix test_posix.test_initgroups to work without supplemental groups (closes #20249) http://hg.python.org/cpython/rev/82bcc626ffd4 New changeset 1fbec1c44911 by Benjamin Peterson in branch '2.7':

[issue20819] reinitialize_command doesn't clear install_lib on install and install_lib commands

2014-03-01 Thread Jason R. Coombs
New submission from Jason R. Coombs: The setuptools source references a distutils bug here: https://bitbucket.org/pypa/setuptools/src/85760c42740829000a19ebf708d0a9cd565bb0eb/setuptools/command/bdist_wininst.py?at=default#cl-7 From what I infer from that message, the bug is that

[issue20820] HTML being escaped on some release pages

2014-03-01 Thread Nick Timkovich
New submission from Nick Timkovich: On a random trip through Python's past I noticed the new site is escaping HTML on some older version release notes: * http://www.python.org/download/releases/1.6/ * http://www.python.org/download/releases/2.0/ * http://www.python.org/download/releases/2.1/ *

[issue20820] HTML being escaped on some release pages

2014-03-01 Thread Ned Deily
Ned Deily added the comment: Sorry, you were pointed to the wrong tracer. For problems with the new website, the tracker is: https://github.com/python/pythondotorg/issues But, as noted in a reply, the pages you cite should now render properly. Thanks for reporting it!

[issue20821] Should be able to break long numbers across lines

2014-03-01 Thread Ryan Govostes
New submission from Ryan Govostes: I cannot find a way to break a long number across multiple lines, other than to write the number as a string, take advantage of string literal concatenation, and then convert the string to an integer. I'd like to be able to write, for example, N =

[issue20821] Should be able to break long numbers across lines

2014-03-01 Thread Eric V. Smith
Eric V. Smith added the comment: Please discuss this on the python-ideas mailing list, then if there's interest we'll re-open this issue. I'm -0 on the idea, but I haven't really thought about it much. -- nosy: +eric.smith resolution: - rejected stage: - committed/rejected status:

[issue20822] WINhelp file loads Table of Contents, but not contents: Navigation to webpage cancelled

2014-03-01 Thread Nemo Neminibus
New submission from Nemo Neminibus: File: python334.chm Downloads, md5sum correct. MS help executable opens a page with Table of Contents, but also displays a box with following message: Navigation to the webpage was canceled Clicking on any page icon in Table of Contents list produces no