On Mon, 15 Oct 2012 18:21:55 -0700, alex23 wrote:
> On Oct 16, 5:52 am, Chris Angelico wrote:
>> Surely there's a shorter way to rot13 a piece of text? CODE GOLF!
>
> In Python2: "a piece of string".encode('rot13') :)
And in Python 3, unfortunately there has been a right-royal mess made of
the
In article
,
rusi wrote:
> On Oct 15, 9:00 pm, John Gordon wrote:
> > In Debashish Saha
> > writes:
> >
> > > how to insert random error in a programming?
> >
> > Open the program source file and replace the Nth character with a random
> >
On Oct 15, 9:00 pm, John Gordon wrote:
> In Debashish Saha
> writes:
>
> > how to insert random error in a programming?
>
> Open the program source file and replace the Nth character with a random
> character.
I'm reminded of a description of vi:
A program wi
On Oct 16, 5:52 am, Chris Angelico wrote:
> Surely there's a shorter way to rot13 a piece of text? CODE GOLF!
In Python2: "a piece of string".encode('rot13') :)
> At very least, a single cryptic expression in place of your nice clear
> loops MUST be an improvement.
>
> d = dict((chr(i+c),chr((i+
On Mon, 15 Oct 2012 19:25:38 +0530, Debashish Saha wrote:
> how to insert random error in a programming?
While editing the source code, have your cat walk across the keyboard.
I really think you need to explain your question better.
--
Steven
--
http://mail.python.org/mailman/listi
On 15 October 2012 20:51, Chris Angelico wrote:
> On Tue, Oct 16, 2012 at 6:28 AM, Mark Lawrence
> wrote:
> > I like clearly written code like this
> >
> > "
> > d = {}
> > for c in (65, 97):
> > for i in range(26):
> > d[chr(i+c)] = chr((i+13) % 26 + c)
> >
> > print "".join([d.get(
Try fuzzing. Examples:
http://pypi.python.org/pypi/fusil/
http://peachfuzzer.com/
Victor
--
http://mail.python.org/mailman/listinfo/python-list
On 15/10/2012 20:51, Chris Angelico wrote:
On Tue, Oct 16, 2012 at 6:28 AM, Mark Lawrence wrote:
I like clearly written code like this
"
d = {}
for c in (65, 97):
for i in range(26):
d[chr(i+c)] = chr((i+13) % 26 + c)
print "".join([d.get(c, c) for c in s])
Surely there's a sh
On Tue, Oct 16, 2012 at 6:28 AM, Mark Lawrence wrote:
> I like clearly written code like this
>
> "
> d = {}
> for c in (65, 97):
> for i in range(26):
> d[chr(i+c)] = chr((i+13) % 26 + c)
>
> print "".join([d.get(c, c) for c in s])
Surely there's a shorter way to rot13 a piece of tex
On 15/10/2012 20:10, Joshua Landau wrote:
On 15 October 2012 14:55, Debashish Saha wrote:
how to insert random error in a programming?
You could always just *write* the code with random errors from the start.
Try random code, like this:
from collections import defaultdict as ð
def ire(ł
On 15 October 2012 14:55, Debashish Saha wrote:
> how to insert random error in a programming?
>
You could always just *write* the code with random errors from the start.
Try random code, like this:
from collections import defaultdict as ð
> def ire(ł, æ=[]):
> yield [ð(bool, {
On Tue, Oct 16, 2012 at 4:18 AM, Serhiy Storchaka wrote:
> On 15.10.12 17:04, Chris Angelico wrote:
>> On Tue, Oct 16, 2012 at 12:55 AM, Debashish Saha wrote:
>>> how to insert random error in a programming?
>>
>> how to ask question good in forumming?
>>
Debashish Saha wrote:
how to insert random error in a programming?
Make the changes late in the day then leave for the weekend?
Emile
--
http://mail.python.org/mailman/listinfo/python-list
On 10/15/2012 06:55 AM, Debashish Saha wrote:
how to insert random error in a programming?
Drink several beers before you start programming. :-)
--
Dr. Gary Herron
Department of Computer Science
DigiPen Institute of Technology
(425) 895-4418
--
http://mail.python.org/mailman/listinfo
On 15.10.12 17:04, Chris Angelico wrote:
> On Tue, Oct 16, 2012 at 12:55 AM, Debashish Saha wrote:
>> how to insert random error in a programming?
>
> how to ask question good in forumming?
> http://www.catb.org/~esr/faqs/smart-questions.html
>
> But here's
- Original Message -
[snip a huge list of advices example and insights]
> Then list the description on the homework
> assignment.
>
> --
>
> DaveA
Like the youngsters write:
"/bow"
JM
--
http://mail.python.org/mailman/listinfo/python-list
In Debashish Saha
writes:
> how to insert random error in a programming?
Open the program source file and replace the Nth character with a random
character.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted
Debashish Saha wrote:
> how to insert random error in a programming?
Apparently, giving it to Microsoft will work.
--
http://mail.python.org/mailman/listinfo/python-list
On 15/10/2012 14:55, Debashish Saha wrote:
how to insert random error in a programming?
Just use some of my code, it's far more random than that suggested by
others who've replied to your query.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 10/15/2012 09:55 AM, Debashish Saha wrote:
> how to insert random error in a programming?
I don't see how this phrase makes any sense without a lot more context.
If I add the words "I'd like to know" in front of the phrase, and
"session." at the end (and add
- Original Message -
> how to insert random error in a programming?
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Here's an example
from random
raise Except(randome.randinteger(0,10,'error']): return
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Oct 16, 2012 at 12:55 AM, Debashish Saha wrote:
> how to insert random error in a programming?
how to ask question good in forumming?
http://www.catb.org/~esr/faqs/smart-questions.html
But here's one way to do it:
raise
random.choice((OSError,IOError,ZeroDivis
how to insert random error in a programming?
--
http://mail.python.org/mailman/listinfo/python-list
23 matches
Mail list logo