Project Nayuki
42a886d784
Changed type hints to use native types (Python 3.9+) instead of the typing module.
6 months ago
Project Nayuki
daa3114dcf
Replaced str.format() with f-strings in Python code.
3 years ago
Project Nayuki
233b4ee331
Fixed static typing omissions in Python code.
3 years ago
Project Nayuki
3dcac1db78
In Python version: moved QrCode.to_svg_string() out of the library and into the runnable demo program, slightly adapted some code, updated documentation comments.
3 years ago
Project Nayuki
55dd3c881e
Added type annotations to all Python functions and methods, and almost all global variables.
5 years ago
Project Nayuki
f93ce5217e
Simplified code by removing support for Python 2, leaving only support for Python 3.
5 years ago
Project Nayuki
d5d431a2d4
Renamed a local variable in Python code.
5 years ago
Project Nayuki
0cded0ba36
Aligned main comments in demo programs.
6 years ago
Project Nayuki
c0b684bc18
Tweaked comment for kanji demo in multiple languages, so that it corresponds to the order in the sample text string.
7 years ago
Project Nayuki
692f3f008b
Clarified Python demo code by importing classes into current namespace.
7 years ago
Project Nayuki
6a71e09f72
Added/tweaked comments and blank lines in demo programs of all language versions except JavaScript.
7 years ago
Project Nayuki
b86466ecd5
- Deleted constructors/functions/code for remasking existing QrCode object (due to doubtful real-world usefulness): C++, Java, JavaScript, Python, Rust.
...
- Tweaked code and comments due to feature removal: JavaScript, Python.
- Updated demo programs to reflect new API usage and add new example: C, C++, Java, Python, Rust.
7 years ago
Project Nayuki
9c1a25aba4
Changed QrCode.getModule() in {Java, JavaScript, Python, C++} language versions to return Boolean instead of 0/1 - to match {C, Rust} language versions - and updated comments and usages.
7 years ago
Project Nayuki
712dfb9f77
Added comments in Python and Rust code.
7 years ago
Project Nayuki
3db1e2d9b1
Renamed 'packedKanjiData' constant in demo programs.
7 years ago
Project Nayuki
7727d371e1
Simplified Java and Python demo code slightly.
8 years ago
Project Nayuki
4bc769e58f
Updated text and header comments in Python and HTML code.
8 years ago
Project Nayuki
b6b2bddb59
Added SVG text printing to Python demo program, to match C++ and Java demo programs.
8 years ago
Project Nayuki
b0123fee3d
Reduced lines in copyright notice of each source file (related to commit 4bba4c03ed
).
8 years ago
Project Nayuki
88ad854fd3
Added hand-crafted example of kanji mode text encoding to C++, Java, Python demo programs.
8 years ago
Project Nayuki
e062a386d0
Deleted copyright year in all source files, updated year in readme document.
8 years ago
Nayuki Minase
fc5f11b3b2
Tweaked line breaking, whitespace, and declaration ordering without changing behavior.
9 years ago
Nayuki Minase
f325bfe638
Moved {encodeText(), encodeBinary(), encodeSegments()} into class QrCode in Python and JavaScript implementations, for consistency with Java implementation.
9 years ago
Nayuki Minase
1b2a554121
Tweaked minor comment and whitespace consistency in Python and C++ code.
9 years ago
Nayuki Minase
bc10146355
Moved all code into new subdirectories per programming language.
9 years ago