[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Jeffrey Walton
New submission from Jeffrey Walton: Downloaded Python-3.4.0rc3. Compiled with Clang 3.4, added -fsanitzie=undefined to CFLAGS. Ran 'make' and 'make check'. Lots of issues, many are duplicates (see below). One or more of these issues might be the reason for `-fwrapv`. This fellow from objimpl.

[issue17462] argparse FAQ: how it is different from optparse

2014-03-14 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Jeffrey Walton
Changes by Jeffrey Walton : Added file: http://bugs.python.org/file34426/python-3-4-make-test.txt ___ Python tracker ___ ___ Python-bugs-list

[issue20491] textwrap: Non-breaking space not honored

2014-03-14 Thread Éric Araujo
Éric Araujo added the comment: Using a multiline regex (with re.VERBOSE) would also avoid the clutter of parens and quotes. -- nosy: +eric.araujo ___ Python tracker ___

[issue5977] distutils build_ext.get_outputs returns wrong result

2014-03-14 Thread Éric Araujo
Éric Araujo added the comment: This bug is quite bad, and was reported as far back as 2005 on distutils-sig. If one runs “python setup.py build_ext --inplace build”, then for example runs tests, and then “python setup.py install” runs build again, which runs build_py (.py files are already in

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the report. Could you check if the current "default" branch of mercurial fixes the problems? -- nosy: +benjamin.peterson ___ Python tracker _

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset e68f156ea0e6 by Benjamin Peterson in branch 'default': cast negative numbers to size_t before shifting them (#20929) http://hg.python.org/cpython/rev/e68f156ea0e6 -- nosy: +python-dev ___ Python tracker

[issue20923] ConfigParser should nested [] in section names.

2014-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is invalid as a bug report, unless one considers that the presence of '_foo]' on the same line should have raised an exception. As an enhancement request, I think it should be rejected. ConfigParser configuration language is based on msdos/windows .ini fi

[issue20927] Different behaviour on Posix and Windows when using subprocess.Popen(..., cwd=path)

2014-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am sure that using / instead of \, which is to say, not using os.sep, is the problem as / is *not* allowed in Windows command names even though the substitution works for paths given as options. In a Windows console, > python # works > .\python # works > ./py

[issue20849] add exist_ok to shutil.copytree

2014-03-14 Thread Éric Araujo
Éric Araujo added the comment: Adding some core devs to get their opinion on this proposal. -- nosy: +hynek, ncoghlan, r.david.murray, tarek ___ Python tracker ___ __

[issue20930] Debian 7.3: This platform's pyconfig.h needs to define PY_FORMAT_LONG_LONG

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: Defining PY_FORMAT_LONG_LONG had a side effect: /usr/local/bin/clang -c -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -g3 -fsanitize=undefined -DPY_FORMAT_LONG_LONG=1 -g3 -fsanitize=undefined -DPY_FORM

[issue20212] distutils: fix build_ext check to find whether we're building Python or not

2014-03-14 Thread Éric Araujo
Éric Araujo added the comment: Hi, thanks for the report and patch. How can I reproduce the error? Matthias: which versions did you change to support cross-compile? I understand this is a bug, not a new feature, so it should be fixed in all affected versions. -- components: +Distuti

[issue19346] Build fails when there are no shared extensions to be built

2014-03-14 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report and patch. Can you remind me how to build all extensions statically? I’d like to reproduce the error before applying the patch. -- nosy: +eric.araujo stage: -> patch review versions: +Python 3.3, Python 3.4 ___

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: > Could you check if the current "default" branch of mercurial fixes the > problems? Checkout is complete. Working through a build now. Could you look at http://bugs.python.org/issue20930 and advise on the best way to proceed? -- ___

[issue20931] Confusing section title "New Expected Features for Python Implementations" in 3.4 What's New doc

2014-03-14 Thread Ned Deily
New submission from Ned Deily: The 3.4 What's New document has a section entitled "New expected features for Python implementations", a title not found in previous releases. I believe that the intention is to document features expected to be implemented by all Python implementations, includin

[issue20874] Tutorial section on starting python is out of date

2014-03-14 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: The big list of issues earlier has been parred down to the following after `make`: Objects/longobject.c:40:42: runtime error: index -3 out of bounds for type 'PyLongObject [262]' Objects/listobject.c:2046:22: runtime error: index 623 out of bounds for type 'P

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: What branch are you building now? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue20849] add exist_ok to shutil.copytree

2014-03-14 Thread R. David Murray
R. David Murray added the comment: I don't know what "the method already allows for existing files" means. Since the target directory can't exist, there can be no existing files. In unix, this kind of capability is provided by a combination of shell globbing and 'cp -r', and by default it doe

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: > What branch are you building now? Python 3.5 from `hg clone http://hg.python.org/cpython`. -- ___ Python tracker ___

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: Updated title to reflect Python 3.4-RC3. -- title: Undefined behavior flagged by Clang 3.4 -> Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3) ___ Python tracker _

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Well, that's 3.4.1 atm. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: > Well, that's 3.4.1 atm. My bad. I managed to download a file named Python-3.4.0rc3.tgz this morning (the tarball is still in my downloads). I'm not sure from where since http://www.python.org/download/ does not have it -- __

[issue20932] Undefined behavior flagged by Clang 3.4 (Python 3.5 from hg)

2014-03-14 Thread Jeffrey Walton
New submission from Jeffrey Walton: Checked out Python-3.5 from mercurial. Compiled with Clang 3.4, added -fsanitzie=undefined to CFLAGS. Ran 'make' and 'make check'. A few issues during `make`: Objects/longobject.c:40:42: runtime error: index -3 out of bounds for type 'PyLongObject [262]' Ob

[issue20932] Undefined behavior flagged by Clang 3.4 (Python 3.5 from hg)

2014-03-14 Thread Jeffrey Walton
Changes by Jeffrey Walton : Added file: http://bugs.python.org/file34429/python-3.5-make-test.txt ___ Python tracker ___ ___ Python-bugs-list

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: Also see http://bugs.python.org/issue20932. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Okay, I think I fixed those bugs too on default. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue20930] Debian 7.3: This platform's pyconfig.h needs to define PY_FORMAT_LONG_LONG

2014-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: You probably need to define it to be "ll". -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue20930] Debian 7.3: This platform's pyconfig.h needs to define PY_FORMAT_LONG_LONG

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: > You probably need to define it to be "ll". Ah, OK. It was tricky trying to pass in a quoted string *with* the quotes to the preprocessor without the stringify stuff. I found it easier to open the file and just hard code what was needed. Thanks again for the

[issue20932] Undefined behavior flagged by Clang 3.4 (Python 3.5 from hg)

2014-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is just the same as #20929, I believe? -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue20932] Undefined behavior flagged by Clang 3.4 (Python 3.5 from hg)

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: Pulled the latest after BP cleared some more runtime errors: $ hg summary parent: 89662:7ce22d0899e4 tip merge 3.3 branch: default commit: 2 modified update: (current) Misaligned accesses dominate with over 11K: $ cat python-3.5-make-test.txt |

[issue20932] Undefined behavior flagged by Clang 3.4 (Python 3.5 from hg)

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: > This is just the same as #20929, I believe? I think most of the issues in the 20929 report (Python 3.4-RC3) are present in this report. But under this report, I can re-test as you check in the fixes. (Python 3.4-RC3 is fixed in time from my perspective). --

[issue20933] bad test case in test_osx_proxy_bypass (test.test_urllib2.HandlerTests)

2014-03-14 Thread Wenzhu Man
New submission from Wenzhu Man: in test_urllib2.py file: test_osx_proxy_bypass (test.test_urllib2.HandlerTests) # Check hosts that should not trigger the proxy bypass for host in ('abc.foo.bar', 'bar.com', '127.0.0.2', '10.11.0.1', 'test'): self.assertFalse(_proxy_bypass_macosx_sysconf

[issue20932] Undefined behavior flagged by Clang 3.4 (Python 3.5 from hg)

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: Here's another one I missed. The first is a problem due to silent truncation when casting from the double 3.40282e+38 to a float (or Clang is wrong). [ 10/389] test_struct /home/jwalton/Desktop/cpython-checkout/Objects/floatobject.c:2028: runtime error: value

[issue20868] Lib/test/test_socket.py: skip testGetServBy if /etc/services is not found

2014-03-14 Thread Steap
Steap added the comment: I did not know that /etc/services is not always used :/ The main issue is that when you run the test suite in a chroot (to do "pure" builds) or in a network sandbox (for other functions). I get the following errors:

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: On Fri, Mar 14, 2014 at 10:28 PM, Benjamin Peterson wrote: > > Benjamin Peterson added the comment: > > Well, that's 3.4.1 atm. > Here's why I got that stale version: https://www.google.com/search?q=download+python+3.4. The first hit is RC3. -- ___

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: That's indeed the latest release, but the default branch will become 3.4.1. -- ___ Python tracker ___ ___

[issue20933] bad test case in test_osx_proxy_bypass (test.test_urllib2.HandlerTests)

2014-03-14 Thread Wenzhu Man
Wenzhu Man added the comment: modify the host 'test' name to a less general one 'testMacProxyBypass' so it won't be DNS mapped to certain ip that happens to be in exceptions -- keywords: +patch resolution: -> fixed Added file: http://bugs.python.org/file34430/mypatch.patch ___

[issue20931] Confusing section title "New Expected Features for Python Implementations" in 3.4 What's New doc

2014-03-14 Thread Nick Coghlan
Nick Coghlan added the comment: The idea was to add a category for core interpreter behavioural changes that aren't language or standard library changes. Inspiration just failed me completely when coming up with a title for it, hence the current monstrosity. Something generic like "Changes to in

[issue17188] Document 'from None' in raise statement doc.

2014-03-14 Thread Nitika Agarwal
Nitika Agarwal added the comment: Hi, As suggested by Petri,I have made some changes. Please review the attached patch.Any comments and feedback are welcome. -- nosy: +nitika Added file: http://bugs.python.org/file34431/issue17188.patch ___ Python tra

[issue20895] Add bytes.empty_buffer and deprecate bytes(17) for the same purpose

2014-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: AFAIK, bytes(int) is a remnant from times when bytes was mutable. Then bytes was split to non-mutable bytes and mutable bytearray and this constructor was forgotten. I'm +0 for deprecation. -- ___ Python tracker

[issue20491] textwrap: Non-breaking space not honored

2014-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about other spaces: '\N{OGHAM SPACE MARK}', '\N{EN QUAD}', '\N{EM QUAD}', '\N{EN SPACE}', '\N{EM SPACE}', '\N{THREE-PER-EM SPACE}', '\N{FOUR-PER-EM SPACE}', '\N{SIX-PER-EM SPACE}', '\N{FIGURE SPACE}', '\N{PUNCTUATION SPACE}', '\N{THIN SPACE}', '\N{HAIR

[issue20491] textwrap: Non-breaking space not honored

2014-03-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Unicode nosy: +benjamin.peterson, ezio.melotti, haypo, lemburg ___ Python tracker ___ __

[issue20491] textwrap: Non-breaking space not honored

2014-03-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue20920] Turtle module transparency.

2014-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tk supports alpha only for photo images and as an attribute of top-level window. It doesn't support alpha component in colors. The desired color is specified with an object whose string value must have one of the following forms: colorn

[issue17188] Document 'from None' in raise statement doc.

2014-03-14 Thread Nitika Agarwal
Changes by Nitika Agarwal : Removed file: http://bugs.python.org/file34431/issue17188.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue17188] Document 'from None' in raise statement doc.

2014-03-14 Thread Nitika Agarwal
Changes by Nitika Agarwal : Added file: http://bugs.python.org/file34432/issue17188.patch ___ Python tracker ___ ___ Python-bugs-list mailing

<    1   2