92 Commits

Author SHA1 Message Date
Kenneth Reitz 7766446ac3 Updated setup.py for fork. 2010-09-08 21:09:02 -04:00
Kenneth Reitz 07ef0c561e Updated readme w/ gist support. 2010-09-08 21:08:11 -04:00
Kenneth Reitz d85393bf09 Updated example ~/.bpythonrc file w/ configuration settings for gist+github. 2010-09-08 21:03:17 -04:00
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 7b30be76f3 Changelog updated 2008-11-04 14:39:59 +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
Bob Farrell e1121e78b7 CHANGELOG update. 2008-08-28 22:51:44 +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
Charles Duffy 184af5ca97 add MANIFEST.in listing files to be included in source package 2008-08-28 11:05:09 -05:00
Bob Farrell 71423dca8b version number changed in setup.py 2008-08-27 21:14:55 +01: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 9b9e15423b History file support added.
Defaults to ~/.pythonhist but can be configured in rc (see sample-rc)
2008-08-25 18:40:11 +01:00
Bob Farrell 0c220f93de Small problem with PYTHONSTARTUP execution fixed.
Changed the way it parses and executes the file so that it actually does
execute it now; not sure what the problem was before exactly but it's fixed
now.
2008-08-25 12:52:48 +01:00
Bob Farrell b43ba3da9d Bug fix re: PYTHONSTARTUP
I've never used this feature but Thorsten Kampe reported problems with it.
Unfortunately the way I was parsing the file was line-by-line which was causing
bpython to blow up when it encountered a double line-break, which was pretty
stupid on my part. It now takes the whole file at once.
2008-08-25 00:08:53 +01:00
Bob Farrell b7eac8de8c Forgot to take out debug code
Had a temporary hack in for development that doesn't belong in the code.
2008-08-24 23:44:00 +01:00
Bob Farrell b50a6adcbf raw_input() support added.
There's now a fake stdin object instantiated when the curses interface loads
which hooks in to the interface and calls a get_key method on it (some
refactoring done to make this work cleanly). I've only provided a readline()
method on this object (write, writelines and read are there too but no-ops) as
I can't think of any other use for reading from stdin in the interactive
interpreter.
2008-08-24 23:38:48 +01:00
Bob Farrell 3020d488a1 "if not len(self.s)" changed to "if not self.s" 2008-08-23 14:31:40 +01:00
Bob Farrell 1d77549a05 Damn changelog... 2008-08-23 14:06:57 +01:00
Jørgen P. Tjernø f8c37e843e Added C-w to delete a word to the left of the cursor. 2008-08-23 13:51:39 +01:00
Jørgen P. Tjernø e2d0cf4611 Added HOME, END and DEL handling. 2008-08-23 13:51:38 +01:00
Jørgen P. Tjernø a24febc593 Fixed man- & desktopfiles. 2008-08-23 13:51:38 +01:00
Jørgen P. Tjernø dc69b0b244 Renamed Dummy-class to Struct. 2008-08-23 13:51:38 +01:00
Jørgen P. Tjernø d9be9ecc82 We now use configurable soft-tabs instead of literal tabs. 2008-08-23 13:51:38 +01:00
Jørgen P. Tjernø 9c533ea627 Cleaned up some issues from pychecker, mostly unused variables / arguments. 2008-08-23 13:51:38 +01:00
Jørgen P. Tjernø 31de75819b addc -> addstr, header comment changed. 2008-08-23 13:51:38 +01:00
Jørgen P. Tjernø 9e34f05959 Fix some warnings, allow easier checking with pychecker. 2008-08-23 13:51:38 +01:00
Bob Farrell e615100cd9 Damn changelog 2008-08-19 09:45:41 +01:00
Bob Farrell 3786392274 pyparsing and pygments are now actual dependencies.
For political reasons I have made pyparsing and pygments actual dependencies.
It seems that unless bpython actually won't work without these two packages
then certain Norwegian people will not package bpython for Ubuntu with them
as actual dependencies, meaning people would have to apt-get install them
separately (by which point they would probably have decided bpython sucks and
won't ever use it again). Jorgen is right, though - they are a huge part
of what makes bpython what it is, so they should be dependencies.
2008-08-19 09:42:21 +01:00
Bob Farrell bdc4320a72 Forgot to include the CHANGELOG, as usual. 2008-08-16 10:44:16 +01:00
Bob Farrell 29e2acbf96 Extra linebreak added to stdout output and C-d behaviour changed.
The extra linebreak was irritating but I didn't notice it on my setup because I
already have a linebreak on exit, or something. Also C-d now only exits if
there's a blank line, as per the vanilla interpreter.
2008-08-16 10:39:42 +01:00
Bob Farrell 89edc92506 Added manpage to repo, thanks Jorgen 2008-08-16 10:35:24 +01:00
Bob Farrell f75c2b398e Found a print statement lying around.
I don't really use the rc file with bpython but there was a print statement I
must have been using for debugging in the rc file parsing routine.
2008-07-19 22:57:19 +01:00
Bob Farrell d5635ab400 KeyboardInterrupt clears list win properly now 2008-07-03 12:19:53 +01:00
Bob Farrell 4a97c035a9 Typo fixed 2008-06-28 14:22:31 +01:00
Bob Farrell 39aef3aeb9 rpartition changed to rsplit for 2.4 compat 2008-06-27 17:05:41 +01:00
Bob Farrell 152a445774 Instead of the last commit, there's now an error if it crashes out
Turns out printables wasn't the only thing missing in older versions so
I put an error message in instead.
2008-06-27 16:31:40 +01:00