[ANN] aioxmpp 0.10.1 released

2018-08-11 Thread Jonas Wielicki
Dear subscribers, We are pleased to announce the release of aioxmpp 0.10.1. The current release can be obtained from GitHub [1] (check out the v0.10.1 tag) or PyPI [2]. The HTML documentation can be found at [3]. Examples can be found in the GitHub repository, in the examples sub directory.

[ANN] aioxmpp 0.10 released

2018-07-26 Thread Jonas Wielicki
Dear subscribers, We are pleased to announce the release of aioxmpp 0.10. The current release can be obtained from GitHub [1] (check out the v0.10.0 tag) or PyPI [2]. The HTML documentation can be found at [3]. Examples can be found in the GitHub repository, in the examples sub directory. a

[ANN] aioxmpp 0.9 released

2017-05-20 Thread Jonas Wielicki
Multi-User chat [6], whatever floats your boat. Please direct security-relevant issue reports directly to me (jo...@wielicki.name), preferably encrypted using my GPG public key [7]. best regards and happy-asyncio-ing, Jonas Wielicki [1]: https://github.com/horazont/aioxmpp [2]: https

[ANN] aioxmpp 0.8 released

2017-02-26 Thread Jonas Wielicki
using my GPG public key [7]. best regards and happy-asyncio-ing, Jonas Wielicki [1]: https://github.com/horazont/aioxmpp [2]: https://pypi.python.org/pypi/aioxmpp [3]: https://docs.zombofant.net/aioxmpp/0.8/ [4]: https://lists.zombofant.net/mailman/listinfo/aioxmpp-devel [5]: https

[ANN] aioxmpp 0.7.2 released

2017-01-05 Thread Jonas Wielicki
), preferrably encrypted using my GPG public key [7]. best regards and happy-asyncio-ing, Jonas Wielicki footnote 1: 0.7.0 and 0.7.1 are functionally identical. I messed up the 0.7.0 release by forgetting to change the license in the setup.py to LGPLv3+, which made PyPI show the incorrect GPLv3 license

[ANN] aioxmpp 0.7.1 (sic!) released

2016-10-08 Thread Jonas Wielicki
-relevant issue reports directly to me (jo...@wielicki.name), preferrably encrypted using my GPG public key [8]. best regards and happy-asyncio-ing, Jonas Wielicki footnote 1: 0.7.0 and 0.7.1 are functionally identical. I messed up the 0.7.0 release by forgetting to change the license in the

[ANN] aioxmpp 0.6 released

2016-07-02 Thread Jonas Wielicki
. Please direct security-relevant issue reports directly to me (jo...@wielicki.name), preferrably encrypted using my GPG public key [9]. best regards and happy-asyncio-ing, Jonas Wielicki [1]: https://github.com/horazont/aioxmpp [2]: https://pypi.python.org/pypi/aioxmpp [3]: https

Re: Python handles globals badly.

2015-09-12 Thread Jonas Wielicki
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 08.09.2015 16:31, Ian Kelly wrote: > On Tue, Sep 8, 2015 at 5:55 AM, Vladimir Ignatov > wrote: >>> I had some experience programming in Lua and I'd say - that >>> language is bad example to follow. Indexes start with 1 (I am >>> not kidding) >

Re: Hooking Mechanism when Entering and Leaving a Try Block

2015-08-13 Thread Jonas Wielicki
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 13.08.2015 08:26, Sven R. Kunze wrote: > > So, I take this as a "my personal preference guideline" because I > cannot find an official document for this (maybe, I am looking at > the wrong places). - From RFC 1855 (Netiquette Guidelines

Re: __main__ vs official module name: distinct module instances

2015-08-04 Thread Jonas Wielicki
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 02.08.2015 05:53, Cameron Simpson wrote: > When invoked this way, the module cs.app.maildb that is being > executed is actually the module named "__main__". If some other > piece of code imports "cs.app.maildb" they get a _different_ > instance

Re: Python Questions - July 25, 2015

2015-07-25 Thread Jonas Wielicki
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, These are quite a few questions and I’ll try to answer some of them. I have cut out the windows specific questions because I cannot answer them . On 25.07.2015 11:39, E.D.G. wrote: > At the moment our Perl programs use Windows "Pipes" plus file

Re: Bug in floating point multiplication

2015-07-06 Thread Jonas Wielicki
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 02.07.2015 19:29, Jason Swails wrote: > // maths.h #include #include > > int main() { double x; int i; x = 1-pow(0.5, 53); > > for (i = 1; i < 100; i++) { if ((int)(i*x) == i) { > printf("%d\n", i); break; } } > > return 0; } Does not

Re: Set a flag on the function or a global?

2015-06-16 Thread Jonas Wielicki
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 16.06.2015 01:57, Steven D'Aprano wrote: > Alternatively, I can use a flag set on the function object itself: > > edir.dunders = False > > > Naturally you can always override the default by explicitly > specifying a keyword argument edir(obj,

Re: Did the 3.4.4 docs get published early?

2015-06-10 Thread Jonas Wielicki
On 10.06.2015 17:05, Zachary Ware wrote: > On Jun 10, 2015 9:41 AM, "Mark Lawrence" wrote: >> >> On 10/06/2015 15:11, Nicholas Chammas wrote: >>> >>> For example, here is a "New in version 3.4.4" method: >>> >>> https://docs.python.org/3/library/asyncio-task.html#asyncio.ensure_future >>> >>> Howe

Re: Testing random

2015-06-07 Thread Jonas Wielicki
On 07.06.2015 08:27, Cecil Westerhof wrote: > I wrote a very simple function to test random: > def test_random(length, multiplier = 1): > number_list = length * [0] > for i in range(length * multiplier): > number_list[random.randint(0, length - 1)] += 1 >

Re: Best way to rewrite Popen

2015-05-19 Thread Jonas Wielicki
On 19.05.2015 19:01, Cecil Westerhof wrote: > At the moment I am playing with things like: > p = subprocess.Popen('ls -l', shell = True, stdout = subprocess.PIPE) > > I think that most of the times this are the values I want. So it would > be nice to overrule the defaults. What is the best way

Re: Building CPython

2015-05-17 Thread Jonas Wielicki
On 16.05.2015 02:55, Gregory Ewing wrote: > BartC wrote: >> For example, there is a /specific/ byte-code called BINARY_ADD, which >> then proceeds to call a /generic/ binary-op handler! This throws away >> the advantage of knowing at byte-code generation time exactly which >> operation is needed. >

Re: Auto-completion: why not module name?

2015-03-16 Thread Jonas Wielicki
On 16.03.2015 17:40, Chris Angelico wrote: > This is a very plausible feature request, but be aware that it will > involve a very costly disk search. Figuring out what modules could be > imported means going through the entire Python module search path, > enumerating .py (and other) files, and that

Re: generator/coroutine terminology

2015-03-16 Thread Jonas Wielicki
On 16.03.2015 13:02, Steven D'Aprano wrote: > (To be honest, I'm not even sure what the use-case for close() on coroutines > is in the first place. If you don't want to send any more items into it, > just don't send any more items into it.) Just like with file-likes, it is useful to clean up resou

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-09 Thread Jonas Wielicki
On 09.03.2015 14:39, Omar Abou Mrad wrote: > On Thu, Mar 5, 2015 at 3:34 AM, Xrrific wrote: > >> Guys, please Help!!! >> >> I am trying to impress a girl who is learning python and want ask her out >> at the same time. >> >> Could you please come up with something witty incorporating a simple >>

Re: Python Worst Practices

2015-03-05 Thread Jonas Wielicki
On 01.03.2015 03:43, Chris Angelico wrote: > Imagine if all > your Python code ran twice as fast (that's slightly better than the > IronPython figure quoted!), but worked only on BSD Unix and Mac OS. Is > that something that'll make a fledgling language succeed? I heard that Swift and Objective

Uncanny valley of languages

2015-03-02 Thread Jonas Wielicki
On 01.03.2015 18:34, Mark Lawrence wrote: > On 01/03/2015 17:01, Marko Rauhamaa wrote: >> Mark Lawrence : >> >>> Are you suggesting that we Brits have a single "home accent"? If you >>> are, you need to stand up as your voice is rather muffled. That by the >>> way is a British expression that may

Re: Bug in timsort!?

2015-02-25 Thread Jonas Wielicki
On 25.02.2015 19:41, Sturla Molden wrote: > On 25/02/15 18:22, Mario Figueiredo wrote: > >> And also presented a solution. > > Which also was incorrect :-D > > But now Benjamin Peterson has finally fixed it, it appears: > > http://bugs.python.org/issue23515 It would be too great if anyone repl

Re: Bug in timsort!?

2015-02-25 Thread Jonas Wielicki
On 25.02.2015 14:58, Sturla Molden wrote: > On 24/02/15 22:34, Roy Smith wrote: >> http://envisage-project.eu/proving-android-java-and-python-sorting-algorithm-is-broken-and-how-to-fix-it/ >> >> > […] > > Oh yes, and they mention that TimSort is used on billions of devices due > to Android mobile p

Re: Question on asyncio

2015-02-23 Thread Jonas Wielicki
On 23.02.2015 14:27, Marko Rauhamaa wrote: > pfranke...@gmail.com: >> The corresponding call is a call to the python smbus library. It >> includes several sleeps (even though they are only about 50ms). >> Therefore I think it is worthwhile to encapsulate it into a coroutine. > > Maybe. Then you'll

Re: Accessible tools

2015-02-19 Thread Jonas Wielicki
Dear Bryan, I don’t have a finished solution for you, but I would like to link you to a previous thread on this list: The poster seems to be researching into the direction of developing a speech-friendly IDE. You may want to

Re: python implementation of a new integer encoding algorithm.

2015-02-19 Thread Jonas Wielicki
Dear Jan-Hein, I read through the discussion, but until you said it directly, I did not realize that you wanted feedback on your *python* code. In that case, let me note a few things which make it unlikely that you will get (usable) feedback: 1. The code on your website is not formatted and high

Re: need some guidance on Python syntax smart editor for use with speech recognition

2015-01-05 Thread Jonas Wielicki
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Dear Eric, On 05.01.2015 08:43, Eric S. Johansson wrote: > what's a good open editor ( preferably multiplatform) that > actually decomposes Python code into fundamental components such as > class, expression, etc. and, lets you operate on those comp

Re: list comparison vs integer comparison, which is more efficient?

2015-01-05 Thread Jonas Wielicki
On 04.01.2015 13:17, austin aigbe wrote > Hi Terry, > > No difference between the int and list comparison in terms of the number of > calls(24) and time (0.004s). Main part is the repeated call to sqrt(). > > However, it took a shorter time (0.004s) with 24 function calls than your > code (0.00

The preferred way to implement a new transport in asyncio

2014-12-07 Thread Jonas Wielicki
Hello fellow pythoneers, First some background: I am implementing an XMPP client library in asyncio. XMPP uses (START-)TLS. However, the native SSL support of Python is rather restricted: We cannot hook into the certificate validation process (it is PKI-all-or-nothing) at all, in addition many of