Regular expression use

2007-08-24 Thread Nick Maclaren
on. Any pointers appreciated, to more-or-less anything. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular expression use

2007-08-24 Thread Nick Maclaren
| application? Academia, Business, ...? Mainly academic research, but that still covers many fields. However, I am not and never have been a 'pure' academic, and am as interested in other uses as in academic research. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: The reliability of python threads

2007-01-26 Thread Nick Maclaren
becomes LESS likely the longer the server stays up (i.e. the settling down problem). No problem is as hard to find as one where you are firmly convinced that it is somewhere other than where it is. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: The reliability of python threads

2007-01-25 Thread Nick Maclaren
routine logging, or even has options to log relevant events. The first means that the strategy of restarting doesn't help. All three mean that current logs are almost never any use. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: The reliability of python threads

2007-01-25 Thread Nick Maclaren
to | afford the glitch in availability. Consider the marked phrase in the context of a Poisson process failure model, and laugh. If you don't understand why I say that, I suggest finding out the properties of the Poisson process! Regards, Nick Maclaren. -- http://mail.python.org/mailman

Re: The reliability of python threads

2007-01-25 Thread Nick Maclaren
is no solution. I suggest that you do invest in a little learning and look up Poisson processes. | Keep your eye on the goal and your more likely to score! And, if you have your eye on the wrong goal, you would generally be better off not scoring :-) Regards, Nick Maclaren. -- http

Re: The reliability of python threads

2007-01-24 Thread Nick Maclaren
(POSIX, Microsoft etc.) Python will shield you from some problems, but not all. There is precious little that you can do, because the root cause is that the standards and specifications are hopelessly flawed. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: The reliability of python threads

2007-01-24 Thread Nick Maclaren
threading memory model, to name one of the better documented aspects. A Web search should provide you with more information on the ghastly mess than any sane person wants to know. And that is only one of many aspects :-( Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: The reliability of python threads

2007-01-24 Thread Nick Maclaren
me by Email, and can describe technically what you are doing and (most importantly) what you are assuming, I may be able to give some hints. But no promises. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: The reliability of python threads

2007-01-24 Thread Nick Maclaren
, you can't tell if threading has anything to do with the failure - given what we know, it seems likely, but what Aahz says is how to tackle the problem WHATEVER the cause. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

RE: OT Annoying Habits (Was: when format strings attack)

2007-01-20 Thread Nick Maclaren
-posting when you are responding to Email is as discourteous as top-posting when you are responding to newsgroups. | So I concede the point, and I'm bottom-posting like a good citizen. =20 Excellent! Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: when format strings attack

2007-01-19 Thread Nick Maclaren
known for ages and are still legion. The reason that this is unlikely is that it is both easy to spot and trivial to fix. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

RE: OT Annoying Habits (Was: when format strings attack)

2007-01-19 Thread Nick Maclaren
a me, too or equivalent, and not responding in detail. But you have been told both of those before. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Class data members in C

2007-01-18 Thread Nick Maclaren
it. But that is not very helpful. Specially if you are | mucking about in C, as your title suggests... Thanks. As someone else posted, the answer is PyDict_SetItemString immediately after PyType_Ready. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: what can be used in a signal handler

2007-01-18 Thread Nick Maclaren
. But that is the situation :-( Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find out if another process is using a file

2007-01-18 Thread Nick Maclaren
), but might reduce the number of problems. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find out if another process is using a file

2007-01-18 Thread Nick Maclaren
such things very badly, and it is often possible to create a file even if it exists and O_CREAT|O_EXCL is set. A similar remark applies to 'special' files, even on fairly mainstream, local filing systems. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Class data members in C

2007-01-17 Thread Nick Maclaren
instance creation is guaranteed to cause confusion, if nothing else. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Number methods

2007-01-17 Thread Nick Maclaren
easily provide the latter. Is there any documentation on the coercion function (nb_coerce)? It seems to have unusual properties. Thanks for any hints. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Maths error

2007-01-16 Thread Nick Maclaren
of cases, they give reasonable estimates of the error. In others, they give a false sense of security :-( Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Class data members in C

2007-01-16 Thread Nick Maclaren
Hmm. The extensions documentation describes how to add instance members to a class (PyMemberDef), but I want to add a class member. Yes, this is constant for all instances of the class. Any pointers? Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Maths error

2007-01-15 Thread Nick Maclaren
that you do. | For people just getting into it, it can be shocking to realize just how | wide the interval can become after some computations. Yes. Even when you can prove (mathematically) that the bounds are actually quite tight :-) Regards, Nick Maclaren. -- http://mail.python.org/mailman

Re: Maths error

2007-01-15 Thread Nick Maclaren
, despite them having good backgrounds in mathematics, don't feel inferior! Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Maths error

2007-01-14 Thread Nick Maclaren
numerical problems to a FEW applications. Hence people will have to convert to the much more expensive 128-bit decimal format for such work. Bloatware rules. All your bits are belong to us. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Maths error

2007-01-14 Thread Nick Maclaren
rules. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Rational Numbers

2007-01-14 Thread Nick Maclaren
to persuade people that their solution is better. If they admitted the difficulties of using decimal floating-point, and merely said but, overall, we think it is a better solution, I would disagree but say nothing. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Fixed-point [was Re: Rational Numbers]

2007-01-14 Thread Nick Maclaren
- point number would give a different answer; this is needed to make certain operations reliable. The default formatting does the obvious thing :-) Er, that's about it Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Rational Numbers

2007-01-13 Thread Nick Maclaren
, of which such powers may be one level. This is better regarded as an optimisation of a common case than a true data type. Now, there MAY be such a language that supports such things as a proper data type, but I don't know of one. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo

Re: Maths error

2007-01-13 Thread Nick Maclaren
in hardware. And the decimal formats are significantly more complicated. What I don't know is how much precision this approximation loses when used in real applications, and I have never found anyone else who has much of a clue, either. Regards, Nick Maclaren. -- http://mail.python.org/mailman

Re: Rational Numbers

2007-01-13 Thread Nick Maclaren
MORE if they are going to support multiplication. Coming back to the start, is fixing that little lot up REALLY easier than encapsulating scaled integers to give a proper fixed-point type? I think that you will find that it is much harder! Regards, Nick Maclaren. -- http://mail.python.org/mailman

Re: Maths error

2007-01-12 Thread Nick Maclaren
floating-point isn't MUCH worse than binary, from a numerical point of view :-) [*] Assuming signed magnitude, calculate the answer truncated towards zero but keep track of whether it is exact. If not, force the last bit to 1. An old, cheap approximation to rounding. Regards, Nick Maclaren

Re: Parallel Python

2007-01-12 Thread Nick Maclaren
(as does Python PVM), | so perhaps someone has already done so. Yes. No problem. | Also, what about various grid toolkits? If you can find one that is robust enough for real work by someone who is not deeply into developing Grid software, I will be amazed. Regards, Nick Maclaren. -- http

Re: Rational Numbers

2007-01-12 Thread Nick Maclaren
In article [EMAIL PROTECTED], Carsten Haese [EMAIL PROTECTED] writes: | On Thu, 2007-01-11 at 23:47 +, Nick Maclaren wrote: | In article [EMAIL PROTECTED], | Facundo Batista [EMAIL PROTECTED] writes: | | Noud Aldenhoven wrote: | | | | When I was programming in a mathematical project I

Re: Rational Numbers

2007-01-12 Thread Nick Maclaren
. That is dubious, but let's not start that one again. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Rational Numbers

2007-01-12 Thread Nick Maclaren
are probably too mathematical to be used in | | For the sake of me being less ignorant, could you please point me a | language where irrational numbers are exact? Some of the algebraic languages. (2/3)^(1/5) is held as such and manipulated appropriately. Yes, I know that's cheating :-) Regards, Nick

Re: Rational Numbers

2007-01-12 Thread Nick Maclaren
the problem in as much detail as you want, but would very much rather not. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Maths error

2007-01-11 Thread Nick Maclaren
any base above 2 is significantly worse than base 2. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parallel Python

2007-01-11 Thread Nick Maclaren
). It leaves all language aspects (including allowed code movement) to C. There are no concepts in common between C's and POSIX's consistency specifications (even when they are precise enough to use), and so no way of mapping the two standards together. Regards, Nick Maclaren. -- http://mail.python.org

Re: Parallel Python

2007-01-11 Thread Nick Maclaren
. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parallel Python

2007-01-11 Thread Nick Maclaren
an apparently lightweight one (data sharing) are both subtle and complicated. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Rational Numbers

2007-01-11 Thread Nick Maclaren
a rational with small numerator and denominator, then they are very likely to return it. I implemented fixed slash once, and it is very easy to do - all it needs is a GCD routine - like rational, it would be straightforward to add to Python as an extension type. Regards, Nick Maclaren. -- http

Re: Maths error

2007-01-10 Thread Nick Maclaren
: if c == a : break a = c That works in binary, but in no base above 2 (assuming that I haven't made a stupid error writing it down). In THAT case, it is easy to fix for decimal, but there are ways that it can show up that can be quite tricky to fix. Regards, Nick Maclaren

Re: Parallel Python

2007-01-10 Thread Nick Maclaren
memory, but that's how it is. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parallel Python

2007-01-10 Thread Nick Maclaren
to. The ASCI bunch favour Co-array Fortran, and its model matches Python like a steam turbine is a match for a heart transplant. [*] They are worth looking up, if you don't know about them. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parallel Python

2007-01-10 Thread Nick Maclaren
it to the programmer. It is therefore easy to put the processes on different CPUs, and get the memory consistency right. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parallel Python

2007-01-10 Thread Nick Maclaren
. That is why many POSIX threads programs work until the genuinely shared memory accesses become frequent enough that you get some to the same location in a single machine cycle. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parallel Python

2007-01-10 Thread Nick Maclaren
, and was and am fairly well in touch with what is going on in HPC world-wide. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Maths error

2007-01-09 Thread Nick Maclaren
a course on computer arithmetic, and am just now writing one on Python numerics, and confused people may contact me - though I don't guarantee to help. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Maths error

2007-01-09 Thread Nick Maclaren
in the days before binary became standard, and will clearly return with decimal. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Maths error

2007-01-09 Thread Nick Maclaren
() of | its elements. Precisely. And it also applies to strings, which I had failed to notice: print (1,2) ('1', '2') print 1, 2 1 2 Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Bizarre floating-point output

2007-01-08 Thread Nick Maclaren
x = (1.234567890125, 1.2345678901255) print x print x[0], x[1] (1.234567890124, 1.2345678901254999) 1.23456789012 1.23456789013 Is there a rational reason, or is that simply an artifact of the way that the code has evolved? It is clearly not a bug :-) Regards, Nick Maclaren. -- http

Re: Bizarre floating-point output

2007-01-08 Thread Nick Maclaren
has evolved! Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bizarre floating-point output

2007-01-08 Thread Nick Maclaren
In article [EMAIL PROTECTED], Bjoern Schliessmann [EMAIL PROTECTED] writes: | Nick Maclaren wrote: | | Ah! That explains it. I would call that reason intermediate | between rational and an artifact of the way the code has evolved! | | Which code has evolved? Those precision problems

Re: Bizarre floating-point output

2007-01-08 Thread Nick Maclaren
In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] writes: | Nick Maclaren wrote: | | The use of different precisions for the two cases is not, however, | and it is that I was and am referring to. | | that's by design, of course. maybe you should look repr up

Re: Bizarre floating-point output

2007-01-08 Thread Nick Maclaren
naive users. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bizarre floating-point output

2007-01-08 Thread Nick Maclaren
of digits after the decimal point for at least 60 years, probably 100; in 40 years of IT and using dozens of programming languages, I have never seen display used for that purpose. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bizarre floating-point output

2007-01-08 Thread Nick Maclaren
if the current behaviour was changed. See | http://www.python.org/sf/1534769 | for details. Well, I wasn't complaining - merely querying. If this approach is taken, it would be better to document it, so that authors of derived classes follow the convention. Regards, Nick Maclaren. -- http

Re: tuple.index()

2006-12-21 Thread Nick Maclaren
of computing and mathematics. But, given that meaning, I now understand your point. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple.index()

2006-12-21 Thread Nick Maclaren
In article [EMAIL PROTECTED], Hendrik van Rooyen [EMAIL PROTECTED] writes: | Nick Maclaren [EMAIL PROTECTED] wrote: | | Not at all. I didn't say that they came in pairs. Consider: | | [str1, str2, agent1, str3, agent2, agent3, agent4, str4, ...] | | See Algol 68 for an example

Re: tuple.index()

2006-12-20 Thread Nick Maclaren
out. That is more than just odd - it is almost unbelievable. They are a very basic data structure, after all! Regards, Nick Maclaren, University of Cambridge Computing Service, New Museums Site, Pembroke Street, Cambridge CB2 3QH, England. Email: [EMAIL PROTECTED] Tel.: +44 1223 334761Fax

Re: tuple.index()

2006-12-20 Thread Nick Maclaren
of this. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple.index()

2006-12-19 Thread Nick Maclaren
In article [EMAIL PROTECTED], greg [EMAIL PROTECTED] writes: | Nick Maclaren wrote: | | Unfortunately, you are confusing the issue, because there are far | more extraneous aspects than relevant ones, and your view of the | similarities requires looking at the issue in a very strange way. | I

Re: tuple.index()

2006-12-19 Thread Nick Maclaren
sequences, or whether they claim that wanting such a feature is heresy :-) Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple.index()

2006-12-19 Thread Nick Maclaren
write code that abuses a language construct in a way that is discouraged but just happens to work, a couple of decades down the line it will stop working, because someone will change the feature. Been there - been caught by that :-( Regards, Nick Maclaren. -- http://mail.python.org/mailman

Re: tuple.index()

2006-12-18 Thread Nick Maclaren
more extraneous aspects than relevant ones, and your view of the similarities requires looking at the issue in a very strange way. I think that I can see what you mean, but only just. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple.index()

2006-12-17 Thread Nick Maclaren
. But that | doesn't mean the concept isn't real. Of course the concept is real, but the point is that Python doesn't embody the concept of homogeneity in lists, formally or informally, as far as I know or anyone has pointed out. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple.index()

2006-12-16 Thread Nick Maclaren
also be possible to improve lists to make insertion an O(log N) operation, not an O(N) one as at present, at the expense of increasing the cost of indexing. Not necessarily as much as from the present O(1) to O(log N), but still significantly. Python has chosen not to do that. Regards, Nick

Re: tuple.index()

2006-12-16 Thread Nick Maclaren
sense that I have located. As I posted earlier, if anyone knows of one, please tell me. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple.index()

2006-12-15 Thread Nick Maclaren
, but should almost always come with the rider Follow these unless you have good reasons to ignore them, but do make sure that you understand the rules first before deciding your rules are good. Some of the responses here went a little, er, a lot beyond that. Regards, Nick Maclaren. -- http

Re: Defining classes

2006-12-14 Thread Nick Maclaren
can't find any that are as transparent to the user as I would really like. There is method in my madness :-) Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Defining classes

2006-12-14 Thread Nick Maclaren
In article [EMAIL PROTECTED], Michele Simionato [EMAIL PROTECTED] writes: | Nick Maclaren wrote: | It would be much cleaner not to have to fiddle with static | members after the class is initialised. | | You can hide the fiddling, for instance with the trick explained here: | | http

tuple.index()

2006-12-14 Thread Nick Maclaren
Why doesn't the tuple type have an index method? It seems such a bizarre restriction that there must be some reason for it. Yes, I know it's a fairly rare requirement. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple.index()

2006-12-14 Thread Nick Maclaren
restriction! Eh? Why? My understanding of the difference between a tuple and a list is PRECISELY that the former is immutable and the latter mutable. But an index method makes precisely as much sense on an immutable sequence as it does on a mutable one. Regards, Nick Maclaren. -- http://mail.python.org

Re: tuple.index()

2006-12-14 Thread Nick Maclaren
am now confused by is the reason for the explanations Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple.index()

2006-12-14 Thread Nick Maclaren
at all clear, is not defined for Python tuples. There is no technical or mathematical reason why it shouldn't be. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple.index()

2006-12-14 Thread Nick Maclaren
In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] writes: | Nick Maclaren wrote: | | If lists are intended to be homogeneous, then they should be checked | for that, and an exception raised when an attempt is to make them | non-homogeneous. | | so how would that check work, given

Re: tuple.index()

2006-12-14 Thread Nick Maclaren
and for all... | | http://www.python.org/search/hypermail/python-1992/0285.html Wonderful! Thanks. Yes, that does. It makes perfect sense. I did say that I thought it would be a rarely used feature :-) Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple.index()

2006-12-14 Thread Nick Maclaren
that it has not been done because Guido and others felt that it wasn't worth doing, but not that it is hard to do. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple.index()

2006-12-14 Thread Nick Maclaren
a respectable tuple even in Guido's sense, being fixed in number and value and just happening to be homogeneous). ] Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple.index()

2006-12-14 Thread Nick Maclaren
to be a serious piece of misdesign, but there isn't a huge amount of point unless it is done properly. Unreliable safety devices are as likely to increase errors as reduce them, at least in the hands of the naive. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Defining classes

2006-12-13 Thread Nick Maclaren
be used until after the class has been created properly. Actually, it won't be used except to test for class equivalence, but I may want to extend later. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Defining classes

2006-12-13 Thread Nick Maclaren
already doing that, and regretting the fact that Python doesn't seem to allow a class instantiation to return a new class :-) What I am trying to do is very simple, but is somewhat unusual. That is the story of my life, so I am used to having problems. Regards, Nick Maclaren. -- http

Re: Illegal instruction or undefined symbol from import

2006-07-05 Thread Nick Maclaren
; there are specific physical problems where they are fundamental. I have never used them, in 40 years of wide-ranging experience in the scientific computing arena! Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Non-ASCII languages (was: Re: style question)

2006-07-01 Thread Nick Maclaren
reasons that 'program proving' has never taken off outside its cabal is that it uses bizarre notations unlike anything else on earth that can't be edited in a normal fashion. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

File naming [was Re: Bug reporting impossible]

2006-06-30 Thread Nick Maclaren
INVENT that convention, you know. The bug isn't in passing an information string stdin but in using that string (which is not meant to represent a real file) to perform a file search. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Interprocess communication on multi-user machine

2006-06-30 Thread Nick Maclaren
. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Interprocess communication on multi-user machine

2006-06-30 Thread Nick Maclaren
on or largely cloned from Unix. You should look at the POSIX facilities, but don't rely on them without checking. Also think very carefully whether you want to separate by user or job - the latter is trickier under Unix. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python

Re: Interprocess communication on multi-user machine

2006-06-30 Thread Nick Maclaren
file permissions (on Linux, at least). They aren't on most Unices - Linux is not UNIX, you know :-) I shall not respond further on this. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Bug reporting impossible

2006-06-29 Thread Nick Maclaren
there for a while. Create a file called 'stdin' in your current directory containing 'print Oh, yeah?\n' and then import a module that doesn't exist. Don't include the single quotes. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug reporting impossible

2006-06-29 Thread Nick Maclaren
In article [EMAIL PROTECTED], Simon Forman [EMAIL PROTECTED] writes: | Nick Maclaren wrote: | ... | Create a file called 'stdin' in your current directory containing | 'print Oh, yeah?\n' and then import a module that doesn't exist. | Don't include the single quotes. | | Why would you have

Re: Bug reporting impossible

2006-06-29 Thread Nick Maclaren
the bug is. | I don't know whether this is worth fixing. It's definitely worth fixing, but not as a high priority. Invoking a file spuriously is potentially serious, with very low probability. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug reporting impossible

2006-06-29 Thread Nick Maclaren
In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] writes: | Nick Maclaren wrote: | | It's definitely worth fixing, but not as a high priority. Invoking a | file spuriously is potentially serious, with very low probability. | | the traceback printer is reading the file (using

Immutability

2006-06-28 Thread Nick Maclaren
The way that I read it, Python allows only values (and hence types) to be immutable, and not class members. The nearest approach to the latter is to use the name hiding conventions. Is that correct? Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Immutability

2006-06-28 Thread Nick Maclaren
In article [EMAIL PROTECTED], Robert Kern [EMAIL PROTECTED] writes: | Nick Maclaren wrote: | The way that I read it, Python allows only values (and hence types) | to be immutable, and not class members. The nearest approach to the | latter is to use the name hiding conventions

Re: Immutability

2006-06-28 Thread Nick Maclaren
that needs to be in the reference manual, but is only in whatsnew2.2. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Immutability

2006-06-28 Thread Nick Maclaren
to be | lacking. Consider it considered, but I have to start by understanding what is supposed to happen and what does happen, precisely and in detail. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Immutability

2006-06-28 Thread Nick Maclaren
Traceback (most recent call last): File crap.py, line 14, in module a.joe() TypeError: 'NoneType' object is not callable VERY weird - I could understand it if I got the error and DIDN'T succeed in the call Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Immutability

2006-06-28 Thread Nick Maclaren
. That certainly doesn't appear to be the case, and I don't see how it helps with my original request if not. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Immutability

2006-06-28 Thread Nick Maclaren
extract its meaning from its words. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

Re: Immutability

2006-06-28 Thread Nick Maclaren
directly. But no matter - it is clear I had completely misunderstood the intent. Regards, Nick Maclaren. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >