Re: Script to extract text from PDF files

2015-11-06 Thread Scott Werner
On Tuesday, September 25, 2007 at 1:41:56 PM UTC-4, brad wrote: > I have a very crude Python script that extracts text from some (and I > emphasize some) PDF documents. On many PDF docs, I cannot extract text, > but this is because I'm doing something wrong. The PDF spec is large and > complex a

Re: Python Scalability TCP Server + Background Game

2014-01-21 Thread Philip Werner
> Looking a lot more normal and readable now. Thanks! > > Note that some people have experienced odd issues with Pan, possibly > relating to having multiple instances running simultaneously. You may > want to take care not to let it open up a duplicate copy of itself. > > ChrisA Thanks for the h

Re: Python Scalability TCP Server + Background Game

2014-01-19 Thread Philip Werner
On Sat, 18 Jan 2014 13:19:24 +, Mark Lawrence wrote: > On 18/01/2014 12:40, phi...@gmail.com wrote: > > [snip the stuff I can't help with] > > Here's the link you need to sort the problem with double spacing from > google groups https://wiki.python.org/moin/GoogleGroupsPython Thanks for the

Re: JUST GOT HACKED

2013-10-04 Thread Wayne Werner
On Wednesday, October 2, 2013 5:43:32 AM UTC-5, Ferrous Cranus wrote: > > I only re-ask the same thing if: > > > 1. Di not understood what was provided or proposed to me as being a solution > > 2. Still feel that that the solution provided to me doesn't meet my > needs and should have been re

Re: JUST GOT HACKED

2013-10-04 Thread Wayne Werner
On Tuesday, October 1, 2013 5:06:38 PM UTC-5, Ben Finney wrote: > This is an unmoderated forum, so we have occasional spates of persistent > > nuisances, and those who respond with the maturity level and impulse > > control of an average six-year-old. Hey! That's so degrading! I don't know many

Re: better and user friendly IDE recommended?

2013-09-12 Thread Wayne Werner
On Thu, 12 Sep 2013, Ben Finney wrote: Better to learn these once, in a single powerful tool that can be maintained independent of any one vendor for as long as its community is interested. And if you're a developer, even a community of one is enough ;) -W -- https://mail.python.org/mailman/li

Re: Language design

2013-09-11 Thread Wayne Werner
On Tue, 10 Sep 2013, Ben Finney wrote: The sooner we replace the erroneous “text is ASCII” in the common wisdom with “text is Unicode”, the better. I'd actually argue that it's better to replace the common wisdom with "text is binary data, and we should normally look at that text through U

Re: print function and unwanted trailing space

2013-09-11 Thread Wayne Werner
On Sat, 31 Aug 2013, candide wrote: # - for i in range(5): print(i, end=' ') # <- The last ' ' is unwanted print() # - Then why not define end='' instead? -W -- https://mail.python.org/mailman/listinfo/python-list

Re: Moving to Python for web

2013-09-05 Thread Wayne Werner
On Thu, 29 Aug 2013, Andreas Ecaz wrote: I've decided to go with Flask! It's now running on UWSGI with NGINX. Hopefully I can get some stuff done :) @Chris “Kwpolska” Warrick I just don't like the big frameworks, for me there is too much magic going on. I'm a huge fan of Flask - I also fi

Re: Python performance

2013-08-03 Thread Wayne Werner
On Fri, 2 Aug 2013, Schneider wrote: Hi list, I have to write a small SMTP-Relay script (+ some statistic infos) and I'm wondering, if this can be done in python (in terms of performance, of course not in terms of possibility ;) ). It has to handle around 2000 mails per hour for at least 8h

Re: Logging help

2013-08-03 Thread Wayne Werner
On Thu, 1 Aug 2013, Joseph L. Casale wrote: I have a couple handlers applied to a logger for a file and console destination. Default levels have been set for each, INFO+ to console and anything to file. How does one prevent logging.exception from going to a specific handler when it falls within

Re: Does Python 'enable' poke and hope programming?

2013-08-03 Thread Wayne Werner
On Thu, 1 Aug 2013, CM wrote: (My subject line is meant to be tongue and cheek inflammatory) I've been thinking about why programming for me often feels like ice skating uphill. I think part of the problem, maybe the biggest part, is what now strikes me as a Very Bad Habit, which is "poke an

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-08-03 Thread Wayne Werner
On Thu, 1 Aug 2013, Gilles wrote: On Wed, 24 Jul 2013 10:38:52 -0400, Kevin Walzer wrote: Thanks. hMailServer was one of the apps I checked, and I was just making sure there weren't something simpler, considering my needs, ideally something like Mongoose MTA. Have you checked Kenneth Rietz's

Re: PEP8 79 char max

2013-08-03 Thread Wayne Werner
On Wed, 31 Jul 2013, Joshua Landau wrote: To explain, I tend to take the "HTML" form of alignment by wrapping: open stuff stuff stuff close to open     stuff     stuff     stuff close Depending on how much 'stuff' I have, I, for one, prefer a third: open stuff stuff stuff clo

Re: Newbie: Python 3 and web applications?

2013-07-30 Thread Wayne Werner
On Fri, 26 Jul 2013, Rui Maciel wrote: I'm currently learning Python, and I've been focusing on Python3. To try to kill two birds with one stone, I would also like to learn the basics of writing small web applications. These web applications don't need to do much more than provide an interface

Re: UTF-EBCDIC encoding?

2013-07-15 Thread Wayne Werner
On Mon, 15 Jul 2013, Kev Dwyer wrote: Joel Goldstick wrote: On Fri, Jul 12, 2013 at 3:12 PM, Skip Montanaro wrote: I can't help you. I'm astonished. Trying to imagine the work environment where this technology would be necessary http://www.iseriespython.com/app/ispMain.py/Start?job=Ho

Re: Dihedral

2013-07-15 Thread Wayne Werner
On Mon, 15 Jul 2013, Devyn Collier Johnson wrote: On 07/15/2013 08:36 AM, Steven D'Aprano wrote: On Mon, 15 Jul 2013 06:06:06 -0400, Devyn Collier Johnson wrote: On 07/14/2013 02:17 PM, 8 Dihedral wrote: [...] Do we want volunteers to speed up search operations in the string module in

Re: GeoIP2 for retrieving city and region ?

2013-07-15 Thread Wayne Werner
On Sat, 13 Jul 2013, Νικόλας wrote: But then how do you explain the fact that http://www.maxmind.com/en/geoip_demo pinpointed Thessaloníki and not Athens and for 2 friends of mine that use the same ISP as me but live in different cities also accurately identified their locations too? If you

Re: Ideal way to separate GUI and logic?

2013-07-13 Thread Wayne Werner
On Sat, 13 Jul 2013, fronag...@gmail.com wrote: Well, I'm a newcome to Python, but I'm developing a program with a GUI in tkinter, and I'm wondering what is the best, 'most pythonic' way of doing this? I could, obviously, write a monolithic block of code. True, you could, but don't do that.

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Wayne Werner
On Sat, 13 Jul 2013, Νικόλας wrote: But it works for me, How can it be impossible and worked for me at the same time? 2 + 2 = 4 2 + 6 = 8??? Why can't I make 2 and 6 equal 4? It worked for 2, so I know it's not impossible! I don't care what everyone says, I was able to make one case work so ob

UTF-EBCDIC encoding?

2013-07-12 Thread Wayne Werner
Is anyone aware of a UTF-EBCDIC[1] decoder? While Python does have a few EBCDIC dialects in the codecs, it does not have the (relatively new?) UTF-EBCDIC one. Additionally, if anyone is aware of a Python tool that can unpack a mainframe PDS file, that would also be worthwhile. Thanks, Wayn

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-12 Thread Wayne Werner
On Thu, 4 Jul 2013, Νίκος Γκρ33κ wrote: Στις 4/7/2013 6:10 μμ, ο/η MRAB έγραψε: What do you mean "I don't know how to catch the exception with OSError"? You've tried "except socket.gaierror" and "except socket.herror", well just write "except OSError" instead! try: host = socket.geth

Re: Default scope of variables

2013-07-07 Thread Wayne Werner
On Fri, 5 Jul 2013, Chris Angelico wrote: Oh. Uhm... ahh... it would have helped to mention that it also has a commit() method! But yes, that's correct; if the object expires (this is C++, so it's guaranteed to call the destructor at that close brace - none of the Python vagueness about when __d

Re: Default scope of variables

2013-07-04 Thread Wayne Werner
On Thu, 4 Jul 2013, Steven D'Aprano wrote: [1] Based on empirical evidence that Python supports names with length at least up to one million characters long, and assuming that each character can be an ASCII letter, digit or underscore. The specification *does* state unlimited length: http://

Re: DOS or not? [was Re: How to tell Script to use pythonw.exe ?]

2013-07-04 Thread Wayne Werner
On Wed, 3 Jul 2013, Dennis Lee Bieber wrote: Consider that the Powershell default is to /prevent/ execution of script files unless some security settings have been changed; even local script files need to be "signed" to be executed. Protip: No they don't - wrap it in a cmd/bat file and

Re: FACTS: WHY THE PYTHON LANGUAGE FAILS.

2013-06-28 Thread Wayne Werner
On Fri, 28 Jun 2013, Joel Goldstick wrote: On Fri, Jun 28, 2013 at 2:52 PM, Wayne Werner wrote: On Fri, 28 Jun 2013, 8 Dihedral wrote: KIND OF BORING TO SHOW HOW THE LISP PROGRAMMING WAS ASSIMULATED BY THE PYTHON COMMUNITY. OF COURSE PYTHON IS

Re: FACTS: WHY THE PYTHON LANGUAGE FAILS.

2013-06-28 Thread Wayne Werner
On Fri, 28 Jun 2013, 8 Dihedral wrote: KIND OF BORING TO SHOW HOW THE LISP PROGRAMMING WAS ASSIMULATED BY THE PYTHON COMMUNITY. OF COURSE PYTHON IS A GOOD LANGUAGE FOR DEVELOPING ARTIFICIAL INTELEGENT ROBOT PROGRAMS NOT SO BRAIN DAMAGES, OR SO SLAVERY AS C/C++ OR ASEMBLY PARTS. Best. Post

Re: Determine actually given command line arguments

2013-05-15 Thread Wayne Werner
On Wed, 15 May 2013, Henry Leyh wrote: Yes, I was trying that and it sort of works with strings if I use something sufficiently improbable like "__UNSELECTED__" as default. But it gets difficult with boolean or even number arguments where you just may not have valid "improbable" defaults. You

Re: object.enable() anti-pattern

2013-05-13 Thread Wayne Werner
On Mon, 13 May 2013, Greg Ewing wrote: Wayne Werner wrote: On Fri, 10 May 2013, Gregory Ewing wrote: f = open("myfile.dat") f.close() data = f.read() To clarify - you don't want a class that has functions that need to be called in a certain order with *valid input*

Re: object.enable() anti-pattern

2013-05-12 Thread Wayne Werner
On Fri, 10 May 2013, Gregory Ewing wrote: Wayne Werner wrote: You don't ever want a class that has functions that need to be called in a certain order to *not* crash. That seems like an overly broad statement. What do you think the following should do? f = open("myfile.dat&q

Re: object.enable() anti-pattern

2013-05-12 Thread Wayne Werner
On Fri, 10 May 2013, Robert Kern wrote: On 2013-05-10 12:00, Steven D'Aprano wrote: But either way, that's fine. You've found an object where it does make sense to have an explicit "make it go" method: first one entity has permission to construct the object, but not to open the underlying file

Re: object.enable() anti-pattern

2013-05-09 Thread Wayne Werner
On Wed, 8 May 2013, Steven D'Aprano wrote: I'm looking for some help in finding a term, it's not Python-specific but does apply to some Python code. This is an anti-pattern to avoid. The idea is that creating a resource ought to be the same as "turning it on", or enabling it, or similar. For

Re: Encoding NaN in JSON

2013-04-22 Thread Wayne Werner
back into a floating point NaN object. I infer that you were proposing a JSON null value and not the string 'null'? Not me, Wayne Werner proposed to use the JSON null value. I parsed the backticks (`) used by him as a way to delimit it from text and not as a string. That was, in

Re: Encoding NaN in JSON

2013-04-18 Thread Wayne Werner
On Wed, 17 Apr 2013, Miki Tebeka wrote: I'm trying to find a way to have json emit float('NaN') as 'N/A'. No. There is no way to represent NaN in JSON. It's simply not part of the specification. I know that. I'm trying to emit the *string* 'N/A' for every NaN. Why not use `null` instead? I

Re: anyone know pandas ? Don't understand error: NotImplementedError...

2013-04-18 Thread Wayne Werner
On Wed, 17 Apr 2013, someone wrote: File "/usr/lib/pymodules/python2.7/pandas/tseries/offsets.py", line 214, in rule_code raise NotImplementedError NotImplementedError Can anyone tell why this error appears and how to fix it? I don't know anything about pandas, but m

Re: dynamic forms generation

2013-04-18 Thread Wayne Werner
On Tue, 16 Apr 2013, andrea crotti wrote: This is not really scalable, and we want to make the whole thing more generic. So ideally there could be a DSL (YAML or something else) that we could define to then generate the forms, but the problem is that I'm quite sure that this DSL would soon beco

Re: Problems with sockets and threads

2013-04-11 Thread Wayne Werner
On Thu, 11 Apr 2013, Dexter Deejay wrote: Yeah, that seems to be problem. Waiting for message is in theory infinite. But why doesn't this separate thread leave processor while it is sleeping? As far as I've been able to tell? Magic ;) But I haven't really dug into it. If you're really doing

Re: Problems with sockets and threads

2013-04-11 Thread Wayne Werner
On Thu, 11 Apr 2013, Dexter Deejay wrote: When i try to run this code and to connect to server (server is written in java that part of code is ok) everything stalls. Thread that i created here occupies processor all the time and GUI freezes. It's supposed to be waiting for message from server

Re: "monty" < "python"

2013-03-21 Thread Wayne Werner
On Thu, 21 Mar 2013, Roy Smith wrote: In article , Terry Reedy wrote: On 3/20/2013 10:03 AM, franzferdinand wrote: Ok, thanks everybody! Threads are like the Sorcerer's Apprentice. You can start 'em, but you cannot stop 'em ;-) Of course you can stop threads. Just call _exit(). No more

Re: Twisted or Tornado?

2013-03-05 Thread Werner Thie
e, load induced behavior, server analysis, multicore/multimachine capabilities and hot deployment with ease. Cheers, Werner -- http://mail.python.org/mailman/listinfo/python-list

Re: "Daemonizing" an application.

2013-02-27 Thread Werner Thie
standard packages only ? Have fun, Werner -- http://mail.python.org/mailman/listinfo/python-list

Re: Jinja2 installation help

2013-02-08 Thread Wayne Werner
On Fri, 8 Feb 2013, Robert Iulian wrote: Hello, I recently started learning Python. Just finished learning the basis of it, and now I think I'm ready to start working on a simple website but I am having some difficulties installing Jinja2. Can anyone post a dummy guide on how to install it, a

Re: The best, friendly and easy use Python Editor.

2013-01-31 Thread Wayne Werner
On Thu, 24 Jan 2013, Tim Chase wrote: On 01/24/13 13:34, Leonard, Arah wrote: All true (especially the holy wars bit!). OP didn't (as far as I can see) even say which OS he is using. Anyway, my suggestion is generally that people use the editor with which they are already comfortable. Sound a

Re: New to python, do I need an IDE or is vim still good enough?

2013-01-06 Thread Wayne Werner
On Fri, 4 Jan 2013, Roy Smith wrote: In article , Cameron Simpson wrote: On 01/04/13 01:34, Anssi Saari wrote: | Just curious since I read the same thing in a programming book recently | (21st century C). So what's the greatness that terminal multiplexors | offer over tabbed terminals? Especi

Re: New to python, do I need an IDE or is vim still good enough?

2013-01-02 Thread Wayne Werner
On Tue, 1 Jan 2013, Ramchandra Apte wrote: On Friday, 28 December 2012 01:31:16 UTC+5:30, mogul wrote: 'Aloha! I'm new to python, got 10-20 years perl and C experience, all gained on unix alike machines hacking happily in vi, and later on in vim. Now it's python, and currently mainly on

Re: New to python, do I need an IDE or is vim still good enough?

2013-01-02 Thread Wayne Werner
On Tue, 1 Jan 2013, Mitya Sirenef wrote: On 01/01/2013 02:02 PM, Roy Smith wrote: That's true with Vim, as well, especially when I'm making a custom mapping and I can NEVER remember what some combination does, even though if I actually needed to use it, it pops right out, so to find out, I have

Re: New to python, do I need an IDE or is vim still good enough?

2013-01-02 Thread Wayne Werner
On Wed, 2 Jan 2013, Michael Torrie wrote: On 01/01/2013 11:43 AM, Mitya Sirenef wrote: Therefore, deleting 3 WORDs is 3daW (mnemonic: del a WORD 3 times). Interesting. I typically use just d3w. 3daW seems to delete 3 lines for me, the same result as d3. Another favorite command is d or c fo

Re: context aware execution

2012-12-19 Thread Wayne Werner
On Thu, 20 Dec 2012, Chris Angelico wrote: On Thu, Dec 20, 2012 at 2:57 AM, Bart Thate wrote: I want in a function or method determine the context of my caller and adapt the functionality accordingly. First off, please don't! Your code will be *extremely* confusing. Usually, the best way to

Re: Why Doesn't This MySQL Statement Execute?

2012-12-18 Thread Wayne Werner
On Tue, 18 Dec 2012, Tom Borkin wrote: Hi; I have this test code:       if i_id == "1186":   sql = 'insert into interactions values(Null, %s, "Call Back", "%s")' % (i_id, date_plus_2)   cursor.execute(sql)   db.commit()   print sql It prints the sql statement, but it doesn't exe

Re: Posix call (execve) breaks mercurial?

2012-10-11 Thread Wayne Werner
On Thu, 11 Oct 2012, Wayne Werner wrote: So here's where things got weird. I could call `subprocess.check_output(['hg', 'root'])`, and things worked just fine. But when I added the env parameter, I got the untrusted issues. So if I did: import os, subp

Posix call (execve) breaks mercurial?

2012-10-11 Thread Wayne Werner
So... this is certainly the deepest I've got to dig into any source code. I'm experimenting with Review Board for code reviews, and trying to get it set up/working here at work. When using post-review, however, I started getting issues with untrusted users - even though they were set to trusted

Re: print or write on a text file ?

2012-09-28 Thread Wayne Werner
On Fri, 28 Sep 2012, Franck Ditter wrote: Hi ! Here is Python 3.3 Is it better in any way to use print(x,x,x,file='out') or out.write(x) ? Any reason to prefer any of them ? There should be a printlines, like readlines ? Thanks, The print function automatically appends newlines to the end of w

Re: Article on the future of Python

2012-09-27 Thread Wayne Werner
On 9/27/2012 9:05 PM, Jason Friedman wrote: Fair enough, but it's the M in the LAMP stack I object to. I'd much rather have P. +1 I know this isn't the list for database discussions, but I've never gotten a decent answer. I don't know much about either, so I'm kind of curious why postgresql

Re: Who's laughing at my responses, and who's not?

2012-09-26 Thread Wayne Werner
On Tue, 25 Sep 2012, Dwight Hutto wrote: It sounds pretentious, but over the past several days, I've been slammed on every post almost. All because of an argument over me not posting a little context in a conversation, that seemed short and chatty. Your being slammed has nothing to do with you

Re: One of my joomla webpages has been hacked. Please help.

2012-09-26 Thread Wayne Werner
On Sun, 23 Sep 2012, Dwight Hutto wrote: We're the borg. Oh, so you *are* a robot. That does explain your posts ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: One of my joomla webpages has been hacked. Please help.

2012-09-26 Thread Wayne Werner
On Sat, 22 Sep 2012, Νίκος Γκρεεκ wrote: Okey i'll ask this to the officila joomla forum, one last thing though. Is there a way to somehow embed(or utilize) python code, for example my python counter code script you have seen last week inside my Joomla/WordPress cms sites? For example: http

Re: Algorithms using Python?

2012-09-26 Thread Wayne Werner
On Fri, 21 Sep 2012, Dennis Lee Bieber wrote: On Fri, 21 Sep 2012 14:26:04 +0530, Mayuresh Kathe declaimed the following in gmane.comp.python.general: Is there a good book on foundational as well as advanced algorithms using Python? Depends on what you mean by "foundational"...

Re: Import Problem on WIndows py3

2012-09-04 Thread Werner Thie
present in this particular directory? Werner -- http://mail.python.org/mailman/listinfo/python-list

Re: Async client for PostgreSQL?

2012-09-01 Thread Werner Thie
bservice based PDF production (probably as blocking as services can come) for a Java based business app with twisted/ampoule, this is as stable as the game server. HTH, Werner -- http://mail.python.org/mailman/listinfo/python-list

Re: Async client for PostgreSQL?

2012-09-01 Thread Werner Thie
rking work out in twisted either with deferToThread() or if you want to take advantage of using processes instead of threads thus being able to tap all cores, then have a look at ampoule at https://launchpad.net/ampoule - be aware though that ampoule has a 64k limit on what can be passed around

Re: parallel programming in Python

2012-05-29 Thread Werner Thie
For such tasks my choice would be twisted combined with ampoule. Let's you spread out work to whatever amount of processes you desire, maxing out whatever iron you're sitting on.. HTH, Werner http://twistedmatrix.com/trac/ https://launchpad.net/ampoule On 29.05.2012 16:43, Jabba

Re: Does anyone know of a python tapi module

2011-07-02 Thread Werner Thie
projects, but am not aware of anything pythonic. Attempting to cough up an interface layer I would resort to using Chris Sells tfx wrapper fro TAPI, which helps a lot keeping things in check and becoming overly complex. HTH, Werner http://books.google.com/books?id=3M_mIvtdGqUC&pg=PA82&

Re: [ANN] Python 2.5.6 Release Candidate 1

2011-04-18 Thread Werner F. Bruhin
On 04/17/2011 11:57 PM, "Martin v. Löwis" wrote: http://www.python.org/2.5.6 Just FYI, getting a 404 error on the above. I can see a 2.5.6c1 listes on "http://www.python.org/download/releases/2.5/highlights/"; which goes to "http://www.python.org/download/r

Re: Python CPU

2011-04-03 Thread Werner Thie
ammable in Python sitting on a chip with a lot of hardware available. Another thing worth to mention in this context is for sure the work available on http://www.myhdl.org/doku.php. Werner On 4/3/11 3:46 AM, Dan Stromberg wrote: On Sat, Apr 2, 2011 at 5:10 PM, Gregory Ewing mail

Re: I am not able to open IDLE in python on Vista.

2011-03-01 Thread Werner Thie
Ever tried to run it as Administrator (right click, Run as Administrator...) Werner Am 01.03.2011 17:12, schrieb Jayneil Dalal: This is the error message I get when I try to run Pyhon on Vista: unable to create user config directory C:\Users\Jayneil\.idlerc Check path and permissions. Exiting

Re: Newbie getting desperate with for

2011-02-18 Thread Werner
On 18/02/11 07:29, Cameron Simpson wrote: > On 18Feb2011 08:40, I wrote: > | On 17Feb2011 18:40, Alister Ware wrote: > | | On Thu, 17 Feb 2011 16:42:05 +0800, Werner wrote: > | | > On 17/02/11 16:39, Chris Rebert wrote: > | | >> On Thu, Feb 17, 2011 at 12:27 AM, Werner w

Re: Newbie getting desperate with for

2011-02-17 Thread Werner
On 18/02/11 02:40, Alister Ware wrote: > On Thu, 17 Feb 2011 16:42:05 +0800, Werner wrote: > >> On 17/02/11 16:39, Chris Rebert wrote: >>> On Thu, Feb 17, 2011 at 12:27 AM, Werner wrote: >>>> I have a trivially simple p

Re: Newbie getting desperate with for

2011-02-17 Thread Werner
On 17/02/11 16:39, Chris Rebert wrote: > On Thu, Feb 17, 2011 at 12:27 AM, Werner wrote: >> I have a trivially simple piece of code called timewaster.py: >> >> >> while True: >>i = 0 >>

Newbie getting desperate with for

2011-02-17 Thread Werner
I thought I'd ask here what I am doing wrong. Best Regards Werner Dahn -- http://mail.python.org/mailman/listinfo/python-list

Re: To Thread or not to Thread....?

2010-12-01 Thread Werner Thie
(see the NMEA classes for serial ports). I don't know if syncless handles other types of fd's like serial ports, I've never played with it. The monkey patching of syncless might pose other problems in your case. HTH, Werner Am 01.12.2010 14:48, schrieb James Mills: Surel

Re: Deferring a function call

2010-10-19 Thread Werner Thie
tions with extremely high counts of participants and/or fine granularity distributed across multiple machines are fun to write, operate and maintain. Werner On 10/18/10 6:21 PM, TomF wrote: I'm writing a simple simulator, and I want to schedule an action to occur at a later time. Bas

Re: python ide for ubuntu

2010-08-12 Thread Werner Thie
, although this project seems to be stalled. Werner On 12.08.2010 04:15, Bhanu Kumar wrote: Hi All, Is there any good free python IDE available in Ubuntu? thanks, -Bhanu <>-- http://mail.python.org/mailman/listinfo/python-list

Re: Upgrade Python 2.6.4 to 2.6.5

2010-05-12 Thread Werner F. Bruhin
.K., will do that. Thanks for your help Werner -- http://mail.python.org/mailman/listinfo/python-list

Re: Upgrade Python 2.6.4 to 2.6.5

2010-05-11 Thread Werner F. Bruhin
Martin, Thanks for the quick reply. On 10/05/2010 22:25, Martin v. Loewis wrote: Werner F. Bruhin wrote: Just upgraded on my Windows 7 machine my copy of 2.6.4 to 2.6.5. However doing sys.version still shows 2.6.4 even so python.exe is dated 19. March 2010 with a size of 26.624 bytes

Upgrade Python 2.6.4 to 2.6.5

2010-05-10 Thread Werner F. Bruhin
to install all my other stuff again (kinterbasdb, matplotlib, sphinx etc etc). Werner -- http://mail.python.org/mailman/listinfo/python-list

Announce: pcp-0.1

2009-05-27 Thread Michael Werner
Name:pcp-0.1 Description: Python Interface to SGI's Performance Co-Pilot client API License: GNU LGPL Download:ftp://oss.sgi.com/www/projects/pcp/download/python- pcp-0.1.tar.gz Web: http://oss.sgi.com/projects/pcp/ Author: Michael Werner Email: m

Re: installer for py2exe files?

2009-04-22 Thread Werner F. Bruhin
home folder and this might cause strange errors and/or confusion. There are some more tips and more details about all this on the InnoSetup site. Werner -- http://mail.python.org/mailman/listinfo/python-list

Re: logging - string formating problems

2009-04-06 Thread Werner F. Bruhin
ut I hope that maybe Vinay Sajip or someone else with more know how then I have can come up with a patch which will make this type of situation easier. Werner -- http://mail.python.org/mailman/listinfo/python-list

Re: logging - string formating problems

2009-04-06 Thread Werner F. Bruhin
Werner F. Bruhin wrote: I see the following exception with a string formating problem. TypeError: not all arguments converted during string formatting Traceback (most recent call last): File "/usr/lib/python2.5/logging/__init__.py", line 744, in emit msg = self.format(record)

logging - string formating problems

2009-04-05 Thread Werner F. Bruhin
lf.args The exception does not give any information on where the problem is coming from. I am using Python 2.5.4 but I see that in 2.6 the code is still the same. Any chance that getMessage could catch this exception and provide better debugging information (i.e. content of msg and self.args). Wer

Re: Packaging Survey

2009-03-09 Thread Werner F. Bruhin
Pierro The certificate expired on 01/03/2009 07:56. (Error code: sec_error_expired_issuer_certificate) Werner -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows PE and Python 2.6 (Side-by-Side error)

2008-12-17 Thread Werner Merkl
things...) But now PyScripter may not use Python 2.6 internally. E. g., if I load a python-dll (import bz2) I receise an Runtime ERROR! R6034... Again, thanx a lot Werner -- http://mail.python.org/mailman/listinfo/python-list

Windows PE and Python 2.6 (Side-by-Side error)

2008-11-14 Thread Werner Merkl
ned... Has anyone an idea? Thank you in advance Werner -- http://mail.python.org/mailman/listinfo/python-list

Re: setuptools for 2.6 and windows?

2008-11-14 Thread werner
On Nov 14, 2:22 am, Allan <[EMAIL PROTECTED]> wrote: > "Werner F. Bruhin" <[EMAIL PROTECTED]> writes: > > > I would like to start looking into Python 2.6 and do some testing. > > > First hurdle I run into is that I can not find a 2.6 installer for > &

setuptools for 2.6 and windows?

2008-11-13 Thread Werner F. Bruhin
. Thanks Werner -- http://mail.python.org/mailman/listinfo/python-list

Why is indexing into an numpy array that slow?

2008-11-08 Thread R�diger Werner
Hello! Out of curiosity and to learn a little bit about the numpy package i've tryed to implement a vectorised version of the 'Sieve of Zakiya'. While the code itself works fine it is astounding for me that the numpy Version is almost 7 times slower than the pure python version. I tryed to find

logging module

2008-10-23 Thread Werner F. Bruhin
have to be started by the first one to get the same logger? Any hints on how to solve my problem would be very appreciated. Werner [formatters] keys=simple [handlers] keys=consoleHandler,fileRollOver,ntEventLog [loggers] keys=root,frollover [formatter_simple] format=%(name)s:%(levelname)s

Re: subprocess.Popen on Windows

2008-10-21 Thread Werner F. Bruhin
Werner F. Bruhin wrote: I am trying to use subprocess - it basically works but. command = 'ping ' + '-n '+ str(count) + ' -l ' + str(size) + ' ' + str(node) print command p = subproc

subprocess.Popen on Windows

2008-10-20 Thread Werner F. Bruhin
'ping -n '+ str(count)+ ' -l '+ str(size) +' '+node) Which did not show the command window. I did quit a bit of googling bug so far did not find an answer to my problem. Appreciate any hints on how this can be accomplished. Werner -- http://mail.python.org/mailman/listinfo/python-list

Re: help with parsing email

2008-08-18 Thread Werner F. Bruhin
lib/pop3-example.html To me it looks like you are not setting the user/password. So, maybe something like: M = poplib.POP3(mailserver) M.user(mailuser) M.pass_(mailpasswd) Werner -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe bug with email.MIMEText

2008-08-01 Thread Werner F. Bruhin
this? I see that you did find a solution for your problem. An alternative solution is to force py2exe to include all of the email package. packages = ['matplotlib.numerix', 'pytz.zoneinfo.UTC', 'email', 'encodings&

Re: Python base distribution come with a validating XML parser?

2008-07-25 Thread R�diger Werner
> Hi, > > Basic XML questions, > > I have a .xml file I want to validate against a .xsd file... > > Does the Python base distribution come with a validating XML parser? > > I want to make sure the elements in my xml file vs. the elements > defined in my xsd are a match. > > I could parse both XML a

Re: Interesting Math Problem

2008-06-05 Thread R�diger Werner
"BEES INC" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] ... Problem: Star Ratings People can rate cheeseburgers on my website with a star rating of 0-5 stars (whole stars only), 5 being mighty tasty and 0 being disgusting. I would like to show the average of everyone's rati

Re: Magic function

2008-01-13 Thread R�diger Werner
Well as I understand your problem now, you would not like all instances of an specific object that are still alive, but all references to an object (created somewhere, sometimes) in an local context (stack frame), that are accessible from 'that' context ( but also from many others). However in pyt

Re: self extracting zipefile (windows) and (standard module) zipefile

2007-08-29 Thread Werner
> file. You can even point Python itself at such files and get > data via: > import zipfile > zf = zipfile.ZipFile('something.exe') > ... > > -Scott David Daniels > [EMAIL PROTECTED] I hoped, this would work, but I got ": File is not a zip file"

Re: self extracting zipefile (windows) and (standard module) zipefile

2007-08-29 Thread Werner
On 29 Aug., 15:23, [EMAIL PROTECTED] wrote: > On Aug 29, 6:53 am, Werner <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > I try to read (and extract) some "self extracting" zipefiles on a > > Windows system. The standard module zipefile s

self extracting zipefile (windows) and (standard module) zipefile

2007-08-29 Thread Werner
ame)) False Is there a wrapper or has some one experience with other libaries to extract those files? Thanks in advance Werner -- http://mail.python.org/mailman/listinfo/python-list

Re: Has Python 2.4.1 changed implementation for __init__.py???

2005-04-13 Thread Werner Merkl
Fredrik Lundh wrote: Werner Merkl wrote: I just downloaded http://www.python.org/pypi/xexpr/0.02, installed if (python setup.py install) and tried the example in the README file. Than I got following error: AttributeError: 'module' object has no attribute 'Read' This is s

Has Python 2.4.1 changed implementation for __init__.py???

2005-04-13 Thread Werner Merkl
ty __init__.pr files, like venster, Pyrex or libxmlmods... Is there a change in the implementation, so that every module needs an explicit list for exchanged modules? Or is there a switch or an environment variable to change? Thanks

PythonWin, AutoDoc and german keyboards...

2005-03-03 Thread Werner Merkl
rs] You see, if we press ")" on German KB, which is "(" on us KB we get the help... BTW: Changes to Python24\Lib\site-packages\pythonwin\pywin\default.cfg didn't help. Is this a known issue? And is there a work around? Or do we have to take an other IDE like SPE? Thank you

  1   2   >