Noralf Trønnes
cec9a69a15
samd51: Make errno, os, and time module aliases
...
Add alias for uerrno so the user doesn't have to know about the
CircuitPython special names for the module.
Make os and time weak modules (aliases) making it possible to add
functionality to those modules written in python.
Example:
'import os' will now look in the path for an os module and if not found
it will import the builtin module. An os module written in python will
import the builtin module through its name prefixed with an underscore
(_os) following the C module naming practice in CPython.
Also right align the macro values to increase readability making it
easier to compare the values for samd21 and samd51. Even the longest
macro from py/mpconfig.h will fit with this alignment.
2018-10-24 19:31:53 +02:00
Noralf Trønnes
db4a8f5d1a
modsys: exc_info: Add traceback
...
Add traceback chain to sys.exec_info()[2].
No actual frame info is added, but just enough to recreate the printed
exception traceback.
Used by the unittest module which collects errors and failures and prints
them at the end.
2018-10-07 19:37:49 +02:00
Noralf Trønnes
b897603cfa
py/objboundmeth: Support __func__ property as in CPython
...
This gives access to the function underlying the bound method.
Used in the converted CPython stdlib logging.Formatter class to handle
overrriding a default converter method bound to a class variable.
The method becomes bound when accessed from an instance of that class.
I didn't investigate why CircuitPython turns it into a bound method.
2018-10-07 19:36:24 +02:00
Noralf Trønnes
a63555abc1
py/builtinimport: Set __file__ on MPY modules
...
This sets the __file__ property on MPY modules like how it's done on pure python modules.
2018-10-07 19:36:12 +02:00
Dan Halbert
c23d2028a8
Merge pull request #1244 from urish/armthumb-fix
...
fix compilation errors in emitinlinethumb.c
2018-10-06 19:48:27 -04:00
Uri Shaked
cea079a022
fix compilation errors in emitinlinethumb.c
2018-10-07 02:09:44 +03:00
Dan Halbert
4745dda9e6
Merge pull request #1230 from C47D/es_lang
...
Translate strings in nrf directory
2018-10-06 17:10:26 -04:00
Dan Halbert
f7f723c590
Merge pull request #1238 from xpecex/pt_BR2
...
String internationalization for Brazilian Portuguese
2018-10-06 17:09:13 -04:00
Dan Halbert
122859447e
Merge pull request #1245 from jerryneedell/jerryn_erase
...
add force_create to nrf filesystem_init()
2018-10-06 16:57:23 -04:00
Jerry Needell
fd0ea85549
add force_create to nrf filesystem_init()
2018-10-06 08:03:27 -04:00
Dan Halbert
7b95818c4f
Merge pull request #1241 from hathach/nrf52_fix_tinyusb_issue
...
fix tinyusb cdc issue
2018-10-05 11:21:53 -04:00
hathach
21ddb6b9b9
fix tinyusb cdc issue
2018-10-05 21:37:16 +07:00
Carlos
bd2044fb39
Update translation
2018-10-04 22:22:17 -05:00
Carlos
22f6869bdf
Address suggestions @carlosperate
2018-10-04 21:57:09 -05:00
Carlos
14f52c52cb
Translate strings in nrf directory
2018-10-04 21:57:06 -05:00
Pedro Filipe
661743ebff
String internationalization for Brazilian Portuguese
2018-10-04 22:55:28 -03:00
Dan Halbert
f7ebbacf58
Merge pull request #1212 from hathach/nrf52_uart_io
...
Nrf52 uart io
2018-10-03 23:57:56 -04:00
Dan Halbert
6049776b26
Merge branch 'master' into nrf52_uart_io
2018-10-03 13:31:48 -04:00
Scott Shawcroft
86ae707b08
Merge pull request #1223 from dhalbert/spi-baudrate
...
nrf: remove error check for SPI baudrate too high; round to nearest baudrate
2018-10-03 10:11:44 -07:00
hathach
a47eaa521b
update translate
2018-10-03 23:16:02 +07:00
hathach
b8884ccc8b
Merge branch 'master' into nrf52_uart_io
2018-10-03 23:13:56 +07:00
Dan Halbert
b95865939f
Merge pull request #1231 from furlaneto/master
...
String internationalization for Brazilian Portuguese
2018-10-03 09:15:17 -04:00
Dan Halbert
d79b0a6b17
Merge pull request #1232 from platipo/master
...
Fix 'advertisement' typo
2018-10-03 09:14:28 -04:00
Enrico Paganin
4b9099358f
Fix 'advertisement' typo
2018-10-03 09:56:30 +02:00
hathach
08cbb03bdd
implement common_hal_busio_uart_clear_rx_buffer
2018-10-03 11:39:01 +07:00
hathach
f543c8415d
"busio.UART not yet implemented -> not available
2018-10-03 11:30:31 +07:00
Lucas Furlaneto
67d9aef4c7
Update pt_BR.po
2018-10-03 01:01:11 -03:00
Dan Halbert
da48fc9d45
Merge pull request #1228 from xpecex/pt_BR
...
String internationalization for Brazilian Portuguese
2018-10-02 23:37:11 -04:00
Pedro Filipe
ddd2a90eee
String internationalization for Brazilian Portuguese
2018-10-02 23:20:15 -03:00
Dan Halbert
73de5f7980
Merge pull request #1229 from gcvasconcelos/patch-1
...
Added new portuguese translations
2018-10-02 22:11:51 -04:00
Gabriel Vasconcelos
1d287d066b
Added new portuguese translations
2018-10-02 22:16:37 -03:00
Dan Halbert
21d331c8cc
round SPI freq down; check max freq
2018-10-02 21:06:40 -04:00
Dan Halbert
036a1490e3
Merge pull request #1227 from tannewt/trellis_m4
...
Update Trellis M4 Express for Rev C
2018-10-02 20:33:27 -04:00
Scott Shawcroft
3c743f2664
Update Trellis M4 Express for Rev C
2018-10-02 11:56:09 -07:00
Scott Shawcroft
0db68a8f4d
Merge pull request #1225 from furlaneto/master
...
String internationalization for Brazilian Portuguese
2018-10-01 22:59:16 -07:00
Scott Shawcroft
cc68964d13
Fix the build
2018-10-01 22:20:27 -07:00
Lucas Furlaneto
5cfd28b78a
Update pt_BR.po
2018-10-02 01:36:24 -03:00
Lucas Furlaneto
6c7195b130
Start Brazilian Portuguese translation
2018-10-02 01:15:13 -03:00
Dan Halbert
aa95526428
nrf: remove error check for SPI baudrate too high; round to nearest baudrate
2018-10-01 18:54:13 -04:00
Scott Shawcroft
b263690e66
Merge pull request #1219 from C47D/es_lang
...
[WiP] Start with translation of ESP strings.
2018-10-01 13:47:34 -07:00
Scott Shawcroft
fb5ca35293
Merge pull request #1215 from dhalbert/soft-restart-device-reset
...
reset I2C and SPI on ctrl-D
2018-09-30 23:52:07 -07:00
Carlos
1ae4616ee2
Finish translation of strings on the ESP port
2018-09-30 12:04:22 -05:00
Carlos
f3f549b455
Start with translation of ESP strings.
2018-09-29 21:32:57 -05:00
Dan Halbert
48a3aafdd2
reset I2C and SPI on ctrl-D
2018-09-25 15:12:10 -04:00
hathach
76d6fb03f0
more clean up
2018-09-26 02:12:06 +07:00
hathach
eba80f7a99
update translate string
2018-09-26 02:10:44 +07:00
hathach
52328c88cd
remove space
2018-09-26 02:06:32 +07:00
hathach
74cc55b107
change error type to runtime
2018-09-25 17:31:53 +07:00
hathach
f724647a45
fix feather nrf52840 build error
2018-09-25 17:09:54 +07:00
hathach
dec5c50c45
clean up
2018-09-25 16:22:14 +07:00