[issue23041] csv needs more quoting rules

2019-12-15 Thread Yoong Hor Meng
Yoong Hor Meng added the comment: There is a real requirement for csv to handle an empty field vs a empty string """". csv.QUOTE_NOTNULL could be useful. -- nosy: +yoonghm versions: +Python 3.8 -Python 3.6 ___ Py

[issue37460] importlib.import_module("test.test_curses") could not import by libregrtest

2019-06-30 Thread Yoong Hor Meng
Yoong Hor Meng added the comment: I just find it strange that libncursesw5-dev is used during compilation but libncurses5-dev is used for testing. -- stage: -> resolved status: open -> closed type: -> compile error ___ Python tracke

[issue37460] importlib.import_module("test.test_curses") could not import by libregrtest

2019-06-30 Thread Yoong Hor Meng
Yoong Hor Meng added the comment: I installed libncurses5-dev and ran configure again: ./configure \ --with-openssl=/usr --enable-optimizations It could be build without skipping test_curses. It seems that regrtest.py looks for libncurses5-dev during configure state. ... Run tests

[issue37460] importlib.import_module("test.test_curses") could not import by libregrtest

2019-06-30 Thread Yoong Hor Meng
Yoong Hor Meng added the comment: https://bugs.python.org/issue5356 mentioned that one has to pass -ucurses to regrtest.py It works. However the Makefile does not pass the information to regrtest.py when calling test_curses.py -- ___ Python

[issue37460] importlib.import_module("test.test_curses") could not import by libregrtest

2019-06-30 Thread Yoong Hor Meng
New submission from Yoong Hor Meng : test_curses.py was skipped during unit test. I manually ran the test via debugger: python3 -m pdb /home/s/lib/python3.8/test/regrtest.py test_curses It showed error at ../lib/python3.8/test/libregrtest/runtest.py(215)_runtest_inner2(): 210

[issue37331] logging.handlers.DatagramHandler sends bad data to socketserver.DatagramRequestHandler

2019-06-18 Thread Yoong Hor Meng
Yoong Hor Meng added the comment: I did some checks, I discovered the following: logging.handlers.DatagramHandler() sends data in the following format: 1. message length 2. message itself which consists of a. Creation time in ASCII format b. Creation time in seconds, ms c. Filename

[issue37331] logging.handlers.DatagramHandler sends bad data to socketserver.DatagramRequestHandler

2019-06-18 Thread Yoong Hor Meng
New submission from Yoong Hor Meng : `pysyslog.py` - A UDP server listens at 0.0.0.0:514 for syslog messages. `syslogmsg_gen.py` - Send syslog message to local syslog server via 127.0.0.1:514 Error: Exception has occurred: UnicodeDecodeError 'utf-8' codec can't decode byte 0xd7 in position

[issue35725] Using for...in.. generator-iterator

2019-01-11 Thread Yoong Hor Meng
New submission from Yoong Hor Meng : def f(): print('-- Start --') yield 1 print('-- Middle --') yield 2 print('-- Finished --') yield 3 gen = f() for x in gen: print('Another things ...') next(gen) The output: -- Start -- Another things ... -- Middle

[issue35703] Underscores in numeric literals cannot be before or after decimal (.)

2019-01-10 Thread Yoong Hor Meng
Change by Yoong Hor Meng : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue35703> ___ ___ Python-bugs-

[issue35703] Underscores in numeric literals cannot be before or after decimal (.)

2019-01-10 Thread Yoong Hor Meng
New submission from Yoong Hor Meng : s = 1_234.567_8 print(float(s)) # It works s = 1_234._567 print(float(s)) # It does not work s = 1_234_.567 print(float(s)) # It does not work too -- components: Interpreter Core messages: 68 nosy: yoonghm priority: normal severity: normal