Re: python equivalent to access reports

2005-02-11 Thread jean-michel
flupke [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] a lot of applications here a made with access. Tables, forms, reports and the like. Now i rather use Python to do this but i'm not sure how to proceed. I can use wxPython for a gui via wxGlade for rapid testing and

Re: goto, cls, wait commands

2005-02-11 Thread Dan Bishop
Harlin wrote: No goto needed. If this makes no sense (which it may not if all you've been exposed to is BASIC) it wouldn't be a bad idea to Google why you should never use a goto statement. GOTO isn't even needed in QBasic (except for ON ERROR GOTO). --

Re: goto, cls, wait commands

2005-02-11 Thread jean-michel
BOOGIEMAN [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] I've just finished reading Python turtorial for non-programmers and I haven't found there anything about some usefull commands I used in QBasic. First of all, what's Python command equivalent to QBasic's goto ?

Re: PyINI : Cross-Platform INI parser

2005-02-11 Thread Giovanni Bajo
SeSe wrote: hi, every one, I started a opensource project PyINI for corss-platform *.ini parsing at http://sourceforge.net/projects/pyini/ I have released a simple alpha version, which can read *.ini, with some extended features such as key=value1,value2,value3. I also made a c++ binding

Re: OT: Anyone want a GMail account?

2005-02-11 Thread Richie Hindle
[Chris] I've got 50 so if you want a GMail invite reply directly to me and I'll send our an invite. You can share your GMail invites here: http://isnoop.net/gmailomatic.php This page offers a place for people with Gmail invites and those who want them to come together with minimal effort

Re: PyINI : Cross-Platform INI parser

2005-02-11 Thread Dalius Dobravolskas
Hello, I started a opensource project PyINI for corss-platform *.ini parsing at http://sourceforge.net/projects/pyini/ How it is different from http://docs.python.org/lib/module-ConfigParser.html? Dalius -- http://mail.python.org/mailman/listinfo/python-list

Re: lambda and for that matter goto not forgetting sugar

2005-02-11 Thread Richie Hindle
[Christos] *Three* requests --check the thread goto, cls, wait commands. I saw that too, and was too freaked out to respond. BTW, my sincere congratulations for what I presume best computer related April's Fool joke of all time; I love double-bluffs. The worst of all is I've often

Re: sre is broken in SuSE 9.2

2005-02-11 Thread Denis S. Otkidach
On 10 Feb 2005 11:49:33 -0800 Serge Orlov [EMAIL PROTECTED] wrote: This thread is about problems only with LANG=C or LANG=POSIX, it's not about other locales. Other locales are working as expected. You are not right. I have LANG=de_DE.UTF-8, and the Python test_re.py doesn't pass. $LANG

Re: passing arguments like -JOB

2005-02-11 Thread John Leslie
Thanks...it worked perfectly. Brilliant!! JL Duncan Booth [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... John Leslie wrote: I am porting a script from Korn Shell to python and want to pass named parameters like -JOB 123456 -DIR mydir I can get it to work passing --JOB

Re: PyINI : Cross-Platform INI parser

2005-02-11 Thread Thomas Heller
Giovanni Bajo [EMAIL PROTECTED] writes: SeSe wrote: hi, every one, I started a opensource project PyINI for corss-platform *.ini parsing at http://sourceforge.net/projects/pyini/ I have released a simple alpha version, which can read *.ini, with some extended features such as

Python in Makefile Question

2005-02-11 Thread Efrat Regev
Hello, I'd like to ask a question concerning a python script in a makefile. Suppose I have a C++ project (sorry for raising this in a Python newsgroup), with some makefile for it. Before compiling the code, I'd like to check that there are no C++ convention violations (e.g., identifiers

Re: [N00B] What's %?

2005-02-11 Thread administrata
[EMAIL PROTECTED] (administrata) wrote in message news:[EMAIL PROTECTED]... Hi! it's been about a week learning python! I've read 'python programming for the absolute begginer' I don't understand about % like... 107 % 4 = 3 7 % 3 = 1 I'm confused with division :/ Please help me...

Re: [N00B] What's %?

2005-02-11 Thread Robert Kern
administrata wrote: sry, i don't know much about maths What is % used for? such as? Among many other things, you can use it to test whether one integer evenly divides another integer. For example, to test if a number is odd: def isodd(x): return bool(x % 2) -- Robert Kern [EMAIL PROTECTED]

Re: PyINI : Cross-Platform INI parser

2005-02-11 Thread Fuzzyman
Giovanni Bajo wrote: SeSe wrote: hi, every one, I started a opensource project PyINI for corss-platform *.ini parsing at http://sourceforge.net/projects/pyini/ I have released a simple alpha version, which can read *.ini, with some extended features such as

Re: pyFMOD writing a callback function in Python

2005-02-11 Thread Marian Aldenhövel
Hi, I was only able to find fmodapi374.zip (for windows), and that version doesn't seem to work with the pyFMOD release I found. I found that too. But I could easily fix pyFMOD to use the FMOD 374. A few of the exports have been renamed and parameters have been added to others. As the total size

Re: [perl-python] combinatorics fun

2005-02-11 Thread bruno modulix
YYUsenet wrote: Xah Lee wrote: (snip insanities) Why are you posting this to comp.lang.python? This obviously has nothing to do with python at all. If you are trying to teach people python, claiming that ...let's do a python version. I'll post my version later today. Isn't really the proper

Re: PyINI : Cross-Platform INI parser

2005-02-11 Thread Peter Maas
SeSe schrieb: I started a opensource project PyINI for corss-platform *.ini parsing at http://sourceforge.net/projects/pyini/ I have released a simple alpha version, which can read *.ini, with some extended features such as key=value1,value2,value3. I also made a c++ binding to PyINI with elmer

Re: namespaces module (a.k.a. bunch, struct, generic object, etc.) PEP

2005-02-11 Thread Nick Coghlan
BJörn Lindqvist wrote: I like it alot! My only minor complaint is that the name is to long. Also I *really wish* the Namespace could do this: r, g, b = col = Namespace(r = 4, g = 3, b = 12) But alas, I guess that's not doable within the scope of the Namespace PEP. You can almost spell that

Testing web applications

2005-02-11 Thread Achim Domma (Procoders)
Hi, I'm looking for frameworks to make testing web applications - i.e. parsing and filling out forms - easier. I found Puffin, which looks good but not very usable in the current state. I know that I once read about other nice frameworks, but could not find one via google. Any hints? regards,

Re: Python in Makefile Question

2005-02-11 Thread Dan Bishop
Efrat Regev wrote: Hello, I'd like to ask a question concerning a python script in a makefile. Suppose I have a C++ project (sorry for raising this in a Python newsgroup), with some makefile for it. Before compiling the code, I'd like to check that there are no C++ convention violations

Re: Python in Makefile Question

2005-02-11 Thread Daniel Dittmar
Efrat Regev wrote: 1. How can I get the python script to return a value to make, so that if it decides that there are convention violations make will fail? You can set the return code of your Python script through sys.exit (3) 2. How can I pass information from the makefile to the python script,

Re: lambda and for that matter goto not forgetting sugar

2005-02-11 Thread bearophileHUGS
Nick Coghlan wrote: Anyway, check out AlternateLambdaSyntax on the python.org Wiki It's an interesting page: http://www.python.org/moin/AlternateLambdaSyntax Some days ago I suggested something different: maybe def can become a function, then it can work as lambda (and still as the old def) too.

Re: namespaces module (a.k.a. bunch, struct, generic object, etc.) PEP

2005-02-11 Thread Michele Simionato
Jeremy Bowers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Thu, 10 Feb 2005 11:56:45 -0700, Steven Bethard wrote: In the empty classes as c structs? thread, we've been talking in some detail about my proposed generic objects PEP. Based on a number of suggestions, I'm

Re: convert list of tuples into several lists

2005-02-11 Thread Nick Coghlan
Peter Hansen wrote: Is there some unexpected limit to the number of arguments that may be passed with the *args format (say, 256 function arguments maximum are supported by Python), or is this concern just because of the raw memory inherently used by the tuple? In other words, if one is confident

Re: Python and version control

2005-02-11 Thread Simon Brunning
On Thu, 10 Feb 2005 23:03:43 +, Alan Kennedy [EMAIL PROTECTED] wrote: In my circles, VSS is most often referred to as Visual Source Unsafe. I always find it amusing that VSS's icon is a safe - with the door wide open. -- Cheers, Simon B, [EMAIL PROTECTED],

Multi-Platform installer generator

2005-02-11 Thread Nicodemus
Hello list, On windows my company uses Inno Setup to generate installers for our products, and on Linux we usually use a simple shell script, but we would like to use the same installer generator for both platforms. Searching google turned up some multi-platform installers (mostly in Java),

Re: Testing web applications

2005-02-11 Thread Josef Meile
Hi Achim, I'm looking for frameworks to make testing web applications - i.e. parsing and filling out forms - easier. I found Puffin, which looks good but not very usable in the current state. I know that I once read about other nice frameworks, but could not find one via google. Any hints? Zope

Re: Python in Makefile Question

2005-02-11 Thread Efrat Regev
Efrat Regev [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I'd like to ask a question concerning a python script in a makefile. ... Many thanks for the very useful (and very quick) answers! Efrat -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt documentation

2005-02-11 Thread Diez B. Roggisch
The docs of the Riverbank site is poor, and I have found separate tutorials on the net. I know that the Kompany have made a Qtdoc-like to PyQt. But it is not free doc. You can use the qt c++ doc from trolltech. The pyqt bindings are so close to the original that you usually can simply use

[NooB] Using Escape Sesquences with Strings...

2005-02-11 Thread administrata
Hello! :) I've reading 'Python Programmin for the Absolute beginner'. I got questions which is... print \t - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - rock = Igneous Sedimentary Metamorphic Lava Grains Marble Ramdom crystals Layer

Re: Unit Testing in Python

2005-02-11 Thread BJörn Lindqvist
put it) PyUnit project. I'm sorry if this is a obvious question or one that has already been answered, but unit-testing sounds interesting and I'm not sure where to start. Hi Ryan. I belive this (http://www.xp123.com/xplor/xp0201/index.shtml) is a good way to learn about unit testing by

Re: [NooB] Using Escape Sesquences with Strings...

2005-02-11 Thread Daniel Bickett
administrata wrote: print \trock Your problem lies in this line. The escape sequence \t is not a variable, so to speak. It is just that, an escape sequence, so it must be located inside of a string: print \t + rock -- Daniel Bickett dbickett at gmail.com http://heureusement.org/ --

Re: namespaces module (a.k.a. bunch, struct, generic object, etc.) PEP

2005-02-11 Thread Nick Coghlan
Steven Bethard wrote: In the empty classes as c structs? thread, we've been talking in some detail about my proposed generic objects PEP. Based on a number of suggestions, I'm thinking more and more that instead of a single collections type, I should be proposing a new namespaces module

Statement coverage tools revisited

2005-02-11 Thread Edvard Majakari
Yow, For most of you folks Gareth Rees' excellent python code coverage tool - /statement/ coverage tool to be more precise - is familiar, but there are probably many TDD-fans out there who are not yet aware of this wonderful program. I use the tool a lot, even though it is good to be aware of

Speed of IDLE output degrades to 'unusable' after upgrade to Python 2.4

2005-02-11 Thread Anthra Norell
Upgraded from 2.2.2 to 2.4 and all seems to work as before except the output to the IDLE window is now twenty times slower than it was before. The statement for i in range (100): print i now takes about forty-five seconds to complete! It used to be two seconds. Python 2.4 on Windows ME.

Re: namespaces module (a.k.a. bunch, struct, generic object, etc.) PEP

2005-02-11 Thread Nick Coghlan
Michele Simionato wrote: FWIW, you can count me about the people who (re)wrote this same thing (actually with some difference, since I wanted to keep the order, so I used nested lists instead of nested dictionaries, but the idea was similar). I would welcome some module in the standard library to

THREAD_STACK_SIZE and python performance?

2005-02-11 Thread Stein Morten Sandbech
Hi, I've been googling for any info on the (possible) effects on python and python applications with varying values on the THREAD_STACK_SIZE with respect to performance etc. The default 0x2 is way to low when running a Zope 2.7.4 and Plone 2.0.5 site. The FreeBSD patch, setting the value to

Re: Is this a bug? BOM decoded with UTF8

2005-02-11 Thread pekka niiranen
pekka niiranen wrote: I have two files my.utf8 and my.utf16 which both contain BOM and two a characters. Contents of my.utf8 in HEX: EFBBBF6161 Contents of my.utf16 in HEX: FEFF6161 This is not true: this byte string does not denote two a characters. Instead, it is a single character

Re: Big development in the GUI realm

2005-02-11 Thread Josef Dalcolmo
You can distribute GPL'ed code in binary form, you just have to make the sources available as well. And, yes I would use this as a test: if your program needs gpl-ed code for some of it's functionality, you have to licence your program according to the GPL - unless you distribute the GPL'ed

Re: Unit Testing in Python

2005-02-11 Thread Tom Willis
I've had great experience doing Test Driven Development. Ideally you would do it from the start, but it is great for refactoring as well. In any language. One of the pitfalls to look out for is to not get too hung up on it. In the end it's just a tool you use at your discretion. When I first

Re: a sequence question

2005-02-11 Thread Nick Coghlan
David Isaac wrote: Nick Coghlan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Using zip(*[iter(l)]*N) or zip(*(iter(l),)*N) simply extends the above to the general case. Clearly true. But can you please go into much more detail for a newbie? I see that [iter(l)]*N produces an N

Re: Is this a bug? BOM decoded with UTF8

2005-02-11 Thread Diez B. Roggisch
I know its easy (string.replace()) but why does UTF-16 do it on its own then? Is that according to Unicode standard or just Python convention? BOM is microsoft-proprietary crap. UTF-16 is defined in the unicode standard. -- Regards, Diez B. Roggisch --

Re: Python versus Perl ?

2005-02-11 Thread Mauro Cicognini
Alex Martelli wrote: URK -- _my_ feeling is that we have entirely *too many* options for stuff like web application frameworks, GUI toolkits, XML processing, ... Alex I entirely second that. More, I'd heartily welcome an authoritative word on which to focus on for each category... I hate

Re: Loading functions from a file during run-time

2005-02-11 Thread Nick Coghlan
Bryant Huang wrote: Hello! I would like to read in files, during run-time, which contain plain Python function definitions, and then call those functions by their string name. In other words, I'd like to read in arbitrary files with function definitions, using a typical 'open()' call, but then

Re: PyQt documentation

2005-02-11 Thread Tim Jarman
Eric Jardim wrote: Hi, Is there any site that gather all the documentation about PyQt? The docs of the Riverbank site is poor, and I have found separate tutorials on the net. Check out http://www.opendocs.org/pyqt/ I know that the Kompany have made a Qtdoc-like to PyQt. But it is not

Re: Testing web applications

2005-02-11 Thread news.sydney.pipenetworks.com
Achim Domma (Procoders) wrote: Hi, I'm looking for frameworks to make testing web applications - i.e. parsing and filling out forms - easier. I found Puffin, which looks good but not very usable in the current state. I know that I once read about other nice frameworks, but could not find one

Re: Statement coverage tools revisited

2005-02-11 Thread Nick Coghlan
Edvard Majakari wrote: , | The coverage dictionary is called c and the trace function | t. The reason for these short names is that Python looks up variables | by name at runtime and so execution time depends on the length of | variables! In the bottleneck of this application it's

Re: Big development in the GUI realm

2005-02-11 Thread Max M
Josef Dalcolmo wrote: You can distribute GPL'ed code in binary form, you just have to make the sources available as well. And, yes I would use this as a test: if your program needs gpl-ed code for some of it's functionality, you have to licence your program according to the GPL - unless you

Re: Is this a bug? BOM decoded with UTF8

2005-02-11 Thread Kent Johnson
Diez B. Roggisch wrote: I know its easy (string.replace()) but why does UTF-16 do it on its own then? Is that according to Unicode standard or just Python convention? BOM is microsoft-proprietary crap. Uh, no. BOM is part of the Unicode standard. The intent is to allow consumers of Unicode text

Re: PyINI : Cross-Platform INI parser

2005-02-11 Thread Nick Coghlan
Peter Maas wrote: I think that a new config utility is worth the effort if it has the potential to put an end to roll-your-own config formats and parsers. http://www.python.org/moin/ConfigParserShootout Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia

Re: Is this a bug? BOM decoded with UTF8

2005-02-11 Thread Brian Quinlan
Diez B. Roggisch wrote: I know its easy (string.replace()) but why does UTF-16 do it on its own then? Is that according to Unicode standard or just Python convention? BOM is microsoft-proprietary crap. UTF-16 is defined in the unicode standard. What are you talking about? The BOM and UTF-16 go

Re: Testing web applications

2005-02-11 Thread Achim Domma (Procoders)
news.sydney.pipenetworks.com wrote: I've used Jython and a java package called httpunit to great effect. It even supports javascript on your pages. Thanks, that is the option I'm currentyl testing. Works great so far! regards, Achim -- http://mail.python.org/mailman/listinfo/python-list

Re: Python versus Perl ?

2005-02-11 Thread rzed
Mauro Cicognini [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Alex Martelli wrote: URK -- _my_ feeling is that we have entirely *too many* options for stuff like web application frameworks, GUI toolkits, XML processing, ... Alex I entirely second that. More, I'd heartily

Re: Is this a bug? BOM decoded with UTF8

2005-02-11 Thread Diez B. Roggisch
What are you talking about? The BOM and UTF-16 go hand-and-hand. Without a Byte Order Mark, you can't unambiguosly determine whether big or little endian UTF-16 was used. If, for example, you came across a UTF-16 text file containing this hexidecimal data: 2200 what would you assume? That

Re: Python v.s. c++

2005-02-11 Thread bruno modulix
xiaobin yang wrote: Hi, if i am already skillful with c++. Is it useful to learn python? thanks! Q : If I'm already skillfull with driving a big truck, is it useful to learn driving a motorcycle? (tip : Have you ever tried driving a big truck in a big city at rush hour?-) -- bruno

Re: [NooB] Using Escape Sesquences with Strings...

2005-02-11 Thread bruno modulix
administrata wrote: Hello! :) I've reading 'Python Programmin for the Absolute beginner'. I got questions which is... print \t - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - rock = Igneous Sedimentary Metamorphic Lava Grains Marble Ramdom

Re: PyQt documentation

2005-02-11 Thread Eric Jardim
You can use the qt c++ doc from trolltech. The pyqt bindings are so close to he original that you usually can simply use that. Yes, I currently use it. Additionally, there is a book from boudewijn rempt about coding in python+qt which is for qt2, but it covers all the signal slot basics

Re: Testing web applications

2005-02-11 Thread Grig Gheorghiu
The Jython / HttpUnit combination worked well for me too. There's also maxq (http://maxq.tigris.org/), which looks promising, but I haven't used it yet. Grig http://agiletesting.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt documentation

2005-02-11 Thread Diez B. Roggisch
The point is that if someone is familiar just to Python and not Qt, or the reverse, familiar to Qt and not to Python, it is difficult to see the *little* details of implementation. I say this because I am familiar to Qt and not much to Python, and there are simple little mistake I do, that

Re: is there a safe marshaler?

2005-02-11 Thread cmkl
Irmen de Jong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Pierre Barbier de Reuille wrote: Irmen de Jong a écrit : Pickle and marshal are not safe. They can do harmful things if fed maliciously constructed data. That is a pity, because marshal is fast. I need a fast

Re: Is this a bug? BOM decoded with UTF8

2005-02-11 Thread Nick Coghlan
Diez B. Roggisch wrote: So they admit that it makes no sense - especially as decoding a utf-8 string given any 8-bit encoding like latin1 will succeed. So in the end, I stand corrected. But I still think its crap - But not MS crap. :) Oh, good. I'm not the only person who went A BOM in UTF-8 data?

Re: Python in Makefile Question. try A.A.P

2005-02-11 Thread Bart van Deenen
Another option would be to move from Makefiles to AAP, the build mechanism for vim. We did just that, and are very happy with it. Aap is python based, so the kind of question you have is very easily handled within the 'aap' file. http://www.a-a-p.org/ Aap has the advantage that you don't need to

Re: Install MySQLdb on Mac OS X (10.3)

2005-02-11 Thread TK
Skip Montanaro wrote: TK I can't install MySQLdb on Mac OS X (Ver. 10.3) properly. Here's my TK environment: TK 1. MySQL-python-1.0.0 ... Try a more recent version of mysql-python. I think 1.1.7 is the latest. Skip Hi Skip, Try a more recent version of mysql-python. I think

Re: Is this a bug? BOM decoded with UTF8

2005-02-11 Thread Brian Quinlan
Diez B. Roggisch wrote: I'm well aware of the need of a bom for fixed-size multibyte-characters like utf16. But I don't see the need for that on an utf-8 byte sequence, and I first encountered that in MS tool output - can't remember when and what exactly that was. And I have to confess that I

Injecting a C side object into the local dict

2005-02-11 Thread Jamie R. Parent
Hello, How do you go about taking a variable which was declared in C and pass that through to a Python script? I have tried doing this by adding a simple string which is a PyObject from C into the local dictionary and retrieving it from script via a locals()[myCvar] print statement. This however

Re: Install MySQLdb on Mac OS X (10.3)

2005-02-11 Thread Sion Arrowsmith
Skip Montanaro [EMAIL PROTECTED] wrote: Try a more recent version of mysql-python. I think 1.1.7 is the latest. 1.2.0 -- it appears to be moving extremely rapidly (especially given how long it was at 0.9.2 -- although Waiting for MySQL 4.1 to become stable would be a good explanation for that).

MDaemon Warning - virus found: Returned mail: Data format error

2005-02-11 Thread Mail Delivery Subsystem
*** WARNING ** Este mensaje ha sido analizado por MDaemon AntiVirus y ha encontrado un fichero anexo(s) infectado(s). Por favor revise el reporte de abajo. AttachmentVirus name Action taken

Re: THREAD_STACK_SIZE and python performance?

2005-02-11 Thread Courageous
The FreeBSD patch, setting the value to 0x10 seems to be enough for most of our zope servers,... Is that value in /bytes/? In modern solaris implementations of posix threads, the default stack size is 2 megabytes fo 64 bit machines. I can't fathom what your performance consideration would

Alternative to raw_input ?

2005-02-11 Thread BOOGIEMAN
I need something like Press any key to continue code for my program. Currently I use : raw_input(Press Enter to continue ) but it's lame. -- http://mail.python.org/mailman/listinfo/python-list

Re: Alternative to raw_input ?

2005-02-11 Thread Simon Brunning
On Fri, 11 Feb 2005 17:26:04 +0100, BOOGIEMAN [EMAIL PROTECTED] wrote: I need something like Press any key to continue code for my program. Currently I use : raw_input(Press Enter to continue ) but it's lame. Err, why? -- Cheers, Simon B, [EMAIL PROTECTED],

Re: Alternative to raw_input ?

2005-02-11 Thread BOOGIEMAN
On Fri, 11 Feb 2005 16:35:19 +, Simon Brunning wrote: Err, why? It looks to ugly this way. I want to press any key without ENTER to continue -- http://mail.python.org/mailman/listinfo/python-list

Postgres and SSL

2005-02-11 Thread Greg Lindstrom
I'm on a Linux box running python 2.3 and would like to connect to a postgres database via SSL, but have not been able to find a module to do this (or haven't figured out the syntax). Can anyone help me out? Thanks, --greg -- Greg Lindstrom 501 975.4859 Computer Programmer

Re: Big development in the GUI realm

2005-02-11 Thread Jeremy Bowers
On Fri, 11 Feb 2005 13:57:47 +0100, Josef Dalcolmo wrote: You can distribute GPL'ed code in binary form, you just have to make the sources available as well. And, yes I would use this as a test: if your program needs gpl-ed code for some of it's functionality, you have to licence your program

Re: Alternative to raw_input ?

2005-02-11 Thread Grant Edwards
On 2005-02-11, BOOGIEMAN [EMAIL PROTECTED] wrote: On Fri, 11 Feb 2005 16:35:19 +, Simon Brunning wrote: Err, why? It looks to ugly this way. I want to press any key without ENTER to continue Like somebody already said: use the WConio module. Somebody already posted a link. I

Re: namespaces module (a.k.a. bunch, struct, generic object, etc.) PEP

2005-02-11 Thread Jeremy Bowers
On Fri, 11 Feb 2005 22:23:58 +1000, Nick Coghlan wrote: This is one of the reasons why Steven's idea of switching to proposing a new module is a good one. It then provides a natural location for any future extensions of the idea such as Records (i.e. namespaces with a defined set of legal

Re: a sequence question

2005-02-11 Thread David Isaac
Alan Isaac wrote: I see that [iter(l)]*N produces an N element list with each element being the same iterator object, but after that http://www.python.org/doc/2.3.5/lib/built-in-funcs.html just didn't get me there. Nick Coghlan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

Re: Performance Issues of MySQL with Python

2005-02-11 Thread Andy Dustman
Well, it does more than that. It converts each column from a string (because MySQL returns all columns as strings) into the appropriate Python type. Then you were converting all the Python types back into strings. So it's no mystery that using the command line client is faster, since it would take

Re: namespaces module (a.k.a. bunch, struct, generic object, etc.) PEP

2005-02-11 Thread rzed
Jeremy Bowers [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On Fri, 11 Feb 2005 22:23:58 +1000, Nick Coghlan wrote: This is one of the reasons why Steven's idea of switching to proposing a new module is a good one. It then provides a natural location for any future extensions of the

Concurrent Python

2005-02-11 Thread Dominic Fox
I've created a few classes to support some concurrent programming concepts in Python: AsyncResult represents the state of a process currently running in a separate thread. MultiEvent allows listeners to wait for any one of a list of events to be signalled. MultiQueue allows listeners to wait for

Re: Is this a bug? BOM decoded with UTF8

2005-02-11 Thread Diez B. Roggisch
They say that it makes no sense as an byte-order indicator but they indicate that it can be used as a file signature. And I'm not sure what you mean about decoding a UTF-8 string given any 8-bit encoding. Of course the encoder must be know: That every utf-8 string can be decoded in any

Re: Alternative to raw_input ?

2005-02-11 Thread John Lenton
On Fri, Feb 11, 2005 at 05:37:19PM +0100, BOOGIEMAN wrote: On Fri, 11 Feb 2005 16:35:19 +, Simon Brunning wrote: Err, why? It looks to ugly this way. I want to press any key without ENTER to continue read the documentation on readline. Hmm! it says Availability: Unix. Any

Re: convert list of tuples into several lists

2005-02-11 Thread Steven Bethard
Pierre Quentel wrote: Could someone explain why this doesn't work : Python 2.3.2 (#49, Oct 2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. def f(*args,**kw): ... print args, kw ... f(*[1,2]) (1, 2) {} f(*[1,2],x=1)

Re: Alternative to raw_input ?

2005-02-11 Thread den
BOOGIEMAN wrote: On Fri, 11 Feb 2005 16:35:19 +, Simon Brunning wrote: Err, why? It looks to ugly this way. I want to press any key without ENTER to continue Did you try this: import msvcrt msvcrt.getch() -- http://mail.python.org/mailman/listinfo/python-list

Re: Big development in the GUI realm

2005-02-11 Thread Damjan
The problem with this is what I've called the patch hole in another context [1]. The problem with this definition is that I can *always* distribute GPL'ed parts separately and re-combine them arbitrarily upon execution, and it's not even particularly hard. Write your code with the GPL'ed code

Re: Efficient checksum calculating on lagre files

2005-02-11 Thread Nick Craig-Wood
Christos TZOTZIOY Georgiou [EMAIL PROTECTED] wrote: On 09 Feb 2005 10:31:22 GMT, rumours say that Nick Craig-Wood [EMAIL PROTECTED] might have written: But you won't be able to md5sum a file bigger than about 4 Gb if using a 32bit processor (like x86) will you? (I don't know how the kernel

Re: Postgres and SSL

2005-02-11 Thread Jorge Luiz Godoy Filho
Greg Lindstrom wrote: I'm on a Linux box running python 2.3 and would like to connect to a postgres database via SSL, but have not been able to find a module to do this (or haven't figured out the syntax). Can anyone help me out? With both psycopg and pypgsql it depends on how your libpq was

1998 CNRI license compatibility

2005-02-11 Thread John Reuning
I'm interested in updating the very old kerberos extension module. However, the code dates to 1998 and is licensed under what appears to be a pre-python-1.6 CNRI license. Does anyone have recommendations on whether additions and changes to the old code can be licensed under a newer OSI-approved

Re: is there a safe marshaler?

2005-02-11 Thread Irmen de Jong
cmkl wrote: but can't effbot's fast cElementree be used for PYROs XML_PICKLE and would it be safe and fast enough? ElementTree's not a marshaler. Or has it object (de)serialization included? --Irmen -- http://mail.python.org/mailman/listinfo/python-list

Partnership Opportunity

2005-02-11 Thread eliediamonds
Partnership Opportunity Hello, I am with a manufacturer of fine jewelry and am currently looking for those interested in forming a partnership to sell jewelry on eBay or anywhere else. I work for Elie International, a manufacturer of fine jewelry located in the heart of the diamond district in

Partnership Opportunity

2005-02-11 Thread eliediamonds
Partnership Opportunity Hello, I am with a manufacturer of fine jewelry and am currently looking for those interested in forming a partnership to sell jewelry on eBay or anywhere else. I work for Elie International, a manufacturer of fine jewelry located in the heart of the diamond district in

Re: is there a safe marshaler?

2005-02-11 Thread Skip Montanaro
Carl but can't effbot's fast cElementree be used for PYROs XML_PICKLE Carl and would it be safe and fast enough? It's not clear to me that if marshal is unsafe how XML could be safe. In this context they are both just serializations of basic Python data structures. Skip --

Re: Install MySQLdb on Mac OS X (10.3)

2005-02-11 Thread Skip Montanaro
Try a more recent version of mysql-python. I think 1.1.7 is the latest. TK It now works with MySQL-python-1.2.0 Andy's a busy guy... ;-) Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Alternative to raw_input ?

2005-02-11 Thread Skip Montanaro
Err, why? It looks to ugly this way. I want to press any key without ENTER to continue How about modifying it to raw_input(Press ENTER to continue ) Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Loading functions from a file during run-time

2005-02-11 Thread Bryant Huang
Ah, thanks a lot, Grant and Nick. Let me try to clarify because I think I was unclear in specifying what I want to do: 1. Read in a file containing a bunch of function definitions: def f1(x): ... def f2(x): ... def f3(x): ... def f4(x): ... 2. In wxPython, populate a

Re: ActivePython 2.3.5.236 and ActivePython 2.4.0.244 are available

2005-02-11 Thread Trent Mick
mep wrote: ActivePython-2.4.0-243-win32-ix86.msi : 29M ActivePython-2.4.0-244-win32-ix86.msi : 18M What make so much difference of the size of them, which distinct monir version number for 1 only. Any explaination? Yes, build 243 accidentally included some debug-build bits from the included

Re: mxCGIPython binaries for Python 2.3.5

2005-02-11 Thread Titus Brown
what does mxCGIPython do? I can't find anything at that Web site that doesn't involve downloading unpacking a file. thanks, --titus On Fri, Feb 11, 2005 at 06:44:57PM +0300, Oleg Broytmann wrote: - http://phd.pp.ru/Software/Python/misc/mxCGI/ - -mxCGIPython binaries for Python 2.1.3,

Re: Big development in the GUI realm

2005-02-11 Thread Jeremy Bowers
On Fri, 11 Feb 2005 18:24:22 +0100, Damjan wrote: What you described is not ok according to the GPL - since you distributed a binary thats derived from GPL software (and you didn't publish it source code under the GPL too). No you didn't. You distributed a binary completely free of any GPL

Re: is there a safe marshaler?

2005-02-11 Thread Aahz
In article [EMAIL PROTECTED], Skip Montanaro [EMAIL PROTECTED] wrote: Carl but can't effbot's fast cElementree be used for PYROs XML_PICKLE Carl and would it be safe and fast enough? It's not clear to me that if marshal is unsafe how XML could be safe. In this context they are both

problem with tk and pass by refference (I think :)

2005-02-11 Thread Matthew Thorley
Greetings, Maybe someone out there can lend me an eye? I've been stumped, banging my head against the wall trying to figure out why my script doesn't work. I've tried every thing I could think of, even unecessarily complicated mumbo-jumbo. Let me show you a snippet and then I'll explain what's

Re: mxCGIPython binaries for Python 2.3.5

2005-02-11 Thread Oleg Broytmann
On Fri, Feb 11, 2005 at 10:13:21AM -0800, Titus Brown wrote: what does mxCGIPython do? I can't find anything at that Web site that http://www.egenix.com/files/python/mxCGIPython.html doesn't involve downloading unpacking a file. It is unpackable, ready-to-run python binary. PS. I am

  1   2   >