[issue31990] Pickling deadlocks in thread with python -m

2020-12-03 Thread Werner Smidt
Werner Smidt added the comment: Thanks for going to the trouble, Sara. Curiosity remains, but I'll mark this as closed. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue31990] Pickling deadlocks in thread with python -m

2020-12-01 Thread Werner Smidt
Werner Smidt added the comment: Sorry for being lacking in providing some OS info. b Opensuse Tumbleweed, Linux kernel 5.8.10-1, Intel system I cannot explain why, but relating to Sara's answer, if you remove the .join() statements at the end, you get the following exception: /usr/bin

[issue31990] Pickling deadlocks in thread with python -m

2020-11-30 Thread Werner Smidt
Werner Smidt added the comment: The condition still stands. if I execute: python3 testqueuepickle3.py Everything is fine. If, however I execute: python3 -m testqueuepickle3.py It hangs. -- versions: +Python 3.8 ___ Python tracker <ht

[issue31990] Pickling deadlocks in thread with python -m

2020-11-30 Thread Werner Smidt
Change by Werner Smidt : -- status: pending -> open Removed file: https://bugs.python.org/file47255/testqueuepickle.py ___ Python tracker <https://bugs.python.org/issu

[issue40477] Python Launcher app on macOS 10.15 Catalina fails to run scripts

2020-05-15 Thread Werner
Werner added the comment: I believe, I found a simple way to get what you are looking for: Open Automator and create an app. Select »execute Shell script« put in the editor: python3 $1 Save this as MyPythonLauncher or what you want. Test it: Drop a Python script on the app. It should execute

[issue40477] Launcher on Catalina

2020-05-02 Thread Werner
Werner added the comment: Thank you! That’s an Information which Looks bad but has good parts. At least it may be not my fault ;) Best regards Werner Hintze Am 2. Mai 2020, 19:10 +0200 schrieb Ned Deily : > > Ned Deily added the comment: > > Thanks for the report. At first gla

[issue40477] Launcher on Catalina

2020-05-02 Thread Werner
New submission from Werner : I can’t figure out how to use Python Launcher on Catalina. Or it is broken. Anyway: It does absolutely nothing. When I double click a scriopt file, I se very shortly the preferences window of Launcher, and this is all. The script is not executed. I made a very

[issue31990] Pickling deadlocks in thread with python -m

2017-11-09 Thread Werner Smidt
New submission from Werner Smidt <werner.sm...@gmail.com>: Hi there I recently stumbled on an interesting behaviour. I won't call it an error, because I think it's a mistake I made. BACKGROUND: I want to spawn threads that handle pickled data. This works really well. However, I

[issue13952] mimetypes doesn't recognize .csv

2016-04-01 Thread Werner Van Geit
Werner Van Geit added the comment: Will this patch ever make it into the main python version ? I just ran into exactly this issue (mimetypes returns None as mimetype of csv file on Windows) -- nosy: +Werner Van Geit versions: +Python 3.4, Python 3.5, Python 3.6

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

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 heads

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 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: 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: 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 --

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: 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

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

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

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 k...@codebykevin.com 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

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

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

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

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

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: 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: 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 s...@pobox.com wrote: I can't help you. I'm astonished. Trying to imagine the work environment where this technology would be necessary

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

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: 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 =

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,

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

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: 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:

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.

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 wa...@waynewerner.com wrote: On Fri, 28 Jun 2013, 8 Dihedral wrote: KIND OF BORING TO SHOW HOW THE LISP PROGRAMMING WAS ASSIMULATED BY THE PYTHON COMMUNITY

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* in order

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-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) f.close

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
be converted 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 fact, my

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

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 my

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?

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

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: monty python

2013-03-21 Thread Wayne Werner
On Thu, 21 Mar 2013, Roy Smith wrote: In article mailman.3582.1363853304.2939.python-l...@python.org, Terry Reedy tjre...@udel.edu 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

Re: Twisted or Tornado?

2013-03-05 Thread Werner Thie
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
with 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,

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

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 mailman.105.1357349909.2939.python-l...@python.org, Cameron Simpson c...@zip.com.au 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

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 d3enter. Another favorite command is d

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 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

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 feedbackf...@gmail.com 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.

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 execute.

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

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, subprocess # Works just fine

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

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

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 mayur...@kathe.in 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

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:

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: snip We're the borg. Oh, so you *are* a robot. That does explain your posts ;) -- http://mail.python.org/mailman/listinfo/python-list

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

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
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. Werner

Re: Async client for PostgreSQL?

2012-09-01 Thread Werner Thie
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: 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 Laci wrote

[issue14810] Bug in tarfile

2012-05-15 Thread Hans Werner May
Hans Werner May nc-may...@netcologne.de added the comment: Out of curiosity: where did you get a file that was last modified in 1956? No idea, this was a jpeg file, probably downloaded from internet. Btw, on Linux you can manipulate the creation date with the touch command, so it is possible

[issue14810] Bug in tarfile

2012-05-14 Thread Hans Werner May
New submission from Hans Werner May nc-may...@netcologne.de: Bug in tarfile: In extractall, when a file exists in tarball with changetime older than (I don't know, in my case it was year 1956) tarfile raises an Overflow exception: File /usr/lib64/python2.7/tarfile.py, line 2298, in utime

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_mIvtdGqUCpg=PA82lpg=PA82dq

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/releases/2.5.6/; Werner -- http

Re: Python CPU

2011-04-03 Thread Werner Thie
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 greg.ew...@canterbury.ac.nz

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 alister.w...@ntlworld.com 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 wd

Newbie getting desperate with for

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

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 wd...@netfront.net wrote: I have a trivially simple piece of code called timewaster.py: while True: i = 0 for i in range(10): break

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 wd...@netfront.net wrote: I have a trivially simple piece of code called timewaster.py

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

2010-12-01 Thread Werner Thie
with it (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: Surely I2C is just

Re: Deferring a function call

2010-10-19 Thread Werner Thie
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. Basically, at some

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 attachment: werner.vcf-- 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
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-28 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: mtw

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: mtw

Re: installer for py2exe files?

2009-04-22 Thread Werner F. Bruhin
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
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) File /usr/lib

Re: logging - string formating problems

2009-04-06 Thread Werner F. Bruhin
come up with a patch which will make this type of situation easier. Werner -- http://mail.python.org/mailman/listinfo/python-list

logging - string formating problems

2009-04-05 Thread Werner F. Bruhin
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). Werner -- http://mail.python.org/mailman/listinfo

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
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

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 Windows for setuptools-0.6.9c, only Py2.4 and Py2.5 seem

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

2008-11-14 Thread Werner Merkl
in advance Werner -- http://mail.python.org/mailman/listinfo/python-list

setuptools for 2.6 and windows?

2008-11-13 Thread Werner F. Bruhin
to it. 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

logging module

2008-10-23 Thread Werner F. Bruhin
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 %(module)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 = subprocess.Popen(command, stdin=subprocess.PIPE

  1   2   >