[issue14292] OS X installer build script doesn't set $CXX, so it ends up as "c++"

2012-08-22 Thread Ned Deily
Ned Deily added the comment: Fix applied for 3.3.0. All build-installer fixes will be backported for 2.7.4 and 3.2.4. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-22 Thread Ned Deily
Ned Deily added the comment: Fixes applied for release in 2.7.4, 3.2.4, and 3.3.0. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed type: compile error -> versions: +Python 2.7, Python 3.2 ___ Python tracker

[issue14292] OS X installer build script doesn't set $CXX, so it ends up as "c++"

2012-08-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1f27572a10ce by Ned Deily in branch 'default': Issue #14292: Ensure that the OS X installer build configures the CXX http://hg.python.org/cpython/rev/1f27572a10ce -- nosy: +python-dev ___ Python tracker

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 787ed9b03ef9 by Ned Deily in branch '2.7': Issue #15645: Ensure 2to3 grammar pickles are properly installed. http://hg.python.org/cpython/rev/787ed9b03ef9 New changeset a377a4298b4e by Ned Deily in branch '3.2': Issue #15645: Ensure 2to3 grammar pic

[issue13370] test_ctypes fails when building python with clang

2012-08-22 Thread Ned Deily
Ned Deily added the comment: I just noticed another anomaly in the patch. In x86-ffi_darwin.c there appears to be some bogus code duplicating ffi_prep_args. Could you review and clean up the patch before we apply it? -- stage: needs patch -> commit review

[issue1578643] various datetime methods fail in restricted mode

2012-08-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue665194] datetime-RFC2822 roundtripping

2012-08-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue665194] datetime-RFC2822 roundtripping

2012-08-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c134e6ba0df by Alexander Belopolsky in branch 'default': Issue #665194: Added a small optimization http://hg.python.org/cpython/rev/4c134e6ba0df -- ___ Python tracker

[issue15570] email.header.decode_header parses differently

2012-08-22 Thread R. David Murray
R. David Murray added the comment: Absent an argument in favor of reversion, I'm closing this. -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue665194] datetime-RFC2822 roundtripping

2012-08-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 604222c1f8a0 by Alexander Belopolsky in branch 'default': Added test for a bug fixed in issue #665194. http://hg.python.org/cpython/rev/604222c1f8a0 -- ___ Python tracker

[issue665194] datetime-RFC2822 roundtripping

2012-08-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset a2d83fba8fd8 by R David Murray in branch 'default': #665194: fix variable name in exception code path. http://hg.python.org/cpython/rev/a2d83fba8fd8 -- ___ Python tracker

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-08-22 Thread R. David Murray
R. David Murray added the comment: Unfortunately I don't feel qualified to review the patch itself since I'm not a windows user and don't currently even have a windows box to test on. Hopefully one of the windows devs will take a look; the patch looks to be fairly straightforward to evaluate

[issue15769] urllib.request.urlopen with cafile or capath set overrides any previous Handlers

2012-08-22 Thread R. David Murray
R. David Murray added the comment: I thought that was an issue when I was looking at the code the other day, but I didn't get around to testing it. Thanks for the report. -- nosy: +orsenthil, pitrou, r.david.murray stage: -> needs patch ___ Python

[issue665194] datetime-RFC2822 roundtripping

2012-08-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue665194] datetime-RFC2822 roundtripping

2012-08-22 Thread R. David Murray
R. David Murray added the comment: Leaving open until the test is committed. -- assignee: r.david.murray -> resolution: accepted -> fixed ___ Python tracker ___ ___

[issue15769] urllib.request.urlopen with cafile or capath set overrides any previous Handlers

2012-08-22 Thread Brian Turek
New submission from Brian Turek: Using the code snippet below: cj = http.cookiejar.CookieJar() opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor()) urllib.request.install_opener(opener) request = urllib.request.Request(url, data, headers) # url is https://something sock = u

[issue665194] datetime-RFC2822 roundtripping

2012-08-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71b9cca81598 by R David Murray in branch 'default': #665194: Update email.utils.localtime to use astimezone, and fix bug. http://hg.python.org/cpython/rev/71b9cca81598 -- ___ Python tracker

[issue665194] datetime-RFC2822 roundtripping

2012-08-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Please commit. I'll add the test. On Wed, Aug 22, 2012 at 9:11 PM, R. David Murray wrote: > > R. David Murray added the comment: > > I think restricting the test is fine. If we find a platform-specific bug on > another platform we can add a test specif

[issue665194] datetime-RFC2822 roundtripping

2012-08-22 Thread R. David Murray
R. David Murray added the comment: I think restricting the test is fine. If we find a platform-specific bug on another platform we can add a test specific to that platform when we fix the bug. Can you provide the test? I'm going to commit what I've got at this point to make sure I don't mis

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS

2012-08-22 Thread Larry Hastings
Larry Hastings added the comment: Yes, but the code should still work. The test that's failing reads the atime/mtime from a file, then writes those values out to the file, then reads again to confirm that they're the same. That should always work. --

[issue15768] re.sub() with re.MULTILINE not replacing all occurrences

2012-08-22 Thread Eric Cousineau
Eric Cousineau added the comment: Looks like I was just writing my code incorrectly - I should have been using re.sub(..., flags = re.MULTILINE). That explains it. -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue15768] re.sub() with re.MULTILINE not replacing all occurrences

2012-08-22 Thread Eric Cousineau
New submission from Eric Cousineau: [Copying post I made here: http://stackoverflow.com/questions/12082886/bug-in-python-regex-re-sub-with-re-multiline] I'm noticing some odd behavior in Python's Regex library, and I'm not sure if I'm doing something wrong. If I run a regex on it using re.sub

[issue15748] Various symlink test failures in test_shutil on FreeBSD

2012-08-22 Thread Larry Hastings
Larry Hastings added the comment: haypo: If a series of shell commands duplicated the problem, then okay, but I suspect the problem has to do with persistent state in the process and will only be reproducible with a C program. -- ___ Python tracker

[issue15767] add ModuleNotFoundError

2012-08-22 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +cjerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue15316] runpy swallows ImportError information with relative imports

2012-08-22 Thread Eric Snow
Eric Snow added the comment: > While I prefer 3, I think it's a bit late in the release to try to > introduce a new exception to begin separating the meaning of 16 > different ``raise ImportError`` cases in importlib._bootstrap based on > inheritance. My gut says 4 is the best solution given the

[issue15767] add ModuleNotFoundError

2012-08-22 Thread Eric Snow
New submission from Eric Snow: In issue 15316 (msg168896, Brett Cannon): Create a ModuleNotFoundError exception that subclasses ImportError and catch that (breaks doctests and introduces a new exception that people will need to be aware of, plus the question of whether it should just exi

[issue15316] runpy swallows ImportError information with relative imports

2012-08-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: You're welcome, Brett. I'll let you or someone else recast the test using the latest preferred techniques. I was just using the style of the immediately surrounding tests. -- ___ Python tracker

[issue15316] runpy swallows ImportError information with relative imports

2012-08-22 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the test, Chris. It can probably be simplified using the utilities in test_importlib (e.g. managing the cleanup of sys.path, using mocked loaders to raise the exception instead of having to write to the file system, etc.), but otherwise the idea of th

[issue15316] runpy swallows ImportError information with relative imports

2012-08-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is a formal unit test case that passes in 3.2 but not in 3.3 (a "simpler" case not using __main__.py). (script_helper.create_empty_file() doesn't seem to be available in 3.2.) -- keywords: +patch Added file: http://bugs.python.org/file26967/issue-

[issue15765] test_getcwd_long_pathnames (in test_posix) kills NetBSD

2012-08-22 Thread Stefan Krah
Stefan Krah added the comment: The timeouts on NetBSD and OpenBSD are very likely related to bugs in the user-space thread libraries. See also #8714. I would recommend running these bots --without-threads. -- nosy: +skrah ___ Python tracker

[issue11776] Constructor signatures missing in types module documentation

2012-08-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: "class types.MappingProxyType(mapping) Read-only proxy of a mapping. ..." is the only class in 7.11.2. Standard Interpreter Types that *does* have a signature given in the text. However, the extra word 'class' here and for SimpleNamespace confuses me (I do no

[issue15766] _imp.load_dynamic() does crash with non-ASCII path and uses the wrong encoding

2012-08-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: The patch is still insufficient. Any of the functions can fail because of memory exhaustion, so a fix should really use the standard error handling procedure. -- nosy: +loewis ___ Python tracker

[issue9374] urlparse should parse query and fragment for arbitrary schemes

2012-08-22 Thread Matthias Klose
Matthias Klose added the comment: this breaks the following upstream builds: createrepo, linkchecker, gwibber, pegasus-wm there is no need to remove is_hierarchical on the branches. it's not used by urlparse at all. is it safe to just keep the uses_query and uses_fragment lists on the branche

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS

2012-08-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > AssertionError: 1345639042446725659 != 1345639042446725000 Well, by the looks of it, some filesystems only have microsecond precision? Would be best to confirm with a {Free,Net}BSD mailing-list, I think. -- nosy: +pitrou _

[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

2012-08-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mercredi 22 août 2012 à 15:49 +, Stefan Mihaila a écrit : > I'm not sure this is the best way to benchmark, so let me know what is > usually used. http://hg.python.org/benchmarks/ has pickling benchmarks, you may have to modify them to test different pick

[issue15316] runpy swallows ImportError information with relative imports

2012-08-22 Thread Brett Cannon
Brett Cannon added the comment: It has nothing to do with runpy and __main__.py and everything to do with rev 78619:0d52f125dd32 (which fixed issue #15715) which was done to ignore bogus names in fromlist. If you simply change the import line to "import foo.bar" then you get the expected resul

[issue14965] super() and property inheritance behavior

2012-08-22 Thread Torsten Landschoff
Torsten Landschoff added the comment: I stumbled across this omission as well in 2010 and brought this up on python-dev: http://mail.python.org/pipermail/python-dev/2010-April/099672.html There were no replies, but perhaps my post adds a bit of information and also there is another patch link

[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

2012-08-22 Thread Stefan Mihaila
Stefan Mihaila added the comment: >- I don't really like the idea of changing the semantics of the PUT and GET >opcodes. I would prefer new opcodes if possible. Well, the semantics of PUT and GET haven't really changed. It's just that the PUT opcode is not generated anymore and memoization is

[issue15766] _imp.load_dynamic() does crash with non-ASCII path and uses the wrong encoding

2012-08-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset eaac55703796 by Victor Stinner in branch 'default': Issue #15766: Fix a crash in imp.load_dynamic() on PyUnicode_FromString() failure http://hg.python.org/cpython/rev/eaac55703796 -- nosy: +python-dev __

[issue15766] _imp.load_dynamic() does crash with non-ASCII path and uses the wrong encoding

2012-08-22 Thread STINNER Victor
New submission from STINNER Victor: _imp.load_dynamic() use UTF-8 (PyUnicode_FromString) to decode the error message from dlerror(), whereas the locale encoding should be used. The path is decoded from UTF-8, whereas the filesystem encoding should be used. As a result, error_ob and path can be

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2012-08-22 Thread Andrew McNabb
Changes by Andrew McNabb : -- nosy: +amcnabb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15762] Windows 8 certification

2012-08-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is not an issue of Python, but py2exe; please report it to the py2exe maintainers. -- resolution: -> invalid status: open -> closed ___ Python tracker _

[issue15316] runpy swallows ImportError information with relative imports

2012-08-22 Thread Jeff Knupp
Changes by Jeff Knupp : -- nosy: +Jeff.Knupp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15764] Sqlite3 performance

2012-08-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is a duplicate of #9303 -- nosy: +loewis resolution: -> duplicate status: open -> closed superseder: -> Migrate sqlite3 module to _v2 API to enhance performance ___ Python tracker

[issue5088] optparse: inconsistent default value for append actions

2012-08-22 Thread R. David Murray
R. David Murray added the comment: It may or may not be too old to deserve comments, but it is too old to do anything about it. This can't change for backward compatibility reasons, and since optparse is deprecated in favor of argparse it isn't getting any new features. We still need to appl

[issue1207589] Right Click Context Menu

2012-08-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue15763] email non-ASCII characters in TO or FROM field doesn't work

2012-08-22 Thread R. David Murray
R. David Murray added the comment: Doing non-ASCII email in python before 3.3 is a bit of a pain and not as well documented as it should be. 3.3 will work more like you expect, if you use the new provisional policies (which are intended to become standard in 3.4, after a the bake-in period in

[issue15748] Various symlink test failures in test_shutil on FreeBSD

2012-08-22 Thread STINNER Victor
STINNER Victor added the comment: I don't understand if the issue comes from symlink() or readlink(). Can you reproduce the issue using commands on the command line? $ ln -s setup.py link `link' -> `setup.py' $ readlink link setup.py (You may need to test different length for filenames.) Do y

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-22 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue15764] Sqlite3 performance

2012-08-22 Thread STINNER Victor
STINNER Victor added the comment: Such change cannot be done in a version older than Python 3.4 (older versions only accept bugfixes, this is an improvment). -- nosy: +haypo versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ P

[issue15765] test_getcwd_long_pathnames (in test_posix) kills NetBSD

2012-08-22 Thread Trent Nelson
New submission from Trent Nelson: The 2.7 builds of both my NetBSD slaves keep hanging on test_posix (and eventually time out after an hour). Running the test manually: netbsd51-x86-1$ pwd /home/cpython/2.7 netbsd51-x86-1$ b/test/regrtest.py -uall -rwW -v test_posix

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-22 Thread STINNER Victor
STINNER Victor added the comment: I'm lost, there are too much patches. Could you please remove old/useless patches? Patching the subprocess module is not a good solution: if there is an issue in the io module, the io module should be fixed, and so this patch can be removed. -- _

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-22 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS

2012-08-22 Thread Trent Nelson
Trent Nelson added the comment: Looks like it's not specific to just FreeBSD, no ZFS. From a new NetBSD slave I set up: == FAIL: test_futimes_ns (test.test_os.StatAttributeTests) ---

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: If new_buffersize() is only used with HAVE_FSTAT, then its code can probably be simplified. -- ___ Python tracker ___ _

[issue15764] Sqlite3 performance

2012-08-22 Thread Jens Henrik Leonhard Jensen
New submission from Jens Henrik Leonhard Jensen: The _sqlite modules uses sqlite3_prepare and not sqlite3_prepare_v2. With sqlite3_prepare_v2 enables more optiomation. Workaround: Do not use parameters as the right hand argument to GLOB or LIKE. For more documentation see http://www.sqlite.org/

[issue8256] input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None

2012-08-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I suggest that since PyOS_Readline() write the prompt to stderr, the > conversion uses the encoding of stderr. Agreed with Amaury. -- nosy: +pitrou ___ Python tracker ___

[issue15716] Ability to specify the PYTHONPATH via a command line flag

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: My fingers are too thick. The two changesets in msg168877 are for issue 15761, not this one. Sorry about the noise. -- nosy: +ronaldoussoren ___ Python tracker __

[issue15761] Setting PYTHONEXECUTABLE can cause segfaults on OS X

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: committed a patch in revisions 526c6262d91f and ae51329f9893. Those won't end up as messages in this issue due to a typo in the check-in message. -- ___ Python tracker __

[issue15716] Ability to specify the PYTHONPATH via a command line flag

2012-08-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 526c6262d91f by Ronald Oussoren in branch '3.2': Fix for issue 15716: interpreter could crash when PYTHONEXECUTABLE was set on Mac OS X. http://hg.python.org/cpython/rev/526c6262d91f New changeset ae51329f9893 by Ronald Oussoren in branch 'default'

[issue15740] test_ssl failure when cacert.org CA cert in system keychain on OSX

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: There is no need to unconditionally skip the test. The cacert.org root certificate is not present on most systems, I just happened to have imported it into my keychain. I've removed the cacert root from my keychain and test_ssl now passed without a patch.

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-22 Thread Richard Oudkerk
Richard Oudkerk added the comment: > It seems we could do both (fix the resizing logic, and fallback on > chunks if the size is unknown). Combined patch attached. -- Added file: http://bugs.python.org/file26963/readall-combined.patch ___ Python track

[issue15740] test_ssl failure when cacert.org CA cert in system keychain on OSX

2012-08-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mercredi 22 août 2012 à 11:57 +, Ronald Oussoren a écrit : > I've attached a 3th version of the patch that also works with 2.7 > (that is, after manually applying the patch). I'm not too happy about > it though, the module now changes the environment of th

[issue8256] input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None

2012-08-22 Thread aliles
aliles added the comment: Replicated this issue on Python 3.3b2. The cause is the 'encoding' and 'errors' attributes on io.StringIO() being None. Doctest replaces sys.stdout with a StringIO subclass. The exception raised is still a TypeError. At this point I'm unsure what the fix should be: 1

[issue15740] test_ssl failure when cacert.org CA cert in system keychain on OSX

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: This also affects 2.7, and the patch doesn't work there. It does work when I add the call to os.putenv at module scope before (before importing ssl), but I don't really like that. It is probably necessary to do it like this though, the code that checks if th

[issue12716] Reorganize os docs for files/dirs/fds

2012-08-22 Thread Mike Hoy
Mike Hoy added the comment: I was attempting to create a patch for this but all I have is moving fchmod() below chmod(). I was unable to find fchmodat() in os.rst. And I need further clarification on >>Also, symbolic constants should be close to the functions they are used >>in. >>For exampl

[issue15748] Various symlink test failures in test_shutil on FreeBSD

2012-08-22 Thread Trent Nelson
Trent Nelson added the comment: Hm... tested against other types of file systems and didn't see any issues. Tested manually against ZFS again: % ~/src/cpython/python /tmp/test_readlink.py temp dir: /mnt/t-zfs/trent/d_6i51 path 1: /mnt/t-zfs/trent/d_6i51/qux, length 1: 27, buf 1:

[issue15763] email non-ASCII characters in TO or FROM field doesn't work

2012-08-22 Thread Helmut Jarausch
New submission from Helmut Jarausch: Trying to generate an email with Latin-1 characters in the TO or FROM field either produces an exception or produces strange values in the generated email: Using Python 3.2.3+ (3.2:481f5d9ef577+, Aug 8 2012, 10:00:28) #!/usr/bin/python3 #-*- coding: lat

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2012-08-22 Thread aliles
aliles added the comment: I agree that the second patch adds little value to InteractiveConsole. A third alternative would be to accept default grammar start symbol to be passed to __init__(). Although this would prevent mixing use of 'single' with 'exec'. --

[issue15762] Windows 8 certification

2012-08-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15762] Windows 8 certification

2012-08-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: eric.araujo -> components: +Windows -Distutils nosy: +loewis versions: +Python 3.2, Python 3.3 ___ Python tracker ___ __

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2012-08-22 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Alternative patch (readall-chunks.patch) which delegates to > RawIOBase.readall() if the file cannot be stat-ed or appears to have > size zero. It seems we could do both (fix the resizing logic, and fallback on chunks if the size is unknown). --

[issue11776] Constructor signatures missing in types module documentation

2012-08-22 Thread Nick Coghlan
Nick Coghlan added the comment: The first easy part of this patch is to document the signatures for types in that module where that info is available in the docstring: CodeType FunctionType LambdaType SimpleNamespace MethodType The second easy part is that the following need to be documented a

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-22 Thread Richard Oudkerk
Richard Oudkerk added the comment: Alternative patch (readall-chunks.patch) which delegates to RawIOBase.readall() if the file cannot be stat-ed or appears to have size zero. amount = 1 MB; time taken = 0.02 secs; rate = 64.10 MB/s amount = 2 MB; time taken = 0.02 secs; rate = 128.21 MB/s amoun

[issue11776] Constructor signatures missing in types module documentation

2012-08-22 Thread Nick Coghlan
Nick Coghlan added the comment: Clarifying the request: the constructor signatures for internal types should be documented in http://docs.python.org/dev/library/types, rather than just listing the types. If creation of new instances from Python is not supported, that should also be documented

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-22 Thread Richard Oudkerk
Richard Oudkerk added the comment: The attached patch (readall-resize.patch) makes the resizes only happen when the buffer is full. It produces amount = 1 MB; time taken = 0.02 secs; rate = 64.10 MB/s amount = 2 MB; time taken = 0.03 secs; rate = 64.10 MB/s amount = 4 MB; time taken = 0.06 sec

[issue15758] 500x speed up for Popen.communicate() on Windows

2012-08-22 Thread Richard Oudkerk
Richard Oudkerk added the comment: In each loop before calling read() the buffer size is recalculated based on the amount of space used, causing a realloc *regardless* of how much empty space is left in the buffer. And each read is only producing a smallish chunk (5120 bytes). So assuming re

[issue15761] Setting PYTHONEXECUTABLE can cause segfaults on OS X

2012-08-22 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue15761] Setting PYTHONEXECUTABLE can cause segfaults on OS X

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: I can now reproduce the isue: env PYTHONHOME=/Library/Frameworks/Python.framework/Versions/3.3 PYTHONEXECUTABLE=/bin/bash MallocGuardEdges=1 MallocStackLogging=1 MallocScribble=1 MallocStackLoggingNoCompact=1 MallocCheckHeapEach=1 arch -i386 python3.3 -c '

[issue15761] Setting PYTHONEXECUTABLE can cause segfaults on OS X

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: There could be an off by one error in the decoding of PYTHONEXECUTABLE, mbstowcs will only add a NUL character when there is room for one and when the environment variable is all ASCII the buffer isn't large enough which means the argument to Py_SetProgramNam

[issue15762] Windows 8 certification

2012-08-22 Thread Aaron Galea
New submission from Aaron Galea: Hi We have an application created with python2.7 and created into an executable using py2exe. However we are getting an issue with Windows 8 certification due to compiler parameters. We would like to have this application Windows 8 certified but we can't get p

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-22 Thread Lennart Regebro
Lennart Regebro added the comment: I can confirm that this is an issue on Ubuntu 12.04 as well, and that removing the existing pre 3.3b2 install before installing solves the problem. -- nosy: +lregebro ___ Python tracker

[issue15760] make install should generate grammar file

2012-08-22 Thread Lennart Regebro
Lennart Regebro added the comment: Yes, and for some reason it didn't show up when I searched for "Grammar" 10 minutes ago, but now it does. :-) It's a duplicate, indeed. -- status: open -> closed ___ Python tracker

[issue15761] Setting PYTHONEXECUTABLE can cause segfaults on OS X

2012-08-22 Thread Ned Deily
New submission from Ned Deily: Setting the environment variable PYTHONEXECUTABLE can cause the interpreter to crash with a segfault or to otherwise fail during initialization. Another manifestation is the failure of test test_osx_env with: AssertionError: -10 != 2 : expected PYTHONEXECUTABLE

[issue15760] make install should generate grammar file

2012-08-22 Thread Hynek Schlawack
Hynek Schlawack added the comment: Seems related to #15645, no? -- nosy: +hynek ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue15760] make install should generate grammar file

2012-08-22 Thread Lennart Regebro
Changes by Lennart Regebro : -- components: +Installation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue15760] make install should generate grammar file

2012-08-22 Thread Lennart Regebro
New submission from Lennart Regebro: If you install Python 3.3b2 with "sudo make install", a standard way of installing it so that users don't have rights to install global modules, then everytime lib2to3.pgen2.driver.load_grammar() is called, it aims to generate a a grammar table and write it

[issue13370] test_ctypes fails when building python with clang

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: The change to ppc-ffi_darwin.c was unintentional and should be removed. I must have been sleeping during the merge, as I only intended to copy the files for i386/x86_64 and not for PPC as the latter architecture didn't have problems when compiled with clang.

[issue13405] Add DTrace probes

2012-08-22 Thread Samuel John
Samuel John added the comment: On OS X 10.8 with Xcode only (no command line tools), I get the following err (when using clang or when using llvm-gcc): ``` dtrace: failed to compile script ./Include/pydtrace.d: Preprocessor not found make: *** [Include/pydtrace.h] Error 1 ``` At homebrew we op

[issue14292] OS X installer build script doesn't set $CXX, so it ends up as "c++"

2012-08-22 Thread Ronald Oussoren
Changes by Ronald Oussoren : Added file: http://bugs.python.org/file26957/issue14292.txt ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue15757] ./configure --with-pydebug on FreeBSD results in -O2 -pipe eventually ending up in CFLAGS.

2012-08-22 Thread Stefan Krah
Stefan Krah added the comment: > So, looks like FreeBSD's /usr/share/mk/sys.mk is to blame here. > It unconditionally sets CFLAGS to `-O2 -pipe`. I've been debugging this once, too. My conclusion was that if the OS is set up that way, we shouldn't do anything about it in the Python source tree.

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2012-08-22 Thread Nick Coghlan
Nick Coghlan added the comment: Aaron was looking for something to work on for the PyConAU sprints, and set himself the task of closing as many issues related to the code module as possible. The main outcome of that was the new test suite added in #12643, which should make it easier to work o

[issue14292] OS X installer build script doesn't set $CXX, so it ends up as "c++"

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch sets not just 'CC' but 'CXX' as well. I haven't tested the patch beyond building on an OSX 10.8 system (that is, the primary use of the script is not tested) -- ___ Python tracker

[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2012-08-22 Thread danblack
danblack added the comment: > Thanks for the patch > Daniel. 3.3 is nearing the release candidate phase, so I'm re-targetting to > 3.4. I'll take a detailed look soon. Welcome. Just noticed conflicts with #4473 in the client POP implementation. Hopefully they are close anyway. > (I suppose th

[issue5088] optparse: inconsistent default value for append actions

2012-08-22 Thread Louis Deflandre
Louis Deflandre added the comment: Hello, Tell me if the issue is too old to deserve comments anymore. But I would like to challenge the conclusion made in this issue. The message msg9944 stated "Think of the default as the initial list" but it is inconsistent with the proper meaning of defau

[issue15316] runpy swallows ImportError information with relative imports

2012-08-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: Should this issue be fixed before the release? If it is not fixed, certain problems found after the release may become harder to report and diagnose (because the true source of error will be masked). Two months ago issue 15111 which was thought to be the same

[issue1207589] Right Click Context Menu

2012-08-22 Thread Nashev
Nashev added the comment: display assigned hot keys in popup menu is must-have feature, that allow users to teach them while using commands by menu or by context menu. For examples look Delphi IDE -- ___ Python tracker