Changes by Westley Martínez aniko...@gmail.com:
--
nosy: +westley.martinez
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20580
___
___
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?
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.
--
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 base
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 rep...@bugs.python.org
http://bugs.python.org/issue20767
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*
the bytes
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)) == sentinel.foo
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!
--
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
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' part
Changes by Martin Dengler mar...@martindengler.com:
--
nosy: +mdengler
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20042
___
___
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())
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 rep...@bugs.python.org
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!
--
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 to
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 rep...@bugs.python.org
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 the bound
Martin v. Löwis added the comment:
Sorry, I had not noticed this issue so far. The patch looks fine, please apply.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20568
___
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
STINNER Victor added the comment:
Changesets 82ec02db7fe6 and ec42ab5e0cb3 (to get the link).
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20807
___
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
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
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 -
Changes by Richard Oudkerk shibt...@gmail.com:
--
assignee: - sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7503
___
___
Python-bugs-list
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
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
___
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20805
___
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
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
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
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 rep...@bugs.python.org
http://bugs.python.org/issue20731
___
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,
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 rep...@bugs.python.org
http://bugs.python.org/issue20804
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20650
___
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 rep...@bugs.python.org
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 rep...@bugs.python.org
http://bugs.python.org/issue19021
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
Barry A. Warsaw added the comment:
http://bugs.python.org/issue19021
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20808
___
___
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
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: -
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
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
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
Bohuslav Slavek Kabrda added the comment:
Whoops, reopened by accident. Closing again.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20778
___
Changes by Shriramana Sharma samj...@gmail.com:
--
nosy: +jamadagni
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10984
___
___
Python-bugs-list
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
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
Yury Selivanov added the comment:
Larry, Nick, what do you think?
I'd like this to be fixed in 3.4.0...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20786
___
Changes by Yury Selivanov yselivanov...@gmail.com:
--
nosy: +yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20807
___
___
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
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.
--
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
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
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
Changes by --This Guy jorda...@sent.com:
--
keywords: +patch
Added file:
http://bugs.python.org/file34255/issue20809-nontype-object-has-no-attribute-startswith.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20809
René Fleschenberg added the comment:
I see. Thanks for the information.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20793
___
___
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
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20727
___
___
Python-bugs-list
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
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 rep...@bugs.python.org
http://bugs.python.org/issue20804
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)
Changes by Yury Selivanov yselivanov...@gmail.com:
--
nosy: +yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20810
___
___
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
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 rep...@bugs.python.org
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 rep...@bugs.python.org
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.
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:
Changes by Eric V. Smith e...@trueblade.com:
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20810
___
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 rep...@bugs.python.orgwrote:
Eric V. Smith added the comment:
re.match requires a match at the beginning of the string. From the docs:
If zero or more
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
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) + '/'
Changes by Varun Sharma varunsharmal...@gmail.com:
--
nosy: +varun
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6598
___
___
Python-bugs-list
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 rep...@bugs.python.org
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.
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
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,
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
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,
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
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
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 to
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
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 =
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
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20810
___
___
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
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
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
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
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 rep...@bugs.python.org
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
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
koobs added the comment:
Thank you Stefan
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20246
___
___
Python-bugs-list mailing list
93 matches
Mail list logo