Martin v. Löwis mar...@v.loewis.de added the comment:
This is correct behavior. \x00 is not supported in XML: not in raw form, and
not in escaped form. To transmit binary data in XML, use base64.
--
nosy: +loewis
status: open - closed
___
Python
Dan Kaminsky d...@doxpara.com added the comment:
There is a new match_hostname that doesn't implement all the
required, standard SSL/TLS Client security checks that should be done.
Indeed, as the name indicates, it just checks the hostname.
Please detail what the other security checks are
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 2c1720468dbb by Senthil Kumaran in branch '3.2':
Minor code style improvements in http.server suggested in Issue13294.
http://hg.python.org/cpython/rev/2c1720468dbb
New changeset 0466ee1816b1 by Senthil Kumaran in
Antoine Pitrou pit...@free.fr added the comment:
You need to check expiration date of the cert in question, and I
suppose invocation date as well.
You need to look at each of the CNs in the subject name, as well as
each of the DNSname types in the SAN extension.
You *absolutely must* make
Senthil Kumaran sent...@uthcode.com added the comment:
The original issue was invalid.
Incorporated Michele Orrù's code style changes into the trunk and other
codelines.
--
resolution: - fixed
status: open - closed
title: http.server: HEAD request should not return a body -
Dan Kaminsky d...@doxpara.com added the comment:
On Fri, Dec 23, 2011 at 4:14 AM, Antoine Pitrou rep...@bugs.python.orgwrote:
Antoine Pitrou pit...@free.fr added the comment:
You need to check expiration date of the cert in question, and I
suppose invocation date as well.
You need to
New submission from naif n...@globaleaks.org:
For the certificate store:
Can we eventually agree to bind a default CA-store to a Mozilla verified one?
Mozilla in handling Firefox does a great job in keeping CA-store up-to-date.
Integrating default mozilla CA-store with Python builds could be a
naif n...@globaleaks.org added the comment:
Hi all,
i added a ticket on setting up a default CA-store for Python, eliminating the
need of CA-Store mainteinance:
http://bugs.python.org/issue13655
This feature is a pre-requisite to implement by default SSL/TLS Client secure
certificate
Changes by naif n...@globaleaks.org:
--
type: - security
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13655
___
___
Python-bugs-list mailing
Antoine Pitrou pit...@free.fr added the comment:
Be sure to support SAN. People forget that, and the API makes it a pain in
the butt (the validator doesn't even know who you're validating for).
Right, that's why we added the match_hostname() function. It knows about
subjectAltName, except
Antoine Pitrou pit...@free.fr added the comment:
I wish we had something like:
io.file
io.file.tempfile
io.file.path
io.file.atomicfile
I adhere to flat is better than nested. e.g. it always irks me to type
urllib.request instead of urllib. A 3-level deep nesting in the stdlib
would
naif n...@globaleaks.org added the comment:
looking at OpenSSL command line, there is the verify that does a lot of
checks on it's own:
http://www.openssl.org/docs/apps/verify.html
Dan, do you think that this apps does all the best practice verificati or
it's missing something?
Antoine,
naif n...@globaleaks.org added the comment:
Mozilla CA are available on:
https://www.mozilla.org/projects/security/certs/
The warranty and security process of Mozilla handling of SSL CA root certs is
described on:
https://wiki.mozilla.org/CA
I think that Python language could reasonably
Antoine Pitrou pit...@free.fr added the comment:
Antoine, in case it's useful, do you think that it would be possible
to have something exactly-like the OpenSSL verify command?
Well, to quote the page you mentioned:
“The verify program uses the same functions as the internal SSL and
S/MIME
Antoine Pitrou pit...@free.fr added the comment:
So how about providing a new public `os` module function doing a
rename-with-overwrite on all platforms?
We could name it e.g. os.replace().
os.rename_overwrite() is another possibility, more explicit but also longer.
--
stage: - needs
Stef Walter s...@memberwebs.com added the comment:
Good plan.
So the issue is:
* Platform specific eggs are built containing a path that has the full
patch level of the freebsd kernel, like 8.2-RELEASE-p2. The -p2
part is updated for every security patch of FreeBSD.
* Thus when you
New submission from maniram maniram maniandra...@gmail.com:
Document ctypes.util and ctypes.wintypes.
--
assignee: docs@python
components: Documentation
messages: 150151
nosy: docs@python, maniram.maniram
priority: normal
severity: normal
status: open
title: Document ctypes.util and
Changes by maniram maniram maniandra...@gmail.com:
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13656
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 7a7b698f6f21 by Antoine Pitrou in branch 'default':
Issue #13577: Built-in methods and functions now have a __qualname__.
http://hg.python.org/cpython/rev/7a7b698f6f21
--
Antoine Pitrou pit...@free.fr added the comment:
The patch is committed, thank you!
--
resolution: - rejected
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13577
New submission from maniram maniram maniandra...@gmail.com:
IDLE doesn't support nor set sys.ps1 and sys.ps2.
sys.ps1
Traceback (most recent call last):
File pyshell#1, line 1, in module
sys.ps1
AttributeError: 'module' object has no attribute 'ps1'
sys.ps1 = Test #The next prompt
Charles-François Natali neolo...@free.fr added the comment:
I assume this was due to the following bug:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/259219
http://lists.freedesktop.org/archives/mesa-dev/2011-March/006180.html
In short, MESA didn't use the correct TLS model for
Charles-François Natali neolo...@free.fr added the comment:
I adhere to flat is better than nested. e.g. it always irks me to type
urllib.request instead of urllib.
Well, that's what (selective) imports are for, no ?
from urllib import request
from file.path import exists
import
Antoine Pitrou pit...@free.fr added the comment:
Anyway, my thoughts? wasn't referring to this namespace hierarchy
proposal (which really isn't one), but rather to the best module
which could host an AtomicFile class.
Does it have to be a class? What would be the operations apart from
Charles-François Natali neolo...@free.fr added the comment:
Does it have to be a class? What would be the operations apart from
write()?
Well, I thought that making it a file-like object could be useful:
that way, one could pass it to pickle.dump(), logging.StreamHandler or
any method
Andrew Dalke da...@dalkescientific.com added the comment:
My belief is that the people who use set.intersection with more than two terms
are 1) going to pass in a list of sets, and 2) don't care about the specific
order.
To check the validity of my belief, I did a Google Code Search to find
Antoine Pitrou pit...@free.fr added the comment:
Does it have to be a class? What would be the operations apart from
write()?
Well, I thought that making it a file-like object could be useful:
that way, one could pass it to pickle.dump(), logging.StreamHandler or
any method expecting a
Lars Gustäbel l...@gustaebel.de added the comment:
Wouldn't it be better then to use a default compresslevel of 6 in tarfile? I
used level 9 in my patch without a particular reason, just because I thought 9
must be better than 6 ;-)
--
Added file:
Florent Viard fvi...@lacie.com added the comment:
Hi,
I encountered the same regression with python 2.7.
I added a new testcase (testcase2) with another effect of the same problem. It
is a model of what does python-storm when I try to do:
for item in TableA.findall():
Charles-François Natali neolo...@free.fr added the comment:
If you want atomicity to apply to logging,
you must instead guarantee the durability of each write() call, meaning
calling fsync() on each logging call
Why so?
There's no point in calling fsync() after each write, since data is
Antoine Pitrou pit...@free.fr added the comment:
There's no point in calling fsync() after each write, since data is
written to a temporary file which won't be visible before rename():
even if you call fsync() after each write, if the file is not properly
closed, it won't be committed
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Yes, that's a good idea. I've been testing a similar change, and it seems
to drop the peak memory usage for test_tarfile from around 810MB down to
under 200MB. It looks like 2GB genuinely isn't enough to reliably use LZMA
compression with
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +orsenthil
versions: +Python 2.7 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13651
___
Changes by Lars Gustäbel l...@gustaebel.de:
Removed file: http://bugs.python.org/file24084/lzma-preset.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5689
___
R. David Murray rdmur...@bitdance.com added the comment:
What is the motivation for providing a new function?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8828
___
Lars Gustäbel l...@gustaebel.de added the comment:
Yes, that's much better. Thanks for the tip.
--
Added file: http://bugs.python.org/file24086/lzma-preset.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5689
Antoine Pitrou pit...@free.fr added the comment:
What is the motivation for providing a new function?
Because changing os.rename would break compatibility.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8828
New submission from Joshua Landau joshua.landau...@gmail.com:
Inside the grammar for classes[1], the documentation states that the
inheritance list can be of type:
( [argument_list [,] | comprehension] )
The comprehension part seems to be superfluous, especially as it is valid
grammar without
R. David Murray rdmur...@bitdance.com added the comment:
Ah, I see, people may be depending on rename on Windows not overwriting.
I suppose a new function (and eventually deprecating the old?) would be the
most straightforward way forward, though I dislike the necessity :)
An alternative
Michael Foord mich...@voidspace.org.uk added the comment:
traceback patch looks good. Thanks for the unittest2 patch as well.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8313
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 683a1b1ff15d by Charles-François Natali in branch 'default':
Issue #8623: Fix some strict-aliasing warnings. Patch by David Watson.
http://hg.python.org/cpython/rev/683a1b1ff15d
--
nosy: +python-dev
Charles-François Natali neolo...@free.fr added the comment:
Thanks for your patches, David.
I've only applied the first one: looking at the second one, I don't think they
are really problems (-Wstrict-aliasing=2 is know for generating a lot of false
positives).
--
nosy: +neologix
Charles-François Natali neolo...@free.fr added the comment:
Ah, it's a temporary file indeed.
But does that mean you can't inspect your logs in real time? All log
files I have ever seen are available under their final name while they
are still being written to.
Yes, logging was a poor
Charles-François Natali neolo...@free.fr added the comment:
I'd prefer an optional flag to rename() too.
I really don't like having different functions that achieve the same thing.
It's not obvious to infer from 'replace' its real intent, since it
doesn't match any standard syscall/library.
anatoly techtonik techto...@gmail.com added the comment:
os.rename(overwrite=True) to produce consistent cross-platform behavior.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8828
___
Antoine Pitrou pit...@free.fr added the comment:
An alternative might be a flag on rename: overwrite=['always', 'os_default']
How about overwrite=[None, True] with None meaning OS default?
with a warning and a switch of the default in a subsequent release.
I think we should be conservative
Ray rpq...@hotmail.com added the comment:
Whether or not includedir and libdir are supposed to allow multiple packages is
beyond me at this point so I'll change the topic to more reflect the problem I
am having. More importantly (and possibly related to includedir and libdir) is
the fact
anatoly techtonik techto...@gmail.com added the comment:
One of the Python advantages is providing predictable cross-platform behavior.
If we can't introduce nice API without BC break, it is not a reason to
introduce ulgy API.
--
___
Python
R. David Murray rdmur...@bitdance.com added the comment:
I'm good with None/True, but that would imply that for posix rename we'll need
to implement the overwrite=False option...which would be a nice thing (the
shell mv command has -i for that).
I think a warning would be good, because a unix
Antoine Pitrou pit...@free.fr added the comment:
I'm good with None/True, but that would imply that for posix rename
we'll need to implement the overwrite=False option...which would be a
nice thing (the shell mv command has -i for that).
My point was rather to forbid False as a value (on all
Charles-François Natali neolo...@free.fr added the comment:
How about overwrite=[None, True] with None meaning OS default?
+1.
One of the Python advantages is providing predictable cross-platform
behavior. If we can't introduce nice API without BC break, it is not
a reason to introduce
R. David Murray rdmur...@bitdance.com added the comment:
Ah, you are right about the race of course. So yes, I agree with your
proposal. It's a weird API, but probably the best we can do.
--
___
Python tracker rep...@bugs.python.org
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13647
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13655
___
___
Python-bugs-list mailing list
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Patch looks good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5689
___
___
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
This change probably should be backported to 3.2 branch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8623
anatoly techtonik techto...@gmail.com added the comment:
2011/12/23 Charles-François Natali rep...@bugs.python.org
One of the Python advantages is providing predictable cross-platform
behavior. If we can't introduce nice API without BC break, it is not
a reason to introduce ulgy API.
We
Benjamin Peterson benja...@python.org added the comment:
I'm not sure Python should be in the business of distributing CA certificates.
I think it's better left to the application or Linux distribution.
--
nosy: +benjamin.peterson
___
Python tracker
Charles-François Natali neolo...@free.fr added the comment:
I propose quite the opposite. rename() should not overwrite existing
files by default.
1. That's not what I understood from:
os.rename(overwrite=True) to produce consistent cross-platform
behavior.
2. The above argument on
STINNER Victor victor.stin...@haypocalc.com added the comment:
Victor, could you try the attached script on FreeBSD,
to see if you get ECONNREFUSED?
Yes, I get a ECONNREFUSED. I tested backlog.py on FreeBSD 8.2.
--
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 94494a779c20 by Charles-François Natali in branch '2.7':
Issue #13565: Increase multiprocessing's server socket backlog, to avoid
http://hg.python.org/cpython/rev/94494a779c20
New changeset 9b99adef3c78 by
Charles-François Natali neolo...@free.fr added the comment:
Yes, I get a ECONNREFUSED. I tested backlog.py on FreeBSD 8.2.
Thanks.
I bumped the backlog, I hope it will fix this.
We can leave this report open for a couple days, to see how the buildbots
behave.
--
anatoly techtonik techto...@gmail.com added the comment:
2011/12/23 Charles-François Natali rep...@bugs.python.org
Charles-François Natali neolo...@free.fr added the comment:
I propose quite the opposite. rename() should not overwrite existing
files by default.
1. That's not what I
Antoine Pitrou pit...@free.fr added the comment:
os.rename(overwrite=False) by default will do less harm than the opposite,
Disagreed.
Then I believe that having a small chance of overwriting file just created
at exactly the same moment on a POSIX is a small price to pay for function
that
anatoly techtonik techto...@gmail.com added the comment:
On Fri, Dec 23, 2011 at 10:35 PM, Antoine Pitrou rep...@bugs.python.orgwrote:
os.rename(overwrite=False) by default will do less harm than the
opposite,
Disagreed.
Fine. No arguments == no consensus.
Then I believe that having a
R. David Murray rdmur...@bitdance.com added the comment:
So maybe my warning idea isn't such a bad idea :)
As a unix programmer, I was very surprised to read in this thread that Windows
doesn't overwrite the file on rename. As a unix programmer, I don't check for
errors on a rename, because
Antoine Pitrou pit...@free.fr added the comment:
As a Windows programmer I am quite surprised to read this thread with
information that on Linux os.rename() overwrites files without questions,
so as I Windows programmer I want os.rename() to stop that.
As a Windows programmer, you are not
Roger Serwy roger.se...@gmail.com added the comment:
This would make the IDLE shell interface more consistent with the original
interpreter.
Presently, the prompt is faked by showprompt in PyShell.py. It relies
on sys from the IDLE gui process and not from the sys in the subprocess, so
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13658
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
@OP: As you yourself wrote, this is an abort, not a segfault. It is not a
crash; it is a controlled exit of the Python executable.
@Benjamin: I don't really understand your reasoning: what is preventing Python
to raise the error during the
Benjamin Peterson benja...@python.org added the comment:
Nothing, but that would be pointless; the recursion would just start again.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13644
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13658
___
___
Python-bugs-list
Terry J. Reedy tjre...@udel.edu added the comment:
Does it do the same with http instead of https?
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13615
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13630
___
___
Python-bugs-list
Terry J. Reedy tjre...@udel.edu added the comment:
Looks good to me.
help(token) already has the corrections. - BACKQUOTE, + RARROW, ELLIPSIS
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13632
Changes by Terry J. Reedy tjre...@udel.edu:
--
priority: low - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13632
___
___
Python-bugs-list
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset b65007ef59c0 by Benjamin Peterson in branch '3.2':
kill superfluous 'comprehension' case (closes #13658)
http://hg.python.org/cpython/rev/b65007ef59c0
--
nosy: +python-dev
resolution: - fixed
stage: -
Terry J. Reedy tjre...@udel.edu added the comment:
2.7 is closed to new features. This looks like it mignt be one. The 2.7 doc for
tarfile.open says Return a TarFile object for the pathname name. Does the
meaning of 'pathname' in 2.7 generally include unicode as well as str objects?
(It is
Terry J. Reedy tjre...@udel.edu added the comment:
Martin, after reading most all of the unusually large sequence of messages, I
am closing this because three of the core developers with the most experience
in this area are dead-set against your proposal. That does not make it 'wrong',
but
Terry J. Reedy tjre...@udel.edu added the comment:
When I run this with 3.2.2 IDLE, from an edit window, I get an MSVC++ Runtime
Library window: Runtime Error! .../pythonw This application has requested
termination in an unusual way When I close that, IDLE continues. So I
would say that
Terry J. Reedy tjre...@udel.edu added the comment:
Given that equality is not identify, order does matter, although in 3.2.2 the
results are the opposite of what one might expect.
a = set((1,2,3))
b = set((1.0, 3.0, 5.0))
print(ab, ba)
print(a.intersection(b), b.intersection(a))
a = b
print(a)
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3974
___
___
Python-bugs-list mailing list
Terry J. Reedy tjre...@udel.edu added the comment:
so mimicking the changed prompt would require querying the subprocess for its
sys.ps1 and sys.ps2.
Is that sensibly possible? Any line of code can change those, so IDLE would
have to do the equivalent of
idle.ps1,idle.ps2 = sys.ps1, sys.ps2
maniram maniram maniandra...@gmail.com added the comment:
@Terry
IDLE restarts python (like in the menu entry Restart Shell) when the Python
process dies no matter how the Python process dies.
So this issue is a valid bug.
--
___
Python tracker
Roger Serwy roger.se...@gmail.com added the comment:
This only applies to menu items from extensions (in this case,
ScriptBinding.py). Other events (Copy, Cut, Paste, etc) update the menu
shortcut properly.
IDLE handles bindings for extensions separately from built-in functions. As a
Roger Serwy roger.se...@gmail.com added the comment:
Is that sensibly possible? Any line of code can change those, so IDLE would
have to do the equivalent of idle.ps1,idle.ps2 = sys.ps1, sys.ps2 before
every new ps1 statement prompt.
It may be possible if the code gets refactored such that
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset b7d099e8c136 by Meador Inge in branch '3.2':
Issue #13632: Update token documentation to reflect actual token types
http://hg.python.org/cpython/rev/b7d099e8c136
New changeset 1461327e63b5 by Meador Inge in branch
Meador Inge mead...@gmail.com added the comment:
Committed. Thanks for the review Terry.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Ron Adam ron3...@gmail.com:
Removed file: http://bugs.python.org/file24047/f_why1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13607
___
anatoly techtonik techto...@gmail.com added the comment:
Can't test right now.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13615
___
___
New submission from maniram maniram maniandra...@gmail.com:
If you call help() a few times on some objects, due to help()'s output IDLE's
Shell Window becomes very long and it becomes difficult to scroll through the
window.
I suggest a new window should be opened when help() is called in IDLE
Martin Pool m...@sourcefrog.net added the comment:
Terry, that's fine. Thanks to everyone who contributed to the discussion.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13643
___
Ron Adam ron3...@gmail.com added the comment:
Updated patch with suggested changes.
It also has a cleaned up fast_block_end section.
Concerning speed. What happens is (as Tim and Raymond have pointed out) that we
can make some things a little faster, in exchange for other things being a
Roger Serwy roger.se...@gmail.com added the comment:
This is identical to issue6028 and may be related to issue3555.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13644
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
title: Changed Shortcuts don't show up in menu - IDLE: Changed Shortcuts don't
show up in menu
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6092
maniram maniram maniandra...@gmail.com added the comment:
Sorry, new window in I suggest a new window should be a new read-only editor
window.
It could be implemented through a wrapper around help.
IDLE could have a configuration option whether to use the traditional help() or
the new help()
New submission from mani and ram maniandra...@gmail.com:
---
maniandram maniandram wants to stay in touch better using some of
Google's great new products. If you already have Gmail or Google Talk,
visit:
New submission from mani and ram maniandra...@gmail.com:
---
maniandram maniandram wants to stay in touch better using some of
Google's great new products. If you already have Gmail or Google Talk,
visit:
98 matches
Mail list logo