Commit Graph

23 Commits

Author SHA1 Message Date
Kenneth Reitz 568996e1ce Added github_token and user configurations and gist + pastebin support mechanisms. 2010-09-08 21:02:50 -04:00
Kenneth Reitz 8c4a3828b9 Added gist method. 2010-09-08 20:46:34 -04:00
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
Bob Farrell 2f300db252 help() now works just the same as vanilla help() 2008-06-25 17:49:47 +01:00
Bob Farrell 3382036844 Screwed up my commit.
Oops, messed up a little. Hopefully everything's okay. I moved
internal.py to _internal.py so it isn't cluttering the namespace so
much, and also I forgot to mention that I wrote a config parser using
shlex so you can set any attribute of the OPTS object now, e.g.

auto_display_list
syntax
arg_spec
2008-06-24 17:39:53 +01:00
Bob Farrell 93ad83025b Fixed the pager and help so the full help is displayed
Also added a 'q' option to the pager to cancel out of huge help pages.
2008-06-24 17:33:32 +01:00
Bob Farrell 2f6555bfd2 help() fixed up so it's internalised
A few people pointed out that help() can cause problems, specifically
when the help string is really big, so I've internalised it and injected
my own help() function into the interpreter which pages the output, but
it's pretty ghetto so I'm open to suggestions for improvement.

That said, it's pretty obvious that scrolling up and down (like less)
would be the main requested improvement so I should get to work on that
at some point.
2008-06-21 18:55:31 +01:00
Bob Farrell 7a1ebadb52 Whoosh, I've switched over to an installable package.
Pascal Bleser was kind enough to package bpython for OpenSUSE
and sent me a patch to have it working with distutils, which
is always nice, so thanks a lot for that, here's the new
dir structure.
2008-04-27 22:05:23 +01:00