Re: [Python-Dev] PEP 488: elimination of PYO files

2015-03-07 Thread Scott Dial
.pyc and .pyo files (using -O for the .pyo). Is it your expectation that such platforms will still distribute -O only? Or also -OO? In my world, all of the __pycache__ directories are owned by root. -- Scott Dial [email protected] ___ Python-Dev mai

Re: [Python-Dev] Request for comments: [issue22941] IPv4Interface arithmetic changes subnet mask

2015-03-12 Thread Scott Dial
you take the perspective that the address is just a 32-bit unsigned integer, then it makes perfect sense. I would argue it's likely to be a source of bugs, but I can't say either way because I never adopted using this library due to issues that are cataloged in the mailing

Re: [Python-Dev] 2.x vs 3.x survey results

2014-01-04 Thread Scott Dial
ython 3.x? Of the 40% of people who said they have never written Python 3.x, how many of them also said they had dependencies keeping them on Python 2.x? Etc. -- Scott Dial [email protected] ___ Python-Dev mailing list [email protected] https://ma

Re: [Python-Dev] PEP 460: allowing %d and %f and mojibake

2014-01-12 Thread Scott Dial
seem to concede that bytes is the type you want to use for 7-bit ASCII manipulations. If that is not what we want, then we are not doing a good job communicating that to developers with the API. At the onset, the bytes literal itself seems to be an attractive nuisance

Re: [Python-Dev] Enable Hostname and Certificate Chain Validation

2014-01-22 Thread Scott Dial
cert was wholly sufficient. The management tools use a RESTful interface over HTTPS for control, but you are telling me this will be broken by default now. What do I tell our developers (who often adopt the latest and greatest versions of things to play with)? -- Scott Dial sc.

Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-13 Thread Scott Dial
m values that represent states of a system get merged or renamed over time, and this one is a great example of that. [1] http://www.gnu.org/savannah-checkouts/gnu/libc/manual/html_node/Error-Codes.html#index-EAGAIN-97 -- Scott Dial [email protected] ___

Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-23 Thread Scott Dial
other "things" that are not like "C". However, if you think of "C" as a "class of things", then "C" having attributes that are instances of it's type is completely natural. Fundamentally, the question is whether an instance of Enum is a new t

Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-23 Thread Scott Dial
On 4/23/2013 11:58 AM, Guido van Rossum wrote: > You seem to be mixing up classes and metaclasses. I was trying to explain it in more plain terms, but maybe I made it even more confusing.. Anyways, I agree with you that isinstance(Color.RED, Color) should be True. -- Scott Dial

Re: [Python-Dev] RFC: PEP 445: Add new APIs to customize Python memory allocators

2013-06-18 Thread Scott Dial
; PyMemBlockAllocator pymem_raw_allocator = {.alloc=&_alloc_pymem_raw, .free=&_free_pymem}; PyMemBlockAllocator pyobject_allocator = {.alloc=&_alloc_pyobject, .free=&_free_pyobject}; """ And in the latter case, there is no extra

Re: [Python-Dev] RFC: PEP 445: Add new APIs to customize Python memory allocators

2013-06-18 Thread Scott Dial
ontext" id. This is then set according to a global sys.memcontext variable, which the program will modify according to what it is doing. This can then be used to track memory usage by different parts of the program. """ -- Scott Dial [email protected] ___

Re: [Python-Dev] cpython (2.7): Fix comment blocks. Adjust blocksize to a power-of-two for better divmod

2013-06-22 Thread Scott Dial
eem best that sizeof(block) == 64, so BLOCKLEN should be (64 - 2*sizeof(PyObject *)). Nevertheless, I am skeptical that any tuning of this structure provides any meaningful performance improvement. -- Scott Dial [email protected] ___ Python-Dev mail

Re: [Python-Dev] cpython (2.7): Fix comment blocks. Adjust blocksize to a power-of-two for better divmod

2013-06-23 Thread Scott Dial
and allocations were 16 byte aligned, so there could never be a cache miss. Nowadays, cache lines are still 64 bytes but pointers are 8 bytes, and we still allocating on 16 byte alignment, so you have a 25% chance of a cache miss now. -- Scott Dia

Re: [Python-Dev] please back out changeset f903cf864191 before alpha-2

2013-08-26 Thread Scott Dial
g practice in this specific area too (e.g., XMLParser). [1] http://twistedmatrix.com/documents/13.1.0/api/twisted.protocols.ftp.IFinishableConsumer.html -- Scott Dial [email protected] ___ Python-Dev mailing list [email protected] http://mail.pyth

Re: [Python-Dev] Ext4 data loss

2009-03-11 Thread Scott Dial
ning no implicit syncs. > > That looks good, though I'd prefer using named constants rather than > strings. I would agree, but where do you put them? Since open is a built-in, where would you suggest placing such constants (assuming we don't want to pollute t

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-20 Thread Scott Dial
or format trunk/Modules/_multiprocessing/connection.h: In function `connection_repr': trunk/Modules/_multiprocessing/connection.h:401: warning: unknown conversion type character `z' in format trunk/Modules/_multiprocessing/connection.h: In function `connection_new': trunk/Modules/_multiprocessing/

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-22 Thread Scott Dial
/local/gnu/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/specs gcc version 2.95.2 19991024 (release) My build output from within the trunk is the same as his modulo the details of being part of a trunk build instead. Is Solaris 8 really a supported platform? If so, I can investigate the changes he sugg

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-23 Thread Scott Dial
versions of Solaris, but not on others. It would be better > if autoconf tests were written, and the entire configuration removed > from setup.py. I agree, but I am not familiar enough with the set of features that multiprocessing is implicitly depending on and how to test for them on all

Re: [Python-Dev] PEP 380 (yield from a subgenerator) comments

2009-03-27 Thread Scott Dial
return 2 # used internally def f() # squelch the runtime error yield from self._f() As Greg has said a number of times, we allow functions to return values with them silently being ignored all the time. -- Scott

Re: [Python-Dev] Tuples and underorderable types

2009-04-24 Thread Scott Dial
n be total ordered. We shouldn't be patching the object base class because of legacy code that relied on sorting tuples; this code should be updated to either use a key function. -Scott -- Scott Dial [email protected] [email protected] ___ Pyt

Re: [Python-Dev] PEP 376

2009-07-03 Thread Scott Dial
ot; in the PEP become speculative. Someone feel free to correct me if I am incorrect about the desired tone and use of the document.. -Scott -- Scott Dial [email protected] [email protected] ___ Python-Dev mailing list [email protected]

Re: [Python-Dev] functools.compose to chain functions together

2009-08-17 Thread Scott Dial
Greg Ewing wrote: > Jason R. Coombs wrote: >> I had a use case that was compelling enough that I thought there >> should be something in functools to do what I wanted. > > I think this is one of those things that a small minority of > people would use frequently, but everyone else would use > very

Re: [Python-Dev] default of returning None hurts performance?

2009-09-01 Thread Scott Dial
ion, > the optimization doesn't help inner-loops in a function (where most of > the time usually spent). > I fail to understand this crude logic. How often is the inner-loop really going to solely call C code? Any call to Python in an inner-loop is going to suffer this pe

Re: [Python-Dev] default of returning None hurts performance?

2009-09-01 Thread Scott Dial
ion, > the optimization doesn't help inner-loops in a function (where most of > the time usually spent). > I fail to understand this crude logic. How often is the inner-loop really going to solely call C code? Any call to Python in an inner-loop is going to suffer this pe

Re: [Python-Dev] how to debug httplib slowness

2009-09-04 Thread Scott Dial
ient must support chunked transfer-encoding, and apparently Tomcat/Coyote defaults to that unless it is either an empty message, not a HTTP/1.1 client, or the request is not to be kept alive ("Connection: close" or no more keep-alive slots on the server). As Simon said, changing this to do &#

Re: [Python-Dev] PEP 3144 review.

2009-09-15 Thread Scott Dial
n IPNetwork and being an IPAddressWithNetwork. And finally, it's unclear to me why iterating over a IPNetwork would not produce a sequence of IPNetwork(/IPAddressWithNetwork) objects. ISTM that if I started with an IPNetwork object, the API should always return IPNetwork objects. If I want ju

Re: [Python-Dev] PEP 3144 review.

2009-09-15 Thread Scott Dial
Peter Moody wrote: > On Tue, Sep 15, 2009 at 10:16 AM, Scott Dial > wrote: >> In the end, I found the names IPNetwork/IPAddress and their >> instantiations confusing. ISTM that IPNetwork is overloaded and plays >> two roles of being an IPNetwork and being an IPAddressWit

Re: [Python-Dev] PEP 3144 review.

2009-09-15 Thread Scott Dial
hat can of worms. If indexing a IPv4Network returned IPv4AddressWithNetwork, then that would remove that oddity. This would also solve the weirdness that Stephen brought up in another branch of this discussion: Stephen J. Turnbull wrote: > Scott Dial writes: > > ipaddr.IPv4Network('1

Re: [Python-Dev] PEP 3144 review.

2009-09-15 Thread Scott Dial
work(addr, net)) I guess I am ok with this. It seems sub-optimal (why not just return a IPv4AddressWithNetwork to begin with?) but I suppose it is no less efficient since the same objects would be constructed. -- Scott Dial [email protected] [email protected] __

Re: [Python-Dev] PEP 3144 review.

2009-09-15 Thread Scott Dial
Sebastian Rittau wrote: > On Tue, Sep 15, 2009 at 01:16:06PM -0400, Scott Dial wrote: >>>>> net = ipaddr.IPNetwork("10.1.2.3/255.255.240.0") >> But then, I was dumbfounded as to how I could get the gateway IP from >> this IPNetwork object. > > W

Re: [Python-Dev] PEP 3144 review.

2009-09-16 Thread Scott Dial
. If the IPNetwork didn't accept a non-zero host and instead required a developer to use a helper to construct a IPNetwork with a proper address, then there would be less confusion about what exactly a IPNetwork is meant to represent. As it stands, it's purposes is muddled by accepting

Re: [Python-Dev] PEP 3144 review.

2009-09-28 Thread Scott Dial
However, I will *never* support a proposal that includes retaining the host address. I believe I am not alone in that. However, Peter has made it quite clear that he will *never* change that about the IPNetwork classes. I would be quite glad to not have ipaddr included in the stdlib. As I can only imagine

Re: [Python-Dev] Python 2.6.3

2009-10-01 Thread Scott Dial
daily basis. I have submitted a patch, which reflects my local solution. -Scott [1] http://pyropus.ca/software/getmail/ -- Scott Dial [email protected] [email protected] ___ Python-Dev mailing list [email protected] http://mail.python.org/mail

Re: [Python-Dev] Python 2.6.3

2009-10-01 Thread Scott Dial
Scott Dial wrote: > While this code is present in > older versions of python, it seems to have become a problem recently > (2009-05-06 is the earliest report on the issue) perhaps due to a > version bump of OpenSSL? I never noticed the problem in python2.5 even > though the code is

Re: [Python-Dev] Python 2.6.3

2009-10-01 Thread Scott Dial
Nick Coghlan wrote: > Scott Dial wrote: >> I would appreciate this bug being resolved before the next release as it >> effects me on a daily basis. I have submitted a patch, which reflects my >> local solution. > > Unfortunately, it's almost certainly too late to

Re: [Python-Dev] a new setuptools release?

2009-10-07 Thread Scott Dial
a hard time coexisting. > Less political bickering, and the some of the technical results I > hoped for all along are achieved. Yay, open source. And yet, political bickering seems to be all you are good for in this case. -- Scott Dial [email protected] [email protected] _

Re: [Python-Dev] Python 2.6.4rc1

2009-10-07 Thread Scott Dial
ss of an opportunity. -- Scott Dial [email protected] [email protected] ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archiv

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-12 Thread Scott Dial
atform module. Until they are critical to run-time performance, why not wait to add these extra things? The only thing that has been indicated as needed is the identifier for the python implementation. sys.vm or sys.implementation may very well fully support the use cases given merely by being

Re: [Python-Dev] GIL behaviour under Windows

2009-10-21 Thread Scott Dial
std dev: 0 ms.) CPU threads=4: 0 ms. (std dev: 0 ms.) -- Scott Dial [email protected] [email protected] ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.

Re: [Python-Dev] GIL behaviour under Windows

2009-10-21 Thread Scott Dial
x27;t have any multi-core systems around to test it on, I'm still in the stone age. -- Scott Dial [email protected] [email protected] ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] time.clock() on windows

2009-10-21 Thread Scott Dial
haps better because of this, you need only call it once, and you can cache the result for the life of your process. -- Scott Dial [email protected] [email protected] ___ Python-Dev mailing list [email protected] http://mail.python.org/

Re: [Python-Dev] PEP 3003 - Python Language Moratorium

2009-11-08 Thread Scott Dial
(it just happens that certain pairwise versions are related). -- Scott Dial [email protected] [email protected] ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.

Re: [Python-Dev] [RELEASED] Python 2.7 alpha 1

2009-12-05 Thread Scott Dial
-SSL: http://bugs.python.org/issue5949 Title: IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs -- Scott Dial [email protected] [email protected] ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-28 Thread Scott Dial
eve. PEP 386 versions can have an indefinite number of extradecimal versions. Pedantically, -- Scott Dial [email protected] [email protected] ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Uns

Re: [Python-Dev] Fwd: Download Page - AMD64

2010-01-13 Thread Scott Dial
; sense. This has no relevance to the conversation since there are no Linux binaries being distributed. The conversation on the expectations of Windows end-users, who are the target of the download links. [1] http://www.microsoft.com/servers/64bit/itanium/overview.mspx -- Scott Dial sc...@scott

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-21 Thread Scott Dial
the GPL). We suggest that you read the License[1] if further clarification is needed. """ """ We have no plans to change the license of LLVM. If you have questions or comments about the license, please contact the LLVM Oversight Group[2]. """ [1]

Re: [Python-Dev] Proposed downstream change to site.py in Fedora (sys.defaultencoding)

2010-01-22 Thread Scott Dial
on some systems, so this function only returns a guess. """ I already know that this suggestion will not get any following because, for most people, it just works. However: "In the face of ambiguity, refuse the temptation to guess." Would it really be that unfortunate to

Re: [Python-Dev] patch to make list.pop(0) work in O(1) time

2010-01-28 Thread Scott Dial
ot; does not work with; in fact, there is not even a "pop" operator -- all size changes of a vector O(n) unless the implementation is playing games (like the one you are proposing for the start and the one Python already uses for the end of a list). (And with this, clearly

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-29 Thread Scott Dial
0.302988: 1.0904x faster Avg: 0.349153 -> 0.394819: 1.1308x slower Not significant Stddev: 0.01158 -> 0.35049: 30.2739x larger Timeline: http://tinyurl.com/ylq8sef -- Scott Dial [email protected] [email protected] ___ 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] PEP 3147: PYC Repository Directories

2010-01-31 Thread Scott Dial
lack enough data points to reach statistical significance. However, if the ".pyr" zip file is going to contain many versions of the same module, then the performance impact could be more real, since you would be forced to pull from disk *all* of the versions

Re: [Python-Dev] Python 2.7b1 and argparse's version action

2010-04-19 Thread Scott Dial
far >>>>> I have not seen that. >> >> Do you take your own poll seriously? >> > When was this ever a democracy? Is consensus superficial? -- Scott Dial [email protected] [email protected] ___ Python-Dev

Re: [Python-Dev] Enhanced tracker privileges for dangerjim to do triage.

2010-04-26 Thread Scott Dial
ome people told me when I could scratch it and how they'd like it scratched.. but I wasn't ignored or rejected despite the lack of a maintainer. Thanks to RDM for giving my issue attention. -- Scott Dial [email protected] [email protected]

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-26 Thread Scott Dial
is not accepted, what happens to PEP 3148? After all, there was some complaints about just calling it "futures", without putting it in a "concurrent" namespace. -- Scott Dial [email protected] [email protected] ___ Python-Dev mai

Re: [Python-Dev] variable name resolution in exec is incorrect

2010-05-27 Thread Scott Dial
ing an object passed in, which is something that wouldn't be addressed by your original complaint about exec (as in, modifying a global data structure). Instead of: > if key in return_stuff and return_stuff[key] == context[key]: Use: > if key in return_stuff and return_st

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-27 Thread Scott Dial
g to wait anyways. ISTM, it is much easier to get behavior #2 if you have behavior #1, and it would also seem rather trivial to make ThreadPoolExecutor take an optional argument specifying which behavior you want. Your reference implementation does not actually implement the spec

Re: [Python-Dev] versioned .so files for Python 3.2

2010-06-24 Thread Scott Dial
build options you care about. Because the distro > controls how Python is configured, this should be fairly easy to achieve. For packages that have .so files, won't the distro already have to build multiple copies of that package for all version of Python? So, why can't it place th

Re: [Python-Dev] versioned .so files for Python 3.2

2010-06-25 Thread Scott Dial
On 6/24/2010 8:23 PM, James Y Knight wrote: > On Jun 24, 2010, at 5:53 PM, Scott Dial wrote: >> If the package has .so files that aren't compatible with other version >> of python, then what is the motivation for placing that in a shared >> location (since it can't a

Re: [Python-Dev] versioned .so files for Python 3.2

2010-06-25 Thread Scott Dial
On 6/24/2010 9:18 PM, Greg Ewing wrote: > Scott Dial wrote: > >> But the only motivation for doing this with .pyc files is that the .py >> files are able to be shared, > > In an application made up of a mixture of pure Python and > extension modules, the .py file

Re: [Python-Dev] versioned .so files for Python 3.2

2010-06-25 Thread Scott Dial
;re conflating what is being discussed with PEP 3147. That PEP is > independent of this. PEP 3147 just empowered this work to be relevant. Without a PEP (be it PEP 3147 or some other), what is the justification for doing this? The burden should be on "you" to explain why this is a

Re: [Python-Dev] versioned .so files for Python 3.2

2010-06-26 Thread Scott Dial
On 6/26/2010 4:06 PM, Matthias Klose wrote: > On 25.06.2010 22:12, James Y Knight wrote: >> On Jun 25, 2010, at 4:53 AM, Scott Dial wrote: >>> Placing .so files together does not simplify that install process in any >>> way. You will still have to handle such packages i

Re: [Python-Dev] versioned .so files for Python 3.2

2010-07-01 Thread Scott Dial
o having had all of this discussed and explained on the mailing list is certainly useful. I trust that yourself and the debuntu python group will end up chasing down and taking care of any quirks that this change might cause, so I am not worried about it. :D -- Scott Dial [email protected] sco

Re: [Python-Dev] Return from generators in Python 3.2

2010-08-26 Thread Scott Dial
ils on this list is generally the best way to have few look at your patch. :-p Also, this seems more appropriate for python-ideas. -- Scott Dial [email protected] [email protected] ___ Python-Dev mailing list [email protected] http://mail.pytho

Re: [Python-Dev] Python wiki

2010-09-25 Thread Scott Dial
me still use my own. Although, I think it would be nice if I didn't have to go to another page to do that, but I may be biased by having such a short OpenID URI. -- Scott Dial [email protected] [email protected] ___ Python-Dev mailing list

Re: [Python-Dev] Python wiki

2010-09-26 Thread Scott Dial
ltra geeks" know their URIs (I have no idea what the URI for a Google account is). But, I don't see this as being worthwhile either; I just think it would be nice if the 401 page gave a quick way to correct one's mistake that didn't involve the back button. > And again, enjo

Re: [Python-Dev] Python wiki

2010-09-26 Thread Scott Dial
On 9/26/2010 11:45 PM, R. David Murray wrote: > On Sun, 26 Sep 2010 21:56:20 -0400, Scott Dial > wrote: >> On 9/26/2010 3:12 AM, Martin v. Loewis wrote: >>> Preventing the browser from prompting the user on the chance they >>> might want to enter an OpenID is not

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-04 Thread Scott Dial
codec can't encode character '\udcc2' in position 0: surrogates not allowed It seems like this hack is about making the 3.x unicode type more like the 2.x string type, and I thought we decided that was a bad idea. How will developers not have to ask the

Re: [Python-Dev] r85838 - python/branches/py3k/.gitignore

2010-10-27 Thread Scott Dial
n committers who use those tools adding and maintaining these files. Seems akin to having Misc/python-mode.el and Misc/Vim/python.vim. It's all in the spirit of supporting the tools that people are actually using. -- Scott Dial [email protected] [email protected] -- Scott Dial sc

Re: [Python-Dev] [Python-checkins] r85934 - in python/branches/py3k: Misc/NEWS Modules/socketmodule.c

2010-10-31 Thread Scott Dial
cluded the null-terminator in the byte count. -- Scott Dial [email protected] [email protected] ___ 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] Snakebite, buildbot and low hanging fruit -- feedback wanted! (Was Re: SSH access against buildbot boxes)

2010-11-07 Thread Scott Dial
ful service to the community for much longer than Snakebite has for those 2.5 years. -- Scott Dial [email protected] [email protected] ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] Snakebite, buildbot and low hanging fruit -- feedback wanted! (Was Re: SSH access against buildbot boxes)

2010-11-07 Thread Scott Dial
ly tried > to shut up about it :). At least I am in good company. ;) -- Scott Dial [email protected] [email protected] ___ 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 Scott Dial
ic release memory :-) Wouldn't this function be better named sys._getframes since we already have a sys._getframe for getting the current frame? -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list [email protected]

Re: [Python-Dev] Capabilities / Restricted Execution

2006-07-11 Thread Scott Dial
rd class. I can't come up with a way to defeat this protection, at least. If you have a way, then I'd be interested to hear it. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list [email protected] http://mail.pyt

Re: [Python-Dev] Capabilities / Restricted Execution

2006-07-16 Thread Scott Dial
Talin wrote: > Scott Dial wrote: >> Phillip J. Eby wrote: >> >>> A function's func_closure contains cell objects that hold the >>> variables. These are readable if you can set the func_closure of some >>> function of your own. If th

Re: [Python-Dev] Problem with super() usage

2006-07-18 Thread Scott Dial
void comparing it to other languages which don't allow it. I agree with Guido that in python, the reasonable fix is to have a superclass which defines an empty method. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing

Re: [Python-Dev] Document performance requirements?

2006-07-24 Thread Scott Dial
y are actually important. All of these algorithms should be treated as implementation accidents. Having the information about CPython's implementation in the docs would be good. And go most of the way towards having everyone on the same page. -- Scott Dial [EMAIL PROTECTED] [EMAIL

Re: [Python-Dev] dict containment annoyance

2006-08-13 Thread Scott Dial
et(dict): def __contains__(self, x): try: hash(x) except TypeError: return False return super(BlacklistSet, self).__contains__(x) It's however unfortunate that you cannot use the handy curly-braces

Re: [Python-Dev] NotHashableError? (Re: dict containment annoyance)

2006-08-13 Thread Scott Dial
f > purely theoretical importance? That would suit me fine given the above > dilemma... > > --Guido -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ 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] os.spawnlp() missing on Windows in 2.4?

2006-08-18 Thread Scott Dial
d spawnvpe() are not available on Windows. New in version 1.6." One could argue that it presented poorly, but it reads completely correct. Alternatively one could says "The 'p' variants are unavailable on Windows." but that would be assuming someone understand there was

Re: [Python-Dev] New relative import issue

2006-09-21 Thread Scott Dial
erging changes and so forth. And if Twisted was allowed to decide how it saw its own world, then I would have to go back to maintaining my own complete branch. While I don't strictly need to be able to do this, I wanted to at least raise my hand and say, "I abuse this facet of the

Re: [Python-Dev] BUG (urllib2) Authentication request header is broken on long usernames and passwords

2006-10-09 Thread Scott Dial
- Fix line breaks in authorization headers. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

Re: [Python-Dev] PATCH submitted: Speed up + for string Re: PATCHsubmitted: Speed up + for string concatenation, now as fast as "".join(x) idiom

2006-10-18 Thread Scott Dial
statement, there are actually there are fewer allocations of strings and smaller objects being allocated than the current trunk uses. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mai

Re: [Python-Dev] PEP 355 status

2006-10-24 Thread Scott Dial
t > way leads to madness > It would make more sense to register protocol handlers to this magical unification of resource manipulation. But allow me to perform my first channeling of Guido.. YAGNI. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-11-03 Thread Scott Dial
n I do this?" I think for a lot of folks the answer is: "nope." With respect to the network packets, this PEP doesn't do anything to fix the communication barrier. Is this not in the scope of "a consistent and standard way to discuss the format of binary data" (w

Re: [Python-Dev] MSI being downloaded 10x more than all other files?!

2006-12-08 Thread Scott Dial
, I would say that easily accounts for the discrepancy since I am not aware of any other place to grab a windows install. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list [email protected] http://mail.python.org/mail

Re: [Python-Dev] [Python-3000] Warning for 2.6 and greater

2007-01-16 Thread Scott Dial
l simpler thanks to the future statement. My point is simply that this argument doesn't work unless you assume the developer of "a" has failed to do his job (which is to maintain the external API by also testing the external API). BTW, I patched your cod

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-12 Thread Scott Dial
and the brackets differentiate it still. To borrow the urllib2.py example: if attr[:12] == '_Request__r_': name = attr[12:] if hasattr(Request, 'get_' + name): [EMAIL PROTECTED]'get_' + name]()

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-12 Thread Scott Dial
the expression any function argument could take). How do you spell "getattr(self, 'req_' + state)" with that arrow? You need some kind of grouping delimiters to make this operator be a syntax benefit otherwise you didn't shorten anythin

Re: [Python-Dev] Encouraging developers

2007-03-07 Thread Scott Dial
know why your patch gets ignored while others get swiftly dealt with. Any sort of information like this would at least provide more transparency in what may appear to be elitest processes. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [Python-Dev] Encouraging developers

2007-03-07 Thread Scott Dial
at contained bugs and I corrected them. And with that, I was the last person to comment or review the patch in question. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list [email protected] http://mail.python.org/

Re: [Python-Dev] Rationale for NamedTemporaryFile?

2007-03-21 Thread Scott Dial
nd this missing feature before. The tempfile modules AFAIK is the only portable way to make a unique filename and open it without exposing a race condition. As it is, it's not that difficult to write this function yourselves using mkstemp directly, but I believe there is a great benefi

Re: [Python-Dev] Rationale for NamedTemporaryFile?

2007-03-21 Thread Scott Dial
elings about this. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ 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] Rationale for NamedTemporaryFile?

2007-03-21 Thread Scott Dial
elings about this. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ 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] possible urllib bug on Windows XP

2007-04-02 Thread Scott Dial
Shane Geiger wrote: > Is this possibly a bug on Windows XP? I can't reproduce this bug on Windows XP. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinf

Re: [Python-Dev] os.rename on windows

2007-05-01 Thread Scott Dial
e atomic. Also note, MVCRT only tries step 1 of cygwin's version. Which I believe also suggests that it's the only version that is atomic. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@pyth

Re: [Python-Dev] Summary of Tracker Issues

2007-05-17 Thread Scott Dial
sily transplanted to another page), it uses ascii art which would require more effort to extract and move to another page. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list [email protected] http://mail.python.

Re: [Python-Dev] futures API

2010-12-11 Thread Scott Dial
or of large lists than the overhead of the futures module. You should retry that experiment with the list pre-allocated. Beyond that, the curve in that line is not exactly a large amount of variance from a straight line. -- Scott Dial [email protected] [email protected]

Re: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable

2010-12-19 Thread Scott Dial
race (from the > OS mechanism) in that case. Even if that doesn't work, things like the grsecurity patches to linux use these signals to detect exploits and log them and do throttling. Calling abort() effectively converts all of these faults into SIGABRT terminations that are considered (more

Re: [Python-Dev] Search-friendly shortcuts for Windows?

2010-12-20 Thread Scott Dial
ersion numbers that have no naming conflicts, so even if a single version of Python was installed, it would not look out of place at all. -- Scott Dial [email protected] [email protected] ___ Python-Dev mailing list [email protected]

Re: [Python-Dev] Exception __name__ missing?

2011-01-17 Thread Scott Dial
ferencing the __class__ (as the other replier mentioned). But, I didn't receive any responses then, so I think not a lot of attention was put into these type of attributes on exceptions. -- Scott Dial [email protected] [email protected] ___ Pytho

Re: [Python-Dev] Issue #11051: system calls per import

2011-02-01 Thread Scott Dial
o, I am already talking about a best-case scenario for caching. I'm not sure how you could invalidate the cache without paying the cost of all the normal syscalls that we are trying to avoid. My finder/loader is not bug-free, but I'd be glad to make it available to someone if they want t

Re: [Python-Dev] Strange error importing a Pickle from 2.7 to 3.2

2011-02-23 Thread Scott Dial
arch is invalid. You hit things such as Latin1ClassModel which > have no relevance to the issue at hand. You get about the same ratio if you filter out only the quoted strings. -- Scott Dial [email protected] [email protected] ___ Python-Dev

  1   2   >