Re: [Python-Dev] Extension to ConfigParser

2006-01-31 Thread Scott Dial
and (at least) making an empty [DEFAULT] section appear and disappear. I'm not sure that this is the place to make these comments, so I will stop with that. In case it wasn't clear, I am new here.. Hi. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python

Re: [Python-Dev] Compiler warnings

2006-02-01 Thread Scott Dial
this problem, or (more likely) have decided that this is acceptable, but clearly it will cause spurious warnings. Hey, after all, they are just warnings. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] Compiler warnings

2006-02-01 Thread Scott Dial
Thomas Wouters wrote: On Wed, Feb 01, 2006 at 01:51:03PM +, Michael Hudson wrote: Scott Dial [EMAIL PROTECTED] writes: So, either the GCC people have not noticed this problem, or (more likely) have decided that this is acceptable, but clearly it will cause spurious warnings. Hey, after

Re: [Python-Dev] Pervasive socket failures on Windows

2006-02-09 Thread Scott Dial
corruption bug then does not exist on Windows, and so the code should not be used with Windows either. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] Pervasive socket failures on Windows

2006-02-10 Thread Scott Dial
platform other than Linux. I am no portability guru, but I have to think there are other platforms where this patch will cause problems. For now at least, can we at least do some preprocessing magic to not use this code with Windows? -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED

Re: [Python-Dev] Pervasive socket failures on Windows

2006-02-10 Thread Scott Dial
= FD_SETSIZE) return SOCKET_INVALID; +#endif /* Construct the arguments to select */ tv.tv_sec = (int)s-sock_timeout; But then that leaves whether to go with the Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE symbol instead of MS_WINDOWS. -- Scott Dial [EMAIL PROTECTED

Re: [Python-Dev] Pervasive socket failures on Windows

2006-02-10 Thread Scott Dial
Tim Peters wrote: [Martin v. Löwis] So FD_SETSIZE is 64 on Windows, In Python FD_SETSIZE is 512 on Windows (see the top of selectmodule.c). Although I agree, in terms of the socketmodule, there was no such define overriding the default FD_SETSIZE, so you are both right. -- Scott Dial

Re: [Python-Dev] Pervasive socket failures on Windows

2006-02-10 Thread Scott Dial
. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ 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] Pervasive socket failures on Windows

2006-02-10 Thread Scott Dial
is not defined for a Cygwin compile, so it is fine to be using that. But I realize there is a whole 'nother discussion about that. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] Let's stop eating exceptions in dict lookup

2006-05-29 Thread Scott Dial
for the expected purpose. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ 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] Remove METH_OLDARGS?

2006-05-30 Thread Scott Dial
can't put a #pragma in a #define, so it seems wise to only mark functions deprecated (which you can do via __declspec(deprecated)). -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] Last-minute curses patch

2006-06-17 Thread Scott Dial
Walter Dörwald wrote: Martin v. Löwis wrote: It does need a configure test, though. Unfortunately I have no idea how this whole configure business works! I got bored. I posted a comment to the bug, which will direct you to http://scottdial.com/python-dev/curses-resizeterm.diff -- Scott

Re: [Python-Dev] Python 2.4 extensions require VC 7.1?

2006-06-17 Thread Scott Dial
the possibility illegality of the posting of the toolkit, I suggest curious people to google for 'Index Of VCToolkitSetup.exe', if need be. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] Last-minute curses patch

2006-06-17 Thread Scott Dial
Walter Dörwald wrote: I'm not sure if is_term_resized() can return ERR or not. Oh whoops, you are of course correct. I have corrected the diff accordingly. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev

Re: [Python-Dev] Python 2.4 extensions require VC 7.1?

2006-06-17 Thread Scott Dial
contains the list of CRT breakages according to MSFT. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ 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] 2.5 and beyond

2006-06-30 Thread Scott Dial
ever wrote. I actually never noticed that rebinding wasn't allowed until recently. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)

2006-07-05 Thread Scott Dial
(): return .foo.n + .bar.n -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ 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] 2.5 and beyond

2006-07-07 Thread Scott Dial
in syntax checking needs to be addressed. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ 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] Missing 2.5 feature

2006-07-10 Thread Scott Dial
:-) 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 Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] Capabilities / Restricted Execution

2006-07-11 Thread Scott Dial
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 Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

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 the overall plan includes the ability to restrict func_closure setting

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

2006-07-18 Thread Scott Dial
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 list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Document performance requirements?

2006-07-24 Thread Scott Dial
if they 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 PROTECTED

Re: [Python-Dev] dict containment annoyance

2006-08-13 Thread Scott Dial
) except TypeError: return False return super(BlacklistSet, self).__contains__(x) It's however unfortunate that you cannot use the handy curly-braces anymore. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev

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

2006-08-13 Thread Scott Dial
/python-3000/2006-July/002697.html Guido wrote: Personally, I'm not sure this problem needs solving; I don't recall ever needing to know whether something is hashable. So perhaps it's of purely theoretical importance? That would suit me fine given the above dilemma... --Guido -- Scott Dial

Re: [Python-Dev] os.spawnlp() missing on Windows in 2.4?

2006-08-18 Thread Scott Dial
() 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 a scheme to the names :-) -- Scott Dial [EMAIL

Re: [Python-Dev] New relative import issue

2006-09-21 Thread Scott Dial
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 current import mechanism. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED

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

2006-10-09 Thread Scott Dial
in authorization headers. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ 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] 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
to the leaves. Once the print is executed, you will force the rendering of the object, but only once that happens. So in contrast to your statement, there are actually there are fewer allocations of strings and smaller objects being allocated than the current trunk uses. -- Scott Dial [EMAIL

Re: [Python-Dev] PEP 355 status

2006-10-24 Thread Scott Dial
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] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

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

2006-11-03 Thread Scott Dial
. Is this not in the scope of a consistent and standard way to discuss the format of binary data (which is what your PEP's abstract sets out as the task)? -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

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

2006-12-08 Thread Scott Dial
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 Python-Dev@python.org http://mail.python.org/mailman

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

2007-01-16 Thread Scott Dial
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 code because both versions you have presented didn't actually work. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED

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

2007-02-12 Thread Scott Dial
' + name]() return [EMAIL PROTECTED] raise AttributeError, attr -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

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

2007-02-12 Thread Scott Dial
). 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 anything. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED

Re: [Python-Dev] Encouraging developers

2007-03-07 Thread Scott Dial
provide more transparency in what may appear to be elitest processes. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Encouraging developers

2007-03-07 Thread Scott Dial
or review the patch in question. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ 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] Rationale for NamedTemporaryFile?

2007-03-21 Thread Scott Dial
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 benefit to have it in the stdlib. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED

Re: [Python-Dev] Rationale for NamedTemporaryFile?

2007-03-21 Thread Scott Dial
to guess, the rationale was that they are simply wrappers a class. Nevertheless, tempfile dates well back before the PEP 8 style guidelines. I think consistency would dictate that a newly added function should match the other ones, but I have no strong feelings about this. -Scott -- Scott

Re: [Python-Dev] Rationale for NamedTemporaryFile?

2007-03-21 Thread Scott Dial
to guess, the rationale was that they are simply wrappers a class. Nevertheless, tempfile dates well back before the PEP 8 style guidelines. I think consistency would dictate that a newly added function should match the other ones, but I have no strong feelings about this. -Scott -- Scott

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

2007-05-01 Thread Scott Dial
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@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] Summary of Tracker Issues

2007-05-17 Thread Scott Dial
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 Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] Summary of Tracker Issues

2007-05-20 Thread Scott Dial
tracker will allow that, but if it doesn't, you will again see links off-site. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] The docs, reloaded

2007-05-20 Thread Scott Dial
necessary here? I somehow doubt anything more than simple expressions of runtime performance and container behaviors are appropriate for any documentation we have. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list

Re: [Python-Dev] The docs, reloaded

2007-05-23 Thread Scott Dial
. Likewise with `comment' to 'comment'. For an example see the first paragraph here: http://pydoc.gbrandl.de/reference/index.html In fairness to Georg, latex2html also misses the smart quotes. See the same paragraph here: http://docs.python.org/ref/front.html -- Scott Dial [EMAIL

Re: [Python-Dev] whitespace normalization pre-commit hook is giving me grief

2007-05-29 Thread Scott Dial
print sys.stderr, difflib.unified_diff(reindenter.raw, reindenter.after) bad += 1 Which would provide you a unified diff to give you a clue. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED

Re: [Python-Dev] Three-char file extensions

2007-07-15 Thread Scott Dial
!*). However, I think it is still best practice to aim for 8dot3 naming. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] UTF8 in the PEP branch

2007-10-15 Thread Scott Dial
. Anyways, the issue is open on subversion's tracker (since 2005): http://subversion.tigris.org/issues/show_bug.cgi?id=2332 -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list

Re: [Python-Dev] Special file nul in Windows and os.stat

2007-10-24 Thread Scott Dial
= os.path.basename(name) return (re.match('(nul|prn|aux|con|com[0-9]|lpt[0-9])(\..*)?$', name) is not None) -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] Special file nul in Windows and os.stat

2007-11-06 Thread Scott Dial
of os.getenv('PATHEXT'), but I suppose that is a bug for another day. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Special file nul in Windows and os.stat

2007-11-06 Thread Scott Dial
argue that then msvcrt has the same bug. I concede and apologies, I didn't read the code for converting attributes to mode flags. I don't imagine (m)any people care about this flag on the win32 platform anyways. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED

Re: [Python-Dev] Syntax suggestion for imports

2008-01-04 Thread Scott Dial
if required: raise ImportError('no importable names') If nothing else, writing this email will remind me to avoid this try/except pattern in future codebases, if I have more than 1 instance of it (right about the break even point). -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL

Re: [Python-Dev] Code freeze?

2008-02-29 Thread Scott Dial
to be done in. I guess I am hoping to understand better how these alphas serve us. Again, I apologize if that sounded judgmental, but I wanted to make sure that releasing alphas was the best plan. And again, I appreciate your enthusiasm and effort. -- Scott Dial [EMAIL PROTECTED] [EMAIL

Re: [Python-Dev] socket.create_connection slow

2009-01-14 Thread Scott Dial
GetTcpTable() to retrieve the status of the socket to determine the state of the socket (since a timeout would kill connects() that are just slow too..). -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev

Re: [Python-Dev] PEP 3142: Add a while clause to generator expressions

2009-01-19 Thread Scott Dial
print_range(n): ... for i in range(n): ... print(i) ... yield i ... a = (i for i in print_range(10) if i**210) a.next() 0 0 a.next() 1 1 a.next() 2 2 a.next() 3 3 a.next() 4 5 6 7 8 9 Traceback (most recent call last): File stdin, line 1, in module StopIteration -- Scott

Re: [Python-Dev] Questions/comments on documentation formatting

2009-01-19 Thread Scott Dial
brackets, it's ambiguous as to the requirements. Imagine seeing foo(a [, b=None, c=None [, d=None]]) and I think the rationale for such notation becomes clear. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python

Re: [Python-Dev] microsoft dlls apparently don't support data. implications: PyAPI functions required to access data across modules.

2009-01-25 Thread Scott Dial
it's free enough for our purposes. I believe Martin wrote you a reply that explained that quite well. -- 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] Ext4 data loss

2009-03-11 Thread Scott Dial
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 the built-in namespace)? -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-20 Thread Scott Dial
/_multiprocessing/connection.h: In function `connection_repr': trunk/Modules/_multiprocessing/connection.h:401: warning: unknown conversion type character `z' in format -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-22 Thread Scott Dial
of a trunk build instead. Is Solaris 8 really a supported platform? If so, I can investigate the changes he suggested. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-23 Thread Scott Dial
not familiar enough with the set of features that multiprocessing is implicitly depending on and how to test for them on all of the platforms. -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http

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

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 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] 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] 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] 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] 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 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] 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 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] 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] 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] 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] 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] .{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] .{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] 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] fixing tests on windows

2008-04-02 Thread Scott Dial
undesirable is if you wanted to go read the test file by hand, but I'm not sure anyone is doing that. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python

Re: [Python-Dev] unscriptable?

2008-04-18 Thread Scott Dial
, whatever. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ 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] unscriptable?

2008-04-19 Thread Scott Dial
Georg Brandl wrote: There is currently no misspelling. We should at least make the set object match the others. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] Warn about mktemp once again?

2008-04-29 Thread Scott Dial
with -- is it? int mode = fcntl(fd, F_GETFL); switch(mode) { case O_RDONLY: ... case O_WRONLY: ... case O_RDWR: ... } Certainly there's no way to tell whether you want it treated as binary, so at least that much of the mode needs to be specified. Agreed. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL

Re: [Python-Dev] Adding start to enumerate()

2008-05-11 Thread Scott Dial
Brett Cannon wrote: Sure, making it 'start' or something and having it be keyword-only makes sense. http://bugs.python.org/issue2831 -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] Slice as a copy... by design?

2008-05-22 Thread Scott Dial
. If a slices had a copy method, then I suppose this would be moot. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] bug or a feature?

2008-06-10 Thread Scott Dial
Maciej Fijalkowski wrote: What do you think about this code: class A: locals()[42] = 98 Seems people rely on it working. I apologize for my ignorance, but who? Could you please cite something reputable that relies on this detail? -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED

Re: [Python-Dev] bug or a feature?

2008-06-11 Thread Scott Dial
instances. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ 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] bug or a feature?

2008-06-11 Thread Scott Dial
Maciej Fijalkowski wrote: On Thu, Jun 12, 2008 at 2:32 AM, Terry Reedy [EMAIL PROTECTED] wrote: Scott Dial [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] || If non-string keys are not allowed in __dict__, then the AddOns library | should be changed to add another dict to the object

Re: [Python-Dev] Community buildbots and Python release quality metrics

2008-06-26 Thread Scott Dial
] that was supposed to be a blocker for the beta but (I assume) was forgotten about. Clearly this should be promoted to being a blocker again and some decision made. [1] http://bugs.python.org/issue2235 -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED

Re: [Python-Dev] repeated keyword arguments

2008-06-27 Thread Scott Dial
, in ? TypeError: f() got multiple values for keyword argument 'a' Python 2.5 f(a=3, **{'a': 4}) TypeError: f() got multiple values for keyword argument 'a' The regression is purely in the way an argument list is reduced to a dictionary. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED

Re: [Python-Dev] repeated keyword arguments

2008-06-27 Thread Scott Dial
Scott Dial wrote: The regression is purely in the way an argument list is reduced to a dictionary. To further elaborate: Python 2.4: import dis dis.dis(compile('f(a=3, b=1, a=4)', '', 'eval')) Traceback (most recent call last): File stdin, line 1, in ? SyntaxError: duplicate keyword

Re: [Python-Dev] repeated keyword arguments

2008-06-27 Thread Scott Dial
, and given that f_with_defaults probably has some semantic meaning, it probably would be nice to give it it's own name (g). Just my 2 cents. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] PEP: Consolidating names and classes in the `unittest` module

2008-07-15 Thread Scott Dial
, type) True type(unittest.TestCase) type 'type' -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ 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: Frequently-requested additional features for the `unittest` module

2008-07-15 Thread Scott Dial
* that was used for the attribute in the operator module. Let's not reinvent the wheel here.. -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

  1   2   >