Python Concurrency, Jan 14-15, Last Chance

2010-01-12 Thread David Beazley
Python Concurrency Workshop, v2.0 January 14-15, 2010 Chicago, Illinois http://www.dabeaz.com/chicago/concurrent.html *** Last chance to register. There are still a few slots available as well as a deeply

Re: xml.sax parsing elements with the same name

2010-01-12 Thread Stefan Behnel
amadain, 11.01.2010 20:13: I have an event log with 100s of thousands of entries with logs of the form: event eventTimestamp=2009-12-18T08:22:49.035 uniqueId=1261124569.35725_PFS_1_1340035961 result value=Blocked/ filters filter code=338 type=Filter_Name

Re: parsing an Excel formula with the re module

2010-01-12 Thread Chris Withers
John Machin wrote: The xlwt package (of which I am the maintainer) has a lexer and parser for a largish subset of the syntax ... see http://pypi.python.org/pypi/xlwt xlrd, no? Also worth pointing out that the topic of Python and Excel has its own web site: http://www.python-excel.org

Re: Append to an Excel file

2010-01-12 Thread Chris Withers
Niels L. Ellegaard wrote: pp parul.pande...@gmail.com writes: On Jan 9, 1:47 am, Jason Scheirer jason.schei...@gmail.com wrote: On Jan 9, 12:30 am, pp parul.pande...@gmail.com wrote: Hi All, How do I add a line to an existing file. This should append to the existing data in the excel file,

Re: unittest inconsistent

2010-01-12 Thread Chris Withers
Phlip wrote: The reason the 'Tester' object has no attribute 'arg1' is because self still refers to the object made for testA. I hope someone else can spot the low-level reason... ...but why aren't you using http://pypi.python.org/pypi/mock/ ? Look up its patch_object facility... Indeed, I

Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alf P. Steinbach
Argh! This was really annoying! Much time wasted (one naturally thinks that silly error must be one's own). But, anyway: Lines: 244 nitems = (chunk.chunksize - chunk.size_read) / self._sampwidth 464 self._nframes = initlength / (self._nchannels * self._sampwidth) Need to use Python 3.x

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Terry Reedy
On 1/12/2010 3:25 AM, Alf P. Steinbach wrote: Argh! This was really annoying! Much time wasted (one naturally thinks that silly error must be one's own). But, anyway: Lines: 244 nitems = (chunk.chunksize - chunk.size_read) / self._sampwidth 464 self._nframes = initlength / (self._nchannels *

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Chris Withers
Alf P. Steinbach wrote: PS: It would be nice if someone(TM) could describe here in detail how to properly report errors like this. http://tinyurl.com/yemcdy7 Of course I'm not going to do it if it involves establishing Yet Another Account somewhere. Of course that means no-one else

Re: Dynamic HTML controls

2010-01-12 Thread Pierre Quentel
On 12 jan, 04:26, Alan Harris-Reid aharrisr...@googlemail.com wrote: Hi, Does anyone know where I can find any decent dynamically-constructed HTML control classes (dropdown list, table, input field, checkbox, etc.) written in Python.  For example, for a HTML table I would like something

Re: Dynamic HTML controls

2010-01-12 Thread Diez B. Roggisch
Alan Harris-Reid schrieb: Hi, Does anyone know where I can find any decent dynamically-constructed HTML control classes (dropdown list, table, input field, checkbox, etc.) written in Python. For example, for a HTML table I would like something like... MyTable = html_table() #

Re: lightweight encryption of text file

2010-01-12 Thread Paul Rubin
John Bokma j...@castleamber.com writes: Why EVER make anything yourself when you can buy it? Do you make your own processors? Your own hard disk drives? Why not? Well, if you try to make your own processors or hard drives, worst normal outcome is they don't work and you try something else

Re: Fractional Hours from datetime?

2010-01-12 Thread Ben Finney
W. eWatson wolftra...@invalid.com writes: See my post about the datetime controversy about 3-4 posts up from yours. This forum is distributed, and there's no “up” or “3-4 messages” that is common for all readers. Could you give the Message-ID for that message? -- \ “As we enjoy great

Re: lightweight encryption of text file

2010-01-12 Thread John Bokma
Anthra Norell anthra.nor...@bluewin.ch writes: Why EVER make anything yourself when you can buy it? Do you make your own processors? Your own hard disk drives? Why not? -- John Bokma Read my blog: http://johnbokma.com/ Hire me (Perl/Python): http://castleamber.com/ --

Re: os.system function

2010-01-12 Thread Jeremy Sanders
Zabin wrote: Thanks for the pointersi had a look around and found the site: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en- us/xcopy.mspx?mfr=true to disable the prompt- i needed to include /y as below: os.system ('xcopy /s %s %s /y ' % (dirExe,

Re: Fractional Hours from datetime?

2010-01-12 Thread Steve Holden
Alf P. Steinbach wrote: * Steve Holden: Alf P. Steinbach wrote: * W. eWatson: Ben Finney wrote: W. eWatson wolftra...@invalid.com writes: See my post about the datetime controversy about 3-4 posts up from yours. This forum is distributed, and there's no “up” or “3-4 messages” that is

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Steve Holden
Alf P. Steinbach wrote: [...] PS: It would be nice if someone(TM) could describe here in detail how to properly report errors like this. Of course I'm not going to do it if it involves establishing Yet Another Account somewhere. But hopefully it doesn't? That's not very public-spirited, is

Re: Different number of matches from re.findall and re.split

2010-01-12 Thread Steve Holden
Jeremy wrote: Hello all, I am using re.split to separate some text into logical structures. The trouble is that re.split doesn't find everything while re.findall does; i.e.: found = re.findall('^ 1', line, re.MULTILINE) len(found) 6439 tables = re.split('^ 1', line, re.MULTILINE)

Re: problem with multiprocessing and defaultdict

2010-01-12 Thread wiso
Robert Kern wrote: On 2010-01-11 17:50 PM, wiso wrote: The problem now is this: start reading file r1_200909.log start reading file r1_200910.log readen 488832 lines from file r1_200910.log readen 517247 lines from file r1_200909.log with huge file (the real case) the program freeze. Is

Re: Different number of matches from re.findall and re.split

2010-01-12 Thread Steve Holden
Steve Holden wrote: [...] Can someone explain why these two commands are giving different results? I thought I should have the same number of matches (or maybe different by 1, but not 6000!) re.MULTLINE is apprently 1, and you are providing it as the maxsplit argument. Check the API in the

Re: Web Site Inquiry: Session variable passed in other script

2010-01-12 Thread Steve Holden
webmas...@holdenweb.com wrote: The following message was received via the web site. From: rahul sharma Email: [see headers] Subject:Session variable passed in other script Telephone: - hello sir i have

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alf P. Steinbach
* Steve Holden: Alf P. Steinbach wrote: [...] PS: It would be nice if someone(TM) could describe here in detail how to properly report errors like this. Of course I'm not going to do it if it involves establishing Yet Another Account somewhere. But hopefully it doesn't? That's not very

decode(..., errors='ignore') has no effect

2010-01-12 Thread Jens Müller
Hi, I try to decode a string,e.g. u'M\xfcnchen, pronounced [\u02c8m\u028fn\xe7\u0259n]'.decode('cp1252', 'ignore') but even thoug I use errors='ignore' I get UnicodeEncodeError: 'charmap' codec can't encode character u'\u02c8' in position 21: character maps to undefined How come? Thanks,

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alf P. Steinbach
* Alf P. Steinbach: * Steve Holden: Alf P. Steinbach wrote: [...] PS: It would be nice if someone(TM) could describe here in detail how to properly report errors like this. Of course I'm not going to do it if it involves establishing Yet Another Account somewhere. But hopefully it doesn't?

Re: lightweight encryption of text file

2010-01-12 Thread Anthra Norell
Robert Kern wrote: On 2010-01-11 14:09 PM, Anthra Norell wrote: Robert Kern wrote: On 2010-01-09 03:52 AM, Anthra Norell wrote: Don't use a random generator for encryption purposes! warns the manual, of which fact I was reminded in no uncertain terms on this forum a few years ago when I

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Stefan Behnel
Alf P. Steinbach, 12.01.2010 12:51: Well how f*g darn patient do they expect me to be? I've decided: I'm not. Oh sh**, just as I typed the period above the mail finally arrived. It's been, let's see, about 20+ minutes! And still some miles to go. Somebody should say THANK YOU for all

Re: decode(..., errors='ignore') has no effect

2010-01-12 Thread Peter Otten
Jens Müller wrote: I try to decode a string,e.g. u'M\xfcnchen, pronounced [\u02c8m\u028fn\xe7\u0259n]'.decode('cp1252', 'ignore') but even thoug I use errors='ignore' I get UnicodeEncodeError: 'charmap' codec can't encode character u'\u02c8' in position 21: character maps to undefined

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alf P. Steinbach
* Stefan Behnel: Alf P. Steinbach, 12.01.2010 12:51: Well how f*g darn patient do they expect me to be? I've decided: I'm not. Oh sh**, just as I typed the period above the mail finally arrived. It's been, let's see, about 20+ minutes! And still some miles to go. Somebody should say

Re: decode(..., errors='ignore') has no effect

2010-01-12 Thread Ulrich Eckhardt
Jens Müller wrote: I try to decode a string,e.g. u'M\xfcnchen, pronounced [\u02c8m\u028fn\xe7\u0259n]'.decode('cp1252', 'ignore') but even thoug I use errors='ignore' I get UnicodeEncodeError: 'charmap' codec can't encode character u'\u02c8' in position 21: character maps to undefined How

Re: problem with multiprocessing and defaultdict

2010-01-12 Thread Wolodja Wentland
On Tue, Jan 12, 2010 at 11:48 +0100, wiso wrote: They sent back the object filled with data. The problem is very simple: I have a container, the container has a method read(file_name) that read a huge file and fill the container with datas. I have more then 1 file to read so I want to

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Stefan Behnel
Alf P. Steinbach, 12.01.2010 13:10: * Stefan Behnel: Maybe you should just stop using the module. Writing the code yourself is certainly going to be faster than reporting that bug, don't you think? It's part of the standard Python distribution. Don't you think bugs in the standard library

Re: decode(..., errors='ignore') has no effect

2010-01-12 Thread Jens Müller
To convert unicode into str you have to *encode()* it. udecode(...) will implicitly convert to ASCII first, i. e. is equivalent to uencode(ascii).decode(...) Hence the error message Ah - yes of course. And how can you use the system's default encoding with errors=ignore? The default

Re: parsing an Excel formula with the re module

2010-01-12 Thread John Machin
On 12/01/2010 6:26 PM, Chris Withers wrote: John Machin wrote: The xlwt package (of which I am the maintainer) has a lexer and parser for a largish subset of the syntax ... see http://pypi.python.org/pypi/xlwt xlrd, no? A facility in xlrd to decompile Excel formula bytecode into a text

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Steven D'Aprano
On Tue, 12 Jan 2010 12:51:06 +0100, Alf P. Steinbach wrote: Oh sh**, just as I typed the period above the mail finally arrived. It's been, let's see, about 20+ minutes! Aren't you a little old to be suffering from the every decreasing attention spans of the MTV generation? Email is not

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alf P. Steinbach
* Stefan Behnel: Alf P. Steinbach, 12.01.2010 13:10: * Stefan Behnel: Maybe you should just stop using the module. Writing the code yourself is certainly going to be faster than reporting that bug, don't you think? It's part of the standard Python distribution. Don't you think bugs in the

Re: Dynamic HTML controls

2010-01-12 Thread Alan Harris-Reid
alex23 wrote: On Jan 12, 1:26 pm, Alan Harris-Reid aharrisr...@googlemail.com wrote: Does anyone know where I can find any decent dynamically-constructed HTML control classes (dropdown list, table, input field, checkbox, etc.) written in Python. There's pyWeb[1], which seems pretty

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Daniel Fetchinson
PS: It would be nice if someone(TM) could describe here in detail how to properly report errors like this. Of course I'm not going to do it if it involves establishing Yet Another Account somewhere. But hopefully it doesn't? That's not very public-spirited, is it? Python is open source,

Re: decode(..., errors='ignore') has no effect

2010-01-12 Thread Lie Ryan
On 01/12/10 23:50, Jens Müller wrote: To convert unicode into str you have to *encode()* it. udecode(...) will implicitly convert to ASCII first, i. e. is equivalent to uencode(ascii).decode(...) Hence the error message Ah - yes of course. And how can you use the system's

Re: Fractional Hours from datetime?

2010-01-12 Thread Martin P. Hellwig
W. eWatson wrote: cut now = datetime.datetime.now() fractional_hour = now.hour + now.minute / 60.0 See my post about the datetime controversy about 3-4 posts up from yours. If timezones might be a problem area, than it might be worth while to see it in the context of the actual

Is python not good enough?

2010-01-12 Thread ikuta liu
I'm a little confused. Is python not good enough? for google, enhance python performance is the good way better then choose build Go language? Go language try to merge low level, hight level and browser language. Those I'd like to see it on python.. --

Re: Is python not good enough?

2010-01-12 Thread Stefan Behnel
ikuta liu, 12.01.2010 16:09: I'm a little confused. Is python not good enough? for google, enhance python performance is the good way better then choose build Go language? Go language try to merge low level, hight level and browser language. Those I'd like to see it on python.. I think

Re: Is python not good enough?

2010-01-12 Thread Krister Svanlund
Every language has it uses and Google obviously thought that it would take more resources to get Python to the level they need it than to start using Go. Python is great for alot of things but it's not perfect for anything. On Tue, Jan 12, 2010 at 4:09 PM, ikuta liu ikut...@gmail.com wrote: I'm

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread André
On Jan 12, 9:33 am, Alf P. Steinbach al...@start.no wrote: Well, this is for my Python (actually, beginning programmer) writings, at    http://tinyurl.com/programmingbookP3 Thanks for writing this book. I just had a quick look at the beginning of it where you write: === As of this writing

Re: decode(..., errors='ignore') has no effect

2010-01-12 Thread Peter Otten
Lie Ryan wrote: On 01/12/10 23:50, Jens Müller wrote: To convert unicode into str you have to *encode()* it. udecode(...) will implicitly convert to ASCII first, i. e. is equivalent to uencode(ascii).decode(...) Hence the error message Ah - yes of course. And how can you

Re: lightweight encryption of text file

2010-01-12 Thread Robert Kern
On 2010-01-12 05:59 AM, Anthra Norell wrote: Robert Kern wrote: On 2010-01-11 14:09 PM, Anthra Norell wrote: Robert Kern wrote: On 2010-01-09 03:52 AM, Anthra Norell wrote: Upon which another critic conjured up the horror vision of gigahertzes hacking my pathetic little effort to pieces as

BaseHTTPServer get_request not called till first request

2010-01-12 Thread Adam Tauno Williams
Looking at http://code.activestate.com/recipes/425210/ and http://code.activestate.com/recipes/499376/ as examples I've attempted to create a BaseHTTPServer class that times-out accept() ever X seconds to check some other work. This seems to work well, but only once the HTTPServer object has

Re: lightweight encryption of text file

2010-01-12 Thread Steve Holden
Robert Kern wrote: On 2010-01-12 05:59 AM, Anthra Norell wrote: [ping, pong, ping, pong] If the OP uses a real encryption algorithm, he can rely on the fact that he can use the algorithm for large files or for plaintexts that a malicious agent might choose even if he did not communicate (or

Re: os.system function

2010-01-12 Thread r0g
Zabin wrote: Hey everyone! I am a new python programmer. I am trying to get the general file functionality with options of save and save as working. These save functions save a folder with multiple files. Upon using the os.system copy function- if my destination directory has files with

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Steve Holden
Alf P. Steinbach wrote: * Alf P. Steinbach: * Steve Holden: Alf P. Steinbach wrote: [...] PS: It would be nice if someone(TM) could describe here in detail how to properly report errors like this. Of course I'm not going to do it if it involves establishing Yet Another Account somewhere.

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Steve Holden
Alf P. Steinbach wrote: * Stefan Behnel: Alf P. Steinbach, 12.01.2010 12:51: Well how f*g darn patient do they expect me to be? I've decided: I'm not. Oh sh**, just as I typed the period above the mail finally arrived. It's been, let's see, about 20+ minutes! And still some miles to

Re: force URLencoding script

2010-01-12 Thread João
Someone please? -- http://mail.python.org/mailman/listinfo/python-list

Re: Is python not good enough?

2010-01-12 Thread Ethan Furman
[please don't top-post] Krister Svanlund wrote: On Tue, Jan 12, 2010 at 4:09 PM, ikuta liu ikut...@gmail.com wrote: I'm a little confused. Is python not good enough? for google, enhance python performance is the good way better then choose build Go language? Go language try to merge low

Re: Fractional Hours from datetime?

2010-01-12 Thread W. eWatson
Ben Finney wrote: Alf P. Steinbach al...@start.no writes: And considering this, and the fact that Google's archive is now the main Usenet archive, message id's are not that useful, really. You've demonstrated only that Google is an unreliable Usenet archive. One doesn't even need to use

Python 2.6.4 - Urllib2 - Windows XP - Reading streaming HTTP source kills network card ... (believe it or not)

2010-01-12 Thread Sandy Walsh
This is very odd. Hopefully someone can shed some insight. I've tried this with Python 2.5.2 and recently upgraded to 2.6.4 and see the same problem. I'm running on Windows XP sp3. I'm interfacing with an IP camera that streamed jpeg frames at 10fps over HTTP. The format of the stream is:

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Malte Dik
I totally second Alf in this regard. There were times you could report a bug by mail (to Debian e.g.) and it worked perfectly (for me, the reporter). Once I went into the maze of bug reporting software and I almost didn't find back to the problem I tried to fix while stumbling upon the

Re: force URLencoding script

2010-01-12 Thread r0g
João wrote: Someone please? Haven't seen your original post yet mate, usenet can be flaky like that, might have been a good idea to quote your original post! Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: force URLencoding script

2010-01-12 Thread João
On Jan 12, 8:05 pm, r0g aioe@technicalbloke.com wrote: João wrote: Someone please? Haven't seen your original post yet mate, usenet can be flaky like that, might have been a good idea to quote your original post! Roger. Thanks Roger. João wrote: Someone please? Hi. I'm trying

Re: Python 2.6.4 - Urllib2 - Windows XP - Reading streaming HTTP source kills network card ... (believe it or not)

2010-01-12 Thread Sandy Walsh
I've also run this under IronPython 2.6 and, while it takes longer (about 5 minutes), I get the same results. And this too takes down the NIC on the PC. It's gotta be something with my PC, so don't sweat it ... time for an upgrade I think. -S attachment: swalsh.vcf--

Re: Python 2.6.4 - Urllib2 - Windows XP - Reading streaming HTTP source kills network card ... (believe it or not)

2010-01-12 Thread MRAB
Sandy Walsh wrote: This is very odd. Hopefully someone can shed some insight. I've tried this with Python 2.5.2 and recently upgraded to 2.6.4 and see the same problem. I'm running on Windows XP sp3. I'm interfacing with an IP camera that streamed jpeg frames at 10fps over HTTP. The format

Re: Dynamic HTML controls

2010-01-12 Thread Michel Claveau - MVP
Hi! I had write PLUIE, for use DHTML as GUI: http://www.ponx.org/ponx/guie.htm But it is not a good answer to your problem. Sorry. Nevertheless, there are several functions methods for generate DHTML objects (and Python keep the control on each object. @+ -- Michel Claveau *** sorry

Re: force URLencoding script

2010-01-12 Thread r0g
João wrote: On Jan 12, 8:05 pm, r0g aioe@technicalbloke.com wrote: João wrote: Someone please? Haven't seen your original post yet mate, usenet can be flaky like that, might have been a good idea to quote your original post! Roger. Thanks Roger. João wrote: Someone please? Hi.

remove v1 tag using SOAPPy

2010-01-12 Thread Jennifer
I just wonder if there is anyway to remove v1 tag by using SOAPPy. ticketInfo = SOAPpy.structType() ticketInfo._addItem(ns1:mytag, stringType(test)) xsd:v1 ns1:mytagtest/ns1:mytag xsd:v1 How can I get rid of xsd:v1? Many Thanks. - Jennifer --

Re: Is python not good enough?

2010-01-12 Thread Terry Reedy
On 1/12/2010 10:17 AM, Krister Svanlund wrote: Every language has it uses and Google obviously thought that it would take more resources to get Python to the level they need it than to start using Go. 'Google' does not think. Go builds on previous works by the main developers. I doubt that

install exe in virtualenv --no-site-packages

2010-01-12 Thread Jim Pharis
How do I install an exe in a sandboxed virtualenv that's been setup with no site packages? The package I'm trying to install is pywin32. TIA, - Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: lightweight encryption of text file

2010-01-12 Thread Anthra Norell
Robert Kern wrote: On 2010-01-12 05:59 AM, Anthra Norell wrote: Robert Kern wrote: On 2010-01-11 14:09 PM, Anthra Norell wrote: Robert Kern wrote: On 2010-01-09 03:52 AM, Anthra Norell wrote: Upon which another critic conjured up the horror vision of gigahertzes hacking my pathetic little

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alf P. Steinbach
* André: On Jan 12, 9:33 am, Alf P. Steinbach al...@start.no wrote: Well, this is for my Python (actually, beginning programmer) writings, at http://tinyurl.com/programmingbookP3 Thanks for writing this book. I just had a quick look at the beginning of it where you write: === As of

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alf P. Steinbach
* Steve Holden: Alf P. Steinbach wrote: * Stefan Behnel: Alf P. Steinbach, 12.01.2010 12:51: Well how f*g darn patient do they expect me to be? I've decided: I'm not. Oh sh**, just as I typed the period above the mail finally arrived. It's been, let's see, about 20+ minutes! And still

Re: interactive terminal in Ubuntu Linux : libreadline5-dev works only in Python 2.6 not 3.1

2010-01-12 Thread Lee Harr
And my original problem still there : fouled up keys in interactive terminal. When you first had this problem, was python3 installed from source, or was it from the Ubuntu repository? (ie, did you install using apt-get or synaptic or did you just start out building from source?) I have

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alf P. Steinbach
* Steve Holden: Alf P. Steinbach wrote: If you have any suggestions for improving things (and the same goes for any other readers) I will be happy to listen to them. I do agree that the bug tracker is a rather high hurdle for people to have to jump over just to offer feedback on software

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Steve Holden
Alf P. Steinbach wrote: * Steve Holden: [...] FYI there is already some feedback in the tracker. Yeah, someone who had the bright idea that maybe there isn't a bug, thinking instead that maybe a wrong name in *a comment* might be the culprit -- of all things! He was probably just

Re: more efficient?

2010-01-12 Thread Aahz
In article 4b3091b2$0$22916$e4fe5...@news.xs4all.nl, Irmen de Jong ir...@-nospam-xs4all.nl wrote: Personally I'm only using the join-style-concat if I know the number of strings is rather large, or unknown. Otherwise I stick with just the regular string concatenation or string formattting

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alf P. Steinbach
* Steve Holden: Alf P. Steinbach wrote: * Steve Holden: [...] FYI there is already some feedback in the tracker. Yeah, someone who had the bright idea that maybe there isn't a bug, thinking instead that maybe a wrong name in *a comment* might be the culprit -- of all things! He was

Re: Is python not good enough?

2010-01-12 Thread Aahz
In article 1b42700d-139a-4653-8669-d4ee2fc48...@r5g2000yqb.googlegroups.com, ikuta liu ikut...@gmail.com wrote: Is python not good enough? for google, enhance python performance is the good way better then choose build Go language? It is not at all clear that -- despite some comments to the

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Steve Holden
Alf P. Steinbach wrote: * Steve Holden: Alf P. Steinbach wrote: If you have any suggestions for improving things (and the same goes for any other readers) I will be happy to listen to them. I do agree that the bug tracker is a rather high hurdle for people to have to jump over just to offer

Python and Tkinter Programming by John Grayson

2010-01-12 Thread Ethan Furman
Greetings! I am hoping to acquire a book on Python and Tkinter, and found this one. However, it was published in 2000 for Python 1.52... Can somebody who has this book comment its continued relevance? Is it still useful for Python 2.5 and Tk 8.4? Is it *very* useful? Comments

Undo/Redo in PyQt

2010-01-12 Thread Zabin
Hey! I am trying to implement the undo and redo facility in pyqt. I have gone through some sites and was wondering whether iyou always need to create subclasses and their definitions for the undo/redo action. My program currently has a single window in which the user enters information which is

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alex Clifford
2010/1/13 Alf P. Steinbach al...@start.no Received: from mr1.start.no (unknown [195.159.73.42]) by mail6.start.no (Postfix) with ESMTP id 54EFE1534F8 for al...@start.no; Tue, 12 Jan 2010 12:56:05 +0100 (CET) Received: from psf.upfronthosting.co.za (bugs.python.org

Confusion about scan_code in modulefinder.py (in python 2.6)

2010-01-12 Thread Brock Pytlik
I've been working with the modulefinder.py code recently and I've come across a bit of code I'm not grasping. In the scan_code function, there are the following lines: if sys.version_info = (2, 5): scanner = self.scan_opcodes_25 else:

Re: Problem with Dynamically unloading a module

2010-01-12 Thread Aahz
In article 78388a7a-b148-499a-8894-34e55721e...@k19g2000pro.googlegroups.com, lordofcode ajay@gmail.com wrote: Thanks you all for your replies ,cleared quiet a few doubts about importing modules and namespace references . Currently am going with static importing of all modules. But it may

Re: Different number of matches from re.findall and re.split

2010-01-12 Thread Tim Chase
Steve Holden wrote: Steve Holden wrote: [...] Can someone explain why these two commands are giving different results? I thought I should have the same number of matches (or maybe different by 1, but not 6000!) re.MULTLINE is apprently 1, and you are providing it as the maxsplit argument.

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Terry Reedy
On 1/12/2010 6:31 PM, Alf P. Steinbach wrote: Perhaps change to CAPTCHA instead of mail confirmation. I disagree. The point of mail confirmation is not just to assure that a human is registering, but that we have a valid email for responses to be sent to. Many issues are filed with

Re: lightweight encryption of text file

2010-01-12 Thread Ethan Furman
Anthra Norell wrote: I consider the encryption unbreakable [...] (from previous thread) I am not a cryptographer. (from this thread) Then you shouldn't be making claims about your encryption algorithms. ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Steven D'Aprano
On Tue, 12 Jan 2010 23:47:31 +0100, Alf P. Steinbach wrote: PS: Next time it would have helped to include a URL to the issue. http://bugs.python.org/issue7681 FYI there is already some feedback in the tracker. Yeah, someone who had the bright idea that maybe there isn't a bug,

Re: interactive terminal in Ubuntu Linux : libreadline5-dev works only in Python 2.6 not 3.1

2010-01-12 Thread Dave WB3DWE
On Sun, 10 Jan 2010 22:08:20 -0800 (PST), casevh cas...@gmail.com wrote: On Jan 10, 8:16 pm, Dave WB3DWE wrote: On Sat, 9 Jan 2010 16:48:52 -0800 (PST), casevh cas...@gmail.com wrote: On Jan 9, 3:10 pm, pdlem...@earthlink.net wrote: On Sat, 9 Jan 2010 13:27:07 -0800 (PST), casevh

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Steven D'Aprano
On Tue, 12 Jan 2010 23:42:28 +0100, Alf P. Steinbach wrote: * André: On Jan 12, 9:33 am, Alf P. Steinbach al...@start.no wrote: Well, this is for my Python (actually, beginning programmer) writings, at http://tinyurl.com/programmingbookP3 Thanks for writing this book. I just had a

Re: creating tar file and streaming it over HTTP?

2010-01-12 Thread Gabriel Genellina
En Sat, 09 Jan 2010 10:19:00 -0300, pbienst peter.bienst...@gmail.com escribió: OK, thanks to the feedback from everyone I got the PUT from a client to the WSGI server working. I'm now trying to go the other way around: use a tar stream in one of the functions in the WSGI server in order to

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alf P. Steinbach
* Steven D'Aprano: On Tue, 12 Jan 2010 23:42:28 +0100, Alf P. Steinbach wrote: * André: On Jan 12, 9:33 am, Alf P. Steinbach al...@start.no wrote: Well, this is for my Python (actually, beginning programmer) writings, at http://tinyurl.com/programmingbookP3 Thanks for writing this

Re: interactive terminal in Ubuntu Linux : libreadline5-dev works only in Python 2.6 not 3.1

2010-01-12 Thread Dave WB3DWE
On Wed, 13 Jan 2010 03:29:05 +0430, Lee Harr miss...@hotmail.com wrote: When you first had this problem, was python3 installed from source, or was it from the Ubuntu repository? (ie, did you install using apt-get or synaptic or did you just start out building from source?) I have python 3 on

Re: Easy Q

2010-01-12 Thread Gabriel Genellina
En Sat, 09 Jan 2010 13:11:28 -0300, Victor Subervi victorsube...@gmail.com escribió: Hi; I have a string.join statement on a variable that comes from a cgi.FieldStorage().getlist. The variable may be a list or a single value. I need to treat it differently depending on which it is. How can

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alf P. Steinbach
* Steven D'Aprano: On Tue, 12 Jan 2010 23:47:31 +0100, Alf P. Steinbach wrote: PS: Next time it would have helped to include a URL to the issue. http://bugs.python.org/issue7681 FYI there is already some feedback in the tracker. Yeah, someone who had the bright idea that maybe there

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alf P. Steinbach
* Terry Reedy: On 1/12/2010 6:31 PM, Alf P. Steinbach wrote: Perhaps change to CAPTCHA instead of mail confirmation. I disagree. The point of mail confirmation is not just to assure that a human is registering, but that we have a valid email for responses to be sent to. Many issues are

A question about Python versions

2010-01-12 Thread Gib Bogle
I am learning Python, and using PyQt to develop a GUI that will be used to run a Fortran program on Windows, Linux and Mac OS X (I think Python is great, btw). Without thinking about it I downloaded and started working with a fairly recent Python version, 2.5.4. I've now become aware of the

Re: interactive terminal in Ubuntu Linux : libreadline5-dev works only in Python 2.6 not 3.1

2010-01-12 Thread casevh
On Jan 12, 9:03 pm, Dave WB3DWE wrote: On Sun, 10 Jan 2010 22:08:20 -0800 (PST), casevh cas...@gmail.com wrote: On Jan 10, 8:16 pm, Dave WB3DWE wrote: On Sat, 9 Jan 2010 16:48:52 -0800 (PST), casevh cas...@gmail.com wrote: On Jan 9, 3:10 pm, pdlem...@earthlink.net wrote: On Sat,

Re: A question about Python versions

2010-01-12 Thread Chris Rebert
On Tue, Jan 12, 2010 at 10:09 PM, Gib Bogle g.bo...@auckland.no.spam.ac.nz wrote: I am learning Python, and using PyQt to develop a GUI that will be used to run a Fortran program on Windows, Linux and Mac OS X (I think Python is great, btw). Without thinking about it I downloaded and started

Re: A question about Python versions

2010-01-12 Thread Sridhar Ratnakumar
On 1/12/2010 10:09 PM, Gib Bogle wrote: I am learning Python, and using PyQt to develop a GUI that will be used to run a Fortran program on Windows, Linux and Mac OS X (I think Python is great, btw). Without thinking about it I downloaded and started working with a fairly recent Python version,

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Stefan Behnel
Alf P. Steinbach, 13.01.2010 06:39: * Steven D'Aprano: On Tue, 12 Jan 2010 23:42:28 +0100, Alf P. Steinbach wrote: It is hopeless, especially for a newbie, to create correct Python 2.x+3.x compatible code, except totally trivial stuff of course. So you allege, but André points out that there

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Stefan Behnel
Alf P. Steinbach, 13.01.2010 06:55: * Steven D'Aprano: I think you need to chill out and stop treating a simple bug report as a personal slight on you. I'm sorry but you're again trying to make people believe something that you know is false, which is commonly called lying: it is not the

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Steven D'Aprano
On Wed, 13 Jan 2010 06:39:53 +0100, Alf P. Steinbach wrote: Then be a little critical and think about, what problems could it be that, in spite of that to you apparent simplicity, hinders the widespread adoption of Python 3.x? (1) Most Linux distributions still come standard with Python 2.5

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread Alf P. Steinbach
* Stefan Behnel: Alf P. Steinbach, 13.01.2010 06:39: * Steven D'Aprano: On Tue, 12 Jan 2010 23:42:28 +0100, Alf P. Steinbach wrote: It is hopeless, especially for a newbie, to create correct Python 2.x+3.x compatible code, except totally trivial stuff of course. So you allege, but André

Re: A question about Python versions

2010-01-12 Thread Terry Reedy
On 1/13/2010 1:09 AM, Gib Bogle wrote: I am learning Python, and using PyQt to develop a GUI that will be used to run a Fortran program on Windows, Linux and Mac OS X (I think Python is great, btw). Without thinking about it I downloaded and started working with a fairly recent Python version,

[issue7679] Warning building 2.7 on OS X 10.6 libintl.h Present But Cannot Be Compiled

2010-01-12 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Works for me. GNU gettext, which provides libintl, is not included in OS X 10.6. Chances are your build is being contaminated by packages installed via MacPorts or Fink or in /usr/local. If you do want to build with it, check config.log in your

  1   2   3   >