Re: using pdb and catching exception

2007-12-06 Thread R. Bernstein
Just checked to see how Ruby deals with this. Both languages allow one to register a trace functon to catch "events" like call, line, return, exception, etc. Ruby however register an event before the raise takes place. It might be cool for some good person to go through the process of making a for

Re: continue out of a loop in pdb

2006-05-23 Thread R. Bernstein
Gary Wessle <[EMAIL PROTECTED]> writes: > Hi > > using the debugger, I happen to be on a line inside a loop, after > looping few times with "n" and wanting to get out of the loop to the > next line, I set a break point on a line after the loop structure and > hit c, that does not continue out of

Re: continue out of a loop in pdb

2006-05-23 Thread R. Bernstein
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > > the code works with no problem, I am playing around with the pdb, i.e > > > > from pdb import * > > set_trace() for i in range(1,50): > > print i > > print "tired of this" > > print "I am out" > > > > [EMA

Re: continue out of a loop in pdb

2006-05-23 Thread R. Bernstein
Here's the revision I just made for pydb's documentation (in CVS). I welcome suggestions for improvement. set_trace([cmdfile=None]) Enter the debugger before the statement which follows (in execution) the set_trace() statement. This hard-codes a call to the debugger at a given point

Re: Adding a HTTP header to a SOAPpy request

2008-01-04 Thread r . grimm
On Jan 3, 5:43 pm, Matias Surdi <[EMAIL PROTECTED]> wrote: > Hi, > > Could anybody tell me which is the easier way to do a SOAP call to a web > service wich requires an http header to be present? > > I can't figure it out. > > Thanks a lot > > Some code I'm using: > > import SOAPpy > s = > SOAPpy.S

Re: Details about pythons set implementation

2008-01-05 Thread r . grimm
On Jan 4, 6:08 pm, Sion Arrowsmith <[EMAIL PROTECTED]> wrote: > Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > > >BTW if you're using C++, why not simply use std::set? > > Because ... how to be polite about this? No, I can't. std::set is > crap. The implementation is a sorted sequence -- if you're luc

Re: python interfaces

2008-01-05 Thread r . grimm
On Jan 4, 6:01 pm, Sion Arrowsmith <[EMAIL PROTECTED]> wrote: > hyperboreean <[EMAIL PROTECTED]> wrote: > >Why doesn't python provide interfaces trough its standard library? > > Because they're pointless. Java interfaces are a hack around the > complexities of multiple inheritence. Python does mul

Re: python interfaces

2008-01-06 Thread r . grimm
On Jan 6, 11:01 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Interfaces are a extremly smart Design Principle in static typed > > languages like Java and C++. > > that's somewhat questionable in itself, and even more questionable as an > argument for interfaces in Pyt

Is netstat in python is enough for getting ip address of all system connected in network

2008-01-28 Thread Manikandan R
hai everybody, I am working in python 2.4. I am in need to get the ip address of all the devices connected in the network. Is its possible in python, can anyone help me please. If its possible, can U give me the code. Mani. -- http://mail.python.org/mailman/listinfo/python-list

How to collect all the IP address of the system connected in network?

2008-01-29 Thread Manikandan R
Hai, I am working with python 2.4. I am new to python, I need to collect all the ipaddress of the systems connected in the network for my project. While browsing I come accross Ur link. I think U peoples can help me. Can U please send me the code and guide me to get it. I am i

Fwd: The results of your email commands

2008-01-29 Thread Manikandan R
Hai, I am working with python 2.4. I am new to python, I need to collect all the ipaddress of the systems connected in the network for my project. While browsing I come accross Ur link. I think U peoples can help me. Can U please send me the code and guide me to g

Hai...

2008-02-11 Thread Manikandan R
Hai, I am working in Python scripting. I an need to find out all the device connected in the network. Just I planned to broad cast the ping address and use the ARP table to get the IP address of the system in the network. As, I am working in Win XP i am not able to use ping -b command to broad

How to broad cast ping address.......

2008-02-11 Thread Manikandan R
Hai, I am working in Python scripting. I an need to find out all the device connected in the network. Just I planned to broad cast the ping address and use the ARP table to get the IP address of the system in the network. As, I am working in Win XP i am not able to use ping -b command to broad

How to increase the APR cache size?????

2008-02-15 Thread Manikandan R
Hai Friends, How can we increase the ARP cache size? For storing a single entry how many bytes will it takes? What is the default ARP cache size? (Plz mention you are saying in bytes or in number of entries it can store) Thank's and Regard's, R.Ma

reg - timer........

2008-02-21 Thread Manikandan R
Hai.. I have planned to access the web page via python coding, for that I use url = 'http:\\username:[EMAIL PROTECTED]' urllib.urlopen(url) It opens fine when its correct web page else it hangs there So I have planned to start a timer when i launch the web pa

Problem with threads in python????????

2008-02-25 Thread Manikandan R
Hai, Is it possible to share a single variable between multiple threads. For eg: Class A: thread_init() def run(): fun1() def fun(): assume some arithmatic operation is going on according to the input given and each fun will *give different outp

Fwd: Problem with threads in python????????

2008-02-25 Thread Manikandan R
Hai, Is it possible to share a single variable between multiple threads. For eg: Class A: thread_init() def run(): fun1() def fun(): assume some arithmatic operation is going on according to the input given and each fun will *give different outp

Re: removing all instances of a certain value from a list

2008-03-21 Thread r . grimm
On Mar 19, 11:28 pm, Lee Sander <[EMAIL PROTECTED]> wrote: > Hi, > I have a float array ( eg [-1.3, 1.22, 9.2, None, 2.3] ) but there are > many missing vlaues which are represented as None. I would like to > remove all such instances in one go. > There is a remove function but it removes only the

singleton decorator

2008-03-27 Thread r . grimm
Hallo, playing with the decorators from PEP 318 I found the elegant singleton decorator. def singleton(cls): instances = {} def getinstance(): if cls not in instances: instances[cls] = cls() return instances[cls] return getinstance @singleton class A: pass

Re: are there some special about '\x1a' symbol

2009-01-14 Thread R Fritz
onnect a teletype. Does this qualify me for the dinosaur award? R Fritz On 2009-01-14 07:15:33 -0800, Mel said: Steve Holden wrote: Unknown wrote: On 2009-01-12, John Machin wrote: I didn't think your question was stupid. Stupid was (a) CP/M recording file size as number of 128-byte sec

How to get atexit hooks to run in the presence of execv?

2009-01-28 Thread R. Bernstein
As a hobby I've been (re)writing a debugger. One of the commands, "restart", works by calling an execv(). You may need to do this when the program you are debugging is threaded or when one needs to ensure that all program state is reinitialized. Recently, I added remote debugging via TCP sockets.

Re: How to get atexit hooks to run in the presence of execv?

2009-01-29 Thread R. Bernstein
Mark Wooding writes: > ro...@panix.com (R. Bernstein) writes: > >> Recently, I added remote debugging via TCP sockets. (Well, also FIFO's >> as well but closing sockets before restarting is what's of concern.) >> >> I noticed that execv in Python 2.5.2 doe

"server chain" with python socket module

2008-12-02 Thread B R
dear all, I want to connect my A machine to the E server via servers B, C and D, is there a way to set-up such "server chain" with python socket module (or other module) ? many thanks boris vn%ibo%ris[at]hotmail.com _ News, entertain

Re: Pythonic design patterns

2008-12-06 Thread r . grimm
Hallo, > users in this forum has been kind enough to point out. Only my > implementations are often not that clean, and I may call things > something different than the normal convention, which is a source of > confusion for myself and others trying to communicate with me. I think, you should start

pydb 1.24

2008-12-10 Thread R. Bernstein
This release is to clear out some old issues. It contains some bugfixes, document corrections, and enhancements. Tests were revised for Python 2.6 and Python without readline installed. A bug involving invoking from ipython was fixed. The "frame" command is a little more like gdb's. Exceptions are

Re: trace module and doctest

2008-12-11 Thread R. Bernstein
On Nov 22 2007, 4:31 pm, [EMAIL PROTECTED] (John J. Lee) wrote: > [EMAIL PROTECTED] writes: > > I am trying to use thetracemodulewith the --count flag to test for > > statement coverage in my doctests. Thetracecoverage listing is very > > weird, marking many statements as unexecuted which were cle

Re: Deeper tracebacks?

2008-12-11 Thread R. Bernstein
brooklineTom <[EMAIL PROTECTED]> writes: > I want my exception handler to report the method that originally > raised an exception, at the deepest level in the call-tree. Let give > an example. > > import sys, traceback > class SomeClass: > def error(self): > """Raises an AttributeError

Re: sys.settrace 'call' event behavior

2008-12-11 Thread R. Bernstein
On Jun 21, 8:47 am, Michal Kwiatkowski <[EMAIL PROTECTED]> wrote: > I'm building a tool to trace all function calls usingsys.settrace > function from the standard library. One of the awkward behaviors of > this facility is that the class definitions are reported as 'call' > events.[1] Since I don't

Custom debugger trace hooks

2008-12-11 Thread R. Bernstein
A colleague recently asked this: Is there a cleaner way to dump a trace/track of running a python script. With Pydb I made work-around with import pydb pydb.debugger(dbg_cmds=['bt', 'l', 's']*300 + ['c']) So now I have a dump of 300 steps with backtraces, so I can easily compar

Re: pydb 1.24

2008-12-11 Thread R. Bernstein
J Kenneth King writes: > > I watched the demo video, look forward to working with it. Any links to > that emacs front-end being used in the video? > > Cheers and thanks! In short, the emacs code is bundled in with the tar and should be installed when you run "make install" However if you inst

Re: Deeper tracebacks?

2008-12-12 Thread R. Bernstein
"Gabriel Genellina" writes: .. > No, last_traceback is the last *printed* traceback in the interactive > interpreter. Well more precisely the traceback that is passed to sys.excepthook() when an unhandled exception occcurs, since the hook that might not decide to print anything ;-) > Use the t

linecache vs egg - reading line of a file in an egg

2008-12-20 Thread R. Bernstein
Does linecache work with source in Python eggs? If not, is it contemplated that this is going to be fixed or is there something else like linecache that currently works? Right now, I think pdb and pydb (and probably other debuggers) are broken when they try to trace into code that is part of an eg

Re: linecache vs egg - reading line of a file in an egg

2008-12-21 Thread R. Bernstein
Robert Kern writes: > R. Bernstein wrote: >> Does linecache work with source in Python eggs? If not, is it >> contemplated that this is going to be fixed or is there something else >> like linecache that currently works? > > linecache works with eggs and other zippe

How do I DRY the following code?

2008-12-29 Thread R. Bernstein
How do I DRY the following code? class C(): def f1(self, arg1, arg2=None, globals=None, locals=None): ... unique stuff #1 ... ... some common stuff #1 ... ret = eval(args, globals, locals) ... more stuff #2 ... return retval def f2(self, arg1, arg2=None, *args,

Re: How do I DRY the following code?

2008-12-30 Thread R. Bernstein
Steven D'Aprano writes: > On Mon, 29 Dec 2008 21:13:55 -0500, R. Bernstein wrote: > >> How do I DRY the following code? >> >> class C(): > [snip code] > > Move the common stuff into methods (or possibly external functions). If > you really need to, mak

Re: How do I DRY the following code?

2008-12-30 Thread R. Bernstein
"Patrick Mullen" writes: >> f1(...): >> "Docstring f1" >> c = C() >> return c.f1(...) >> >> f2(...): >> "Docstring f2" >> c = C() >> return c.f2(...) > > Why not just do either this: > C().f2(..) where you need f2 Yes, this is a little better. Thanks! -- http://mail.python.org/mailman/listi

Re: folder extraction

2009-01-01 Thread r . grimm
On Dec 30 2008, 4:30 pm, ibpe...@gmail.com wrote: > how do i get along with this task of extracting multiples folder and > generating their names individually in a their respective files as > they were generated. Hallo, I hope, that I interpret your question in the right way. You can use the follo

OTish: convince the team to drop VBScript

2009-02-28 Thread Christian R.
Hello, Brand new to this list, I've not found a quick way to search the archives, and this is not a technical question. I've just been hired at a digital signage company. They use VBScript for simple-to-medium scripting. I've abandoned it about 8 years ago. I want to convince the manager and the

comtypes CreateObject problem

2009-04-01 Thread Maria R
We get the following, less favourable respons :o( Any advice is greatly appreciated!! Setting is python 2.5.2, windows xp professional SP3, SolidEdge V20 SP10 We have success with comtypes interfacing other software like SmarTeam (PDM/PLM software) and of course Excel and alike. Thnx IDLE 1.2.2

Web validation

2009-04-06 Thread r-w
If no internet connection: if have files: run anyway, with warning else: ERROR else: if error getting hash/files: if have files: run anyway, with warning else: ERROR else: run -- http://mail.python.org/mailman/listinfo

pseudo-code

2009-04-07 Thread r-w
If no internet connection: if have files: run anyway, with warning else: ERROR else: if error getting hash/files: if have files: run anyway, with warning else: ERROR else: run -- http://mail.python.org/mailman/listinfo

Re: pseudo-code

2009-04-07 Thread r-w
r-w wrote: If no internet connection: if have files: run anyway, with warning else: ERROR else: if error getting hash/files: if have files: run anyway, with warning else: ERROR else: run Sorry, guys. This should

Re: 3D plotting in a GUI

2009-04-07 Thread R Fritz
I've been doing 3D modeling for lighting simulation and I found two reasonably well-supported solutions: VTK and OpenSceneGraph. VTK generally has a research slant and has what I believe are reasonably strong Python bindings. OSG is closer to VR/AR/Flight Simulation applications and the Pytho

http://wwwx.cs.unc.edu/~gb/wp/blog/2007/02/04/python-opencv-wrapper-using-ctypes/

2009-04-17 Thread r-w
http://wwwx.cs.unc.edu/~gb/wp/blog/2007/02/04/python-opencv-wrapper-using-ctypes/ -- http://mail.python.org/mailman/listinfo/python-list

Re: getting linux distro used...

2009-04-27 Thread r-w
deostroll wrote: Hi, I just found that you could use platform.system() to get the underlying os used. But is there a way to get the distro used...? --deostroll platform.dist() returns ('debian', 'lenny/sid', '') on my Ubuntu box. Ross -- http://mail.python.org/mailman/listinfo/python-list

idea

2009-05-07 Thread r-w
Redirect sys.stderr to the log file in ANUGA logging. This might catch unexpected exceptions. -- http://mail.python.org/mailman/listinfo/python-list

Running an interactive interpreter inside a python

2008-05-14 Thread R. Bernstein
The next release of pydb will have the ability to go into ipython from inside the debugger. Sort of like how in ruby-debug you can go into irb :-) For ipython, this can be done pretty simply; there is an IPShellEmbed method which returns something you can call. But how could one do the same for th

Re: Running an interactive interpreter inside a python

2008-05-15 Thread R. Bernstein
d come from a stackframe f_globals. It might be possible to save and restore __main__.__dict__ before and after the call to interact(). Probably would have been cooler to design interact() to take a globals parameter, same as eval does. > > On May 15, 11:31 am, [EMAIL PROTECTED] (R.

Re: Running an interactive interpreter inside a python

2008-05-15 Thread R. Bernstein
castironpi <[EMAIL PROTECTED]> writes: > On May 15, 6:26 am, [EMAIL PROTECTED] (R. Bernstein) wrote: >> "Alan J. Salmoni" <[EMAIL PROTECTED]> writes: >> >> > I'm not sure if this is exactly what you're after, but try looking >>

Possibly pydb 1.23 release around May 30

2008-05-21 Thread R. Bernstein
A release of pydb (1.23) is currently scheduled for around May 30th. If you can and want to help make sure the release is okay, you can try out what is currently in CVS: http://sourceforge.net/cvs/?group_id=61395 I've put an interim tar at http://bashdb.sf.net/pydb-1.23cvs.tar.gz Changes in

Re: pydb remote debugging/cmd.Cmd over socket?

2008-05-28 Thread R. Bernstein
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > Hi, > > I'm fiddling around with pydb. Installation and usage are fine. What I > especially like is the fact that you can attach a signal such that you drop > into debugging mode on demand. > > But this is of limited use to me in situations where a

Re: Debuggers

2008-06-13 Thread R. Bernstein
TheSaint <[EMAIL PROTECTED]> writes: > Hi, > > while testing my program I found some strange happening with pdb and pydb. > > I like pydb because let me restart the program and nicer features, but if > errors pop up, then it will forget all variables (globals and locals gone). I'm not completely

Re: Debuggers

2008-06-17 Thread R. Bernstein
TheSaint <[EMAIL PROTECTED]> writes: > On 19:21, venerdì 13 giugno 2008 R. Bernstein wrote: > >> I'm not completely sure what you mean, but I gather that in >> post-mortem debugging you'd like to inspect local variables defined at the >> place of error. >

Re: C++ or Python

2008-07-01 Thread Maria R
On Jun 28, 12:22 am, Kurda Yon <[EMAIL PROTECTED]> wrote: > I would like to know what are advantages of Python in comparison with C > ++? In which cases and why Python can be a better tool than C++? > > Thank you! Back in 2002, we made a hard decision between c++ (well established here) java (not

extending auto_dict

2008-07-02 Thread R W
I'm using the excellent 'auto_dict' (http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/537637) but I'd like to be able to extend it. Currently my program has class auto_dict(dict): def __getitem__(self, key): return self.setdefault(key, self.__class__()) daily=auto_dict() tr

Re: handling unexpected exceptions in pdb

2008-07-10 Thread R. Bernstein
Simon Bierbaum <[EMAIL PROTECTED]> writes: > Hi all, > > I'm in an interactive session in pdb, debugging my code using > pdb.runcall. Somewhere, an exception is raised and lands uncaught on > stdout. Is there any way of picking up this exception and at least > read the full message, or even access

None in comparison

2008-07-17 Thread r . grimm
Hello, I'm a little confused about None in comparison. >>> id ( None ) 3086100672L >>> id ( 1 ) 134541104 >>> None < 1 True >>> I thought, the id of the object is the last comparison criterion. Therefore, None must be greater then 1. Where is the behaviour of the comparison defined?. In the __cmp

Re: Debugging of a long running process under Windows

2008-08-20 Thread R. Bernstein
I don't know how well Microsoft Windows allows for sending a process a signal in Python, but if the Python signal module works reasonably well on Microsoft Windows, then reread http://bashdb.sourceforge.net/pydb/pydb/lib/node38.html Should you not want to use or can't use pydb, or want to do this

Re: Debugging of a long running process under Windows

2008-08-21 Thread R. Bernstein
Tim Golden <[EMAIL PROTECTED]> writes: > R. Bernstein wrote: >> I don't know how well Microsoft Windows allows for sending a process a >> signal in Python, but if the Python signal module works reasonably >> well on Microsoft Windows, then reread >> http:

Re: pdb bug and questions

2008-09-05 Thread R. Bernstein
castironpi <[EMAIL PROTECTED]> writes: > On Sep 4, 4:22 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: >> hello, >> >> I'm trying to embed a debugger into an editor. >> I'm only interested in high level debugging. >> The first question is what debugger is the best for my purpose ? >> (pdb, pydb, rpdb

Re: pdb bug and questions

2008-09-05 Thread R. Bernstein
Stef Mientki <[EMAIL PROTECTED]> writes: > hello, > > I'm trying to embed a debugger into an editor. > I'm only interested in high level debugging. > The first question is what debugger is the best for my purpose ? > (pdb, pydb, rpdb2, smart debugger, extended debugger ? > > Second question, in no

Re: pdb bug and questions

2008-09-05 Thread R. Bernstein
Stef Mientki <[EMAIL PROTECTED]> writes: > From: Stef Mientki <[EMAIL PROTECTED]> > Subject: Re: pdb bug and questions > Newsgroups: comp.lang.python > To: "python-list@python.org" > Date: Fri, 05 Sep 2008 22:06:19 +0200 > > R. Bernstein wrote:

Re: handling uncaught exceptions with pdb?

2008-09-12 Thread R. Bernstein
Paul Rubin writes: > I think I've asked about this before, but is there a way to set up > Python to handle uncaught exceptions with pdb? I know about setting > sys.except_hook to something that calls pdb, but this is normally done > at the outer level of a program, and

Re: handling uncaught exceptions with pdb?

2008-09-12 Thread R. Bernstein
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > R. Bernstein schrieb: >> Paul Rubin <http://[EMAIL PROTECTED]> writes: >> >>> I think I've asked about this before, but is there a way to set up >>> Python to handle uncaught excep

asynchat - operation could not complete w/ blocking

2006-03-07 Thread Andreas R.
Hi again, I'm using Python's asynchat module for networking. When calling the sendall() method of asynchat, I sometimes get the error message "the operation could not complete without blocking". So how do I enable blocking with synchat, or otherwise fix this error? Thanks for the help I've recei

Re: asynchat - operation could not complete w/ blocking

2006-03-07 Thread Andreas R.
Fredrik Lundh wrote: > "Andreas R." wrote: > >> I'm using Python's asynchat module for networking. >> When calling the sendall() method of asynchat, >> I sometimes get the error message "the operation >> could not complete without bloc

Re: asynchat - operation could not complete w/ blocking

2006-03-08 Thread Andreas R.
Fredrik Lundh wrote: > "Andreas R." wrote: > >> I'm using Python's asynchat module for networking. >> When calling the sendall() method of asynchat, >> I sometimes get the error message "the operation >> could not complete without bloc

Re: asynchat - operation could not complete w/ blocking

2006-03-08 Thread Andreas R.
Dennis Lee Bieber wrote: > On Wed, 08 Mar 2006 08:57:53 +0100, "Andreas R." > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python: > > >> The problem I was having with push, is that is does not always send >> complete packages. &g

XML international characters

2006-03-10 Thread Andreas R.
Hello, When parsing XML documents containing international characters, such as the Norwegian characters Æ, Ø, Å, I get an exception in Python's SAX module. What is the correct way to parse such characters in Python? I've searched for methods to somehow escape the characters, without any luck s

SimpleXMLRPCServer

2006-03-30 Thread Andreas R.
tact all the clients? Thanks in advance. - Andreas R. www.openrts.org - Open Source RTS game -- http://mail.python.org/mailman/listinfo/python-list

[ANN] pycdio 0.11

2006-03-31 Thread R. Bernstein
pycdio is an OO Python interface to libcdio. The libcdio package contains a library for CD-ROM and CD image access. Applications wishing to be oblivious of the OS- and device-dependent properties of a CD-ROM or of the specific details of various CD-image formats may benefit from using this library

Re: How to debug python code?

2006-03-31 Thread R. Bernstein
[EMAIL PROTECTED] writes: > hi, >I am new to Python programming.I am not getting exactly pdb.Can > anyone tell me effective way to debug python code? >Please give me any example. >Looking for responce. >Thank You. > Sushant Well, I guess (in addition to the other

Re: How to debug python code?

2006-03-31 Thread R. Bernstein
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > On 30 Mar 2006 21:18:50 -0800, [EMAIL PROTECTED] declaimed the > following in comp.lang.python: > > > hi, > >I am new to Python programming.I am not getting exactly pdb.Can > > anyone tell me effective way to debug python code? > > I

Getting a list of all classes derived from a base class

2006-04-02 Thread Vijairaj R
Hi, I have a requirement to findout all the classes that are derived from a single base class. This is how I do it currently. class Test: case = [] class Test1(Test): Test.case.append("Test1") class Test2(Test): Test.case.append("Test2") 1. Is there a better way of doing this. 2. I

[ANNOUNCE] OpenRTS 0.2b2 released

2006-04-06 Thread Andreas R.
OpenRTS is a cross-platform open source real-time strategy game developed in Python. Now version 0.2b2 has been released. The new release uses the Twisted networking library for multi-player games, and has graphics from the Hard Vacuum project. The game can be downloaded from http://www.openrts

Re: debug CGI with complex forms

2006-04-08 Thread R. Bernstein
"Sullivan WxPyQtKinter" <[EMAIL PROTECTED]> writes: > When the form in one HTML is very complex with a lot of fields(input, > button,radio,checkbox etc.), setting the environment is quite > burdernsome, so I usually change the stdout and stderr of the submit > processing script to a file object to

Re: advice on this little script

2006-04-08 Thread R. Bernstein
"BartlebyScrivener" <[EMAIL PROTECTED]> writes: > There are several of these writing quotes, all good in their own way, And from Hamlet: brevity is the soul of wit. -- http://mail.python.org/mailman/listinfo/python-list

Re: Your beloved python features

2010-02-04 Thread R Fritz
My favorite feature is its readability. It's as near to pseudo-code as any language we have, and that's valuable in open source projects or when I return to code to modify it. -- http://mail.python.org/mailman/listinfo/python-list

Re: errno 107 socket.recv issue

2010-02-09 Thread r. clayton
> http://docs.python.org/library/socketserver.html > > JM each time a handler is spawned is it client specific? in other words when two clients send something to the server do handlers spawn for each of them or does everything just go into a single handler? -- http://mail.python.org/mailman/list

Re: cpan for python?

2010-03-02 Thread R Fritz
On 2010-02-28 06:31:56 -0800, sstein...@gmail.com said: On Feb 28, 2010, at 9:28 AM, Someone Something wrote: Is there something like cpan for python? I like python's syntax, but Iuse perl because of cpan and the tremendous modules that it has. -- Please search the mailing list archives.

Anushka Hot still More

2010-12-06 Thread Raksha R
http://dattinggirls.hpage.us/linklist_75279.html -- http://mail.python.org/mailman/listinfo/python-list

Import Module

2010-05-20 Thread Harikrishnan R
Hi , I have a file a.py contains from one.two import abc is there any way to find out "one.two" the import Path of abc. ? I don't want one.two.abc . Any function or attribute which directly give one.two ? -Regards -- Har

Re: any issues with long running python apps?

2010-07-14 Thread Maria R
I can second the stated opinion that Python per se is stable enough. We deliver production systems running 24/7 with uptimes counted in several months and from what I can see, compared to the OP's app, ours is vastly more complex. The only Python-related issue we have encountered so far, wrt to st

Re: MySQLdb + SSH Tunnel

2009-07-14 Thread R C
Got it working. Thanks for your help 1) login to B 2) setup a tunnel in the shell machine-B> ssh -L B_ip_address:B_port:C_ip_address:C_port u...@c_ip_address for example: machine-B has ip 1.1.1.1 machine-C has ip 2.2.2.2 then I would type: machine-B> ssh -L 1.1.1.1:3307:2.2

Re: WSGI by HTTP GET

2010-10-03 Thread Niklas R
On Oct 3, 3:05 am, MRAB wrote: > On 03/10/2010 03:29, Hidura wrote:> 2010/10/2, Niklasro: > >> Hello > >> Getting a web same page with 2 or more possible "states" eg business > >> part, private part or all parts, can you recommend a way to represent > >> the states via HTTP GET? Feasible way could

Re: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-07 Thread R. Michael Weylandt
On Fri, Jun 7, 2013 at 9:10 AM, Νικόλαος Κούρας wrote: > On 7/6/2013 10:42 πμ, Michael Weylandt wrote: > >>> os.rename( filepath_bytes filepath.encode('utf-8') > >> Missing comma, which is, after all, just a matter of syntax so it can't >> matter, right? > > I doubted that os.rename arguments must

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread R. Michael Weylandt
On Fri, Jun 14, 2013 at 9:03 AM, Nick the Gr33k wrote:> name="abcd" month="efgh" year="ijkl" > print(name or month or year) > abcd > > Can understand that, it takes the first string out of the 3 strings that has > a truthy value. > print("k" in (name and month and year)) >

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread R. Michael Weylandt
On Fri, Jun 14, 2013 at 9:24 AM, R. Michael Weylandt wrote: > On Fri, Jun 14, 2013 at 9:03 AM, Nick the Gr33k wrote:> >> >> No clue. since the expression in parenthesis returns 'abcd' how can 'k' >> contained within 'abcd' ? > > No it&

Re: A certainl part of an if() structure never gets executed.

2013-06-16 Thread R. Michael Weylandt
On Sun, Jun 16, 2013 at 10:59 AM, Nick the Gr33k wrote: > On 16/6/2013 12:22 μμ, Denis McMahon wrote: >> >> For example, in Python >> >> a = 6 >> b = a >> c = 6 >> >> a and b point to one memory location that contains the value 6 >> c points to a different memory location that contains the value 6

Re: A certainl part of an if() structure never gets executed.

2013-06-16 Thread R. Michael Weylandt
On Sun, Jun 16, 2013 at 12:06 PM, Ferrous Cranus wrote: I appreciate you've returned to your Ferrous Cranus persona for this interchange. It reminds me not to get hung up on concerns of futility... > On 16/6/2013 1:42 μμ, R. Michael Weylandt wrote: >>> >> &g

Re: A certainl part of an if() structure never gets executed.

2013-06-16 Thread R. Michael Weylandt
On Sun, Jun 16, 2013 at 2:38 PM, Ferrous Cranus wrote: > On 16/6/2013 3:04 μμ, R. Michael Weylandt wrote: >>>> ## CODE SNIPPET## >>>> a = 552315251254 >>>> b = a >>>> c = 552315251254 >>>> >>>> a is b # True _on my machin

Re: A certainl part of an if() structure never gets executed.

2013-06-16 Thread R. Michael Weylandt
On Sun, Jun 16, 2013 at 2:47 PM, Ferrous Cranus wrote: > On 16/6/2013 2:13 μμ, Jussi Piitulainen wrote: >> >> If, instead of the above, you have >> >> a = 6 >> b = a >> b = 5 >> >> you will find that b == 5 and a == 6. So b is not the same as a. Else >> one would have changed when the other change

using 3rd party dll in python - UsingTheVRTTDriver.zip (0/1)

2013-06-25 Thread Mark R Rivet
I would like to use the Gen3.dll functions from python. I understand that I can use ctypes to load the dll. I have been able to load the dll but cannot make any sense of how to use it once I have it loaded. I have been trying to understand the ctypes tutorial but I just can't wrap my head around it

Re: Intermediate Python user needed help

2012-08-05 Thread William R. Wing
On Aug 5, 2012, at 5:14 PM, John Mordecai Dildy wrote: > Im using Textwrangler and thats the only text editor that im using just > saying for everyone > -- > http://mail.python.org/mailman/listinfo/python-list (With apologies, I initially sent this privately to John, and not to the list.) As

simple client data base

2012-09-03 Thread Mark R Rivet
Hello all, I am learning to program in python. I have a need to make a program that can store, retrieve, add, and delete client data such as name, address, social, telephone number and similar information. This would be a small client database for my wife who has a home accounting business. I have

Re: simple client data base

2012-09-08 Thread Mark R Rivet
On Mon, 03 Sep 2012 16:50:14 +0200, Peter Otten <__pete...@web.de> wrote: >Chris Angelico wrote: > >> You may also be needlessly reinventing the wheel. Aren't there already >> several million basic contact databases around? Why roll your own? > >To learn a thing or two, and to stick it to the defe

Re: simple client data base

2012-09-08 Thread Mark R Rivet
On Wed, 5 Sep 2012 05:57:24 -0700 (PDT), Ramchandra Apte wrote: >On Monday, 3 September 2012 19:42:21 UTC+5:30, Manatee wrote: >> Hello all, I am learning to program in python. I have a need to make a >> >> program that can store, retrieve, add, and delete client data such as >> >> name, addre

Re: simple client data base

2012-09-08 Thread Mark R Rivet
On Tue, 04 Sep 2012 04:25:14 +0200, Thomas 'PointedEars' Lahn wrote: >Mark R Rivet wrote: > >> Hello all, I am learning to program in python. I have a need to make a >> program that can store, retrieve, add, and delete client data such as >> name, address, so

Re: simple client data base

2012-09-08 Thread Mark R Rivet
On Thu, 6 Sep 2012 01:57:04 -0700 (PDT), Bryan wrote: >Mark R Rivet wrote: >> Hello all, I am learning to program in python. I have a need to make a >> program that can store, retrieve, add, and delete client data such as >> name, address, social, telephone number and simi

Re: Invalid syntax

2012-11-07 Thread R. Michael Weylandt
On Wed, Nov 7, 2012 at 11:17 PM, Smaran Harihar wrote: > Hi guys, > > I am stuck in one of those non identifiable error location in the code. The > code keeps giving invalid syntax. This is my code. > > I am using the same code for another code and not sure why this is not > working. This is the t

<    2   3   4   5   6   7   8   9   10   11   >