Re: What's the use of the else in try/except/else?

2009-05-12 Thread greg
: pass Then you could easily fail to notice that you had written 'warming' instead of 'warning'. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: python copy method alters type

2009-05-15 Thread greg
the whole array, and then converting the rest of the elements to that type. If you want the standard Python copying behaviour, use copy.copy instead (or use a[:], which might be slightly more efficient). -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Import and absolute file names, sys.path including ''... or not

2009-05-21 Thread greg
27;t rely on it. If you want to execute the contents of an arbitrary file, rather than a module existing somewhere in the Python module namespace, use execfile(). -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: What text editor is everyone using for Python

2009-06-04 Thread greg
Albert van der Horst wrote: Memories of Atari 260/520/1040 that had a keyboard with a key actually marked ... HELP. Modern day Mac keyboards have one of those, too. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

ANN: Pyrex 0.9.7.1

2008-05-13 Thread greg
Pyrex 0.9.7.1 is now available: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ This version fixes a bug in the new integer indexing optimisation which causes indexing of a non-sequence type with a C int to fail with a TypeError. What is Pyrex? -- Pyrex is a language fo

ANN: Pyrex 0.9.7.2

2008-05-14 Thread greg
Pyrex 0.9.7.2 is now available: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ Seems I didn't quite eradicate all of the integer indexing bugs. Here's a fix for the other half. What is Pyrex? -- Pyrex is a language for writing Python extension modules. It lets you free

ANN: Pyrex 0.9.8

2008-05-15 Thread greg
Pyrex 0.9.8 is now available: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ This version has a number of new features: * In-place operators (+= etc.) are now supported. * The Pyrex compiler now has built-in facilities for automatically tracking down and compiling all the modu

ANN: Pyrex 0.9.8.1

2008-05-17 Thread greg
Pyrex 0.9.8.1 is now available: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ Base classes no longer need to be specified in a forward declaration of an extension type, or in the implementation part of an extension type defined in a .pxd file. Also, I've come up with an even bette

Re: Code/test ratio wrt static vs dynamic typing [was: Re: Python Success stories]

2008-05-20 Thread greg
still spent far more time and effort developing the compiler than writing the tests. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does python not have a mechanism for data hiding?

2008-06-03 Thread greg
On May 25, 9:50 pm, [EMAIL PROTECTED] wrote: > On May 24, 9:41 am, Sh4wn <[EMAIL PROTECTED]> wrote: > > > Python advertises himself as a full OOP language, but why does it miss > > one of the basic principles of OOP? Will it ever be added to python? > > Others have already answered this directly, b

ANN: Pyrex 0.9.8.3

2008-06-08 Thread greg
Pyrex 0.9.8.3 is now available: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ Compiling multiple .pyx files in one go works properly now, and can be substantially faster if you have a lot of modules that cimport from each other. I had to rearrange various things to make this work,

ANN: Pyrex 0.9.8.4

2008-06-11 Thread greg
Pyrex 0.9.8.4 is now available: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ This version fixes a bug introduced by the last change to unsigned integer indexing. What is Pyrex? -- Pyrex is a language for writing Python extension modules. It lets you freely mix opera

screencapture with PIL question

2008-07-14 Thread greg
I am able to use the PIL module to capture a screen or specific window. My problem is when capturing a window (on windows XP) I can only capture the "visible" portion of the window. Is there any way to capture the entire window? specifically the scrolled portion of a window that is not visible o

Re: Rant (was Re: x*x if x>10

2008-07-28 Thread greg
uot;look but don't touch" rule. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: with statement for two files

2008-07-28 Thread greg
Diez B. Roggisch wrote: Paul Rubin wrote: > > use contextlib.nexted(). You mean contextlib.nested I guess. Although "nexted" is an intriguing-sounding word. I wonder what it could mean? -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Teething troubles with Python on a Mac

2008-08-02 Thread greg
. use Python to run a setup.py file. This ensures that the package will be installed into whichever Python is being used to run the setup.py. Apart from the initial installation of Python itself, I never use an installer to install a Python package if I can avoid it. I wouldn't trust it to install into the right Python version. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Teething troubles with Python on a Mac

2008-08-03 Thread greg
on it) I've very rarely had any problem with maintaining my own Python installation, but as I said, I always install packages using "python setup.py". Python itself copes very well with having multiple versions installed, on all platforms, but you have to do things the Python w

Re: internet searching program

2008-08-09 Thread greg
rmation. Another possibility might be to crawl the site and build your own index based on the information you're interested in. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: why does socket.makefile require non-blocking mode?

2008-04-06 Thread greg
data in its buffer waiting to be read. When using select(), you really need to deal with the socket directly, with no buffering in the way. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

ANN: Pyrex 0.9.7

2008-05-09 Thread greg
Pyrex 0.9.7 is now available: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ Highlights of this version: * I have streamlined the integer for-loop syntax. Instead of the loop variable redundantly appearing in two places, it's now just for x < i < y: ... * If you dec

ANN: Pyrex 0.9.8.5

2008-08-27 Thread greg
Pyrex 0.9.8.5 is now available: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ Various minor bug fixes and improvements. What is Pyrex? -- Pyrex is a language for writing Python extension modules. It lets you freely mix operations on Python and C data, with all Python

Re: Function getting a reference to its own module

2008-09-16 Thread greg
Arnaud Delobelle wrote: Or: import ModuleName as this_module Or: this_module = __import__(__name__) then you don't have to change anything. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: minimum install & pickling

2008-09-17 Thread greg
ty_path, "w").write(my_naughty_data) -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Why are "broken iterators" broken?

2008-09-26 Thread greg
h time you want to start iterating again. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python style: exceptions vs. sys.exit()

2008-10-02 Thread greg
how copyrights work either. As far as I know, whether something is deemed a derivative work is judged on the basis of how similar it is to another work, not whether its author had knowledge of the other work. As long as you express an idea in an original way, it shouldn't matter whe

Re: Python is slow?

2008-10-02 Thread greg
ource and replace it with the following". Then you're effectively distributing the modified source in its entirety, just with a funny header at the top of each source file that serves no useful purpose. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing float and decimal

2008-10-03 Thread greg
would be rather hackish, and wouldn't do anything for any other incomparable types that might come along. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing float and decimal

2008-10-03 Thread greg
elements involved are transitive, and leave the semantics in other cases undefined. Then in the Decimal module it could be warned that the equality relations between int-float and int-Decimal are not transitive, perhaps noting that this can cause problems with sets and dicts. -- Greg -- http

Re: What is not objects in Python?

2008-10-03 Thread greg
= len :-) (BTW, try doing that with the x.len() notation!) -- Greg But it's too late to change things. -- http://mail.python.org/mailman/listinfo/python-list

Re: What is not objects in Python?

2008-10-03 Thread greg
Aaron "Castironpi" Brady wrote: How do you have a yellow dog, It's not a yellow dog, it's a dog yellow. Attention pay! :-) -- Ewing Gregory -- http://mail.python.org/mailman/listinfo/python-list

Re: One class per file?

2008-10-03 Thread greg
has namespaces, they don't have any defined relationship to source files, so they don't help you find which file something is defined in. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Odd Errors

2008-10-03 Thread greg
ctional languages is that there are *no* side effects. The confusing thing is that in everyday English the term implies something bad or unwanted (e.g. side effects of a drug). That's not necessarily true of the technical meaning -- often the side effect is exactly what we want, as in the c

Re: closures and dynamic binding

2008-10-03 Thread greg
aks out of the scope of the loop is regarded as a feature, so anything which changes that seems to be a non-starter. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Inheritance but only partly?

2008-10-03 Thread greg
the shiny baubles you want and hiding them away in your own nest). -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: What is not objects in Python?

2008-10-04 Thread greg
Marc 'BlackJack' Rintsch wrote: On Fri, 03 Oct 2008 19:10:27 +1200, greg wrote: (BTW, try doing that with the x.len() notation!) def size(obj): return obj.len() or size = operator.methodcaller('len') No, what I meant was that if the normal way of getting the l

Re: One class per file?

2008-10-04 Thread greg
nerate the .pyc after I've changed something. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: closures and dynamic binding

2008-10-04 Thread greg
prescribes that because it's useful behaviour, not because it has anything to do with recursion. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

ANN: PyGUI 1.6.1

2006-03-07 Thread greg
PyGUI 1.6.1 is now available: http://www.cosc.canterbury.ac.nz/~greg/python_gui/ Bug fixes: - Mouse down event in a GLView caused a crash. - Canvas methods fill_poly() and stroke_poly() didn't work. Added a test for these. What is

ANN: PyGUI 1.7

2006-04-01 Thread greg
PyGUI 1.7 is now available: http://www.cosc.canterbury.ac.nz/~greg/python_gui/ New features: * GL.DisplayList class for managing OpenGL display lists in a similar way to the GL.Texture class introduced in 1.6. * Facilites for displaying a chosen cursor when the mouse is

ANN: Pyrex 0.9.4 - LValue Casts are Dead!

2006-04-16 Thread greg
Pyrex 0.9.4 is now available: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ Highlights of this version: No more lvalue casts I have redesigned the code generator to eliminate the need for lvalue casting. This means that Pyrex-generated code should now be gcc4

Re: Most "active" coroutine library project?

2009-09-27 Thread greg
space. E.g. on the original BBC, you could either have a decently large program, *or* decently hi-res graphics, but not both at the same time. :-( -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Why the file mode of .pyc files has x?

2009-09-27 Thread greg
Peng Yu wrote: -rw--- 1 pengy lilab 29 2009-09-26 10:10:45 main.py -rwx-- 1 pengy lilab 106 2009-09-26 10:19:17 test.py -rwx-- 1 pengy lilab 339 2009-09-26 10:20:39 test.pyc Doesn't happen for me with 2.5 on Darwin. What python/OS are you using? -- Greg -- http://mail.pytho

Re: Why the file mode of .pyc files has x?

2009-09-27 Thread greg
Also, what kind of file system are the files on? Unixes often report the x bit as always being on when the file system doesn't have x bits (e.g. for FAT-based file systems). -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Why the file mode of .pyc files has x?

2009-09-28 Thread greg
Peng Yu wrote: What python/OS are you using? python 2.6.2 and CentOS Just tried 2.6 on Darwin, and it does happen. So looks like 2.6 has been changed to inherit the permission bits from the .py. Makes sense, except that the x bits should really be turned off. -- Greg -- http

Re: Python book

2009-10-01 Thread Greg
On Sep 30, 6:58 am, "lallous" wrote: > Hello > > Can anyone suggest a good book Python book for advancing from beginner > level? > > (I started with Learning Python 3rd ed) > > Regards, > Elias Elias, Try "Core Python Programming", 2nd Editi

Re: Regular expression to structure HTML

2009-10-02 Thread greg
Brian D wrote: This isn't merely a question of knowing when to use the right tool. It's a question about how to become a better developer using regular expressions. It could be said that if you want to learn how to use a hammer, it's better to practise on nails rather than s

Re: Best way to handle changing list of class imports

2009-10-12 Thread greg
ow it to be a package with submodules. Whether that's a serious disadvantage depends on how big and complicated you expect the submissions to be. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: The rap against "while True:" loops

2009-10-12 Thread greg
nvironment, and everything had to be cross-compiled. Debugging consisted of counting the number of times SysBeep got called before the bomb icon appeared...) -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: The rap against "while True:" loops

2009-10-12 Thread greg
s. (BTW, "the system hasn't crashed yet" can't be the loop invariant, because if the loop ever exits then it means the system must have crashed, so the loop invariant is no longer true!) -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: The rap against "while True:" loops

2009-10-12 Thread greg
or the flag can help, but you can't teach someone that just by giving them an overly simplified rules such as "never use while True:". They'll probably just replace it with 'while not done:' and think they've improved things, without ever really understanding the iss

Re: The rap against "while True:" loops

2009-10-12 Thread greg
imited -- anything which isn't a for has to be a while of some shape, so it's harder to avoid while True without introducing extra complexities into the code. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: code in a module is executed twice (cyclic import problems) ?

2009-10-12 Thread greg
fferent issue. There are perfectly legitimate uses for them, and they're fine as long as you understand the potential pitfalls and take steps to avoid them. Although it's probably best to avoid them until you do understand all the issues.) -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: mxDateTime history (Re: mktime, how to handle dates before 01-01-1970 ?)

2009-10-12 Thread greg
MRAB wrote: And when someone says "January 30", do they really mean the day before the last day of the month? No, no, that's January -2, a *completely* different thing! -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: "Error en el bus" from python

2009-10-12 Thread greg
and you got an interrupt. The 68K family also used the term in a similar way. I think the distinction between a bus error and a seg fault is that bus errors are to do with physical addresses, and seg faults are to do with virtual addresses. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: organizing your scripts, with plenty of re-use

2009-10-12 Thread greg
ing module names to files. But there is no such index -- the directory structure *is* the index. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: The rap against "while True:" loops

2009-10-13 Thread greg
(invariant2 and exitcond2) or ... If that gets you where you want to be, then you're home and dry. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the correct way to define __hash__?

2009-10-13 Thread greg
d in the first place. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: reifying indent and dedent into braces

2009-10-13 Thread greg
increasing and decreasing the indentation level. It keeps track of the current indentation level and automatically prepends the appropriate amount of whitespace to each line written out. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: When to derive from object?

2009-10-13 Thread greg
discourage providing defaults! -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: is None or == None ?

2009-11-11 Thread greg
s in our 64 bit pointers in another 48 years. So 128-bit machines ought to be making an appearance around about 2057, and then we'll be all set until 2153 -- if we're still using anything as quaintly old-fashioned as binary memory addresses by then... -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing an emulator in python - implementation questions (for performance)

2009-11-12 Thread greg
operations turn out to be faster. That also goes for any of the other things being discussed here. Especially if you're used to C, one's intuitions about speed can go badly astray where Python is concerned. The only way to be sure is to measure! -- Greg -- http://mail.python.org/mailman/listi

Re: Writing an emulator in python - implementation questions (for performance)

2009-11-12 Thread greg
ex or Cython or otherwise. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: #define (from C) in Python

2009-11-12 Thread greg
TerryP wrote: If it's such a big hairy deal, just recompile a copy of the C Pre Processor to use something other then #, and hook it up to your python scripts in a pipe line from a shell wrapper. Or use a different preprocessor, such as m4, that doesn't clash with the # character

Re: Writing an emulator in python - implementation questions (for performance)

2009-11-13 Thread greg
n write it back out as code. You might be able to get some ideas from 2to3, which does similar kinds of source-to-source translations. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: python simply not scaleable enough for google?

2009-11-14 Thread greg
s run. These restrictions mean that it isn't really quite Python, though. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: overriding __getitem__ for a subclass of dict

2009-11-16 Thread greg
Christian Heimes wrote: Most magic methods are implemented as descriptors. Descriptors only looked up on the type to increase the performance of the interpreter and to simply the C API. There's also a semantic problem. Since new-style classes are also instances (of class 'type') and you can cr

Re: ANN: PyGUI 2.1

2009-11-17 Thread greg
r wrote: I really like this! But after looking over your pyGUI it does "seem" that Tkinter has a richer widget set. PyGUI is a work in progress. I plan to add more widgets, but it will take a while to catch up with what's available in Tkinter and other GUI toolkits. I tend to add widgets as

Re: python simply not scaleable enough for google?

2009-11-17 Thread greg
t, once, to write it and make it fast -- and now an endless variety of programs can be written very easily in Python to make use of it. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: python simply not scaleable enough for google?

2009-11-17 Thread greg
time, then optimising elsewhere can't possibly improve the overall time by more than 1% at the very most. Once there are no hotspots left, then there may be further spread-out savings to be made. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Command line arguments??

2009-11-17 Thread greg
that wasn't engineered to cope with them. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: YIELD_VALUE Byte Code

2009-11-17 Thread greg
n with the POP_TOP opcode This will happen if the result of the yield expression is not used for anything in the Python code. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: New syntax for blocks

2009-11-17 Thread greg
rison than to break the pattern and use =. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: New syntax for blocks

2009-11-17 Thread greg
advantage in being able to use a non-standard character set on their custom-built machines. We should be able to do a lot better now using Unicode. We could even heal the <> vs != rift by using a real not-equal symbol! -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Time travel

2009-11-17 Thread greg
ments like that. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Perceived inconsistency in py3k documentation

2010-12-05 Thread Greg
o imply that to get all of the operators, only __lt__() and __eq__() need to be defined (just __lt__() should suffice though I thought). So, which is it supposed to be? Or am I reading the documentation wrong? Thanks! -Greg- -- http://mail.python.org/mailman/listinfo/python-list

mysql query results to web page

2010-06-22 Thread Greg
I'd like to query my local MySQL db and send the results to a locally served web page. I've poked around and found complex examples using web2py and pylons What's best for beginners? Can somebody lay out the basic steps for me? thanks, Greg -- http://mail.python.org/m

python instructor

2010-07-09 Thread Greg
ython users (and potential python users) who could potentially apply new skills to several in-house projects. The difficulty for the teacher would be covering breadth of experience we have currently. Any thoughts or advice would be greatly appreciated. Thanks very much, Greg -- http://mail.pytho

Re: urlretrieve() failing on me

2009-06-05 Thread greg
Robert Dailey wrote: This URL isn't even valid, can't believe I didn't get an exception! My guess is that if you look at the data it downloaded, you'll find it's a 404 response page or something similar. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: how to create a big list of list

2009-06-05 Thread greg
ssary. Recent Python versions have a built-in type called defaultdict that makes this kind of thing easy. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Pyrex and refcounts (Re: unladen swallow: python and llvm)

2009-06-08 Thread greg
blems? The only way you should be able to get reference count errors in Pyrex code is if you're casting between Python and non-Python types. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: generator expression works in shell, NameError in script

2009-06-18 Thread greg
Yes. The generator expression is a function, with its own local namespace. Since the class scope is not visible from inside functions declared within it, the behaviour you're seeing results. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: generator expression works in shell, NameError in script

2009-06-18 Thread greg
. This was implemented by making the list comprehension into a nested function. Unfortunately this leads to the same unintuitive behaviour as a genexp when used in a class scope. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: generator expression works in shell, NameError in script

2009-06-19 Thread greg
s are local to it. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: KeyboardInterrupt eats my error and then won't be caught

2009-06-19 Thread greg
yboardInterrupt flag from being set, but the signal will still be occurring at the Unix level, so the system call will get interrupted. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: KeyboardInterrupt eats my error and then won't be caught

2009-06-20 Thread greg
ike a good one. My only misgiving is that the user might expect to get a KeyboardInterrupt in response to Ctrl-C, so it might be better to just let it propagate instead of turning it into a different exception. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Meta question: disappearing posts (was Re: calculating a self.value, self.randomnum = normalvariate(x, y))

2009-06-21 Thread greg
Dennis Lee Bieber wrote: unless one is reading from a server that interprets X-no-archive to mean "delete before reading". Can't be too careful with security. Destroy it, memorize it and then read it! -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: generator expression works in shell, NameError in script

2009-06-21 Thread greg
tainly appears un-intuitive It is, but it's hard to see what could be done to improve the situation without introducing worse problems. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: No trees in the stdlib?

2009-06-26 Thread greg
way of using the existing data structures to achieve the same goal. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Measuring Fractal Dimension ?

2009-06-28 Thread greg
t running afoul of the various theorems concerning the non-existince of hidden variable theories... -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Measuring Fractal Dimension ?

2009-06-28 Thread greg
t must be at a much finer granularity than anything we've so far observed, and the discrete things that we have observed probably aren't direct reflections of it. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: tough-to-explain Python

2009-07-08 Thread greg
Dave Angel wrote: By the time I graduated, I had five six-level languages ^^^ Are they languages that you have to edit using vi? :-) -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: language analysis to enforce code standards

2009-07-10 Thread greg
b, one noun, one non-cliched adjective and one Monty Python reference." -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: tough-to-explain Python

2009-07-11 Thread greg
e specified the design so rigorously that not the slightest spark of creativity is needed to implement it, you *have* coded it. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-11 Thread greg
ith the key space of the items put into them. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: why did you choose the programming language(s)you currently use?

2009-07-14 Thread greg
Deep_Feelings wrote: So you have chosen programming language "x" so shall you tell us why you did so , and what negatives or positives it has ? This summarises my reasons for choosing Python fairly well: http://www1.american.edu/cas/econ/faculty/isaac/choose_python.pdf -- Gr

Re: tough-to-explain Python

2009-07-20 Thread greg
to find ways of writing less bugs is a worthy goal, but I think of it more in terms of adopting patterns of thought and programming that make it more likely you will write code that does what you had in mind, rather than a separate "proof" process that you go through afterwards. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: tough-to-explain Python

2009-07-21 Thread greg
suspect something similar applies to the difficulty of writing programs. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Mutable Strings - Any libraries that offer this?

2009-07-21 Thread greg
modules. That's because the existing string type stores the characters in the string object itself. A mutable variant would have to contain a pointer to a resizable memory block, and therefore couldn't be used as a drop-in replacement by existing C code that expects a string. -- Gr

Re: ANN: Shed Skin 0.2, an experimental (restricted) Python-to-C++ compiler

2009-07-21 Thread greg
depending on how much you C-ify things. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: If Scheme is so good why MIT drops it?

2009-07-21 Thread greg
n the types of the operands is okay in a statically typed language. But it's asking for trouble in a dynamically-typed language, especially where it's common practice to use ints as a substitute for floats that happen to have integer values. EIBTI in this case. -- Greg -- http://mail

<    1   2   3   4   5   6   7   8   9   10   >