Re: why can't download file from linux server into local window disk =?

2014-12-09 Thread ishish
with open(localpath, 'wb') as fl: PermissionError: [Errno 13] Permission denied: 'c:' I remember gloomily (haven't used windows since ages) that newer Windows versions don't like users to write directly to C:. Have you tried to save the file to your Documents folder? Regards, Alba ---

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread ishish
with open(localpath, 'wb') as fl: PermissionError: [Errno 13] Permission denied: 'c:' I remember gloomily (haven't used windows since ages) that newer Windows versions don't like users to write directly to C:. Have you tried to save the file to your Documents folder? Regards, Alba --

Dictionaries

2014-03-20 Thread ishish
Hi, This might sound weird, but is there a limit how many dictionaries a can create/use in a single script? My reason for asking is I split a 2-column-csv (phone#, ref#) file into a dict and am trying to put duplicated phone numbers with different ref numbers into new dictionaries. The

Re: Dictionaries

2014-03-20 Thread ishish
Thanks Peter for the fast response, but the prob is solved. My colleague just verbally slapped me because a dict SHOULDN'T have duplicate keys... I change it around to duplicate values and it works fine I think I need coffee now... lots of it. --

Re: How to import Wave files into python?

2013-12-18 Thread ishish
How exactly do I import a .wav file and run it? also is it possible to run it inside a while loop if so or it just start playing when its run? - Tom 14 -- For the GUI (Tkinter) there is tkSnack. If you want to run it from the command line you could use sox. --

Re: To whoever hacked into my Database

2013-11-10 Thread ishish
Am 09.11.2013 15:07, schrieb Steven D'Aprano: ... Nikos, you have annoyed and alienated enough people here... Sorry, I DO NOT AGREE! These threads keep my entire office entertained. I would even go so far to suggest, that we should set up an entirely new mailing list for Nikos only, maybe

Re: To whoever hacked into my Database

2013-11-07 Thread ishish
Am 07.11.2013 21:29, schrieb Denis McMahon: On Thu, 07 Nov 2013 01:01:38 -0800, Ferrous Cranus wrote: Τη Πέμπτη, 7 Νοεμβρίου 2013 12:11:20 π.μ. UTC+2, ο χρήστης Mark Lawrence έγραψε: ... hope that this time she destroys ... So she is a SHE! How do you know that the person hacked into my

Re: Will Python 3.x ever become the actual standard?

2013-10-24 Thread ishish
Am 24.10.2013 14:29, schrieb Damien Wyart: I am starting to have doubts as to whether Python 3.x will ever be actually adopted by the Python community at large as their standard. Years have passed, and a LARGE number of Python programmers has not even bothered learning version 3.x. Why am I

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-18 Thread ishish
Am 17.10.2013 18:16, schrieb Roy Smith: On Thursday, October 17, 2013 11:07:48 AM UTC-4, Chris Angelico wrote: Module names should be descriptive, not fancy. Interesting comment, on a mailing list for a language named after a snake, especially by a guy who claims to prefer an language named

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-18 Thread ishish
Am 18.10.2013 15:09, schrieb Robert Kern: On 2013-10-18 05:03, Chris Angelico wrote: On Fri, Oct 18, 2013 at 2:14 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Thu, 17 Oct 2013 10:16:24 -0700, Roy Smith wrote: On Thursday, October 17, 2013 11:07:48 AM UTC-4, Chris

Re: JUST GOT HACKED

2013-10-02 Thread ishish
Am 02.10.2013 13:47, schrieb Chris “Kwpolska” Warrick: On Wed, Oct 2, 2013 at 1:48 AM, Tim Delaney timothy.c.dela...@gmail.com wrote: On 2 October 2013 09:28, Νίκος nikos.gr...@gmail.com wrote: con = pymysql.connect( db = 'mypass', user = 'myuser', passwd = 'mysqlpass', charset = 'utf8',

Re: Can arbitrary code run in a server if someone's know just the MySQL password?

2013-10-02 Thread ishish
Am 02.10.2013 15:46, schrieb Νίκος: But i need to know what happened and how this .html file got uploaded. This is not a python question, but this happened from this pythons NG. ... ... Who says that?? -- https://mail.python.org/mailman/listinfo/python-list

Re: I haev fixed it

2013-10-01 Thread ishish
Am 01.10.2013 13:25, schrieb Νίκος: Στις 1/10/2013 3:21 μμ, ο/η Νίκος έγραψε: Στις 1/10/2013 3:12 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 01.10.2013 14:06, schrieb Νίκος: i know about the link you mentioned and i have deleted the source code from there.

Re: I haev fixed it

2013-10-01 Thread ishish
Am 01.10.2013 14:14, schrieb Νίκος: Στις 1/10/2013 3:50 μμ, ο/η ishish έγραψε: Am 01.10.2013 13:25, schrieb Νίκος: Στις 1/10/2013 3:21 μμ, ο/η Νίκος έγραψε: Στις 1/10/2013 3:12 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 01.10.2013 14:06, schrieb Νίκος: i

Re: [RELEASED] Python 3.4.0a2

2013-09-09 Thread ishish
Am 09.09.2013 13:02, schrieb Larry Hastings: To download Python 3.4.0a2 visit: http://www.python.org/download/releases/3.4.0/ [quote] Python 3.4.0 alpha 2 was released on September 10th, 2013... [/quote] Import from __future__ ?? ;-) --

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread ishish
Am 28.08.2013 10:48, schrieb Ferrous Cranus: I quote from a Python 3 Guide [http://python.about.com/od/python30/ss/30_strings_3.htm]: The two data types, str and bytes, are mutually exclusive. One cannot legally combine them into one call. With the distinction between text and

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread ishish
Am 28.08.2013 12:14, schrieb Ferrous Cranus: Okey, continue trying and trying i came up with this: try: if os.path.exists( path + page ) or os.path.exists( cgi_path + page ): cur.execute('''SELECT ID FROM counters WHERE url = %s''', page ) data = cur.fetchone() except:

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-28 Thread ishish
Well there you have it: File /home/nikos/public_html/cgi-bin/metrites.py, line 191, in module if not data: NameError: name 'data' is not defined -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a function that applies list of functions to a value?

2013-08-28 Thread ishish
Am 28.08.2013 13:52, schrieb AdamKal: Hi, From time to time I have to apply a series of functions to a value in such a way: func4(func3(func2(func1(myval I was wondering if there is a function in standard library that would take a list of functions and a initial value and do the above

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-27 Thread ishish
[Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] Error in sys.excepthook: [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] ValueError: underlying buffer has been detached [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] [Tue Aug 27 13:02:57 2013] [error] [client

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

2013-08-27 Thread ishish
Am 27.08.2013 16:04, schrieb Ferrous Cranus: Στις 27/8/2013 4:59 μμ, ο/η ishish έγραψε: [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] Error in sys.excepthook: [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] ValueError: underlying buffer has been detached [Tue Aug 27

Re: Using sudo to write to a file as root from a script

2013-08-09 Thread ishish
Am 09.08.2013 05:47, schrieb David: On 9 August 2013 14:11, Adam Mercer ramer...@gmail.com wrote: I'm trying to write a script that writes some content to a file root through sudo, but it's not working at all. I am using: [...] At a quick glance, I have a couple of suggestions. command

Re: Script that converts between indentation and curly braces in Python code

2013-08-01 Thread IshIsh
from __future__ import braces is just an easter egg... ...and shouldn't it better state from __past__ import braces ;-) Anyway, as far as I know the IPython interpreter can recognize lines ending in ‘:’ and indent the next line, while also un-indenting automatically after ‘raise’ or ‘return’.

Re: Best Python book(s) for a pre-teen?

2013-08-01 Thread ishish
Am 01.08.2013 14:11, schrieb beliav...@aol.com: On Tuesday, February 18, 2003 2:27:58 PM UTC-5, Mike Silva wrote: Hi all, My son is 11 and wants to try programming, partly because it's what I do for a living. Even though I don't (yet?) use or even know Python, through some unexplainable