[issue20246] buffer overflow in socket.recvfrom_into

2014-02-28 Thread koobs
koobs added the comment: Thank you Stefan -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

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

2014-02-28 Thread Nick Coghlan
Nick Coghlan added the comment: Expanded version: For developers of integrated applications that currently still have some dependencies on Python 2, the preferred migration path is to use tools like python-modernize or python-future to shift first into the large common subset of

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset c25e1442529f by Stefan Krah in branch '3.1': Issue #20246: Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts. http://hg.python.org/cpython/rev/c25e1442529f New changeset e82dcd700e8c by Stefan Krah in branch '3.2': Issue #20246: Fix test fai

[issue20813] Backport revised 2to3 guide to older branches

2014-02-28 Thread Nick Coghlan
Nick Coghlan added the comment: We should add the new content in issue 20812 before doing the backport. -- dependencies: +Explicitly cover application migration in the 2->3 guide ___ Python tracker

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

2014-02-28 Thread R. David Murray
R. David Murray added the comment: I'm not sure what your last two points are saying, but my take on both of them is the main codebase should move to shared source Python2/Python3 if possible. That's what I'm doing for my own projects. Testing the Python3 compatibility depends on whether or

[issue20813] Backport revised 2to3 guide to older branches

2014-02-28 Thread Nick Coghlan
New submission from Nick Coghlan: Brett's updated 2to3 guide is currently only on the default branch. This means that the /3/ web docs won't be updated until 3.4 is released later this month and the /2/ web docs and the compiled help files shipped with the Windows installers for 2.7.x and 3.3.

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

2014-02-28 Thread Nick Coghlan
New submission from Nick Coghlan: A thread on python-ideas made me realised the migration guide is currently missing a section: migrating integrated applications. This needs to cover: - "caniusepython3" to check dependencies for compatibility - if dependencies are ready, and Python 2 compatibi

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

2014-02-28 Thread Ned Deily
Ned Deily added the comment: OK, so the issue is that Python float literals in the range 0.0 < x < 1.0 can be spelled without a "0" before the decimal point but the built-in format method for floats appears to always output the leading "0" even in cases where doing so cause the string to unnec

[issue20810] literal re fails to match

2014-02-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2014-02-28 Thread aubmoon
aubmoon added the comment: Admittedly maximum is not correct; however, minimum is not right either. The 10 is the desired (or target) width. Fixed width prints are commonly used with very legacy systems that die a painful death when fixed width strings are parsed by index and a field has spilled

[issue10984] argparse add_mutually_exclusive_group should accept existing arguments to register conflicts

2014-02-28 Thread paul j3
paul j3 added the comment: In http://bugs.python.org/issue11588 (Add "necessarily inclusive" groups to argparse) I propose a generalization to these testing groups that would solve your 'conflicter' case as follows: usage = 'prog [ --conflicter | [ --opt1 ] [ --opt2 ] ]' parser = argpa

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-02-28 Thread R. David Murray
R. David Murray added the comment: Yes, exactly, you don't use is for equality comparison. It tests object identity, which is why it makes sense to use it with a sentinel. The 'name' of the sentinel is purely a way to store and retrieve particular sentinel objects. The sentinel itself does n

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-28 Thread Zachary Ware
Zachary Ware added the comment: For the UTF-7 comment, I'd go with something like "locale encoding is probably not UTF-7" or "UTF-7 is a convenient, seldom used encoding", or something to that effect. About writeTmp vs. context manager: as you wish. It would still be good to convert writeTmp

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

2014-02-28 Thread Ned Deily
Ned Deily added the comment: I think you are misunderstanding the meaning of the width component (e.g. the 10 in your example) of a format specification. As described in the documentation, width is a decimal integer defining the *minimum* field width, not the *maximum* field width. As necess

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

2014-02-28 Thread aubmoon
New submission from aubmoon: "{:+10.8}".format(0.12345678) returns '+0.12345678' (11 chars) should return '+.12345678' (10 chars) -- messages: 212478 nosy: aubmoon priority: normal severity: normal status: open title: str.format for fixed width float can return a string longer than t

[issue19021] AttributeError in Popen.__del__

2014-02-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 28, 2014, at 09:42 PM, Serhiy Storchaka wrote: >Note that the changeset 6a1711c96fa6 introdused several errors (mostly tests >failures), so it needs other changesets to fix it. Related changesets which >should be cherry picked: 6a1711c96fa6, fa160c8145e5

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-02-28 Thread Vlastimil Zíma
Vlastimil Zíma added the comment: I encountered this problem when I tested code with cache, something like def test_foo(self): cache.set('a_key', sentinel.status) # Performs pickle self.assertEqual( cache.get('a_key'), # Performs unpickle sentinel.stat

[issue19021] AttributeError in Popen.__del__

2014-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Note that the changeset 6a1711c96fa6 introdused several errors (mostly tests failures), so it needs other changesets to fix it. Related changesets which should be cherry picked: 6a1711c96fa6, fa160c8145e5, efaf12106d68, 7ecee9e0dc58, 10ea3125d7b8, 488ccbee6e

[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My bad. I had cleaned patch before committing to 3.x, but forgot to revert and correct it in 2.7. Thank you Vajrasky an Zachary. > Does it mean: "UTF-7 is an unlikely locale encoding"? Sorry for my bad English. I meant that UTF-7 is used here because it is

[issue1508475] transparent gzip compression in urllib

2014-02-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Victor, the patch looks good and would be a welcome enhancement. There should be an option for turning this on and off (perhaps, I want the zipped content and want to unzip later or in a different thread). Consider adding support for "deflate" as well. ---

[issue19085] Add tkinter basic options tests

2014-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Net, Vajrasky and Zachary for your help for testing. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2014-02-28 Thread Varun Sharma
Changes by Varun Sharma : -- nosy: +varun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue20809] isabspath receiving path value of None in distutils.dist.py

2014-02-28 Thread Ned Deily
Ned Deily added the comment: The particular error you see is caused by code in the setup.py file of the project you are installing. I suggest you figure out what's going on there: File "setup.py", line 116, in run target_data = '/' + os.path.relpath(self.install_data, self.root) + '/'

[issue20035] Suppress 'os.environ was modified' warning on Tcl/Tk tests

2014-02-28 Thread Zachary Ware
Zachary Ware added the comment: Terry J. Reedy added the comment: > However, rather than require a tearDowmnodule for every module that imports ​> ​tkinter, lets fix the root problem. I agree that that would be the ideal solution. > I thought of having the environment change warning function ig

[issue20810] literal re fails to match

2014-02-28 Thread Jonathan Epstein
Jonathan Epstein added the comment: Sorry, this was dumb. Thanks for your patience. On Fri, Feb 28, 2014 at 2:23 PM, Eric V. Smith wrote: > > Eric V. Smith added the comment: > > re.match requires a match at the beginning of the string. From the docs: > "If zero or more characters at the begin

[issue20810] literal re fails to match

2014-02-28 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20810] literal re fails to match

2014-02-28 Thread Eric V. Smith
Eric V. Smith added the comment: re.match requires a match at the beginning of the string. From the docs: "If zero or more characters at the beginning of string match the regular expression pattern, ...". If you switch to re.search, they'll all match: >>> re.search('larvalolympiad',mainProjec

[issue20809] isabspath receiving path value of None in distutils.dist.py

2014-02-28 Thread Steve Holden
Steve Holden added the comment: The submitted patch does not approach the issue, since the real question is WHY is the function being passed a None argument in the first place. Without extensive testing there would be no guarantees that this change would not result in breakage elsewhere.

[issue20809] isabspath receiving path value of None in distutils.dist.py

2014-02-28 Thread Steve Holden
Steve Holden added the comment: Further typo, sorry again. -- title: isabspath receiving path value of None in ditdutils.dist.py -> isabspath receiving path value of None in distutils.dist.py ___ Python tracker __

[issue20809] isabspath receiving path value of None in ditdutils.dist.py

2014-02-28 Thread Steve Holden
Steve Holden added the comment: Typo, sorry -- title: isabspath receiving path value on None in ditdutils.dist.py -> isabspath receiving path value of None in ditdutils.dist.py ___ Python tracker _

[issue20809] isabspath receiving path value on None in ditdutils.dist.py

2014-02-28 Thread Steve Holden
Steve Holden added the comment: I hope the title change is helpful. It's not clear from the report what module is being installed, or even whether that is a relevant factor. -- nosy: +holdenweb title: isabspath fails if path is None -> isabspath receiving path value on None in ditdutil

[issue20810] literal re fails to match

2014-02-28 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20810] literal re fails to match

2014-02-28 Thread Jonathan Epstein
New submission from Jonathan Epstein: All 3 of these regex's should match, but in practice only m2 does. Found deep in the bowels of debugging a larger problem. import re mainProjectsPath = '/groups/larvalolympiad/larvalolympiad/Projects/' m1 = re.match('larvalolympiad',mainProjectsPath) m2

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-02-28 Thread Peter Otten
Peter Otten added the comment: I have no experience with unittest.mock, so I'm in no position to contradict... Vlastimil, could you give your use case? -- ___ Python tracker ___

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-02-28 Thread R. David Murray
R. David Murray added the comment: Personally I think that's a bad idea. Anything that implies that object identity can survive pickle/unpickle is IMO bad, since pickle is a serialization protocol and in real life (as opposed to tests) the process that does the unpickle is almost always not t

[issue20727] Improved roundrobin itertools recipe

2014-02-28 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-02-28 Thread Peter Otten
Peter Otten added the comment: >From looking at the sentinel code it appears a sentinel's identity is >controlled by its name alone, i. e. sentinel.foo is sentinel.foo If that's the desired behaviour it is well possible to make that indentity survive pickling. I have attached a demo script us

[issue20793] locale.setlocale()

2014-02-28 Thread René Fleschenberg
René Fleschenberg added the comment: I see. Thanks for the information. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue20809] isabspath fails if path is None

2014-02-28 Thread <--This Guy
Changes by <--This Guy : -- keywords: +patch Added file: http://bugs.python.org/file34255/issue20809-nontype-object-has-no-attribute-startswith.patch ___ Python tracker ___

[issue10984] argparse add_mutually_exclusive_group should accept existing arguments to register conflicts

2014-02-28 Thread Shriramana Sharma
Shriramana Sharma added the comment: I also wish to see argparse allowing me to define a group of arguments that conflict with another argument or another group of arguments and FWIW I feel the help output should be like: prog [ --conflicter | [ --opt1 ] [ --opt2 ] ] where --conflicter confli

[issue20809] isabspath fails if path is None

2014-02-28 Thread <--This Guy
New submission from <--This Guy: So far I've noticed this is only reproducible when running quickly with python2.7. Still, the error message seems like it would be confusing to new users to Python. user@host:~/foo/bar/project$ sudo python setup.py install DEBUG: Adding /foo/bar/project to syst

[issue19570] distutils' Command.ensure_dirname fails on Unicode

2014-02-28 Thread Matt Riedemann
Matt Riedemann added the comment: For what it's worth, I'm building openstack docs on master (icehouse-3) for ceilometer, nova, cinder, heat, glance, keystone, and neutron (plus the clients) using sphinx 1.2.1 without this problem (unless I'm just not aware of it?). Anyway, I came across that

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-02-28 Thread R. David Murray
R. David Murray added the comment: Our posts crossed. Making them unpickleable sounds like it might be sensible. Since the sentinel *can't* survive pickling/unpickling and still perform its documented function, it seems better to raise an error if someone tries. -- _

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-02-28 Thread R. David Murray
R. David Murray added the comment: In case anyone is wondering, I'm leaving this open in case Michael thinks it is a good idea to add some sort of documentation note about this. I'm not sure it is, because this is fundamental to the way Python works. On the other hand, I can't think of any s

[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-28 Thread Yury Selivanov
Yury Selivanov added the comment: Larry, Nick, what do you think? I'd like this to be fixed in 3.4.0... -- ___ Python tracker ___ ___

[issue20807] 3.4 cherry pick: 82ec02db7fe6 & ec42ab5e0cb3 Windows installer fixes

2014-02-28 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-02-28 Thread Michael Foord
Michael Foord added the comment: Maybe making sentinels unpickleable would be a better solution. On the other hand I'd love to be able to [properly] customise object creation when unpickling. It would solve various other problems I've had from time to time. But that's well outside the scope of

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-02-28 Thread R. David Murray
R. David Murray added the comment: Sentinels are not equal unless they are the *same object*, just as for any python object that does not have a defined __eq__. And as I said, this is part of the point of sentinels. -- ___ Python tracker

[issue10984] argparse add_mutually_exclusive_group should accept existing arguments to register conflicts

2014-02-28 Thread Shriramana Sharma
Changes by Shriramana Sharma : -- nosy: +jamadagni ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-28 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: Whoops, reopened by accident. Closing again. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-28 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: Brett, I signed it just yesterday, it probably wasn't processed yet. Hopefully it will be in few days. Thanks for patching this! -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-28 Thread Brett Cannon
Brett Cannon added the comment: Fixed in Python 3.3.6 and 3.4.1. Bohuslav, could you sign the contributor agreement at http://www.python.org/psf/contrib/contrib-form/ ? While I didn't directly use your patch this time I noticed you are already in Misc/ACKS so it would be helpful if you could

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 432cb56db05d by Brett Cannon in branch '3.3': Issue #20778: Fix modulefinder to work with bytecode-only modules. http://hg.python.org/cpython/rev/432cb56db05d New changeset b6e999c8907c by Brett Cannon in branch 'default': merge for issue #20778 htt

[issue20725] Fail to build on Windows x64 with VS Express

2014-02-28 Thread Zachary Ware
Zachary Ware added the comment: Since I can't reproduce, I'm going to go ahead and close the issue. If you can reproduce it after following the steps I laid out in my previous message, please re-open this issue. -- components: +Windows resolution: -> invalid stage: -> committed/reje

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

2014-02-28 Thread STINNER Victor
STINNER Victor added the comment: Regressions on buildbots, examples: http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.3/builds/1458 http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.3/builds/1546 http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.3/bui

[issue20808] 3.4 cherry pick: 6a1711c96fa6 (Popen.__del__ traceback)

2014-02-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: http://bugs.python.org/issue19021 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue20808] 3.4 cherry pick: 6a1711c96fa6 (Popen.__del__ traceback)

2014-02-28 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: This commit fixes the traceback we're seeing on Ubuntu with Python 3.4, in Popen.__del__ on interpreter shutdown. -- assignee: larry components: Interpreter Core messages: 212443 nosy: barry, doko, larry priority: release blocker severity: normal sta

[issue19021] AttributeError in Popen.__del__

2014-02-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Nosying Doko, since I think he may want to get this fix into Debian, if Larry does not cherry pick it into 3.4.0 final. -- nosy: +doko ___ Python tracker

[issue20650] asyncio.BaseEventLoop.run_in_executor docs have awkward wording

2014-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2dd7b9618596 by Brett Cannon in branch 'default': Issue #20650: Tweak some awkward wording. http://hg.python.org/cpython/rev/2dd7b9618596 -- nosy: +python-dev ___ Python tracker

[issue20650] asyncio.BaseEventLoop.run_in_executor docs have awkward wording

2014-02-28 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Pyt

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-02-28 Thread Vlastimil Zíma
Vlastimil Zíma added the comment: I don't question pickle, but I'd expect sentinels to keep their equality when they are pickled or copied. -- ___ Python tracker ___ ___

[issue19021] AttributeError in Popen.__del__

2014-02-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I've testing this patch on Ubuntu, and it seems to fix the problem. My quick testing doesn't show any new problems, but we'll only know for sure once the new Python 3.4 package hits the archive and folks start updating to it. So far so good though. Larry,

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

2014-02-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the patch, this is applied to 3.3 and 3.4. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

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

2014-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset ade5e4922a54 by Martin v. Löwis in branch '3.3': Issue #20731: Properly position in source code files even if they http://hg.python.org/cpython/rev/ade5e4922a54 -- nosy: +python-dev ___ Python tracker

[issue20806] os.times document points to wrong section of non-Linux manual

2014-02-28 Thread R. David Murray
R. David Murray added the comment: section 2 is the linux man page (system calls). On the other hand, on a freebsd 6.4 system I have access to, 'man times' does show the man 3 page. Since linux normally ships with the posix man pages as well, we should probably change the the section referenc

[issue20792] IDLE: Extend tests for PathBrowser

2014-02-28 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: test_DirBrowserTreeItem (idlelib.idle_test.test_pathbrowser.PathBrowserTest) ... ok test_PathBrowserTreeItem (idlelib.idle_test.test_pathbrowser.PathBrowserTest) ... ok -- Ran 2 tests in 0

[issue20805] Error in 3.3 Tutorial

2014-02-28 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-02-28 Thread R. David Murray
R. David Murray added the comment: Since the point of a sentinel is *object identity*, there is no way that you can get the "same" sentinel back after a pickle. This is fundamental to the nature of pickle. -- nosy: +michael.foord, r.david.murray __

[issue20803] struct.pack_into writes 0x00 for pad bytes

2014-02-28 Thread R. David Murray
R. David Murray added the comment: Contrawise, I would have found it very surprising if it had not padded with null bytes, but yes, the docs could be explicit about it by saying that 'x' padding means inserting null bytes. -- nosy: +r.david.murray _

[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2014-02-28 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- assignee: -> sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20757] 3.4rc2 Traceback on Windows pip uninstall

2014-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 82ec02db7fe6 by Nick Coghlan in branch 'default': Close #20757: return success for skipped pip uninstall http://hg.python.org/cpython/rev/82ec02db7fe6 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> c

[issue17128] OS X system openssl deprecated - installer should build local libssl

2014-02-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: AFAIK OpenSSL has hooks that can be called when a certificate needs to be validated. If I my memory is correct this could be used to validate certificates using a public API (basically doing the same as Apple's patch, but using public APIs for the system and

[issue20568] Pass --default-install to ensurepip in the Windows installers

2014-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset ec42ab5e0cb3 by Nick Coghlan in branch 'default': Close #20568: install unversioned pip command on Windows http://hg.python.org/cpython/rev/ec42ab5e0cb3 -- nosy: +python-dev resolution: -> fixed stage: commit review -> committed/rejected st

[issue20807] 3.4 cherry pick: 82ec02db7fe6 & ec42ab5e0cb3 Windows installer fixes

2014-02-28 Thread STINNER Victor
STINNER Victor added the comment: Changesets 82ec02db7fe6 and ec42ab5e0cb3 (to get the link). -- nosy: +haypo ___ Python tracker ___ _

[issue20807] 3.4 cherry pick: 82ec02db7fe6 & ec42ab5e0cb3 Windows installer fixes

2014-02-28 Thread Nick Coghlan
New submission from Nick Coghlan: Larry, these two commits are the fixes for issue 20757 (making sure Windows uninstallation still works even if the user has independently updated pip) and issue 20568 (making sure the bare "pip" command is installed on Windows). Their NEWS entries are in the 3

[issue20568] Pass --default-install to ensurepip in the Windows installers

2014-02-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: Sorry, I had not noticed this issue so far. The patch looks fine, please apply. -- ___ Python tracker ___ _

[issue20805] Error in 3.3 Tutorial

2014-02-28 Thread Peter Otten
Peter Otten added the comment: No, that's not an error. Given a class MyClass and an instance x of that class >>> class MyClass: ... def f(self): return 42 ... >>> x = MyClass() you usually invoke a method like so: >>> x.f() 42 But it is also possible to break that in two steps (1) get th

[issue20779] Add pathlib.chown method

2014-02-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, I don't know yet, but if we ever want chown() in pathlib, I think it should be higher-level and accept symbolic uids as well. -- nosy: +neologix ___ Python tracker _

[issue20806] os.times document points to wrong section of non-Linux manual

2014-02-28 Thread Geoffrey Spear
New submission from Geoffrey Spear: The documentation for os.times directs the reader: "See the Unix manual page times(2) or the corresponding Windows Platform API documentation." However, the POSIX manual page in question is times(3P), and on OS X and BSD systems it's times(3). Falling back t

[issue14302] Rename Scripts directory to bin and move python.exe to bin

2014-02-28 Thread Mark Hammond
Mark Hammond added the comment: I get the impression the first link just punted and the second supports the fact many people would see it as an improvement. So a patch that both works and addresses the concerns would probably be most welcome! -- __

[issue20805] Error in 3.3 Tutorial

2014-02-28 Thread Gene Anderson
Gene Anderson added the comment: I failed to mention that the associated web address for the documentation is: http://docs.python.org/3.3/tutorial/classes.html#method-objects -- ___ Python tracker

[issue20805] Error in 3.3 Tutorial

2014-02-28 Thread Gene Anderson
New submission from Gene Anderson: In the tutorial for Python 3.3 the content for 9.3.4 Method Objects seems to have an error. In the following lines: xf = x.f while True: print(xf()) ... it seems to me that based on the x object's method f(), the command should be print(x.f()) At

[issue20042] Python Launcher, Windows, fails on scripts w/ non-latin names

2014-02-28 Thread Martin Dengler
Changes by Martin Dengler : -- nosy: +mdengler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue14302] Rename Scripts directory to bin and move python.exe to bin

2014-02-28 Thread Martin Dengler
Martin Dengler added the comment: Is this state "closed" per https://mail.python.org/pipermail/distutils-sig/2013-October/022855.html or "languishing" per https://mail.python.org/pipermail/python-dev/2012-March/117946.html ? I would add a belated "me too" to the "2. Change 'Scripts' to 'bin'

[issue20767] Some python extensions can't be compiled with clang 3.4

2014-02-28 Thread STINNER Victor
STINNER Victor added the comment: > The question is whether it should be extended to the other *BSDs as well. The change is not needed on Linux (if Clang 3.4 is used to compile extensions too)? -- nosy: +haypo ___ Python tracker

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-28 Thread koobs
koobs added the comment: Can somebody backport the fixes for the test breakages to 3.1 and 3.2 please, it seems they were forgotten. The original CVE fix includes changes to test_socket.py so I cant imagine security-only-fix policy applies. Thanks! -- ___

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-02-28 Thread Vlastimil Zíma
New submission from Vlastimil Zíma: Sentinels lose their identity when they are pickled, meaning they are no longer equal to sentinel with the same name. >>> from mock import sentinel >>> import pickle >>> sentinel.foo == sentinel.foo True >>> pickle.loads(pickle.dumps(sentinel.foo)) == sentin

[issue20803] struct.pack_into writes 0x00 for pad bytes

2014-02-28 Thread Andrew P. Lentvorski, Jr.
New submission from Andrew P. Lentvorski, Jr.: This code did something unexpected to me: >>> a = bytearray('1234') >>> a bytearray(b'1234') >>> struct.pack_into('xBxB', a, 0, 0x59, 0x5A) >>> a bytearray(b'\x00Y\x00Z') The unexpected part was that the 'x' pad byte formatter actually *overwrote*

[issue20767] Some python extensions can't be compiled with clang 3.4

2014-02-28 Thread koobs
koobs added the comment: Attaching patch against default -- keywords: +patch type: -> compile error Added file: http://bugs.python.org/file34253/python-issue20767.diff ___ Python tracker __

[issue17128] OS X system openssl deprecated - installer should build local libssl

2014-02-28 Thread Ned Deily
Ned Deily added the comment: Crys, as Ronald noted above: "Now that I look at that code again: we can't extract that code and use it to patch upstream OpenSSL, the TrustEvaluationAgent framework is a private framework and hence off limits." It doesn't seem like a good idea to be trying to bas

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-28 Thread James Dominy
James Dominy added the comment: Ah, I did some digging. It turns out pbzip2 is installed on the system in question, and more annoyingly, /usr/bin/bzip2 is a symlink to pbzip2. I didn't realise the file was compressed by pbzip2. Thanks for the help. --

[issue17128] OS X system openssl deprecated - installer should build local libssl

2014-02-28 Thread Christian Heimes
Christian Heimes added the comment: Thanks to Hynek we were able to dig deeper into Apple's modifications. OpenSSL on OSX uses TEA (TrustEvaluationAgent) to verify cert chains. TEA is pretty much undocumented on the internet but perhaps we can use it to verify certs with OpenSSL 1.x, too? htt

[issue20580] IDLE should support platform-specific default config defaults

2014-02-28 Thread Westley Martínez
Changes by Westley Martínez : -- nosy: +westley.martinez ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https: