[issue18385] Add devhelp build instructions to the documentation makefile (Python2)

2013-07-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Add devhelp build instructions to the documentation makefile ___ Python tracker __

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2013-07-06 Thread Dmitry Jemerov
Dmitry Jemerov added the comment: A related issue (with a patch that touches the same locale parsing code) is http://bugs.python.org/issue5815 -- ___ Python tracker ___

[issue5815] locale.getdefaultlocale() missing corner case

2013-07-06 Thread Dmitry Jemerov
Dmitry Jemerov added the comment: A related issue (a case which isn't taken into account by Serhiy's patch) is http://bugs.python.org/issue18378 -- nosy: +Dmitry.Jemerov ___ Python tracker _

[issue15661] OS X installer packages should be signed for OS X 10.8 Gatekeeper feature

2013-07-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: I just created a very crude package with the "new" tools. $ pkgbuild --analyze --root /tmp/_py/_root pkgbuild.plist ... $ pkgbuild --root /tmp/_py/_root --identifier org.python.python34 --component-plist pkgbuild.plist pythoninstall.pkg pkgbuild: Reading comp

[issue18231] What's new in Python should explain what's new in UCD

2013-07-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It is not easy to figure out the consequences (if any) of UCD change for python grammar from unicode standard release notes. I went through this exercise for a few releases and I thought it would be useful to share in release notes. Since there does no

[issue14853] test_file.py depends on sys.stdin being unseekable

2013-07-06 Thread Elena Oat
Elena Oat added the comment: testStdin test is useless, it expects that stdin is always unseekable, but since sys.stdin could be any file, i.e. it can be seekable. The patch removes the test. -- keywords: +patch nosy: +Elena.Oat, pitrou Added file: http://bugs.python.org/file30828/14

[issue14853] test_file.py depends on sys.stdin being unseekable

2013-07-06 Thread Ezio Melotti
Ezio Melotti added the comment: FTR Python 3 raises "io.UnsupportedOperation: underlying stream is not seekable" on unseekable files and "ValueError: negative seek position -1" on seekable ones, whereas Python 2 raises "IOError: [Errno 29] Illegal seek" on unseekable files and doesn't raise an

[issue18370] ast.parse produces wrong lineno and col_offset for triple-quoted strings

2013-07-06 Thread Brett Cannon
Changes by Brett Cannon : -- superseder: -> col_offset is -1 and lineno is wrong for multiline string expressions ___ Python tracker ___ ___

[issue18156] Add an 'attr' attribute to AttributeError

2013-07-06 Thread Dražen Lučanin
Dražen Lučanin added the comment: I've been working on this at the EuroPython sprint today and it seems the change requires editing >20 files that call PyExc_AttributeError. This means it would be quite a big and dangerous change, so for now I just attach the optional argument addition - witho

[issue18308] checkRecvmsgAddress wrong in test_socket.py (AIX failures)

2013-07-06 Thread David Edelsohn
David Edelsohn added the comment: The patch in msg192405 works and fixes that error on AIX. That is exactly what I had in mind, but I incorrectly had been looking higher up the class hierarchy to override the method. Thanks! -- ___ Python tracker <

[issue18156] Add an 'attr' attribute to AttributeError

2013-07-06 Thread Andrea Griffini
Andrea Griffini added the comment: Even porting to the new wonderful 'attr' field is not going to make the code correct... (the exception could be bubbling up from code down ten frames about a different unrelated attribute that happens to have the same name in a different object). BTW cpython

[issue18386] Better random number generator

2013-07-06 Thread James Lu
New submission from James Lu: http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/index.html#dSFMT You might want to use a better algorithm -- components: Library (Lib) files: dSFMT-src-2.2.1.zip messages: 192469 nosy: James.Lu priority: normal severity: normal status: open title: Bette

[issue18386] Better random number generator

2013-07-06 Thread James Lu
Changes by James Lu : -- nosy: -James.Lu type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18156] Add an 'attr' attribute to AttributeError

2013-07-06 Thread Brett Cannon
Brett Cannon added the comment: Dražen: didn't do a deep review, but a cursory look suggests the patch is fine. As for having to change a ton of files to start using the attribute, that's part of the effect of changing something as basic as an exception. If you would rather break it up into se

[issue18387] Add 'symbols' link to html menu bar.

2013-07-06 Thread Ron Adam
New submission from Ron Adam: This patch adds a 'symbols' link after the 'topics' and 'keywords' links in the html browser menu bar. help('symbols') worked, but there was no way to get to it in the html browser. This also adds unquote_plus() to the url handler to unquote the html input form f

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-06 Thread Ron Adam
Changes by Ron Adam : -- title: Add 'symbols' link to html menu bar. -> Add 'symbols' link to pydoc's html menu bar. ___ Python tracker ___ _

[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile

2013-07-06 Thread Brett Cannon
Brett Cannon added the comment: When I wrote that code I was struggling to untangle the C code and it was driving me up the wall because it was code unique to the C API and was just ever so slightly different. Anyway, the patch looks great! When I have time I will commit it to 3.3 and 3.4. --

[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile

2013-07-06 Thread Brett Cannon
Changes by Brett Cannon : -- stage: test needed -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18136] Put local build paths before system build paths in configure.ac and Makefile.pre.in

2013-07-06 Thread Brett Cannon
Brett Cannon added the comment: I'm closing to close this then if Ronald can't reproduce as I have changed computers now and so my setup has shifted. Hopefully I was just a random case. -- resolution: -> works for me status: open -> closed ___ Pytho

[issue18360] Won't install. Keeps telling me DLL is missing.

2013-07-06 Thread Dale Smith
Dale Smith added the comment: I do see install and it tries to install. When I click "run" and go to the install menu, I select for "All users" and next and the generic "a dll is missing" message pops up. I'll explore this more. I do not have problems installing anything else. Thank you!

[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c

2013-07-06 Thread Brett Cannon
Brett Cannon added the comment: Tomasz, can you sign the contributor agreement (http://python.org/psf/contrib/contrib-form/) so we can commit your code? -- ___ Python tracker __

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-07-06 Thread Brett Cannon
Brett Cannon added the comment: Senko, could you sign the contributor agreement (http://python.org/psf/contrib/contrib-form/) so we can use your patch? -- ___ Python tracker ___

[issue18388] Link to the contributor agreement from devinabox

2013-07-06 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon keywords: easy nosy: brett.cannon priority: low severity: normal status: open title: Link to the contributor agreement from devinabox ___ Python tracker _

[issue7982] extend captured_output to simulate different stdout.encoding

2013-07-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue18360] Won't install. Keeps telling me DLL is missing.

2013-07-06 Thread Dale Smith
Dale Smith added the comment: I tried everything that is available to "repair" my Windows 7 installer (unregistered/restarted the service etc). Everything installs fine except this installer. -- ___ Python tracker

[issue18360] Won't install. Keeps telling me DLL is missing.

2013-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for the snips. Have you installed other applications that use a .msi installer (many do not). Have you tried another Python installer? For instance, change .5 to .3 in your link. Are you using a 64-bit installer on 32-bit Windows? It seems not as the

[issue18095] unable to invoke socket.connect with AF_UNSPEC

2013-07-06 Thread Martin Gergov
Martin Gergov added the comment: --- a/Modules/socketmodule.cTue Jul 02 09:07:53 2013 -0400 +++ b/Modules/socketmodule.cSat Jul 06 21:08:40 2013 +0300 @@ -3673,6 +3673,15 @@ { int how; int res; +struct sockaddr_in sin; +if (s->sock_type == SOCK_DGRAM){ +memset((

[issue18095] unable to invoke socket.connect with AF_UNSPEC

2013-07-06 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue18329] for line in socket.makefile() speed degradation

2013-07-06 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue18360] Won't install. Keeps telling me DLL is missing.

2013-07-06 Thread Dale Smith
Dale Smith added the comment: I do not know when but there is a version that seems to be installed. It's in my programs folder. I opened the python shell and it says it is Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 It still does not explain the dll er

[issue18364] Remove _not_found hack from importlib

2013-07-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d590683c8d1 by Brett Cannon in branch 'default': Issue #18364: Stop using the ImportError._not_found hack. http://hg.python.org/cpython/rev/0d590683c8d1 -- nosy: +python-dev ___ Python tracker

[issue18364] Remove _not_found hack from importlib

2013-07-06 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library

2013-07-06 Thread Ed Campbell
Changes by Ed Campbell : -- nosy: +esc24 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile

2013-07-06 Thread Madison May
Madison May added the comment: I can imagine that would be incredibly frustrating -- it would drive me up the wall as well. Anyhow, glad to hear things looked good. I really appreciate your help guiding me through this one. -- ___ Python tracker

[issue18360] Won't install. Keeps telling me DLL is missing.

2013-07-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: Please open a cmd.exe shell, change to the directory containing the MSI file, and run msiexec /i python-2.7.5.msi /l*v python.log Then attach the resulting python.log file. If it is too large, compress it to a zip file. -- _

[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-06 Thread Jonathan Eldridge
New submission from Jonathan Eldridge: With the following directory structure: computer$ ls foo/ computer$ ls foo/ bar/ foo_file.txt computer$ ls foo/bar/ bar_file.txt Running: os.path.relpath('foo/bar/bar_file.txt', 'foo/foo_file.txt') Returns: '../bar/bar_f

[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-06 Thread Jonathan Eldridge
Changes by Jonathan Eldridge : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c

2013-07-06 Thread Tomasz Maćkowiak
Tomasz Maćkowiak added the comment: Signed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-07-06 Thread V.E.O
V.E.O added the comment: Tested on MSVCRT110.DLL (11.0.51106.1 released in 2012/11/05). Previous one 11.0.50727.1 released in 2012/07/26 does not have this problem. This problem better be fixed in Python for MS does not have clear document. -- nosy: +V.E.O _

[issue18382] multiprocessing's overlapped PipeConnection issues on Windows 8

2013-07-06 Thread Walter Prins
Walter Prins added the comment: On 6 July 2013 16:44, Richard Oudkerk wrote: > > Richard Oudkerk added the comment: > > Does that test always fail? Yes it does. I should've probably added in the original report that the following test (test_strings) also fail, possibly/probably due to the sam

Re: [issue15661] OS X installer packages should be signed for OS X 10.8 Gatekeeper feature

2013-07-06 Thread Ned Deily
> That package can then be opened using installer.app, but isn't usable as it. > > !) There are no pre/post scripts > > 2) User cannot select components > > 3) There is no README, License, custom logo, ... > > 4) I'm pretty sure this doesn't install the documentation > > It might be possible

[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-06 Thread Madison May
Madison May added the comment: So the problem arises because a path to a file (not a path to a directory) is passed as an argument to start. So the way I see it, we could go one of several directions: 1) We could check for the presence of an extension in the start argument, and truncate star

[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile

2013-07-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset b8028f74bac4 by Brett Cannon in branch '3.3': Issue #18351: Fix various issues with http://hg.python.org/cpython/rev/b8028f74bac4 New changeset e80634ad5a0e by Brett Cannon in branch 'default': merge for issue #18351. http://hg.python.org/cpython/re

[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-06 Thread Madison May
Madison May added the comment: Whoops -- I forgot to actually upload the patch. Here it is. -- keywords: +patch Added file: http://bugs.python.org/file30833/relpath.patch ___ Python tracker ___

[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-06 Thread Jonathan Eldridge
Jonathan Eldridge added the comment: Seems like you could also narrow the case where the incorrect behavior occurs for files without an extension by doing a os.path.isfile check as well--that will only return True for cases where the file exists, but then relpath could work correctly for all

[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile

2013-07-06 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, Madison! Added you to the ACKS file. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker _

[issue18390] Better documenting of ``hg revert -r`` when merging with another branch

2013-07-06 Thread Brett Cannon
New submission from Brett Cannon: While the dev FAQ mentions it under null merges (http://docs.python.org/devguide/faq.html#how-do-i-make-a-null-merge), it probably should mention it under the merging section of http://docs.python.org/devguide/committing.html#merging-between-different-branches

[issue18379] SSLSocket.getpeercert(): OCSP and CRL DP URIs

2013-07-06 Thread Christian Heimes
Christian Heimes added the comment: Updated patch with test, doc updates and a third field. I have added CDP and two AIA URIs: crlDistributionPoints, caIssuers and OCSP -- Added file: http://bugs.python.org/file30834/ssl_ocsp_crldp.patch ___ Python t

[issue18379] SSLSocket.getpeercert(): OCSP and CRL DP URIs

2013-07-06 Thread Christian Heimes
Changes by Christian Heimes : Removed file: http://bugs.python.org/file30810/ssl_ocsp_crldp.patch ___ Python tracker ___ ___ Python-bugs-list

[issue6671] webbrowser doesn't respect xfce default browser

2013-07-06 Thread Éric Araujo
Éric Araujo added the comment: It’s not surprising to see differences in the environment given the complexity of X startup. I run xfce-session from lightdm, and I don’t have XDG_CURRENT_SESSION set. Still, it’s not too bad to have to check two envvars to determine we are on Xfce. --

[issue6671] webbrowser doesn't respect xfce default browser

2013-07-06 Thread Éric Araujo
Éric Araujo added the comment: XDG_CURRENT_DESKTOP* -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-07-06 Thread Christian Heimes
Christian Heimes added the comment: Python 3.2 is in security fix mode. Bug fixes such as this issue don't count as security fix. Are you able to update to Python 3.3? Python 2.7 has a different implementation and uses FILE* instead of file descriptors. -- components: +Windows nosy: +c

[issue15705] PEP 3121, 384 Refactoring applied to sha256 module

2013-07-06 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2013-07-06 Thread Christian Heimes
Christian Heimes added the comment: Python 3.3 has been released a while ago and is in bug fix mode. Personally I'm against this enhancement. It adds a digest auth scheme that is based on a broken and insecure hashing algorithm. -- nosy: +christian.heimes resolution: accepted -> type:

[issue15704] PEP 3121, 384 Refactoring applied to sha1 module

2013-07-06 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue15706] PEP 3121, 384 Refactoring applied to sha512 module

2013-07-06 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue18391] socket.fromfd()'s API is difficult or impossible to use correctly in general

2013-07-06 Thread Chris Siebenmann
New submission from Chris Siebenmann: socket.fromfd() requires you to supply at least the family and type of the file descriptor that you are turning into a Python socket object. However the socket module provides no documented way to determine what these actually are and there are any number of

[issue18391] socket.fromfd()'s API is difficult or impossible to use correctly in general

2013-07-06 Thread Christian Heimes
Christian Heimes added the comment: Unfortunately it's not as easy as you may think. BSD sockets have no portable API to retrieve domain, type and protocol from a file descriptor. getsockopt() may be able to retrieve some or even all values but it's not portable. For example SO_DOMAIN and SO_P

[issue18386] Better random number generator

2013-07-06 Thread Christian Heimes
Changes by Christian Heimes : Removed file: http://bugs.python.org/file30830/dSFMT-src-2.2.1.zip ___ Python tracker ___ ___ Python-bugs-list m

[issue18386] Better random number generator

2013-07-06 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18386] Better random number generator

2013-07-06 Thread Christian Heimes
Christian Heimes added the comment: Do you want to provide a patch for Python's random module? PS: Please do not upload files that can easily be downloaded from a 3rd party site. It just fills disk space on our server and doesn't provide a benefit for us. -- nosy: +christian.heimes ve

[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-06 Thread Madison May
Madison May added the comment: That could definitely be beneficial. I've attached a second patch with that suggestion in mind. However, note that test_unittest is failing after adding the isfile(start) check. I think its related to the large amount of mocking that's happening in test_unittes

[issue3329] API for setting the memory allocator used by Python

2013-07-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca78c974e938 by Victor Stinner in branch 'default': Issue #3329: Implement the PEP 445 http://hg.python.org/cpython/rev/ca78c974e938 -- ___ Python tracker _

[issue18392] Doc: PyObject_Malloc() is not documented

2013-07-06 Thread STINNER Victor
New submission from STINNER Victor: The implementation of the PEP 445 documents new memory allocator functions. But the old good PyObject_Malloc() is still not documentated!? -- assignee: docs@python components: Documentation messages: 192505 nosy: docs@python, haypo priority: normal se

[issue3329] API for setting the memory allocator used by Python

2013-07-06 Thread STINNER Victor
STINNER Victor added the comment: Ok, let see if buildbots like the PEP 445 (keep this issue open until we have the result of all 3.4 buildbots). I created the issue #18392 to document PyObject_Malloc(). -- ___ Python tracker

[issue17206] Py_XDECREF() expands its argument multiple times

2013-07-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset fcf079dece0d by Victor Stinner in branch 'default': Issue #17206: On Windows, increase the stack size from 2 MB to 4.2 MB to fix http://hg.python.org/cpython/rev/fcf079dece0d -- ___ Python tracker

[issue18386] Better random number generator

2013-07-06 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue3329] API for setting the memory allocator used by Python

2013-07-06 Thread STINNER Victor
STINNER Victor added the comment: It looks like the changeset ca78c974e938 broke the "x86 XP-4 3.x" buildbot: buildbot.python.org/all/builders/x86 XP-4 3.x/builds/8795/ Traceback (most recent call last): File "../lib/test/regrtest.py", line 1305, in runtest_inner test_runner() File "D:\

[issue3329] API for setting the memory allocator used by Python

2013-07-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 51ed51d10e60 by Victor Stinner in branch 'default': Issue #3329: Fix _PyObject_ArenaVirtualFree() http://hg.python.org/cpython/rev/51ed51d10e60 -- ___ Python tracker __

[issue18391] socket.fromfd()'s API is difficult or impossible to use correctly in general

2013-07-06 Thread Chris Siebenmann
Chris Siebenmann added the comment: As far as I know, you can recover everything except the protocol portably on Unix (and fromfd() will already handwave the protocol). getsockopt() with SO_TYPE will give you the type. The family can be recovered by calling getsockname() with a plain struct socka

[issue15661] OS X installer packages should be signed for OS X 10.8 Gatekeeper feature

2013-07-06 Thread Todd Rovito
Changes by Todd Rovito : -- nosy: +Todd.Rovito ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue18386] Better random number generator

2013-07-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: The bar is rather high for changing the current algorithm which is well studied, has a long period, and is reasonably fast. I do not recommend jumping straight into making a patch before we get agreement that we really want another PRNG when the current on

[issue13582] IDLE and pythonw.exe stderr problem

2013-07-06 Thread Todd Rovito
Todd Rovito added the comment: Terry, Bottom line I can't seem to get this patch to do anything for me. Before the patch is applied IDLE seems to be handling warnings and exceptions just fine in PyShell on the Mac. I get no crash and the output matches the normal console. Here is a small

[issue17557] test_getgroups of test_posix can fail on OS X 10.8 if more than 16 groups

2013-07-06 Thread Ned Deily
Ned Deily added the comment: Thanks for the patch, Mateusz. That basic approach should work on all current releases (although it would be nice if Apple also fixed the problem). I'll test it on the various releases. If you haven't already, please submit a contributor form as described in the

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-07-06 Thread Senko Rasic
Senko Rasic added the comment: Yep, signed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

<    1   2