Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99732 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2015-11-30 19:48 +1100 |
| Last post | 2015-11-30 19:48 +1100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: convert php in to python Chris Angelico <rosuav@gmail.com> - 2015-11-30 19:48 +1100
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-11-30 19:48 +1100 |
| Subject | Re: convert php in to python |
| Message-ID | <mailman.31.1448873748.14615.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web