[Python-Dev] HTMLParser and HTML5

2011-07-28 Thread Matt
- What policies are in place for keeping parity with other HTML parsers (such as those in web browsers)? Given the semi-backward-compatible nature of HTML5's syntax, this seems like a rather unique problem that could use some more discussion.

Re: [Python-Dev] HTMLParser and HTML5

2011-07-29 Thread Matt
t;>>> > >>>> On Thu, Jul 28, 2011 at 11:25, Matt wrote: > >>>>> > >>>>> - What policies are in place for keeping parity with other HTML > >>>>> parsers (such as those in web browsers)? > >>>> > >

Re: [Python-Dev] Python 3.7: Require OpenSSL >=1.0.2 / LibreSSL >= 2.5.3

2018-01-14 Thread Matt Billenstein
egards, >Christian > ___ > Python-Dev mailing list > [email protected] > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/matt%40vazor.com -- Matt

Re: [Python-Dev] Python 3.7: Require OpenSSL >=1.0.2 / LibreSSL >= 2.5.3

2018-01-14 Thread Matt Billenstein
On Sun, Jan 14, 2018 at 10:54:57AM -0500, Ned Deily wrote: > On Jan 14, 2018, at 08:39, Christian Heimes wrote: > > On 2018-01-14 09:24, Matt Billenstein wrote: > >> Correct me if I'm wrong, but Python3 on osx bundles openssl since Apple has > >> deprecated (and

Re: [Python-Dev] OS-X builds for 3.7.0

2018-01-30 Thread Matt Billenstein
ping the headers for things like ssl and ffi since they don't want 3rd parties linking to deprecated versions of those libraries versus, in the case of ssl, their newer security framework. Recommendation is to bundle what you need if you're not using the framework -- something to think about.

[Python-Dev] libxml2 installation/binding issue

2018-02-05 Thread Priest, Matt
DEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes python3-config -ldflags; -L/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/sfwr/lib/python3.6/config-3.6m-x86_64-linux-gnu -L/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/sfwr/lib -lpython3.6m -lpthread -ldl -lutil -lr

Re: [Python-Dev] Move ensurepip blobs to external place

2018-03-24 Thread Matt Billenstein
As i recall git LFS makes storing large binary objects in some external object storage fairly seamless - might be a good fit for keeping the same workflow and not bloating the repo. M -- Matt Billenstein [email protected] Sent from my iPhone 6 (this put here so you know I have one) > On Mar

Re: [Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5

2014-01-08 Thread Matt Billenstein
ppreciate everyone's hard work - I'm confident the community will cross the 2-3 chasm and I hope we preserve the approachability I first came to love about Python when I started using it for all sorts of applications. thx m -- Matt Billenstein [email protected] http://www.vazor.com/

Re: [Python-Dev] Informal educator feedback on PEP 572 (was Re: 2018 Python Language Summit coverage, last part)

2018-07-01 Thread Matt Arcidy
This cynical view on students is shocking! Everyone on this list has been a student or a learner for far longer than an educator, and the perspective from students and learners are far more important than educators to assess this angle regardless. Can anyone adequately explain why this specific m

Re: [Python-Dev] Informal educator feedback on PEP 572 (was Re: 2018 Python Language Summit coverage, last part)

2018-07-02 Thread Matt Arcidy
On Mon, Jul 2, 2018 at 2:34 AM Michael Selik wrote: > > On Sun, Jul 1, 2018 at 8:21 PM Matt Arcidy wrote: >> >> [...] Can anyone adequately explain why this specific modality of learning, >> a student-in-a-seat based educator, must outweigh all other modalities [...]?

Re: [Python-Dev] Why does the Contributor Agreement need my address?

2018-09-09 Thread Matt Arcidy
On Sun, Sep 9, 2018, 12:59 Antoine Pitrou wrote: > > > I'm not sure why anyone would ask that question. because if they can discredit a witness, they will. Matt > > ___ > Python-Dev mailing list > [email protected]

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-06 Thread Matt Billenstein
n due to third-party packages > (such as docutils and bottle) that users can't easily do anything about. Perhaps those packages could be flagged now via pylint and problems raised with the respective package maintainers before the actual 3.8 release? Checking the top 100 or top 1000 packages

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-06 Thread Matt Billenstein
On Tue, Aug 06, 2019 at 04:32:04PM +, Matt Billenstein wrote: > Perhaps those packages could be flagged now via pylint and problems raised > with > the respective package maintainers before the actual 3.8 release? Checking > the > top 100 or top 1000 packages on PyPI? fwiw

[Python-Dev] Why is nb_inplace_add copied to sq_inplace_concat?

2013-05-16 Thread Matt Newell
seem like there must be a bug either in what it's doing, or in PyNumber_InPlaceAdd's handling of a NotImplemented return value from sq_inplace_concat. Thanks, Matt Python 2.7.3 (default, Jan 2 2013, 13:56:14) [GCC 4.7.2] on linux2 Stack trace where a watch on sq->sq_inplace

Re: [Python-Dev] Why is nb_inplace_add copied to sq_inplace_concat?

2013-05-16 Thread Matt Newell
On Thursday, May 16, 2013 08:41:32 PM you wrote: > On Fri, May 17, 2013 at 1:38 PM, Nick Coghlan wrote: > > On Fri, May 17, 2013 at 9:17 AM, Matt Newell wrote: > >> I don't really understand what the fixup_slot_dispatchers function is > >> doing, but it does seem

[Python-Dev] unittest.TestSuite holding references to unittest.TestCase instances too long

2013-08-02 Thread Matt McClure
nversation on django-developers[1] that led me here. [1]: https://groups.google.com/forum/#!topic/django-developers/XUMetDSGVT0 -- Matt McClure http://matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure ___ Python-Dev mailing list

Re: [Python-Dev] unittest.TestSuite holding references to unittest.TestCase instances too long

2013-08-02 Thread Matt McClure
;ll see if I can contribute there. -- Matt McClure http://matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.

Re: [Python-Dev] unittest.TestSuite holding references to unittest.TestCase instances too long

2013-08-03 Thread Matt McClure
crack at the docs. # HG changeset patch # User Matt McClure # Date 1375538965 14400 # Node ID d748d70201929288c230862da4dbdba33d61ae9f # Parent bf43956356ffe93e75ffdd5a7a8164fc68cf14ae [11798] Document TestSuite.{__iter__, run} changes diff --git a/Doc/library/unittest.rst b/Doc/library/unitt

Re: [Python-Dev] unittest.TestSuite holding references to unittest.TestCase instances too long

2013-08-03 Thread Matt McClure
On Aug 3, 2013, at 12:07 PM, "R. David Murray" wrote: > Thanks. Please post your patch to the issue, it will get lost here. I'm trying to register, but I'm not receiving a confirmation email to complete the registration. -- http://matthewlmcclure.com http://about.mapmyfitness.com _

Re: [Python-Dev] unittest.TestSuite holding references to unittest.TestCase instances too long

2013-08-05 Thread Matt McClure
backport to unittest2? -- Matt McClure http://matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/

Re: [Python-Dev] unittest.TestSuite holding references to unittest.TestCase instances too long

2013-08-06 Thread Matt McClure
ittest2/compare/issue11798-tip..issue11798-base#diff [2]: https://code.google.com/p/unittest-ext/issues/detail?id=76&sort=-id [3]: https://pypi.python.org/pypi/unittest2 -- Matt McClure http://matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure ___

[Python-Dev] A question concerning named pipes, multiprocessing.Queue (multiprocessing.queues.JoinableQueue)

2016-08-01 Thread Matt Gregory
I raised this issue and question on StackExchange and #python (FreeNode) and have received little or no feedback. I fear that the only answer will lie in profiling the python interpreter itself, which is beyond the scope of my capabilities at present. The original question can be found here:

Re: [Python-Dev] Snap Python for simple distribution across multiple Linux distros

2017-05-22 Thread Matt Billenstein
On Tue, May 16, 2017 at 11:31:42AM +0100, Martin Wimpress wrote: > Is there someone here who'd be interested in doing the same for Python? Do snaps support Windows and/or MacOS? m -- Matt Billenstein [email protected] http://www.vazor.com/ __

Re: [Python-Dev] socketserver ForkingMixin waiting for child processes

2017-08-11 Thread Matt Billenstein
Common pattern I've used is to wait a bit, then send a kill signal. M -- Matt Billenstein [email protected] Sent from my iPhone 6 (this put here so you know I have one) > On Aug 11, 2017, at 5:44 AM, Victor Stinner wrote: > > Hi, > > I'm working on reducing the f

[Python-Dev] Re: python3 -bb and hash collisions

2019-09-10 Thread Matt Billenstein
ing __builtins__.str with something that asserts the given arg is not bytes. m -- Matt Billenstein [email protected] http://www.vazor.com/ ___ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] htt

[Python-Dev] Re: python3 -bb and hash collisions

2019-09-13 Thread Matt Billenstein
ursor.fetchall() ... [{'notes': 'hi there'}] [{'notes': '\\x6869207468657265'}] We were storing the response of an api request from requests and had grabbed response.content (bytes) instead of response.text (str). I was still able to decode the original data fro

[Python-Dev] Re: Recent PEP-8 change

2020-06-30 Thread Matt White
things up by removing the S&W guideline could've been trivially accomplished without generating any of this drama. It's baffling claim to promote cohesion and throw a partisan diatribe into the commit message. Mmm. Well, we said what we had to say. I think this captures the r

Re: [Python-Dev] Forking and Multithreading - enemy brothers

2010-02-03 Thread Matt Knox
there is some obvious problem with this that I am not seeing. Anyway, just food for thought. - Matt ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] "Missing" 2.5 feature

2006-07-10 Thread Matt Fleming
> > it be? :-) > I'm the SoC student working on the improvements for pdb, one of the improvements is allowing thread debugging. I was in fact, going to use the threadframe module if it was available on the system, having this method in the Python core is an even better solution.

[Python-Dev] new guy

2006-07-17 Thread matt westerburg
Hi my name is Matt Westerburg, I am a student and have only recently gotten into Python.  But have fallen in love with the language thus far.  Fantastic language and thank you very much for making it what it is today.  I am looking into getting into working on Python.  Still need sometime working

Re: [Python-Dev] [Python-checkins] r50708 - in python/trunk: Lib/test/test_sys.py Misc/NEWS Python/pystate.c

2006-07-19 Thread Matt Fleming
that isn't doing much at the moment, I can regurlary run tests (I submitted a patch not long back to make regrtest netbsd-3 aware). However, I can't turn it into a buildbot, sorry. Matt -- http://mattssanctuary.blogspot.com ___ Python-D

[Python-Dev] Improving unit tests for the standard library

2006-07-26 Thread Matt Fleming
eople will find time to modify the page approriately. When I get some spare time from my SoC project, I'll be working my way through the list. Thanks, Matt -- http://mattssanctuary.blogspot.com ___ Python-Dev mailing list Python-Dev@pytho

Re: [Python-Dev] uuid test suite failing

2006-07-27 Thread Matt Fleming
Also fixed this test on my NetBSD machine by using 'ifconfig -a' and checking for 'address:' in the output. But as Ronald said, not all platforms support the '-a' flag. Not sure if this will fix the OpenBSD buildbot, I don&

Re: [Python-Dev] Is this a bug?

2006-08-09 Thread Matt Fleming
dlerList (as a global) is already cleaned up, which is why > the subscript fails. > > Georg > > ___ Could it be considered a bug in the atexit module (or is that what you meant)? Seeing as there's no _decent_ way to recover from

Re: [Python-Dev] Status of json (simplejson) in cpython

2011-04-15 Thread Matt Billenstein
roblem with trivial benchmarks. With more typical data > (for us, anyway) you should see very different results. Slightly less crude benchmark showing simplejson is quite a bit faster: http://pastebin.com/g1WqUPwm 250ms vs 5.5s encoding and decoding an 11KB json object 1000 times... m -- Matt

Re: [Python-Dev] Status of json (simplejson) in cpython

2011-04-15 Thread Matt Billenstein
roblem with trivial benchmarks. With more typical data > (for us, anyway) you should see very different results. Slightly less crude benchmark showing simplejson is quite a bit faster: http://pastebin.com/g1WqUPwm 250ms vs 5.5s encoding and decoding an 11KB json object 1000 times... m -- Matt

Re: [Python-Dev] Status of json (simplejson) in cpython

2011-04-16 Thread Matt Billenstein
On Sat, Apr 16, 2011 at 01:30:13PM +0200, Antoine Pitrou wrote: > On Sat, 16 Apr 2011 00:41:03 + > Matt Billenstein wrote: > > > > Slightly less crude benchmark showing simplejson is quite a bit faster: > > > > http://pastebin.com/g1WqUPwm > > > &

Re: [Python-Dev] Status of json (simplejson) in cpython

2011-04-17 Thread Matt Billenstein
On Sun, Apr 17, 2011 at 08:22:20AM +0200, Stefan Behnel wrote: > Matt Billenstein, 17.04.2011 00:47: > >On Sat, Apr 16, 2011 at 01:30:13PM +0200, Antoine Pitrou wrote: > >>On Sat, 16 Apr 2011 00:41:03 + > >>Matt Billenstein wrote: > >>> > >>>

Re: [Python-Dev] which SSL client protocols work with which server protocols?

2007-09-11 Thread Matt Goodall
an't remember the exact results now. More importantly, what you recommend is what Twisted does and I'd believe them more than me any time ;-). See Twisted's DefaultOpenSSLContextFactory [1] for the server side and ClientContextFactory [2] for the client side. Cheers, Matt [1] Defa

Re: [Python-Dev] [Python-3000] Python source code on Bazaar vcs

2008-03-24 Thread Matt Nordhoff
[EMAIL PROTECTED] wrote: > Barry> All the gory details are documented here: > > Barry> http://www.python.org/dev/bazaar > > Thanks. I checked out, made a branch named test3, changed Makefile.pre.in > to have a test3 target, checked it in, then tried to push it: > > % pwd >

[Python-Dev] urllib.quote and unquote - Unicode issues

2008-07-12 Thread Matt Giuca
y it). And thirdly, if the first two are positive, if anyone would like to review this patch and check it in. I have extensively tested it, and am now pretty confident that it won't cause any grief if it's checked in. Thanks very much, Matt Giuca ___

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-07-12 Thread Matt Giuca
claim to have implemented IRIs or even know enough about them to do that. I'll read up on these things in the next few days. However, this is a URI library, not IRI. From what I've seen, it's percent-encoded URIs coming in from the browser, not IRIs. We just need to make sure with this patch that IRIs don't become less-supported than they were before; don't need to explicitly support them. Cheers, Matt Giuca ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-07-12 Thread Matt Giuca
> This POV is way too browser-centric... > This is but one example. Note that I found web forms to be the least clear-cut example of choosing an encoding. Most of the time applications seem to be using UTF-8, and all the standards I have read are moving towards specifying UTF-8 (from being unspeci

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-07-13 Thread Matt Giuca
.unquote('h%C3%BCllo') b'h\xc3\xbcllo' I would object to that on two grounds. Firstly, I wouldn't expect or desire a bytes object. The vast majority of uses for unquote will be to get a character string out, not bytes. Secondly, there is a mountain of code (including about 12

Re: [Python-Dev] str(container) should call str(item), not repr(item)

2008-07-28 Thread Matt Giuca
debugging. This means all my classes behave like containers currently do - their str will call repr on the items. This proposal will make all of my classes behave inconsistently with the standard container types. - Matt Giuca ___ Python-Dev mailing list Python

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-07-30 Thread Matt Giuca
r byte strings; possible to hack around it. Cons: unquote is not inverse of quote; quote behaviour internally-inconsistent; garbage when unquoting UTF-8-encoded URIs. 2. Default to UTF-8. In favour: Matt Giuca, Brett Cannon, Jeroen Ruigrok van der Werven Pros: Fully working and tested solution is

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-07-30 Thread Matt Giuca
Arg! Damnit, why do my replies get split off from the main thread? Sorry about any confusion this may be causing. ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mai

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-07-30 Thread Matt Giuca
nt? And hard-code UTF-8 into these functions? It seems like we may as well have the optional encoding argument, as it does no harm and could be of significant benefit. I'll post a patch with the unquote_to_bytes function, but leave the encoding arguments in until this point is clarified

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-07-31 Thread Matt Giuca
t, as long as it isn't used to change > the return type (as Bill was proposing). Yeah, my unquote always outputs a str, and unquote_to_bytes always outputs a bytes. Matt ___ Python-Dev mailing list [email protected] http://mail.python.org/mailma

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-07-31 Thread Matt Giuca
This is one example of my patch directly fixing a bug in real code. With my patch applied, the links work fine *because URL quoting and unquoting are consistent, and work on all Unicode characters*. If you change unquote to output a bytes, it breaks completely. You get a "TypeError: expected an object with the buffer interface" as soon as the user visits the page. Matt ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-07-31 Thread Matt Giuca
> so you can use quote_from_bytes on strings? Yes, currently. > I assumed Guido meant it was okay to have quote accept string/byte input and > have a function that was redundant but limited in what it accepted (i.e. > quote_from_bytes accepts only bytes) > > I suppose your implementation doesn'

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-08-05 Thread Matt Giuca
w if there is anything I can do to speed this along. Also I'd be interested in hearing anyone's opinion on the "quote_from_bytes" issue as raised in the previous email. I posted a suggested implementation of a more restrictive quote_from_bytes in that email, but I haven't

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-08-05 Thread Matt Giuca
future? I'm far less concerned about the decision with regards to unquote_to_bytes/quote_from_bytes, as those are new features which can wait. Matt Giuca ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-08-06 Thread Matt Giuca
> This whole discussion circles too much, I think. Maybe it should be pepped? The issue isn't circular. It's been patched and tested, then a whole lot of people agreed including Guido. Then you and Bill wanted the bytes functionality back. So I wrote that in there too, and Bill at least said that

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-08-06 Thread Matt Giuca
is it. > A PEP could fix that. > I could write a PEP. But as you've read above, I'm concerned this won't get into Python 3.0, and then we'll be locked into the existing functionality and it'll never get accepted; hence I'd rather this be resolved as quickly

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-08-07 Thread Matt Giuca
don't like it - for a user application that's a good policy. But for a programming language library, I think it should not do guesswork. It should use the encoding supplied, and have a single default. But I'd be interested to hear if anyone else wants this. As-is, it pa

Re: [Python-Dev] String concatenation

2008-08-09 Thread Matt Giuca
Is the only issue with this feature that you might accidentally miss a comma after a string in a sequence of strings? That seems like a significantly obscure scenario compared to the usefulness of the current syntax, for exactly the purpose Barry points out (which most people use all the time). I

[Python-Dev] bytes.tohex in Python 3

2008-08-09 Thread Matt Giuca
join(hex(b)[2:] for b in mybytes) I think there should be a bytes.tohex() method. I'll add this as a bug report if it indeed is an oversight, but I thought I'd check here first to make sure I'm not just missing something. Matt ___ Python-Dev mailin

Re: [Python-Dev] bytes.tohex in Python 3

2008-08-09 Thread Matt Giuca
Well, whether there's community support for this or not, I thought I'd have a go at implementing this, so I did. I've submitted a feature request + working patch to the bug tracker: http://bugs.python.org/issue3532 Matt PS. I mean ''.join(&q

Re: [Python-Dev] bytes.tohex in Python 3

2008-08-09 Thread Matt Giuca
eturn bytes, not strings. Is this an oversight? (My version of tohex returns a str). See tracker: http://bugs.python.org/issue3532 Matt ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

[Python-Dev] uuid test fails

2008-08-14 Thread Matt Giuca
Hi, I thought I'd bring this up on both the tracker and mailing list, since it's important. It seems the test suite breaks as of r65661. I've posted details to the bug tracker and a patch which fixes the module in question (uuid.py). http://bugs.python.org/issue35

Re: [Python-Dev] ImportError message suggestion

2008-08-19 Thread Matt Giuca
x27;t write the C code myself, or evaluate the patch. > Go to http://bugs.python.org/ and add a new issue. Upload the patch as an attachment when you enter the issue description. I think you'll have to put it down as a feature request for 2.7/3.1, since the beta tomorrow will mean no more features i

Re: [Python-Dev] ImportError message suggestion

2008-08-19 Thread Matt Giuca
tion. Otherwise, looks like it will do the job. But I haven't tested it, just eyeballed it. Matt ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Things to Know About Super

2008-08-24 Thread Matt Giuca
Hi Michele, Do you have a URL for this blog? Matt ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] Fwd: Things to Know About Super

2008-08-24 Thread Matt Giuca
Had a brief offline discussion with Michele - forwarding. -- Forwarded message -- From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Mon, Aug 25, 2008 at 12:13 AM On Aug 24, 3:43 pm, "Matt Giuca" <[EMAIL PROTECTED]> wrote: > Hi Michele, > > Do you h

Re: [Python-Dev] Documentation Error for __hash__

2008-08-28 Thread Matt Giuca
: ... return True ... >>> x = X() >>> hash(x) Traceback (most recent call last): File "", line 1, in TypeError: unhashable type: 'X' Matt ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Documentation Error for __hash__

2008-08-29 Thread Matt Giuca
> Being hashable is a different from being usable as dictionary key. > > Dictionaries perform the lookup based on the hash value, but will > then have to check for hash collisions based on an equal comparison. > > If an object does not define an equal comparison, then it is not > usable as dictiona

Re: [Python-Dev] Documentation Error for __hash__

2008-08-29 Thread Matt Giuca
act just the same as old-style classes are in Python 2). So the Python 3 docs can get away with being simpler (without having to handle that weird case). I just saw Marc-Andre's new email come in; I'll look at that now. Matt ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Documentation Error for __hash__

2008-08-29 Thread Matt Giuca
ethods > on classes, even if the application will just use one of them. > Well it certainly is for new-style classes in the 2.x branch. I don't think you should implement __hash__ in Python 3 if you just want a non-hashable object (since this is the default behaviour anyway).

[Python-Dev] patch for Cookie.py to add support for HttpOnly

2008-09-04 Thread Matt Chisholm
Python web applications? Is there a way that this could go in to 2.6.1/3.0.1? -matt ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/arch

Re: [Python-Dev] file.readinto performance regression in Python 3.2 vs. 2.7?

2011-11-24 Thread Matt Joiner
What if you broke up the read and built the final string object up. I always assumed this is where the real gain was with read_into. On Nov 25, 2011 5:55 AM, "Eli Bendersky" wrote: > On Thu, Nov 24, 2011 at 20:29, Antoine Pitrou wrote: > >> On Thu, 24 Nov 2011 20:15:25 +0200 >> Eli Bendersky wr

Re: [Python-Dev] file.readinto performance regression in Python 3.2 vs. 2.7?

2011-11-24 Thread Matt Joiner
Eli, Example coming shortly, the differences are quite significant. On Fri, Nov 25, 2011 at 9:41 AM, Eli Bendersky wrote: > On Fri, Nov 25, 2011 at 00:02, Matt Joiner wrote: >> >> What if you broke up the read and built the final string object up. I >> always assumed t

Re: [Python-Dev] file.readinto performance regression in Python 3.2 vs. 2.7?

2011-11-24 Thread Matt Joiner
ot;top-posting" am I guilty of this? Gmail defaults to putting my response above the previous email. On Fri, Nov 25, 2011 at 11:49 AM, Matt Joiner wrote: > Eli, > > Example coming shortly, the differences are quite significant. > > On Fri, Nov 25, 2011 at 9:41 AM, Eli Bendersky

Re: [Python-Dev] file.readinto performance regression in Python 3.2 vs. 2.7?

2011-11-24 Thread Matt Joiner
On Fri, Nov 25, 2011 at 12:07 PM, Antoine Pitrou wrote: > On Fri, 25 Nov 2011 12:02:17 +1100 > Matt Joiner wrote: >> It's my impression that the readinto method does not fully support the >> buffer interface I was expecting. I've never had cause to use it until >&g

Re: [Python-Dev] file.readinto performance regression in Python 3.2 vs. 2.7?

2011-11-25 Thread Matt Joiner
t; The file was 10MB. I expected readinto to perform much better than >> readandcopy. I expected readandcopy to perform slightly better than >> justread. This clearly isn't the case. >> > > What is 'python3' on your machine? If it's 3.2, then thi

Re: [Python-Dev] file.readinto performance regression in Python 3.2 vs. 2.7?

2011-11-25 Thread Matt Joiner
You can see in the tests on the largest buffer size tested, 8192, that the naive "read" actually outperforms readinto(). It's possibly by extrapolating into significantly larger buffer sizes that readinto() gets left behind. It's also reasonable to assume that this wasn't tested thoroughly. On Fri

Re: [Python-Dev] file.readinto performance regression in Python 3.2 vs. 2.7?

2011-11-25 Thread Matt Joiner
On Fri, Nov 25, 2011 at 10:04 PM, Antoine Pitrou wrote: > On Fri, 25 Nov 2011 20:34:21 +1100 > Matt Joiner wrote: >> >> It's Python 3.2. I tried it for larger files and got some interesting >> results. >> >> readinto() for 10MB files, reading 10MB all at

Re: [Python-Dev] file.readinto performance regression in Python 3.2 vs. 2.7?

2011-11-25 Thread Matt Joiner
I was under the impression this is already in 3.3? On Nov 25, 2011 10:58 PM, "Eli Bendersky" wrote: > > >> > However, the original question remains - on the 100MB file also, although >> > in 2.7 readinto is 35% faster than readandcopy(), on 3.2 it's about the >> > same speed (even a few % slower)

Re: [Python-Dev] Deprecation policy

2011-11-28 Thread Matt Joiner
On Mon, Nov 28, 2011 at 11:14 PM, Steven D'Aprano wrote: > Xavier Morel wrote: > >> Not being too eager to kill APIs is good, but giving rise to this kind of >> living-dead APIs is no better in my opinion, even more so since Python has >> lost one of the few tools it had to manage them (as Depreca

Re: [Python-Dev] Deprecation policy

2011-11-29 Thread Matt Joiner
I like this article on it: http://semver.org/ The following snippets being relevant here: Minor version Y (x.Y.z | x > 0) MUST be incremented if new, backwards compatible functionality is introduced to the public API. It MUST be incremented if any public API functionality is marked as deprecated

Re: [Python-Dev] LZMA support has landed

2011-11-29 Thread Matt Joiner
Congrats, this is an excellent feature. On Wed, Nov 30, 2011 at 10:34 AM, Amaury Forgeot d'Arc wrote: > 2011/11/29 Nadeem Vawda >> >> I'm pleased to announce that as of changeset 74d182cf0187, the >> standard library now includes support for the LZMA compression >> algorithm > > > Congratulation

[Python-Dev] STM and python

2011-11-30 Thread Matt Joiner
Given GCC's announcement that Intel's STM will be an extension for C and C++ in GCC 4.7, what does this mean for Python, and the GIL? I've seen efforts made to make STM available as a context, and for use in user code. I've also read about the "old attempts way back" that attempted to use finer gr

Re: [Python-Dev] STM and python

2011-11-30 Thread Matt Joiner
I did see this, I'm not convinced it's only relevant to PyPy. On Thu, Dec 1, 2011 at 2:25 AM, Benjamin Peterson wrote: > 2011/11/30 Matt Joiner : >> Given GCC's announcement that Intel's STM will be an extension for C >> and C++ in GCC 4.7, what does this mean

Re: [Python-Dev] STM and python

2011-11-30 Thread Matt Joiner
I saw this, I believe it just exposes an STM primitive to user code. It doesn't make use of STM for Python internals. Explicit STM doesn't seem particularly useful for a language that doesn't expose raw memory in its normal usage. On Thu, Dec 1, 2011 at 4:41 PM, Nick Coghlan wrote: > On Thu, Dec

Re: [Python-Dev] STM and python

2011-12-01 Thread Matt Joiner
M, Armin Rigo wrote: > Hi, > > On Thu, Dec 1, 2011 at 07:06, Matt Joiner wrote: >> I saw this, I believe it just exposes an STM primitive to user code. >> It doesn't make use of STM for Python internals. > > That's correct. > >> Explicit STM doesn&#x

Re: [Python-Dev] STM and python

2011-12-06 Thread Matt Joiner
This is very interesting, cheers for the link. On Tue, Dec 6, 2011 at 8:55 PM, Armin Rigo wrote: > Hi, > > Actually, not even one month ago, Intel announced that its processors > will offer Hardware Transactional Memory in 2013: > > http://www.h-online.com/newsticker/news/item/Processor-Whispers-

Re: [Python-Dev] readd u'' literal support in 3.3?

2011-12-08 Thread Matt Joiner
Nobody is using 3 yet ;) Sure, I use it for some personal projects, and other people pretend to support it. Not really. The worst of the pain in porting to Python 3000 has yet to even begin! On Thu, Dec 8, 2011 at 6:33 PM, Nick Coghlan wrote: > Such code still won't work on 3.2, hence restoring

Re: [Python-Dev] Fixing the XML batteries

2011-12-09 Thread Matt Joiner
+1 On Sat, Dec 10, 2011 at 2:09 AM, Dirkjan Ochtman wrote: > On Fri, Dec 9, 2011 at 09:02, Stefan Behnel wrote: >> a) The stdlib documentation should help users to choose the right tool right >> from the start. >> b) cElementTree should finally loose it's "special" status as a separate >> librar

Re: [Python-Dev] [PATCH] Adding braces to __future__

2011-12-09 Thread Matt Joiner
If braces were introduced I would switch to Haskell, I can't stand the noise. If you want to see a language that allows both whitespace, semi colons and braces take a look at it. Nails it. On Dec 10, 2011 9:31 AM, "Cedric Sodhi" wrote: > On Fri, Dec 09, 2011 at 02:21:42PM -0800, Guido van Rossum

Re: [Python-Dev] Fixing the XML batteries

2011-12-09 Thread Matt Joiner
I second this. The doco is very bad. On Dec 10, 2011 6:34 AM, "Bill Janssen" wrote: > Xavier Morel wrote: > > > On 2011-12-09, at 19:15 , Bill Janssen wrote: > > > I use ElementTree for parsing valid XML, but minidom for producing it. > > Could you expand on your reasons to use minidom for produ

Re: [Python-Dev] [PATCH] Adding braces to __future__

2011-12-09 Thread Matt Joiner
standpoint of not > intersparsing readable code with unnatural characters. > > On Sat, Dec 10, 2011 at 09:40:54AM +1100, Matt Joiner wrote: > >If braces were introduced I would switch to Haskell, I can't stand the > >noise. If you want to see a language that allows b

Re: [Python-Dev] Potential NULL pointer dereference in descrobject.c

2011-12-17 Thread Matt Joiner
ಠ_ಠ On Sat, Dec 17, 2011 at 8:55 PM, Michael Mueller wrote: > Hi Guys, > > We've been analyzing CPython with our static analysis tool (Sentry) > and a NULL pointer dereference popped up the other day, in > Objects/descrobject.c: > >    if (descr != NULL) { >        Py_XINCREF(type); >        desc

Re: [Python-Dev] Anyone still using Python 2.5?

2011-12-21 Thread Matt Joiner
I'm paid to write Python3. I've also been writing Python3 for hobby projects since mid 2010. I'm on the verge of going back to 2.7 due to compatibility issues :( On Thu, Dec 22, 2011 at 1:45 PM, Mike Meyer wrote: > On Thu, 22 Dec 2011 01:49:37 + > Michael Foord wrote: >> These figures can't

Re: [Python-Dev] PEP 7 clarification request: braces

2012-01-03 Thread Matt Joiner
FWIW I'm against forcing braces to be used. Readability is the highest concern, and this should be at the discretion of the contributor. A code formatting tool, or compiler extension is the only proper handle this, and neither are in use or available. On Tue, Jan 3, 2012 at 7:44 PM, "Martin v. Löw

Re: [Python-Dev] usefulness of Python version of threading.RLock

2012-01-05 Thread Matt Joiner
I'm pretty sure the Python version of RLock is in use in several alternative implementations that provide an alternative _thread.lock. I think gevent would fall into this camp, as well as a personal project of mine in a similar vein that operates on python3. 2012/1/6 Charles-François Natali > Hi

Re: [Python-Dev] usefulness of Python version of threading.RLock

2012-01-06 Thread Matt Joiner
_PyRLock is not used directly. Instead, no _CRLock is provided, so the threading.RLock function calls _PyRLock. It's done this way because green threading libraries may only provide a greened lock. _CRLock in these contexts would not work: It would block the entire native thread. I suspect that i

Re: [Python-Dev] usefulness of Python version of threading.RLock

2012-01-07 Thread Matt Joiner
Nick did you mean to say "wrap python code around a reentrant lock to create a non-reentrant lock"? Isn't that what PyRLock is doing? FWIW having now read issues 13697 and 13550, I'm +1 for dropping Python RLock, and all the logging machinery in threading. 2012/1/8 Nick Coghlan > 2012/1/7 Charl

Re: [Python-Dev] Python C API: Problem sending tuple to a method of a python Class

2012-01-10 Thread Matt Joiner
Perhaps the python-dev mailing list should be renamed to python-core. On Tue, Jan 10, 2012 at 7:35 PM, Stefan Behnel wrote: > Hi, > > sorry for hooking into this off-topic thread. > > Amaury Forgeot d'Arc, 09.01.2012 19:09: >> 2012/1/9 >>> I am trying to send a tuple to a method of a python clas

Re: [Python-Dev] devguide: Backporting is obsolete. Add details that I had to learn.

2012-01-10 Thread Matt Joiner
http://semver.org/ This has made sense since Gentoo days. On Tue, Jan 10, 2012 at 11:57 PM, Antoine Pitrou wrote: > On Tue, 10 Jan 2012 08:49:04 + > Rob Cliffe wrote: >> But "minor version" and "major version" are readily understandable to >> the general reader, e.g. me, whereas "feature re

Re: [Python-Dev] Python C API: Problem sending tuple to a method of a python Class

2012-01-10 Thread Matt Joiner
I suspect it actually would fix the confusion. "dev" usually means development, not "core implementation development". People float past looking for dev help... python-dev. Python-list is a bit generic. On Tue, Jan 10, 2012 at 11:17 PM, Stefan Behnel wrote: > Matt J

  1   2   >