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] 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-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] 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] 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] 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] 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] Releasing 2.5.4

2008-12-23 Thread Scott Dial
in each of the read methods for files. I'll make a clean patch against the trunk and update the issue on the tracker, then maybe the reporter or someone else with an effected platform can verify my patch. -Scott -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu

Re: [Python-Dev] Releasing 2.5.4

2008-12-22 Thread Scott Dial
* platforms. The only platform I saw mentioned was OS X. Towards that end, I have attached a much simpler patch onto the tracker issue, which maybe somebody can verify solves the problem because I do not have access to a platform which fails the test that was originally given. -Scott -- Scott Dial sc

Re: [Python-Dev] python 2.5.3 segmentation fault with gcc 4.1.2

2008-12-21 Thread Scott Dial
s...@pobox.com wrote: Did this not happen with 2.5.2? I have 2.5.1 and 2.5.2 and it produces an IOError, just as it should. So this was indeed introduced by 2.5.3. -Scott -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev

Re: [Python-Dev] python 2.5.3 segmentation fault with gcc 4.1.2

2008-12-21 Thread Scott Dial
the EOF flag before performing the fread()). I don't really understand what the point of all the other changes are in the diff. I can't test my assessment because it seems the only platform discussed that had a problem was OS X (and I don't have one of those). -Scott -- Scott Dial sc

Re: [Python-Dev] Reindenting the C code base?

2008-12-15 Thread Scott Dial
, svnmerge.py does not support any of these command-line flags being passed along to the svn command-line. It should be pretty easy to hack in, if it was desirable. -Scott -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python

Re: [Python-Dev] Python-3.0, unicode, and os.environ

2008-12-12 Thread Scott Dial
the following email for a summary of existing practice (as of 2004): http://www.mail-archive.com/unic...@unicode.org/msg27352.html -Scott -- Scott Dial sc...@scottdial.com scod...@cs.indiana.edu ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] Python-3.0, unicode, and os.environ

2008-12-08 Thread Scott Dial
at all. -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] as keyword woes

2008-12-06 Thread Scott Dial
for, or any other keywords for that matter. Unless you plan on proposing a reversal of the current keyword/identifier ideology, which is likely to be reject outright. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python

Re: [Python-Dev] A statistic for Python tickets

2008-11-11 Thread Scott Dial
sizes. What you really want to know is how many tickets that are up to X days old are newly resolved (the ticket-resolution rate). Then, I think you could make the statements you just made. BTW, I'm not necessarily disagreeing with your insights into ticket pathology. -Scott -- Scott Dial [EMAIL

Re: [Python-Dev] Documentation idea

2008-10-16 Thread Scott Dial
of adding this should be frame /solely/ as a documentation tool and nothing more. -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] urllib.quote and unquote - Unicode issues

2008-08-06 Thread Scott Dial
, then please elaborate on that rather than /just/ complain that it is unsatisfactory in some way. Do you agree there is a bug? Do you agree it needs to be solved? And, what about the proposed solution is unsatisfactory? -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED

Re: [Python-Dev] small PATCH to fix os.fsync on OS X

2008-08-06 Thread Scott Dial
to be accessible in python, then I think you should modify the fcntl module to include F_FULLSYNC. -Scott [1] http://lists.apple.com/archives/darwin-dev/2005/Feb/msg00072.html -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list

Re: [Python-Dev] small PATCH to fix os.fsync on OS X

2008-08-06 Thread Scott Dial
. There is a noticeable performance penalty for waiting on F_FULLSYNC to complete, and a programmer who is already going outside of the normal mode of python file-handling (using file objects) should have a choice in the matter. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED

Re: [Python-Dev] Memory Error while reading large file

2008-07-31 Thread Scott Dial
expected more sympathy from you. Lord knows I hope the recipients of any German I write will have some. -Scott -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] Infix operators

2008-07-24 Thread Scott Dial
object in Python, there is no logic to making operators for them. -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] Infix operators

2008-07-24 Thread Scott Dial
Greg Ewing wrote: Scott Dial wrote: Perhaps I'm nobody, but I think this would be ridiculous. Matrices are not native objects to the language. Why should that matter? We already have things like sum(), which operates on any sequence of numbers, without needing a special array of numbers data

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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] [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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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-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] 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] 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] 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] 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] 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] 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] 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

<    1   2