Antoine Pitrou [EMAIL PROTECTED] added the comment:
Small typo in the snippet above, this should obviously read:
try:
raise Exception(foo)
except Exception as e:
try: raise KeyError(caught)
except KeyError: pass
raise e
__
Tracker
Antoine Pitrou [EMAIL PROTECTED] added the comment:
As Amaury said, lexically nested exception handlers make re-raising
behaviour buggy. In Py3k, a workaround is to instead write:
try:
raise Exception(foo)
except Exception as :
try: raise KeyError(caught)
except
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment:
I guess the patch was just forgotten after the 2.5 release was out.
I've added a 2.6 tag and assigned the patch to Sean.
--
assignee: anthonybaxter - jafo
versions: +Python 2.6
_
Tracker [EMAIL
New submission from Trent Nelson [EMAIL PROTECTED]:
Now that we've finally got a VeriSign code-signing certificate
(hurrah!), we can look at how we want to integrate the aspect of code
signing into our build process.
I'd like to propose augmenting the build process such that as a post-
link
Quentin Gallet-Gilles [EMAIL PROTECTED] added the comment:
I'm working on renaming the ConfigParser module.
--
nosy: +quentin.gallet-gilles
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2775
__
Jesse Noller [EMAIL PROTECTED] added the comment:
I've somehow lost my xmlrpc* changes on my local machine - if someone else
gets to it before me, feel free to work on it.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2775
New submission from Mark Summerfield [EMAIL PROTECTED]:
The re module has the following flags (amongst others):
re.X == re.VERBOSE
re.S == re.DOTALL
The short forms of both these flags are clearly taken from Perl, but
they don't seem necessary for Python and are confusing since all the
other
Alexander Belopolsky [EMAIL PROTECTED] added the comment:
This seems to be a documentation issue.
shutil.copy2(src, dst)
Similar to copy(), but last access time and last modification time are
copied as well. This is similar to the Unix command cp -p.
--
Guido van Rossum [EMAIL PROTECTED] added the comment:
Please keep them. They correspond to the (?x) and (?s) syntax that is
supported inside the regex.
Perl compatibility is a feature, not a bug for the re module.
--
nosy: +gvanrossum
resolution: - wont fix
status: open - closed
Bill Janssen [EMAIL PROTECTED] added the comment:
On the client side, are you passing a ca_certs file with the self-signed
certificate in it? If not, the library won't be able to validate the
certificate enough to be able to see the data in it. But if you do
that, you should be able to see the
New submission from Noah Kantrowitz [EMAIL PROTECTED]:
The normal ReST sidebar directive creates a div with the same class as the
HTML sidebar. This makes it not render its contents correctly. Perhaps the
default template/CSS should match on div#sphinxsidebar or similar?
--
assignee:
Juracy Filho [EMAIL PROTECTED] added the comment:
I almost finished the http package patch, but I'm doubt about how I
would do it with Docs.
There are various doc files: basehttpserver.rst, cgihttpserver.rst,
httplib.rst and so on.
Would I join them into one's or only update their information
Adam Olsen [EMAIL PROTECTED] added the comment:
Revised again. sets are only hashed after PyObject_Hash raises a TypeError.
This also fixes a regression in test_subclass_with_custom_hash. Oddly,
it doesn't show up in trunk, but does when my previous patch is applied
to py3k.
Added file:
New submission from Michael Lang [EMAIL PROTECTED]:
Hi,
i am trying to solve some problems we encounter, when locking files on a
NFS Storage using fcntl.
since this is a security related problem i just add some pseudo code
here that was used to create the problem
fh = os.open('filename')
Martin v. Löwis [EMAIL PROTECTED] added the comment:
Objection. I don't see the point of signing the binaries; signing the
MSI files should be enough.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2850
__
Ruben Kerkhof [EMAIL PROTECTED] added the comment:
Hi Bill,
When I include the server certificate in ca_certs, verification
succeeds, and I can view the peer certificate dict with getpeercert(False)
When I set ca_certs to none and ssl.CERT_NONE, I can still call
getpeercert(True) and call
New submission from Brett Cannon [EMAIL PROTECTED]:
gestalt was removed as part of the stdlib cleanup for Mac code. But it
turns out that gestalt is one of those modules that is just needed. Either
the original version needs to be added back in or a ctypes version needs
to be implemented.
New submission from Adam Olsen [EMAIL PROTECTED]:
sets are based on dicts' code, so they have the same problem as bug
1517. Patch attached.
--
files: python-lookkeycompare.diff
keywords: patch
messages: 66829
nosy: Rhamphoryncus
severity: normal
status: open
title: lookkey should
Changes by Brett Cannon [EMAIL PROTECTED]:
--
dependencies: +Add gestalt back into Python 3.0
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2775
__
___
Raymond Hettinger [EMAIL PROTECTED] added the comment:
FWIW, I periodically update setobject.c based on patches made to
dictobject.c so there is usually no need to post separate bug reports.
--
assignee: - rhettinger
nosy: +rhettinger
__
Tracker [EMAIL
Brett Cannon [EMAIL PROTECTED] added the comment:
Actually, the plat-darwin comment is not right if the original C version
is kept since that would just end up in Modules.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2854
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Does it have to be public? How about _gestalt?
--
nosy: +benjamin.peterson
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2854
__
Raymond Hettinger [EMAIL PROTECTED] added the comment:
By replacing temporary immutability with temporary hashability, does
this approach create the possibility that someone could mutate the key-
set during a search? Is it possible to get the __eq__ check out-of-
sync with the __hash__ value?
Bill Janssen [EMAIL PROTECTED] added the comment:
Yep, it looks like you're on the right track. I'll close this bug.
Bill
On Wed, May 14, 2008 at 12:51 PM, Ruben Kerkhof [EMAIL PROTECTED]
wrote:
Ruben Kerkhof [EMAIL PROTECTED] added the comment:
Hi Bill,
When I include the server
Changes by Bill Janssen [EMAIL PROTECTED]:
--
resolution: - works for me
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2838
__
___
Adam Olsen [EMAIL PROTECTED] added the comment:
There is no temporary hashability. The hash value is calculated, but
never stored in the set's hash field, so it will never become out of
sync. Modification while __hash__ or __eq__ is running is possible, but
for __eq__ that applies to any
Changes by Georg Brandl [EMAIL PROTECTED]:
--
priority: critical - release blocker
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2632
__
___
Python-bugs-list mailing
Brett Cannon [EMAIL PROTECTED] added the comment:
On Wed, May 14, 2008 at 1:37 PM, Benjamin Peterson
[EMAIL PROTECTED] wrote:
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Does it have to be public? How about _gestalt?
That's fine by me. If someone really cares enough they can
Benjamin Peterson [EMAIL PROTECTED] added the comment:
I feel kinda bad about removing the module without noting how it was
used in platform.py, so I'll deal with this.
--
assignee: - benjamin.peterson
__
Tracker [EMAIL PROTECTED]
Brett Cannon [EMAIL PROTECTED] added the comment:
On Wed, May 14, 2008 at 6:01 PM, Benjamin Peterson
[EMAIL PROTECTED] wrote:
Benjamin Peterson [EMAIL PROTECTED] added the comment:
I feel kinda bad about removing the module without noting how it was
used in platform.py, so I'll deal with
New submission from Brodie Rao [EMAIL PROTECTED]:
The documentation for os.listdir should mention that there's a
possibility that it can fail to decode paths to unicode objects and that
it returns str objects for those paths it couldn't decode.
The documentation should also explain when this
Juracy Filho [EMAIL PROTECTED] added the comment:
I've finished a patch for http package, but I've doubts about how to
make a patch.
I've used a svn diff and svn status to make the patch and status file
respectively.
Added file: http://bugs.python.org/file10324/http_package_on_py3k.diff
Juracy Filho [EMAIL PROTECTED] added the comment:
Output for svn status of http package patch.
Added file: http://bugs.python.org/file10325/http_package_on_py3k.status
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2775
Brett Cannon [EMAIL PROTECTED] added the comment:
On Wed, May 14, 2008 at 6:33 PM, Juracy Filho [EMAIL PROTECTED] wrote:
Juracy Filho [EMAIL PROTECTED] added the comment:
I've finished a patch for http package, but I've doubts about how to
make a patch.
I've used a svn diff and svn status
New submission from paul rubin [EMAIL PROTECTED]:
For object serialization and some other purposes, Java encodes unicode
strings with a modified version of utf-8:
http://en.wikipedia.org/wiki/UTF-8#Java
http://java.sun.com/javase/6/docs/api/java/io/DataInput.html#modified-utf-8
It is used in
Raymond Hettinger [EMAIL PROTECTED] added the comment:
When you need full precision, the Kahan approach helps but doesn't make
guarantees and can sometimes hurt (it makes some assumptions about the
data). One use case in is computing stats like a mean where many of
the larger magnitude
New submission from Gregory P. Smith [EMAIL PROTECTED]:
I disabled the Lib/bsddb/test/test_lock.py test03_set_timeout test as it
crashes the interpreter when compiled in debug mode with an UNREF test.
It appears to happen on all platforms according to the buildbots.
This is not a new problem,
37 matches
Mail list logo