Huh. What would that syntax do? Turn the list into a tuple wrapping a list?
frogor tries it out
yup
dwurster joined the channel
Can see how subprocess would be confused.
gneagle
Personally I think that should be a syntax error
I think tuples should be required to be wrapped in ()
frogor
Agreed.
Tell keeleysam to bug Guido :)
gneagle
Too late now
frogor
He'll probably say "upgrade to 3!"
gneagle
Probably tons of code that rely on that
frogor
Yeah
gneagle
That too
keeleysam
2.7 will be supported long enough that y'all can just skip 3 and go to 4
gneagle
heh
I'll wait for Python X
keeleysam
the one that removes all of the features but adds good hardware acceleration?
dwurster has quit
halloweenhead joined the channel
gneagle
Maybe Python XY and Python XX
Knowledge has quit
kristophera has quit
frogor
Psh. I've skiped straight past the last version of Python to Qython.
*skipped
gneagle
I thought the last version of Python was SpamALot
frogor
:)
natewalck
Python 3 is really great imo
I enjoy it far more than 2.7
Tadpole_Jackson joined the channel
hachidorii has quit
frogor
natewalck: I believe it. There are some really sweet modules / additions to the core.
async and all the other fun
natewalck
the batteries they include are far nicer
frogor
But I'm just not willing to put investment into it for doing things with OS X.
chilcote has quit
hachidorii joined the channel
natewalck
indeed. I am writing stuff that is going on Cent
or ubuntu
hachidorii has quit
but to be honest, they also have outdated Python
For most apps that are not run by a user, virtualenvs are clearly the answer
morgsdaly joined the channel
rderewianko joined the channel
ladmin joined the channel
NexusT joined the channel
dwurster joined the channel
rickardsj has quit
ladmin has quit
dwurster has quit
slysir has quit
hachidorii joined the channel
SinTaX98 joined the channel
SinTaX98
is there a quick console command to re-partition the primary drive and format (ie clear/format the drive to remove everything)?
frogor
gneagle: Alternate though, diving back into it - that function obviously sets up a shared object ... wonder if I can call the functions it does / logic it does - create the object intentionally.
*thought
SinTaX98: The primary drive? The one you're booted off of?
gneagle
"primary" has little meaning
SinTaX98
booted off of USB drive, just need to clear the internal drive's data (will re-image later)
halloweenhead has quit
halloweenhead joined the channel
gneagle
SinTaX98: You want to use diskutil
frogor
SinTaX98: Oh. You could do a diskutil reformat of the drive to a single HFS+ partition.
That would be quick and wipe it.
SinTaX98
ahh, maybe diskutil erasedisk ? :)
bruienne joined the channel
chuckfromis has quit
halloweenhead has quit
mosen joined the channel
frogor
gneagle: Oh man. StrictSecurityPolicy::InitializeProcessGlobalATSState has an exclusion for all bundle ids starting with com.apple.
Apple is not beholden to its own rules.
gneagle
Is Python.app org.python?
frogor
Probably
org.python.python
gneagle
So there's another escape route...
mosen
still going eh
frogor
Hmm. Also.
gneagle
Nah, just stirring the ashes of the campfire
frogor
It looks like it does a path check against /System ...
jobeck has quit
I wonder if we're getting penalized for just using /usr/bin/python
I wonder if we did the full /System/Library/... path
trademarkable has quit
gneagle
Easy test
frogor
Well, it would be easy for me at home. I didn't bring my VM to work :)
mosen
frogor: ahh why not :)
frogor
heheh
trademarkable joined the channel
mosen
frogor: there should be cloud synced binary diffs of vms for that purpose only
gneagle
But I don't think StrictSecurityPolicy::InitializeProcessGlobalATSState "knows" the process was launched from /usr/bin/python
frogor
It uses CFBundleCopyExecutableURL and then runs CFURLCopyFIleSystemPath on it and CFStringHASPrefix("/System/") is wrapped around the message regarding ATS APIs.
Like you have to fail that check to get that message.
But looking more at it, looks more like it's just for triggering the message.
Like it would still happen
It's just you only get warned if it's not one of Apple's apps
mosen
I expect a write up
frogor
gneagle: Yeah, not sure. That's one of the drawbacks to the pseudo code in Hopper is that it shows you the exact register, but doesn't have visible aliases for the various names of a single register.
Mutiple registers access the same space, just different bit widths.
gneagle
and the Python.app bundle is definitely under /System