[Python-announce] Nikola v8.2.4 is out!

2023-04-30 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.2.4. This release comes with some new features and a handful of bug fixes. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2

[Python-announce] Nikola v8.2.3 is out!

2022-08-01 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.2.3. This is a bugfix release, which fixes compatibility with python-markdown and two more minor bugs. What is Nikola? === Nikola is a static site and blog generator, written in Python. It

[Python-announce] Nikola v8.2.2 is out!

2022-05-01 Thread Chris Warrick
is rebuilding only what has been changed). Find out more at the website: https://getnikola.com/ Downloads = Install using `pip install Nikola`. Changes === * Compatibility with Pygments 2.12.0 (Issue #3617, #3618) -- Chris Warrick <https://chriswarrick.com> PGP: 5E

[Python-announce] Nikola v8.2.1 is out!

2022-04-23 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.2.1. This is a minor release with a couple new features, as well as fixes for compatibility with the latest version of doit. What is Nikola? === Nikola is a static site and blog generator,

[Python-announce] Nikola v8.2.0 is out!

2021-12-27 Thread Chris Warrick
ratio to 3:1 and document behaviour. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 OpenPGP_signature Description: OpenPGP digital signature ___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe send an

Nikola v8.1.3 is out!

2021-02-13 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.1.3. This release has some minor fixes, and a minor dependency change. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2

[issue42429] Behavior of general (%g, :g) formatting inconsistent for decimal.Decimal

2020-11-21 Thread Chris Warrick
New submission from Chris Warrick : When formatting decimal.Decimal using old-style formatting (%g), the output is as short as possible, as expected. When using new-style formatting (str.format or f-strings), the output uses the input precision. Floats behave correctly with new-style

Nikola v8.1.2 is out!

2020-11-15 Thread Chris Warrick
tags (Issue #3405) * Fix handling of duplicate plugins on Windows * Allow else clause in post-list plugin. (Issue #3436) * Ensure `type` metadata value from plugins is preserved (Issue 3445) * Fix path handlers with slashes on Windows -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16

Nikola v8.1.1 is out!

2020-07-05 Thread Chris Warrick
requesting no line numbers. Listing pages still use line numbers (Issue #3426) * Remove duplicate MathJax config in bootstrap themes (Issue #3427) * Fix ``doit`` requirement to ``doit>=0.32.0`` (Issue #3422) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 signature.asc De

Nikola v8.1.0 is out!

2020-06-27 Thread Chris Warrick
contents. * Added Post.save() method to modify Post contents. * Made is_two_file a property that uses save() -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 signature.asc Description: OpenPGP digital signature ___ Python-announce-list maili

Nikola v8.0.4 is out!

2020-02-06 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.0.4. This release fixes a few small bugs, including a date glitch that appeared around New Year’s Eve. What is Nikola? === Nikola is a static site and blog generator, written in Python. It

Nikola v8.0.3 is out!

2019-11-02 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.0.3. This release fixes a few bugs, including a notable one with galleries not working on mobile. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can

Re: # type: a

2019-09-15 Thread Chris Warrick
u mean. Type comments are now best replaced by Python 3.6+ variable annotations, but the comments are still valid, and can be used in some contexts where annotations are not supported. https://www.python.org/dev/peps/pep-0484/#type-comments -- Chris Warrick <https://chriswarrick.com/> PGP:

Nikola v8.0.2 is out!

2019-02-25 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.0.2. This is a quality-of-life release with a handful of bug fixes, two new translations and a few extra features. What is Nikola? === Nikola is a static site and blog generator, written in

Re: sys.modules

2019-02-21 Thread Chris Warrick
our knowledge — for example, because these modules are required by the interpreter itself, or are part of IDLE. The number you see depends on the environment (I got 530 in ipython3, 34 in python3, 45 in python2) and is not in any way important. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: preferences file

2019-01-24 Thread Chris Warrick
olproof as INI though). > 3. File location? I'm using Ubuntu and I believe that the correct > location would be home/.config/ . What about Mac and Windows? https://pypi.org/project/appdirs/ -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Packages Survey

2019-01-19 Thread Chris Warrick
st. Also, even if you promise to filter out private packages, they *do* reach your server, and many people would prefer that didn’t happen. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Wikipedia on Python

2018-10-16 Thread Chris Warrick
o remove this paragraph, because I don’t think anyone would find it useful; in fact, it would only confuse people. Here’s a diff for anyone interested in the original content: https://en.wikipedia.org/w/index.php?title=Python_(programming_language)=prev=861064627 -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: My environment doesn't load

2018-10-09 Thread Chris Warrick
run some of my code that import beautyfulsoup it fails (python > mycode.py), althoug running > directly ./env-p3/python3.5 mycode.py is working... Was the virtualenv copied between machines or directories? If yes: you can’t do that, you must create a new virtualenv in the desired location and in

Nikola v8.0.1 is out!

2018-10-02 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.0.1. Some bugs were fixed; more importantly, we pinned down the Markdown package version due to incompatibilities. What is Nikola? === Nikola is a static site and blog generator, written in

Nikola v8.0.0 is out!

2018-09-13 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.0.0. After 15 months in development, we’ve created our best release ever, with new features, many bugs squashed, and some improvements under the hood. What is Nikola? === Nikola is a static

Nikola v8.0.0rc1 is out!

2018-09-10 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.0.0rc1. This is the end of the road to Nikola version 8. Within 48 hours, assuming there are no grave bugs reported in that timeframe, we intend to release v8 final. What is Nikola? ===

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2018-09-07 Thread Chris Warrick
Change by Chris Warrick : -- nosy: +Kwpolska ___ Python tracker <https://bugs.python.org/issue23057> ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Connection refused when tryign to run bottle/flask web framweworks

2018-08-20 Thread Chris Warrick
e interfaces. > Even with that still i cannot access the hello app. You should avoid exposing the built-in web server to the Internet. Either way, are you sure you don’t have any firewall set up on the server? -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Nikola v8.0.0b3 is out!

2018-08-10 Thread Chris Warrick
) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 signature.asc Description: OpenPGP digital signature -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

Re: Fishing from PyPI ?

2018-08-07 Thread Chris Warrick
On Tue, 7 Aug 2018 at 00:52, Gregory Ewing wrote: > > Chris Warrick wrote: > > The unusual domain is a common staple of Mailchimp, which is an e-mail > > newsletter platform (it was used to mail out the announcement), and > > they replace all links with tracking ones

Re: Fishing from PyPI ?

2018-08-06 Thread Chris Warrick
e announcement), and they replace all links with tracking ones in their list-manage.com domain. (They also implement the GDPR in an anti-user/pro-spam fashion, but I digress.) [1]: https://status.python.org/incidents/nk7cyn2vh4wr [2]: https://github.com/pypa/warehouse/issues/3632 -- Chris Wa

Re: PyCharm

2018-07-22 Thread Chris Warrick
broken. > > Is there another way to insert a pause that will work with PyCharm? > -- > https://mail.python.org/mailman/listinfo/python-list How does it fail? What PyCharm version are you on? -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: ipython does not work with latest version of prompt-toolkit

2018-06-03 Thread Chris Warrick
ts API from v1, and ipython doesn’t support the new one yet. Don’t randomly upgrade pip packages without knowing what the upgrade entails, especially if the version changed from 1.x to 2.x (x.y → x+1.y) — that usually means an API change and possible incompatibilities in dependent packages. Upg

Nikola v7.8.15 and v8.0.0b1 are out!

2018-05-08 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.8.15 and v8.0.0b1. Nikola v7.8.15 is the last v7 maintenance release with a few more bug fixes. Nikola v8.0.0b1 (Beta 1) is the first test release of the v8 series. The v8 series adds a ton of new

Re: venv: make installed modules visible

2018-05-01 Thread Chris Warrick
o install the modules using the virtualenv’s pip. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: I am a student studying Python in Korea. I found strange thing while studying through idle

2018-03-09 Thread Chris Warrick
rint("python\rhi") hithon (PS. it’s better to use a stable version, especially when you’re learning. PPS. file attachments do not work on this list.) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16On 9 March 2018 at 01:07, 노연수 mailto:clear0...@naver.com; ta

Re: read Unicode characters one by one in python2

2018-02-25 Thread Chris Warrick
ter_by_character/UTF8#Python No, it’s terrible. So is the Python 3 version. All you need for both Pythons is this: import io with io.open('input.txt', 'r', encoding='utf-8') as fh: for character in fh: print(character) (and please make sure you need to read character-by-character firs

Re: Getting "ValueError: need more than 1 value to unpack" while trying to read a value from dictionary in python

2018-02-15 Thread Chris Warrick
tead, you need to split it into lines, first stripping whitespace (starts and ends with an empty line). s = s.strip().replace("=",":") print s d = {} for i in s.split('\n'): try: key, val = i.split(":") d[key.strip()] = val.strip() except ValueError: print "no key:value pair found in", i (PS. please switch to Python 3) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Where has the practice of sending screen shots as source code come from?

2018-01-28 Thread Chris Warrick
ssible* to copy text from. Most standard error popups support pressing Ctrl+C to copy the text displayed in them. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Repairing Python installation?

2017-10-29 Thread Chris Warrick
ent > next time? cd into your virtualenv directory and run `source bin/activate`. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Repairing Python installation?

2017-10-29 Thread Chris Warrick
rly: https://chriswarrick.com/blog/2017/06/18/unix-locales-vs-unicode/ (Nikola’s co-maintainer over here.) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: choice of web-framework

2017-10-23 Thread Chris Warrick
qlclient. There are also other PostgreSQL libraries available. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: choice of web-framework

2017-10-22 Thread Chris Warrick
On 22 October 2017 at 13:48, Chris Angelico <ros...@gmail.com> wrote: > On Sun, Oct 22, 2017 at 10:34 PM, Chris Warrick <kwpol...@gmail.com> wrote: >> On 22 October 2017 at 13:25, Lele Gaifax <l...@metapensiero.it> wrote: >>> Chris Warrick <kwpol...@gmail.co

Re: choice of web-framework

2017-10-22 Thread Chris Warrick
On 22 October 2017 at 13:25, Lele Gaifax <l...@metapensiero.it> wrote: > Chris Warrick <kwpol...@gmail.com> writes: > >> Zope is effectively dead these days. > > Except it's alive and kicking: https://blog.gocept.com/ > > :-) > > ciao, lele. A

Re: choice of web-framework

2017-10-22 Thread Chris Warrick
panel * i18n support available for when you need it * it’s a modern, friendly web framework If you went with Flask, you’d end up with a pile of plugins (for auth, for databases, for other things) and reimplement half of Django, badly. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Line terminators in Python?

2017-09-29 Thread Chris Warrick
So, if you’re working in text mode (which also handles encodings and returns Unicode strings on Python 3), you can just assume '\n'. If you’re curious what the local newline is, look at os.linesep: https://docs.python.org/3/library/os.html#os.linesep -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Boolean Logic

2017-09-23 Thread Chris Warrick
, s) This will print "s is False". You can also replace your earlier `if` with: >>> print((20 - 10) > 15) (False will appear upper-case, of course.) PS. don’t use semicolons with Python. Avoid eval() as well. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Stdlib, what's in, what's out

2017-09-20 Thread Chris Warrick
wouldn’t try the rewrite, or they would port the older codebase to Python 3 so that it could be shipped. (They’re currently at Beta 2 of the post-rewrite 4.0.0 version.) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: People choosing Python 3

2017-09-10 Thread Chris Warrick
On 10 September 2017 at 11:24, Leam Hall <leamh...@gmail.com> wrote: > On 09/10/2017 04:19 AM, Chris Warrick wrote: >> >> On 10 September 2017 at 09:30, Marko Rauhamaa <ma...@pacujo.net> wrote: >>> >>> INADA Naoki <songofaca...@gmail.com>: &

Re: OT: Rejecting whitespace-only changes at github

2017-08-10 Thread Chris Warrick
nged, check if the PR is “clean” (download diff from GitHub, find whitespace-only changes?) and use the GitHub API to close PRs/comment on them/set status checks to “failed”. (Closing those PRs might be seen as harsh and discouraging to new contributors) -- Chris Warrick <https://chriswarrick.co

Re: Are these tutorials the best tutorials for learning Python?

2017-08-09 Thread Chris Warrick
On 9 August 2017 at 17:14, Steve D'Aprano <steve+pyt...@pearwood.info> wrote: > On Wed, 9 Aug 2017 07:12 pm, Chris Warrick wrote: > >> So, I started by writing my opinion of those recommendations, and that >> the “community” is very small (<1k Twitter followers, 2.7k Fac

Re: Are these tutorials the best tutorials for learning Python?

2017-08-09 Thread Chris Warrick
org/3/tutorial/index.html All three are free to read online. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Connecting Google News

2017-07-16 Thread Chris Warrick
> > `read()` is empty string ('' or b''). `status` is 302. `reason` is `Found`. https://en.wikipedia.org/wiki/HTTP_302 See that Location header? The web server wants to redirect you somewhere. Your low-level HTTP library does not handle redirects automatically, so you’d need to take care of that yourself. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Compiling Python 3.6.1 on macOS 10.12.5

2017-07-11 Thread Chris Warrick
Why are you trying to compile Python manually? You should use Homebrew to install Python in 99% of cases. (The package is python3) -- Chris Warrick <https://chriswarrick.com/> -- https://mail.python.org/mailman/listinfo/python-list

Re: Privy: An easy, fast lib to password-protect your data

2017-07-05 Thread Chris Warrick
signatures. What does “password-protecting” mean? Why is this not “encrypting”? How do you expect this to work with API keys? -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Nikola v7.8.8 is out!

2017-06-12 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.8.8. It fixes some bugs and adds new features. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2 templates, and input in many

Nikola v7.8.7 is out!

2017-06-05 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.8.7. This is a part-emergency bugfix, part-world domination release. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2

Re: how to convert json to csv with python?

2017-06-03 Thread Chris Warrick
40 Akamai International B.V.", > "postal": "02142" > }, > { > "ip": "203.185.0.32", > "hostname": "20318532.ctinets.com", > "city": "Central District", > "region": "&qu

Nikola v7.8.6 is out!

2017-05-27 Thread Chris Warrick
91) Other - * Limit Jupyter support to notebook >= 4.0.0 (it already was in requirements-extras.txt; Issue #2733) -- Chris Warrick signature.asc Description: OpenPGP digital signature -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Softwa

Re: Python package to accept payments in Internet

2017-05-03 Thread Chris Warrick
On 3 May 2017 at 17:58, Victor Porton <por...@narod.ru> wrote: > Chris Warrick wrote: > >> On 3 May 2017 at 17:19, Victor Porton <por...@narod.ru> wrote: >>> What do you mean by "banned"? Does this mean that Google does not use >>> software of th

Re: Python package to accept payments in Internet

2017-05-03 Thread Chris Warrick
; This quick hack does work for the purpose it was made. This class is > not feature-rich, but other features are not needed by other parts of > my software. So it's OK. No, it’s not okay. Quick hacks are never good when dealing with money. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Python package to accept payments in Internet

2017-05-03 Thread Chris Warrick
L9 Your website is ugly, uses default browser styles, and to me it feels like you don’t pay attention to important stuff. That’s not someone who I’d trust to do payments right. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Calling dunder methods manually

2017-04-13 Thread Chris Warrick
operator.add is a prettier way to achieve the same result. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Nikola v7.8.4 is out!

2017-03-27 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.8.4. It fixes some bugs and adds new features. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2 templates, and input in many

Re: SimpleHTTPServer and CgiHTTPServer in practice

2017-03-18 Thread Chris Warrick
e HTTP request, already a waste of time. And then, CGI scripts take input via random environment variables (not very dependable) and output to stdout, which is a completely broken architecture. Give up and run a real web framework (Django) using uWSGI and nginx. -- Chris Warrick <https://chr

[issue29724] Itertools docs propose a harmful “speedup” without any explanation

2017-03-05 Thread Chris Warrick
New submission from Chris Warrick: The itertools recipes list [0] ends with the following dubious advice: > Note, many of the above recipes can be optimized by replacing global lookups > with local variables defined as default values. For example, the dotproduct > recipe can b

Re: Odd wording it docs for shutil.move?

2017-03-03 Thread Chris Warrick
elete original”, which takes much longer. From macOS/BSD manpages, mv(1): As the rename(2) call does not work across file systems, mv uses cp(1) and rm(1) to accomplish the move. See also: https://en.wikipedia.org/wiki/Mv -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Python application launcher (for Python code)

2017-02-21 Thread Chris Warrick
hat I used to > use. But AFAIK, they all got bought and killed by Microsoft. Git Bash, or basically msys, is pretty reasonable. But if you are on Windows 10, you might like the built-in Windows Subsystem for Linux (aka Bash on Ubuntu on Windows) more — it’s real Linux that runs alongside Windows, but less crazy than Cygwin. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Is requests[security] required for python 3.5+ ?

2017-02-02 Thread Chris Warrick
cryptography,idna. > > The reason I'm asking is because I'm moving an application to python 3 and I > am testing out which requirements continue to be required in the version. No, requests[security] is only needed for old Python 2.7 versions (before 2.7.9). -- Chris Warrick <https://chriswarr

Re: Let ipython3 use the latest python3

2017-01-21 Thread Chris Warrick
hon 3.6, you need to install it for that version (most likely, with pip) and make sure there is an ipython3 executable in your $PATH pointing at 3.6. You don’t need to remove IPython for 3.4 (but you can if you want to get rid of it). -- Chris Warrick <https://chriswarrick.com/> PGP:

Nikola v7.8.3 is out! (emergency bugfix release)

2017-01-15 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.8.3. This is an emergency bugfix release, which fixes a bug that prevented ``nikola new_page`` from working. There has also been a minor change to post sorting order (won’t affect most sites). The wheel

Nikola v7.8.2 is out!

2017-01-08 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.8.2. It adds a ton of new features, while also fixing some bugs. Key Changes === * A rewrite of all taxonomies (tags, categories, sections, etc.) in a generic fashion, allowing for much

[issue29134] contextlib doc bug

2017-01-02 Thread Chris Warrick
Changes by Chris Warrick <kwpol...@gmail.com>: -- nosy: +Kwpolska ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29134> ___ __

Re: print() with no newline

2016-12-18 Thread Chris Warrick
ng a syntax error in Python2. Python3 is fine. > How can I make this Py2+3 compatible? With a __future__ import, the Python 3 syntax will work with both Pythons: from __future__ import print_function print(s, end="") -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: The Case Against Python 3

2016-11-25 Thread Chris Warrick
tten by an asshole and a xenophobe. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: advanced SimpleHTTPServer?

2016-11-02 Thread Chris Warrick
esn’t even do sessions. Unlike Flask, or of course Django. Because, as the old saying goes, any sufficiently complicated Bottle or Flask app contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Django. (In the form of various plugins to do databases, accounts, admin pa

Re: advanced SimpleHTTPServer?

2016-11-02 Thread Chris Warrick
r apache. Those will do the first two properly, and the last one could be handled by a simple-ish PHP script. Or a full-fledged app in Django or Flask if you feel like it. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: New to python

2016-10-18 Thread Chris Warrick
m/wp/think-python/ https://automatetheboringstuff.com/ -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Nikola v7.8.1 is out!

2016-10-17 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.8.1. It fixes some bugs and adds new features. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2 templates, and input in many

Re: TCL/TK as default UI toolkit, and wayland

2016-10-14 Thread Chris Warrick
orm GUI libraries for Python… You are free to use any of those four, though (or anything less cross-platform). You don’t have to use Tkinter if you don’t like it. And it’s not a hard requirement on many Linux distributions. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Nikola v7.7.12 is out!

2016-08-06 Thread Chris Warrick
image rotation to update image size correctly (Issue #2418) - -- Chris Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQEcBAEBCAAGBQJXpJwYAAoJEHECPb1equoW7+8H/0zr6PALMVDfrk21mK/I+9Bg 4zUHptalVa1MGKlhoL2bfbWD5TjTS7LpQniNUSMbo/574dJ6YNlD

Re: Structure of program development

2016-07-04 Thread Chris Warrick
ython software? Does Python products contain all parts of a > developed program or is it a series of 'call' statements? You must either install a Python interpreter on that machine, or distribute one with your program. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating a calculator

2016-07-01 Thread Chris Warrick
lly with user input — if you were to type in __import__('os').system('…') with some particularly dangerous command (rm, format, …), you would kill your system. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating a calculator

2016-07-01 Thread Chris Warrick
k from the loop. (Ignore invalid input for now) 2. Ask the user for two numbers. 3. Make an if/elif/else structure to calculate the result. 4. Print out the result outside of `if`. Example for 3. and 4.: if user_input == 'add': result = num1 + num2 # no need to call str() if you use commas in print() elif user_input == 'subtract': result = num1 - num2 # other elif clauses go here print("The result is", result) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: not able to install mysqldb-python

2016-06-25 Thread Chris Warrick
//mail.python.org/mailman/listinfo/python-list It didn’t. mysql-python is installable with Python 2 only, so you probably installed it for your system Python 2 install instead of your Python 3 django virtualenv. Either way, please use mysqlclient instead, as recommended by the Django developers. --

Nikola v7.7.9 is out!

2016-06-12 Thread Chris Warrick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.7.9. It fixes some bugs and adds new features. For this release, we also passed a milestone — Nikola has got over 1000 stars on GitHub. Thanks for the

Re: pypi download links (e.g. for ansible)

2016-05-09 Thread Chris Warrick
ndable URLs: https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-package The current link: https://files.pythonhosted.org/packages/source/a/ansible/ansible-2.0.1.0.tar.gz (URLs in the pypi.io domain were used briefly and will still work) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Nikola v7.7.8 is out!

2016-04-29 Thread Chris Warrick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.7.8. It fixes some bugs and adds new features. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use

Re: Advice on Python build tools

2016-04-13 Thread Chris Warrick
mplate system that is written in Python and that has similar syntax. (also, I wouldn’t consider such weird-thing-into-real-HTML template engines pythonic) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: How to make Python interpreter a little more strict?

2016-03-26 Thread Chris Warrick
ike Python does. That said, this code is designed badly. Here’s a better idea (also, note the fixed print statement): for x in range(0, 5): if x % 2 != 0: print(x) Or even with a more suitable range() that adds 2 instead of 1 in each step: for x in range(1, 5, 2): print(x) -- C

Re: Python boilerplate

2016-03-21 Thread Chris Warrick
not every project needs packages. It might not need it today, but it will probably grow. At which point you will notice that a module is not enough. You can also easily separate code with packages. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: WP-A: A New URL Shortener

2016-03-19 Thread Chris Warrick
and it will be even neater. (PS. the page’s really ugly. Consider using Bootstrap or some other existing framework if you’re not good at designing pretty things.) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: WP-A: A New URL Shortener

2016-03-19 Thread Chris Warrick
Please use reply-all in the future so that the list sees your message. On 17 March 2016 at 11:38, Vinicius <m...@vmesel.com> wrote: > Thanks for replying Chris, > > Enviado do meu iPad > >> Em 16 de mar de 2016, às 1:18 PM, Chris Warrick <kwpol...@gmail.com> >&g

Re: Python boilerplate

2016-03-19 Thread Chris Warrick
cookiecutter: https://github.com/Kwpolska/python-project-template — it has a comprehensive `release` script, and follows best practices (including entry_points or packages instead of modules). It also uses .rst instead of .md documents. -- Chris Warrick <https://chriswarrick.com/> PGP:

Re: Beginner Python Help

2016-03-19 Thread Chris Warrick
around functions when assigning to variables: maxim = max(list1) minim = min(list1) (Also, list1 is not a good variable name. Try something that describes its contents.) -- Chris Warrick <https://chriswarrick.com/> Sent from my Galaxy S3. -- https://mail.python.org/mailman/listinfo/python-list

Re: E-commerce system in Python

2016-03-19 Thread Chris Warrick
a great framework that does a lot of the hard work for you. Flask is low-level. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: pdf version of python tutorial

2016-03-13 Thread Chris Warrick
t; to work offline. > > thanks > raju > -- > Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog > -- > https://mail.python.org/mailman/listinfo/python-list There is a download link on the documentation index: https://docs.python.org/3/download.html -- Chris Warrick &l

Re: Question

2016-03-07 Thread Chris Warrick
ok off, and was not supported by the consumer versions of Windows (other than XP x64). (Not to mention 32-bit processors are sometimes called i386…i686, where the i stands for Intel, and those processors were also manufactured by AMD and others) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Chris Warrick
On 28 February 2016 at 15:11, Rustom Mody <rustompm...@gmail.com> wrote: > On Sunday, February 28, 2016 at 7:30:57 PM UTC+5:30, Chris Warrick wrote: >> On 28 February 2016 at 14:49, Rustom Mody wrote: >> > On Sunday, February 28, 2016 at 6:54:40 PM UTC+5:30, Gordon Levi

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Chris Warrick
ANGE > can give you a 10,000 line diff!! You clearly haven’t ever done that. 1. git can manage EOL changing if you want to enforce a newline style that way. 2. A good editor can read and write any newline style. It should also not convert without asking the user. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Nikola v7.7.5 is out!

2016-02-12 Thread Chris Warrick
dash in tags (Issue #2212) * Decide is_mathjax based on current language tags (Issue #2205) * Don't duplicate images in flowr when resizing page (Issue #2202) - -- Chris Warrick <http://chriswarrick.com/> PGP: 5EAAEA16 -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQEcBAEBCAAGB

Re: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO

2016-02-08 Thread Chris Warrick
e major version number. > -- > https://mail.python.org/mailman/listinfo/python-list In fact, this was done by a very popular Python project two years ago. That project is pip, which went from 1.5.6 to 6.0, and is now at 8.0.2. And its best friend setuptools is up to version 20.0. -- Chris

Re: I can not install matplotlib, numpy, scipy, and pandas.

2016-01-06 Thread Chris Warrick
ng in 1. fails, get a wheel package from the website mentioned in 2. Alternatively, try: https://www.scipy.org/install.html#individual-binary-and-source-packages -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

Re: CGI

2015-12-27 Thread Chris Warrick
lman/listinfo/python-list Better yet, use a real WSGI server like uWSGI and its associated nginx module. (there are plenty of tutorials around the Internet) -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list

  1   2   >