Re: Komodo, Python

2012-06-16 Thread Ian Kelly
On Sat, Jun 16, 2012 at 3:20 AM, Dieter Maurer wrote: > In addition it shows that the "kdb.py" code is very old. "whrandom" > is been replaced by "random" a long time ago. Komodo 2.5 was released in 2003. At the time, Python was on release 2.3. Komodo is currently on version 7. The OP should co

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-16 Thread Chris Angelico
On Sun, Jun 17, 2012 at 2:18 PM, Steven D'Aprano wrote: > Safe from what? What is your threat model? Are you worried about your > little sister reading your diary? Or the NSA discovering your plans to > assassinate the President? Or something in between? > > Python's random module is not cryptogra

Re: Smart quote character replacement for those with deficient sed-fu.

2012-06-16 Thread Steven D'Aprano
On Sat, 16 Jun 2012 18:39:42 -0700, smitty1e wrote: [...] > python charfix.py `ls src/*.tex` > > charfix.py code: Thanks for that. You might like to also publish it on the ActiveState Python recipes site, where people are more likely to find it in the future. http://code.activestate.com/reci

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-16 Thread Steven D'Aprano
On Sat, 16 Jun 2012 19:15:34 -0700, Yesterday Paid wrote: > I'm making cipher program with random.seed(), random.random() as the key > table of encryption. > I'm not good at security things and don't know much about the algorithm > used by random module. Start by reading the Fine Manual: http:/

Re: Python 3.3.0a4, please add ru'...'

2012-06-16 Thread Steven D'Aprano
On Sat, 16 Jun 2012 10:36:42 -0700, jmfauth wrote: > Please consistency. There is no point asking here. Feature requests and bug reports must go on the tracker, or they are unlikely to be noticed or remembered by anyone who can fix it. http://bugs.python.org/ Given that 3.3's feature-freeze

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-16 Thread Jon Clements
On Sun, 17 Jun 2012 12:31:04 +1000, Chris Angelico wrote: > On Sun, Jun 17, 2012 at 12:15 PM, Yesterday Paid > wrote: >> I'm making cipher program with random.seed(), random.random() as the >> key table of encryption. >> I'm not good at security things and don't know much about the algorithm >> u

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-16 Thread Paul Rubin
Yesterday Paid writes: > I'm making cipher program with random.seed(), random.random() as the > key table of encryption... > Is it really random or safe enough to keep my data safe? No. Use os.urandom instead. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonic cross-platform GUI desingers ?? la Interface Builder (Re: what gui designer is everyone using)

2012-06-16 Thread Chris Angelico
On Fri, Jun 15, 2012 at 7:47 AM, Dietmar Schwertberger wrote: > The point is, that if you want to promote Python as replacement > for e.g. VB, Labview etc., then an easy-to-use GUI builder is required. > The typical GUI programs will just have an input mask, a button and one > or two output fields

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-16 Thread Chris Angelico
On Sun, Jun 17, 2012 at 12:15 PM, Yesterday Paid wrote: > I'm making cipher program with random.seed(), random.random() as the > key table of encryption. > I'm not good at security things and don't know much about the > algorithm used by random module. For security, you don't want any algorithm,

Is that safe to use ramdom.random() for key to encrypt?

2012-06-16 Thread Yesterday Paid
I'm making cipher program with random.seed(), random.random() as the key table of encryption. I'm not good at security things and don't know much about the algorithm used by random module. Is it really random or safe enough to keep my data safe? -- http://mail.python.org/mailman/listinfo/python-l

Smart quote character replacement for those with deficient sed-fu.

2012-06-16 Thread smitty1e
Use case: === 1. OSX 10.7, bunch of .tex files culled from a blog via some cruddy old Perl script. .tex files are utf-8 encoded, which means the quotes and apostrophes drop out going through pdflatex. 2. Recommend using git to manage the .tex files, which are all in a /src directory in the p

Re: is the same betweent python3 and python3.2?

2012-06-16 Thread contro opinion
root@debian:/home/debian# find / -name 'python3' /usr/lib/python-3.2.3/bin/python3 root@debian:/home/debian# /usr/lib/python-3.2.3/bin/python3 Python 3.2.3 (default, Jun 16 2012, 10:59:54) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> it is th

Re: Academic citation of Python

2012-06-16 Thread Terry Reedy
On 6/16/2012 5:01 PM, Christian Heimes wrote: Am 16.06.2012 22:44, schrieb Terry Reedy: Rossum, Guido van, et al, *The Python Language Reference*, Python Software Foundation; http://docs.python.org/py3k/reference/index.html Actually it's "van Rossum, Guido", not "Rossum, Guido van". The "van"

Re: Academic citation of Python

2012-06-16 Thread Christian Heimes
Am 16.06.2012 22:44, schrieb Terry Reedy: > Rossum, Guido van, et al, *The Python Language Reference*, Python > Software Foundation; http://docs.python.org/py3k/reference/index.html Actually it's "van Rossum, Guido", not "Rossum, Guido van". The "van" is part of the family name, not a middle name.

Re: Academic citation of Python

2012-06-16 Thread Terry Reedy
On 6/15/2012 11:24 PM, Mark Livingstone wrote: Hello! I wish to properly cite Python in an academic paper I am writing. Is there a preferred document etc to cite? At present, I would use something like Rossum, Guido van, et al, *The Python Language Reference*, Python Software Foundation; ht

Re: Academic citation of Python

2012-06-16 Thread Ben Finney
Olmo Hernández Cuba writes: > Well, maybe something like: > > G. Van Rossum. The Python Language > Reference Manual. Network Theory Ltd., September 2003. Are you referencing material from that document? If so, go ahead and reference that document's URL. > In other languages I use, the prope

Python 3.3.0a4, please add ru'...'

2012-06-16 Thread jmfauth
Please consistency. >>> sys.version '3.3.0a4 (v3.3.0a4:7c51388a3aa7+, May 31 2012, 20:15:21) [MSC v.1600 32 bit (Intel)]' >>> 'a' 'a' >>> b'a' b'a' >>> br'a' b'a' >>> rb'a' b'a' >>> u'a' 'a' >>> ur'a' 'a' >>> ru'a' SyntaxError: invalid syntax >>> jmf -- http://mail.python.org/mailman/listinfo/py

python 3.3 bz2 decompression testing results

2012-06-16 Thread Pauli Rikula
I tested http://python.org/ftp/python/3.3.0/python-3.3.0a4.amd64.msi bz2 module's decompression using the bz2 -files from: https://www.ee.oulu.fi/research/ouspg/PROTOS_Test-Suite_c10-archive and found nothing. I did not use anything like Valgrind though. Should I try to run these tests again usin

Re: Academic citation of Python

2012-06-16 Thread Emile van Sebille
Or copy a citation from Guido: http://www.python.org/~guido/Publications.html Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: Academic citation of Python

2012-06-16 Thread Rich Webb
On Sat, 16 Jun 2012 14:01:12 +0100, Mark Lawrence wrote: >On 16/06/2012 04:24, Mark Livingstone wrote: >> Hello! >> >> I wish to properly cite Python in an academic paper I am writing. >> >> Is there a preferred document etc to cite? >> >> Thanks in advance, >> >> MArkL > >The main website www.py

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-16 Thread Wolfgang Keller
On Thu, 14 Jun 2012 12:59:23 -0700 (PDT) CM wrote: > On Jun 14, 2:25 pm, Wolfgang Keller wrote: > > > > What is needed for domain specialists are frameworks and related > > tools such as GUI builders that allow them to write exclusively the > > domain-specific code (this is where a domain speci

Re: Academic citation of Python

2012-06-16 Thread J. Cliff Dyer
That's a rather vague question. What do you want to cite about python? If you're just mentioning python, that shouldn't warrant a citation, though a parenthetical note linking to python.org might be useful. The standard documentation should be acceptable, or possibly a link to the source code at

Re: Academic citation of Python

2012-06-16 Thread Mark Lawrence
On 16/06/2012 04:24, Mark Livingstone wrote: Hello! I wish to properly cite Python in an academic paper I am writing. Is there a preferred document etc to cite? Thanks in advance, MArkL The main website www.python.org and possibly the sites for Jython, IronPython and PyPY? -- Cheers. Ma

Re: is the same betweent python3 and python3.2?

2012-06-16 Thread Andrew Berg
On 6/15/2012 11:31 PM, contro opinion wrote: > is the /usr/lib/python-3.2.3/bin/python3 same as > /usr/lib/python-3.2.3/bin/python3.2? It should be. IIRC, ls -l will tell you if something is a link. You could also run python3 and it will tell you the version. -- CPython 3.3.0a4 | Windows NT 6.1.

Re: Create thumbnail image (jpg/png) of PDF file using Python

2012-06-16 Thread Chris Angelico
On Fri, Jun 15, 2012 at 9:15 AM, Dennis Lee Bieber wrote: >        PDF is not an "image" file format; it is a "program" describing how > to render each page. Some of the page contents can be image bitmap data, > but a "proper" PDF has text AS text. Plus, JPG is very poor at handling text. It's de

Re: Academic citation of Python

2012-06-16 Thread Olmo Hernández Cuba
Well, maybe something like: G. Van Rossum. The Python Language Reference Manual. Network Theory Ltd., September 2003. In other languages I use, the proper citation is obtained from the interpreter itself, and it points you to the language reference. Hope this helps. El Sat, 16 Jun 2012 1

Re: Threads vs subprocesses

2012-06-16 Thread John O'Hagan
On Fri, 15 Jun 2012 16:34:57 -0400 Dennis Lee Bieber wrote: > On Sat, 16 Jun 2012 03:24:13 +1000, John O'Hagan > declaimed the following in > gmane.comp.python.general: > > > > I should have made it clear that I'm not using threads to speed anything up; > > each thread produces an independentl

Re: Komodo, Python

2012-06-16 Thread Dieter Maurer
"Isaac@AU" writes: > I just started learning python. I have komodo2.5 in my computer. And I > installed python2.7. I tried to write python scripts in komodo. But every > time I run the code, there's always the error: > > Traceback (most recent call last): > File "C:\Program Files\ActiveState