Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #84775 > unrolled thread
| Started by | n.poppelier@xs4all.nl |
|---|---|
| First post | 2015-01-28 10:09 -0800 |
| Last post | 2015-01-29 04:29 -0500 |
| Articles | 17 — 10 participants |
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: ANN: unpyc3 - a python bytecode decompiler for Python3 n.poppelier@xs4all.nl - 2015-01-28 10:09 -0800
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-01-28 10:42 -0800
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Chris Kaynor <ckaynor@zindagigames.com> - 2015-01-28 10:47 -0800
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Chris Angelico <rosuav@gmail.com> - 2015-01-29 08:40 +1100
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-01-28 13:52 -0800
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-29 11:34 +1100
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-01-29 03:30 -0800
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Dave Angel <davea@davea.name> - 2015-02-04 18:52 -0500
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Chris Angelico <rosuav@gmail.com> - 2015-01-29 09:02 +1100
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-01-28 15:01 -0800
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Chris Kaynor <ckaynor@zindagigames.com> - 2015-01-28 15:12 -0800
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 sohcahtoa82@gmail.com - 2015-01-28 15:44 -0800
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-29 11:29 +1100
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 sohcahtoa82@gmail.com - 2015-02-04 16:19 -0800
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Michael Torrie <torriem@gmail.com> - 2015-02-04 17:37 -0700
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-01-29 06:26 +0000
Re: ANN: unpyc3 - a python bytecode decompiler for Python3 Cem Karan <cfkaran2@gmail.com> - 2015-01-29 04:29 -0500
| From | n.poppelier@xs4all.nl |
|---|---|
| Date | 2015-01-28 10:09 -0800 |
| Subject | Re: ANN: unpyc3 - a python bytecode decompiler for Python3 |
| Message-ID | <3dcc2862-bdd6-4a2a-8edb-1a9d51df26b3@googlegroups.com> |
Last night I accidentally deleted a group of *.py files (stupid-stupid-stupid!). Thanks to unpyc3 I have reconstructed all but one of them so far from the *.pyc files that were in the directory __pycache__. Many thanks!!! -- Nico
[toc] | [next] | [standalone]
| From | Devin Jeanpierre <jeanpierreda@gmail.com> |
|---|---|
| Date | 2015-01-28 10:42 -0800 |
| Message-ID | <mailman.18232.1422470585.18130.python-list@python.org> |
| In reply to | #84775 |
FWIW I put all my source code inside Dropbox so that even things I haven't yet committed/pushed to Bitbucket/Github are backed up. So far it's worked really well, despite using Dropbox on both Windows and Linux. (See also: Google Drive, etc.) (Free) Dropbox has a 30 day recovery time limit, and I think Google Drive has a trash bin, as well as a 29 day recovery for emptied trash items. That said, hindsight is easier than foresight. I'm glad you were able to recover your files! -- Devin On Wed, Jan 28, 2015 at 10:09 AM, <n.poppelier@xs4all.nl> wrote: > Last night I accidentally deleted a group of *.py files (stupid-stupid-stupid!). > > Thanks to unpyc3 I have reconstructed all but one of them so far from the *.pyc files that were in the directory __pycache__. Many thanks!!! > > -- Nico > -- > https://mail.python.org/mailman/listinfo/python-list
[toc] | [prev] | [next] | [standalone]
| From | Chris Kaynor <ckaynor@zindagigames.com> |
|---|---|
| Date | 2015-01-28 10:47 -0800 |
| Message-ID | <mailman.18234.1422471349.18130.python-list@python.org> |
| In reply to | #84775 |
On Wed, Jan 28, 2015 at 10:42 AM, Devin Jeanpierre <jeanpierreda@gmail.com> wrote: > FWIW I put all my source code inside Dropbox so that even things I > haven't yet committed/pushed to Bitbucket/Github are backed up. So far > it's worked really well, despite using Dropbox on both Windows and > Linux. (See also: Google Drive, etc.) > > (Free) Dropbox has a 30 day recovery time limit, and I think Google > Drive has a trash bin, as well as a 29 day recovery for emptied trash > items. > > That said, hindsight is easier than foresight. I'm glad you were able > to recover your files! I use Google Drive for it for all the stuff I do at home, and use SVN for all my personal projects, with the SVN depots also in Drive. The combination works well for me, I can transfer between my desktop and laptop freely, and have full revision history for debugging issues. > > -- Devin > > On Wed, Jan 28, 2015 at 10:09 AM, <n.poppelier@xs4all.nl> wrote: >> Last night I accidentally deleted a group of *.py files (stupid-stupid-stupid!). >> >> Thanks to unpyc3 I have reconstructed all but one of them so far from the *.pyc files that were in the directory __pycache__. Many thanks!!! >> >> -- Nico
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-01-29 08:40 +1100 |
| Message-ID | <mailman.18242.1422481235.18130.python-list@python.org> |
| In reply to | #84775 |
On Thu, Jan 29, 2015 at 5:47 AM, Chris Kaynor <ckaynor@zindagigames.com> wrote: > I use Google Drive for it for all the stuff I do at home, and use SVN > for all my personal projects, with the SVN depots also in Drive. The > combination works well for me, I can transfer between my desktop and > laptop freely, and have full revision history for debugging issues. I just do everything in git, no need for either Drive or something as old as SVN. Much easier. :) Using a more modern source control system (I'd normally recommend people use either git or Mercurial, though there are a few others that are also viable) saves you the trouble of "oops, I'm offline and can't reach the Subversion server" and other issues. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Devin Jeanpierre <jeanpierreda@gmail.com> |
|---|---|
| Date | 2015-01-28 13:52 -0800 |
| Message-ID | <mailman.18244.1422481989.18130.python-list@python.org> |
| In reply to | #84775 |
On Wed, Jan 28, 2015 at 1:40 PM, Chris Angelico <rosuav@gmail.com> wrote: > On Thu, Jan 29, 2015 at 5:47 AM, Chris Kaynor <ckaynor@zindagigames.com> wrote: >> I use Google Drive for it for all the stuff I do at home, and use SVN >> for all my personal projects, with the SVN depots also in Drive. The >> combination works well for me, I can transfer between my desktop and >> laptop freely, and have full revision history for debugging issues. > > I just do everything in git, no need for either Drive or something as > old as SVN. Much easier. :) Git doesn't help if you lose your files in between commits, or if you lose the entire directory between pushes. -- Devin
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2015-01-29 11:34 +1100 |
| Message-ID | <54c98027$0$12982$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #84788 |
Devin Jeanpierre wrote: > On Wed, Jan 28, 2015 at 1:40 PM, Chris Angelico <rosuav@gmail.com> wrote: >> On Thu, Jan 29, 2015 at 5:47 AM, Chris Kaynor <ckaynor@zindagigames.com> >> wrote: >>> I use Google Drive for it for all the stuff I do at home, and use SVN >>> for all my personal projects, with the SVN depots also in Drive. The >>> combination works well for me, I can transfer between my desktop and >>> laptop freely, and have full revision history for debugging issues. >> >> I just do everything in git, no need for either Drive or something as >> old as SVN. Much easier. :) > > Git doesn't help if you lose your files in between commits, Sure it does? You just lose the changes made since the previous commit, but that's no different from restoring from backup. The restored file is only as up to date as the last time a backup was taken. > or if you > lose the entire directory between pushes. Then restore from wherever you are pushing to. But as Devin says, any backup strategy that requires the user to make a backup is untrustworthy. I'm hoping that the next generation of DVCSs will support continuous commits, the next generation of editors support continuous saves, and the only time you need interact with the editor (apart from, you know, actual editing) is to tell it "start a new branch now". -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Devin Jeanpierre <jeanpierreda@gmail.com> |
|---|---|
| Date | 2015-01-29 03:30 -0800 |
| Message-ID | <mailman.18261.1422531061.18130.python-list@python.org> |
| In reply to | #84795 |
On Wed, Jan 28, 2015 at 4:34 PM, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > Devin Jeanpierre wrote: >> Git doesn't help if you lose your files in between commits, > > Sure it does? You just lose the changes made since the previous commit, but > that's no different from restoring from backup. The restored file is only > as up to date as the last time a backup was taken. Yeah. My point here is that Drive/Dropbox take snapshots at much shorter intervals than any reasonable person will commit with a DVCS, so you lose much less. -- Devin
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <davea@davea.name> |
|---|---|
| Date | 2015-02-04 18:52 -0500 |
| Message-ID | <mailman.18479.1423093970.18130.python-list@python.org> |
| In reply to | #84795 |
On 01/28/2015 07:34 PM, Steven D'Aprano wrote: > Devin Jeanpierre wrote: > >> On Wed, Jan 28, 2015 at 1:40 PM, Chris Angelico <rosuav@gmail.com> wrote: >>> On Thu, Jan 29, 2015 at 5:47 AM, Chris Kaynor <ckaynor@zindagigames.com> >>> wrote: >>>> I use Google Drive for it for all the stuff I do at home, and use SVN >>>> for all my personal projects, with the SVN depots also in Drive. The >>>> combination works well for me, I can transfer between my desktop and >>>> laptop freely, and have full revision history for debugging issues. >>> >>> I just do everything in git, no need for either Drive or something as >>> old as SVN. Much easier. :) >> >> Git doesn't help if you lose your files in between commits, > > Sure it does? You just lose the changes made since the previous commit, but > that's no different from restoring from backup. The restored file is only > as up to date as the last time a backup was taken. > > >> or if you >> lose the entire directory between pushes. > > Then restore from wherever you are pushing to. > > But as Devin says, any backup strategy that requires the user to make a > backup is untrustworthy. I'm hoping that the next generation of DVCSs will > support continuous commits, the next generation of editors support > continuous saves, and the only time you need interact with the editor > (apart from, you know, actual editing) is to tell it "start a new branch > now". In emacs, bnd the git add, git commit to Ctrl-x - s, and saving also means committing. My backup system uses MD5's to decide which files need backing up, so theoretically it shouldn't cost too much to backup the git archives once daily. It's all still under development, however. (I've been offline for two weeks, developing and running the backup system, and preparing for a complete reinstall of a corrupted system) -- DaveA
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-01-29 09:02 +1100 |
| Message-ID | <mailman.18245.1422482554.18130.python-list@python.org> |
| In reply to | #84775 |
On Thu, Jan 29, 2015 at 8:52 AM, Devin Jeanpierre <jeanpierreda@gmail.com> wrote: > Git doesn't help if you lose your files in between commits, or if you > lose the entire directory between pushes. So you commit often and push immediately. Solved. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Devin Jeanpierre <jeanpierreda@gmail.com> |
|---|---|
| Date | 2015-01-28 15:01 -0800 |
| Message-ID | <mailman.18247.1422486152.18130.python-list@python.org> |
| In reply to | #84775 |
I distrust any backup strategy that requires explicit action by the user. I've seen users fail too often. (Including myself.) -- Devin On Wed, Jan 28, 2015 at 2:02 PM, Chris Angelico <rosuav@gmail.com> wrote: > On Thu, Jan 29, 2015 at 8:52 AM, Devin Jeanpierre > <jeanpierreda@gmail.com> wrote: >> Git doesn't help if you lose your files in between commits, or if you >> lose the entire directory between pushes. > > So you commit often and push immediately. Solved. > > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-list
[toc] | [prev] | [next] | [standalone]
| From | Chris Kaynor <ckaynor@zindagigames.com> |
|---|---|
| Date | 2015-01-28 15:12 -0800 |
| Message-ID | <mailman.18248.1422486781.18130.python-list@python.org> |
| In reply to | #84775 |
On Wed, Jan 28, 2015 at 3:01 PM, Devin Jeanpierre <jeanpierreda@gmail.com> wrote: > On Wed, Jan 28, 2015 at 2:02 PM, Chris Angelico <rosuav@gmail.com> wrote: >> On Thu, Jan 29, 2015 at 8:52 AM, Devin Jeanpierre >> <jeanpierreda@gmail.com> wrote: >>> Git doesn't help if you lose your files in between commits, or if you >>> lose the entire directory between pushes. >> >> So you commit often and push immediately. Solved. > I distrust any backup strategy that requires explicit action by the > user. I've seen users fail too often. (Including myself.) That tends to be my opinion and experience as well :) And that is where Drive is quite nice: its an automatic backup to an off-site backup that requires no user action. Having some form of source control is still needed however, as you don't get all the nice history with Drive, and don't have the atomic updates - typically, every save will be uploaded, even if that change itself will break everything as you haven't made the required changes to other files. Chris K
[toc] | [prev] | [next] | [standalone]
| From | sohcahtoa82@gmail.com |
|---|---|
| Date | 2015-01-28 15:44 -0800 |
| Message-ID | <925339b3-11e9-45b8-a5bb-e0bdf66fbba5@googlegroups.com> |
| In reply to | #84792 |
On Wednesday, January 28, 2015 at 3:13:36 PM UTC-8, Chris Kaynor wrote: > On Wed, Jan 28, 2015 at 3:01 PM, Devin Jeanpierre > <jeanpierreda@gmail.com> wrote: > > On Wed, Jan 28, 2015 at 2:02 PM, Chris Angelico <rosuav@gmail.com> wrote: > >> On Thu, Jan 29, 2015 at 8:52 AM, Devin Jeanpierre > >> <jeanpierreda@gmail.com> wrote: > >>> Git doesn't help if you lose your files in between commits, or if you > >>> lose the entire directory between pushes. > >> > >> So you commit often and push immediately. Solved. > > I distrust any backup strategy that requires explicit action by the > > user. I've seen users fail too often. (Including myself.) > > That tends to be my opinion and experience as well :) > > And that is where Drive is quite nice: its an automatic backup to an > off-site backup that requires no user action. Having some form of > source control is still needed however, as you don't get all the nice > history with Drive, and don't have the atomic updates - typically, > every save will be uploaded, even if that change itself will break > everything as you haven't made the required changes to other files. > > Chris K I'd definitely store all of my programming projects in a Google Drive if I wasn't already using Dropbox. I recently finished my CS degree, and I had more than one professor say that they won't take "My computer crashed and I lost everything!" as an excuse for not being able to turn in homework. Dropbox and Google Drive are both free, easy to use, and will keep several versions of your files so you can even use the excuse that your most recent save got corrupted. Also, it was really nice to easily be able to save my work on my laptop, finish it on my desktop, and then print it from a school computer without dealing with a thumb drive.
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2015-01-29 11:29 +1100 |
| Message-ID | <54c97f06$0$12982$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #84793 |
sohcahtoa82@gmail.com wrote: > I recently finished my CS degree, and I had more than one professor say > that they won't take "My computer crashed and I lost everything!" as an > excuse for not being able to turn in homework. How about "My computer crashed and died and now I can't get to Dropbox to access my files"? "My computer got infected by ransomware which encrypted all my data files and blocks access to Dropbox." "One of my housemates torrented a Linux tarball, and the MPAA wrongly identified it as a movie file. Purely on their say-so, my ISP disabled my account and banned me from the Internet. But all is not lost, if I move 45 miles away, I can sign up with a different ISP!" "Some dude I've never seen before gate-crashed our party and was smoking pot, and the police raided us and seized my computer and everybody's phones. My lawyer tells me the raid was illegal and if spend two or three hundred thousand dollars in legal fees, I'll probably be able to get my computer back within eight years or so." "My dog ate my USB stick." :-) -- Steven
[toc] | [prev] | [next] | [standalone]
| From | sohcahtoa82@gmail.com |
|---|---|
| Date | 2015-02-04 16:19 -0800 |
| Message-ID | <5c35fafd-85ce-44d6-9573-7dc2061b0a10@googlegroups.com> |
| In reply to | #84794 |
On Wednesday, January 28, 2015 at 4:30:11 PM UTC-8, Steven D'Aprano wrote: > sohcahtoa82@gmail.com wrote: > > > I recently finished my CS degree, and I had more than one professor say > > that they won't take "My computer crashed and I lost everything!" as an > > excuse for not being able to turn in homework. > > How about "My computer crashed and died and now I can't get to Dropbox to > access my files"? If you have access to a web browser, you have access to your Dropbox files. I don't own a printer. If I needed to print something for school, I just printed it from my Dropbox at school. > "My computer got infected by ransomware which encrypted all my data files > and blocks access to Dropbox." Dropbox saves previous versions of files. Just restore them from the last version you had before they got encrypted by the ransomware. This can be done from any browser. > "One of my housemates torrented a Linux tarball, and the MPAA wrongly > identified it as a movie file. Purely on their say-so, my ISP disabled my > account and banned me from the Internet. But all is not lost, if I move 45 > miles away, I can sign up with a different ISP!" Not exactly a likely scenario, and still not a problem unless you're not allowed to access the internet from someone's WiFi. > "Some dude I've never seen before gate-crashed our party and was smoking > pot, and the police raided us and seized my computer and everybody's > phones. My lawyer tells me the raid was illegal and if spend two or three > hundred thousand dollars in legal fees, I'll probably be able to get my > computer back within eight years or so." They can take your computer and it doesn't matter if you've got your files on Dropbox. > "My dog ate my USB stick." > > :-) I never used a USB stick for school work. At this point, I'm probably sounding like a shill for Dropbox, but I'm really not. I imagine Google Drive offers the same features. Access to your files from the web, synchronization of local files among computers with access to it, and the ability to retrieve and restore files from previous versions.
[toc] | [prev] | [next] | [standalone]
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2015-02-04 17:37 -0700 |
| Message-ID | <mailman.18480.1423096689.18130.python-list@python.org> |
| In reply to | #85240 |
On 02/04/2015 05:19 PM, sohcahtoa82@gmail.com wrote: > They can take your computer and it doesn't matter if you've got your files on Dropbox. > >> "My dog ate my USB stick." >> >> :-) > > I never used a USB stick for school work. > > At this point, I'm probably sounding like a shill for Dropbox, but I'm really not. I imagine Google Drive offers the same features. Access to your files from the web, synchronization of local files among computers with access to it, and the ability to retrieve and restore files from previous versions. In my mind, they are all tools. And no one tool should be used and trusted above all others. Anyone that's programming should be using version control, period. But that's not for backup, and backup can and should be used as well as version control. Everything I work on I commit to git regularly because of the utility git gives me. If I end up trying something that doesn't pan out, I can retrace my steps (that's what branches are for). I don't have to dig through two weeks of hourly backups to find out where it was when I started making a change. Backup and git serve two complementary but different purposes. As well as regularly committing code to Git, I run CrashPlan and on a regular schedule (hourly perhaps) it copies all changes, committed or not, and including the git repo itself to the cloud, and also to my other computer, as well as my parents' computer. CrashPlan makes this stuff easy, so there's no reason not have redundancy. As well, I semi-regularly run a manual rsync backup to three different USB hard drives on a rotating backup. Is this overkill? I don't believe so. It requires virtually no work on my part. I don't see any one cloud service as the best product. Why not use them all? Encrypt if you need to, and sync hourly snapshots to google drive, drop box, and any other free cloud service.
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2015-01-29 06:26 +0000 |
| Message-ID | <mailman.18252.1422512780.18130.python-list@python.org> |
| In reply to | #84775 |
On 28/01/2015 23:12, Chris Kaynor wrote: > On Wed, Jan 28, 2015 at 3:01 PM, Devin Jeanpierre > <jeanpierreda@gmail.com> wrote: >> On Wed, Jan 28, 2015 at 2:02 PM, Chris Angelico <rosuav@gmail.com> wrote: >>> On Thu, Jan 29, 2015 at 8:52 AM, Devin Jeanpierre >>> <jeanpierreda@gmail.com> wrote: >>>> Git doesn't help if you lose your files in between commits, or if you >>>> lose the entire directory between pushes. >>> >>> So you commit often and push immediately. Solved. >> I distrust any backup strategy that requires explicit action by the >> user. I've seen users fail too often. (Including myself.) > > That tends to be my opinion and experience as well :) > s/any backup strategy/anything/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Cem Karan <cfkaran2@gmail.com> |
|---|---|
| Date | 2015-01-29 04:29 -0500 |
| Message-ID | <mailman.18260.1422523773.18130.python-list@python.org> |
| In reply to | #84775 |
On Jan 28, 2015, at 5:02 PM, Chris Angelico <rosuav@gmail.com> wrote: > On Thu, Jan 29, 2015 at 8:52 AM, Devin Jeanpierre > <jeanpierreda@gmail.com> wrote: >> Git doesn't help if you lose your files in between commits, or if you >> lose the entire directory between pushes. > > So you commit often and push immediately. Solved. > > ChrisA Just to expand on what Chris is saying, learn to use branches. I use git flow ([1][2]), but you don't need it, plain old branches are fine. Then you can have a feature branch like 'Joes_current', or something similar which you and only you push/pull from. Whenever you're done with it, you can merge the changes back into whatever you & your group see as the real branch. That is the model I use at work, and it works fairly well, and its saved me once already when the laptop I was working on decided to die on me. Thanks, Cem Karan [1] http://nvie.com/posts/a-successful-git-branching-model/ [2] https://github.com/nvie/gitflow
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web