Re: Inexplicable Urllib2 problem between virtualenv's when POSTing to a Tomcat server

2011-09-25 Thread Timmy O'Mahony
Good point. The two machines that the code works with are running python 2.6.1 and 2.7.2 and are running on my Mac (Snow Leopard) The two non-working machines are running python 2.6.6 and 2.7.1 and are on Debian 6 and Debian 5 respectively. They are VPSs managed by different providers. All of

Inexplicable Urllib2 problem between virtualenv's when POSTing to a Tomcat server

2011-09-25 Thread Timmy O'Mahony
Hey, I have a question on Stackoverflow at the moment that I thought I would put up here as it might get some more eyes (It has a bounty so feel free to answer there if you have a SO account!) I have some test code (as a part of a webapp) that uses urllib2 to perform an operation I would

How to know more about an exception?

2007-11-04 Thread Timmy
Hi, I has a question about exception in python. I know that an exception can be re-raised. Is there any simple way provided by python itself that I can know the current exception is just firstly occurred or it is re-raised by previous exception? I need to know whether the exception is fir

Re: Secure Python

2006-11-16 Thread timmy
Paul Boddie wrote: > Diez B. Roggisch wrote: > > > [Multiplayer game servers] > > >>Now how exactly does linux (or any other resource limiting technique on any >>OS) help here - killing the whole game server surely isn't a desirable >>solution when one player goes berserk, might it be intention

Re: Secure Python

2006-11-16 Thread timmy
Diez B. Roggisch wrote: >>as posted before, linux kernel limit. >> >>then you and your users can go as crazy as you want and you won't take >>out your system. >> >>maybe you should think a little more before going on the attack like that. > > > You should maybe read a little bit more when making

Re: Secure Python

2006-11-16 Thread timmy
Stephan Kuhagen wrote: > timmy <"timothy at open-networks.net"> wrote: > > This sub-thread starts to become a flame-war, isn't it? Calm down, both of > you... No need to fight, when only some ideas for a technical question are > requested. i'm not fighti

Re: Secure Python

2006-11-16 Thread timmy
Fredrik Lundh wrote: > timmy wrote: > >> maybe you should google "linux kernel limit" and you can prevent any >> user/process maxing out your system > > > one would have thought that the phrase "apart from OS-specific stuff" > might have

Re: Secure Python

2006-11-16 Thread timmy
Steven D'Aprano wrote: > On Thu, 16 Nov 2006 17:44:37 +1000, timmy wrote: > > >>congraulations you have discovered loops and their misuse > > > Did you have a point in your utterly inane comment, or did you just want > to see your name on Usenet? > > I

Re: Secure Python

2006-11-16 Thread timmy
Fredrik Lundh wrote: > timmy wrote: > >> congraulations you have discovered loops and their misuse > > > if you don't know what the phrase "denial of service attack" means, you > can always google for it. > > > maybe you should google &q

Re: Secure Python

2006-11-15 Thread timmy
Steven D'Aprano wrote: > On Thu, 16 Nov 2006 04:02:58 +0100, Fredrik Tolf wrote: > > >>Hi List! >> >>I was thinking about secure Python code execution, and I'd really >>appreciate some comments from those who know Python better than I do. >> >>I was thinking that maybe it could be possible to loa

deleteing item from a copy of a list

2006-11-14 Thread timmy
i make a copy of a list, and delete an item from it and it deletes it from the orginal as well, what the hell is going on?!?!?! #create the staff copy of the roster Roster2 = [] for ShiftLine in Roster: #delete phone number from staff copy Roster2.a

SPE bug?

2006-11-09 Thread timmy
i can't paste from SPE into an xterm window. is this problem with SPE? -- http://mail.python.org/mailman/listinfo/python-list

Re: opening excel

2006-11-09 Thread timmy
John Machin wrote: > timmy wrote: > >>Hello, >> >>has anybody got any experience opening and manilpulating excel >>spreedsheets via python? it seems pythoncom allows this to happen but >>i'm a total newb to it. (i usually work in the unix world) >>a

opening excel

2006-11-08 Thread timmy
Hello, has anybody got any experience opening and manilpulating excel spreedsheets via python? it seems pythoncom allows this to happen but i'm a total newb to it. (i usually work in the unix world) all i need to do, is open the xls files and read values from it. -- http://mail.python.org/mailm

Re: SPE editor slow?

2006-11-06 Thread timmy
SPE - Stani's Python Editor wrote: > timmy schreef: > > >>hello i've been using the SPE editor on a moderately large project and >>it's constantly pausing during editing, like it's attempting to check >>something as i edit. >>as you can imagi

SPE editor slow?

2006-11-05 Thread timmy
hello i've been using the SPE editor on a moderately large project and it's constantly pausing during editing, like it's attempting to check something as i edit. as you can imagine a 4 second pause every few characters is EXTREMELY annoying when you just want to get some work done. i really like

Re: python GUIs comparison (want)

2006-11-05 Thread timmy
Mudcat wrote: > When you say far better widgets, do you mean that it has a greater > number of widgets to choose from, or that the types of widgets are > basically the same but have a greater amount of flexibility in them? by better i mean more of them to choose from and the functionality they p

Re: python GUIs comparison (want)

2006-11-04 Thread timmy
Mudcat wrote: > I have been using Tkinter for several years now. Recently I have been > thinking about switching to something else that may have a sharper > appearance. However I'm not sure what that may be, and if that > something else is *that* much better than what I'm already using. > > Does e

Re: py2exe questions

2006-11-04 Thread timmy
Doug Stell wrote: > I have 2 questions about py2exe or any similar utility. > > 1. Is it possible to create a single Windows executable that does not > blow out to a folder full of files and can be called from scripts > using command line arguments? py2exe can most certainly do this. > > 2. If th