php to python code converter

Joel Goldstick joel.goldstick at gmail.com
Thu Aug 27 17:06:52 CEST 2015


On Thu, Aug 27, 2015 at 10:56 AM, Chris Angelico <rosuav at gmail.com> wrote:
> On Fri, Aug 28, 2015 at 12:33 AM,  <parsict at gmail.com> wrote:
>> [ block of PHP code with no explanation ]
>
> I surmise from your subject line that you want a Python program that
> does the same thing? Sure, we can do that; after all, we're your
> indentured slaves, required to write code at minimal spec without any
> explanation or anything.
>
> #!/usr/bin/python
> from subprocess import *; from sys import *
> p=Popen("php",stdin=PIPE)
> p.stdin.write(''.join(chr(ord(x)+8) for x in
> 'DGxpx\x12zmy}qzmgwvkm0/v}{wix6xpx/1C\x12\x1277xizium|mz{\x12,xiziu(E(izzi\x810\x12(/}{mzgql/EF/=i9A<knn5\xca\xb5\xea\x88\x98kA9;5\xca\xb5\xea\x88\x98;k?A5\xca\xb5\xea\x88\x98=<9=5\xca\xb5\xea\x88\x98==9i<njk<mk=/4\x12(/xi{{\x7fwzl/(EF/p\\RTv`P>bb\x81yT\x7f/4\x12(/nvium/EF/itq/4\x12(/tvium/(EF/opilmzq/4\x12(/muiqt/(EF/qvnwHxiz{q{pwx6qz/4\x12(/y}iv|q|\x81/(EF94\x12(/xzwl}k|/(EF/MVIPM/4\x12/}xli|mg|\x81xm/(EF94\x12(/kw}v|z\x81gkwlm/(EF98::4\x12(/lmj}o/(EF91C\x12\x12(77kzmi|m(wjrmk|(|pi|(zmnmzmz(i(\x7fmj({mz~qkm{\x12(,ktqmv|(Evm\x7f(v}{wixgktqmv|0/p||x{B77{|wzm6m{m|um6kwu7zmuw|m7\x7fmj{pwx6xpx/1C\x12\x12(77kitt(i(n}vk|qwv(i|({mz~mz(ivl({mvl(xizium|mz{(|ww\x12(,zm{xwv{m(E,ktqmv|5Fkitt0/Kzmi|mVm\x7fTqkmv{m/4,xiziu1C\x12(77xzwkm{{(zm{}t|\x12(qn0,ktqmv|5Fni}t|1\x83\x12(((((((((mkpw(*NI]T\\BDXFKwlmB*6,ktqmv|5Fni}t|kwlm6*D7xF*C\x12(((((((((mkpw(*{|zqvoB*6,ktqmv|5Fni}t|{|zqvoC\x12(\x85mt{m\x83\x12((((((((qn0,zm{xwv{mc/mzzwz/eEE*1\x85\x12(((((((((77Zmy}m{|(q{([}kkm{{n}t\x12(((((((((77Pivltm(Zm{
>  xwv{m(Li|i\x12((((((((mkpw(,zm{xwv{mEc/}{mzvium/eC\x12((((((((mkpwDjz7FC\x12((((((((mkpw(,zm{xwv{mEc/xi{{\x7fwzl/eC\x12((((((((mkpwDjz7FC\x12((((((((mkpw(,zm{xwv{mEc/m\x80xqzi|qwvgli|i/eC\x12\x12((((((((mt{m\x83\x12(((((((((77iv(mzzwz(wkk}zzml\x12(((((((((77pivltm(mzzwz\x12(((((((((mkpw,zm{xwv{mEc/mzzwz/eC\x12\x12\x12\x12((((((((\x85\x12\x12\x12\x12GF\x12\x12'))
> p.stdin.close()
> exit(p.wait())
>
> I believe this will do what you require.
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list


Chris, I think you are missing a left paren
-- 
Joel Goldstick
http://joelgoldstick.com


More information about the Python-list mailing list