Re: Why Python does *SLICING* the way it does??

2005-04-21 Thread Greg Ewing
): return list.__getitem__(self, i - self.base) # etc... -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

Re: generate De Bruijn sequence memory and string vs lists

2014-01-24 Thread Greg Ewing
Vincent Davis wrote: True, the "all you want is a mapping" is not quite true. I actually plan to plot frequency (the number of times an observed sub sequence overlaps a value in the De Bruijn sequence) The way the sub sequences overlap is important to me and I don't see a way go from base-k (or

Re: Classes

2014-11-03 Thread Greg Ewing
Jean-Michel Pichavant wrote: I agree with Steven on that one, while getters/setters are not the preferred way, they are not utterly wrong. I'm not saying that they're wrong in general, only that they're wrong for *Python*. This matters, because the course in question is purportedly teaching P

Re: ANN: PyGUI 2.5

2011-09-14 Thread Greg Ewing
On 15/09/11 06:47, Bill Janssen wrote: One possibility would be to develop a PyGUI branch on top of Tk, so that it would work with Python anywhere. Unfortunately, I doubt whether Tk would be up to the task of supporting PyGUI efficiently. The philosophies of model-view separation and allowing

Re: TK + MVC

2011-10-02 Thread Greg Ewing
Emeka wrote: Greg, Do you have an example where the Controller is connected? No, in fact I've never really felt the need for anything called a Controller in the GUI stuff I've done. I just have Models and Views. Models hold the data, and Views display it and handle input. If you come across a

SDL doesn't cope well with FreeSans

2006-07-26 Thread Greg Ewing
Whenever I try to use the FreeSans font with SDL, either through PyGame or Soya, I get disappointing results. The characters come out slightly higglety-pigglety -- randomly displaced up or down a pixel or so from the baseline. Something about the calculation of the font height seems to be off, too

Re: How to catch python's STDOUT

2006-07-31 Thread Greg Ewing
n replace sys.stdout with any object having a write() method which does whatever you want with the output. You can similarly replace sys.stderr to capture output written to standard error. -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://ww

ANN: Quest for the Holy Grail (a PyGame game)

2006-07-31 Thread Greg Ewing
age: http://www.cosc.canterbury.ac.nz/greg.ewing/grailquest/index.html It requires Python 2.3 or later and PyGame with SDL_image and SDL_ttf support. That's all! Comments, suggestions and amusing gameplay anecdotes are welcome. Have fun, -- Greg Ewing, Computer Science Dept, University of Canterbury, Ch

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-20 Thread Greg Ewing
Paul Rubin wrote: > I have yet to see a gui toolkit which doesn't suck. I'm not sure why > that is. Have you seen PyGUI? It's my attempt at creating a GUI toolkit for Python that doesn't suck. I'd be interested to know if you think I've come anywhere near to succeeding. http://www.cosc.canterbu

Re: [Pyrex] pyrex functions to replace a method (Re: replace a method in class: how?)

2006-06-27 Thread Greg Ewing
Brian Blais wrote: > I have found a very similar problem trying to replace a method using a > function defined in pyrex. Functions defined in Pyrex are C-implemented functions, which don't trigger the method binding magic when you access them through a class. The same thing happens if you try to

Re: [Pyrex] pyrex functions to replace a method (Re: replace a method in class: how?)

2006-06-28 Thread Greg Ewing
Brian Blais wrote: > TypeError: unbound method pyrex_update_within_class() must be called > with update_funcs instance as first argument (got str instance instead) Hm. Okay, so that doesn't work either. But I just tried the following, and it seems to work: import new class C(str):

Re: pyvm -- faster python

2005-05-11 Thread Greg Ewing
ly intended to apply to *compiled* languages. -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Documentation (should be better?)

2005-05-12 Thread Greg Ewing
nk it would make a big difference in this area. -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Q: "...Learning with Python" ...a property that addition and multiplication have...

2005-05-25 Thread Greg Ewing
I would consider this more about thinking like a mathematician than a computer scientist!) -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Just remember that Python is sexy

2005-05-26 Thread Greg Ewing
xception". (Of course, you could get straight from "index" to "exception" that way too, but then there wouldn't be any excuse for mentioning sex. :-) -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex: step in for loop

2005-05-26 Thread Greg Ewing
7;d suggest using the for-loop to iterate over a contiguous range of integers and an expression that maps the loop variable to whatever you want. If you want the maximum possible speed, it *may* be faster to use a while loop instead and do your own index updating. But profile to make sure. --

Python Challenge 10?

2005-05-26 Thread Greg Ewing
Can someone give me a hint for No. 10? My MindBlaster card must be acting up -- I can't seem to tune into the author's brain waves on this one. I came up with what I thought was a perfectly good solution, but apparently it's wrong. :-( -- Greg Ewing, Computer Science Dept

Re: What are OOP's Jargons and Complexities?

2005-06-01 Thread Greg Ewing
Pascal just a little has resulted in a very successful family of languages (UCSD, Turbo, Apple Pascal, etc.) -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python as client-side browser script language

2005-06-01 Thread Greg Ewing
ldn't be any difficulty with that. Python objects have complete control over which attributes can be read or written by Python code. That, together with restricting what the open() function can do, ought to provide a pretty good sandbox. -- Greg Ewing, Computer Science Dept, Univers

Re: Beginner question: Logs?

2005-06-02 Thread Greg Ewing
ly rarely be used. Better still, don't even *mention* it to a beginner. They don't need to know about it. At all. Really. -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Two questions

2005-06-02 Thread Greg Ewing
*have* to make them available to all other countries as well... not good for non-proliferation... -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

Re: [python-gtk] problem with multiple inheritance

2005-06-02 Thread Greg Ewing
andles inheritance from built-in types. You can only inherit from more than one built-in type if they have compatible C structures, and it appears that the two you're trying to inherit from aren't compatible. You'll have to think of some way of doing whatever you're trying to do w

Re: need some cgi help please

2005-06-08 Thread Greg Ewing
anything, is it? Are there any other files that it *can* open? -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

Re: OO re-factoring (was Pythonese/Efficiency/Generalese critique [on Tutor])

2005-06-08 Thread Greg Ewing
ything OO. OO isn't necessarily better than non-OO. It's a means to an end, not an end in itself. -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing func_closure?

2005-06-08 Thread Greg Ewing
specific example. As far as I know, there is currently no supported way of directly creating or modifying cell objects from Python; it can only be done by some obscure trickery. So the docs are telling the truth here, in a way. :-) -- Greg Ewing, Computer Science Dept, University of Canterbury,

Re: circular import Module

2005-06-08 Thread Greg Ewing
le1 import somename because somename won't yet have been defined in file1 at the time file2 is imported. -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

Re: \r\n or \n notepad editor end line ???

2005-06-08 Thread Greg Ewing
Peter Hansen wrote: > (I don't believe there's a "wU" and conceptually it's sort > of meaningless anyway, If we ever get quantum computers, presumably "wU" will write the newlines in all possible formats simultaneously... -- Greg Ewing, Comput

Re: Embedding: many interpreters OR one interpreter with many thread states ?

2005-06-08 Thread Greg Ewing
ly, despite there being apparent support in the API. So I suggest using a single interpeter with multiple threads. -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

Re: __init__.py in packages

2005-06-08 Thread Greg Ewing
ch simpler! -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg _versions = [ ("Carbon", "Mac"), ("gtk", "Gtk"), ] from os import environ as _env _platdir = _env.ge

Re: Annoying behaviour of the != operator

2005-06-08 Thread Greg Ewing
ethods work. They don't make any semantic assumptions. It's arguable that there should perhaps be some default assumptions made, but the Python developers seem to have done the Simplest Thing That Could Possibly Work, which isn't entirely unreasonable. -- Greg Ewing, Comp

Re: Annoying behaviour of the != operator

2005-06-08 Thread Greg Ewing
e justification. Some others: * Numeric arrays, where comparisons return an array of booleans resulting from applying the comparison to each element. * Computer algebra systems and such like, which return a parse tree as a result of evaluating an expression. -- Greg Ewing, Computer Science D

Re: Annoying behaviour of the != operator

2005-06-08 Thread Greg Ewing
> This gives the wacky world where > "[(1,2), (3,4)].sort()" works, whereas "[1+2j, 3+4j].sort()" doesn't. To solve that, I would suggest a fourth category of "arbitrary ordering", but that's probably Py3k material. -- Greg Ewing, Computer Science D

Re: Abstract and concrete syntax

2005-06-08 Thread Greg Ewing
nal language, but Python is not a functional language. In imperative programming, often you just do something for its side effect, and there's no obvious value to return. Forcing everything to return a value just for the sake of conceptual purity is an artificiality, in my view. -

Re: circular import Module

2005-06-13 Thread Greg Ewing
dependent modules. -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

ANN: 555-BOOM! version 0.6

2007-09-25 Thread Greg Ewing
I have released a post-competition version of my PyWeek 5 game competition entry, 555-BOOM!. http://www.cosc.canterbury.ac.nz/greg.ewing/python/PyWeek5/index.html This version has been tidied up in various ways, and a few more levels added. I have made a number of improvements to the level edit

ANN: Albow 1.1 and Humerus 1.0

2007-09-25 Thread Greg Ewing
I have released an updated version of my Albow gui library for PyGame, incorporating improvements made to it for my PyWeek 5 entry, and also Humerus, a skeleton game framework built on Albow. http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/ What is it? Albow is a rather basic, no-fri

ANN: Pyrex 0.9.6

2007-10-07 Thread Greg Ewing
Pyrex 0.9.6 is now available: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ There is a *lot* of new stuff in this version, too much to fit into this announcement. Read all about it here: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/changes-0.9.6.html What is Pyrex?

ANN: Pyrex 0.9.6.1

2007-10-08 Thread Greg Ewing
Pyrex 0.9.6.1 is now available: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ This version fixes a few minor problems that turned up in the initial 0.9.6 release. What is Pyrex? -- Pyrex is a language for writing Python extension modules. It lets you freely mix operations

ANN: Pyrex 0.9.6.2

2007-10-10 Thread Greg Ewing
Pyrex 0.9.6.2 is now available: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ Another couple of minor fixes. 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 reference count

ANN: Pyrex 0.9.6.3

2007-10-17 Thread Greg Ewing
Pyrex 0.9.6.3 is now available: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ Main features of this release: * The C API now uses just one name in the module namespace, instead of a name per C function. * The 'cdef' keyword and following extern/public/api qualifiers ca

Re: ANN: Pyrex 0.9.6.3

2007-10-19 Thread Greg Ewing
[EMAIL PROTECTED] wrote: > Also, I noticed that if I try to download the testing framework, it > gives me a 404. That one is fixed now, if you want to try again. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

ANN: Pyrex 0.9.6.4

2007-12-01 Thread Greg Ewing
Pyrex 0.9.6.4 is now available: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ Mostly just bug fixes in this release; see CHANGES.txt on the web site for details. What is Pyrex? -- Pyrex is a language for writing Python extension modules. It lets you freely mix operat

Pyggy Awards Judging Underway

2009-02-01 Thread Greg Ewing
Judging for the Feb'09 Pyggy Awards has started. All registered users of the PyWeek web site are eligible to rate entries, so even if you haven't submitted an entry, you can still be a judge if you want. And if you're not a PyWeek user, it's not too late to sign up. The entries are here: http:

Python binaries with VC++ 8.0?

2009-02-08 Thread Greg Ewing
Is there anywhere I can download a set of Python binaries, of any version, that have been built with Visual C++ 8.0? I'm trying to hook Python up to Sketchup 7 on Windows, and I think I'm having problems because Sketchup is linked with msvcr80.dll. -- Greg -- http://mail.python.org/mailman/listi

ANN: SuPy 1.0 for Windows

2009-02-09 Thread Greg Ewing
SuPy is a plugin for the Sketchup 3D modelling application that lets you script it in Python. This is a first version and is highly experimental. Let me know if it works for you and whether you have any problems. -- Greg Ewing greg.ew...@canterbury.ac.nz -- http://mail.python.org/mailman/listinfo/python-list

ANN: SuPy for Python 2.5 on Windows

2009-02-11 Thread Greg Ewing
highly experimental. Let me know if it works for you and whether you have any problems. -- Greg Ewing greg.ew...@canterbury.ac.nz -- http://mail.python.org/mailman/listinfo/python-list

ANN: Supy 1.1

2009-02-13 Thread Greg Ewing
;body'. What is SuPy? - SuPy is a plugin for the Sketchup 3D modelling application that lets you script it in Python. -- Greg Ewing greg.ew...@canterbury.ac.nz -- http://mail.python.org/mailman/listinfo/python-list

ANN: SuPy 1.2

2009-02-14 Thread Greg Ewing
-passing mechanism. What is SuPy? - SuPy is a plugin for the Sketchup 3D modelling application that lets you script it in Python. -- Greg Ewing greg.ew...@canterbury.ac.nz -- http://mail.python.org/mailman/listinfo/python-list

ANN: SuPy 1.3

2009-02-15 Thread Greg Ewing
that lets you script it in Python. -- Greg Ewing greg.ew...@canterbury.ac.nz -- http://mail.python.org/mailman/listinfo/python-list

ANN: SuPy 1.4

2009-02-15 Thread Greg Ewing
sequences to arrays. - X_AXIS, Y_AXIS, Z_AXIS constants. - Unit conversion constants (feet, yard, etc.) e.g. 5 * feet What is SuPy? - SuPy is a plugin for the Sketchup 3D modelling application that lets you script it in Python. -- Greg Ewing greg.ew...@canterbury.ac.

ANN: Assembly Line 0.8.2

2009-02-17 Thread Greg Ewing
I have released an updated version of Assembly Line, my entry in PyWeek 6 and later the Pyggy Awards. http://media.pyweek.org/dl/1007/greg_pgF09/AssemblyLine-0.8.2.zip About Assembly Line --- Become a FADE! That's Factory Automation Design Engineer for Pixall Manufacturing, the

Re: If an OS was to be written in Python, how'w it look?

2008-10-08 Thread Greg Ewing
James Mills wrote: I've just checked out the darcs repository and converted it to Mercurial. I'm going to have a bit of a play wiht it... Anyone interested in this ? I'll be interested to hear of any developments. -- http://mail.python.org/mailman/listinfo/python-list

ANN: Humerus 2.0

2008-10-12 Thread Greg Ewing
Humerus 2.0 is now available: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/Humerus-2.0.0.tar.gz Online documentation: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/Humerus-2.0.0/doc/ This version of Humerus has been extensively revised from the previous one. Instea

Re: 2.6, 3.0, and truly independent intepreters

2008-10-28 Thread Greg Ewing
Glenn Linderman wrote: So your 50% number is just a scare tactic, it would seem, based on wild guesses. Was there really any benefit to the comment? All I was really trying to say is that it would be a mistake to assume that the overhead will be negligible, as that would be just as much a wil

Python COM: Automatic wrap/unwrap?

2008-11-07 Thread Greg Ewing
I'm creating a COM server in Python that will have one main class, with methods that create and return instances of other classes. I've found that I need to use win32com.server.util.wrap and unwrap on these objects when they pass over a COM connection. This doesn't seem very convenient, especiall

ANN: SuPy 1.5

2009-02-23 Thread Greg Ewing
What is SuPy? - SuPy is a plugin for the Sketchup 3D modelling application that lets you script it in Python. -- Greg Ewing greg.ew...@canterbury.ac.nz -- http://mail.python.org/mailman/listinfo/python-list

ANN: SuPy 1.6

2009-02-23 Thread Greg Ewing
. -- Greg Ewing greg.ew...@canterbury.ac.nz -- http://mail.python.org/mailman/listinfo/python-list

ANN: PyGUI 2.0

2009-04-11 Thread Greg Ewing
PyGUI 2.0 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ Highlights of this release: * Native Windows implementation, based on pywin32 and ctypes. * Full set of Postscript-style path construction operators available on all platforms. * Mouse and keyboard events can

ANN: PyGUI 2.0.1

2009-04-12 Thread Greg Ewing
PyGUI 2.0.1 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ Fixes some problems in setup.py affecting installation on Linux and Windows. What is PyGUI? -- PyGUI is a cross-platform GUI toolkit designed to be lightweight and have a highly Pythonic API. -- G

ANN: PyGUI 2.0.2

2009-04-16 Thread Greg Ewing
PyGUI 2.0.2 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ Fixes problem on Windows causing "This file should not be imported" error. What is PyGUI? -- PyGUI is a cross-platform GUI toolkit designed to be lightweight and have a highly Pythonic API. -- Gre

ANN: PyGUI 2.0.4

2009-04-21 Thread Greg Ewing
PyGUI 2.0.4 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ Fixes a few more bugs and hopefully improves things on Windows, although I can't be sure it will fix all the Windows problems people are having, because I haven't been able to reproduce some of them. What is Py

ANN: PyGUI 2.0.5

2009-04-26 Thread Greg Ewing
PyGUI 2.0.5 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ More bug fixes for various platforms. Still no idea what's causing the "object has been destroyed" error on Windows XP, though. Does this happen for everyone? Is there anyone who *has* got 12-scroll.py working f

Re: ANN: PyGUI 2.0.5

2009-04-26 Thread Greg Ewing
Randy Syring wrote: Could you tell me briefly how this project differs from something like wxPython? It wraps platform-specific libraries directly, rather than being a wrapper around another cross-platform library. This means less bloat and less dependencies. Chances are you already have the n

2nd Pyggy Awards Open

2009-05-14 Thread Greg Ewing
The Second Pyggy Awards is now open for entries. http://pyggy.pyweek.org/1008/ Judging will be held in the first two weeks of August 2009. Once again, the event is open to games from any previous PyWeek competition. You may also submit a game that you were intending to enter in PyWeek 8 but

ANN: Pyrex 0.9.8.2

2008-05-18 Thread Greg Ewing
Pyrex 0.9.8.2 is now available: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ A block of external functions can now be declared nogil at once. cdef extern from "somewhere.h" nogil: ... Also some minor nogil-related bugs have been fixed. What is Pyrex? -- Pyre

Re: Teething troubles with Python on a Mac

2008-08-04 Thread Greg Ewing
Avinash Vora wrote: (Greg: You only sent the email to me: you probably wanted to add the mailing list to the recipients.) I replied to the newsgroup as well, so it should turn up in the list. Right, but I meant if there is an Apple-sanctioned way. I guess not? Not that I'm aware of. I g

Re: [Python-Dev] annoying dictionary problem, non-existing keys

2008-04-24 Thread Greg Ewing
bvidinli wrote: I posted to so many lists because, this issue is related to all lists, this is an idea for python, this is related to development of python... You shouldn't post to every group that you think might be vaguely relevant. You should pick *one* that you think is *most* relevant and

ANN: Assembly Line 0.5

2008-05-08 Thread Greg Ewing
I've uploaded a new version of my PyWeek 6 game, Assembly Line. http://media.pyweek.org/dl/6/gregpw6/AssemblyLine-0.5.zip As a potential Pyggy entry, I'm keen to get some testing and feedback on it. This version is greatly expanded. Some of the new features include: * More machine types

Re: PyGUI as a standard GUI API for Python?

2008-09-03 Thread Greg Ewing
Michael Palmer wrote: So far, development of PyGUI seems to be a one-man effort, and it may be slowed down by the attempt to develop the API and the implementations concurrently. Could it be useful to uncouple the two, such that the API would be specified ahead of the implementation? I'm not s

Re: Python advocacy in scientific computation

2006-03-08 Thread Greg Ewing
Andy Salnikov wrote: > I saw lots of awk or sed "code" embedded in scripts In my experience, embedding any of make/sh/awk/sed in any of the others is a nightmare of singlequote/ doublequote/backslash juggling that makes a few tab/space problems in Python pale by comparison. -

Re: Python advocacy in scientific computation

2006-03-08 Thread Greg Ewing
le of anything that the shell can do. It's somewhat inelegant having to concatenate all the arguments into a string, though. I gather there's a new subprocess management module coming that's designed to clean up the mess surrounding all the popen() variants. Hopefully it will mak

Re: Python advocacy in scientific computation

2006-03-08 Thread Greg Ewing
dless of whether the object passed in is mutable or immutable. It's best to avoid using terms like "by reference" when talking about Python parameter passing, because it's hard to tell whether the person you're talking to understands the same thing by them. But if yo

Re: PyGUI 1.6: A Note for MacOSX Users

2006-03-08 Thread Greg Ewing
ort item assignment You need to run your program with pythonw, not python. -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand http://www.cosc.canterbury.ac.nz/~greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing .DS_Store files from mac folders

2006-03-08 Thread Greg Ewing
ld get re-created in between your purge and creating the tarball. It would be better to just avoid putting the .DS_Store files in the tarball. For example, collect the pathnames of all the .DS_Store files and give them as an exclusion list to tar. -- Greg Ewing, Computer Science Dept, Universit

ANN: Humerus 2.1

2009-10-02 Thread Greg Ewing
Humerus 2.1 is now available: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/Humerus-2.1.0.zip Online documentation: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/Humerus-2.1.0/doc/ In this version, the code for handling levels has been separated out into a new pair

ANN: PyGUI 2.1

2009-11-14 Thread Greg Ewing
PyGUI 2.1 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ Highlights of this version: * Win32: Fixed bug preventing PyGUI apps from working under pythonw Fixed incorrect mouse coordinates in ScrollableView Added more standard cursors * MacOSX:

ANN: PyGUI 2.1.1

2009-11-20 Thread Greg Ewing
PyGUI 2.1.1 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This is an emergency bugfix release to repair some major breakage in the gtk version. Also corrects some other problems. What is PyGUI? -- PyGUI is a cross-platform GUI toolkit designed to be light

ANN: PyGUI 2.2

2010-02-06 Thread Greg Ewing
PyGUI 2.2 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ Highlights of this version: - TextEditor component with tabs, scrolling and word wrap - Classes for laying out components in rows, colums and grids - Printing support What is PyGUI? -

ANN: Pyrex 0.9.8.6

2010-02-24 Thread Greg Ewing
Pyrex 0.9.8.6 is now available: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ Numerous bug fixes and a few improvements. See the CHANGES page on the web site for details. What is Pyrex? -- Pyrex is a language for writing Python extension modules. It lets you freely m

ANN: PyGUI 2.3.1

2010-11-19 Thread Greg Ewing
PyGUI 2.3.1 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This version incorporates a modification that I hope will improve the behaviour of ScrollableViews on Windows with pywin32 builds later than 212. (There are still problems with it, though. If the Scrollable View

ANN: PyGUI 2.3.2

2010-12-16 Thread Greg Ewing
PyGUI 2.3.2 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This version fixes a problem in Cocoa whereby the coordinate system for drawing in a Pixmap was upside down, and corrects a slight mistake in the Canvas documentation. What is PyGUI? -- PyGUI is a

ANN: PyGUI 2.3.3

2010-12-19 Thread Greg Ewing
PyGUI 2.3.3 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ Minor update to fix a problem with the previous release on some versions of MacOSX. What is PyGUI? -- PyGUI is a cross-platform GUI toolkit designed to be lightweight and have a highly Pythonic API

Re: Registation is open for the 9th PyWeek game programming challenge!

2009-08-03 Thread Greg Ewing
Richard Jones wrote: The ninth PyWeek challenge will run between: Sunday 30th August to Sunday 6th September (00:00UTC to 00:00UTC) Yow, hard on the heels of Pyggy! I'd hoped there might be a bit more breathing room, sorry about that! Hope the Pyggy entrants aren't feeling too burned out to

Re: An assessment of the Unicode standard

2009-09-20 Thread Greg Ewing
Hendrik van Rooyen wrote: Yikes! If I follow you, it is a bit like having a hollow dumb-bell with a hollow handle of zero length, and wanting a word for that opening between the knobs. That's pretty much it, yes. Although "opening" doesn't quite cut it, because there can be two of them shari

ANN: Albow 2.1

2009-09-25 Thread Greg Ewing
ALBOW - A Little Bit of Widgetry for PyGame Version 2.1 is now available. http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/ Highlights of this version: * OpenGL faciliites * Music facilities * Drop-down menus and menu bars What is Albow? Albow is a library for creating GUIs u

Re: Exception Handling in Python 3

2010-10-29 Thread Greg Ewing
Chris Rebert wrote: On Fri, Oct 29, 2010 at 2:30 AM, Gregory Ewing wrote: I think what's disturbing about this is that the two halves of the extended traceback are printed in the wrong order. We're True, but swapping the order would only worsen Steve's problem. Yes, I can see that what S

Re: Organizing modules and their code

2023-02-04 Thread Greg Ewing via Python-list
On 5/02/23 11:18 am, transreductionist wrote: This analogy came to me the other day. For me, I would rather walk into a grocery store where the bananas, apples, and oranges are separated in to their own bins, instead of one common crate. On the other hand, if the store has an entire aisle dev

Re: Organizing modules and their code

2023-02-05 Thread Greg Ewing via Python-list
On 6/02/23 4:23 am, Weatherby,Gerard wrote: Well, first of all, while there is no doubt as to Dijkstra’s contribution to computer science, I don’t think his description of scientific thought is correct. The acceptance of Einstein’s theory of relativity has nothing to do with internal consisten

Re: ChatGPT Generated news poster code

2023-02-10 Thread Greg Ewing via Python-list
For a moment I thought this was going to be a script that uses ChatGPT to generate a random news post and post it to Usenet... Which would also have been kind of cool, as long as it wasn't overused. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Precision Tail-off?

2023-02-17 Thread Greg Ewing via Python-list
On 18/02/23 7:42 am, Richard Damon wrote: On 2/17/23 5:27 AM, Stephen Tucker wrote: None of the digits in RootNZZZ's string should be different from the corresponding digits in RootN. Only if the storage format was DECIMAL. Note that using decimal wouldn't eliminate this particular problem,

Re: Introspecting the variable bound to a function argument

2023-02-22 Thread Greg Ewing via Python-list
On 23/02/23 9:12 am, Hen Hanna wrote: On Wednesday, February 22, 2023 at 2:32:57 AM UTC-8, Anton Shepelev wrote: def f(a): print(black_magic(a))# or black_magic('a') f(v1)# prints: v1 f(v2)# prints: v2 the ter

Re: semi colonic

2023-02-22 Thread Greg Ewing via Python-list
On 23/02/23 1:58 pm, avi.e.gr...@gmail.com wrote: Would anything serious break if it was deprecated for use as a statement terminator? Well, it would break all the code of people who like to write code that way. They might get a bit miffed if we decide that their code is not serious. :-) On t

Re: it seems like a few weeks ago... but actually it was more like 30 years ago that i was programming in C, and

2023-02-22 Thread Greg Ewing via Python-list
On 23/02/23 9:37 am, Hen Hanna wrote: for the first several weeks... whenever i used Python... all i could think ofwas this is really Lisp (inside) with a thin veil of Java/Pascal syntax.. - that everything is first converted

Re: semi colonic

2023-02-23 Thread Greg Ewing via Python-list
On 24/02/23 9:26 am, avi.e.gr...@gmail.com wrote: Python One-Liners: Write Concise, Eloquent Python Like a Professional Illustrated Edition by Christian Mayer (Author) I didn't know there were any Professional Illustrated Editions writing Pythom. You learn something every day! :-) -- Greg --

Re: TypeError: can only concatenate str (not "int") to str

2023-02-25 Thread Greg Ewing via Python-list
On 26/02/23 10:53 am, Paul Rubin wrote: I'm not on either list but the purpose of the tutor list is to shunt beginner questions away from the main list. There's a fundamental problem with tutor lists. They rely on experienced people, the ones capable of answering the questions, to go out of the

Re: it seems like a few weeks ago... but actually it was more like 30 years ago that i was programming in C, and

2023-02-27 Thread Greg Ewing via Python-list
On 27/02/23 10:07 pm, Roel Schroeven wrote: I'm guessing you're thinking about variables leaking out of list comprehensions. I seem to remember (but I could be wrong) it was a design mistake rather than a bug in the code, but in any case it's been fixed now (in the 2 to 3 transition, I think).

Re: it seems like a few weeks ago... but actually it was more like 30 years ago that i was programming in C, and

2023-02-27 Thread Greg Ewing via Python-list
On 28/02/23 7:40 am, avi.e.gr...@gmail.com wrote: inhahe made the point that this may not have been the original intent for python and may be a sort of bug that it is too late to fix. Guido has publically stated that it was a deliberate design choice. The merits of that design choice can be d

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Greg Ewing via Python-list
On 28/02/23 5:08 am, Thomas Passin wrote: On 2/27/2023 11:01 AM, Mats Wichmann wrote: If you intend to run Black on your code to ensure consistent formatting, you may as well learn to prefer double quotes, because it's going to convert single to double I prefer single quotes because they are

Re: one Liner: Lisprint(x) --> (a, b, c) instead of ['a', 'b', 'c']

2023-02-27 Thread Greg Ewing via Python-list
On 28/02/23 4:24 pm, Hen Hanna wrote: is it poss. to peek at the Python-list's messages without joining ? It's mirrored to the comp.lang.python usenet group, or you can read it through gmane with a news client. -- Greg -- https://mail.python.org/mailman/listinfo/py

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread Greg Ewing via Python-list
On 2/03/23 10:59 am, gene heskett wrote: Human skin always has the same color Um... no? -- Greg -- https://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   >