Re: Python IDE

2004-12-14 Thread Tomas
Source Assistant feature of the professional version is very useful. As for projects, it doesn't support CVS or anything similar. Still, I don't miss this feature, because there are other excelent and free CVS clients. I use TortoiseCVS, http://www.tortoisecvs.org/, which integra

Python refuses to import SVN

2008-02-26 Thread Tomas
w-r--r-- 1 root root 3353 Feb 26 19:29 fs.pyc -rw-r--r-- 1 root root 841 Feb 26 19:29 ra.py -rw-r--r-- 1 root root 301 Feb 26 19:29 ra.pyc -rw-r--r-- 1 root root 9580 Feb 26 19:29 repos.py -rw-r--r-- 1 root root 6797 Feb 26 19:29 repos.pyc -rw-r--r-- 1 root root 841 Feb 26 19:29 wc.py -rw-r--

Order of addresses returned by socket.gethostbyname_ex()

2011-08-21 Thread Tomas Lidén
In what order are the addresses returned by socket.gethostbyname_ex()? We know that gethostbyname() is indeterministic but hope that gethostbyname_ex() has a specified order. Best regards, Tomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Order of addresses returned by socket.gethostbyname_ex()

2011-08-22 Thread Tomas Lidén
On 22 Aug, 10:15, Steven D'Aprano wrote: > On Mon, 22 Aug 2011 04:37 pm Tomas Lidén wrote: > > > In what order are the addresses returned by socket.gethostbyname_ex()? > > > We know that gethostbyname() is indeterministic but hope that > > gethostbyname_ex() ha

Re: Order of addresses returned by socket.gethostbyname_ex()

2011-08-22 Thread Tomas Lidén
figured to use the "best" > interface. > Hmm... perhaps. How would you do that? /Tomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Order of addresses returned by socket.gethostbyname_ex()

2011-08-22 Thread Tomas Lidén
ith a fair degree of reliability. > The config file solution is not suitable, I think. This code should run in a general cross platform application (Texttest), and we do not want each user of that system to be forced to edit a config file.. /Tomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Order of addresses returned by socket.gethostbyname_ex()

2011-08-22 Thread Tomas Lidén
On 22 Aug, 13:26, Roy Smith wrote: > In article > <356978ef-e9c1-48fd-bb87-849fe8e27...@p5g2000vbl.googlegroups.com>, >  Tomas Lidén wrote: > > > In what order are the addresses returned by socket.gethostbyname_ex()? > > > We know that gethostbyname()

Re: Order of addresses returned by socket.gethostbyname_ex()

2011-08-22 Thread Tomas Lidén
OK - thank you all for your contributions. /T -- http://mail.python.org/mailman/listinfo/python-list

Re: [RELEASE] Python 3.9.0 is now available, and you can already test 3.10.0a1!

2020-10-07 Thread Tomas Hrnciar
Hello, I am getting PGP error with the new Python3.10.0a1. I would like to ask what key it was signed with and whether it wasn't Pablo's. If so, it might be missing in pubkeys.txt. Thank you. T. On Mon, Oct 5, 2020 at 10:48 PM Łukasz Langa wrote: > On behalf of the Python development community

Re: lies about OOP

2004-12-14 Thread Tomas Christiansen
nguage automaticly chose the right one, frees your mind to other processes, but at the risk of some kind of run-time overhead. --- Tomas -- http://mail.python.org/mailman/listinfo/python-list

Different behavior with multiprocessing

2013-03-04 Thread Tomas Kotal
Hi all. Recently I discovered a strange behavior with multiprocessing library and call to function os.system (a different behavior under Linux and Windows to be more specific). I have this simple testing script: import sys import os from multiprocess

Re: Different behavior with multiprocessing

2013-03-04 Thread Tomas Kotal
> Under Unix, the return value from os.system() encodes more than one > > piece of information: > > > > http://docs.python.org/2/library/os.html#os.system > > http://docs.python.org/2/library/os.html#os.wait > > > > 32512 is 127*256, meaning that the shell exited with return code 127 > > w

Re: Different behavior with multiprocessing

2013-03-04 Thread Tomas Kotal
Dne pondělí, 4. března 2013 15:31:41 UTC+1 Tomas Kotal napsal(a): > Hi all. > > > > Recently I discovered a strange behavior with multiprocessing library and > call to function os.system (a different behavior under Linux and Windows to > be more specific). I have this

Simple TCP "relay" or "proxy"

2005-05-13 Thread Tomas Christiansen
t;relay" PCL and/or PostScript printjobs to a TCP/IP printer. Does anyone have some sugggestions on code-examples? I've tried googling around, but couldn'r find anythin usefull. --- Tomas -- http://mail.python.org/mailman/listinfo/python-list

Send all packets (socket programming)

2005-05-22 Thread Tomas Christiansen
nknown TCP/IP printer) and goes to an error-state. --- Tomas -- http://mail.python.org/mailman/listinfo/python-list

urllib2 slow for multiple requests

2009-05-13 Thread Tomas Svarovsky
Hello everybody, really new to python, so bear with me. I am trying to do some very basic scraping tool. Bascally it just grabs a page xy times and tells me how long it took. When I do this once, it is blazingly fast, but when I increase the number of repetitions, it is slowing down considerably (1

Re: urllib2 slow for multiple requests

2009-05-14 Thread Tomas Svarovsky
On May 13, 4:55 pm, cgoldberg wrote: > > Bascally it just grabs a page xy > > times and tells me how long it took. > > you aren't doing a read(), so technically you are just connecting to > the web server and sending the request but never reading the content > back from the socket.  So your timing

Re: urllib2 slow for multiple requests

2009-05-14 Thread Tomas Svarovsky
One more thing, since I am stuck with 2.4 (and if this is really 2.4 issue), is there some substitution for urllib2? On May 14, 11:00 am, Tomas Svarovsky wrote: > On May 13, 4:55 pm, cgoldberg wrote: > > > > Bascally it just grabs a page xy > > > times and tells me how

Re: urllib2 slow for multiple requests

2009-05-14 Thread Tomas Svarovsky
On May 14, 11:57 am, "Richard Brodie" wrote: > "cgoldberg" wrote in message > > news:9ae58862-1cb2-4981-ae6a-0428c7684...@z5g2000vba.googlegroups.com... > > > you aren't doing a read(), so technically you are just connecting to > > the web server and sending the request but never reading the cont

Re: urllib2 slow for multiple requests

2009-05-15 Thread Tomas Svarovsky
On May 14, 6:33 pm, "Richard Brodie" wrote: > "Tomas Svarovsky" wrote in message > > news:747b0d4f-f9fd-4fa6-bb6d-0a4365f32...@b1g2000vbc.googlegroups.com... > > > This is a good point, but then it would manifest regardless of the > > language used A

Using MAPI (simplemapi.py)

2006-03-22 Thread Tomas Brabenec
ne 206, in on_mnu_email simplemapi.SendMail("",self.tree.GetItemText(self.tree.GetSelection()),self.memo.GetValue(),"") File "C:\bra\Programs\Notebook\lib\simplemapi.py", line 141, in SendMail raise WindowsError, "MAPI error %i" % rc WindowsError: MAPI erro

Re: import random module

2006-03-22 Thread Tomas Brabenec
You must rename Your script. Your script doesn't same name as calling module. Tomas Brabenec http://brabenec.net DataSmash napsal(a): > Hi, > When I import the random module at the python interpreter, it works > fine: > >>>> import random >>>&

subprocess troubles

2010-01-21 Thread Tomas Pelka
Hey all, have a problem with following piece of code: -- import subprocess paattern = "python" cmd = "/usr/bin/locate" arg1 = " -i" arg2 = " -d /var/www/books/mlocate.db" arg3 = str(" " + pattern) p1 = subprocess.Popen([cmd, arg1, arg2, arg3], sh

Re: subprocess troubles

2010-01-21 Thread Tomas Pelka
On 01/21/2010 11:39 AM, Javier Collado wrote: Hello, If you set shell=False, then I think that arg2 should be separated into two different parts. Also, arg3 could be set just to pattern (no need to add extra spaces or using str function). Best regards, Javier 2010/1/21 Tomas Pelka

Module inspect Bug

2009-10-05 Thread Tomas Zulberti
tract. >>> inspect.isabstract(collections.MutableMapping) 1048576 >>> inspect.isabstract(os) False Its true that the condition nevertheless will be True on the if, but the return value I think that should be boolean. Thanks, Tomas Zulberti pd: Sorry for my bad English... -- http://

Re: Module inspect Bug

2009-10-06 Thread Tomas Zulberti
On Oct 6, 1:36 am, "Gabriel Genellina" wrote: > En Mon, 05 Oct 2009 11:59:01 -0300, Tomas Zulberti   > escribió: > > > Hi. I have a class that extends collections.MutableMapping. I am > > checking if it is abstract, using the moduleinspect. But isabstract > >

how to run part of my python code as root

2010-02-04 Thread Tomas Pelka
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, is there possibility how to run part of my code (function for example) as superuser. Or only way how to do this is create a wrapper and run is with Popen through sudo (but I have to configure sudo to run "whole" python as root). Thanks for advi

Re: how to run part of my python code as root

2010-02-06 Thread Tomas Pelka
sjdevn...@yahoo.com wrote: > On Feb 4, 2:05 pm, Tomas Pelka wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Hey, >> >> is there possibility how to run part of my code (function for example) >> as superuser. >> >> Or on

object exported through manager from multiprocess module

2010-07-08 Thread Tomas Pelka
nit/controllers/sniffer.py", line 143, in index worker.terminate() File "", line 2, in terminate File "/usr/lib/python2.6/multiprocessing/managers.py", line 740, in _callmethod raise convert_to_error(kind, result) AttributeError: 'NoneType' object has no attribute 'terminate' Which is strange from my point of view, don't you think? Thanks for advices, cheers -- Tomas Pelka -- http://mail.python.org/mailman/listinfo/python-list