Babel - Python library for I18N and L10N

2007-06-20 Thread Jonas
Quoting Christopher Lenz: - Babel 0.8 - Jun 20, 2007 We're proud to present the latest release of the Babel: 0.8. Babel is a Python library that provides an integrated collection of ut

GC performance with lists

2007-09-04 Thread jonas
While working on some python wrapping, I've run into some problems where the GC seems to take an unreasonable amount of time to run. The code below is a demonstration: import gc #gc.disable() data = [] for i in xrange(10): shortdata = [] for j in range(57): mytuple = (j, i+1,

pleac

2006-05-04 Thread jonas
Hi, I'm new to python. After a search on http://pleac.sourceforge.net/pleac_python/index.html why python have a low %? Thanks in advance -- http://mail.python.org/mailman/listinfo/python-list

Re: pleac

2006-05-04 Thread jonas
Thanks Fredrik, i'm going to buy the book. After all, there's nothing about the Python language power! thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Split a list into two parts based on a filter?

2013-06-10 Thread Jonas Geiregat
On 11 Jun 2013, at 01:08, Fábio Santos wrote: > > On 10 Jun 2013 23:54, "Roel Schroeven" wrote: > > > > You could do something like: > > > > new_songs, old_songs = [], [] > > [(new_songs if s.is_new() else old_songs).append(s) for s in songs] > > > > But I'm not sure that that's any better than

Re: Python Magazine

2013-06-12 Thread Jonas Geiregat
On 31 May 2013, at 13:11, DRJ Reddy wrote: > Hello all, >Was busy with work. Finally finished the job of registering the domain > name. > Will be live soon. The url is http://pythonmagazine.org. Hope we will be live > soon. I was surprised when I saw it is running on ASP.NET, can this be

[Ann] pyBug - Python Belgian User Group

2012-09-18 Thread Jonas Geiregat
It's located at: https://groups.google.com/forum/?fromgroups#!forum/python-belgian-user-group You can also subscribe by sending an email to python-belgian-user-group+subscr...@googlegroups.com Hope to see you there. Yours sincerely, Jonas Geiregat.-- http://mail.python.org/mailman/listinfo/python-list

[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.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

Output not defined

2018-06-01 Thread jonas . thornvall
Can any web programmer tell me why output is not defined? I know this is python group but my code is so rudimentary that probably any sufficient good webprogrammer can figure it out, but i am lost."I've tried comp.lang.javascript" Problem is I've looked upon this for a week or two, and i just ca

[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.10.1 released

2018-08-11 Thread Jonas Wielicki
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]. kind regards, Jonas [1]: https://github.com/horazont/aioxmpp [2]: https://pypi.python.org/pypi/aioxmpp [3]: https

[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

Compression of random binary data

2016-07-11 Thread jonas . thornvall
What kind of statistic law or mathematical conjecture or is it even a physical law is violated by compression of random binary data? I only know that Shanon theorised it could not be done, but were there any proof? What is to say that you can not do it if the symbolic representation is riche

Re: Compression of random binary data

2016-07-11 Thread jonas . thornvall
Den måndag 11 juli 2016 kl. 20:09:39 UTC+2 skrev Waffle: > On 11 July 2016 at 20:52, wrote: > > What kind of statistic law or mathematical conjecture or is it even a > > physical law is violated by compression of random binary data? > > > > I only know that Shanon theorised it could not be done

Re: Compression of random binary data

2016-07-11 Thread jonas . thornvall
Den måndag 11 juli 2016 kl. 20:24:37 UTC+2 skrev jonas.t...@gmail.com: > Den måndag 11 juli 2016 kl. 20:09:39 UTC+2 skrev Waffle: > > On 11 July 2016 at 20:52, wrote: > > > What kind of statistic law or mathematical conjecture or is it even a > > > physical law is violated by compression of ran

Re: Compression of random binary data

2016-07-12 Thread jonas . thornvall
Den måndag 11 juli 2016 kl. 20:38:51 UTC+2 skrev Steven D'Aprano: > On Tue, 12 Jul 2016 03:52 am, jonas.thornv...@gmail.com wrote: > > > What kind of statistic law or mathematical conjecture or is it even a > > physical law is violated by compression of random binary data? > > The pigeon hole pr

Re: Compression of random binary data

2016-07-12 Thread jonas . thornvall
Den tisdag 12 juli 2016 kl. 05:01:20 UTC+2 skrev Lawrence D’Oliveiro: > On Tuesday, July 12, 2016 at 5:52:27 AM UTC+12, jonas.t...@gmail.com wrote: > > > What kind of statistic law or mathematical conjecture or is it even a > > physical law is violated by compression of random binary data? > >

Re: Compression of random binary data

2016-07-12 Thread jonas . thornvall
Den tisdag 12 juli 2016 kl. 17:12:01 UTC+2 skrev Steven D'Aprano: > On Wed, 13 Jul 2016 12:24 am, jonas.thornv...@gmail.com wrote: > > > Den måndag 11 juli 2016 kl. 20:38:51 UTC+2 skrev Steven D'Aprano: > >> On Tue, 12 Jul 2016 03:52 am, jonas.thornv...@gmail.com wrote: > >> > >> > What kind of s

Re: Compression of random binary data

2016-07-12 Thread jonas . thornvall
Den tisdag 12 juli 2016 kl. 17:19:54 UTC+2 skrev Steven D'Aprano: > On Wed, 13 Jul 2016 12:29 am, jonas.thornv...@gmail.com wrote: > > > Den tisdag 12 juli 2016 kl. 05:01:20 UTC+2 skrev Lawrence D’Oliveiro: > >> On Tuesday, July 12, 2016 at 5:52:27 AM UTC+12, jonas.t...@gmail.com > >> wrote: > >>

Re: Compression of random binary data

2016-07-12 Thread jonas . thornvall
Den tisdag 12 juli 2016 kl. 20:20:52 UTC+2 skrev Michael Torrie: > On 07/12/2016 11:46 AM, jonas.thornv...@gmail.com wrote: > > Well the algorithm start with looking up a suitable folding structure > > "close enough to the number", then it works down the folding > > structure finding the fold where

Re: Compression of random binary data

2016-07-12 Thread jonas . thornvall
Den tisdag 12 juli 2016 kl. 20:20:52 UTC+2 skrev Michael Torrie: > On 07/12/2016 11:46 AM, jonas.thornv...@gmail.com wrote: > > Well the algorithm start with looking up a suitable folding structure > > "close enough to the number", then it works down the folding > > structure finding the fold where

Re: Compression of random binary data

2016-07-12 Thread jonas . thornvall
Den tisdag 12 juli 2016 kl. 21:40:36 UTC+2 skrev jonas.t...@gmail.com: > Den tisdag 12 juli 2016 kl. 20:20:52 UTC+2 skrev Michael Torrie: > > On 07/12/2016 11:46 AM, jonas.thornv...@gmail.com wrote: > > > Well the algorithm start with looking up a suitable folding structure > > > "close enough to t

Re: Compression of random binary data

2016-07-12 Thread jonas . thornvall
Den onsdag 13 juli 2016 kl. 00:24:23 UTC+2 skrev Ian: > On Tue, Jul 12, 2016 at 11:35 AM, wrote: > > > > No it is only compressible down to a limit given by the algorithm. > > Then your algorithm does not compress random data as you claimed. > > For some input, determine the limiting output tha

Re: Compression of random binary data

2016-07-12 Thread jonas . thornvall
Den onsdag 13 juli 2016 kl. 00:24:23 UTC+2 skrev Ian: > On Tue, Jul 12, 2016 at 11:35 AM, wrote: > > > > No it is only compressible down to a limit given by the algorithm. > > Then your algorithm does not compress random data as you claimed. > > For some input, determine the limiting output tha

Re: Compression of random binary data

2016-07-13 Thread jonas . thornvall
Den onsdag 13 juli 2016 kl. 04:29:48 UTC+2 skrev Steven D'Aprano: > On Wed, 13 Jul 2016 03:35 am, jonas.thornv...@gmail.com wrote: > > > No it is only compressible down to a limit given by the algorithm. > > Right! Then there is data that you can't compress. > > Suppose you have some data: > >

Re: Compression of random binary data

2016-07-13 Thread jonas . thornvall
Den onsdag 13 juli 2016 kl. 04:29:48 UTC+2 skrev Steven D'Aprano: > On Wed, 13 Jul 2016 03:35 am, jonas.thornv...@gmail.com wrote: > > > No it is only compressible down to a limit given by the algorithm. > > Right! Then there is data that you can't compress. > > Suppose you have some data: > >

Re: Compression of random binary data

2016-07-13 Thread jonas . thornvall
Den onsdag 13 juli 2016 kl. 12:05:03 UTC+2 skrev jonas.t...@gmail.com: > Den onsdag 13 juli 2016 kl. 04:29:48 UTC+2 skrev Steven D'Aprano: > > On Wed, 13 Jul 2016 03:35 am, jonas.thornv...@gmail.com wrote: > > > > > No it is only compressible down to a limit given by the algorithm. > > > > Right!

Not a python question, just programming logic trap?

2019-03-13 Thread jonas . thornvall
Anyone who is good at see logic traps in programming? comp.lang.javascript is defunct so i try here. Using the metronome. https://midisequenser.000webhostapp.com I've tried to understand how following code can lead to that after the keyreleased the front of the keyed scrollbar raise/extend f

Re: Not a python question, just programming logic trap?

2019-03-14 Thread jonas . thornvall
Den torsdag 14 mars 2019 kl. 06:09:02 UTC+1 skrev Rick Johnson: > jonas.t...@gmail.com wrote: > > Nah i can't see the error is due to the "If clause" branching possibly it > > should been an elseif at instead of separate if. No there is something > > going wrong with the variables. > > Well, the

[ANN] aioxmpp 0.11.0 released

2020-04-10 Thread Jonas Schäfer
key [7]. kind regards, Jonas [1]: https://github.com/horazont/aioxmpp [2]: https://pypi.python.org/pypi/aioxmpp [3]: https://docs.zombofant.net/aioxmpp/0.11/ [4]: https://lists.zombofant.net/mailman/listinfo/aioxmpp-devel [5]: https://github.com/horazont/aioxmpp/issues [6]: aiox

Re: HTTP GET request with basic authorization?

2005-01-02 Thread Jonas Galvez
Christopher J. wrote: > I tried this, but it didn't work: > conn.request("GET", "/somepage.html", None, > {"AUTHORIZATION": "Basic username:password"}) Hmm, try this: import re, base64 userpass = base64.encodestring('user:pass').replace('\n', '') authd = {'Authorization':'Basic %s' % userpass} c

Re: python3: 'where' keyword

2005-01-10 Thread Jonas Galvez
;closures", where a decorator is able to 'receive' a code block, which would be passed as a function as the first argument of the decorator. (Is this clear?) As I said, I'm no language design expert and I'm sure I'm breaking a few important rules here heh. But I fi

Re: What YAML engine do you use?

2005-01-20 Thread Jonas Galvez
Diez B. Roggisch wrote: > I first used yaml, tried to migrate to syck. What I like about > syck is that it is faster and doesn't try to create objects but > only dicts - but it crashed if the number of yaml objects grew > larger. So I still use yaml. Hmm.. I've never had any problems with syck.

Re: check whether directory is readable

2005-08-23 Thread Jonas Geiregat
eels wrote: > Hello, > how can I check whether a directory is readable or not. Are there > differences between unix and windows? As far as I know there aren't any differences, code: import os if access("/root", os.R_OK): print "You are able to read the /root dir" -- http://mail.python.

Re: Python and the web

2005-08-23 Thread Jonas Geiregat
Terry Hancock wrote: > > Yes. If you're into killer apps, try out Zope. But it does have a learning > curve. > There are probably a dozen or so alternatives that are all "smaller and > quicker > to learn". > Very true zope is a killer app, but different from all the other well know server si

Re: gtkmozembed in fedora core 3

2005-08-23 Thread Jonas Geiregat
Martin DeMello wrote: > Could someone help me get gtkmozembed working under fc3? The only > available rpms need gnome-python2 >= 2.9 and fc3 ships with 2.6. I can't > find any fc3 rpms to upgrade gnome-python2 and I can't quite figure out > what I'd need to compile just to install gtkmozembed and t

Re: High Level FTP library

2005-08-23 Thread Jonas Geiregat
Paulo Pinto wrote: > Hello, > > Is there any Python library similar to NET::FTP from Perl? > ftplib seems too lowlevel. > > I already found a few, but would like to get one that is > endorsed by the community. > > Thanks, > Paulo libftp sucks just look at how it's written such evil code! Not th

Re: Email client in Pyhton

2005-08-24 Thread Jonas Geiregat
[EMAIL PROTECTED] wrote: > Hi grp, > I new to this grp and python too. > i have started writing few python scripts myself. > > now i am planning to write a bear minimum email client in > pyhton. i found the smtp module of python could serve my > pupose. I can send message using mails using the smt

questions concerning cgi.FieldStorage(keep_blank_values=1)

2005-02-20 Thread Jonas Meurer
ys = form.keys() keys.sort() for key in keys: print key ---snip--- if i request the script with script.py?key1&key2=foo, it will output: list keys with form.keys(): key2 any suggestions about how to make form.keys() contain the blank keys as well? bye jonas -- http://mail.python.org/mailman/listinfo/python-list

Re: questions concerning cgi.FieldStorage(keep_blank_values=1)

2005-02-20 Thread Jonas Meurer
ldStorage also includes key1. great, it works. but is there no way to use single keywords as GET argument? bye jonas -- http://mail.python.org/mailman/listinfo/python-list

display VARCHAR(mysql) and special chars in html

2005-02-21 Thread Jonas Meurer
with the relevant html code, but maybe this already exists in some module? if not, it'll be hard work, as i've to consider many special chars, and at least iso-8859-1* and utf-8 as charmaps. bye jonas -- http://mail.python.org/mailman/listinfo/python-list

Re: display VARCHAR(mysql) and special chars in html

2005-02-22 Thread Jonas Meurer
the comment never contains special chars except they weren't filtered out when safed in mysql. do any filters exist, to transform plain text to html? otherwise i might use third-party products, as text2html. what do you think? bye jonas -- http://mail.python.org/mailman/listinfo/python-list

update images inside a mysql database

2005-02-24 Thread Jonas Meurer
e) o.close() db_connect.cursor.execute(sql_exec) i've the strong feeling that the substitution makes problems. if the string 'image' conains ' or " for example, the sql_exec is broken. what do you suggest? bye jonas -- http://mail.python.org/mailman/listinfo/python-list

Re: update images inside a mysql database

2005-02-24 Thread Jonas Meurer
image problem as well, but I don't know. i don't know what your example changes with using placeholders, as my version used placeholders as well. anyway, i changed my code to resemble your version. i still get the same problem: (cgitb output) ---SNIP- /home/jonas/public_ht

Re: update images inside a mysql database

2005-02-25 Thread Jonas Meurer
On 25/02/2005 Dennis Lee Bieber wrote: > On Thu, 24 Feb 2005 23:10:48 +0100, Jonas Meurer <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > > version used placeholders as well. anyway, i changed my code to resemble > > "resemble&q

Re: debian python2.4

2004-12-02 Thread Jonas Galvez
km wrote: > is there a debian binary of python2.4 ? Not yet, I guess, but I could easily compile it from the source (I'm no Linux expert, I simply followed the instructions: ./configure, make, make install, and voilà). No error messages, no nothing. Only downside is that /usr/bin/python still poin

HTTP response code

2004-12-03 Thread Jonas Galvez
Hi list, here's a question about urllib. Is it possible to simply retrieve the HTTP responde code for a given URL? I don't want to download the body of the HTTP message. I simply want to check the response code, like, if it is 200, 301 etc. Something like: if urllib.urlopen(the_url).response_co

Line based graphic in canvas (vectorgraphic?) scale incorrectly on HDMI monitor.

2013-12-21 Thread jonas . thornvall
Is there a way to make linebased graphic used in canvas scale correct on any monitor? I run in 1920*1080 on a Philips TV used as monitor does it matter, lines tend to get longer vertical then horizontal? Strange is i really do not see it writing out recangles. -- https://mail.python.org

Re: Line based graphic in canvas (vectorgraphic?) scale incorrectly on HDMI monitor.

2013-12-21 Thread jonas . thornvall
Den lördagen den 21:e december 2013 kl. 20:03:17 UTC+1 skrev Ned Batchelder: > On 12/21/13 1:30 PM, jonas.thornv...@gmail.com wrote: > > > Is there a way to make linebased graphic used in canvas scale correct on > > any monitor? > > > > > > I run in 1920*1080 on a Philips TV used as monitor doe

Re: Line based graphic in canvas (vectorgraphic?) scale incorrectly on HDMI monitor.

2013-12-21 Thread jonas . thornvall
Den lördagen den 21:e december 2013 kl. 20:56:54 UTC+1 skrev Ned Batchelder: > On 12/21/13 2:12 PM, jonas.thornv...@gmail.com wrote: > > > Den l�rdagen den 21:e december 2013 kl. 20:03:17 UTC+1 skrev Ned > > Batchelder: > > >> On 12/21/13 1:30 PM, jonas.thornv...@gmail.com wrote: > > >> > >

Re: Brython (Python in the browser)

2013-12-27 Thread jonas . thornvall
Den fredagen den 27:e december 2013 kl. 07:14:35 UTC+1 skrev Pierre Quentel: > Hi, > > > > Ever wanted to use Python instead of Javascript for web client programming ? > Take a look at Brython, an implementation of Python 3 in the browser, with an > interface with DOM elements and events > >

Keen eyes

2016-01-16 Thread jonas . thornvall
This is not python just a short snippet of javascript that refuse tracing, i've staired blind upon it but since it does something weird with allocating memory i have no idea what is going on and the parrots and monkeys at comp.lang.javascript refuse to give a hint. Something in those loops real

Re: Keen eyes

2016-01-16 Thread jonas . thornvall
Den lördag 16 januari 2016 kl. 23:30:48 UTC+1 skrev Chris Angelico: > On Sun, Jan 17, 2016 at 9:23 AM, wrote: > > function factor_it(i){ > > prime=true; > > sqroot=Math.floor(Math.sqrt(i)); > > for (j=2;j > {return prime}} > > return prime; > > } > > A couple of potential problems here. The firs

Re: Keen eyes

2016-01-16 Thread jonas . thornvall
Den lördag 16 januari 2016 kl. 23:30:48 UTC+1 skrev Chris Angelico: > On Sun, Jan 17, 2016 at 9:23 AM, wrote: > > function factor_it(i){ > > prime=true; > > sqroot=Math.floor(Math.sqrt(i)); > > for (j=2;j > {return prime}} > > return prime; > > } > > A couple of potential problems here. The firs

Primality sieve challenge

2016-01-17 Thread jonas . thornvall
Maybe we could have a challenge finding the base with best reducion factor upto base 100 00? One probably do not want to store more vectors than that in memory, and i guess Reducing composites in the integer field http://jt.node365.se/composite.html I've made my own kind of primality sieve

Re: Primality sieve challenge

2016-01-17 Thread jonas . thornvall
Den söndag 17 januari 2016 kl. 10:44:47 UTC+1 skrev jonas.t...@gmail.com: > Maybe we could have a challenge finding the base with best reducion factor > upto base 100 00? One probably do not want to store more vectors than > that in memory, and i guess > > Reducing composites in the integer

General computer language, syntax question.

2016-02-29 Thread jonas . thornvall
I have a problem programming uniform networks, "x nodes with y links" that turn out to be really hairy to solve for me and i feel i really lack the programming features "Actually i program in javascript" but the problem seem general for all programming languages including Pyhton. For a beauti

Re: General computer language, syntax question.

2016-02-29 Thread jonas . thornvall
Den måndag 29 februari 2016 kl. 14:45:37 UTC+1 skrev jonas.t...@gmail.com: > I have a problem programming uniform networks, "x nodes with y links" that > turn out to be really hairy to solve for me and i feel i really lack the > programming features > > "Actually i program in javascript" but th

Re: General computer language, syntax question.

2016-02-29 Thread jonas . thornvall
Den måndag 29 februari 2016 kl. 14:57:04 UTC+1 skrev jonas.t...@gmail.com: > Den måndag 29 februari 2016 kl. 14:45:37 UTC+1 skrev jonas.t...@gmail.com: > > I have a problem programming uniform networks, "x nodes with y links" that > > turn out to be really hairy to solve for me and i feel i really

Loop awareness

2016-02-29 Thread jonas . thornvall
This program creates a uniform linktree of x nodes, and it knows when it get stuck in a loop generating random values. Because the networks random generated, only a subset of the permutations will generate a uniform network most get stuck in loops generating random values. But the program keep

Re: Loop awareness

2016-02-29 Thread jonas . thornvall
Den måndag 29 februari 2016 kl. 21:32:51 UTC+1 skrev Ian: > On Mon, Feb 29, 2016 at 1:07 PM, wrote: > > This program creates a uniform linktree of x nodes, and it knows when it > > get stuck in a loop generating random values. > > > > Because the networks random generated, only a subset of the p

Condition fullfilled to early but only "sometimes"

2016-02-29 Thread jonas . thornvall
I've been looking at the code for two days so i am a bit crosseyed. If anyone could help me set the condition so the loop catch the last pair/pairs, it is kind of weird that it succeed sometimes and break to early and report fail others. I would be very greatful if anyone can see why it break to

Re: Condition fullfilled to early but only "sometimes"

2016-03-01 Thread jonas . thornvall
Den tisdag 1 mars 2016 kl. 08:49:57 UTC+1 skrev Ian: > It's not at all clear what the problem is from your description. What > is it that you expect the code to do? What is it doing instead that > violates your expectation? Why are you asking for Javascript help on a > Python mailing list? > > On

Re: Condition fullfilled to early but only "sometimes"

2016-03-01 Thread jonas . thornvall
Den tisdag 1 mars 2016 kl. 08:49:57 UTC+1 skrev Ian: > It's not at all clear what the problem is from your description. What > is it that you expect the code to do? What is it doing instead that > violates your expectation? Why are you asking for Javascript help on a > Python mailing list? > > On

Re: Condition fullfilled to early but only "sometimes"

2016-03-01 Thread jonas . thornvall
Den tisdag 1 mars 2016 kl. 08:49:57 UTC+1 skrev Ian: > It's not at all clear what the problem is from your description. What > is it that you expect the code to do? What is it doing instead that > violates your expectation? Why are you asking for Javascript help on a > Python mailing list? > > On

Compact connected regular graphs

2016-03-06 Thread jonas . thornvall
How come all graphs using 42 links and more then 84 nodes have compact regular connected solutions? Did turn off animation for more than a couple of thousands of links so the animation is off when searching but script give message and numerical results on search. http://jt.node365.se/nodes15

Re: Compact connected regular graphs

2016-03-06 Thread jonas . thornvall
Den söndag 6 mars 2016 kl. 12:01:02 UTC+1 skrev Mark Lawrence: > On 06/03/2016 10:39, jonas.thornv...@gmail.com wrote: > > How come all graphs using 42 links and more then 84 nodes have compact > > regular connected solutions? > > > > Did turn off animation for more than a couple of thousands of

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

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

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: 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: 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: 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: 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: 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

First day beginner to python, add to counter after nested loop

2013-10-29 Thread jonas . thornvall
I have a 25 row javascript that i try to convert to python to get into the language but i run into problem i do not understand howto reach outer loop after finnish inner loop, in fact i do not understand when finished. The javascript i try to conver is below. #!/usr/bin/python import math # Fu

Re: First day beginner to python, add to counter after nested loop

2013-10-29 Thread jonas . thornvall
Den tisdagen den 29:e oktober 2013 kl. 19:09:03 UTC+1 skrev Neil Cerutti: > On 2013-10-29, jonas.thornv...@gmail.com wrote: > > > I have a 25 row javascript that i try to convert to python to get into the > > language but i run into problem i do not understand howto reach outer loop > > after f

Re: First day beginner to python, add to counter after nested loop

2013-10-29 Thread jonas . thornvall
Den tisdagen den 29:e oktober 2013 kl. 19:23:28 UTC+1 skrev jonas.t...@gmail.com: > Den tisdagen den 29:e oktober 2013 kl. 19:09:03 UTC+1 skrev Neil Cerutti: > > > On 2013-10-29, jonas.thornv...@gmail.com wrote: > > > > > > > I have a 25 row javascript that i try to convert to python to get i

Re: First day beginner to python, add to counter after nested loop

2013-10-29 Thread jonas . thornvall
Den tisdagen den 29:e oktober 2013 kl. 20:24:57 UTC+1 skrev Dave Angel: > On 29/10/2013 14:35, jonas.thornv...@gmail.com wrote: > > > > (Deleting hundreds of quad-spaced garbage. Please be more considerate > > of others if you choose to use buggy googlegroups, maybe starting by > > studying:

Re: First day beginner to python, add to counter after nested loop

2013-10-29 Thread jonas . thornvall
Den tisdagen den 29:e oktober 2013 kl. 21:08:39 UTC+1 skrev jonas.t...@gmail.com: > Den tisdagen den 29:e oktober 2013 kl. 20:24:57 UTC+1 skrev Dave Angel: > > > On 29/10/2013 14:35, jonas.thornv...@gmail.com wrote: > > > > > > > > > > > > (Deleting hundreds of quad-spaced garbage. Please

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > jonas.thornv...@gmail.com wrote: > > > > > >Why did Python not implement end... The end is really not necessary for > > >the programming language it can be excluded, but it is a courtesy to > > >the programmer and could

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 09:52:16 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > jonas.thornv...@gmail.com wrote: > > > > > > > > > > > > > >Why did Python not implement end... The end is really not necessary

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 10:48:36 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 09:52:16 UTC+1 skrev > jonas.t...@gmail.com: > > > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > > > > > jonas.thornv...@gmail.com wrote:

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > jonas.thornv...@gmail.com wrote: > > > > > >Why did Python not implement end... The end is really not necessary for > > >the programming language it can be excluded, but it is a courtesy to > > >the programmer and could

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 11:08:11 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > jonas.thornv...@gmail.com wrote: > > > > > > > > > > > > > >Why did Python not implement end... The end is really not necessary

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 11:00:30 UTC+1 skrev Mark Lawrence: > On 30/10/2013 09:52, jonas.thornv...@gmail.com wrote: > > > > Please stop sending us double spaced crap. > > > > -- > > Python is the second best programming language in the world. > > But the best has yet to be i

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 11:11:17 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 11:08:11 UTC+1 skrev > jonas.t...@gmail.com: > > > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > > > > > jonas.thornv...@gmail.com wrote:

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 11:00:30 UTC+1 skrev Mark Lawrence: > On 30/10/2013 09:52, jonas.thornv...@gmail.com wrote: > > > > Please stop sending us double spaced crap. > > > > -- > > Python is the second best programming language in the world. > > But the best has yet to be i

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 11:11:17 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 11:08:11 UTC+1 skrev > jonas.t...@gmail.com: > > > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > > > > > jonas.thornv...@gmail.com wrote:

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 15:22:50 UTC+1 skrev Alister: > On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: > > > > > Op 30-10-13 13:17, Chris Angelico schreef: > > >> On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon > > >> wrote: > > >> I broadly agree with your post (I'm

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > > > Would you please be kind enough to read, digest and action this > > https://wiki.python.org/moin/GoogleGroupsPython > > > > TIA. > > > > -- > > Pyt

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:35:29 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > > > On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > > > > > > > > > > > Would you please be kind enough to read, digest

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: > On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > > >> On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > >> > > >> > > >>

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:50:43 UTC+1 skrev Grant Edwards: > On 2013-10-30, Antoon Pardon wrote: > > > Op 30-10-13 08:07, Tim Roberts schreef: > > >> jonas.thornv...@gmail.com wrote: > > >>> > > >>> Why did Python not implement end... The end is really not necessary for > > >>

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:51:58 UTC+1 skrev Alister: > On Wed, 30 Oct 2013 08:35:29 -0700, jonas.thornvall wrote: > > > > > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark > > > Lawrence: > > >> On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > >> >

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: > On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > > >> On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > >> > > >> > > >>

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: > On 30/10/2013 15:57, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: > > >> On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: > > >> > > >>> Den ons

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 18:44:20 UTC+1 skrev MRAB: > On 30/10/2013 16:31, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: > > > No that is not my problem, apparently so it is that the newsreader > > constructors do

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 18:44:20 UTC+1 skrev MRAB: > On 30/10/2013 16:31, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: > > > No that is not my problem, apparently so it is that the newsreader > > constructors do

  1   2   3   >