Hi All,
I am interested to interact with the command prompt, is there a module to
control the input/output stream. Thanks in advance for the pointers
Thanks
Prakash
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
Can some one suggest me a module to access SVN repository so that i could
download any given branch.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
Want to publish a log file as a web page, is there a parser to retain the
format of the text as is and then convert to html. Please provide the
relevant pointers
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
Want to know how to invoke a bat file on a remote machine.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the suggestions. Felt the thread could be of help on
consolidating the solution.
*Max Value from a csv column:*
import numpy
data1 = numpy.genfromtxt("data.csv",dtype='float',delimiter =
',',skiprows=1, skip_header=0, skip_footer=0,
usecols=11,usemask=True)
#pri
Hi All ,
Could any one help to get max and min values from a specified column of a
csv file. The* csv file is large* and hence the below code did go bad.
*Alternate
methods would be highly appreciated
**
minimum.py*:
import csv
filename = "testLog_4.csv"
f = open(filename)
def col_min(mincname):
Hi,
I am using quickfix, would like to start with that
..\quickfix-1.13.3\quickfix\examples\executor\python\executor.py asks for a
configuration file how should it look like.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
Could any one provide relevant url/s on the usage of *pyant* scripts and its
setup as well
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
Finacial Information Exchange (FIX) Protocol module is what I am looking
for.Using it I would like to pump and listen to the FIX messages--(hard
coded values). Please guide me through the relevant module (windows
installer) and anything that you foresee as a potential bottleneck.
So far I
Hi All,
During automation of a test case the web interface throws failure and sucess
text in RED and GREEN colors respectively. Is there a method to read the
color of the Success(green) and Failure(red) from the screenshots of the
webinterfaces collect for Failure and Success
say :
import Image
Very true most systems admins requirement range from : knoowing the Service
tag for a given IP to knowing the system harware details such as RAM sizes
etc. This is where Remote Inventory Management comes in handy. There is
vault of already existing vb scripts/perl scripts and batch files. To me it
Hi all,
I would like to aquint myself with Python Interview questions . I am a
Python Scripter, so if u could orient the pointers in the same direction it
would be very handy
Regards
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
Can any one mention a list of *python based tools* (existant / could be
developed) which network administrators might need.
Regards
Prakash
--
http://mail.python.org/mailman/listinfo/python-list
Code of SmallestService.py is at:
http://book.opensourceproject.org.cn/lamp/python/pythonwin/
Regards
--
http://mail.python.org/mailman/listinfo/python-list
Thank u Tim Case,
all,
Also how to run the standalone generated from script taking unc path names
to account
regards
Prakash
On Fri, Feb 12, 2010 at 6:31 PM, Tim Chase wrote:
> can any of u help to search a file say "abc.txt" in entire c drive
>> (windows)
>> and print the path/s stating such
Hi all,
can any of u help to search a file say "abc.txt" in entire c drive (windows)
and print the path/s stating such a files presence.
Thanks in advance
Regards
Prakash
--
http://mail.python.org/mailman/listinfo/python-list
*#How to use setup.py file with py2exe:*
**
python daniesetup.py py2exe --bundle 1
*#Also the data files have to taken care off in the options* list
*#Here is a sample setup.py:*
*#*
from distutils.core import setup
import py2exe
import sys
# n
Hi all,
#use py2exe properly to create a single distributable exe
#setup.py- create a single exe that runs all boxex
from distutils.core import setup
import py2exe
import sys
# no arguments
if len(sys.argv) == 1:
sys.argv.append("py2exe")
# creates a standalone .exe file, no zip files
setup(
Hi all,
I need to call an external executable from my "calling_exe.py" python
program.
Can we make a executable say->"Final.exe" from the "calling_exe.py" and the
"external.exe"
*"calling_exe.py" ->(calling)-> "external.exe"
|
Try to install "vcredist_x86.exe", then try to build using py2exe. I think
that should solve the issue
Regards
Prakash
On Mon, Nov 30, 2009 at 10:40 AM, koranthala wrote:
> This is cross post from stackoverflow - I couldnt get the solution
> there. Hopefully, nobody would mind.
>
> I am creatin
Hi all,
could any one tell how to run a python script as a scheduled service(say
every one minute). I tried out the windows registration
method but encountered an error . The error reads:
"The 'script name' on local Computer started and then stopped. Some
services stop automatically if they hav
Hi all,
I want to run dos commands through python stand alone execs. The created
Python stand alone executable (py2exe) works fine
in my machine but on transferring the "dist" folder to other systems the
executable fails to run.
I tried to copy the MSVCP90.dll in the "dist" folder. Also tried t
import os
ch = os.system("import -window root temp.png")
print ch
after that no way to store the screen shot
regards
Prakash
On Mon, Apr 6, 2009 at 10:28 PM, Roberto Fichera wrote:
> Hi All in the list,
>
> I've embedded python v2.6.x engine into my application without any problem.
> Now I woul
Hi all,
just would like to say that most of the parallel port preexistant code is
usually blinking leds,
which is the not the true reprsentation of the paralle port behaviour. Here
one needs to
think that data is coming out byte after byte. Now plz look out for the
sequence to
push data byte afte
Hi all, i am trying to make an exe out of my py *prg which write to a text
file*.
On --> python setup.py py2exe
the dist folder is created but the exe creted is not working it throws an
error "pythons ps.popen function"
setup.py:
#python setup.py py2exe
from distutils.core import setup
import p
Hi all,
I am interested in detecting usb mass storage devices, r there any scripts
in python to do so. Thanks in advance.
Regards
Prakash
--
http://mail.python.org/mailman/listinfo/python-list
let run-cmd be used why go for IDLE
2009/3/31 Dale Amon
> I wonder if someone could point me at documentation
> on how to debug some of the standard Unix type things
> in Idle. I cannot seem to figure out how to set my
> argument line for the program I am debugging in an Idle
> window. for examp
^D:"
msg = ''
count = 3
while count > 0:
line = sys.stdin.readline()
#if not line:
#break
msg = msg + line
count = count -1
# The actual mail send
server = smtplib.SMTP('localhost')
server.sendmail(fromaddr, toaddrs, msg)
server.quit()
#pl
y", line 244, in __init__
(code, msg) = self.connect(host, port)
File "C:\Python25\lib\smtplib.py", line 310, in connect
raise socket.error, msg
error: (10061, 'Connection refused')
On Mon, Mar 30, 2009 at 7:40 AM, prakash jp wrote:
> Hi all,
>
> In
Hi all,
In windows environment, how to send email from one gmail address to another
gmail (or another mail) addrress
Regards
Prakash
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I am interested in using python based TFTP over my LAN. Do let me know how
to ahead and any specific urls. Thaks in advance.
Regards
Prakash
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
On generating log file on remote systems(say client), I want to transfer
them to the Network Admins(say Server) Computer. In doing so all the
contents of the log file r not transfered, only part of the file. I
appreciate ur help, here is the pre-existant code:
file sender !!!--client:
On 28 juin, 16:55, [EMAIL PROTECTED] wrote:
> On 4 juin, 11:32, [EMAIL PROTECTED] wrote:
>
>
>
>
>
> > Hi all
> > I have a sample code to implement opc client in Python. i use a
> > file .py making by makepy with pythonwin for Com Interface.
> > i can get all server in machine, connect to server op
On 4 juin, 11:32, [EMAIL PROTECTED] wrote:
> Hi all
> I have a sample code to implement opc client in Python. i use a
> file .py making by makepy with pythonwin for Com Interface.
> i can get all server in machine, connect to server opc, disconnect,
> add group, add item, read, write item in server
On Mar 26, 5:41 pm, John McMonagle <[EMAIL PROTECTED]> wrote:
> jp wrote:
> >>> On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote:
> >>>> I have multiple PMW widgets (EntryFields, ScrolledField etc), how can
> >>>> I skip over
On Mar 26, 12:34 pm, [EMAIL PROTECTED] wrote:
> On Mar 26, 11:35 am, "jp" <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Mar 26, 11:27 am, [EMAIL PROTECTED] wrote:> On Mar 26, 11:17 am, [EMAIL
> > PROTECTED] wrote:
>
> > > > On Mar 26, 10
On Mar 26, 11:27 am, [EMAIL PROTECTED] wrote:
> On Mar 26, 11:17 am, [EMAIL PROTECTED] wrote:
>
> > On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote:
>
> > > I have multiple PMW widgets (EntryFields, ScrolledField etc), how can
> > >
On Mar 26, 11:17 am, [EMAIL PROTECTED] wrote:
> On Mar 26, 10:51 am, "jp" <[EMAIL PROTECTED]> wrote:
>
> > I have multiple PMW widgets (EntryFields, ScrolledField etc), how can
> > I skip over these widgets when using the tab key?
>
> > Thank you,
>
I have multiple PMW widgets (EntryFields, ScrolledField etc), how can
I skip over these widgets when using the tab key?
Thank you,
John
--
http://mail.python.org/mailman/listinfo/python-list
nose is a discovery-based unittest extension that provides an
alternate test discovery and running process for unittest, one that is
intended to mimic the behavior of py.test as much as is reasonably
possible without resorting to too much magic.
nose 0.9.2 includes quite a few bug fixes and new fe
On 24 Oct 2005 11:28:23 -0700, Tuvas <[EMAIL PROTECTED]> wrote:
>I have been writing a program that is designed to return an 8 byte
>string from C to Python. Occasionally one or more of these bytes will
>be null, but the size of it will always be known. How can I write an
>extention module that wil
benefit(50)
Or:
[cl.receive_benefit(50) for cl in claimaints if cl.retired())
Or:
map(
ClaimaintType.receive_benefit,
filter(
ClaimaintType.retired,
claimaints),
itertools.repeat(50))
Or:
claimaintGroup.disburse()
Jp
--
http://mail.python.org/mailman/listinfo/python-list
n, we usually don't call them messages.
Instead, "functions" or sometimes "methods".
Jp
--
http://mail.python.org/mailman/listinfo/python-list
the signal occurs.
>
> Note that "longjmp" is dangerous. Great care is necessary.
>
> It is likely that SIGINT occurrences will lead to big
> resource leaks (because your C extension will have no
> way to release resources when it gets quit with "longjmp").
>
Note that swapcontext() is probably preferable to longjmp() in almost all
circumstances. In cases where it isn't, siglongjmp() definitely is.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
memory in 1.3, but has been fixed since 2.0; and Nevow 0.4.1 made it easy to
write applications that leaked several page objects per request, which has been
fixed since 0.5. If you're using either of these older versions, upgrading may
fix your difficulties.
Hope this helps,
Jp
--
http://mail.python.org/mailman/listinfo/python-list
6750617468730a'.decode('hex'))
Jp
--
http://mail.python.org/mailman/listinfo/python-list
Pickle.dumps(Numeric.array([datetime.datetime.now() for n in
>>> range(50)])))
Segmentation fault
[EMAIL PROTECTED]:~$
Values smaller than 50 randomly mangle memory, but sometimes don't segfault the
interpreter. You can get exciting objects like instances of cPickle.Pdata or
refcnt back from the loads() call in these cases.
So, the summary is, don't do this.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
a.html
>
This reminds me of crash-only software:
http://www.stanford.edu/~candea/papers/crashonly/crashonly.html
Which seems to have some merits. I have yet to attempt to develop any large
scale software explicitly using this technique (although I have worked on
several systems that very loosely used this approach; eg, a server which
divided tasks into two processes, with one restarting the other whenever it
noticed it was gone), but as you point out, there's certainly precedent.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
point, I've had python programs run on linux for more than a year
using both Python 2.1.3 and 2.2.3. These were network apps, with both client
and server functionality, using Twisted.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
" so that it is always the
>case that d[1](3) = 3?
There are several ways, but this one involves the least additional typing:
>>> d = {}
>>> for x in 1, 2, 3:
... d[x] = lambda y, x=x: y * x
...
>>> d[1](3)
3
Who needs closures, anyway? :)
Jp
--
http://mail.python.org/mailman/listinfo/python-list
er
>words: probably the whole program could be taken over by other code by
>just one call to that function.
>
If I can call functions in your process space, I've already taken over your
whole program.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
def mro(self):
... return [float]
...
>>> class bar:
... __metaclass__ = foo
...
Segmentation fault
[EMAIL PROTECTED]:~$ python
Python 2.4.2c1 (#2, Sep 24 2005, 00:48:19)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
Type "help", "copyright&q
;s name is a pointer to where it is
defined: this is useful because it saves a lot of grepping, and unambiguously
tells the reader where the class came from. If you start making it mean
something else, you'll end up confusing people. If you just want a pretty
name, use something /other/ than the class's fully qualified Python name.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
0,range(10)))
> [0, 100, 1, 100, 2, 100, 3, 100, 4, 100, 5, 100, 6, 100, 7, 100, 8, 100, 9]
> >>>
>
>but I can't think of a use for it ;-)
I have this version:
def interlace(x, i):
"""interlace(x, i) -> i0, x, i1, x, ..., x, iN
lock creation. This is
exactly what Twisted's implementation does. You can read that version at
<http://svn.twistedmatrix.com/cvs/trunk/twisted/python/threadable.py?view=markup&rev=13745>.
The code is factored somewhat differently: the functionality is presented as
pre- and post-execution hooks, and there is function decorator. The concept is
the same, however.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
hreading.Thread, this is a native thread. It is not a
simulation. Something else is going wrong.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
de. Me being dumb or bug?
>
>Any comments welcome :)
>
You need two ARC4 instances. Performing any operation alters the internal
state (as it is a stream cipher), which is why your bytes did not come out
intact.
>>> import Crypto.Cipher.ARC4 as ARC4
>>> o = ARC4.new('hello monkeys')
>>> p = ARC4.new('hello monkeys')
>>> p.decrypt(o.encrypt('super secret message of doom'))
'super secret message of doom'
>>>
Jp
--
http://mail.python.org/mailman/listinfo/python-list
this isn't the write newsgroup to post on,
>but it's the only one I know of. IF anyone knows a good newsgroup, I'd
>appreciate it.
>
>TIA
The __del__ method is not a reliable cleanup mechanism. It runs when an object
is garbage collected, but garbage collection is unpred
he behavior you wanted:
while not t.done:
time.sleep(1)
Incidentally, the last 3 lines of ctrl_c_handler aren't really necessary.
That said, here's a simpler version of the same program, using Twisted:
import datetime
from twisted.internet import reactor, task
def hello():
print datetime.datetime.now()
task.LoopingCall(hello).start(1, now=False)
reactor.run()
Hope this helps!
Jp
--
http://mail.python.org/mailman/listinfo/python-list
ward.tap won't print out all the bytes it receives (I assume this is
just for debugging purposes anyway - if not, a simple modification will cause
it to do this). portforward.tap won't non-deterministically drop traffic,
since Twisted checks the return value of send() and properly re-transmits
anything which has not actually been sent.
Hope this helps,
Jp
--
http://mail.python.org/mailman/listinfo/python-list
you have it. It's a bit longer, but that's mostly due to the
comments. The runCmd function has a slightly different signature too, since
spawnProcess can control a few more things than Popen3, so it makes sense to
make those features available (these include setting up the chil
org/svn/Nevow/trunk/examples/livepage/livepage.py
It's not a tutorial by itself, but if you poke around some of the other
examples and read http://divmod.org/projects/nevow and some of the documents it
references, you should be able to figure things out.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
oblematic too, since it means you will only be able to send one
message for each message received from the server, and vice versa. Most chat
sessions don't play out like this.
>
>print msg
I encourage you to take a look at Twisted. It takes care of all these little
details in a cross-platform manner, allowing you to focus on your unique
application logic, rather than solving the same boring problems that so many
programmers before you have solved.
Hope this helps,
Jp
--
http://mail.python.org/mailman/listinfo/python-list
On 16 Aug 2005 07:10:25 -0700, "John F." <[EMAIL PROTECTED]> wrote:
>I want to write a client app in Python using wxWindows that connects to
>my FreeBSD server via SSH (using my machine account credentials) and
>runs a python or shell script when requested (by clicking a button for
>instance).
>
>C
re typically easy to
terminate at arbitrary times.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
cape')
'\\n\\xfe'
>>> '\\n\\xfe'.decode('string-escape')
'\n\xfe'
>>>
Introduced in Python 2.3
Jp
--
http://mail.python.org/mailman/listinfo/python-list
but I only see good info on how to create my own class
>of exception; I don't see anything on how to override an existing
>exception handler.
>
>Thanks in advance for any help.
See excepthook in the sys module documentation:
http://python.org/doc/lib/module-sys.html
Jp
--
http://mail.python.org/mailman/listinfo/python-list
distutils will rewrite the #! line to fit the configuration of the system the
program is being installed on.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
(generally the nicest) is to use a
PTY instead of a pipe: when the C library sees stdout is a pipe, it generally
decides to put output into a different buffering mode than when it sees stdout
is a pty. I'm not sure how you use ptys with the subprocess module.
Hope this helps,
Jp
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 21 Jul 2005 02:33:05 -0400, Peter Hansen <[EMAIL PROTECTED]> wrote:
>Jp Calderone wrote:
>> In the particular case of wxWidgets, it turns out that the *GUI* blocks
>> for long periods of time, preventing the *network* from getting
>> attention. But I agree w
he UI events -- the toolkit will for
>example use select() to wait for X11 socket I/O, so it can also
>respond to incoming data on another socket, provided along with a
>callback function by the application.
>
>Am I hearing that wxWindows or other popular toolkits don't
>from the window system. I expect that Qt and Tk work the same way.
But not Gtk? :) I meant what I said: wxWidgets behaves differently in this
regard than Gtk, Qt, and Tk.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 21 Jul 2005 00:51:45 -0400, Christopher Subich <[EMAIL PROTECTED]>
wrote:
>Jp Calderone wrote:
>
>> In the particular case of wxWidgets, it turns out that the *GUI* blocks
>> for long periods of time, preventing the *network* from getting
>> attention. But
for the grandparent poster.
>
>Since blocking network IO is generally slow, this should help the
>grandparent poster -- I am presuming that "the program updating itself"
>is an IO-bound, rather than processor-bound process.
In the particular case of wxWidgets, it turns o
On Sat, 16 Jul 2005 19:01:50 -0400, Peter Hansen <[EMAIL PROTECTED]> wrote:
>George Sakkis wrote:
>> "Bengt Richter" <[EMAIL PROTECTED]> wrote:
>>> >>> identity = ''.join([chr(i) for i in xrange(256)])
>>
>> Or equivalently:
>identity = string.maketrans('','')
>
>Wow! That's handy, not to ment
of how you might do this using Twisted's POP3
client support is attached.
Jp
pop3progress.py
Description: application/python
--
http://mail.python.org/mailman/listinfo/python-list
to the list sometimes, and raise
ValueErrors from the list.remove() call sometimes.
Java's model isn't really too far from the traditional one. It's a tiny bit
safer, perhaps, but that's all. For something different, take a look at
Erlang's mechanism (this has bee
The site you referenced points this out, too:
"""
Reverse DNS entries are set up with PTR records (whereas standard DNS uses A
records), which look like "25.2.0.192.in-addr.arpa. PTR host.example.com"
(whereas standard DNS would look like "host.example.com. A 192.0.2.25").
"""
Jp
--
http://mail.python.org/mailman/listinfo/python-list
er ?
>
Not using the built-in hostname resolution functions. There are a number of
third-party DNS libraries:
http://devel.it.su.se/projects/python-dns/
http://pydns.sourceforge.net/
http://dustman.net/andy/python/adns-python/
http://twistedmatrix.com/projects/names/
Jp
--
http:/
mes a global is the simplest
>way to do something... how do I delete a global if not with "del"?
>
Unless you are actually relying on the global name not being defined,
"someGlobal = None" would seem to do just fine.
Relying on the global name not being defined seems like an edge case.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
line_after = big_file.readline()
>
Yes, but you need to do it like this:
fileIter = iter(big_file)
for line in fileIter:
line_after = fileIter.next()
Don't mix iterating with any other file methods, since it will confuse the
buffering scheme.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 03 Jul 2005 15:40:38 -0500, Rocco Moretti <[EMAIL PROTECTED]> wrote:
>Jp Calderone wrote:
>> On Fri, 01 Jul 2005 15:02:10 -0500, Rocco Moretti
>> <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> I'm not aware of a language that allows it, b
ot;Michael."
>
>(1) Is Python the best language for this? (Plus is it time-efficient?)
>Is there already a search engine that can do this?
>
>(2) How can I search multiple web pages within a single location or
>path?
>
>TIA,
>
>Mike
>
Is a google search
eir own time to try to further the Python language.
Suggesting people can "like it or lump it" is a disservice to everyone.
(Sorry to single you out Peter, I know you frequently contribute great content
to these discussions too, and that there are plenty of other people who respond
in the way you have in this message, but I had to pick /some/ post to reply to)
Jp
--
http://mail.python.org/mailman/listinfo/python-list
ccum,i)
In either case, you want to write:
i = iter(g)
_accum = i.next()
for elem in i:
_accum = stuff(_accum, elem)
You also want to catch the StopIteration from that explicit .next() call, but
that's an unrelated matter.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
erator = iter()
while True:
try:
= iterator.next()
except StopIteration:
break
else:
Let's get rid of for, too.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
al
>object semantics.
Smalltalk supports this with the "become" message. I have also done an
implementation of this for Python.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
, 2))
>s.send("Hello, Mum\r\n")
s.sendall("Hello, Mum\r\n")
>
>That should point you in the right direction, anyway.
>
>There is a higher level socket framework called twisted that
>everyone seems to like. It may be worth looking at that too -
>haven't got round to it myself yet.
Twisted is definitely worth checking out.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
ermission denied')
>>> s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
>>> s.sendto('asdljk', ('255.255.255.255', 12345))
6
>>>
Yep, looks like it.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
ted the soln again, it works but feels nasty
Including paths in source files is a disaster. As soon as you do it, you need
to account for alternate installation schemes by rewriting portions of your
source files.
Separating path names from module names lets you avoid most of this mess.
Jp
--
h
diately closes the accepted connection. If you do this (perhaps in
conjunction with calling stopListening() on the port returned by listenXYZ()),
you'll never overrun the 64 object limit.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
cumentation on the dict() constructor. Why does it
>support keyword arguments?
>
> dict(foo="bar", baz="blah") ==> {"foo":"bar", "baz"="blah"}
>
>This smacks of creeping featurism. Is this actually useful in real code?
Constantly.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
self.sendLine("You're taking too long!")
def lineReceived(self, line):
self.resetTimeout()
self.sendLine("Thank you for the line of input!")
from twisted.internet import reactor, stdio
stdio.StandardIO(AnnoyProtocol())
reactor.run()
For fancy line editing su
re
more or less the same. If there is more than one file descriptor, though, the
difference should be apparent.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
t* call accept(). Telnet (or connect somehow) repeatedly, until
your connection is not accepted. On my system (Linux 2.6.10), I can connect
successfully 8 times before the behavior changes.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
p://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
Jp
--
http://mail.python.org/mailman/listinfo/python-list
port__ is what you need to replace. Note, of course, that this
only makes it trivially more difficult for malicious code to do destructive
things: it doesn't even prevent the code from importing any module it likes, it
just makes it take a few extra lines of code.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
ult here lies on gmail's end, but it is also
possible that the fault is in your code or the standard library ssl support.
Unless you want to dive into Python's OpenSSL bindings or start examining
network traces of SSL traffic, you probably won't be able to figure out who'
dn't need to go to this extreme, though.
FWIW, I think the behavior of Python wrt file subclasses that override write()
is silly, too.
Jp
--
http://mail.python.org/mailman/listinfo/python-list
ag))
>>>> clist
>[(1+2j), (3+4j), (5+6j), (7+8j)]
>
It's not a general solution:
>>> L = [1, 'hello', 2j]
>>> L.sort(key=lambda x: (x.real, x.imag))
Traceback (most recent call last):
File "", line 1, in ?
File "", line 1, in
AttributeError: 'int' object has no attribute 'real'
Jp
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 221 matches
Mail list logo