Tom Pinckney added the comment:
I don't think Django includes an HTML unescape. I'm not familiar with other
frameworks. So I'd still find this useful to include in the stdlib.
--
___
Python tracker
<http://bugs.py
Tom Pinckney added the comment:
New patch attached, tested against Python 3.2. This is my first Python patch so
apologies if I've done something wrong here. Feedback appreciated!
Changes:
* fit everything to 80 cols
* just made changes to the HTMLParser.unescape function instead of prov
New submission from Tom Pinckney <[EMAIL PROTECTED]>:
There is currently a private method inside of html.parser.HTMLParser to
unescape HTML &...; style escapes. This would be useful to expose for
other users who want to unescape a piece of HTML.
Additionally, many websites don
Tom Pinckney <[EMAIL PROTECTED]> added the comment:
I mentioned this is in a brief python-dev discussion earlier this
spring, but many popular websites such as Wikipedia and Facebook do use
UTF-8 as their character encoding scheme for the path and argument
portion of URLs.
I know ther
Tom Pinckney <[EMAIL PROTECTED]> added the comment:
It also looks like urllib.quote (and quote_plus) do not properly handle
unicode strings. urllib.urlencode() properly converts unicode strings to
utf-8 encoded ascii strings before then calling urllib.quote() on them.
-
New submission from Tom Pinckney <[EMAIL PROTECTED]>:
Any interest in an itertools de-duping function? I find I have to write
this over and over for different projects:
def deduped(iter,key=None):
keys = set()
for x in iter:
if key:
k = key(x)
Tom Pinckney <[EMAIL PROTECTED]> added the comment:
My latest need for something like this was something like this:
src1 = db_query(query_1)
src2 = db_query(query_2)
results = deduped(src1 + src2, key=lambda x: x.field2)
Basically, I wanted data from src1 if it existed and otherwise fro
Tom Pinckney added the comment:
FWIW, clang from Xcode 4.3.2 build 4E2002 w/ command line tools built
everything fine for me too (i.e., ./configure CC=clang).
LM-SJN-00377886:cpython tom$ uname -a
Darwin LM-SJN-00377886 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41
PST 2012
Tom Pinckney added the comment:
What if this gzip decompression was optional and controlled via a flag or
handler instead of making it automagic?
It's not entirely trivial to implement so it is nice to have the option of this
happening automatically if one wishes.
Then, the caller wou
Tom Pinckney added the comment:
Looking at the current docs for 3.3, it looks like there are a bunch of other
ways that the docs could be clarified:
1) Proper documentation of the complete profile.Profile() and
cProfile.Profile() interfaces.
2) Adding other examples to the quick start
Tom Pinckney added the comment:
I took a stab at updating the docs based on the current profiler source. See
attached patch for a first draft.
This is my first doc patch so would appreciate any feedback on style and
substance of my changes.
I tried to document more of the modules (for
Tom Pinckney added the comment:
Thanks for the feedback!
I'll incorporate it this weekend and make a new patch, though also feel free to
just go ahead and make the changes yourself if you'd rather not wait for me.
--
___
Python trac
Tom Pinckney added the comment:
Draft of new updates based on Eric's feedback. I haven't done a final
proof-reading over this patch as I wanted to upload it and see if I'm heading
in the right direction first.
--
Added file: http://bugs.python.org/file29
Tom Pinckney added the comment:
Updated based on Ezio's comments.
--
Added file: http://bugs.python.org/file29683/patch3.diff
___
Python tracker
<http://bugs.python.org/i
Tom Pinckney added the comment:
Another update based on comments. Removed links to cProfile.py and _lsof.c.
--
Added file: http://bugs.python.org/file29756/patch4.diff
___
Python tracker
<http://bugs.python.org/issue6
Tom Pinckney added the comment:
Great!
Just signed the contributor agreement.
On Apr 10, 2013, at 1:06 PM, Ezio Melotti wrote:
>
> Ezio Melotti added the comment:
>
> Last patch LGTM (except a couple of minor whitespace issues).
> Tom, can you sign the contributor agr
Tom Pinckney added the comment:
Thanks everyone for helping me through my first python patch submission.
--
___
Python tracker
<http://bugs.python.org/issue6
17 matches
Mail list logo