#python - Fri 6 Apr 2007 between 03:40 and 03:51

NY Lost Funds



ktneand it must be able to insert the result
polpakpr100: ah, yes, forgot about that one
r0b0t1Do... do do do
......
.....
polpakr0b0t1: stop spamming
r0b0t1fine, I will
polpakr0b0t1: out = open('somefile', 'w'); import sys; out.write(sys.stdin.read())
thefirstdudehow can I init an empty string
without doing string = ""?
polpakthefirstdude: why do you want to?
pr100if you want to bind a variable to the empty string why would you not want to do that?
thefirstdudeit doesn't seem natural, like in C, Perl, JScript, you init variables
polpakthefirstdude: that is "initing" the variable
thefirstdudeI guess
ktneif i import a function that calls eval() where that eval will be executed?in the current context or in the context of the module where the function is located?
polpakthefirstdude: the better question is why do you want to initialize it to an empty string to begin with?
thefirstdude: because you may not want to
r0b0t1Is there a way to get Python to guess every combonation of the letters a-z and 1-9?
polpakr0b0t1: how many places?
TFKyler0b0t1: should be
thefirstdudepolpak, I have to init it before I can append it
r0b0t112?
polpakthefirstdude: what are you appending to it?
sysfaultr0b0t1: find a permutation module, should be one out there somewhere.
thefirstdudeI have a while loop receving socket data and appending
r0b0t1permutation hmm... time for google
polpakthefirstdude: oh, sockets
thefirstdude: have you tried twisted?
thefirstdudeyeh
polpakthefirstdude: is this a homebrewed protocol?
pr100note that strings are immutable you can't "append" anything to a string
thefirstdudeI looked into twisted, didn't find what I needed
TFKyler0b0t1: something like import itertools;["".join((x, y)) for x in itertools.chain(range(ord("1"), ord("9")+1), range(ord("a"), ord("z")+1)) for y in itertools.chain(range(ord("1"), ord("9")+1), range(ord("a"), ord("z")+1))] off the top of my head
polpakthefirstdude: what did you need?
thefirstdudeI need to have like 1000 clients connected and half pending for a reply
TFKyleuh, looks like I suck
thefirstdudeit's a rule breaker server
TFKyleoh, need chr, blah
r0b0t1Not to push you, but It gives me newrotor(key[,numrotors]) and says its for encryption. should I look harder for a module?

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 

IrcArchive

NY Lost Funds