ANN: MoinMoin 1.5.1 (advanced wiki engine) released

2006-01-22 Thread Alexander Schremmer
__ /\/\ ___ (_)_ __ /\/\ ___ (_)_ __ /\ / _ \| | '_ \ /\ / _ \| | '_ \ __ / /\/\ \ (_) | | | | / /\/\ \ (_) | | | | | /| |_ \/\/\___/|_|_| |_\/\/\___/|_|_| |_| |.__)

Re: New Python.org website?

2006-01-22 Thread Obaid R.
Terry Hancock wrote: On 18 Jan 2006 18:05:18 -0800 Obaid R. [EMAIL PROTECTED] wrote: I hope it is not counted against me that I am the first one to point out that the logo is shaped like a cross. [...] Hey, looks more like a Yin-Yang symbol to me. ;-) True. But I hope you are not

Re: Some thougts on cartesian products

2006-01-22 Thread Giovanni Bajo
Christoph Zwerschke wrote: Sometimes I was missing such a feature. What I expect as the result is the cartesian product of the strings. I've been thinking of it as well. I'd like it for lists too: range(3)**2 [(0,0), (0,1), (0,2), (1,0), (1,1), (1,2), (2,0), (2,1), (2,2)] -- Giovanni Bajo

Re: New Python.org website ?

2006-01-22 Thread Tim Parkin
� wrote: Steve Holden wrote: Tim Golden wrote: [Steve Holden] | https://svn.python.org/www/trunk/beta.python.org | but I don't know whether anonymous access is enabled. Maybe you can let |me know ... Doesn't look like it. Asking me for authentication. I've finally gotten to install

Re: Arithmetic sequences in Python

2006-01-22 Thread Steve Holden
Paul Rubin wrote: Tom Anderson [EMAIL PROTECTED] writes: listx/dictx/setx would be the display forms as well as the constructor forms. Could these even replace the current forms? If you want the equivalent of list(sometuple), write list(*sometuple). The current list function is supposed

Re: Error in Python documentation

2006-01-22 Thread Steve Holden
Peter wrote: From http://www.python.org/doc/2.4.2/ go to the Library reference http://www.python.org/doc/2.4.2/lib/lib.html from there to the index (i) at http://www.python.org/doc/2.4.2/lib/genindex.html. In the index select 'p' and click to reach

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-22 Thread Lawrence Oluyede
J [EMAIL PROTECTED] writes: I hope the title of this message indicates my question. I am looking for basic array functionality in Python and it turns out that there are all these packages which are somehow related. Some are allegedly discontinued but still seem to get updated. It's well

Re: New Python.org website?

2006-01-22 Thread Steve Holden
Obaid R. wrote: Terry Hancock wrote: On 18 Jan 2006 18:05:18 -0800 Obaid R. [EMAIL PROTECTED] wrote: I hope it is not counted against me that I am the first one to point out that the logo is shaped like a cross. [...] Hey, looks more like a Yin-Yang symbol to me. ;-) True. But I hope

Re: Firefox bug in webbrowser module on Ubuntu?!

2006-01-22 Thread Jarek Zgoda
Paul Boddie napisał(a): There are certain ways to override the autodetection in use within that module, and a DESKTOP_LAUNCH environment variable can also be set to configure its behaviour further. Unfortunately, attempts to confirm the standardisation status of that variable failed to cut

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-22 Thread Christoph Zwerschke
Xavier Morel wrote: Well, some people have been crazy enough lately to generate more or less imageless bar graphs though, see Eric Meyer's Bar Graphs with Style (http://meyerweb.com/eric/thoughts/2005/12/20/bar-graphs-with-style/) for more informations on the subject

Re: OT: excellent book on information theory

2006-01-22 Thread Anton Vredegoor
Paul Rubin wrote: signal processing, for example. Perhaps it could be improved by being more explicit about what the reader needs to know, and giving references to other books where the prerequisites can be found. There are lots of good explanations, graphs, diagrams and such things in the

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-22 Thread Tom Anderson
On Sat, 21 Jan 2006, Robert Kern wrote: Tom Anderson wrote: Pardon my failure to RTFM, but does NumPy pick up the vecLib BLAS on Macs? Yes. Excellent, thanks. tom -- forget everything from school -- you are programmer -- http://mail.python.org/mailman/listinfo/python-list

Background/foreground on disabled Tkinter.Entry

2006-01-22 Thread Martyn Quick
If I create a Tkinter.Entry widget, I can adjust the background and the text colours, using the background and foreground options. However, if the state is disabled, then this has no effect and it just appears as grey on a light grey background. E.g., Tkinter.Entry(root, foreground=black,

Re: Background/foreground on disabled Tkinter.Entry

2006-01-22 Thread Fredrik Lundh
Martyn Quick wrote: If I create a Tkinter.Entry widget, I can adjust the background and the text colours, using the background and foreground options. However, if the state is disabled, then this has no effect and it just appears as grey on a light grey background. E.g.,

Re: New Python.org website ?

2006-01-22 Thread Fredrik Lundh
If I see this correctly, Fredrik would volonteer to (help) implement something that imports the current python.org content into a Wiki. Exactly. I don't really have time for this tonight, and I've spent more time copying and pasting stuff than working on the converter, but I've posted

Re: Decimal vs float

2006-01-22 Thread Kay Schluehr
Tim Peters wrote: [Kay Schluehr] I concur and I wonder why CAS like e.g. Maple that represent floating point numbers using two integers [1] are neither awkward to use nor inefficient. My guess is that it's because you never timed the difference in Maple -- or, perhaps, that you did, but

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-22 Thread Sébastien Boisgérault
Robert Kern wrote: J wrote: I will just jump in an use NumPy. I hope this one will stick and evolve into the mother of array packages. How stable is it ? For now I really just need basic linear algebra. i.e. matrix multiplication, dot, cross etc Same concern for me. I discovered

OpenGL

2006-01-22 Thread NaeRey
Hey, I've been searching for something like a PyOpenGL implementation that allows Python to use OpenGL, found only a few projects and most are either in beta and dead, or alpha stage. Anyone knows a package thats currently being worked on and is functional? Thanks --

Re: OpenGL

2006-01-22 Thread Will McGugan
NaeRey wrote: Hey, I've been searching for something like a PyOpenGL implementation that allows Python to use OpenGL, found only a few projects and most are either in beta and dead, or alpha stage. Anyone knows a package thats currently being worked on and is functional? Thanks Something

Re: OpenGL

2006-01-22 Thread Fredrik Lundh
NaeRey wrote: Hey, I've been searching for something like a PyOpenGL implementation that allows Python to use OpenGL, found only a few projects and most are either in beta and dead, or alpha stage. http://pyopengl.sourceforge.net/ /F -- http://mail.python.org/mailman/listinfo/python-list

Re: new.instancemethod as a form of partial()

2006-01-22 Thread Alex Martelli
[EMAIL PROTECTED] wrote: ... thanks. So in this special case, None is being treated as a flag rather than just an instance(I just read the doc) like any other instance and the behaviour is intended. Is there any reason why it is designed this way ? I didn't yet know Python back when it was

Catching very specific exceptions

2006-01-22 Thread Harlin Seritt
I am running the following code: import socket host = '9.9.45.103' port = 10001 conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) conn.connect((host, port)) When conn.connect() is run, there can be two different exceptions: socket.error: (10061, 'Connection refused') socket.error:

Re: New Python.org website ?

2006-01-22 Thread Gerhard Häring
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim Parkin wrote: [...] Thanks for installing pyramid! Can you give me any feedback on what parts of the install process were painful.. There was nothing particularly painful. I tried to avoid having to install everything manually and to use the

Re: Some thougts on cartesian products

2006-01-22 Thread Kay Schluehr
Giovanni Bajo wrote: Christoph Zwerschke wrote: Sometimes I was missing such a feature. What I expect as the result is the cartesian product of the strings. I've been thinking of it as well. I'd like it for lists too: range(3)**2 [(0,0), (0,1), (0,2), (1,0), (1,1), (1,2), (2,0),

Concatinating PDF files

2006-01-22 Thread sophie_newbie
I am converting TIFF images of patents to PDF files. Each patent comes in about 20 seperate TIFF images and I want to put them all in the one PDF file. Is there a way to do this? Using the Image library I think you can only convert individual TIFF images to PDF? Maybe there is a way of

Re: OpenGL

2006-01-22 Thread NaeRey
If you notice the project died, being latest release Jan2 2005. Thats over a year old. -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamic website content

2006-01-22 Thread sophie_newbie
Flushing to stdout doesn't seem to work anyway. Honestly have no idea how you'd implement it in Javascript so might have an ask on one of their forums... -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenGL

2006-01-22 Thread Fredrik Lundh
NaeRey wrote: If you notice the project died, being latest release Jan2 2005. Thats over a year old. so? OpenGL itself hasn't had a release since 2004. that's even more dead. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-22 Thread Gerhard Häring
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've also done some experimentation this weekend, and my solution would be based on MoinMoin and KID. Fredrik Lundh wrote: [...] and a more extensive (but still rough) translation is available here: http://effbot.org/pydotorg/ the sample

Re: new.instancemethod as a form of partial()

2006-01-22 Thread bonono
Alex Martelli wrote: Guido has mused about abolishing unbound methods (in 3.0, I guess), so there's hope for the future. But a more complete 'partial' is likely to be acceptable sooner than any fix to bound/unbound methods: I suspect the only ingredient that's missing is a generous helping

Re: Some thougts on cartesian products

2006-01-22 Thread Alex Martelli
Kay Schluehr [EMAIL PROTECTED] wrote: ... range(3)**2 [(0,0), (0,1), (0,2), (1,0), (1,1), (1,2), (2,0), (2,1), (2,2)] ... But why isn't this interpreted as [0, 1, 4] like it is in Mathematica? Since range(3)*2 is [0, 1, 2, 0, 1, 2], it would be horribly, painfully inconsistent if **2

Re: Catching very specific exceptions

2006-01-22 Thread Alex Martelli
Harlin Seritt [EMAIL PROTECTED] wrote: except socket.error: code goes here... Of course, though, these are two separate error messages under the same error handler though. I've tried: except socket.error, (10061, 'Connection refused'): and except (socket.error, 10061, 'Connection

Re: [Python for .NET] Any plans for supporting CLR2.0?

2006-01-22 Thread F. GEIGER
Terry Reedy wrote: F. GEIGER [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm on .NET/CLR2.0 and would like to use some stuff from w/i Python. The Python for .NET file name suggests that CLR1.1 is needed. Is that right? Any known plans to change this? Most responders here

Re: Some thougts on cartesian products

2006-01-22 Thread Christoph Zwerschke
Kay Schluehr schrieb: But why isn't this interpreted as [0, 1, 4] like it is in Mathematica? Because we are thinking of a cartesian product. If you have lists of numbers, then there are mane more ways to define a product: tensor product, vector product, scalar product, componentwise product...

Re: [Python for .NET] Any plans for supporting CLR2.0?

2006-01-22 Thread Ziga Seilnacht
F. GEIGER wrote: Sorry, for not being precise about Python for .NET: I didn't mean IronPython, which I'am aware of, I meant http://www.zope.org/Members/Brian/PythonNet Kind regards Franz GEIGER Python for .NET has a separate list, see: http://mail.python.org/mailman/listinfo/pythondotnet .

Re: Some thougts on cartesian products

2006-01-22 Thread Christoph Zwerschke
Alex Martelli wrote: Kay Schluehr [EMAIL PROTECTED] wrote: range(3)**2 But why isn't this interpreted as [0, 1, 4] like it is in Mathematica? Since range(3)*2 is [0, 1, 2, 0, 1, 2], it would be horribly, painfully inconsistent if **2 was interpreted as square each item. Yes. Python does

Re: Some thougts on cartesian products

2006-01-22 Thread Alex Martelli
Christoph Zwerschke [EMAIL PROTECTED] wrote: ... given length. You could get a 6/49 lotto tip with something like: choice(set(range(49)).powerset(6)) And that would be better than the current random.sample(range(49),6) in WHAT ways, exactly...? Alex --

Re: timeout a process

2006-01-22 Thread iapain
Thanks Tim, Yeah win32api is working normally. -- http://mail.python.org/mailman/listinfo/python-list

Re: Some thougts on cartesian products

2006-01-22 Thread Paul Rubin
[EMAIL PROTECTED] (Alex Martelli) writes: given length. You could get a 6/49 lotto tip with something like: choice(set(range(49)).powerset(6)) And that would be better than the current random.sample(range(49),6) in WHAT ways, exactly...? I think the first one would be incorrect since it

Re: Some thougts on cartesian products

2006-01-22 Thread Steven D'Aprano
On Sun, 22 Jan 2006 18:29:45 +0100, Christoph Zwerschke wrote: Alex Martelli wrote: Kay Schluehr [EMAIL PROTECTED] wrote: range(3)**2 But why isn't this interpreted as [0, 1, 4] like it is in Mathematica? Since range(3)*2 is [0, 1, 2, 0, 1, 2], it would be horribly, painfully inconsistent

Re: Some thougts on cartesian products

2006-01-22 Thread Christoph Zwerschke
Alex Martelli schrieb: Christoph Zwerschke [EMAIL PROTECTED] wrote: ... given length. You could get a 6/49 lotto tip with something like: choice(set(range(49)).powerset(6)) And that would be better than the current random.sample(range(49),6) in WHAT ways, exactly...? You're right,

Re: Some thougts on cartesian products

2006-01-22 Thread Christoph Zwerschke
Steven D'Aprano wrote: On Sun, 22 Jan 2006 18:29:45 +0100, Christoph Zwerschke wrote: For doing such things I would use a vector subtype of list. Not everything needs to be a separate class! Why create a magic class for every piece of functionality you want? Just create functions that

Re: Some thougts on cartesian products

2006-01-22 Thread Christoph Zwerschke
Paul Rubin schrieb: [EMAIL PROTECTED] (Alex Martelli) writes: given length. You could get a 6/49 lotto tip with something like: choice(set(range(49)).powerset(6)) And that would be better than the current random.sample(range(49),6) in WHAT ways, exactly...? I think the first one would be

Re: ConfigParser: writes a list but reads a string?

2006-01-22 Thread Jeffrey Barish
funkyj wrote: making the config file XML and using xml.dom is another option, although XML is a bit ugly to edit by hand. --jfc I am seriously intrigued by ConfigObj. I am currently using an crude improvisation involving tab-delimited fields to store metadata for recordings -- not

Re: Concatinating PDF files

2006-01-22 Thread [EMAIL PROTECTED]
ReportLab maybe? http://www.reportlab.org/rl_toolkit.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Background/foreground on disabled Tkinter.Entry

2006-01-22 Thread Martyn Quick
Thanks v. much. I'd missed that in the documentation I have access to. Martyn -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-22 Thread Adrian Holovaty
Fredrik Lundh wrote: (or maybe the entire site should be a run via a web framework with good support for caching, such as http://www.djangoproject.com/documentation/cache/ any django hackers around with some cycles to spare ? ) Yeah, I or other Django folks would be quite happy to set

Re: Some thougts on cartesian products

2006-01-22 Thread Paul Rubin
Christoph Zwerschke [EMAIL PROTECTED] writes: No, the elements of the powerset would be sets with 6 elements each, not tuples. So technically, it would be correct. Just horribly inefficient. Oh I see, not the Cartesian product. Yeah, it would be silly in practice. --

Re: New Python.org website ?

2006-01-22 Thread Shalabh Chaturvedi
Fredrik Lundh wrote: If I see this correctly, Fredrik would volonteer to (help) implement something that imports the current python.org content into a Wiki. Exactly. I don't really have time for this tonight, and I've spent more time copying and pasting stuff than working on the converter,

Tkinter Mouse Cursor

2006-01-22 Thread gregarican
Checking a couple of examples I tried changing the Tkinter mouse cursor to indicate a busy state while my app is pushing/pulling xmlrpc data. It doesn't seem to make a difference as I don't notice the cursor actually change in the span of the 3-5 second transaction. I tried changing the cursor of

Re: Some thougts on cartesian products

2006-01-22 Thread Alex Martelli
Steven D'Aprano [EMAIL PROTECTED] wrote: ... What advantage is there to creating a list with cartesian product subclass of list? Essentially, syntax sugar -- for some people, being able to code a*b rather than product(a,b) takes on a huge significance; Python chooses to support this syntax

Re: Some thougts on cartesian products

2006-01-22 Thread Alex Martelli
Christoph Zwerschke [EMAIL PROTECTED] wrote: Alex Martelli schrieb: Christoph Zwerschke [EMAIL PROTECTED] wrote: ... given length. You could get a 6/49 lotto tip with something like: choice(set(range(49)).powerset(6)) And that would be better than the current

Re: New Python.org website ?

2006-01-22 Thread Tim Parkin
Gerhard Häring wrote: The other part of my experiment was a stupid build system that recursively looks for KID files in a directory tree and renders them to HTML. My idea is that for each KID file there would be a corresponding content.xml file that would come from the MoinMoin

Re: Some thougts on cartesian products

2006-01-22 Thread Christoph Zwerschke
Generally, if you could multiply strings in the above fashion, you could spare one more more sub loops, as in this example: for f in ('index', 'default')*('.html', '.htm', '.shtml'): if exists(f): break In this case, it would be not really be better than that: for f in

Re: Catching very specific exceptions

2006-01-22 Thread Peter Hansen
Alex Martelli wrote: what I've done in such situations is except socket.error, e: if e.errno == 10061: ... elif e.errno == 10060: ... else: raise Not sure the code in a socket.error has attributename 'errno', but I hope you get the general idea. If it does not,

Re: Some thougts on cartesian products

2006-01-22 Thread Steven D'Aprano
On Sun, 22 Jan 2006 10:41:39 -0800, Alex Martelli wrote: Steven D'Aprano [EMAIL PROTECTED] wrote: ... What advantage is there to creating a list with cartesian product subclass of list? Essentially, syntax sugar -- for some people, being able to code a*b rather than product(a,b) takes

Re: Some thougts on cartesian products

2006-01-22 Thread Christoph Zwerschke
Steven D'Aprano wrote: I beg to differ: Python *allows* people to create classes if they're keen on the syntax (and I can sympathise with that like), but Python *encourages* by example generic tools that operate on as many different types as makes sense. But these generic tools (say the pow

Re: Tkinter Mouse Cursor

2006-01-22 Thread gregarican
Please disregard. I just issued an update() method call to refresh the GUI. This in turn displayed the proper mouse cursor that was being set with the config(cursor=xxx) method. -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-22 Thread Fredrik Lundh
Tim Parkin wrote: It sounds very similar to what we have already built!! What we have also parses yaml files, rest files, inline rest content, has special renderers for navigation and breadcrumbs and handles cacheing of built data to speed generation. except that it isn't: you're talking

Re: Catching very specific exceptions

2006-01-22 Thread Roy Smith
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Alex Martelli) wrote: Harlin Seritt [EMAIL PROTECTED] wrote: except socket.error: code goes here... Of course, though, these are two separate error messages under the same error handler though. I've tried: except

Re: Some thougts on cartesian products

2006-01-22 Thread Steven D'Aprano
On Sun, 22 Jan 2006 19:12:49 +0100, Christoph Zwerschke wrote: Steven D'Aprano wrote: On Sun, 22 Jan 2006 18:29:45 +0100, Christoph Zwerschke wrote: For doing such things I would use a vector subtype of list. Not everything needs to be a separate class! Why create a magic class for every

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-22 Thread Robert Kern
Sébastien Boisgérault wrote: By the way, I tried numpy 0.9.4 10 minutes ago and guess what ? 'eigenvalue' is broken too ... (hangs forever) On what platform? Are you linking against an optimized BLAS? We can't fix anything without details. I'll be happy to work with you on this bug over on the

Re: Python code written in 1998, how to improve/change it?

2006-01-22 Thread Carl Cerecke
Bengt Richter wrote: On Thu, 19 Jan 2006 23:16:57 -0500, Peter Hansen [EMAIL PROTECTED] wrote: How about something like actions = dict( ...a=compile('print A; state=b','','exec'), ...b=compile('print B; state=c','','exec'), ...c=compile('print C; state=None','','exec')

Dominant color PIL

2006-01-22 Thread Sebastjan Trepca
Hi!I was wondering is it possible to find out which colour is dominant in an image using PIL? It would be very easy to create interesting mozaic images with that :)Thanks, Sebastjan -- http://mail.python.org/mailman/listinfo/python-list

Re: Some thougts on cartesian products

2006-01-22 Thread Christoph Zwerschke
Steven D'Aprano wrote: If you are happy to always return a list of tuples regardless of what the two operands are, generators make it so easy it is shameful. Even if you want a special case of two string arguments returning a string, it is hardly any more difficult: def cartprod(A, B):

Re: [XML-SIG] Howto create this XML string?

2006-01-22 Thread Sbaush
Thanks all, i've perfectly undestand the way. Thanks again.2006/1/19, Luis Miguel Morillas [EMAIL PROTECTED]: 2006/1/19, Sbaush [EMAIL PROTECTED]: Hi all.I've this XML:manager request append mode=INPUT method type=GOOD/ source address= 127.0.0.1/ action option=OK/ /append /request/managerHow

Re: New Python.org website?

2006-01-22 Thread Tony Meyer
But sheesh, if I objected to every picture of the moon I see (or pictures that vaguely resemble a moon), I would be in a very sad state. But you see Terry, the point is not that it is just a picture. And let's not forget that as far as we know the moon has always been a natural part of all

Multiplication Station (wxPython/PyGame/OpenSource GPL)

2006-01-22 Thread ccosse
Hello, just to announce a new version of Multiplication Station available at http://www.asymptopia.org. Multiplication Station is an OpenSource math education game. It will teach your child basic maths, guaranteed. It is multi-user, has a countdown timer and tracks high scores. All parameters

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-22 Thread Szabolcs Nagy
Basically all I need is vectors and 3x3 matrices. hmm is numpy really efficient for 3x3 (or 4x4) matrices and vectors? IMHO an optimized matrix4x4 class can be much faster (i'm just guessing here) eg cgtypes is a simple c++ implementation with boost-python wrapper:

yet another list compr. suggestion

2006-01-22 Thread palo
I appologize for suggesting (though very humbly) a syntax extension (maybe particularly idiotic) but just as a wild fantasy, what would you think about this: as a substitute for filter, people often use [x for x in y if z(x)] The suggestion is that the same result could be achieved by [x in y if

Re: Catching very specific exceptions

2006-01-22 Thread Harlin Seritt
Thanks for the effort on this last post, Roy. You asked what I was hoping to do differently on these two very minutely different error messages. What I have been trying to do for some time is to write a ping client (for Win32 platform -- Yes, I develop almost exclusively for Win32 environment,

Re: yet another list compr. suggestion

2006-01-22 Thread Alan Franzoni
palo on comp.lang.python said: The suggestion is that the same result could be achieved by [x in y if z(x)] It's just a special case... and it saves very few carachters... I don't think it would justify an update to the parser. What if you want to do something like: [str(x) for x in y if

calling python from C#...

2006-01-22 Thread Mr BigSmoke
Hi everybody, I need write an application in c#, but i wnat to use some functions that i have already written in python. Is there an easy way to call my python code from c#? I must use COM or there are other ways? And, if COM is the only way, where can i find some tutorials or examples? I've never

Re: yet another list compr. suggestion

2006-01-22 Thread palo
you'd save more characters in [not_very_convenient_name for not_very_convenient_name in y if z] (just kidding) -- http://mail.python.org/mailman/listinfo/python-list

Re: yet another list compr. suggestion

2006-01-22 Thread palo
you'd save more in [not_very_convenient_name for not_very_convenient_name in y if z] (just kidding) -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-22 Thread Paul Boddie
Fredrik Lundh wrote: for the curious, I've found a few more spare 15-minute slots, and a more extensive (but still rough) translation is available here: http://effbot.org/pydotorg/ I've also been messing around with different content sources, and the results can be viewed here:

Re: calling python from C#...

2006-01-22 Thread Ravi Teja
Writing COM Servers is not hard http://www.python.org/windows/win32com/QuickStartServerCom.html IronPython is the other way. Choose COM Server approach if you are using the a lot of standard library functions (as I recall IronPython is not complete here, yet). Definitely choose this approach if

Re: Python code written in 1998, how to improve/change it?

2006-01-22 Thread Petr Jakes
Sorry, I can't get in. Can you please show me, how to use your approach on the simple push/push ON/OFF button for example please? PS: seriously it is not a homework :) and I feel it like a shame I am asking such a simple questions :( States: ON, OFF Transition event: push, lift transition

Re: OT: excellent book on information theory

2006-01-22 Thread val bykoski
Anton Vredegoor wrote: Paul Rubin wrote(): [...] All of the books writers seem to have not caught up with the idea of hyperlinks and continue to dwell in neolithical paper dreams :-) If they only woke up and let someone like me write some Visual Python code to illustrate the algorithms or

Re: Catching very specific exceptions

2006-01-22 Thread Roy Smith
Harlin Seritt [EMAIL PROTECTED] wrote: I am finding that with the many quirks (and really bad foundation for Win32 APIs) that I am having to write a lot of voodoo code so to speak. Yeah, tell me about it. My current project at work is porting our IPv6 management package (including ICMP ping)

Who is www.python.org for? (was Re: New Python.org website ?)

2006-01-22 Thread Aahz
In article [EMAIL PROTECTED], JW [EMAIL PROTECTED] wrote: Agreed. The main page should be like a slick book cover. It should grab you and leave you wanting more. I think the beta page does that pretty well. [...] Of course, I'm a minimalist. I understand techy types want the details, but

Re: New Python.org website ?

2006-01-22 Thread Aahz
In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: for the curious, I've found a few more spare 15-minute slots, and a more extensive (but still rough) translation is available here: http://effbot.org/pydotorg/ the sample site contains ~600 pages. each page has been

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-22 Thread Tim Hochberg
Szabolcs Nagy wrote: Basically all I need is vectors and 3x3 matrices. hmm is numpy really efficient for 3x3 (or 4x4) matrices and vectors? IMHO an optimized matrix4x4 class can be much faster (i'm just guessing here) eg cgtypes is a simple c++ implementation with boost-python

Re: calling python from C#...

2006-01-22 Thread Mr BigSmoke
I use python for .NET in some applications... I've always used it for using c# code from python (but i had some problems using it with py2exe and win2000). I'll try using it the other way (c# calling python). I also thought about trying ironpython, but it's too young for my work projects... The

Re: LocaWapp: localhost web applications (v.03 - 2005 Dec 31)

2006-01-22 Thread Runsun Pan
On 1 Jan 2006 08:15:42 -0800, LocaWapp [EMAIL PROTECTED] wrote: http://cheeseshop.python.org/packages/source/L/LocaWapp/locawapp-03.tar.gz Not Found The requested URL /packages/source/L/LocaWapp/locawapp-03.tar.gz was not found on this server. -- ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~Runsun

Making dir's

2006-01-22 Thread yawgmoth7
Hello, I am writing a script that will organize all the code in the given directory. Well, currently I have it make dir's with something like: os.mkdir(C) os.mkdir(Python) os.mkdir(ASM) And so on. That is not very practical, and I wish to change it. I was wondering if there were any other

Re: New Python.org website ?

2006-01-22 Thread Tim Parkin
Fredrik Lundh wrote: Tim Parkin wrote: It sounds very similar to what we have already built!! What we have also parses yaml files, rest files, inline rest content, has special renderers for navigation and breadcrumbs and handles cacheing of built data to speed generation. except that

Re: Concatinating PDF files

2006-01-22 Thread avishay
sophie_newbie wrote: I am converting TIFF images of patents to PDF files. Each patent comes in about 20 seperate TIFF images and I want to put them all in the one PDF file. Is there a way to do this? Using the Image library I think you can only convert individual TIFF images to PDF? Maybe

Re: Dynamic website content

2006-01-22 Thread Peter Maas
sophie_newbie schrieb: Flushing to stdout doesn't seem to work anyway. Honestly have no idea how you'd implement it in Javascript so might have an ask on one of their forums... I think you need HTTP push to update the client page. See http://wp.netscape.com/assist/net_sites/pushpull.html

Re: Concatinating PDF files

2006-01-22 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], sophie_newbie wrote: I am converting TIFF images of patents to PDF files. Each patent comes in about 20 seperate TIFF images and I want to put them all in the one PDF file. Is there a way to do this? Using the Image library I think you can only convert individual TIFF

Re: Making dir's

2006-01-22 Thread [EMAIL PROTECTED]
yawgmoth7 wrote: And so on. That is not very practical, and I wish to change it. I was wondering if there were any other methods to which I could do this, I was thinking maybe I could put the dir names in a dictionary then have something like: os.mkdir(thedictname) Why not use a loop? dirs

Re: More than you ever wanted to know about objects [was: Is everything a refrence or isn't it]

2006-01-22 Thread rurpy
Steve Holden wrote: [...snipped a long and very helpful post addressing some questions I had regarding the nature of an object's value in python...] Sorry for the belated reply Steve (I had some access problems) but did want to let you know I found that post very informative, and wanted to thank

Re: yet another list compr. suggestion

2006-01-22 Thread Christoph Zwerschke
palo wrote: ... what would you think about this: as a substitute for filter, people often use [x for x in y if z(x)] The suggestion is that the same result could be achieved by [x in y if z(x)] In the original syntax, if z(x) is always true, you can leave the if z(x) part away, which is

Re: Catching very specific exceptions

2006-01-22 Thread Harlin Seritt
Reasons why it still won't work: * Firewall * Unknown-modes-operating-systems-get-into Yeah, I dont think these things can be avoided. Nonetheless, if I can come up with some way (via help from this group--thank God!) to find if the node is up (barring the two aforementioned reasons), I am doing

Re: Making dir's

2006-01-22 Thread James Stroud
yawgmoth7 wrote: Hello, I am writing a script that will organize all the code in the given directory. Well, currently I have it make dir's with something like: os.mkdir(C) os.mkdir(Python) os.mkdir(ASM) And so on. That is not very practical, and I wish to change it. I was wondering if

Re: Making dir's

2006-01-22 Thread James Stroud
yawgmoth7 wrote: Hello, I am writing a script that will organize all the code in the given directory. Well, currently I have it make dir's with something like: os.mkdir(C) os.mkdir(Python) os.mkdir(ASM) And so on. That is not very practical, and I wish to change it. I was wondering if

converting wiki markup to html (or xml)

2006-01-22 Thread Tim Parkin
I'm trying to convert fragments of wiki markup into fragments of html (specifically using moinmoin markup). I've managed to do this with MoinMoin but I've had to create a data directory, config file and underlay. Does anybody know if there a sane way of doing this without the extra baggage? Tim

Re: Making dir's

2006-01-22 Thread Christoph Zwerschke
yawgmoth7 wrote: os.mkdir(C) os.mkdir(Python) os.mkdir(ASM) And so on. That is not very practical, and I wish to change it. I was wondering if there were any other methods to which I could do this, I was thinking maybe I could put the dir names in a dictionary then have something like:

Re: Python code written in 1998, how to improve/change it?

2006-01-22 Thread Petr Jakes
Sorry for the typo in my previous posting. Of course it has to be: simple liftt/push ON/OFF button -- http://mail.python.org/mailman/listinfo/python-list

Re: another docs problem - imp

2006-01-22 Thread rurpy
Steve Holden wrote: [EMAIL PROTECTED] wrote: [...snip...] Well, perhaps if you'd read the intro to the documentation (more carefully), or if you were more used to reading programming manuals, you'd quickly have recognised [, path] as meaning precisely that the path argument is

  1   2   >