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
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
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
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
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
= 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
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
.
--
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
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
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
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
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
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
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
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
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
():
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
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
:-)
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
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
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
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
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
)
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
/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
() 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
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
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
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
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
. 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
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
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
' + 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
).
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
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
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
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
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
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
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
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
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
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
.
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
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
!*). 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
. 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
= 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
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
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
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
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
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
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
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
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
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
/_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
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
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
()
# 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
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
..
-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
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
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
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
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
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
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
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
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
, 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
. 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
= {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
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
.
--
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
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
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
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
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
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
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
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
, 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
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
, 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
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
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
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
. 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
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
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
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
] 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
, 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
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
, 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
, 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
* 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 - 100 of 192 matches
Mail list logo