[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

[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

[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

[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

[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
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

[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

[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

[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

[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 ___

[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 ___ ___

[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. -- ___

[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:

[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

[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: > 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). --

[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 Benjamin Peterson
Benjamin Peterson added the comment: This is just the same as #20929, I believe? -- nosy: +benjamin.peterson ___ 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: > 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

[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 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
Benjamin Peterson added the comment: Okay, I think I fixed those bugs too on default. -- ___ Python tracker ___ ___ Python-bugs-list m

[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

[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

[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

[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 -- __

[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: 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

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 ___

[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 Benjamin Peterson
Benjamin Peterson added the comment: What branch are you building now? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[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

[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

[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

[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? -- ___

[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 ___

[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

[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

[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 ___ __

[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

[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

[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

[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 _

[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

[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 ___

[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

[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
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.

[issue20921] DeprecationWarning: The Windows bytes API has been deprecated, use Unicode filenames instead st = os.stat(path)

2014-03-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue20920] Turtle module transparency.

2014-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, do you know about whether Tk (and tkinte) have any image alpha (transparency) support? -- nosy: +serhiy.storchaka, terry.reedy stage: -> test needed ___ Python tracker __

[issue20902] Which operand is preferred by set operations? Missing information in the documentation

2014-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Defining equality to ignore the .value attribute (and the id), says that they *do not matter*. Python believes you and the interpreter does what it does. If we had made a 'first or second operand wins' claim, we would not have been able to optimize intersectio

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-03-14 Thread Sean Rodman
Sean Rodman added the comment: Is there anything else I can do for this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue20897] @abstractmethod does not enforce method signatures

2014-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Unless the behavior contradicts the docs, it is not a bug. If the looser behavior in 3.x is intentional, a request to reverse direction will likely be rejected. Like many enhancement requests, I think this would better be discussed on python-ideas first, along

[issue1034] [patch] Add 2to3 support for displaying warnings as Python comments

2014-03-14 Thread Éric Araujo
Éric Araujo added the comment: (2to3 is an exception and can get improvements in stable versions.) -- nosy: +eric.araujo versions: +Python 2.7, Python 3.3, Python 3.4 -Python 3.2 ___ Python tracker _

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-03-14 Thread Ned Deily
Changes by Ned Deily : -- nosy: +eli.bendersky, scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

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

2014-03-14 Thread Ethan Furman
Ethan Furman added the comment: I'm inclined to leave it open while I do the suggested research. Thanks for the tips, Terry, and the numbers, Josh. -- ___ Python tracker ___ ___

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

2014-03-14 Thread Josh Rosenberg
Josh Rosenberg added the comment: Terry: You forgot to use a raw string for your timeit.repeat check, which is why it blew up. It was evaluating the \0 when you defined the statement string itself, not the contents. If you use r'b"\0" * 7' it works just fine by deferring backslash escape proce

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

2014-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Serhiy that the method is not needed in any case. I was about to post the same missing rationale: people misunderstand 'bytes(7)' and write it expecting to get bytes([7]) == b(\x07'), so it would be better to make bytes(7) raise instead of silentl

[issue20926] Devguide: Enhance Quick Start portion of instructions for Windows

2014-03-14 Thread Kathleen Weaver
Changes by Kathleen Weaver : Removed file: http://bugs.python.org/file34419/kweaver.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20926] Devguide: Enhance Quick Start portion of instructions for Windows

2014-03-14 Thread Kathleen Weaver
Kathleen Weaver added the comment: I like the mark up but I don't think this warrants quite that much attention. I changed the wording to "may throw errors" -- Added file: http://bugs.python.org/file34424/kweaver.patch ___ Python tracker

[issue20853] pdb "args" crashes when an arg is not printable

2014-03-14 Thread Jurjen N.E. Bos
Jurjen N.E. Bos added the comment: Maybe we could use Pdb._getval_except(arg, frame=None) in the routine do_args. If I understand the code, do_args does quite some work to get the value of name in the context of the current frame, maybe just calling self._getval_except(name, frame=self.curframe)

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

2014-03-14 Thread Jovik
Jovik added the comment: I did a test with cwd being set to full path, but the result was the same (still had to use shell=True to execute a command). Let me know if I can provide any more details. -- ___ Python tracker

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

2014-03-14 Thread Josh Rosenberg
Josh Rosenberg added the comment: I would think the argument for deprecation is that usually, people type bytes(7) or bytes(somesmallintvalue) expecting to create a length one bytes object using that value (happens by accident if you iterate a bytes object and forget it's an iterable of ints,

[issue20692] Tutorial and FAQ: how to call a method on an int

2014-03-14 Thread Sreepriya Chalakkal
Sreepriya Chalakkal added the comment: In tutorials, under section 3.1.1 - Numbers, it is mentioned about the type of integers. And also a statement as "we will see more about numeric types later in the tutorial". May be we can mention about type class there. But it might be too early to menti

[issue20866] segfailt with os.popen and SIGPIPE

2014-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Your example is ambiguous at to which of two pipings causes the problem. First you cat a large file into the script, which reads it in its entirety with "data = sys.stdin.read()". If that causes the segfault, they everything that follows is irrelevant. If that

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-03-14 Thread James Bailey
New submission from James Bailey: After xml.etree.ElementInclude.include inserts an Xinclude'd href it does not walk the just-inserted subtree to see if it contains any Xincludes itself. I think the behaviour should be modified to walk the included subtree and perform any Xincludes contained.

[issue11122] bdist_rpm should use rpmbuild, not rpm

2014-03-14 Thread Peter Eisentraut
Peter Eisentraut added the comment: No, the second use should not be converted. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9364] some problems with the documentation of pydoc

2014-03-14 Thread Nilovna Bascunan-Vasquez
Changes by Nilovna Bascunan-Vasquez : -- nosy: +nilovna ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue19510] lib2to3.fixes.fix_import gets confused if implicit relative imports and absolute imports are on the same line

2014-03-14 Thread Éric Araujo
Éric Araujo added the comment: To be fair to 2to3, that line disrespects some Python best practices (use explicit relative imports (2.5+), put one import per line, group imports by stdlib/non-stdlib). It’s still a bug though :) -- nosy: +benjamin.peterson, eric.araujo ___

[issue20867] fix_import in 2to3 adds spurious relative import (windows)

2014-03-14 Thread Claudio Canepa
Claudio Canepa added the comment: No. #19510 is about 2 to 3 confused when the same import line has some modules that should be 'relativized' and others that not. The present issue is about 2to3 incorrectly 'relativize' a module / package by forgetting that module names are case-sensitive but

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2014-03-14 Thread Nilovna Bascunan-Vasquez
Changes by Nilovna Bascunan-Vasquez : -- nosy: +nilovna ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue1704474] optparse tests fail under Jython

2014-03-14 Thread Nilovna Bascunan-Vasquez
Changes by Nilovna Bascunan-Vasquez : -- nosy: +nilovna ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue20692] Tutorial and FAQ: how to call a method on an int

2014-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Antoine about the particular cross-link and would drop that one. Is there somewhere earlier in the tutorial that discusses .attribute access? That would be the place to mention the ints and dotted names. Rather than a link, I would just mention th

[issue20692] Tutorial section 9.4 and FAQ: how to call a method on an int

2014-03-14 Thread R. David Murray
R. David Murray added the comment: I might tweak a couple words for flow, but it looks good. I do wonder about the repetition of the bit about parenthesis or whitespace that now exists. I wonder if the first occurrence of it should now be dropped. --

[issue20913] Standard Library documentation needs SSL security best practices doc.

2014-03-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'd add a sentence to this paragraph """If a client certificate is needed for the connection, it can be added with context.load_cert_chain(path_to_certificate, path_to_private_key) """ Then, in all places where a context and cert/key parameters are allowed (e

[issue20785] Missing symbols in Python27.lib (Windows 64bit)

2014-03-14 Thread Victor Lazzarini
Victor Lazzarini added the comment: I don't know how to patch the installer, but here are the commands for someone who does. You need gendef and dlltool, which should come with the standard mingw64 installation. >From python27.dll: $ gendef python27.dll $ dlltool --as-flags=--64 -m i386:x86-64

[issue20867] fix_import in 2to3 adds spurious relative import (windows)

2014-03-14 Thread Éric Araujo
Éric Araujo added the comment: Hello, thanks for the report. Is this the same issue as #19510? -- nosy: +eric.araujo ___ Python tracker ___ _

[issue20785] Missing symbols in Python27.lib (Windows 64bit)

2014-03-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: If somebody would contribute a patch for msi.py that builds the file, and instructs me what tools I need installed, I'd be willing to include this in future releases (also for 2.7). -- ___ Python tracker

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

2014-03-14 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue20924] openssl init 100% CPU utilization

2014-03-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: Antoine: init_ssl would be the entry function of _ssl.c, not code from OpenSSL. bob: It's doubtful though that the stack trace is right, since init_ssl doesn't call itself. Did you install the Python PDB files for 2.7.6 before obtaining this stack trace? Th

[issue20879] base64 module of Python 3.4 uses 920 kB of memory

2014-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, our patches are almost same so your patch LGTM (and it has more comments). But note that my initialization of _b32tab2 is a little faster (bytes() is called 32 times instead of 1024). -- ___ Python tracker

[issue20879] base64 module of Python 3.4 uses 920 kB of memory

2014-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't like base64_urlparse_lazy_init-3.patch at all. It waste memory and time for initializing of non-needed tables in case when only encoding or only decoding is used. Here is new patch based on base64_urlparse_lazy_init-2.patch. Unlike to my patch, it d

[issue20926] Devguide: Enhance Quick Start portion of instructions for Windows

2014-03-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch! You will also have to sign a contributor's agreement at http://www.python.org/psf/contrib/contrib-form/ A nit: there's a dedicated "note" markup tag that you can use: http://docutils.sourceforge.net/docs/ref/rst/directives.html#specific-ad

[issue17006] Add advice on best practices for hashing secrets

2014-03-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note boxes have nothing to do with warnings, we should discuss them separately if needed. (I see nothing wrong with multiple notes, given that a note is generally something ancillary and optional) -- nosy: +pitrou _

[issue20924] openssl init 100% CPU utilization

2014-03-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue20879] base64 module of Python 3.4 uses 920 kB of memory

2014-03-14 Thread STINNER Victor
STINNER Victor added the comment: Sorry, it took me many tries to write the perfect patch :-) The current code has artificial dependencies between variables and has references to variables when they are not needed in fact. base64_urlparse_lazy_init-4.patch should be even simpler. -- A

[issue20924] openssl init 100% CPU utilization

2014-03-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Have you tried reporting this to the OpenSSL project? This doesn't sound like a bug in Python. Also, 0.9.8y is the current latest version in the 0.9.8 line, and we are unlikely to switch the 2.7 Windows builds to OpenSSL 1.x, I think (but ultimately that's Mar

[issue20692] Tutorial section 9.4 and FAQ: how to call a method on an int

2014-03-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: I am not a native English speaker, but Sreepriya's latest patch looks ok to me (I am not sure the link from classes.rst is useful, though). Sreepriya, have you already signed the contributor's agreement? Otherwise, you can sign it online at http://www.python.o

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

2014-03-14 Thread R. David Murray
R. David Murray added the comment: Your cwd is relative. What happens if you make it absolute? (What I'm thinking is that the non-shell starting cwd may be different on windows than it is on unix...but I don't know windows very well, so this may be irrelevant...) -- nosy: +r.david.mu

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

2014-03-14 Thread Jovik
New submission from Jovik: This works on Linux as expected: import subprocess proc = subprocess.Popen(["./app"], stdout=subprocess.PIPE, cwd="workspace") but on Windows I get: FileNotFoundError: [WinError 2] The system cannot find the file specified To successfully execute it on Windows I need

[issue20879] base64 module of Python 3.4 uses 920 kB of memory

2014-03-14 Thread STINNER Victor
STINNER Victor added the comment: Serhiy wrote on Rietveld: "As far as this constant is repeated twice, it wastes memory and errorprone." Oh, I expected marshal to be smart and use references, but it does not. Here is a simpler patch which initialize all base85 tables at once using a "b85alpha

[issue18566] In unittest.TestCase docs for setUp() and tearDown() don't mention AssertionError

2014-03-14 Thread Sreepriya Chalakkal
Changes by Sreepriya Chalakkal : Added file: http://bugs.python.org/file34420/doc18566.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue20926] Devguide: Enhance Quick Start portion of instructions for Windows

2014-03-14 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- title: Debguide: Enhance Quick Start portion of instructions for Windows -> Devguide: Enhance Quick Start portion of instructions for Windows ___ Python tracker

[issue20926] Debguide: Enhance Quick Start portion of instructions for Windows

2014-03-14 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- title: Enhance Quick Start portion of instructions for Windows -> Debguide: Enhance Quick Start portion of instructions for Windows ___ Python tracker __

[issue20926] Enhance Quick Start portion of instructions for Windows

2014-03-14 Thread Kathleen Weaver
Kathleen Weaver added the comment: Added sentence to indicate errors are thrown but it still works. -- keywords: +patch Added file: http://bugs.python.org/file34419/kweaver.patch ___ Python tracker

[issue20926] Enhance Quick Start portion of instructions for Windows

2014-03-14 Thread Kathleen Weaver
New submission from Kathleen Weaver: Current text reads: On Windows, open the solution file PCbuild\pcbuild.sln in Visual Studio, select Debug, and Build ‣ Build Solution. Run Tools\buildbot\external.bat or Tools\buildbot\external-amd64.bat to download and compile 3rd party libraries. While i

[issue20879] base64 module of Python 3.4 uses 920 kB of memory

2014-03-14 Thread STINNER Victor
STINNER Victor added the comment: I combined the two patches and I tried to address all comments: base64_urlparse_lazy_init-2.patch. -- Added file: http://bugs.python.org/file34418/base64_urlparse_lazy_init-2.patch ___ Python tracker

[issue20925] Update TLS version connection table

2014-03-14 Thread Christian Heimes
Christian Heimes added the comment: D'oh. I guess I looked at the http://docs.python.org/3/ docs which still forward to 3.3 and then posted the link to 3.4 ... :| -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue20879] base64 module of Python 3.4 uses 920 kB of memory

2014-03-14 Thread STINNER Victor
STINNER Victor added the comment: urlparse_lazy_init.patch looks good, but you should add a comment explaining your change. See my review: http://bugs.python.org/review/20879/ -- ___ Python tracker ___

[issue17006] Add advice on best practices for hashing secrets

2014-03-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: +1 to reducing the number of notes, and to a security HOWTO. (Christian: if you need writing help, please let me know; I'd be happy to help.) -- nosy: +akuchling ___ Python tracker

  1   2   >