python Programming Glossary: perl's
Named regular expression group “(?P<group_name>regexp)”: what does “P” stand for? http://stackoverflow.com/questions/10059673/named-regular-expression-group-pgroup-nameregexp-what-does-p-stand-for a new regular expression module that more closely matches Perl's syntax. We've tried to be as close to the Perl syntax as possible..
Call exiftool from a python script? http://stackoverflow.com/questions/10075115/call-exiftool-from-a-python-script using pyexiv2 which does not have support for videos. Perl's exiftool has very broad support for images and videos and I'd..
Perl's AUTOLOAD in Python (__getattr__ on a module) http://stackoverflow.com/questions/1024455/perls-autoload-in-python-getattr-on-a-module AUTOLOAD in Python __getattr__ on a module In the past I've..
Does Python have a “compile only” switch like Perl's -c? http://stackoverflow.com/questions/1528346/does-python-have-a-compile-only-switch-like-perls-c Python have a &ldquo compile only&rdquo switch like Perl's c Perl has the c switch to compile the code without running..
Emulation of lex like functionality in Perl or Python http://stackoverflow.com/questions/160889/emulation-of-lex-like-functionality-in-perl-or-python specifically after parsing links out of web pages then Perl's WWW Mechanize module will figure things out for you in a very..
Reliable and efficient key--value database for Linux? http://stackoverflow.com/questions/1690605/reliable-and-efficient-key-value-database-for-linux various other DBM implementations such as GDBM NDBM QDBM Perl's SDBM or Ruby's probably they don't have proper crash recovery..
Is there a Python equivalent to Perl's Data::Dumper? http://stackoverflow.com/questions/2540567/is-there-a-python-equivalent-to-perls-datadumper there a Python equivalent to Perl's Data Dumper Is there a Python module that can be used in the.. there a Python module that can be used in the same way as Perl's Data Dumper module Edit Sorry I should have been clearer. I..
Insert a newline character every 64 characters using Python http://stackoverflow.com/questions/2657693/insert-a-newline-character-every-64-characters-using-python
In a Python dict of dicts, how do you emulate Perl's auto-vivification behavior? http://stackoverflow.com/questions/3122566/in-a-python-dict-of-dicts-how-do-you-emulate-perls-auto-vivification-behavior a Python dict of dicts how do you emulate Perl's auto vivification behavior Both Google and the online docs..
What are the differences between Perl, Python, AWK and sed? [closed] http://stackoverflow.com/questions/366980/what-are-the-differences-between-perl-python-awk-and-sed CPAN modules. Neither awk nor sed is extensible. One of Perl's mottos is TMTOWTDI There's more than one way to do it pronounced..
How can I check the syntax of Python script without executing it? http://stackoverflow.com/questions/4284313/how-can-i-check-the-syntax-of-python-script-without-executing-it of Python script without executing it I usually use Perl's c switch to check the syntax of the program and then exit without..
Do Python regexes support something like Perl's \G? http://stackoverflow.com/questions/529830/do-python-regexes-support-something-like-perls-g Python regexes support something like Perl's G I have a Perl regular expression shown here though understanding..
Python equivalent of Perl's while (<>) {…}? http://stackoverflow.com/questions/807173/python-equivalent-of-perls-while equivalent of Perl's while &hellip I write a lot of little scripts that process..
Perl's AUTOLOAD in Python (__getattr__ on a module) http://stackoverflow.com/questions/1024455/perls-autoload-in-python-getattr-on-a-module in Python __getattr__ on a module In the past I've used perl's AUTOLOAD facility for implementing lazy loading of symbols into..
File Manipulation: Scripting Question http://stackoverflow.com/questions/3746552/file-manipulation-scripting-question in bytes not blocks like du . On further investigation perl's s is equivalent to du b . You should probably read the man pages..
Case insensitive Python regular expression without re.compile http://stackoverflow.com/questions/500864/case-insensitive-python-regular-expression-without-re-compile but without using re.compile . I can't find anything like perl's i suffic e.g. m test i in the documentation. This is somewhat..
What is the best way to implement nested dictionaries in Python? http://stackoverflow.com/questions/635483/what-is-the-best-way-to-implement-nested-dictionaries-in-python question class AutoVivification dict Implementation of perl's autovivification feature. def __getitem__ self item try return..
What's the best way to initialize a dict of dicts in Python? [duplicate] http://stackoverflow.com/questions/651794/whats-the-best-way-to-initialize-a-dict-of-dicts-in-python question class AutoVivification dict Implementation of perl's autovivification feature. def __getitem__ self item try return..
How to change behavior of dict() for an instance http://stackoverflow.com/questions/6780952/how-to-change-behavior-of-dict-for-an-instance for this. class RecursiveDict dict Implementation of perl's autovivification feature. def __getitem__ self item try return.. Python 2.5 class RecursiveDict dict Implementation of perl's autovivification feature. def __missing__ self key value self..
Python module to shellquote/unshellquote? http://stackoverflow.com/questions/967443/python-module-to-shellquote-unshellquote in shell commands I'm looking for the python analog to perl's String ShellQuote shell_quote print String ShellQuote shell_quote..
|