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

2015-03-12 Thread Scott Dial
, but I can't say either way because I never adopted using this library due to issues that are cataloged in the mailing list archives. (In the end, I wrote my own and have never found the need to support such operands.) -- Scott Dial sc...@scottdial.com

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

2015-03-07 Thread Scott Dial
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 sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org

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

2014-01-22 Thread Scott Dial
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...@scottdial.com

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

2014-01-12 Thread Scott Dial
that to developers with the API. At the onset, the bytes literal itself seems to be an attractive nuisance as it gives a nod to using bytes for ASCII character sequences (a.k.a ASCII strings). Regards, -Scott -- Scott Dial sc...@scottdial.com ___ Python

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

2014-01-04 Thread Scott Dial
? 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 sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org

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

2013-08-26 Thread Scott Dial
/twisted.protocols.ftp.IFinishableConsumer.html -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive

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
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 Dial sc...@scottdial.com ___ Python

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
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 sc...@scottdial.com ___ Python-Dev mailing list

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

2013-06-18 Thread Scott Dial
=_free_pyobject}; And in the latter case, there is no extra indirect branching in the hot-path of the allocators. Also, none of the external libraries cited introduce this CPS/ctx stuff. -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev

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

2013-06-18 Thread Scott Dial
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 sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org http

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

2013-04-23 Thread Scott Dial
, 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 type or an instance. And for me, it's a new type and I expect enum values to be instance of that type. -Scott -- Scott Dial sc...@scottdial.com

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 sc

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

2013-04-13 Thread Scott Dial
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 sc...@scottdial.com ___ Python-Dev mailing

Re: [Python-Dev] sys.implementation

2012-05-10 Thread Scott Dial
, c=3) with regard to testing and display? -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive

Re: [Python-Dev] .{git,bzr}ignore in cpython HG repo

2012-04-02 Thread Scott Dial
are more expressive (regex and globbing) than Git's ignore files (globbing only). Our .hgignore file has regex rules, but if someone was so inclined, they could expand those rules based on their current HEAD. I do not know if such a tool already exists in the wild. -- Scott Dial sc...@scottdial.com

Re: [Python-Dev] .{git,bzr}ignore in cpython HG repo

2012-04-01 Thread Scott Dial
either commit the change to your clone, or you can put your ignores into .git/info/exclude. No reason to be so sore about it, since Git lets you have your own ignore file without requiring it be a tracked file. -- Scott Dial sc...@scottdial.com ___ Python

Re: [Python-Dev] PEP 418: Add monotonic clock

2012-03-28 Thread Scott Dial
if the platform is deficient. I can't imagine a scenario where you would ask for a monotonic clock and would rather have an error than have Python fill in the gap with an emulation. -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] PEP 418: Add monotonic clock

2012-03-28 Thread Scott Dial
aware anyways.) What developers want is a timer that is useful for scheduling things to happen after predictable interval in the future, so we should give them that to the best of our ability. -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list

Re: [Python-Dev] PEP 418: Add monotonic clock

2012-03-28 Thread Scott Dial
a real monotonic clock. I think the number of platforms will be such a minority that the emulation makes sense. Practicality beats purity, and all. -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] Playing with a new theme for the docs, iteration 2

2012-03-26 Thread Scott Dial
. -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org 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 418: Add monotonic clock

2012-03-26 Thread Scott Dial
relative to real time. That is, the clock may not be adjusted. -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

Re: [Python-Dev] PEP 418: Add monotonic clock

2012-03-26 Thread Scott Dial
is an exercise left to the reader.. -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Playing with a new theme for the docs, iteration 2

2012-03-25 Thread Scott Dial
is better than the other in certain contexts. Presumably, the character coverage of the Unicode font makes it the superior choice. Personally, I would leave Tahoma out of the list -- the kerning of the font is really aggressive and I find it much harder to read than Verdana. -- Scott Dial sc

Re: [Python-Dev] Python install layout and the PATH on win32

2012-03-14 Thread Scott Dial
= {userbase}/Python{py_version_nodot} purelib = {userbase}/Python{py_version_nodot}/site-packages platlib = {userbase}/Python{py_version_nodot}/site-packages include = {userbase}/Python{py_version_nodot}/Include scripts = {userbase}/Scripts data = {userbase} -- Scott Dial sc...@scottdial.com

Re: [Python-Dev] PEP 408 -- Standard library __preview__ package

2012-01-30 Thread Scott Dial
. As it stands, I believe the authorship of ipaddr either decided that they were not going to compromise their module or lost interest. See Nick Coghlan's summary: http://mail.python.org/pipermail//python-ideas/2011-August/011305.html -- Scott Dial sc...@scottdial.com

Re: [Python-Dev] PEP 408 -- Standard library __preview__ package

2012-01-27 Thread Scott Dial
, these modules may not receive as wide of visibility as the PEP suggests. I could very easily imagine the more stable distributions refusing or patching anything that used __preview__ in order to eliminate difficulties. -- Scott Dial sc...@scottdial.com ___ Python

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

2012-01-01 Thread Scott Dial
to the wrong author. -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] memcmp performance

2011-10-20 Thread Scott Dial
was willing to put in the effort to change the optimization itself. [1] http://gcc.gnu.org/ml/gcc/2002-10/msg01616.html [2] http://gcc.gnu.org/ml/gcc/2003-04/msg00166.html -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] check for PyUnicode_READY look backwards

2011-10-15 Thread Scott Dial
instruction bytes than a cmp, but otherwise, it is no better. So, there is a very special case where 0 is better, but I think you'd be hard-pressed to measure it against the noise. -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev

Re: [Python-Dev] PEP 393 Summer of Code Project

2011-08-24 Thread Scott Dial
On 8/24/2011 4:11 AM, Victor Stinner wrote: Le 24/08/2011 06:59, Scott Dial a écrit : On 8/23/2011 6:38 PM, Victor Stinner wrote: Le mardi 23 août 2011 00:14:40, Antoine Pitrou a écrit : - You could try to run stringbench, which can be found at http://svn.python.org/projects/sandbox/trunk

Re: [Python-Dev] PEP 393 Summer of Code Project

2011-08-23 Thread Scott Dial
.. except your system is obviously faster, in general. -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev

Re: [Python-Dev] [Python-checkins] cpython (3.2): #5301: add image/vnd.microsoft.icon (.ico) MIME type

2011-08-21 Thread Scott Dial
/etc/mime.types might have changed). -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail

Re: [Python-Dev] [Python-checkins] cpython (3.2): Skip test_getsetlocale_issue1813() on Fedora due to setlocale() bug.

2011-08-02 Thread Scott Dial
that one. -- Scott Dial sc...@scottdial.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Supporting Visual Studio 2010

2011-04-04 Thread Scott Dial
. My understanding (but I haven't looked closely) was that the stable ABI specifically excluded anything that would expose a problem due to a CRT mismatch -- making this a moot point. I'm sure Martin will correct me if I am wrong. -Scott -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu

Re: [Python-Dev] Impaired Usability of the Mercurial Source Viewer

2011-03-31 Thread Scott Dial
interface is templated. You can already change it via style in the hgweb.conf. There are several styles already available in the templates folder of the install, and you could provide your own if you like too. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu

Re: [Python-Dev] Draft PEP and reference implementation of a Python launcher for Windows

2011-03-20 Thread Scott Dial
together the arguments for an eventual os.exec*() call? What is there to do other than to exec the correct interpreter with (a subset of?) the command-line arguments? -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python

Re: [Python-Dev] Bugs in thread_nt.h

2011-03-10 Thread Scott Dial
On 3/10/2011 3:07 AM, Paul Du Bois wrote: volatile considered harmful http://www.kernel.org/doc/Documentation/volatile-considered-harmful.txt -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org

[Python-Dev] hg mq workflow is broken (issue11450)

2011-03-09 Thread Scott Dial
*/ Modules/getbuildinfo.c $ ./python -c 'import sys; print(sys.version)' 3.3a0 (dummy-patch qbase qtip tip:191f047a07b4+, Mar 9 ) [GCC 4.4.5] This is a showstopper for using mq and CPython, since you can no longer run regrtest because the platform module cannot parse that truncated string. -- Scott

Re: [Python-Dev] hg mq workflow is broken (issue11450)

2011-03-09 Thread Scott Dial
On 3/9/2011 3:15 AM, Scott Dial wrote: I wanted to draw attention to issue11450 [1]. In trying to using mq to work on patches for CPython, I found that I could no longer get regrtest to run. Just to update this thread, thanks to the swift work of Nadeem Vawda and Antoine for pushing

Re: [Python-Dev] Integrate the faulthandler module into Python 3.3?

2011-03-04 Thread Scott Dial
for using '-i'. Otherwise, the functionality seems generally useful and it's on my list of things to integrate into my application, and having it in the stdlib is one less external dependency for me to manage. -Scott -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu

Re: [Python-Dev] devguide (hg_transition): Advertise hg import over patch.

2011-02-27 Thread Scott Dial
, you can still use that as a patch tool. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

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

2011-02-24 Thread Scott Dial
. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

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

2011-02-23 Thread Scott Dial
http://www.google.com/codesearch?hl=enlr=q=%28\%22utf-8\%22|\%27utf-8\%27%29+lang%3Apythonsbtn=Search Your search 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

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

2011-02-01 Thread Scott Dial
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 to play around with it. -- Scott Dial sc

Re: [Python-Dev] Exception __name__ missing?

2011-01-17 Thread Scott Dial
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 sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list

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

2010-12-20 Thread Scott Dial
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 sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http

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

2010-12-19 Thread Scott Dial
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?) innocent terminations. -- Scott Dial sc...@scottdial.com scod

Re: [Python-Dev] futures API

2010-12-11 Thread Scott Dial
. 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 sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python

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

2010-11-07 Thread Scott Dial
longer than Snakebite has for those 2.5 years. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

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

2010-11-07 Thread Scott Dial
. ;) -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

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

2010-10-31 Thread Scott Dial
to GetComputerNameExW after ERROR_MORE_DATA (which gives the number of *bytes* needed) still needs to pass size/sizeof(wchar_t) back into GetComputerNameExW since it wants the number TCHARs. I don't think the +1 is needed either (MSDN says it already included the null-terminator in the byte count. -- Scott Dial

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

2010-10-27 Thread Scott Dial
/Vim/python.vim. It's all in the spirit of supporting the tools that people are actually using. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev

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

2010-10-04 Thread Scott Dial
decided that was a bad idea. How will developers not have to ask themselves whether a given string is a real string or a byte sequence masquerading as a string? Am I missing something here? -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu

Re: [Python-Dev] Python wiki

2010-09-26 Thread Scott Dial
such a short OpenID URI. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail

Re: [Python-Dev] Python wiki

2010-09-26 Thread Scott Dial
if the 401 page gave a quick way to correct one's mistake that didn't involve the back button. And again, enjoying a short OpenID URI probably does put you in the ultra geek category (which I seriously don't mean as an offense). No offense taken. :) -- Scott Dial sc...@scottdial.com scod

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 scott+python-...@scottdial.com 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 possible

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

2010-08-26 Thread Scott Dial
to have few look at your patch. :-p Also, this seems more appropriate for python-ideas. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

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

2010-07-01 Thread Scott Dial
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 sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev

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 in a special way. This is a good

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 actually be shared) Because python

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 files are able to be shared too. Seems to me

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

2010-06-25 Thread Scott Dial
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 good idea and not just a clever idea. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu

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

2010-06-24 Thread Scott Dial
for all version of Python? So, why can't it place them in separate directories that are version-specific at that time? This is not the same as placing .py files that are version-agnostic into a version-agnostic location. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu

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

2010-05-27 Thread Scott Dial
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_stuff[key] is context[key]: -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu

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

2010-05-27 Thread Scott Dial
this myself. There is no wait=True option for shutdown() in the reference implementation, so I can only guess what that implementation might look like. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev

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

2010-05-26 Thread Scott Dial
, there was some complaints about just calling it futures, without putting it in a concurrent namespace. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python

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

2010-04-26 Thread Scott Dial
or rejected despite the lack of a maintainer. Thanks to RDM for giving my issue attention. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

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

2010-04-19 Thread Scott Dial
own poll seriously? When was this ever a democracy? Is consensus superficial? -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] PEP 3147: PYC Repository Directories

2010-01-31 Thread Scott Dial
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 of a given module. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu

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

2010-01-29 Thread Scott Dial
: 3.7203x larger Timeline: http://tinyurl.com/y9b5rza ### spambayes ### Min: 0.330391 - 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 sc...@scottdial.com scod

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

2010-01-28 Thread Scott Dial
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 uninformed reply by you, I am now ignoring your trolling.) -- Scott Dial sc

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

2010-01-22 Thread Scott Dial
everyone to reconsider what they are doing when they open() files? -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

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

2010-01-21 Thread Scott Dial
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] http://www.opensource.org/licenses/UoI-NCSA.php [2] llvm-oversi...@cs.uiuc.edu -- Scott Dial sc...@scottdial.com scod

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

2010-01-13 Thread Scott Dial
. 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...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python

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

2009-12-28 Thread Scott Dial
. Pedantically, -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

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

2009-12-05 Thread Scott Dial
://bugs.python.org/issue5949 Title: IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

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

2009-11-08 Thread Scott Dial
pairwise versions are related). -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev

Re: [Python-Dev] GIL behaviour under Windows

2009-10-21 Thread Scott Dial
.) -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] GIL behaviour under Windows

2009-10-21 Thread Scott Dial
-core systems around to test it on, I'm still in the stone age. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

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

2009-10-21 Thread Scott Dial
need only call it once, and you can cache the result for the life of your process. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

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

2009-10-12 Thread Scott Dial
. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

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

2009-10-07 Thread Scott Dial
are good for in this case. /flame -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python

Re: [Python-Dev] Python 2.6.4rc1

2009-10-07 Thread Scott Dial
of an opportunity. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail

Re: [Python-Dev] Python 2.6.3

2009-10-01 Thread Scott Dial
submitted a patch, which reflects my local solution. -Scott [1] http://pyropus.ca/software/getmail/ -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

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 unchanged

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 get this into 2.6.3. It really needed

Re: [Python-Dev] PEP 3144 review.

2009-09-28 Thread Scott Dial
using IPNetwork to be an IPAddressWithMask?). -1. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman

Re: [Python-Dev] PEP 3144 review.

2009-09-16 Thread Scott Dial
rather indifferent whether there needs to be a IPAddressWithMask type. If that is needed, then it is rather easy to create a type that does that. And, if it is a common pattern, then it could be added to the module later in life. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu -- Scott Dial

Re: [Python-Dev] PEP 3144 review.

2009-09-15 Thread Scott Dial
objects. If I want just an IPAddress object, then I can always fetch the ip attribute to get that. Perhaps there is some compelling conceptual argument as to why this is not correct, but it seems like the API destroys information needlessly. Just my opinion.. -- Scott Dial sc...@scottdial.com scod

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 scott+python-...@scottdial.com 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

Re: [Python-Dev] PEP 3144 review.

2009-09-15 Thread Scott Dial
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.1.1.0/24')[0] == ipaddr.IPv4Network('1.1.1.0/24') So foo

Re: [Python-Dev] PEP 3144 review.

2009-09-15 Thread Scott Dial
since the same objects would be constructed. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

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. Well, you can't. There is no way to determine a gateway, without

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

2009-09-04 Thread Scott Dial
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 ''.join(chunks) is really the best first step to take. -Scott -- Scott Dial sc

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

2009-09-01 Thread Scott Dial
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 penalty on the order of the number of loop iterations)? -Scott -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu

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

2009-09-01 Thread Scott Dial
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 penalty on the order of the number of loop iterations)? -Scott -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu

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 rarely

Re: [Python-Dev] PEP 376

2009-07-03 Thread Scott Dial
.. -Scott -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Tuples and underorderable types

2009-04-24 Thread Scott Dial
code that relied on sorting tuples; this code should be updated to either use a key function. -Scott -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

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

2009-03-27 Thread Scott Dial
() # 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 Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev

  1   2   >