Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99732
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: convert php in to python |
| Date | 2015-11-30 19:48 +1100 |
| Message-ID | <mailman.31.1448873748.14615.python-list@python.org> (permalink) |
| References | <CAP9M=4B6oBxOG1g8E2WJSKEtCNV=WcowvU_EO7sU=eA3jaMF1w@mail.gmail.com> <CAP9M=4BabE0gg5svMB5rQJacAK-vEGR7_4suaJQ45u9NqwHqaQ@mail.gmail.com> |
On Fri, Nov 27, 2015 at 11:52 PM, RENISH RUDANI <delphicr@gmail.com> wrote: > Please help me to convert this code in python. > > > *Thanks & Regards,* > > *Renish Rudani* > > *Action Speaks Louder than Words* Sure. #!/usr/bin/python3 """Emit no output""" You didn't provide any PHP code, so the equivalent Python code is actually an empty file. I put in a docstring and a shebang so you'd be able to find what I wrote. It's possible you included an attachment, but attachments don't always survive as far as the newsgroup/mailing list. Translating code from one language to another usually requires comprehension of what the code's trying to accomplish. You might have to dig into the code a bit and get to know it, and then recreate it in Python. It's not a simple question, unless the code itself is trivially simple. Good luck! At least you're migrating to a better language. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: convert php in to python Chris Angelico <rosuav@gmail.com> - 2015-11-30 19:48 +1100
csiph-web