How can I use python for file processing

2007-08-26 Thread [EMAIL PROTECTED]
Hi, I am trying to use python for file processing. Suppose I have a file like this: I want to build a Hashmap between the line begin_QOS_statistics and end_QOS_statistics and for each line I want to put the first text as the key of the hash table and the second text as the value. Received RTCP

Re: Any python Module for generating DocBook?

2007-08-26 Thread Roman Yakovenko
On 8/25/07, Tommy Nordgren [EMAIL PROTECTED] wrote: Do anyone on this list know of a Python module for generating DocBook programlisting elements for programming language source code merked with special comments. I want to write a programming book, and want to mark significant lines in the

Re: How can I use python for file processing

2007-08-26 Thread Marc 'BlackJack' Rintsch
On Sun, 26 Aug 2007 06:05:11 +, [EMAIL PROTECTED] wrote: I am trying to use python for file processing. Suppose I have a file like this: I want to build a Hashmap between the line begin_QOS_statistics and end_QOS_statistics and for each line I want to put the first text as the key of the

Re: ActiveRecord for Python/MySQL

2007-08-26 Thread EuGeNe Van den Bulke
Devraj wrote: My application uses MySQL as a backend and am using the MySQL/Python bindings. Are there any libraries that provide a database abstraction layer like Activerecords for Python?' SQLObject SQLAclhemy DejaVu Storm Google for Python ORM you may find more! EuGeNe --

A online python decompiler

2007-08-26 Thread shi wu
depython [http://www.depython.net depython online service] could decompile python bytecodes. Depython online service supports Python versions from 2.4up to 2.5.You can freely test its function online. -- http://mail.python.org/mailman/listinfo/python-list

Re: ActiveRecord for Python/MySQL

2007-08-26 Thread Devraj
Thanks On Aug 26, 5:26 pm, EuGeNe Van den Bulke [EMAIL PROTECTED] wrote: Devraj wrote: My application uses MySQL as a backend and am using the MySQL/Python bindings. Are there any libraries that provide a database abstraction layer like Activerecords for Python?' SQLObject SQLAclhemy

Re: Making a file-like object for manipulating a large file

2007-08-26 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Sean Davis wrote: I have a VERY large file that I would like to load a line at a time, do some manipulations on it, and then make it available to as a file-like object for use as input to a database module (psycopg2) that wants a file-like object (with read and

Re: expat error, help to debug?

2007-08-26 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Andreas Lobinger wrote: Anyone any idea where the error is produced? Do you want to try adding an EndElementHandler as well, just to get more information on where the error might be happening? -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Regular Expresions to change .htm to .php in files

2007-08-26 Thread Mark
On Thu, 23 Aug 2007 12:27:10 -0700, Tobiah wrote: sed s/.htm/.php/g $each /tmp/$$ This line should be: sed s/\.htm$/.php/g $each /tmp/$$ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python error on Mac

2007-08-26 Thread Graham Dumpleton
On Aug 26, 12:58 pm, Clover [EMAIL PROTECTED] wrote: When trying to do some things on my Mac (starting Lyx, compiling Latex via TextMate) I get this error: python: execv: /Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python: No such file or directory

Re: Need a better understanding on how MRO works?

2007-08-26 Thread Steven W. Orr
On Saturday, Aug 25th 2007 at 22:14 -0700, quoth Alex Martelli: =Steven W. Orr [EMAIL PROTECTED] wrote: = * Also, I'd like to understand what the difference is between = nclass = new.classobj(name,(D1,),globals()) = vs. = def classfactory(): = class somename(object): =

Re: How can I use python for file processing

2007-08-26 Thread Ricardo Aráoz
Marc 'BlackJack' Rintsch wrote: On Sun, 26 Aug 2007 06:05:11 +, [EMAIL PROTECTED] wrote: I am trying to use python for file processing. Suppose I have a file like this: I want to build a Hashmap between the line begin_QOS_statistics and end_QOS_statistics and for each line I want to

wxpython on FreeBSD 6.2 broken

2007-08-26 Thread Michael S
Good day all, I was wondering if anyone was using the latest wxpython on FreeBSD 6. I just installed it yesterday as well as wxGlade. wxGlade doesn't function properly - it does not display any controls. I then tried some simple examples from the web and half of them don't work. Anyone aware of

Kinterbasdb needs new maintainer

2007-08-26 Thread DarkBlue
Sorry to interrupt the regular programming here . As has been reported on some websites the maintainer of kinterbasdb David Rushby has died last month after a diving accident. Kinterbasdb is the python wrapper around the Firebird database api and an excellent opensource project. The hope is ,

Re: Joining Big Files

2007-08-26 Thread vasudevram
On Aug 26, 6:48 am, Paul McGuire [EMAIL PROTECTED] wrote: On Aug 25, 8:15 pm, Paul McGuire [EMAIL PROTECTED] wrote: On Aug 25, 4:57 am, mosscliffe [EMAIL PROTECTED] wrote: I have 4 text files each approx 50mb. yawn 50mb? Really? Did you actually try this and find out it was a

my parser.py isn't imported

2007-08-26 Thread Torsten Bronger
Hallöchen! I have a module parser.py in the same directory as the main module. In the main module, I import parser. On Linux, this works as expected, however on Windows, it imports the stdlib parser module. sys.path[0] points to the directory of my parser.py in both cases. What went wrong here?

Re: Need a better understanding on how MRO works?

2007-08-26 Thread Alex Martelli
Steven W. Orr [EMAIL PROTECTED] wrote: ... =accepts whatever dictionary you give it (so you can, though shouldn't, =do strange things such as pass globals()...:-). In fact, I wanted to make a common routine that could be called from multiple modules. I have classes that need to be

Re: Need a better understanding on how MRO works?

2007-08-26 Thread Steven D'Aprano
On Sun, 26 Aug 2007 07:55:39 -0400, Steven W. Orr wrote: In fact, I wanted to make a common routine that could be called from multiple modules. I have classes that need to be created from those multiple modules. I did run into trouble when I created a common routine even though I passed

lisper learning python, ... could you please comment my first python program?

2007-08-26 Thread neptundancer
Hi, to extend my skills, I am learning python. I have written small program which computes math expression like 1+2*sin(y^10)/cos(x*y) and similar, so far only + - * / ^ sin con tan sqrt are supported. But my program is quite inextensible, I have to change the code to add new functions... Could

ANN: PyPE 2.8.6

2007-08-26 Thread Josiah Carlson
=== What is PyPE? === PyPE (Python Programmers' Editor) was written in order to offer a lightweight but powerful editor for those who think emacs is too much and idle is too little. Syntax highlighting is included out of the box, as is multiple open documents via tabs. Beyond the basic

Re: lisper learning python, ... could you please comment my first python program?

2007-08-26 Thread Steven D'Aprano
On Sun, 26 Aug 2007 15:56:08 +, neptundancer wrote: Hi, to extend my skills, I am learning python. I have written small program which computes math expression like 1+2*sin(y^10)/cos(x*y) and similar, so far only + - * / ^ sin con tan sqrt are supported. But my program is quite

New UI Toolkit

2007-08-26 Thread Gerdus van Zyl
Hi I am halfway to a first release of a new GUI library for python. It will be cross platform and follows the Swing philosophy of user experience and interface fidelity above but it doesn't look like windows! (aside: neither does office 2007 or windowsmediaplayer). The library is built on top of

Re: lisper learning python, ... could you please comment my first python program?

2007-08-26 Thread neptundancer
Thanks a lot for comments! I am going to fix the source according to your advices ;) Nep On Aug 26, 6:32 pm, Steven D'Aprano [EMAIL PROTECTED] THIScybersource.com.au wrote: On Sun, 26 Aug 2007 15:56:08 +, neptundancer wrote: Hi, to extend my skills, I am learning python. I have

Re: New UI Toolkit

2007-08-26 Thread Lawrence Oluyede
Gerdus van Zyl [EMAIL PROTECTED] wrote: Please reply and let your thoughts be known. Is there a need for a new GUI library for python? I think there's no real point in answering this question. You developed a new toolkit because, I'm guessing, you are not fully satisfied by the current ones. In

Re: lisper learning python, ... could you please comment my first python program?

2007-08-26 Thread Michele Simionato
On Aug 26, 5:56 pm, [EMAIL PROTECTED] wrote: Hi, to extend my skills, I am learning python. I have written small program which computes math expression like 1+2*sin(y^10)/cos(x*y) and similar, so far only + - * / ^ sin con tan sqrt are supported. But my program is quite inextensible, I have

Re: lisper learning python, ... could you please comment my first python program?

2007-08-26 Thread [EMAIL PROTECTED]
Michele Simionato wrote: On Aug 26, 5:56 pm, [EMAIL PROTECTED] wrote: Hi, to extend my skills, I am learning python. I have written small program which computes math expression like 1+2*sin(y^10)/cos(x*y) and similar, so far only + - * / ^ sin con tan sqrt are supported. But my

Re: lisper learning python, ... could you please comment my first python program?

2007-08-26 Thread neptundancer
On Aug 26, 7:40 pm, Michele Simionato [EMAIL PROTECTED] wrote: On Aug 26, 5:56 pm, [EMAIL PROTECTED] wrote: Hi, to extend my skills, I am learning python. I have written small program which computes math expression like 1+2*sin(y^10)/cos(x*y) and similar, so far only + - * / ^ sin con

Re: New UI Toolkit

2007-08-26 Thread tool69
Gerdus van Zyl a écrit : Seems very promising. But I'm afraid with the Swing-like interface, i.e : did you use the same widget positionning ? -- http://mail.python.org/mailman/listinfo/python-list

the del function

2007-08-26 Thread Lamonte Harris
import random constant_array = red = blue = grey = black = 0 r1 = r2 = r3 = r4 = 1 blu1 = blu2 = blu3 = blu4 = 2 g1 = g2 = g3 = g4 = 3 bla1 = bla2 = bla3 = bla4 = 4 single_players = [r1,r2,r3,r4,blu1,blu2,blu3,blu4,bla1,bla2,bla3,bla4,g1,g2,g3,g4] _red = [1,1,1,1] #print random.randint(0,10 #red

Re: Joining Big Files

2007-08-26 Thread mcl
On 26 Aug, 15:45, vasudevram [EMAIL PROTECTED] wrote: On Aug 26, 6:48 am, Paul McGuire [EMAIL PROTECTED] wrote: On Aug 25, 8:15 pm, Paul McGuire [EMAIL PROTECTED] wrote: On Aug 25, 4:57 am,mosscliffe[EMAIL PROTECTED] wrote: I have 4 text files each approx 50mb. yawn 50mb?

Re: New UI Toolkit

2007-08-26 Thread Gerdus van Zyl
But I'm afraid with the Swing-like interface, i.e : did you use the same widget positionning ? Not sure what you mean, but each parent widget is responsible for rendering and positioning the children. Can use layout managers, two currently absolute and simple flow. ( In the screenshot, the

pySerial in a daemon process

2007-08-26 Thread paul
I am writing a daemon process that reads data from the serial port / dev/ttyS0. I am using pyserial the method for setting up a daemon described in Chris' Python Page (http://homepage.hispeed.ch/py430/ python/) on an Ubuntu linux pc. Everything works great EXCEPT... in the daemon script, there

Re: Parser Generator?

2007-08-26 Thread Jason Evans
On Aug 24, 1:21 pm, Jack [EMAIL PROTECTED] wrote: Jason Evans [EMAIL PROTECTED] wrote in message http://www.canonware.com/Parsing/ Thanks Jason. Does Parsing.py support Unicode characters (especially CJK)? I'll take a look. Parsers typically deal with tokens rather than individual

Re: pySerial in a daemon process

2007-08-26 Thread Bjoern Schliessmann
paul wrote: If I put these back in and try to run the daemon, the script fails when I try to connect to the serial port, with this error: serial.serialutil.SerialException: Could not open port: [Errno 13] Permission denied: '/dev/ttyS0' Did you check the permissions on this file? Often you

Re: Debugging a curses application in python

2007-08-26 Thread [EMAIL PROTECTED]
Just to let anyone know who runs across this post, winpdb from (http:// www.digitalpeers.com/pythondebugger/) solved my issue. --Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: New UI Toolkit

2007-08-26 Thread Richard Jones
Gerdus van Zyl wrote: I am halfway to a first release of a new GUI library for python. It will be cross platform and follows the Swing philosophy of user experience and interface fidelity above but it doesn't look like windows! (aside: neither does office 2007 or windowsmediaplayer). The

Re: pySerial in a daemon process

2007-08-26 Thread paul
On Aug 26, 5:20 pm, Bjoern Schliessmann usenet- [EMAIL PROTECTED] wrote: paul wrote: If I put these back in and try to run the daemon, the script fails when I try to connect to the serial port, with this error: serial.serialutil.SerialException: Could not open port: [Errno 13] Permission

Re: my parser.py isn't imported

2007-08-26 Thread John Machin
On Aug 27, 1:36 am, Torsten Bronger [EMAIL PROTECTED] wrote: Hallöchen! I have a module parser.py in the same directory as the main module. In the main module, I import parser. On Linux, this works as expected, however on Windows, it imports the stdlib parser module. sys.path[0] points to

Re: my parser.py isn't imported

2007-08-26 Thread Torsten Bronger
Hallöchen! John Machin writes: On Aug 27, 1:36 am, Torsten Bronger [EMAIL PROTECTED] wrote: I have a module parser.py in the same directory as the main module. In the main module, I import parser. On Linux, this works as expected, however on Windows, it imports the stdlib parser module.

Re: YOU MUST KNOW THIS MAN

2007-08-26 Thread James Stroud
Would Muhammad, peace and blessings be upon him, want his followers to kill in his name? I know that other prophets would not. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parser Generator?

2007-08-26 Thread Jack
Good to know, thanks Paul. ! Paul McGuire [EMAIL PROTECTED] wrote in message Pyparsing was already mentioned once on this thread. Here is an application using pyparsing that parses Chinese characters to convert to English Python. http://pypi.python.org/pypi/zhpy/0.5 -- Paul --

SCF (Python Smar Card Framework)

2007-08-26 Thread hg
Dear all, I am releasing much of my work including SCF (Cross platform Smart Card library Tools) to the GPL license. If interested, go to http://www.SnakeCard.com/Source.html I am moving the doc to doxygen and cleaning up the code, so what you'll see there will change in the course of the

Re: SCF (Python Smar Card Framework)

2007-08-26 Thread Paul Rubin
hg [EMAIL PROTECTED] writes: I am releasing much of my work including SCF (Cross platform Smart Card library Tools) to the GPL license. If interested, go to http://www.SnakeCard.com/Source.html Wow, that is great. I haven't found any low cost programmable cards (no large quantity purchases

Re: Parser Generator?

2007-08-26 Thread Jack
Thanks Json. There seem to be a few options that I can pursue. Having a hard time chooing one now :) Jason Evans [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Aug 24, 1:21 pm, Jack [EMAIL PROTECTED] wrote: Jason Evans [EMAIL PROTECTED] wrote in message

Re: SCF (Python Smar Card Framework)

2007-08-26 Thread hg
Paul Rubin wrote: hg [EMAIL PROTECTED] writes: I am releasing much of my work including SCF (Cross platform Smart Card library Tools) to the GPL license. If interested, go to http://www.SnakeCard.com/Source.html Wow, that is great. I haven't found any low cost programmable cards (no

Re: ActiveRecord for Python/MySQL

2007-08-26 Thread Luis M . González
On Aug 26, 5:52 am, Devraj [EMAIL PROTECTED] wrote: Thanks On Aug 26, 5:26 pm, EuGeNe Van den Bulke [EMAIL PROTECTED] wrote: Devraj wrote: My application uses MySQL as a backend and am using the MySQL/Python bindings. Are there any libraries that provide a database abstraction

Re: Co-developers wanted: document markup language

2007-08-26 Thread bambam
virtually the only ones that feel the need to rub our nationality into I'd always assumed (I never spent much time) that Germans were another culture that had the habit of greeting groups on entrance. Australians, English, and most of North America just don't have that habit. Steve. Wildemar

RE: Using Regular Expresions to change .htm to .php in files

2007-08-26 Thread Ryan Ginstrom
On Behalf Of Mark This line should be: sed s/\.htm$/.php/g $each /tmp/$$ I think a more robust way to go about this would be: (1) Use os.walk to walk through the directory http://docs.python.org/lib/os-file-dir.html (2) Use Beautiful Soup to extract the internal links from each file

RE: Parser Generator?

2007-08-26 Thread Ryan Ginstrom
On Behalf Of Jason Evans Parsers typically deal with tokens rather than individual characters, so the scanner that creates the tokens is the main thing that Unicode matters to. I have written Unicode-aware scanners for use with Parsing-based parsers, with no problems. This is pretty

Re: beginner, idiomatic python

2007-08-26 Thread bambam
That looks good, and perhaps a difference operator would be too simple to be useful anyway. Steve. Mikael Olofsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] bambam wrote: In this case it doesn't matter - my lists don't contain duplicate elements this time - but I have

Re: beginner, idiomatic python

2007-08-26 Thread bambam
c = sorted(set(a)-set(b)) although for me :~( that is another step more obscure than c = list(set(a)-set(b)) c.sort() Bags don't seem to be built in to my copy of Python, and although I'm interested in why lists don't support the difference operation, I don't want to get away from standard

Re: beginner, idiomatic python

2007-08-26 Thread bambam
Ok, many environments are capable of cached evaluation of functions without variable parameters so range(5) is cached, but range(v) is re-evaluated every time. Is this defined behaviour? That is, is it defined what Python does for for i in f() I'm sure it must be, but I haven't seen

Re: make images with python

2007-08-26 Thread Steve Holden
Lawrence D'Oliveiro wrote: In message [EMAIL PROTECTED], Boris Borcic wrote: Lawrence Oluyede wrote: stefano [EMAIL PROTECTED] wrote: I need make some images using python but i'm lost :P http://www.pythonware.com/products/pil/ If you want to do antialiased drawings into images, you

Re: beginner, idiomatic python

2007-08-26 Thread Gabriel Genellina
En Sun, 26 Aug 2007 22:58:35 -0300, bambam [EMAIL PROTECTED] escribi�: Ok, many environments are capable of cached evaluation of functions without variable parameters so range(5) is cached, but range(v) is re-evaluated every time. Is this defined behaviour? The range builtin

Re: beginner, idiomatic python

2007-08-26 Thread Scott David Daniels
bambam wrote: That is, is it defined what Python does for for i in f() I'm sure it must be, but I haven't seen it yet. If I have a user defined function returning a range, is it defined that the range function is called on every loop? If I have a function returning a range taking a

Re: beginner, idiomatic python

2007-08-26 Thread bambam
Thank you, I have been through the tutorial several times, I guess I'm just not smart enough. Perhaps I have been led astray by what I read here? My code started like this: for i in range(self.parent.GetPageCount()): I was asked: Does page count change? i.e. is it necessary to retrieve it in

Re: beginner, idiomatic python

2007-08-26 Thread bambam
Thank you, I have been through the tutorial several times, I guess I'm just not smart enough. Python is quite different from the languages I am familiar with. My code sample started like this: for i in range(self.parent.GetPageCount()): I was asked: Does page count change? i.e. is it necessary

how setup a dll file as a module?

2007-08-26 Thread smalltalk
in arcgis , arcgisscripting is a dll file there is a script as following: import arcgisscripting gp = arcgisscripting.create() why can the script run? how can we setup a dll file as a module? -- http://mail.python.org/mailman/listinfo/python-list

Re: Parser Generator?

2007-08-26 Thread Paul McGuire
On Aug 26, 8:05 pm, Ryan Ginstrom [EMAIL PROTECTED] wrote: On Behalf Of Jason Evans Parsers typically deal with tokens rather than individual characters, so the scanner that creates the tokens is the main thing that Unicode matters to. I have written Unicode-aware scanners for use with

Re: beginner, idiomatic python

2007-08-26 Thread bambam
Is it safe to write A = [x for x in A if x in U] or is that undefined? I understand that the slice operation can be used to make a temporary copy, so I could write A=[x for x in A[:] if x in U] but I've just copied that without any understanding. Steve. bambam [EMAIL PROTECTED] wrote in

Re: Parser Generator?

2007-08-26 Thread Steven Bethard
Paul McGuire wrote: On Aug 26, 8:05 pm, Ryan Ginstrom [EMAIL PROTECTED] wrote: The only caveat being that since Chinese and Japanese scripts don't typically delimit words with spaces, I think you'd have to pass the text through a tokenizer (like ChaSen for Japanese) before using PyParsing.

Re: Error with Simplemapi.py

2007-08-26 Thread Gabriel Genellina
En Fri, 24 Aug 2007 04:03:05 -0300, Mick Duprez [EMAIL PROTECTED] escribi�: I have a small problem. I get an error I don't know how to resolve, any help would be much appreciated. I'm using Python25 on winXP pro and the script from the link above. Here's the error -

Re: beginner, idiomatic python

2007-08-26 Thread Alex Martelli
bambam [EMAIL PROTECTED] wrote: Is it safe to write A = [x for x in A if x in U] or is that undefined? I understand that the slice operation It's perfectly safe and well-defined, as the assignment rebinds the LHS name only AFTER the RHS list comprehension is done. Alex --

Re: beginner, idomatic python 2

2007-08-26 Thread bambam
Thank you. I didn't reply earlier because I was trying to get my head around what you wrote, which was strange and foreign to me. It seems to me that the dictionary object you suggested is a direct replacement for the function code, only more efficient because the case table is internalised with

Re: beginner, idiomatic python

2007-08-26 Thread Alex Martelli
bambam [EMAIL PROTECTED] wrote: ... Bags don't seem to be built in to my copy of Python, and A bag is a collections.defaultdict(int) [[you do have to import collections -- it's in the standard library, NOT built-in]]. Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: how to remove number

2007-08-26 Thread Gabriel Genellina
En Tue, 21 Aug 2007 06:18:26 -0300, susanti marsol [EMAIL PROTECTED] escribi�: how to remove all number in our's document? Can you be more specific? -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: beginner, idiomatic python

2007-08-26 Thread Paul Rubin
bambam [EMAIL PROTECTED] writes: Is it safe to write A = [x for x in A if x in U] or is that undefined? I understand that the slice operation can be used to make a temporary copy, so I could write A=[x for x in A[:] if x in U] but I've just copied that without any understanding. You get a

ANN: SCF released GPL

2007-08-26 Thread hg
Dear all, I am releasing much of my work including SCF (Cross platform Smart Card library Tools written in Python) to the GPL license. If interested, go to http://www.SnakeCard.com/Source.html I am moving the doc to doxygen and cleaning up the code, so what you'll see there will change in

ANN: SCF released to GPL

2007-08-26 Thread hg
Dear all, I am releasing much of my work including SCF (Cross platform Smart Card library Tools written in Python) to the GPL license. If interested, go to http://www.SnakeCard.com/Source.html I am moving the doc to doxygen and cleaning up the code, so what you'll see there will change in the

RE: Parser Generator?

2007-08-26 Thread Ryan Ginstrom
On Behalf Of Paul McGuire On Aug 26, 8:05 pm, Ryan Ginstrom [EMAIL PROTECTED] wrote: The only caveat being that since Chinese and Japanese scripts don't typically delimit words with spaces, I think you'd have to pass the text through a tokenizer (like ChaSen for Japanese) before

Re: wxpython thread exception crash

2007-08-26 Thread [david]
class RedirectText: def __init__(self,aWxTextCtrl): self.out=aWxTextCtrl def write(self,string): wx.CallAfter(self.out.WriteText,string) #CallAfter def flush(self): pass [david] [david] wrote: What am I doing wrong? I'm trying to capture

Re: ANN: SCF released GPL

2007-08-26 Thread Paul Rubin
hg [EMAIL PROTECTED] writes: I am looking for a free subversion server resource to put the code ... if you know of any. Does it have to be SVN? I think Savannah and Sourceforge both still use CVS. I'm not sure what Launchpad uses. I guess if necessary I could set up a subversion repo for you

Re: ANN: SCF released GPL

2007-08-26 Thread Alex Martelli
hg [EMAIL PROTECTED] wrote: ... I am looking for a free subversion server resource to put the code ... if you know of any. Check out code.google.com -- it has a hosting service for open source code, too, these days (and it IS subversion). Alex --

Re: ANN: SCF released GPL

2007-08-26 Thread hg
Paul Rubin wrote: hg [EMAIL PROTECTED] writes: I am looking for a free subversion server resource to put the code ... if you know of any. Does it have to be SVN? I think Savannah and Sourceforge both still use CVS. I'm not sure what Launchpad uses. I guess if necessary I could set up a

Re: ANN: SCF released to GPL

2007-08-26 Thread hg
hg wrote: Dear all, I am releasing much of my work including SCF (Cross platform Smart Card library Tools written in Python) to the GPL license. If interested, go to http://www.SnakeCard.com/Source.html I am moving the doc to doxygen and cleaning up the code, so what you'll see there

Re: ANN: SCF released GPL

2007-08-26 Thread hg
Alex Martelli wrote: hg [EMAIL PROTECTED] wrote: ... I am looking for a free subversion server resource to put the code ... if you know of any. Check out code.google.com -- it has a hosting service for open source code, too, these days (and it IS subversion). Alex Will look it up

Re: beginner, idiomatic python

2007-08-26 Thread bambam
Thank you. Steve. Alex Martelli [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] bambam [EMAIL PROTECTED] wrote: Is it safe to write A = [x for x in A if x in U] or is that undefined? I understand that the slice operation It's perfectly safe and well-defined, as the assignment

Re: beginner, idiomatic python

2007-08-26 Thread bambam
Thank you. I figured the set would probably be faster, but the lists are small, and I'm concerned that the code is going to look Byzantine if I keep swapping between lists, sets and dictionaries :~). At the moment there are no sets or dictionaries in the entire code base I am working with. I'm

[issue1739648] zipfile.testzip() using progressive file reads

2007-08-26 Thread Grzegorz Adam Hankiewicz
Grzegorz Adam Hankiewicz added the comment: Any progress report on this issue, please? _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1739648

[issue1760357] ZipFile.write fails with bad modification time

2007-08-26 Thread Grzegorz Adam Hankiewicz
Grzegorz Adam Hankiewicz added the comment: Any progress report on this issue, please? _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1760357

[issue1014] cgi: parse_qs and parse_qsl misbehave on empty strings

2007-08-26 Thread Senthil
Senthil added the comment: Can query strings be empty? I am unable to find an instance. -- nosy: +orsenthil __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1014 __ ___

[issue1027] uudecoding (uu.py) does not supprt base64, patch attached

2007-08-26 Thread Gregory Dudek
Changes by Gregory Dudek: -- components: Extension Modules severity: normal status: open title: uudecoding (uu.py) does not supprt base64, patch attached type: behavior versions: Python 2.4 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1027

[issue1027] uudecoding (uu.py) does not supprt base64, patch attached

2007-08-26 Thread Gregory Dudek
New submission from Gregory Dudek: The uu.py library for uuencoding and uudecoding does not support base64 encodins. The patch addached here adds base64 decoding, but does not add encoding support. -- nosy: +dudek __ Tracker [EMAIL PROTECTED]

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser
New submission from Kurt B. Kaiser: The control-spacebar binding is used in IDLE to force open the completions window. It's causing IDLE to exit with a utf8 decode error. Attached is a Tkinter cut-down exhibiting the problem and a patch. The cutdown runs ok on 2.6 but not on py3k because

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Heh, I see we have the same damn problem SF had: when a comment is edited, it doesn't re-wrap properly when submitted. You have to remove the returns manually after editing. __ Tracker [EMAIL PROTECTED]

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Nope, you have to make sure not to type too wide. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1028 __ ___ Python-bugs-list mailing list

[issue1030] py3k: Adapt _winreg.c to the new buffer API

2007-08-26 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc: -- components: Windows files: winreg.diff severity: normal status: open title: py3k: Adapt _winreg.c to the new buffer API type: compile error versions: Python 3.0 __ Tracker [EMAIL PROTECTED]

[issue1031] py3k: compilation with VC2005

2007-08-26 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc: This patch is necessary to compile inside the PCBuild8 directory -- components: Windows files: vc2005.diff messages: 55315 nosy: amaury.forgeotdarc severity: normal status: open title: py3k: compilation with VC2005 type: compile error versions:

[issue1031] py3k: compilation with VC2005

2007-08-26 Thread Neal Norwitz
Neal Norwitz added the comment: Thanks for the patch. I tried to apply this patch, but almost everything failed. Could you make sure to do a svn update and then generate the patch? The only part of the patch that applied cleanly was to rmpyc.py. That was checked in as: Committed revision

[issue1032] Improve the hackish runtime_library_dirs support for gcc

2007-08-26 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti: In distutils.unixccompiler, there is a hack to passing correctly the -R option to gcc (and a few other compilers). However, there is a small bug that causes gcc to not be detected correctly if the compiler name does not start with gcc (e.g.,

[issue1030] py3k: Adapt _winreg.c to the new buffer API

2007-08-26 Thread Neal Norwitz
New submission from Neal Norwitz: Thanks! I can't test this, but I applied the change. It makes sense to me. Committed revision 57528. -- assignee: - nnorwitz nosy: +nnorwitz resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED]

[issue1031] py3k: compilation with VC2005

2007-08-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Sorry, it's probably because I somehow converted the line endings. Attached a new version of the patch. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1031 __ vc2005-2.diff

[issue1032] Improve the hackish runtime_library_dirs support for gcc

2007-08-26 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1032 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1031] py3k: compilation with VC2005

2007-08-26 Thread Neal Norwitz
Neal Norwitz added the comment: Hmmm, the patch was out of date (I had already removed cPickle). However, I don't think that was the reason for everything failing. I manually applied the changes to the files and python version. Things should be pretty good now. I didn't add the libraries.

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1028 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Well, maybe someday Tk will send a multibyte unicode character. Update the patch. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1028 __Index: Modules/_tkinter.c

[issue1031] py3k: compilation with VC2005

2007-08-26 Thread Neal Norwitz
Neal Norwitz added the comment: I thought it might be line endings so I tried changing them, but that didn't help. I couldn't apply the new version of the patch either. I'm not sure if the problem is on your side or mine. :-( I missed some files from the original checkin. The new one

[issue1029] py3k: io.StringIO.getvalue() returns \r\n

2007-08-26 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: As far as I know, StringIO should not do any string transformations. From PEP-3116 New I/O, last paragraph of the section Text I/O: Another implementation, StringIO, creates a file-like TextIO implementation without an underlying Buffered I/O object.

[issue1029] py3k: io.StringIO.getvalue() returns \r\n

2007-08-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: As far as I know, StringIO should not do any string transformations. (Not sure if you agree with the patch or not) That's why the current behaviour is not correct: When I write('\n'), getvalue() currently returns '\r\n'.

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2007-08-26 Thread Neal Norwitz
Neal Norwitz added the comment: I can confirm the problem and that your patch fixes the problem. Go ahead and check it in. Thanks! -- assignee: nnorwitz - kbk nosy: +nnorwitz resolution: - accepted __ Tracker [EMAIL PROTECTED]

  1   2   >