shedskin:mainline.git
6 years agoadd a test for that
Mark Dufour [Thu, 8 Dec 2011 19:34:58 +0000 (20:34 +0100)]
add a test for that

6 years agoBuiltin os.listdir: fixed the unchecked result of the call to opendir(3).
Pierre-Marie de Rodat [Thu, 8 Dec 2011 10:31:01 +0000 (11:31 +0100)]
Builtin os.listdir: fixed the unchecked result of the call to opendir(3).

opendir can sometimes return 0 (if it cannot read the directory, because of
permissions or if the directory does not exist). When this happens, readdir(3)
must not be called, but an OSError must immediately be thrown.

6 years agocleanup man page (triggered by paul boddie)
Mark Dufour [Mon, 28 Nov 2011 20:07:26 +0000 (21:07 +0100)]
cleanup man page (triggered by paul boddie)

6 years agoremove gc, random seed cruft (triggered by paul boddie)
Mark Dufour [Mon, 28 Nov 2011 19:35:13 +0000 (20:35 +0100)]
remove gc, random seed cruft (triggered by paul boddie)

6 years agosupport /etc/shedskin/FLAGS and /usr/share/shedskin/lib (triggered by paul boddie)
Mark Dufour [Mon, 28 Nov 2011 19:33:54 +0000 (20:33 +0100)]
support /etc/shedskin/FLAGS and /usr/share/shedskin/lib (triggered by paul boddie)

6 years agoMerge branch 'master' of gitorious.org:shedskin/mainline
Mark Dufour [Tue, 1 Nov 2011 15:31:09 +0000 (16:31 +0100)]
Merge branch 'master' of gitorious.org:shedskin/mainline

6 years agomsvc doesn't like ssize_t, and it's not needed even (triggered by liu zhenhai)
Mark Dufour [Tue, 1 Nov 2011 15:30:09 +0000 (16:30 +0100)]
msvc doesn't like ssize_t, and it's not needed even (triggered by liu zhenhai)

6 years agofix copy-paste (liu zhenhai)
Mark Dufour [Mon, 24 Oct 2011 15:46:26 +0000 (17:46 +0200)]
fix copy-paste (liu zhenhai)

6 years agoimprove makefile.py for msvc (liuzhenhai)
Mark Dufour [Mon, 24 Oct 2011 09:28:24 +0000 (11:28 +0200)]
improve makefile.py for msvc (liuzhenhai)

6 years agoimprove FLAGS.msvc (note two env vars need to be set) (liuzhenhai)
Mark Dufour [Mon, 24 Oct 2011 08:56:32 +0000 (10:56 +0200)]
improve FLAGS.msvc (note two env vars need to be set) (liuzhenhai)

6 years agoignore tests/198
Mark Dufour [Mon, 24 Oct 2011 08:44:10 +0000 (10:44 +0200)]
ignore tests/198

6 years agoos.popen2(list(str),..) (issue 158)
Mark Dufour [Tue, 11 Oct 2011 16:17:46 +0000 (18:17 +0200)]
os.popen2(list(str),..) (issue 158)

6 years agofix ConfigParser return value models (issue 157)
Mark Dufour [Tue, 11 Oct 2011 16:00:30 +0000 (18:00 +0200)]
fix ConfigParser return value models (issue 157)

6 years agogenerate error when using 'exec' (issue 156)
Mark Dufour [Tue, 11 Oct 2011 15:07:27 +0000 (17:07 +0200)]
generate error when using 'exec' (issue 156)

6 years agolast character of file could disappear in annotation (will varfar)
Mark Dufour [Tue, 11 Oct 2011 14:32:24 +0000 (16:32 +0200)]
last character of file could disappear in annotation (will varfar)

6 years agoextmod fix for MSVC (liu zhenhai)
Mark Dufour [Tue, 11 Oct 2011 14:17:02 +0000 (16:17 +0200)]
extmod fix for MSVC (liu zhenhai)

6 years agoenumerate 'start' argument (new in 2.6)
Mark Dufour [Mon, 26 Sep 2011 20:18:59 +0000 (22:18 +0200)]
enumerate 'start' argument (new in 2.6)

6 years agoupdate man page
Mark Dufour [Sat, 24 Sep 2011 20:19:02 +0000 (22:19 +0200)]
update man page

6 years agoadd test case for that to tests/198.py
Mark Dufour [Sat, 24 Sep 2011 19:41:41 +0000 (21:41 +0200)]
add test case for that to tests/198.py

6 years agosafe __NOT() macro expansion. Triggered by LiuZhenhai
=François Boutines [Sat, 24 Sep 2011 14:07:24 +0000 (16:07 +0200)]
safe __NOT() macro expansion. Triggered by LiuZhenhai

6 years ago-L option to add custom library directories (Artem Egorkine)
Artem Egorkine [Tue, 13 Sep 2011 19:00:51 +0000 (21:00 +0200)]
-L option to add custom library directories (Artem Egorkine)

6 years agowindows fix
Mark Dufour [Sat, 10 Sep 2011 09:49:11 +0000 (11:49 +0200)]
windows fix

6 years ago"MIT license" is ambiguous -> we were actually using "Expat license" 0.9
Mark Dufour [Sat, 10 Sep 2011 08:41:27 +0000 (10:41 +0200)]
"MIT license" is ambiguous -> we were actually using "Expat license"

6 years agoterminate after hitting max nr of iterations 3 times
Mark Dufour [Sat, 10 Sep 2011 08:16:04 +0000 (10:16 +0200)]
terminate after hitting max nr of iterations 3 times

6 years agodatetime: win32 fix
Mark Dufour [Fri, 9 Sep 2011 12:04:06 +0000 (14:04 +0200)]
datetime: win32 fix

6 years agommap: win32 needs default_2
Mark Dufour [Fri, 9 Sep 2011 10:58:20 +0000 (12:58 +0200)]
mmap: win32 needs default_2

6 years agouse var.cpp_name in copy_
Mark Dufour [Wed, 7 Sep 2011 15:57:20 +0000 (17:57 +0200)]
use var.cpp_name in copy_

6 years agobreak out special case from cpp_name
Mark Dufour [Wed, 7 Sep 2011 14:44:41 +0000 (16:44 +0200)]
break out special case from cpp_name

6 years agomore of that
Mark Dufour [Wed, 7 Sep 2011 13:22:43 +0000 (15:22 +0200)]
more of that

6 years agosome more cpp_name cleanage
Mark Dufour [Wed, 7 Sep 2011 13:04:57 +0000 (15:04 +0200)]
some more cpp_name cleanage

6 years agoimprove and use variable.cpp_name more
Mark Dufour [Mon, 5 Sep 2011 18:57:23 +0000 (20:57 +0200)]
improve and use variable.cpp_name more

6 years agocleanup: add class_.cpp_name method
Mark Dufour [Sun, 4 Sep 2011 20:35:44 +0000 (22:35 +0200)]
cleanup: add class_.cpp_name method

6 years agocleanup: replace if-elif construction with dict
Mark Dufour [Sun, 4 Sep 2011 20:13:14 +0000 (22:13 +0200)]
cleanup: replace if-elif construction with dict

6 years agoremove senseless comment
Mark Dufour [Sun, 4 Sep 2011 16:33:48 +0000 (18:33 +0200)]
remove senseless comment

6 years agoa bit more of that
Mark Dufour [Sat, 3 Sep 2011 18:06:19 +0000 (20:06 +0200)]
a bit more of that

6 years agonow that FOR_IN_DICT uses dict::next, we need to use __ss_int for 'pos'
Mark Dufour [Sat, 3 Sep 2011 16:56:40 +0000 (18:56 +0200)]
now that FOR_IN_DICT uses dict::next, we need to use __ss_int for 'pos'

6 years agoupdate tx.py
Mark Dufour [Sat, 3 Sep 2011 12:02:08 +0000 (14:02 +0200)]
update tx.py

6 years agoupdate man page
Mark Dufour [Sat, 3 Sep 2011 11:38:54 +0000 (13:38 +0200)]
update man page

6 years agousage update
Mark Dufour [Sat, 3 Sep 2011 11:38:08 +0000 (13:38 +0200)]
usage update

6 years agoalphabetical..
Mark Dufour [Sat, 3 Sep 2011 11:36:45 +0000 (13:36 +0200)]
alphabetical..

6 years agoremove docs, update dist script for 0.9
Mark Dufour [Sat, 3 Sep 2011 11:23:30 +0000 (13:23 +0200)]
remove docs, update dist script for 0.9

6 years agoupdate LICENSE
Mark Dufour [Sat, 3 Sep 2011 11:13:28 +0000 (13:13 +0200)]
update LICENSE

6 years agofix 'return 0' in generator with even uglier hack
Mark Dufour [Sat, 3 Sep 2011 10:35:26 +0000 (12:35 +0200)]
fix 'return 0' in generator with even uglier hack

6 years agomake deep copying deeper
Mark Dufour [Sat, 3 Sep 2011 10:15:59 +0000 (12:15 +0200)]
make deep copying deeper

6 years agoforgot extmod.py
Mark Dufour [Thu, 1 Sep 2011 21:32:45 +0000 (23:32 +0200)]
forgot extmod.py

6 years agosplit up cpp.py a bit further
Mark Dufour [Thu, 1 Sep 2011 21:32:15 +0000 (23:32 +0200)]
split up cpp.py a bit further

6 years agomove 'copy' functionality to separate file
Mark Dufour [Thu, 1 Sep 2011 21:01:00 +0000 (23:01 +0200)]
move 'copy' functionality to separate file

6 years agominor fix there
Mark Dufour [Thu, 1 Sep 2011 20:33:36 +0000 (22:33 +0200)]
minor fix there

6 years agoadd deepcopy test
Mark Dufour [Thu, 1 Sep 2011 20:04:54 +0000 (22:04 +0200)]
add deepcopy test

6 years agoremove those
Mark Dufour [Thu, 1 Sep 2011 17:53:28 +0000 (19:53 +0200)]
remove those

6 years agoupdate README
Mark Dufour [Thu, 1 Sep 2011 17:37:09 +0000 (19:37 +0200)]
update README

6 years agonew example: k-means++ clustering
Mark Dufour [Thu, 1 Sep 2011 17:33:41 +0000 (19:33 +0200)]
new example: k-means++ clustering

6 years agoadd test with different key and value types
Mark Dufour [Thu, 1 Sep 2011 16:43:23 +0000 (18:43 +0200)]
add test with different key and value types

6 years agoforgot tests
Mark Dufour [Thu, 1 Sep 2011 14:11:53 +0000 (16:11 +0200)]
forgot tests

6 years agooptimize 'for .., .. in somedict.iteritems()'
Mark Dufour [Thu, 1 Sep 2011 14:04:37 +0000 (16:04 +0200)]
optimize 'for .., .. in somedict.iteritems()'

6 years agobeginnings of 'for a,b in dict.iteritems()' optimization
Mark Dufour [Mon, 29 Aug 2011 20:40:12 +0000 (22:40 +0200)]
beginnings of 'for a,b in dict.iteritems()' optimization

6 years agosome int<->bool conversion improvements
Mark Dufour [Mon, 29 Aug 2011 18:06:59 +0000 (20:06 +0200)]
some int<->bool conversion improvements

6 years agoadd warning for 'del AssName'
Mark Dufour [Sun, 28 Aug 2011 18:15:58 +0000 (20:15 +0200)]
add warning for 'del AssName'

6 years agotransfer fix from instance_new
Mark Dufour [Sun, 28 Aug 2011 17:02:35 +0000 (19:02 +0200)]
transfer fix from instance_new

6 years agodon't initialize unused default
Mark Dufour [Sun, 28 Aug 2011 16:38:02 +0000 (18:38 +0200)]
don't initialize unused default

6 years agodisable some dead code in loop.py that now causes a problem
Mark Dufour [Sun, 28 Aug 2011 16:19:19 +0000 (18:19 +0200)]
disable some dead code in loop.py that now causes a problem

6 years agoavoid int/bool mixing in pisang.py
Mark Dufour [Sun, 28 Aug 2011 16:16:49 +0000 (18:16 +0200)]
avoid int/bool mixing in pisang.py

6 years agoadd copyright header to every file in shedskin/lib
Mark Dufour [Sun, 28 Aug 2011 15:55:32 +0000 (17:55 +0200)]
add copyright header to every file in shedskin/lib

6 years agoname MIT license as well
Mark Dufour [Sun, 28 Aug 2011 15:41:34 +0000 (17:41 +0200)]
name MIT license as well

6 years agoupdate LICENSE a bit
Mark Dufour [Sun, 28 Aug 2011 15:39:20 +0000 (17:39 +0200)]
update LICENSE a bit

6 years agoupdate copyright headers for shedskin/*.py
Mark Dufour [Sun, 28 Aug 2011 15:38:10 +0000 (17:38 +0200)]
update copyright headers for shedskin/*.py

6 years agoupdate plcfrs.py example
Mark Dufour [Sun, 28 Aug 2011 15:05:18 +0000 (17:05 +0200)]
update plcfrs.py example

6 years agofinally, rewrite assign_needs_cast as incompatible_assignment
Mark Dufour [Sun, 28 Aug 2011 13:48:56 +0000 (15:48 +0200)]
finally, rewrite assign_needs_cast as incompatible_assignment

6 years agoremove unused function
Mark Dufour [Sun, 28 Aug 2011 10:15:13 +0000 (12:15 +0200)]
remove unused function

6 years agosome fixes for new modules and shedskin -l
Mark Dufour [Sun, 28 Aug 2011 10:08:12 +0000 (12:08 +0200)]
some fixes for new modules and shedskin -l

6 years agoreplace last usage of assign_needs_cast with visit_conv
Mark Dufour [Sat, 27 Aug 2011 20:08:53 +0000 (22:08 +0200)]
replace last usage of assign_needs_cast with visit_conv

6 years agomake cast_to_builtin type-based, more flexible than typestrings
Mark Dufour [Sat, 27 Aug 2011 19:33:11 +0000 (21:33 +0200)]
make cast_to_builtin type-based, more flexible than typestrings

6 years agosome more test conversion tests
Mark Dufour [Sat, 27 Aug 2011 18:39:19 +0000 (20:39 +0200)]
some more test conversion tests

6 years agouse visit_conv for addition
Mark Dufour [Sat, 27 Aug 2011 18:19:55 +0000 (20:19 +0200)]
use visit_conv for addition

6 years agoremove another use of assign_needs_cast, by improving default args
Mark Dufour [Sat, 27 Aug 2011 17:51:39 +0000 (19:51 +0200)]
remove another use of assign_needs_cast, by improving default args

6 years agosupport up to three args for all set methods (brent)
Brent Pedersen [Sat, 27 Aug 2011 16:07:44 +0000 (18:07 +0200)]
support up to three args for all set methods (brent)

6 years agomultiple args for set.difference_update (brent)
Brent Pedersen [Sat, 27 Aug 2011 12:06:25 +0000 (14:06 +0200)]
multiple args for set.difference_update (brent)

6 years agouse visit_conv in assignment, only few cases left
Mark Dufour [Sat, 27 Aug 2011 10:41:08 +0000 (12:41 +0200)]
use visit_conv in assignment, only few cases left

6 years agosimplify var_assign_needs_cast by removing it
Mark Dufour [Sat, 27 Aug 2011 10:14:07 +0000 (12:14 +0200)]
simplify var_assign_needs_cast by removing it

6 years agoexamples/plcfrs: itertools.chain unused
Mark Dufour [Sat, 27 Aug 2011 09:54:38 +0000 (11:54 +0200)]
examples/plcfrs: itertools.chain unused

6 years agoforgot to update test script of course
Mark Dufour [Sat, 27 Aug 2011 09:43:59 +0000 (11:43 +0200)]
forgot to update test script of course

6 years agoadd an RCG natural language parser (andreas van cranenburgh)
Mark Dufour [Sat, 27 Aug 2011 09:39:09 +0000 (11:39 +0200)]
add an RCG natural language parser (andreas van cranenburgh)

6 years agowrestle visit_andor into using visit_conv
Mark Dufour [Sat, 27 Aug 2011 09:30:43 +0000 (11:30 +0200)]
wrestle visit_andor into using visit_conv

6 years agosome further fine-tuning for rc4
Mark Dufour [Fri, 26 Aug 2011 19:30:45 +0000 (21:30 +0200)]
some further fine-tuning for rc4

6 years agofile.read(1) optimization (for rc4)
=François Boutines [Wed, 24 Aug 2011 23:49:36 +0000 (01:49 +0200)]
file.read(1) optimization (for rc4)

6 years agooptimize bool(str)
Mark Dufour [Sat, 20 Aug 2011 09:49:32 +0000 (11:49 +0200)]
optimize bool(str)

6 years agonew speed test (thanks to funami)
Mark Dufour [Sat, 20 Aug 2011 09:07:25 +0000 (11:07 +0200)]
new speed test (thanks to funami)

6 years agouseful script to investigate e.g. rich comparison
Mark Dufour [Thu, 18 Aug 2011 19:00:55 +0000 (21:00 +0200)]
useful script to investigate e.g. rich comparison

6 years agomove Makefile generation to shedskin/makefile.py
Mark Dufour [Thu, 18 Aug 2011 18:51:43 +0000 (20:51 +0200)]
move Makefile generation to shedskin/makefile.py

6 years agouse visit_conv also for other slice method, didn't work correctly before
Mark Dufour [Thu, 18 Aug 2011 15:14:59 +0000 (17:14 +0200)]
use visit_conv also for other slice method, didn't work correctly before

6 years agousing visit_conv for slicing 1/2
Mark Dufour [Thu, 18 Aug 2011 12:52:07 +0000 (14:52 +0200)]
using visit_conv for slicing 1/2

6 years agomove struct hacks to separate struct_.py
Mark Dufour [Thu, 18 Aug 2011 10:52:18 +0000 (12:52 +0200)]
move struct hacks to separate struct_.py

6 years agofix lcp check for Name('self')
Mark Dufour [Thu, 18 Aug 2011 10:02:09 +0000 (12:02 +0200)]
fix lcp check for Name('self')

6 years agogeneralize self-specific code to visitName, remove returnexpr function
Mark Dufour [Wed, 17 Aug 2011 22:19:05 +0000 (00:19 +0200)]
generalize self-specific code to visitName, remove returnexpr function

6 years agouse visit_conv for return statements
Mark Dufour [Wed, 17 Aug 2011 20:56:40 +0000 (22:56 +0200)]
use visit_conv for return statements

6 years agowin32 implementation of os.utime
Mark Dufour [Tue, 16 Aug 2011 19:34:21 +0000 (21:34 +0200)]
win32 implementation of os.utime

6 years agoupdate script a bit
Mark Dufour [Sat, 13 Aug 2011 19:13:18 +0000 (21:13 +0200)]
update script a bit

6 years agoimprove that a bit
Mark Dufour [Sat, 13 Aug 2011 16:45:46 +0000 (18:45 +0200)]
improve that a bit

6 years agoscript to easily make scalability graph for different versions of shedskin
Mark Dufour [Sat, 13 Aug 2011 16:23:14 +0000 (18:23 +0200)]
script to easily make scalability graph for different versions of shedskin

6 years agoadd timer and --silent mode (thanks jason ye for timer suggestion)
Mark Dufour [Sat, 13 Aug 2011 15:44:48 +0000 (17:44 +0200)]
add timer and --silent mode (thanks jason ye for timer suggestion)