No, if we’d do anything w.r.t magic commands, I’d say we make it possible to prefix them with the percent sign so the can be used even if a variable with the same name as the command exists. In other words, allow doing “%db start” in addition to “db start”.
> I'm really loving pyzo btw Thanks, that’s always nice to hear :) From: Niall Farrington Sent: 10 March 2017 11:00 To: Pyzo Subject: [Pyzo] Re: magic command namespace I am just going to get over it because we could empower people to define their own aliases or add a shell.config, to not import magic or do whatever but it simply isn't worth adding all that bloat when I can just use 'my.test' instead of 'db.test'. Imagine the hell when people messed up their configs or renamed things they shouldn't? It would degrade the overall quality of the application and make it more difficult to maintain and support. I should stop being such a cut-paste monkey. I'm not even going to patch as I should just get used to it. The magic commands are really useful (especially pip for the forgetful) as switching windows breaks my train of thought. I'm really loving pyzo btw - geany was my IDE before - hated all the rest. My first python came with OpenCaldera Linux in 1997 so I've seen few. I don't think I've even scratched the surface yet. It's simplicity belies its power like a $2 wrench. It is really TDD friendly too. Thanks. On Wednesday, 8 March 2017 13:02:06 UTC, Niall Farrington wrote: I have only just started using pyzo as a general purpose on windows and linux. Is there a way to disable or re-map magic commands specifically 'db' as it clashes with another namespace? Currently using pyzo as a general purpose python IDE. Shell config is it? I'd prefer 'debug' instead of 'db' as I get an error when I use 'db.test' (for a mongoclient connection) and yes I know I could just not do it... just askin' don't flame me. -- You received this message because you are subscribed to the Google Groups "Pyzo" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Pyzo" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
