16 Commits

Author SHA1 Message Date
Bob Farrell 6f48a2ca66 Save format changed to be executable code
Save to file now outputs executable code (i.e. without the >>> and ... and with
"# OUT: " prepended to all output lines). I never used this feature much but
someone asked for this behaviour.
2009-02-23 19:38:44 +00:00
Bob Farrell 4f8a616674 Bohdan Vlasyuk patch applied to check beforehand if sys.__stdout__.encoding exists
It falls back to sys.getdefaultencoding() if the stdout object doesn't have an encoding attribute.
2009-01-26 09:53:37 +00:00
Bob Farrell 242b72c527 Unicode + string concatenation bug in output bufffer fixed
Thanks to Mark Florisson for the patch.
2009-01-05 10:17:10 +00:00
Bob Farrell b8470d6a80 """echo "print 'test'" | bpython""" no longer breaks
bpython now checks if stdin is a tty and, if not, executes stdin through a
simple interpreter instance and exits.
2008-12-15 19:33:05 +00:00
Bob Farrell af1aac9557 "flush_output" option added to config
controls whether output will be flushed to stdout or not.
2008-12-15 19:16:08 +00:00
Bob Farrell 196eeb8e79 self now highlighted differently in arg list 2008-12-15 19:12:32 +00:00
Bob Farrell e4ecd23f0d Minor syntax clean-up in make_colours
Using a dict literal instead of repeated assignment
2008-11-17 11:06:56 +00:00
Bob Farrell 1495b08ddb Bugfix patches from Menno (menno@freshfoo.com)
0001-Handle-network-errors-when-posting-to-pastebin.patch
0002-Avoid-crash-when-sizing-the-terminal-window-to-be-qu.patch

Thanks, Menno. xxx
2008-11-04 14:36:26 +00:00
Bob Farrell b35e0c606c '.' now in sys.path on startup
Now you can import modules from the current working directory.
2008-08-31 15:49:16 +01:00
Bob Farrell 843e859a51 No more autoindent after a SyntaxError
This had the side-effect of me discovering the showsyntaxerror method on
code.InteractiveInterpreter, which I have now overridden and passed through my
own routines, so these errors are now in the same colour as the other
exceptions. Hooray.
2008-08-29 00:37:52 +01:00
Charles Duffy 424b7275e8 PEP-8 compliance 2008-08-28 15:38:44 -05:00
Bob Farrell 81ebedba7c No more spaces in the parens and brackets
A bunch of people were moaning about this, I guess they couldn't handle it. It
was kind of irritating me as well, it just doesn't seem to look as nice as it
should when you've got nested calls etc., oh well.
2008-08-28 21:03:25 +01:00
Charles Duffy c05747cd30 fix delete key 2008-08-28 12:56:03 -05:00
Charles Duffy d687c79cae cut+yank buffer support, ctrl+a and ctrl+e navigation 2008-08-28 12:42:38 -05:00
Bob Farrell df3be40da1 Merge commit 'd1024000b6d18ab3a835b8da41eed8cf058536ad' 2008-08-27 21:13:15 +01:00
Charles Duffy d1024000b6 Setuptoolize bpython
- Use the setuptools entry_points mechanism
 - Move the primary bpython script itself into the bpython module with
   invocation via the setuptools entry_points mechanism.
 - Fix setup.py whitespace to be consistant (4-spaces only)
 - Ignore setuptools-generated build products
2008-08-26 12:59:22 -05:00