Re: Python to use a non open source bug tracker?

2006-10-05 Thread Michael Ströder
Ilias Lazaridis wrote: > > You need just 2 active contributors - and the python community, not > more Hmm, this number does not say much. It really depends on the required service level and how much time these two people can spend for maintaining the tracker service. Ciao, Michael. -- http://ma

Re: Strange sorting error message

2006-10-05 Thread Steve Holden
Dustan wrote: > Neil Cerutti wrote: > >>On 2006-10-05, Dustan <[EMAIL PROTECTED]> wrote: >> >>>Steve Holden wrote: >>> Dustan wrote: >I'm hiding some of the details here, because I don't want to >say what I'm actually doing. >[...] I have the answer to your problem bu

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 5 Oct 2006 23:43:50 -0700, MonkeeSage <[EMAIL PROTECTED]> wrote: > > > On Oct 6, 1:28 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > when did you last look at the spec? > > I'm fairly versed in JS objects, having written 10 or so extensions for > firefox; but I've only used YAML for trivial ta

Re: help on pickle tool

2006-10-05 Thread MonkeeSage
On Oct 6, 1:28 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > when did you last look at the spec? I'm fairly versed in JS objects, having written 10 or so extensions for firefox; but I've only used YAML for trivial tasks like config files. So I can't really say how they stack up in "the big pict

Re: Pysqlite tables in RAM

2006-10-05 Thread John Machin
Ranjitha wrote: > Fredrik Lundh wrote: > > > Ranjitha wrote: > > > > > I want to store my data in a database on the disk. I also want to be > > > able to reload the tables into the RAM whenever I have a lot of disk > > > accesses and commit the changes back to the database. > > > > using the cache

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 10/6/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > hanumizzle wrote: > > > I guess I'll keep an open mind. But I like editing YAML for the same > > reason that I like editing Python. > > JSON is almost identical to Python's expression syntax, of course, while > YAML isn't even close. Getting t

Re: How can I correct an error in an old post?

2006-10-05 Thread Bryan Olson
Blair P. Houghton wrote: > But they do about 10 things totally wrong with Google groups that > I'd've fixed in my spare time in my first week if they'd hired me back > when I was interviewing with them. > > So if they want it to work, they know where to find me. Doesn't seem likely, does it? But

Re: help on pickle tool

2006-10-05 Thread Fredrik Lundh
hanumizzle wrote: > I guess I'll keep an open mind. But I like editing YAML for the same > reason that I like editing Python. JSON is almost identical to Python's expression syntax, of course, while YAML isn't even close. -- http://mail.python.org/mailman/listinfo/python-list

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 10/6/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > MonkeeSage wrote: > > > > YAML is a little more complex > > a little? when did you last look at the spec? > > > and a little more mature. > > than JavaScript's expression syntax? are you sure you're not confusing > libraries with standards he

Re: profiling memory usage

2006-10-05 Thread hanumizzle
On 5 Oct 2006 16:21:50 -0700, Eddie <[EMAIL PROTECTED]> wrote: > Hi, > > I am looking for a method to profile memory usage in my python program. > The program provides web service and therefore is intended to run for a > long time. However, the memory usage tends to increase all the time, > until i

Re: help on pickle tool

2006-10-05 Thread Fredrik Lundh
MonkeeSage wrote: > YAML is a little more complex a little? when did you last look at the spec? > and a little more mature. than JavaScript's expression syntax? are you sure you're not confusing libraries with standards here? (has anyone even managed to write a YAML library that's small a

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 5 Oct 2006 23:19:18 -0700, MonkeeSage <[EMAIL PROTECTED]> wrote: > > > On Oct 6, 1:06 am, hanumizzle <[EMAIL PROTECTED]> wrote: > > I'm happy with my Pythonesque YAML syntax, thank you. :) > > YAML is a little more complex, and a little more mature. But JSON > should not be ruled out. I actually

Re: help on pickle tool

2006-10-05 Thread MonkeeSage
On Oct 6, 1:06 am, hanumizzle <[EMAIL PROTECTED]> wrote: > I'm happy with my Pythonesque YAML syntax, thank you. :) YAML is a little more complex, and a little more mature. But JSON should not be ruled out. I actually like JSON personally. Regards, Jordan -- http://mail.python.org/mailman/lis

Re: socket client server... simple example... not working...

2006-10-05 Thread Fredrik Lundh
SpreadTooThin wrote: > but why is it every time I try to do something with 'stock' python I > need another package? it's well known that all problems known to man can be solved by down- loading Twisted, PyParsing, the Stream Editor, or that other programming language that cannot be named. --

Re: Pysqlite tables in RAM

2006-10-05 Thread Ranjitha
Fredrik Lundh wrote: > Ranjitha wrote: > > > I want to store my data in a database on the disk. I also want to be > > able to reload the tables into the RAM whenever I have a lot of disk > > accesses and commit the changes back to the database. > > using the cache_size and synchronous pragmas sou

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 5 Oct 2006 22:54:46 -0700, MonkeeSage <[EMAIL PROTECTED]> wrote: > hanumizzle wrote: > > Why a subset? > > I don't think JSON is a subset of YAML. Apparent slip of the fingers by OP. From JSON website: JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for h

Re: socket client server... simple example... not working...

2006-10-05 Thread Bryan Olson
SpreadTooThin wrote: > Jean-Paul many thanks for this and your effort. > but why is it every time I try to do something with 'stock' python I > need another package? Twisted has it's fan, but you don't "need" it. Your code had a few specific problems, and fixing them has little or nothing to do wi

Re: help on pickle tool

2006-10-05 Thread MonkeeSage
hanumizzle wrote: > Why a subset? I don't think JSON is a subset of YAML. Regards, Jordan -- http://mail.python.org/mailman/listinfo/python-list

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 5 Oct 2006 22:25:58 -0700, Paddy <[EMAIL PROTECTED]> wrote: > You might try picking the data with a different pickle formatter that > your Java can use. Maybe an XML pickler > (http://www.gnosis.cx/download/Gnosis_Utils.More/Gnosis_Utils-1.2.1.ANNOUNCE > untested by me). > You might also use a

Re: was python implemented as a object oriented langage at the beginning ?

2006-10-05 Thread hanumizzle
On 10/4/06, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > has wrote: > > Python's type/class > > distinction > > Which "type/class" distinction ? I think he means pre 2.2. (?) -- http://mail.python.org/mailman/listinfo/python-list

Re: help on pickle tool

2006-10-05 Thread Paddy
virg wrote: > Hi, > i have client-server application which is written in python using > XMLRPC protocol. The existing client is a command line. Now client > application we are converting it as Web UI using java. I have seen some > problems in writing a java client. At the server for each reque

Re: A Universe Set

2006-10-05 Thread hanumizzle
On 10/4/06, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: > Jorgen Grahn wrote: > > - the wildcard object, which compares equal to everything else > > - infinite xrange()s > > - the black hole function 'def f(*args): pass' > > - the identity function 'def f(x): return x' > > Any use cases for th

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 5 Oct 2006 21:52:56 -0700, virg <[EMAIL PROTECTED]> wrote: > Hi, > i have client-server application which is written in python using > XMLRPC protocol. The existing client is a command line. Now client > application we are converting it as Web UI using java. I have seen some > problems in w

Re: [Linux] Detect a key press

2006-10-05 Thread hanumizzle
On 5 Oct 2006 21:45:47 -0700, Jia,Lu <[EMAIL PROTECTED]> wrote: > Hi all > I write a program to detect key press,but , why there is a *space* > before the character I typed.?? Puzzles me too, but I know this is really easy in Curses (on top of that, it isn't specific to Linux; curses works on ma

Re: printing variables

2006-10-05 Thread MonkeeSage
[EMAIL PROTECTED] wrote: > Thanks all for the answers. Yup, i think i will use dicts/tuples/lists > instead... Even though you should be using some kind of container, you can still do what you origianlly asked for with relative ease...you just have to use the evil eval function (gasp!): for i in

help on pickle tool

2006-10-05 Thread virg
Hi, i have client-server application which is written in python using XMLRPC protocol. The existing client is a command line. Now client application we are converting it as Web UI using java. I have seen some problems in writing a java client. At the server for each request from client, the se

Re: dictionary of list from a file

2006-10-05 Thread hanumizzle
On 4 Oct 2006 06:09:21 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi guys, > this is my first post. my "programming" background is perlish scripting > and now I am learning python. I need to create a dictionary of list > from a file. Normally in perl I use to do like: You may wish to co

[Linux] Detect a key press

2006-10-05 Thread Jia,Lu
Hi all I write a program to detect key press,but , why there is a *space* before the character I typed.?? #!/usr/bin/env python import sys import tty import termios i = sys.stdin.fileno() o = sys.stdout.fileno() backup = termios.tcgetattr(i) def loop(): while 1: ch =

Re: CGI Tutorial

2006-10-05 Thread hanumizzle
On 5 Oct 2006 14:56:54 -0700, Jim <[EMAIL PROTECTED]> wrote: > * You need a DEBUG variable: > from defaults import DEBUG > : > if DEBUG: >.. WADR, there is a more formal way to do this: http://docs.python.org/ref/assert.html Use -O to remove the assert statements, essentiall

Re: How do I put % in a format sting?

2006-10-05 Thread hanumizzle
On 10/5/06, Gregory Piñero <[EMAIL PROTECTED]> wrote: > Thanks guys, putting it twice is all it took! This rule holds true for a lot of string formatting conventions. (such as in regexes) -- Theerasak -- http://mail.python.org/mailman/listinfo/python-list

Re: Google breaks Usenet (was Re: How can I correct an error in an old post?)

2006-10-05 Thread Blair P. Houghton
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Blair P. Houghton <[EMAIL PROTECTED]> wrote: > > > >But they do about 10 things totally wrong with Google groups that > >I'd've fixed in my spare time in my first week if they'd hired me back > >when I was interviewing with them. > > Only ten? I'm g

Google breaks Usenet (was Re: How can I correct an error in an old post?)

2006-10-05 Thread Aahz
In article <[EMAIL PROTECTED]>, Blair P. Houghton <[EMAIL PROTECTED]> wrote: > >But they do about 10 things totally wrong with Google groups that >I'd've fixed in my spare time in my first week if they'd hired me back >when I was interviewing with them. Only ten? -- Aahz ([EMAIL PROTECTED])

Re: Access to static members from inside a method decorator?

2006-10-05 Thread glen . coates . bigworld
Thanks for all the help guys ... in almost every way using a metaclass seems to be the right solution for what I'm trying to do here. I say almost because there is one thing that is still confusing me: what is the most elegant way to provide base-class implementations of methods that are expected

Re: user modules

2006-10-05 Thread Cameron Walsh
Juho Schultz wrote: > Juho Schultz wrote: >> Cameron Walsh wrote: >>> Hi, >>> >>> I'm writing a python program to analyse and export volumetric data. To >>> make development and extension easier, and to make it more useful to the >>> public when it is released (LGPL), I would like to enable users

Re: printing variables

2006-10-05 Thread s99999999s2003
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > say i have variables like these > > > > var1 = "blah" > > var2 = "blahblah" > > var3 = "blahblahblah" > > var4 = "" > > var5 = "...".. > > > > bcos all the variable names start with "var", is there a way to > > conveniently print

Re: printing variables

2006-10-05 Thread Dan Bishop
On Oct 5, 9:47 pm, [EMAIL PROTECTED] wrote: > hi > say i have variables like these > > var1 = "blah" > var2 = "blahblah" > var3 = "blahblahblah" > var4 = "" > var5 = "...".. > > bcos all the variable names start with "var", is there a way to > conveniently print those variables out... > eg prin

Re: user modules

2006-10-05 Thread Cameron Walsh
Tuomas wrote: > Cameron Walsh wrote: >> Hi, >> >> I'm writing a python program to analyse and export volumetric data. >> To make development and extension easier, and to make it more useful >> to the public when it is released (LGPL), I would like to enable users >> to place their own python fi

Re: printing variables

2006-10-05 Thread Gary Herron
[EMAIL PROTECTED] wrote: > hi > say i have variables like these > > var1 = "blah" > var2 = "blahblah" > var3 = "blahblahblah" > var4 = "" > var5 = "...".. > > bcos all the variable names start with "var", is there a way to > conveniently print those variables out... > eg print var* ?? > i don't

Re: printing variables

2006-10-05 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > say i have variables like these > > var1 = "blah" > var2 = "blahblah" > var3 = "blahblahblah" > var4 = "" > var5 = "...".. > > bcos all the variable names start with "var", is there a way to > conveniently print those variables out... do you often (or alwa

Re: printing variables

2006-10-05 Thread John Machin
[EMAIL PROTECTED] wrote: > hi > say i have variables like these > > var1 = "blah" > var2 = "blahblah" > var3 = "blahblahblah" > var4 = "" > var5 = "...".. > > bcos all the variable names start with "var", is there a way to > conveniently print those variables out... > eg print var* ?? > i don'

Re: printing variables

2006-10-05 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > say i have variables like these > > var1 = "blah" > var2 = "blahblah" > var3 = "blahblahblah" > var4 = "" > var5 = "...".. > > bcos all the variable names start with "var", is there a way to > conveniently print those variables out... do you often (or always) trea

Re: Restoring override of urllib.URLopener.open_https

2006-10-05 Thread Jean-Paul Calderone
On Fri, 6 Oct 2006 02:22:23 GMT, Bakker A <[EMAIL PROTECTED]> wrote: >In article <[EMAIL PROTECTED]>, >goyatlah wrote: >> >>I think that you need a superclass above the M2Crypto one, and change >>the open_https method back to the urllibs one. >> > >I'm not sure I get your suggestion. What the M2C

printing variables

2006-10-05 Thread s99999999s2003
hi say i have variables like these var1 = "blah" var2 = "blahblah" var3 = "blahblahblah" var4 = "" var5 = "...".. bcos all the variable names start with "var", is there a way to conveniently print those variables out... eg print var* ?? i don't want to do : print var1, var2, var3, var4 .

Re: building strings from variables

2006-10-05 Thread Neil Cerutti
On 2006-10-06, MonkeeSage <[EMAIL PROTECTED]> wrote: > wesley chun wrote: >> from the performance standpoint, i believe that #4 (list join) >> from scott is the fastest. #1 (string formatting) is next >> preferred only because #3 (string concat) is the worst [think >> "realloc()"]. #2 is useful fo

Re: What value should be passed to make a function use the default argument value?

2006-10-05 Thread Fredrik Lundh
Ben Finney wrote: > Perhaps you meant something other than "if the documentation doesn't > explicitly say that something is a keyword argument, it isn't", then. I'm sure it's perfectly possibly to use your foot as a door stop, but does that really mean that it is one? -- http://mail.python.o

Re: Restoring override of urllib.URLopener.open_https

2006-10-05 Thread Bakker A
In article <[EMAIL PROTECTED]>, goyatlah wrote: > >I think that you need a superclass above the M2Crypto one, and change >the open_https method back to the urllibs one. > I'm not sure I get your suggestion. What the M2Crypto module does is: import m2urllib in its __init__.py, which bl

Re: Metaprogramming question

2006-10-05 Thread MonkeeSage
Steve Menard wrote: > So my question is, how to replicate new.instance() functionality with new > classes? class A(object): def __init__(self): print "Class A" A() A.__new__(A) # <- this one Regards, Jordan -- http://mail.python.org/mailman/listinfo/python-list

Re: building strings from variables

2006-10-05 Thread MonkeeSage
Ps. For readability you can also roll your own sprintf function: def format(s, *args, **kwargs): if args: return s % args elif kwargs: return s % kwargs else: return s s = 'I like %s and %s.' print format(s, 'ham', 'cheese') s = 'I like %(b)s and %(c)s.' print format(s, b='butt

Re: HOST - Assembla Inc. Breakout - Copyright Violation by Mr. Andy Singleton

2006-10-05 Thread Ilias Lazaridis
Ben Finney wrote: > "Ilias Lazaridis" <[EMAIL PROTECTED]> writes: > > > I admit it is difficult to detect that this post is in-topic. > > But it is. > > Really, it's not. If you want a voice, you already have your > website. Mailing lists and other discussion forums have conventions > about "topic"

Metaprogramming question

2006-10-05 Thread Steve Menard
I have a need to create class instance without invokking the class' __init__ method. Were I using old-style classes, I'd use new.instance() function. However, I am using new-style classes and new.instance() complain "TypeError: instance() argument 1 must be classobj, not type" ... So my quest

Re: building strings from variables

2006-10-05 Thread MonkeeSage
wesley chun wrote: > from the performance standpoint, i believe that #4 (list join) from > scott is the fastest. #1 (string formatting) is next preferred only > because #3 (string concat) is the worst [think "realloc()"]. #2 is > useful for when you have users who aren't as comfortable with #1. I

Re: Question about turning off garbage collection

2006-10-05 Thread David Hirschfield
Thanks for the great response! I'm positive there's something extremely funky going on underneath that's causing the problem when cyclic garbage collection is turned on. Unfortunately I haven't got access to the code for the module that appears to be causing the trouble. It really appears to

Re: Question about turning off garbage collection

2006-10-05 Thread Tim Peters
[David Hirschfield] > Question from a post to pygtk list...but it probably would be better > answered here: > > I encountered a nasty problem with an external module conflicting with > my python threads recently, and right now the only fix appears to be to > turn off garbage collection while the cr

Question about turning off garbage collection

2006-10-05 Thread David Hirschfield
Question from a post to pygtk list...but it probably would be better answered here: I encountered a nasty problem with an external module conflicting with my python threads recently, and right now the only fix appears to be to turn off garbage collection while the critical code of the thread is

Re: Oracle database export

2006-10-05 Thread Waldemar Osuch
On Oct 5, 9:05 am, Tor Erik Soenvisen <[EMAIL PROTECTED]> wrote: > Hi, > > I need to export an Oracle database to a DDL-formated file. On the Web, I > found a Python script that did exactly this for a MS Access database, but > not one for Oracle databases. > > Does anyone know of such a tool or P

Re: How can I correct an error in an old post?

2006-10-05 Thread Blair P. Houghton
Tim Roberts wrote: > Although it might be mirrored on a web site somewhere, this is a Usenet > newsgroup. It is impossible to "close" a thread. The concept simply does > not exist. Google, the new de facto website of record for Usenet, disagrees. But they do about 10 things totally wrong with

Re: MIMEMultipart() and CRLF vs RFC 2046

2006-10-05 Thread Gabriel Genellina
At Thursday 5/10/2006 18:52, alf wrote: according to rfc2046, line breaks in MIME are CRLF. However python just uses LF like in the following example: The comments inside generator.py say CRLF everywhere, but the code simply uses print >>f You should file a bug report at http://sourceforge.n

Re: How do I read Excel file in Python?

2006-10-05 Thread John Machin
[EMAIL PROTECTED] wrote: > > > >>> excel_date = 38938.0 > > > >>> python_date = datetime.date(1900, 1, 1) + > > > >>> datetime.timedelta(days=excel_date) > > > >>> python_date > > > datetime.date(2006, 8, 11) > > > > Err, that's the wrong answer, isn't it? Perhaps it shoud be > > datetime.date(190

ctypes and setjmp

2006-10-05 Thread Richard Jones
Currently ctypes can't play well with any C code that requires use of setjmp as part of its API. libpng is one of those libraries. Can anyone think of a reasonable solution to this? Perhaps ctypes might be patched to offer setjmp support in foreign function definitions? Richard -- http://

profiling memory usage

2006-10-05 Thread Eddie
Hi, I am looking for a method to profile memory usage in my python program. The program provides web service and therefore is intended to run for a long time. However, the memory usage tends to increase all the time, until in a day or two the system cannot handle it any more and starts to do const

Re: building strings from variables

2006-10-05 Thread wesley chun
> Following a discussion with an associate at work about various ways to build strings from variables in python, I'd like to hear your opinions and preferred methods. from the performance standpoint, i believe that #4 (list join) from scott is the fastest. #1 (string formatting) is next preferred

Re: How do I put % in a format sting?

2006-10-05 Thread wesley chun
as fredrik and others have mentioned, '%%' in a format string gives you the single '%' in the string as desired. however, in your specific application (database), it's best to avoid using Python's string formatting unless that is the default provided by your database adapter for the reasons that c

Re: HOST - Assembla Inc. Breakout - Copyright Violation by Mr. Andy Singleton

2006-10-05 Thread Ben Finney
"Ilias Lazaridis" <[EMAIL PROTECTED]> writes: > I admit it is difficult to detect that this post is in-topic. > But it is. Really, it's not. If you want a voice, you already have your website. Mailing lists and other discussion forums have conventions about "topic" for a good reason. > http://ca

Re: Graph Theory

2006-10-05 Thread James Stroud
[EMAIL PROTECTED] wrote: > Is there any library in Python which has implementation of graph > theoretic algorithms and models ? > I don't know much about graph theory, but a coworker who does a lot of it mentioned something about boost: http://www.boost.org/libs/graph/doc/python.html

Re: HOST - Assembla Inc. Breakout - Copyright Violation by Mr. Andy Singleton

2006-10-05 Thread Erik Max Francis
Ilias Lazaridis wrote: > please relax and do not speak for all current and future readers > (archives). He may not be speaking for all of them, but he's speaking for the vast majority. You are a consummate pest. -- Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/ San Jos

Re: Python to use a non open source bug tracker?

2006-10-05 Thread Ian Bicking
Paul Boddie wrote: > Perhaps, although I imagine that Trac would have a lot more uptake if > it handled more than just Subversion repositories. It handles some other kinds of repositories now (bzr, I think?). From what I understand fully abstracting out the repository format seems to still be a w

Re: HOST - Assembla Inc. Breakout - Copyright Violation by Mr. Andy Singleton

2006-10-05 Thread Ilias Lazaridis
Paul McGuire wrote: > "Ilias Lazaridis" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > here whatsoever> > > WHAT IS THIS CRAP DOING ON THIS NEWSGROUP???!!! IT IS UNWANTED AND > UNWELCOME!!! > > If you want to make some sort of public notice of your aggrievement with > Assembl

Re: Strange sorting error message

2006-10-05 Thread Dustan
Neil Cerutti wrote: > On 2006-10-05, Dustan <[EMAIL PROTECTED]> wrote: > > > > Steve Holden wrote: > >> Dustan wrote: > >> > I'm hiding some of the details here, because I don't want to > >> > say what I'm actually doing. > >> > [...] > >> > >> I have the answer to your problem but I don't actuall

MIMEMultipart() and CRLF vs RFC 2046

2006-10-05 Thread alf
Hi, according to rfc2046, line breaks in MIME are CRLF. However python just uses LF like in the following example: from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText msg = MIMEMultipart() msg['Subject'] = 'Our family reunion' msg['From'] = '[EMAIL PROTECTED]' msg

Re: Strange sorting error message

2006-10-05 Thread Neil Cerutti
On 2006-10-05, Dustan <[EMAIL PROTECTED]> wrote: > > Steve Holden wrote: >> Dustan wrote: >> > I'm hiding some of the details here, because I don't want to >> > say what I'm actually doing. >> > [...] >> >> I have the answer to your problem but I don't actually want to >> tell you what it is. > > T

Re: PATCH: Speed up direct string concatenation by 20+%!

2006-10-05 Thread Larry Hastings
Nicko wrote: > I note that in both of those tests you didn't actually ever realise the > concatenated string. Can you give us figures for these tests having > forced the concatenated string to be computed? Sure, good call. And bad news. All these benchmarks were with functions taking N argument

Re: Graph Theory

2006-10-05 Thread boggom
[EMAIL PROTECTED] wrote: > Thanks for your quick reply. Since I have not read the documentation, I > was wondering if you can generate random graph and analyze some > peroperties of it like clustering coefficient or graph density. I am a > graph theory student and want to use python for developmen

Re: What value should be passed to make a function use the default argument value?

2006-10-05 Thread Ben Finney
Fredrik Lundh <[EMAIL PROTECTED]> writes: > Gabriel Genellina wrote: > > >> > the general rule is that if the documentation doesn't > >> > explicitly say that something is a keyword argument, it isn't, > >> > and shouldn't be treated as such. > > you guys need to look up the words "should" and "no

Re: tkinter newsgroup or mailing list

2006-10-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: >Franz Steinhaeusler wrote: >> Hello NG, >> >> I'm asking this, (although I know a mailing list on gmane >> gmane.comp.python.tkinter and there is so little traffic >> compared to the mailing list of wxPython also mirrored >>

Re: Strange sorting error message

2006-10-05 Thread Dustan
Steve Holden wrote: > Dustan wrote: > > I'm hiding some of the details here, because I don't want to say what > > I'm actually doing. > > [...] > > I have the answer to your problem but I don't actually want to tell you > what it is. That's great, seeing as I already figured out the answer, as I

Re: CGI Tutorial

2006-10-05 Thread Jim
Clodoaldo Pinto Neto wrote: > I'm just building a Python CGI Tutorial and would appreciate any > feedback from the many experts in this list. I'm not an expert, but I have written a lot of these and I have a couple of $0.02's. * All code you put in your writing needs to be correct. That is, on th

Re: Graph Theory

2006-10-05 Thread bearophileHUGS
[EMAIL PROTECTED]: >I was wondering if you can generate random graph and analyze some > peroperties of it like clustering coefficient or graph density. There are many kinds of random graphs, in that Graph lib I have added few random generators, but you can add many more yourself, it's easy (Then i

Re: HOST - Assembla Inc. Breakout - Copyright Violation by Mr. Andy Singleton

2006-10-05 Thread Paul McGuire
"Ilias Lazaridis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > . > -- http://lazaridis.com WHAT IS THIS CRAP DOING ON THIS NEWSGROUP???!!! IT IS UNWANTED AND UNWELCOME!!! If you want to make some sort of public notice of your aggrievement with Assembla, Breakout, Mr. Si

Re: weakSet

2006-10-05 Thread Gabriel Genellina
At Thursday 5/10/2006 13:53, [EMAIL PROTECTED] wrote: Has anyone ever think about a set wich references its elements weakly ? The *easy* solution would provide a WeakSet class with the following behavior: >>>s=set([a, b]) >>>ws=WeakSet([b,c]) >>>(ws&s).__class__() is WeakSet True >>>s&ws TypeErr

Re: Graph Theory

2006-10-05 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > Are there any visualization tool which would depict the random graph > generated by the libraries. Google for DOT (.DOT format w/ renders to a variety of output formats). -- --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-li

Re: How do I put % in a format sting?

2006-10-05 Thread Carsten Haese
On Thu, 2006-10-05 at 16:15, John Salerno wrote: > But I think SQL has other recommended methods. At least with SQLite, it > is recommended you not use Python's %s formatter but instead the "?" > formatter. While I wholeheartedly agree with the sentiment, calling the "?" a formatter only blurs t

Re: Request for recommendations: shared database without a server

2006-10-05 Thread EP
Larry Bates wrote: > So what is going to be holding the "network drive" if it isn't a server? > And what is MySQL running on? The network drives are on a filer (a NAS array, I believe). The filer will not execute any code, it just serves data by whatever protocols (example: CIFS, NFS) it is set

Re: HOST - Assembla Inc. Breakout - Copyright Violation by Mr. Andy Singleton

2006-10-05 Thread Ilias Lazaridis
[For some reason, the newsgroup server seems to not have distributed the messages yet. Thus posting via groups-google now. first message was from 2006-09-27, second message from 2006-09-28, both with a CC to Andy Singleton] Ilias Lazaridis wrote: > Ilias Lazaridis wrote: >> CC to : Andy Singl

Re: Request for recommendations: shared database without a server

2006-10-05 Thread Larry Bates
EP wrote: > I need to build a fairly simple application that will reside on remote > storage, not on a server, and I am looking for any best practices and > approaches that have worked for others. I believe py2exe may be part > of the solution. Here's what I need to build: > > -- A database app

Re: Request for recommendations: shared database without a server

2006-10-05 Thread Diez B. Roggisch
Tim Chase schrieb: >> Access might really be the best solution. It is pretty good >> for what it is supposed to do, and the quick prototyping and >> UI-designing are strong arguments for it, especially if there >> already is a bias towards it. >> >> I also _think_ that the whole "db on a shared vol

Re: How do I put % in a format sting?

2006-10-05 Thread Gregory Piñero
Thanks guys, putting it twice is all it took! -- http://mail.python.org/mailman/listinfo/python-list

Re: Graph Theory

2006-10-05 Thread diffuser78
Thanks for your quick reply. Since I have not read the documentation, I was wondering if you can generate random graph and analyze some peroperties of it like clustering coefficient or graph density. I am a graph theory student and want to use python for development. Somebody told me that Python ha

Re: Request for recommendations: shared database without a server

2006-10-05 Thread Tim Chase
> Access might really be the best solution. It is pretty good > for what it is supposed to do, and the quick prototyping and > UI-designing are strong arguments for it, especially if there > already is a bias towards it. > > I also _think_ that the whole "db on a shared volume" thing > works compa

Re: How do I put % in a format sting?

2006-10-05 Thread John Salerno
Gregory Piñero wrote: > How do I put % in a format sting? > > For example I want this to work: > sql_template="""SELECT ENTRY FROM LOOKUP WHERE FIELDNAME LIKE '%s%V'""" sql_template % 'userdef103' > Traceback (most recent call last): > File "", line 1, in ? > TypeError: not enough argu

Re: Graph Theory

2006-10-05 Thread bearophileHUGS
[EMAIL PROTECTED]: > Is there any library in Python which has implementation of graph > theoretic algorithms and models ? There are many of them, like: https://networkx.lanl.gov/ Mine: http://sourceforge.net/projects/pynetwork/ ...and some other. Bye, bearophile -- http://mail.python.org/mailma

Re: How do I put % in a format sting?

2006-10-05 Thread Fredrik Lundh
Gregory Piñero wrote: > How do I put % in a format sting? write it twice. -- http://mail.python.org/mailman/listinfo/python-list

How do I put % in a format sting?

2006-10-05 Thread Gregory Piñero
How do I put % in a format sting? For example I want this to work: >>> sql_template="""SELECT ENTRY FROM LOOKUP WHERE FIELDNAME LIKE '%s%V'""" >>> sql_template % 'userdef103' Traceback (most recent call last): File "", line 1, in ? TypeError: not enough arguments for format string -- Gregor

Re: Request for recommendations: shared database without a server

2006-10-05 Thread Diez B. Roggisch
> -- A database application on a network drive > -- A variety of users will access the database application at various > times > -- All computing is done on the client machines (Windows XP), as there > is no server > -- I'll not be able to install a database program, or Python, on the > client

Graph Theory

2006-10-05 Thread diffuser78
Is there any library in Python which has implementation of graph theoretic algorithms and models ? -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I read Excel file in Python?

2006-10-05 Thread houdinihound
> > >>> excel_date = 38938.0 > > >>> python_date = datetime.date(1900, 1, 1) + > > >>> datetime.timedelta(days=excel_date) > > >>> python_date > > datetime.date(2006, 8, 11) > > Err, that's the wrong answer, isn't it? Perhaps it shoud be > datetime.date(1900, 1, 29)? Actually was about to post sa

Request for recommendations: shared database without a server

2006-10-05 Thread EP
I need to build a fairly simple application that will reside on remote storage, not on a server, and I am looking for any best practices and approaches that have worked for others. I believe py2exe may be part of the solution. Here's what I need to build: -- A database application on a network

Re: user modules

2006-10-05 Thread Juho Schultz
Juho Schultz wrote: > Cameron Walsh wrote: > > Hi, > > > > I'm writing a python program to analyse and export volumetric data. To > > make development and extension easier, and to make it more useful to the > > public when it is released (LGPL), I would like to enable users to place > > their own

Re: How do I read Excel file in Python?

2006-10-05 Thread Simon Brunning
On 10/5/06, Simon Brunning <[EMAIL PROTECTED]> wrote: > On 5 Oct 2006 10:25:37 -0700, Matimus <[EMAIL PROTECTED]> wrote: > > > the date( 8/9/2006 ) in Excel file, i am getting the value as 38938.0, > > > which I get when I convert date values to general format in Excel. I > > > want the actual date

Re: user modules

2006-10-05 Thread Juho Schultz
Cameron Walsh kirjoitti: > Hi, > > I'm writing a python program to analyse and export volumetric data. To > make development and extension easier, and to make it more useful to the > public when it is released (LGPL), I would like to enable users to place > their own python files in a "user_exten

Re: Python to use a non open source bug tracker?

2006-10-05 Thread skip
Martin> The regular admin tasks likely include stuff like this: Martin> - the system is unavailable, bring it back to work Martin> This is really the worst case, and a short response time Martin> is the major factor in how users perceive the service Martin> - the system is

  1   2   3   >