Proper way to download stylesheets and templates

2018-06-26 Thread T Berger
From: T Berger IΓ ╓m creating a webapp and trying to download a stylesheet and templates from my manualΓ ╓s support site. I must be doing something wrong, because when I try to run my app, I get a 404 error message. I downloaded the files by dragging them off the screen into my webapp folder

OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
Why am I getting this error? I'm not sure what additional information I need to supply, so please let me know. -- https://mail.python.org/mailman/listinfo/python-list

Re: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
On Wednesday, June 27, 2018 at 11:49:18 AM UTC-4, T Berger wrote: > Why am I getting this error? I'm not sure what additional information I need > to supply, so please let me know. I'm working on a Flask webapp. I know there is another google group specifically for Flask. Can yo

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
On Wednesday, June 27, 2018 at 12:17:28 PM UTC-4, Joaquin Henriquez wrote: > >Subject: EXTERNAL: OSError: [Errno 48] Address already in use > > The best way to help if got you to put the relevant code here. Last login: Wed Jun 27 12:45:08 on ttys000 192:~ TamaraB$ cd Desktop/Webapp/ 192:Webapp Ta

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
Let me add this information to clarify the context in which I got this error 48. It doesn't make sense to me, and it might not to you. This morning, I opened my webapp (vsearch4web.py in the terminal code above) and noticed a whole bunch of code I had not typed. I also noticed something weird a

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
On Wednesday, June 27, 2018 at 1:40:20 PM UTC-4, Marko Rauhamaa wrote: > Joaquin Henriquez : > > >>Subject: EXTERNAL: OSError: [Errno 48] Address already in use > > > > The best way to help if got you to put the relevant code here. > > > > The error you are experiencing means that the Port you are

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
Hi Guys, Thanks for all the suggestions. I found the problem. I had saved my program in IDLE and quit out of the shell, and then tried to run the program in Terminal. Previously, restarting the shell was enough to break the connection with the port. This time, I guess, it wasn't. So after think

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-29 Thread T Berger
On Thursday, June 28, 2018 at 1:21:32 AM UTC-4, T Berger wrote: > Hi Guys, > > Thanks for all the suggestions. I found the problem. I had saved my program > in IDLE and quit out of the shell, and then tried to run the program in > Terminal. Previously, restarting the shell was

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-29 Thread T Berger
On Friday, June 29, 2018 at 10:45:10 AM UTC-4, T Berger wrote: > On Thursday, June 28, 2018 at 1:21:32 AM UTC-4, T Berger wrote: > > Hi Guys, > > > > Thanks for all the suggestions. I found the problem. I had saved my program > > in IDLE and quit out of the shell

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread T Berger
On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: > The key point here from Jim is "simultaneously". Are you properly shutting > down > the Flask instance in IDLE before running from Terminal, and vice versa? Cameron, I try every option to quit either program, but they don't

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread T Berger
On Saturday, June 30, 2018 at 6:39:36 PM UTC-4, MRAB wrote: > On 2018-06-30 23:01, T Berger wrote: > > On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: > > > >> The key point here from Jim is "simultaneously". Are you properly shutting >

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-07-02 Thread T Berger
On Saturday, June 30, 2018 at 6:02:06 PM UTC-4, T Berger wrote: > On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: > > > The key point here from Jim is "simultaneously". Are you properly shutting > > down > > the Flask instance in IDLE befo

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-07-02 Thread T Berger
On Monday, July 2, 2018 at 1:22:59 PM UTC-4, T Berger wrote: > On Saturday, June 30, 2018 at 6:02:06 PM UTC-4, T Berger wrote: > > On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: > > > > > The key point here from Jim is "simultaneously". Are

Getting posts to sort chronologically in tree view

2018-07-02 Thread T Berger
Is there any way to set posts to appear chronologically in tree view? And why is the tree view completely out of order? My last two posts in this view are from 6/27 and 6/28. -- https://mail.python.org/mailman/listinfo/python-list

Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread T Berger
On Monday, July 2, 2018 at 2:36:00 PM UTC-4, Dan Stromberg wrote: > On Mon, Jul 2, 2018 at 11:02 AM, T Berger wrote: > > > Is there any way to set posts to appear chronologically in tree view? And > > why is the tree view completely out of order? My last two posts in this >

Re: Getting posts to sort chronologically in tree view

2018-07-03 Thread T Berger
On Monday, July 2, 2018 at 2:36:00 PM UTC-4, Dan Stromberg wrote: > On Mon, Jul 2, 2018 at 11:02 AM, T Berger wrote: > > > Is there any way to set posts to appear chronologically in tree view? And > > why is the tree view completely out of order? My last two posts in this >

Re: Getting posts to sort chronologically in tree view

2018-07-03 Thread T Berger
On Tuesday, July 3, 2018 at 4:00:03 PM UTC-4, Ben Finney wrote: > T Berger writes: > > > I'm posting directly to the forum (computer.lang.python, at this web > > address: > > https://groups.google.com/forum/#!topic/comp.lang.python/vWCvLYjOWUQ) > > Thank

Re: Microsoft Hatred FAQ

2005-10-20 Thread T Beck
Peter T. Breuer wrote: > In comp.os.linux.misc David Schwartz <[EMAIL PROTECTED]> wrote: > > > "Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > >> Not if they abuse a monopoly position in doing so, which is w

PySol --> SuSE 10.0

2005-11-10 Thread Mike T.
Hi, I'm trying to install PySol on 10.0. I've tried two routes: the RPM and building from source. First, from RPM. I su'd to root and run the following: linuxdell:/home/mike # rpm -i pysol-4.82-1.noarch.rpm error: Failed dependencies: tkinter >= 2.2 is needed by pysol-4.82-1 Checking i

[no subject]

2005-11-13 Thread David T
> > Thomas Edison (I think it was him) once said it took 999 failures to > make 1 success. That makes SourceForge 10 times more successful. > > >> The world is filled with >> millions of wanna-be poets, writers and creators whose sum total >> contribution to the artistic wealth of the world is neg

Re:Copyright [was Re: Python Obfuscation]

2005-11-13 Thread David T
> > Thomas Edison (I think it was him) once said it took 999 failures to > make 1 success. That makes SourceForge 10 times more successful. > > > >> The world is filled with >> millions of wanna-be poets, writers and creators whose sum total >> contribution to the artistic wealth of the world is n

Re: Copyright [was Re: Python Obfuscation]

2005-11-13 Thread David T
first post to this thread earlier today. It follows at the end of this post. On Nov 13, 2005, at 7:28 PM, Alex Martelli wrote: > David T <[EMAIL PROTECTED]> wrote: >... >> Tom Edison moved to California so _he_ could skirt copyright laws of > > I'm not aware of any m

FiPy visualization results in MacOS Tiger "Bus Error"

2005-12-02 Thread David T
Has anyone run across this error? When calling any of several visualization routines from FiPy, Python quits with a Bus Error I'm using MacOS X Tiger 10.4.3, and I've tried several builds of Python 2.4: Framework build of 2.4.1, Fink build of 2.4.2, Fink build of vtkPython 2.4.2. Same c

Re: lies about OOP

2005-01-01 Thread Daniel T.
[EMAIL PROTECTED] wrote: > A paper finding that OOP can lead to more buggy software is at > http://www.leshatton.org/IEEE_Soft_98a.html Sure, OOP *can* lead to more buggy software, that doesn't mean it always does. > Les Hatton "Does OO sync with the way we think?", IEEE Software, 15(3), > p.4

Re: lies about OOP

2005-01-01 Thread Daniel T.
"H. S. Lahman" <[EMAIL PROTECTED]> wrote: > > Les Hatton "Does OO sync with the way we think?", IEEE Software, 15(3), > > p.46-54 > > "This paper argues from real data that OO based systems written in C++ > > appear to increase the cost of fixing defects significantly when > > compared with system

Re: Mac OS and MySQLdb

2005-01-28 Thread T. Kaufmann
Andy Dustman wrote: The source is for all platforms. Use the Source, Luke. If 1.1.9 does not compile on Mac OS X, file a bug. Thanks a lot;-). -- http://mail.python.org/mailman/listinfo/python-list

Python and the web

2005-08-22 Thread Joe T.
Hello group, I'm new to Python and have a couple of beginner questions that I'm hoping someone can answer. 1. Is python something that you would recommend using for server side web programming? Something like C# or Java? If so, are there any resources that you could point me to that would help m

Re: Jargons of Info Tech industry

2005-08-25 Thread T Beck
today only remotely resembles the original, so the argument that usenet should never change seems a little heavy-handed and anachronistic. --T Beck -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-26 Thread T Beck
John Bokma wrote: > "T Beck" <[EMAIL PROTECTED]> wrote: > > > If we argue that people are evolving the way e-mail is handled, and > > adding entire new feature sets to something which has been around > > since the earliest days of the internet, then that&#

Re: Jargons of Info Tech industry

2005-08-29 Thread T Beck
John Bokma wrote: > "T Beck" <[EMAIL PROTECTED]> wrote: > > > [snip] > > alongside of it. The internet is a free-flowing evolving place... to > > try to protect one little segment like usenet from ever evolving is > > just ensuring it's slo

Re: getting text from WinXP console

2005-03-22 Thread Mark T.
"Chris Maloof" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > Does anyone know how I can read the ASCII text from a console window > (from another application) in WinXP? It doesn't sound like a major > operation, but although I can find the window via pywin32, I haven't

Newbiw - PypenGL and OpenGLContext

2005-03-28 Thread Steve T
I have been searching for a language to help with a product I am developing - last week I discovered PYOpenGL - looks really useful. I found some demos which I studied to create part of what I need (a heap of boxes) but when I try and add an image to the box faces it looks as if I have to delve in

Signals and system

2005-04-10 Thread T Koster
Hi folks, My python program needs to download a number of files. Each file comes as a list of mirrors of that file. Currently, I am using system (os.system) to run wget. The mechanism is in a loop, so that it will try all the mirrors while wget is exiting with a non-zero exit status. This is

Re: Variables

2005-04-24 Thread T Väntänen
him that foo is indeed a variable. Thanks all! Richard B. For example in physics formula for falling object distance: d = (1/2)*g*t^2 In physics (math) d and t are variables and g is a constant. When you start to calculate the distance you assign some values to the variables, you cant touch the

Re: Python Challenge ahead [NEW] for riddle lovers

2005-04-29 Thread Mark T
"pythonchallenge" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > For the riddles' lovers among you, you are most invited to take part > in the Python Challenge, the first python programming riddle on the net. > > You are invited to take part in it at: > http://www.pythonchallenge.c

String Template

2013-12-27 Thread t . giuseppe
Hello I'm rewriting a program previously written in C #, and trying to keep the same configuration file, I have a problem with untapped strings. The previous configuration files provide an input template string of this type: This string is parsed and the values are replaced with the actual

Python - parsing nested information and provide it in proper format from log file

2015-02-19 Thread Jay T
have some log file which has nested data which i want to filter and provide specific for student with total counts Here is my log file sample: Student name is ABC Student age is 12 student was late student was late student was late Student name is DEF student age is 13 student was late

Cannot Uninstall 3.4

2015-03-26 Thread T Younger
I have 3.4.1 (8/14) and replaced it with 3.4.2 (12/14) Neither of these uninstalled or I do not believe even had the option. I now wanted to update to 3.4.3 and the uninstall fails, provided the message that the installer is missing a program then backs off the changes. I loaded 3.5.0a2 and then

Re: Sqlite pragma statement "locking_mode" set to "EXCLUSIVE" by default

2015-09-21 Thread Sol T
Is anyone aware of documentation that describes how to compile various sqlite options? On Thu, Sep 17, 2015 at 2:24 PM, sol433tt wrote: > hello > > I would like to have the Sqlite pragma statement "locking_mode" set to > "EXCLUSIVE" by default (RO database). Does this need to be compiled in? H

Re: Sqlite pragma statement "locking_mode" set to "EXCLUSIVE" by default

2015-09-22 Thread Sol T
Hi, I know I can do this per connection, however how can I have it set to default? Does this need to be compiled into python? On Tue, Sep 22, 2015 at 2:04 PM, Ryan Stuart wrote: > On Thu, Sep 17, 2015 at 2:24 PM, sol433tt wrote: > >> I would like to have the Sqlite pragma statement "locking_mo

Failure to build Python 3.3.2 SSL Module

2013-05-01 Thread George T
Anyone have any thoughts on building Python 3.3.2 with the SSL module? I'm on RedHat Enterprise 6.4 and used Yum to install the openssl and openssl-devel 1.0.1e packages. But I keep getting a failure to build the SSL module - even if I set CFLAGS and LDFLAGS to find the headers and libs or addit

Re: OT: Degrees as barriers to entry [was Re: - E04 - Leadership! Google, Guido van Rossum, PSF]

2006-01-06 Thread David T
On Jan 3, 2006, at 9:54 PM, Brian van den Broek wrote: > Steven D'Aprano said unto the world upon 03/01/06 07:33 PM: >> On Tue, 03 Jan 2006 08:27:39 -0800, Alex Martelli wrote: >> >> >>> Or some even more stringent qualification, such as the state's >>> Bar exam >>> for lawyers -- you may not b

Re: OT: What's up with the starship?

2006-10-14 Thread T. Bryan
Thomas Heller wrote: > I cannot connect to starship.python.net: neither http, nor can I login > interactively with ssl (and the host key seems to have changed as well). > > Does anyone know more? starship.python.net was compromised. It looked like a rootkit may have been installed. The volunte

starship.python.net status update

2006-10-25 Thread T. Bryan
We are now ready to start re-enabling user accounts on starship.python.net. If you had an account on the machine, then you should have received an e-mail about it already. If you didn't, you should send e-mail to webmaster. If you did, expect it to take at least 24 hours for your account to be

Re: Best Python Editor

2006-05-31 Thread t . buehler
PyScripter is small and fast. http://mmm-experts.com/Products.aspx?ProductId=4 > > Hi, > > Can anyone tell me a good python editor/IDE? > It would be great if you can provide the download link also. > > Thank You, > -Manoj- > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA

Re: Algorithm for Labels like in Gmail

2006-06-10 Thread T Väntänen
Rodolfo wrote: [...] > Ok, but how can I keep my Relationship Table out of bugs, bad data?! > I wonder how i'll control the following: > 1st) Given an generic email, in which group(s) is it contained? > 2nd) Given a group, which Emails/contacts does it contain? To none perhaps? > I don't have muc

Re: Python 411.

2006-06-13 Thread Mike T
What exactly is 411 in this context? A reference to higher education perhaps? Or perhaps part of the American constitution? What exactly? Also for that matter what is 101? Cheers, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Python password display

2006-07-06 Thread T Vantanen
On Thu, 06 Jul 2006 06:39:38 -0700, Johhny wrote: > Hello, > > I am currently writing some python code which requires the use of a > password. Currently I am using the raw_input function to take the users > input in and use it. One problem with that is the password is displayed > in clear text on

Trouble finding references that are keeping objects alive

2006-08-31 Thread t . mitchell
Hi, I have a python gtk app that allows users to have one project open at a time. I have recently discovered that projects are not being freed when they are closed - the refcount is not hitting zero. I have used gc.get_referrers() to track down a few culprits, but I have now found that some of m

Re: Trouble finding references that are keeping objects alive

2006-08-31 Thread t . mitchell
More info: The project has cyclic references to the objects in the projects, but this should be handled by gc.collect(). Here's is my 'project still alive' test: # store a weakref for debugging p = weakref.ref(self.data.project) self.data.setProject(None, None)

Re: AttributeError: 'Attributes' object has no attribute 'saveFile'

2006-08-31 Thread t . mitchell
Hi Sounds like you've got a wizard-type interface thing happening. I haven't used wxGlade but I have done similar things in GTK several times. Try putting all the windows in a notebook widget with hidden tabs. Put the 'Next Page' button and the filename outside the notebook. This makes the filen

Re: MORE EVIDENCE Re: 911 FORGERY bigger than the Protocols of the Learned Elders of Zion

2006-09-17 Thread T Wake
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In reply to the ATTACK DOGS OF THE CRIMINAL GOVERNMENT: > Oooh, you used capital letters. You MUST be sane (not to mention your esoteric choice of newsgroups to post to...) Is it time of the year for nutcase-cranks to come out a

Accessing Windows Serial Port

2006-02-06 Thread George T.
missed an option? Can anyone provide me an example of how to access the serial port with pyserial? Thanks George T. -- http://mail.python.org/mailman/listinfo/python-list

Graph plotting module

2007-06-04 Thread Viewer T.
Is there a python module anywhere out there that can plot straight line graphs, curves (quadratic, etc). If anyone knows where I can download one, please let me know. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why can not catch the inner exception

2007-06-07 Thread Mark T
"人言落日是天涯,望极天涯不见家" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Please see the follow code, I can not catch the exception " IOError" raised from shutil.copyfile() , why? try: if (DEST_TYPE & TYPE_FTP): fn = oname

interating over single element array

2007-06-08 Thread T. Crane
Hi all, Can someone please explain to me why I can't do something like this: a = 1 for value in a: print str(value) If I run this I get the error: 'int' object is not iterable Obivously this is an absurd example that I would never do, but in my application the length of 'a' can be anythi

Re: interating over single element array

2007-06-08 Thread T. Crane
> >> any suggestions are appreciated, > > Yes, don't try iterating over objects that are not iterable. ;-) Ah, yes... I hadn't thought of that :) thanks, trevis > > What you *can* do is iterating over lists, tuples or other iterables with > just one element in them. Try ``a = [1]``. > > Ciao,

file open default location

2007-06-12 Thread T. Crane
Hi, How is the default path chosen in this instance: myFile = file('test.txt','w') Here I'm opening/creating a file but I have not specified the exact path, so how does Python determine where to 'put' this file? More to the point, how do I change what the default path is? Right now it's a ne

Re: file open default location

2007-06-12 Thread T. Crane
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Jun 12, 8:42 am, "T. Crane" <[EMAIL PROTECTED]> wrote: >> Hi, >> >> How is the default path chosen in this instance: >> >> myFile = file('test.txt','w') >

Re: file open default location

2007-06-12 Thread T. Crane
>> As an aside, I forgot to mention above that I'm using Windows XP. Any >> other ideas or possible reasons that it would not choose my script >> location as the default location to save something? > > If you open a DOS window and run Python from there, it will write the > files > in whatever d

Re: file open default location

2007-06-12 Thread T. Crane
"Gabriel Genellina" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > En Tue, 12 Jun 2007 11:48:32 -0300, <[EMAIL PROTECTED]> escribió: >> On Jun 12, 9:09 am, "Richard Brodie" <[EMAIL PROTECTED]> wrote: > >>> If you open a DOS window and run Python from there, it will write the >>> f

Re: passing arguments to tcpserver classes

2007-06-13 Thread Mark T
"Eric Spaulding" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there an easy way to pass arguments to a handler class that is used by > the standard TCPServer? > > normally --> srvr =SocketServer.TCPServer(('',port_num), TCPHandlerClass) > > I'd like to be able to: srvr =Socke

Re: ARM cross compile - one last problem

2007-06-19 Thread Justin T.
On Jun 19, 10:49 am, [EMAIL PROTECTED] wrote: > Hello all, > > I've been trying to get Python to cross compile to linux running on an > ARM. I've been fiddling with the cross compile patches > here:http://sourceforge.net/tracker/index.php?func=detail&aid=1597850&grou... > > and I've had some succe

newbie question about unicode

2007-06-22 Thread Genie T
Hi, can anybody tell me whether these two expressions have the same meanings? s = u'' s1 = s.encode('utf-8') AND s1 = unicode(s,'utf-8') Thanks :) -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie question about unicode

2007-06-23 Thread Genie T
On Jun 23, 12:04 pm, "Carsten Haese" <[EMAIL PROTECTED]> wrote: > On Sat, 23 Jun 2007 04:10:19 -, Genie T wrote > > > Hi, > > > can anybody tell me whether these two expressions have the same > > meanings? > > > s = u'' &g

Re: newbie question about unicode

2007-06-23 Thread Genie T
On Jun 23, 1:06 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 23 Jun 2007 01:10:19 -0300, Genie T <[EMAIL PROTECTED]> > escribió: > > > can anybody tell me whether these two expressions have the same > > meanings? > > > s = u'

Access Denied while trying to delete file from python script

2007-07-14 Thread Viewer T.
I am trying to write a script that deletes certain files based on certain criteria. What I am trying to do is to automate the process of deleting certain malware files that disguise themselves as system files and hidden files. When I use os.remove() after importing the os module is raises a Window

Images in Tkinter

2007-07-20 Thread Viewer T.
I wrote a class in which I have to use Tkinter images. When I create an image object in the class and reference it with the image attribute of label within the class, it does not dhow the image. It just shows a blank label that conforms to the size of the image. My images is a GIF image. My code t

Modules for peer-to-peer chat program

2007-04-24 Thread Viewer T.
I would like to know which modules I would need in order to create peer-to-peer chat program in python using Tkinter. If I would need modules that do not come packaged with python, I would appreciate information on where I can get them. Thanks. -- http://mail.python.org/mailman/listinfo/python-

Re: str() and repr() question

2007-04-26 Thread Mark T
\\test.test", "L:\\Temp\Nick\ > \test.test", "F:\\TRANSIT\\nick\\test.test") > outfile="c:\\temp\\statistic" > > > def DoTestTime(file): > StartTime = time.time() > filehandle = open(file) > alllines = filehandle.read() > filehandle

re-importing modules

2007-04-30 Thread T. Crane
Hi, When troubleshooting code that's saved in a text file, I often find that I want to make a change to it, re-save it, then reimport it. However, just typing import myTestCode doesn't always seem to import the newer version. Is it supposed to? I find that right now I often have to close my i

Logic for Chat client

2007-05-02 Thread Viewer T.
Could anyone kindly give me a comprehensive logic guide to creating a peer-to-peer chat program with Python. I would really appreciat a comprehensive guide and links to any modules I would need that are not in the standard library. -- http://mail.python.org/mailman/listinfo/python-list

preferred windows text editor?

2007-05-09 Thread T. Crane
Right now I'm using Notepad++. What are other people using? trevis -- http://mail.python.org/mailman/listinfo/python-list

namespace question

2007-05-18 Thread T. Crane
Hi, If I define a class like so: class myClass: import numpy a = 1 b = 2 c = 3 def myFun(self): print a,b,c return numpy.sin(a) I get the error that the global names a,b,c,numpy are not defined. Fairly straightforward. But if I am going to be writing seve

Re: namespace question

2007-05-18 Thread T. Crane
"Robert Kern" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > T. Crane wrote: >> Hi, >> >> If I define a class like so: >> >> class myClass: >> import numpy >> a = 1 >> b = 2 >> c = 3 >&g

Stackless Integration

2007-08-09 Thread Justin T.
Hi, I've been looking at stackless python a little bit, and it's awesome. My question is, why hasn't it been integrated into the upstream python tree? Does it cause problems with the current C-extensions? It seems like if something is fully compatible and better, then it would be adopted. However,

Re: Stackless Integration

2007-08-09 Thread Justin T.
On Aug 9, 8:57 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > First, which 'stackless'? The original continuation-stackless (of about 7 > years ago)? Or the more current tasklet-stackless (which I think is much > younger than that)? > The current iteration. I can certianly understand Guido's dist

Re: Stackless Integration

2007-08-09 Thread Justin T.
> It's not Pythonic. > > Jean-Paul Ha! I wish there was a way to indicate sarcasm on the net. You almost got people all riled up! -- http://mail.python.org/mailman/listinfo/python-list

Re: Threaded Design Question

2007-08-09 Thread Justin T.
On Aug 9, 11:25 am, [EMAIL PROTECTED] wrote: > > Here's how I have it designed so far. The main thread starts a > Watch(threading.Thread) class that loops and searches a directory for > files. It has been passed a Queue.Queue() object (watch_queue), and > as it finds new files in the watch folder

Re: Threaded Design Question

2007-08-09 Thread Justin T.
On Aug 9, 5:39 pm, MRAB <[EMAIL PROTECTED]> wrote: > On Aug 9, 7:25 pm, [EMAIL PROTECTED] wrote: > > > Hi all! I'm implementing one of my first multithreaded apps, and have > > gotten to a point where I think I'm going off track from a standard > > idiom. Wondering if anyone can point me in the r

Re: Threaded Design Question

2007-08-09 Thread Justin T.
> approach. That sounds the easiest, although I'm still interested in > any idioms or other proven approaches for this sort of thing. > > ~Sean Idioms certainly have their place, but in the end you want clear, correct code. In the case of multi-threaded programming, synchronization adds complexi

Re: Threaded Design Question

2007-08-09 Thread Mark T
y. Any suggestions would be greatly appreciated. > > ~Sean > Just rename the file. We've used that technique in a similar application at my work for years where a service looks for files of a particular extension to appear in a directory. When the service sees a file, in renames it to a different extension and spins off a thread to process the contents. -Mark T. -- http://mail.python.org/mailman/listinfo/python-list

Re: The Future of Python Threading

2007-08-10 Thread Justin T.
On Aug 10, 3:57 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Justin T. wrote: > > Hello, > > > While I don't pretend to be an authority on the subject, a few days of > > research has lead me to believe that a discussion needs to be started > > (or conti

Re: The Future of Python Threading

2007-08-10 Thread Justin T.
On Aug 10, 3:52 am, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Fri, 10 Aug 2007 10:01:51 -, "Justin T." <[EMAIL PROTECTED]> wrote: > >Hello, > > >While I don't pretend to be an authority on the subject, a few days of > >research h

The Future of Python Threading

2007-08-10 Thread Justin T.
Hello, While I don't pretend to be an authority on the subject, a few days of research has lead me to believe that a discussion needs to be started (or continued) on the state and direction of multi-threading python. Python is not multi-threading friendly. Any code that deals with the python inte

Re: The Future of Python Threading

2007-08-10 Thread Justin T.
On Aug 10, 2:02 pm, [EMAIL PROTECTED] (Luc Heinrich) wrote: > Justin T. <[EMAIL PROTECTED]> wrote: > > What these seemingly unrelated thoughts come down to is a perfect > > opportunity to become THE next generation language. > > Too late: <http://www.erlang.org/>

Re: The Future of Python Threading

2007-08-10 Thread Justin T.
On Aug 10, 10:34 am, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > >I'm not an expert, but I understand that much. What greenlets do is > >force the programmer to think about concurrent programming. It doesn't > >force them to think about real threads, which is good, because a > >computer shoul

Re: Database intensive application

2007-08-12 Thread Viewer T.
On Aug 11, 10:08 pm, Rohit <[EMAIL PROTECTED]> wrote: > I am a novice. I want to know whether Python can be used to develop > client/server database and web applications like .NET. Which is the > best book/source to learn Python? O'reilly's Learning Python by David Ascher and Mike Lutz has a reput

Re: Python equivalent of Perl's $/

2007-08-20 Thread Mark T
Without wishing to start a flame war, is there a way to do this in Python? > > Regards, John > -- > War is God's way of teaching Americans geography > Ambrose Bierce (1842 - 1914) >>> 'test\ntest2.\ntest3\ntest4.\ntest5'.split('.\n') ['test\ntest2', 'test3\ntest4', 'test5'] -Mark T. -- http://mail.python.org/mailman/listinfo/python-list

Running daemon with zdaemon ... example help?

2007-08-24 Thread Genie T
Hi all, I'm looking at zdaemon to run my python scripts as a daemon but it seems to have few example that guide me how to follow. It would be great if you can give me a simple example of how to use. I'm newbie here :) Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3000 idea: reversing the order of chained assignments

2007-03-21 Thread Mark T
e.next and placed in node, also losing the original value of node. -Mark T. > > as > node = node.next = nextnode > > only to discover that Python performs chained assignments > backwards compared to other languages, i.e. left-to-right > instead of right-to-left. From the user&#

Re: Python 3000 idea: reversing the order of chained assignments

2007-03-21 Thread Mark T
of y there. > > > Alex This is interesting: >>> class Test(object): ... def __getattribute__(self,n): ... print 'reading',n ... return object.__getattribute__(self,n) ... def __setattr__(self,n,v): ... print 'writing',n,v ... return object

Re: Python automatic testing: mocking an imported module?

2007-03-28 Thread Mark T
"Silfheed" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Heyas > > So we have the following situation: we have a testee.py that we want > to automatically test out and verifiy that it is worthy of being > deployed. We want our tester.py to test the code for testee.py > without ch

Re: elementtree question

2007-09-21 Thread Mark T
"Gabriel Genellina" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > En Fri, 21 Sep 2007 11:49:53 -0300, Tim Arnold <[EMAIL PROTECTED]> > escribi�: > >> Hi, I'm using elementtree and elementtidy to work with some HTML files. >> For >> some of these files I need to enclose the body

Re: slice with negative stride

2007-10-06 Thread Mark T
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm really confused about results of slices with negative strides. For > example > >>>mystr = 'my string' > > I would have then thought of the contents of mystr as: > > indices

Re: View XMLRPC Requests/Responses?

2007-10-15 Thread Mark T
ere any way I can force these to a log or > print them to the screen? Thanks. > > Regards, > Ken > www.wireshark.org -Mark T. -- http://mail.python.org/mailman/listinfo/python-list

Re: File Closing Problem in 2.3 and 2.4, Not in 2.5 (Final report)

2007-01-09 Thread Mark T
"Gabriel Genellina" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At Tuesday 9/1/2007 20:31, Carroll, Barry wrote: > >>I've spent about a day investigating our "too many open files" error. I >>found the following: >> >> 1. Windows XP allows a Python 2.5 script to open 509

Re: How to run external program?

2007-01-12 Thread Viewer T.
Lad wrote: > How can I run external program from Python? > I use Python with XP > Thank you for help A possible way to do this is the following: Let's say we want to run a program called program.exe from the path C/Program/Program.exe. We would first need to import the os module and type the fol

Python interfacing with COM

2007-01-28 Thread Viewer T.
I am quite a newbie and I am trying to interface with Microsoft Word 2003 COM with Python. Please what is the name of the COM server for Microsoft Word 2003? -- http://mail.python.org/mailman/listinfo/python-list

Re: how to fill many data strings from socket.recvfrom()

2007-11-03 Thread Mark T
"lgwe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I want to receive 200 udp datagrams. Each into a new data string. > But I dont know how to do that, this is wrong: > > import socket > s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) > s.bind(("",port)) > i = 0 > while i<200:

<    1   2   3   4   5   >