Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Finally i have managed to install 'Python' and 'Python-pip' from rpms from EPEL repository. That good BUT: root@secure [~]# pip install pymysql Downloading/unpacking pymysql Downloading PyMySQL-0.6.1.tar.gz (51kB): 51kB downloaded Running setup.py egg_info for package pymysql Installing collecte

Re: Program Translation - Nov. 14, 2013

2013-11-16 Thread Terence
I downloaded the packed file mentioned, extracted the files and had a look at the Fortran sources given: ETGTAB.FOR and ETGTAB.F The ETGTAB.FOR file had double spacing, which Iremoved automatically, then compared the two sources automatically (passing and copying equals and offering choice between

Re: Implementing #define macros similar to C on python

2013-11-16 Thread Serhiy Storchaka
15.11.13 06:57, Chris Angelico написав(ла): On Fri, Nov 15, 2013 at 3:10 PM, Roy Smith wrote: Why would you want to? One of the most horrible things about C/C++ is the preprocessor. Hey, that's not fair! Without the preprocessor, how would you be able to do this: //Hide this part away in a

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Antoon Pardon
Op 16-11-13 09:52, Ferrous Cranus schreef: > > but when is: http://superhost.gr > i get the error you will like 'pymysql' and 'pymysql' are missing > Since they are install how can they be missing? > > root@secure [~]# which python > /usr/bin/python > > root@secure [~]# which python3 > /usr/bin/

Re: To whoever hacked into my Database

2013-11-16 Thread Robert Day
On 11/11/13 09:36, Νίκος Αλεξόπουλος wrote: Tell the mighty female hacker to polish her nails, do her hair and fix a good meal. Nikos, I'm afraid I'm not very impressed by this misogynist nonsense you keep coming out with about how your supposed female hacker ought to be doing stereotypica

Re: Running python's own unit tests?

2013-11-16 Thread Tim Golden
On 15/11/2013 23:10, Russell E. Owen wrote: In article <5285223d.50...@timgolden.me.uk>, Tim Golden wrote: http://docs.python.org/devguide/ Thank you and the other responders. I was expecting to find the information here under Building Python. The

Re: Automation

2013-11-16 Thread Mark Lawrence
On 16/11/2013 02:01, Dennis Lee Bieber wrote: Given that "English" contains remnants of latin (from the Roman occupation), saxons (a germanic tribe), angles (another germanic tribe), danish (after the joining of the anglo-saxon), other vikings (norse), then the norman invasion (which was

Re: Implementing #define macros similar to C on python

2013-11-16 Thread Mark Lawrence
On 16/11/2013 05:38, JL wrote: On Saturday, November 16, 2013 8:22:25 AM UTC+8, Mark Lawrence wrote: Yes but please don't top post. Actually print is a statement in Python 2 so your code should work if you use from __future__ import print_function at the top of your code. Would you also be kin

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Perhaps by doing: locate pymysql locate pygeoip or perhaps by using find as follows: /usr/local/lib/python3.4/site-packages/PyMySQL-0.6.1-py3.4.egg/pymysql /usr/lib/python2.6/site-packages/pymysql /var/tmp/pip-build-root/pymysql /var/tmp/pip-build-root/pymysql/pymysql /var/tmp/pip-build-root/pym

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
What the difference between locate and find? and seen find show me some results, what now? 'rm -rf' those files or i will break something? and then how i'am gonna install those 2 modules for python 3.3.2? -- https://mail.python.org/mailman/listinfo/python-list

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Joel Goldstick
not related to python On Sat, Nov 16, 2013 at 8:10 AM, Ferrous Cranus wrote: > > Perhaps by doing: > > locate pymysql > locate pygeoip > > or perhaps by using find as follows: > /usr/local/lib/python3.4/site-packages/PyMySQL-0.6.1-py3.4.egg/pymysql > /usr/lib/python2.6/site-packages/pymysql > /va

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 8:45:51 AM UTC-5, Ferrous Cranus wrote: > What the difference between locate and find? > > and seen find show me some results, what now? > > 'rm -rf' those files or i will break something? > > and then how i'am gonna install those 2 modules for python 3.3.2? For l

Re: Program Translation - Nov. 14, 2013

2013-11-16 Thread William Ray Wing
On Nov 16, 2013, at 4:31 AM, Terence wrote: > I downloaded the packed file mentioned, extracted the files and had a look > at the Fortran sources given: > ETGTAB.FOR and ETGTAB.F > > The ETGTAB.FOR file had double spacing, which Iremoved automatically, then > compared the two sources automatical

Re: Automation

2013-11-16 Thread William Ray Wing
On Nov 16, 2013, at 1:17 AM, Larry Hudson wrote: [byte] > > However, that's just a side comment. I wanted to mention my personal peeve... > > I notice it's surprisingly common for people who are native English-speakers > to use 'to' in place of 'too' (to little, to late.), "your" in place of

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Νίκος
HELP ME Στις 16/11/2013 3:53 μμ, ο/η Joel Goldstick έγραψε: not related to python On Sat, Nov 16, 2013 at 8:10 AM, Ferrous Cranus wrote: Perhaps by doing: locate pymysql locate pygeoip or perhaps by using find as follows: /usr/local/lib/python3.4/site-packages/PyMySQL-0.6.1-py3.4.egg

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Roy Smith
In article , Ned Batchelder wrote: > Just as you use "which python" to figure out what "python" was executing, > "which pip" will help you figure out what "pip" is running. And along those lines, if you're unsure where you're importing a module from, you can examine the __file__ attribute to

Static Website Generator

2013-11-16 Thread Silvio Siefke
Hello, i want try a static Website Generator. Has someone an advice for a simple and easy System to use? I want run my blog with it, so the system should run with my design of Website. I has try Pelican, but its i dont know that themeing make me crazy. Thanks For Help & Nice Weekend Silvio --

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Robert Kern
On 2013-11-16 13:59, Νίκος wrote: HELP ME The kind people at http://serverfault.com/ can help you with your system administration problems. I'm afraid that we cannot. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible b

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 8:59:13 AM UTC-5, Ferrous Cranus wrote: > HELP ME > Στις 16/11/2013 3:53 μμ, ο/η Joel Goldstick έγραψε: > > not related to python > > Nikos, stop this. You are sending repeated emails with no new information, and no evidence that you have tried anything, ab

Re: Automation

2013-11-16 Thread Roy Smith
In article , William Ray Wing wrote: > And my personal peeve - using it's (contraction) when its (possessive) > should have been used; occasionally vice-versa. And one of mine is when people write, "Here, here!" to signify agreement. What they really mean to write is, "Hear, hear!", meaning

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 5:04:41 μ.μ. UTC+2, ο χρήστης Ned Batchelder έγραψε: > On Saturday, November 16, 2013 8:59:13 AM UTC-5, Ferrous Cranus wrote: > > > HELP ME > > > Στις 16/11/2013 3:53 μμ, ο/η Joel Goldstick έγραψε: > > > > not related to python > > > > > > > > Nikos, st

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 5:01:15 μ.μ. UTC+2, ο χρήστης Robert Kern έγραψε: > On 2013-11-16 13:59, Νίκος wrote: > > > HELP ME > > > > The kind people at http://serverfault.com/ can help you with your system > > administration problems. I'm afraid that we cannot. > > > > -- >

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Chris Angelico
On Sun, Nov 17, 2013 at 2:11 AM, Ferrous Cranus wrote: > If you know and wont tell me but instead you devote time to make ironic > comments against me i will re-post the exact same question each time. Then you will quickly get killfiled by more and more people, and in the process will be working

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Also there are leftovers form python3.4a Iam thinking fo deleting those as: 'locate pythοn3.4 | rm -rf' will this help or do any accidental damage? -- https://mail.python.org/mailman/listinfo/python-list

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Mark Lawrence
On 16/11/2013 13:45, Ferrous Cranus wrote: What the difference between locate and find? I neither know nor care as it's not Python related. and seen find show me some results, what now? 'rm -rf' those files or i will break something? Ditto. and then how i'am gonna install those 2 modul

Re: Static Website Generator

2013-11-16 Thread Johannes Findeisen
Hi, On Sat, 16 Nov 2013 14:21:04 +0100 Silvio Siefke wrote: > i want try a static Website Generator. Has someone an advice for a simple > and easy System to use? I want run my blog with it, so the system should > run with my design of Website. have you looked at http://ringce.com/hyde . I curren

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 5:19:21 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > On Sun, Nov 17, 2013 at 2:11 AM, Ferrous Cranus wrote: > > > If you know and wont tell me but instead you devote time to make ironic > > comments against me i will re-post the exact same question each time. >

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 5:20:51 μ.μ. UTC+2, ο χρήστης Mark Lawrence έγραψε: > On 16/11/2013 13:45, Ferrous Cranus wrote: > > > What the difference between locate and find? > > > > I neither know nor care as it's not Python related. > > > > > > > > and seen find show me some results,

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Andreas Perstinger
On 16.11.2013 16:13, Ferrous Cranus wrote: Τη Σάββατο, 16 Νοεμβρίου 2013 5:01:15 μ.μ. UTC+2, ο χρήστης Robert Kern έγραψε: The kind people at http://serverfault.com/ can help you with your system administration problems. I'm afraid that we cannot. Robert i have followed your advise and akse th

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
> Just as you use "which python" to figure out what "python" was executing, > >"which pip" will help you figure out what "pip" is running. root@secure [~]# which python3 /usr/bin/python3 root@secure [~]# cd /usr/bin/python3 -bash: cd: /usr/bin/python3: Not a directory root@secure [~]# which pi

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Johannes Findeisen
On Sat, 16 Nov 2013 07:32:36 -0800 (PST) Ferrous Cranus wrote: > Τη Σάββατο, 16 Νοεμβρίου 2013 5:20:51 μ.μ. UTC+2, ο χρήστης Mark Lawrence > έγραψε: > > On 16/11/2013 13:45, Ferrous Cranus wrote: > root@secure [~]# cd /usr/bin/python3 > -bash: cd: /usr/bin/python3: Not a directory > > It seems

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 10:45:38 AM UTC-5, Johannes Findeisen wrote: > On Sat, 16 Nov 2013 07:32:36 -0800 (PST) > Ferrous Cranus wrote: > > > Τη Σάββατο, 16 Νοεμβρίου 2013 5:20:51 μ.μ. UTC+2, ο χρήστης Mark Lawrence > > έγραψε: > > > On 16/11/2013 13:45, Ferrous Cranus wrote: > > > root@s

Re: Static Website Generator

2013-11-16 Thread Chris “Kwpolska” Warrick
On Nov 16, 2013 3:45 PM, "Silvio Siefke" wrote: > > Hello, > > i want try a static Website Generator. Has someone an advice for a simple > and easy System to use? I want run my blog with it, so the system should > run with my design of Website. > > I has try Pelican, but its i dont know that theme

PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ferrous Cranus
root@secure [~]# find / -name python3.4 | rm -rf root@secure [~]# locate python3.4 /root/.local/lib/python3.4 /usr/local/include/python3.4m /usr/local/lib/libpython3.4m.a /usr/local/lib/python3.4 /usr/local/share/man/man1/python3.4.1 still there!!! root@secure [~]# locate python3.4 | rm -rf

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Johannes Findeisen
On Sat, 16 Nov 2013 07:56:47 -0800 (PST) Ned Batchelder wrote: > Johannes, in cases like this, it is very important to have a clear message. > I liked that you said, "We cannot teach you Unix basics here". It weakens > that message if you then teach some Unix basics. Better to keep things very

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 11:03:39 AM UTC-5, Ferrous Cranus wrote: > root@secure [~]# find / -name python3.4 | rm -rf > > root@secure [~]# locate python3.4 > /root/.local/lib/python3.4 > /usr/local/include/python3.4m > /usr/local/lib/libpython3.4m.a > /usr/local/lib/python3.4 > /usr/local/

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 6:07:35 μ.μ. UTC+2, ο χρήστης Ned Batchelder έγραψε: > On Saturday, November 16, 2013 11:03:39 AM UTC-5, Ferrous Cranus wrote: > > > root@secure [~]# find / -name python3.4 | rm -rf > > > > > > root@secure [~]# locate python3.4 > > > /root/.local/lib/python3.4

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Mark Lawrence
On 16/11/2013 16:09, Ferrous Cranus wrote: If you have to deliberately post like this in an attempt to annoy people, would you please not do so using double spaced google crap as it's very annoying, thank you in anticipation. -- Python is the second best programming language in the world. But

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ferrous Cranus
Mark wrote: > If you have to deliberately post like this in an attempt to annoy > people, would you please not do so using double spaced google crap as > it's very annoying, thank you in anticipation. Sure thing Mark, here: root@secure [~]# find / -name python3.4 | rm -rf root@secure [~]#

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread YBM
Le 16.11.2013 17:30, Ferrous Cranus a écrit : Mark wrote: If you have to deliberately post like this in an attempt to annoy people, would you please not do so using double spaced google crap as it's very annoying, thank you in anticipation. Sure thing Mark, here: root@secure [~]# find / -nam

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread YBM
Le 16.11.2013 16:32, Ferrous Cranus a écrit : root@secure [~]# locate python3.4 /root/.local/lib/python3.4 /usr/local/include/python3.4m /usr/local/lib/libpython3.4m.a /usr/local/lib/python3.4 /usr/local/share/man/man1/python3.4.1 many files of python's 3.4a have been deleted this way, but the a

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread YBM
Le 16.11.2013 16:43, Ferrous Cranus a écrit : Just as you use "which python" to figure out what "python" was executing, >"which pip" will help you figure out what "pip" is running. root@secure [~]# which python3 /usr/bin/python3 root@secure [~]# cd /usr/bin/python3 -bash: cd: /usr/bin/pytho

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 11:48:19 AM UTC-5, YBM wrote: > Le 16.11.2013 16:32, Ferrous Cranus a écrit : > > root@secure [~]# locate python3.4 > > /root/.local/lib/python3.4 > > /usr/local/include/python3.4m > > /usr/local/lib/libpython3.4m.a > > /usr/local/lib/python3.4 > > /usr/local/share/ma

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Mark Lawrence
On 16/11/2013 16:51, Ned Batchelder wrote: On Saturday, November 16, 2013 11:48:19 AM UTC-5, YBM wrote: Perhaps because this is not a folder. Learn to read. Nikos is being annoying, but there is no need to contribute to the thread just to insult him. It doesn't make the thread stop, it does

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Nikos
Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: Le 16.11.2013 17:30, Ferrous Cranus a écrit : Mark wrote: If you have to deliberately post like this in an attempt to annoy people, would you please not do so using double spaced google crap as it's very annoying, thank you in anticipation. Sure thing

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 12:00:04 PM UTC-5, Ferrous Cranus wrote: > Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: > > > Le 16.11.2013 17:30, Ferrous Cranus a écrit : > > >> Mark wrote: > > >> > > >>> If you have to deliberately post like this in an attempt to annoy > > >>> people, would you p

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Robert Kern
On 2013-11-16 17:02, Mark Lawrence wrote: On 16/11/2013 16:51, Ned Batchelder wrote: On Saturday, November 16, 2013 11:48:19 AM UTC-5, YBM wrote: Perhaps because this is not a folder. Learn to read. Nikos is being annoying, but there is no need to contribute to the thread just to insult him.

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Nikos
Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: Le 16.11.2013 17:30, Ferrous Cranus a écrit : Mark wrote: If you have to deliberately post like this in an attempt to annoy people, would you please not do so using double spaced google crap as it's very annoying, thank you in anticipation. Sure thing

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Mark Lawrence
On 16/11/2013 17:02, Ned Batchelder wrote: On Saturday, November 16, 2013 12:00:04 PM UTC-5, Ferrous Cranus wrote: The fact that it hasn't and it has indeed deleted many files proved that rm as an other linux command can take input from another's command output. This is not a Python question,

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 12:14:42 PM UTC-5, Ferrous Cranus wrote: > Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: > > Le 16.11.2013 17:30, Ferrous Cranus a écrit : > >> Mark wrote: > >> > >>> If you have to deliberately post like this in an attempt to annoy > >>> people, would you please not do so

Re: Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-16 Thread Thomas Mlynarczyk
Jason Friedman schrieb: Can you recommend an open source project (or two) written in Python; which covers multi project + sub project issue tracking linked across github repositories? Why does it need to be written in Python? Otherwise it wouldn't be on topic here, would it? Gr

Asyncmongo and Python3: ImportError: No module named 'errors'

2013-11-16 Thread Laszlo Nagy
I'm about to convert a complete library into python3. I need asnycmongo for this. Trying to install it on Ubuntu. After executing "sudo pip3 install asyncmongo" I have the following traceback: Traceback (most recent call last): ... import asyncmongo File "/usr/local/lib/python3.3/

Beginner python 3 unicode question

2013-11-16 Thread Laszlo Nagy
Example interactive: $ python3 Python 3.3.1 (default, Sep 25 2013, 19:29:01) [GCC 4.7.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import uuid >>> import base64 >>> base64.b32encode(uuid.uuid1().bytes)[:-6].lower() b'zsz653co6ii6hgjejqhw42ncgy' >>> But w

Why tornado.web.RequestHandler.arguments.get is binary?

2013-11-16 Thread Laszlo Nagy
I believe most data passed in URLs are character data. RFC 2986 also suggest that the standard should be percent encoded UTF-8: The generic URI syntax mandates that new URI schemes that provide for the representation of character data in a URI must, in effect, represent characters from the unr

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread mm0fmf
On 16/11/2013 15:33, Ferrous Cranus wrote: I have no intention to destroy this fine group, all i need is some imple help. But you are destroying it. You don't read the help given, you don't know the basic Linux commands, you can't use Google, you insist on using profanities to gain attention,

Re: Beginner python 3 unicode question

2013-11-16 Thread Luuk
On 16-11-2013 20:12, Laszlo Nagy wrote: Example interactive: $ python3 Python 3.3.1 (default, Sep 25 2013, 19:29:01) [GCC 4.7.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import uuid >>> import base64 >>> base64.b32encode(uuid.uuid1().bytes)[:-6].lowe

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread YBM
Le 16.11.2013 18:00, Nikos a écrit : Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: Le 16.11.2013 17:30, Ferrous Cranus a écrit : Mark wrote: If you have to deliberately post like this in an attempt to annoy people, would you please not do so using double spaced google crap as it's very annoying, t

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 2:46:40 PM UTC-5, YBM wrote: > Le 16.11.2013 18:00, Nikos a écrit : > > Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: > >> Le 16.11.2013 17:30, Ferrous Cranus a écrit : > >>> Mark wrote: > >>> > If you have to deliberately post like this in an attempt to annoy >

Re: Asyncmongo and Python3: ImportError: No module named 'errors'

2013-11-16 Thread MRAB
On 16/11/2013 18:58, Laszlo Nagy wrote: I'm about to convert a complete library into python3. I need asnycmongo for this. Trying to install it on Ubuntu. After executing "sudo pip3 install asyncmongo" I have the following traceback: Traceback (most recent call last): ... import as

Re: Asyncmongo and Python3: ImportError: No module named 'errors'

2013-11-16 Thread Laszlo Nagy
Sorry if this question was answered before, I'm new to Python 3. Have you seen and met its 'requirements'? If you haven't then perhaps that's the problem. Yes I did. Requirements are: pymongo 1.9+ and tornado. Both are compatible with Python 3 and are installed on my system: gandalf@gandalf

Re: Beginner python 3 unicode question

2013-11-16 Thread Laszlo Nagy
the error is in one of the lines you did not copy here because this works without problems: <> #!/usr/bin/python Most probably, your /usr/bin/python program is python version 2, and not python version 3 Try the same program with /usr/bin/python3. And also try the interactive mode with

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Tim Chase
On 2013-11-16 08:03, Ferrous Cranus wrote: > root@secure [~]# find / -name python3.4 | rm -rf [snip] > 1. DELETE ALL REMAINS OF PYTHON3.4 I'm surprised I haven't seen the suggestion to move the "/" to the end of the entire command...it would certainly DELETE ALL REMAINS OF PYTHON3.4 ;-) Note1:

Re: Beginner python 3 unicode question

2013-11-16 Thread Laszlo Nagy
Why it is behaving differently on the command line? What should I do to fix this? I was experimenting with this a bit more and found some more confusing things. Can somebody please enlight me? Here is a test function: def password_hash(self,password): public = bytearray([rando

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Mark Lawrence
On 16/11/2013 21:02, Tim Chase wrote: On 2013-11-16 08:03, Ferrous Cranus wrote: root@secure [~]# find / -name python3.4 | rm -rf [snip] 1. DELETE ALL REMAINS OF PYTHON3.4 I'm surprised I haven't seen the suggestion to move the "/" to the end of the entire command...it would certainly DELETE

Re: Beginner python 3 unicode question

2013-11-16 Thread Luuk
On 16-11-2013 21:57, Laszlo Nagy wrote: the error is in one of the lines you did not copy here because this works without problems: <> #!/usr/bin/python Most probably, your /usr/bin/python program is python version 2, and not python version 3 Try the same program with /usr/bin/python3.

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Antoon Pardon
Op 16-11-13 22:02, Tim Chase schreef: > On 2013-11-16 08:03, Ferrous Cranus wrote: >> root@secure [~]# find / -name python3.4 | rm -rf > [snip] >> 1. DELETE ALL REMAINS OF PYTHON3.4 > > I'm surprised I haven't seen the suggestion to move the "/" to the > end of the entire command...it would cer

Re: Beginner python 3 unicode question [SOLVED]

2013-11-16 Thread Laszlo Nagy
So is the default utf-8 or not? Should the documentation be updated? Or do we have a bug in the interactive shell? It was my fault, sorry. The other program used os.system at some places, and it accidentally used python2 instead of python 3. :-( -- This message has been scanned for viruse

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Mark Lawrence
On 16/11/2013 21:26, Antoon Pardon wrote: Please don't encourage our Help Vampire. I know this is generally a welcoming community that is generous with its expertise, even if someone asks questions beyond python. But Nikos abuses that generousity which angers and frustrates a lot of people and g

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread Antoon Pardon
Op 16-11-13 22:44, Mark Lawrence schreef: > On 16/11/2013 21:26, Antoon Pardon wrote: >> >> Please don't encourage our Help Vampire. I know this is generally a >> welcoming community that is generous with its expertise, even if >> someone asks questions beyond python. But Nikos abuses that generous

inconsistency in converting from/to hex

2013-11-16 Thread Laszlo Nagy
We can convert from hex str to bytes with bytes.fromhex class method: >>> b = bytes.fromhex("ff") But we cannot convert from hex binary: >>> b = bytes.fromhex(b"ff") Traceback (most recent call last): File "", line 1, in TypeError: must be str, not bytes We don't have bytes_instance.tohex()

Python Beginner

2013-11-16 Thread ngangsia akumbo
I am called Richard m from western Africa, Cameroon. It was a pleasure for me to join this group. I have been learning python for about 4 months now and i have already mastered alot as far as the language is concern. I am learning how to code, firstly because i love coding and i like to do stu

Re: Python Beginner

2013-11-16 Thread Chris Angelico
On Sun, Nov 17, 2013 at 9:25 AM, ngangsia akumbo wrote: > I am called Richard m from western Africa, Cameroon. It was a pleasure for me > to join this group. Hi! Welcome! > secondly, i wihs to start a small company after learning how to code > > I am learning python very broadly, meaning i am n

Re: Beginner python 3 unicode question

2013-11-16 Thread Chris Angelico
On Sun, Nov 17, 2013 at 8:19 AM, Laszlo Nagy wrote: > print("digest",digest,type(digest)) > > This function was called inside a script, and gave me this: > > ('digest', '\xa0\x98\x8b\xff\x04\xf9V;\xbd\x1eIHzh\x10-\xc5!\x14\x1b', 'str'>) > This looks very much like you're running under Py

Re: Beginner python 3 unicode question [SOLVED]

2013-11-16 Thread Chris Angelico
On Sun, Nov 17, 2013 at 8:44 AM, Laszlo Nagy wrote: > >> >> So is the default utf-8 or not? Should the documentation be updated? Or do >> we have a bug in the interactive shell? >> > It was my fault, sorry. The other program used os.system at some places, and > it accidentally used python2 instead

Re: Python Beginner

2013-11-16 Thread ngangsia akumbo
On Saturday, November 16, 2013 11:41:31 PM UTC+1, Chris Angelico wrote: > On Sun, Nov 17, 2013 at 9:25 AM, ngangsia akumbo wrote: > > > I am called Richard m from western Africa, Cameroon. It was a pleasure for > > me to join this group. > > > > Hi! Welcome! > > > > > secondly, i wihs to s

Re: Python Beginner

2013-11-16 Thread Chris Angelico
On Sun, Nov 17, 2013 at 10:22 AM, ngangsia akumbo wrote: > I am experience in running a business. Please i will like to know how python > can make things easier as you said. Well, anything you can describe in terms of rules and procedures can be automated. But this is the art of programming; it'

Re: Python Beginner

2013-11-16 Thread William Ray Wing
On Nov 16, 2013, at 5:25 PM, ngangsia akumbo wrote: > I am called Richard m from western Africa, Cameroon. It was a pleasure for me > to join this group. > > I have been learning python for about 4 months now and i have already > mastered alot as far as the language is concern. > > I am learn

Re: inconsistency in converting from/to hex

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 5:16:58 PM UTC-5, Laszlo Nagy wrote: > We can convert from hex str to bytes with bytes.fromhex class method: > > >>> b = bytes.fromhex("ff") > > But we cannot convert from hex binary: > > >>> b = bytes.fromhex(b"ff") > Traceback (most recent call last): >File

Re: Sharing Python installation between architectures

2013-11-16 Thread Paul Smith
On Fri, 2013-11-15 at 18:00 -0500, Paul Smith wrote: > By this I mean, basically, multiple architectures (Linux, Solaris, > MacOSX, even Windows) sharing the same $prefix/lib/python2.7 directory. > The large majority of the contents there are completely portable across > architectures (aren't they?

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Denis McMahon
On Sat, 16 Nov 2013 17:49:17 +0100, YBM wrote: > Le 16.11.2013 16:43, Ferrous Cranus a écrit : >> root@secure [~]# which python3 /usr/bin/python3 >> root@secure [~]# cd /usr/bin/python3 -bash: cd: /usr/bin/python3: Not a >> directory >> root@secure [~]# which pip /usr/bin/pip >> root@secure [~]#

Re: Odd msg received from list

2013-11-16 Thread Verde Denim
Chris Yes, I mean precisely that. The password was sent to me in the body of the message in plaintext. That is what has me very concerned about the list and its ability to protect private information. Regards Jack On 11/15/2013 02:48 PM, Chris “Kwpolska” Warrick wrote: > On Fri, Nov 15, 2013 at

Re: Odd msg received from list

2013-11-16 Thread Chris Angelico
On Sun, Nov 17, 2013 at 12:15 PM, Verde Denim wrote: > Chris > Yes, I mean precisely that. The password was sent to me in the body of > the message in plaintext. That is what has me very concerned about the > list and its ability to protect private information. The list specifically told you not

Re: Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-16 Thread Alec Taylor
Also my team is a Python dev team; so why not choose an open platform written in Python from which we can easily contribute to? On Sun, Nov 17, 2013 at 4:24 AM, Thomas Mlynarczyk wrote: > Jason Friedman schrieb: >> >> >> Can you recommend an open source project (or two) written in Python; >>

Re: Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-16 Thread Miki Tebeka
> Can you recommend an open source project (or two) written in Python; > which covers multi project + sub project issue tracking linked across > github repositories? Don't know if it covers all what you need, but http://trac.edgewall.org/ is written in Python, and has many, many plugins. -- https

How to round trip python and sqlite dates

2013-11-16 Thread Mark Lawrence
All the references regarding the subject that I can find, e.g. http://stackoverflow.com/questions/1829872/read-datetime-back-from-sqlite-as-a-datetime-in-python, talk about creating a table in memory using the timestamp type from the Python layer. I can't see how to use that for a file on disk,

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread xDog Walker
On Saturday 2013 November 16 08:03, Ferrous Cranus wrote: > root@secure [~]# find / -name python3.4 | rm -rf   > > root@secure [~]# locate python3.4 > /root/.local/lib/python3.4 > /usr/local/include/python3.4m > /usr/local/lib/libpython3.4m.a > /usr/local/lib/python3.4 > /usr/local/share/man/man1/p

Re: PYTHON 3.4 LEFTOVERS

2013-11-16 Thread PyRate
If it is not clear yet, then this is a obvious troll [1]. [1] http://www.politicsforum.org/images/flame_warriors/flame_62.php --- I sail Python -- https://mail.python.org/mailman/listinfo/python-list

grammar (was Re: Automation)

2013-11-16 Thread Paul Smith
On Sat, 2013-11-16 at 10:11 -0500, Roy Smith wrote: > In article , > William Ray Wing wrote: > > > And my personal peeve - using it's (contraction) when its (possessive) > > should have been used; occasionally vice-versa. > And one of mine is when people write, "Here, here!" to signify > agr

Re: Static Website Generator

2013-11-16 Thread Veritatem Ignotam
I'll second Nikola (full disclosure: not affiliated) It's easy to get started and the documentation is pretty good. Mako (the themeing language) is good to know as it, or something extremely similar, is used elsewhere. And Nikola is python! I found the tutorial at http://shisaa.jp/postset/nik

Re: Odd msg received from list

2013-11-16 Thread Verde Denim
On 11/16/2013 08:18 PM, Chris Angelico wrote: > On Sun, Nov 17, 2013 at 12:15 PM, Verde Denim wrote: >> Chris >> Yes, I mean precisely that. The password was sent to me in the body of >> the message in plaintext. That is what has me very concerned about the >> list and its ability to protect priva

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Dave Angel
On Sat, 16 Nov 2013 07:15:01 -0800 (PST), Ferrous Cranus wrote: 'locate pythοn3.4 | rm -rf' will this help or do any accidental damage? The files deleted by the rm -rf have nothing to do with the results of locate. Since you don't understand that , your system is at high risk till you

Re: grammar (was Re: Automation)

2013-11-16 Thread Andrew Berg
On 2013.11.16 11:02, Paul Smith wrote: > The one that really irks me is people using "loose" when they mean > "lose". These words are not related, and they don't sound the same. > Plus this mistake is very common; I typically see it at least once a > day. Don't be surprised if such people pronounc

Re: Oh look, another language (ceylon)

2013-11-16 Thread Gregory Ewing
Neal Becker wrote: http://ceylon-lang.org/documentation/1.0/introduction/ The type system looks very interesting! It's just a pity they based the syntax on C rather than something more enlightened. (Why do people keep doing that when they design languages?) -- Greg -- https://mail.python.org

Re: Odd msg received from list

2013-11-16 Thread Ned Deily
In article <5288239d.4060...@gmail.com>, Verde Denim wrote: > Each one of my accounts is completely different (and as random as I can > get them). Each one is also uniquely set to match a set of criteria of > my own choosing to indicate level of data, level of composite data, > level of integrity

Re: grammar (was Re: Automation)

2013-11-16 Thread MRAB
On 17/11/2013 03:44, Andrew Berg wrote: On 2013.11.16 11:02, Paul Smith wrote: The one that really irks me is people using "loose" when they mean "lose". These words are not related, and they don't sound the same. Plus this mistake is very common; I typically see it at least once a day. Don't

Re: Oh look, another language (ceylon)

2013-11-16 Thread Chris Angelico
On Sun, Nov 17, 2013 at 2:41 PM, Gregory Ewing wrote: > Neal Becker wrote: >> >> http://ceylon-lang.org/documentation/1.0/introduction/ > > > The type system looks very interesting! > > It's just a pity they based the syntax on C rather > than something more enlightened. (Why do people > keep doin

Re: grammar (was Re: Automation)

2013-11-16 Thread Chris Angelico
On Sun, Nov 17, 2013 at 3:07 PM, MRAB wrote: > On 17/11/2013 03:44, Andrew Berg wrote: >> >> On 2013.11.16 11:02, Paul Smith wrote: >>> >>> The one that really irks me is people using "loose" when they mean >>> "lose". These words are not related, and they don't sound the >>> same. Plus this mist

Re: grammar (was Re: Automation)

2013-11-16 Thread Andrew Berg
On 2013.11.16 22:16, Chris Angelico wrote: > I decided a while ago that my life would be alot better[1] For those who haven't yet seen it: http://hyperboleandahalf.blogspot.com/2010/04/alot-is-better-than-you-at-everything.html -- CPython 3.3.2 | Windows NT 6.2.9200 / FreeBSD 10.0 -- https://ma

Re: Oh look, another language (ceylon)

2013-11-16 Thread Cameron Simpson
On 17Nov2013 15:10, Chris Angelico wrote: > On Sun, Nov 17, 2013 at 2:41 PM, Gregory Ewing > wrote: > > Neal Becker wrote: > >> http://ceylon-lang.org/documentation/1.0/introduction/ > > > > The type system looks very interesting! > > > > It's just a pity they based the syntax on C rather > > tha

Re: How to round trip python and sqlite dates

2013-11-16 Thread Paul Simon
"Mark Lawrence" wrote in message news:mailman.2752.1384654581.18130.python-l...@python.org... > All the references regarding the subject that I can find, e.g. > http://stackoverflow.com/questions/1829872/read-datetime-back-from-sqlite-as-a-datetime-in-python, > > talk about creating a table in

  1   2   >