WSME 0.5b5 released

2013-09-17 Thread Christophe de Vienne
About WSME -- Web Service Made Easy (WSME) simplify the writing of REST web services by providing simple yet powerful typing which removes the need to directly manipulate the request and the response objects. WSME can work standalone or on top of your favorite python web

[sphinx-users] [sphinx-dev] Sphinx 1.2 beta 1 released

2013-09-17 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm very happy to announce the release of Sphinx 1.2, beta 2, available on the Python package index at http://pypi.python.org/pypi/Sphinx. Please test and report bugs to http://dev.sphinx-doc.org/sphinx/issues. This is the second testing

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread feedthetroll
Am Dienstag, 17. September 2013 03:40:06 UTC+2 schrieb Tim Chase: On 2013-09-17 00:15, Ferrous Cranus wrote: ... But i wish to try it, is there a way to try to remove them? You could manage your own SMTP connection. If only Python had some built in library that handled SMTP, that would be

MySQLdb Help

2013-09-17 Thread Venkat Addala
Hi all, I'm new to python, i am connecting mysql database with python. now i want to do sanitation on the database, like to remove \n, extra spaces blah blah.. and update it back to mysql database. i was trying somthing, here is my code, can you please provide me solution for this..

Re: MySQLdb Help

2013-09-17 Thread Ben Finney
Venkat Addala venkat.bof...@gmail.com writes: I'm new to python Welcome! Congratulations on choosing Python for programming. i am connecting mysql database with python. now i want to do sanitation on the database, like to remove \n, extra spaces blah blah.. and update it back to mysql

Re: Qt connect and first connect or unicode

2013-09-17 Thread Oscar Benjamin
On 17 September 2013 05:12, Mohsen Pahlevanzadeh moh...@pahlevanzadeh.org wrote: Dear all, Unfortunately, i confused and need help... the following code is: ### ##CheckBox: QtCore.QObject.connect(self.checkBox,

Re: MySQLdb Help

2013-09-17 Thread Venkat Addala
hey Ben, Thanks for your solution, i am done with this before, now i'm having problem after deleting \n and extra spaces, i want to update it back it again to mysql db. For this i tried using regular expression check this code; # -*- coding: utf-8 -*- import re import MySQLdb pattern =

Re: MySQLdb Help

2013-09-17 Thread Ervin Hegedüs
Hello, On Tue, Sep 17, 2013 at 12:43:20PM +0530, Venkat Addala wrote: Hi all, I'm new to python, i am connecting mysql database with python. now i want to do sanitation on the database, like to remove \n, extra spaces blah blah.. and update it back to mysql database. i was trying

Re: MySQLdb Help

2013-09-17 Thread Ervin Hegedüs
Hello, On Tue, Sep 17, 2013 at 05:35:30PM +1000, Ben Finney wrote: Venkat Addala venkat.bof...@gmail.com writes: rows = cur.fetchall() for row in rows: You never use ‘rows’ for anything else, so you may as well forget it and just iterate directly over the return value:: for

Re: Qt connect and first connect or unicode

2013-09-17 Thread Steven D'Aprano
On Tue, 17 Sep 2013 08:42:35 +0430, Mohsen Pahlevanzadeh wrote: Dear all, Unfortunately, i confused and need help... the following code is: ### ##CheckBox: QtCore.QObject.connect(self.checkBox, QtCore.SIGNAL(_fromUtf8(toggled(bool))),

Re: MySQLdb Help

2013-09-17 Thread Ben Finney
Ervin Hegedüs airw...@gmail.com writes: Hello, On Tue, Sep 17, 2013 at 05:35:30PM +1000, Ben Finney wrote: for row in cur.fetchall(): and what if in body of iteration there is another fetchall()? :) Yes, what if? Each call to ‘fetchall’ returns a sequence of rows. I don't see your

HID Feature Raport, Linux

2013-09-17 Thread Kasper Jepsen
Hi, I have been using pywinusb.hid for a hid unit, using only feature reports. I like to get this code to run on raspbian PI, but i can not fint a good library to support HID/feature reports? I am a USB newbie Can anyone help me, or point me in a direction to send/recieve feature reports

Re: MySQLdb Help

2013-09-17 Thread Ervin Hegedüs
Hello, On Tue, Sep 17, 2013 at 07:22:50PM +1000, Ben Finney wrote: Ervin Hegedüs airw...@gmail.com writes: Hello, On Tue, Sep 17, 2013 at 05:35:30PM +1000, Ben Finney wrote: for row in cur.fetchall(): and what if in body of iteration there is another fetchall()? :) Yes,

Re: statsmodels.api

2013-09-17 Thread Davide Dalmasso
Il giorno lunedì 16 settembre 2013 17:47:55 UTC+2, Ethan Furman ha scritto: On 09/16/2013 08:37 AM, Davide Dalmasso wrote: Hi, I intalled an executable version of statsmodels library for Windows 32-bit. When I import it in my Python Shell no problem occurs buy when I write:

Re: Qt connect and first connect or unicode

2013-09-17 Thread Vincent Vande Vyvre
Le 17/09/2013 11:05, Steven D'Aprano a écrit : On Tue, 17 Sep 2013 08:42:35 +0430, Mohsen Pahlevanzadeh wrote: Dear all, Unfortunately, i confused and need help... the following code is: ### ##CheckBox: QtCore.QObject.connect(self.checkBox,

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Heiko Wundram
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 17.09.2013 01:41, schrieb Steven D'Aprano: I cannot fathom for the life of me a legitimate reason for your website to use a fake IP address and hostname when sending email. In addition to that: it's amazing that Nikos thinks TCP will still work

Re: Weird ttk behaviour

2013-09-17 Thread Rotwang
On 16/09/2013 19:43, Serhiy Storchaka wrote: 16.09.13 19:28, Rotwang написав(ла): On Windows 7 (sys.version is '3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit (AMD64)]') there's no problem; f() works fine in the first place. Does anybody know what's going on? What

Is this a bug in Python 3.3?

2013-09-17 Thread Aseem Bansal
While using IDLE I used the license() function to see the license information. In it there was a list of all the versions and from which version they are derived is written. The list goes upto 3.3.1 but doesn't include 3.3.2. Is that a minor bug or is the current version not mentioned in that

Re: Weird ttk behaviour

2013-09-17 Thread Rotwang
On 16/09/2013 23:34, Chris Angelico wrote: On Tue, Sep 17, 2013 at 2:28 AM, Rotwang sg...@hotmail.co.uk wrote: If I then uncomment those two lines, reload the module and call f() again (by entering tkderp.reload(tkderp).f()), the function works like it was supposed to in the first place: two

Re: Weird ttk behaviour

2013-09-17 Thread Chris Angelico
On Tue, Sep 17, 2013 at 9:27 PM, Rotwang sg...@hotmail.co.uk wrote: On 16/09/2013 23:34, Chris Angelico wrote: On Tue, Sep 17, 2013 at 2:28 AM, Rotwang sg...@hotmail.co.uk wrote: If I then uncomment those two lines, reload the module and call f() again (by entering

Re: statsmodels.api

2013-09-17 Thread Oscar Benjamin
On 17 September 2013 11:10, Davide Dalmasso davide.dalma...@gmail.com wrote: Il giorno lunedì 16 settembre 2013 17:47:55 UTC+2, Ethan Furman ha scritto: We'll need the rest of the traceback, as it will have the actual error. Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Joel Goldstick
In honour of the value of mailing lists in general lets stop this thread since once again the troll pattern repeats ad infinitum. At least if you want to add to this nonsense, read each of the (several?) dozen entries. 1. a seemingly earnest question is asked with something to do with python.

Having both if() and for() statements in one liner

2013-09-17 Thread Ferrous Cranus
o want to avoid having to type somehting like this: if person=George: times in range(0, 5): Why it gives me an error when i'm trying to write it like this: if person=George for times in range(0, 5): Can't i ahve both if and for in a one liner? --

error python-gammu

2013-09-17 Thread Tal Raveh
Hello, I just install gammu and try to : import gammu and i get error: Traceback (most recent call last): File ./pygammu.py, line 4, in module import gammu File /usr/lib64/python2.6/site-packages/gammu/__init__.py, line 65, in module from gammu._gammu import * ImportError:

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Ferrous Cranus
Στις 17/9/2013 2:55 μμ, ο/η Joel Goldstick έγραψε: In honour of the value of mailing lists in general lets stop this thread since once again the troll pattern repeats ad infinitum. At least if you want to add to this nonsense, read each of the (several?) dozen entries. 1. a seemingly earnest

Re: statsmodels.api

2013-09-17 Thread Davide Dalmasso
You are right... there is a problem with scipy intallation because this error arise... from scipy.interpolate import interp1d Traceback (most recent call last): File pyshell#3, line 1, in module from scipy.interpolate import interp1d File

Re: statsmodels.api

2013-09-17 Thread Davide Dalmasso
On Monday, 16 September 2013 17:37:58 UTC+2, Davide Dalmasso wrote: Hi, I intalled an executable version of statsmodels library for Windows 32-bit. When I import it in my Python Shell no problem occurs buy when I write: import statsmodels.api as sm the following error

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Heiko Wundram
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 17.09.2013 13:55, schrieb Joel Goldstick: At least if you want to add to this nonsense, read each of the (several?) dozen entries. Actually, I have read each of the troll cycles (just as I read much of clp, although I haven't participated much

Re: Is %z broken for return values of time.gmtime()?

2013-09-17 Thread random832
On Mon, Sep 16, 2013, at 16:55, Michael Schwarz wrote: On 2013-W38-1, at 19:56, random...@fastmail.us wrote: On Mon, Sep 16, 2013, at 9:15, Michael Schwarz wrote: According to the documentation of time.gmtime(), it returns a struct_time in UTC, but %z is replaced by +0100, which is the

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Robert Kern
On 2013-09-17 13:11, Ferrous Cranus wrote: There are members here like Tim Chase who said that they find it interesting to be able to do what i proposed. No, he didn't. He was using sarcasm in a vain attempt to inspire you to search the Python documentation where you could easily find the

Re: Having both if() and for() statements in one liner

2013-09-17 Thread Robert Kern
On 2013-09-17 13:02, Ferrous Cranus wrote: o want to avoid having to type somehting like this: if person=George: times in range(0, 5): Why it gives me an error when i'm trying to write it like this: if person=George for times in range(0, 5): Can't i ahve both if and for in a one

Re: Having both if() and for() statements in one liner

2013-09-17 Thread Roy Smith
In article l19gdf$psh$1...@dont-email.me, Ferrous Cranus nikos.gr...@gmail.com wrote: o want to avoid having to type somehting like this: if person=George: times in range(0, 5): Why it gives me an error when i'm trying to write it like this: if person=George for times in

Re: statsmodels.api

2013-09-17 Thread Oscar Benjamin
On 17 September 2013 13:13, Davide Dalmasso davide.dalma...@gmail.com wrote: You are right... there is a problem with scipy intallation because this error arise... from scipy.interpolate import interp1d Traceback (most recent call last): File pyshell#3, line 1, in module from

Re: statsmodels.api

2013-09-17 Thread Josef Pktd
On Tuesday, September 17, 2013 8:13:27 AM UTC-4, Davide Dalmasso wrote: You are right... there is a problem with scipy intallation because this error arise... from scipy.interpolate import interp1d Traceback (most recent call last): File pyshell#3, line 1, in module from

Re: Having both if() and for() statements in one liner

2013-09-17 Thread Ferrous Cranus
Στις 17/9/2013 4:00 μμ, ο/η Roy Smith έγραψε: In article l19gdf$psh$1...@dont-email.me, Ferrous Cranus nikos.gr...@gmail.com wrote: o want to avoid having to type somehting like this: if person=George: times in range(0, 5): Why it gives me an error when i'm trying to write it like

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Antoon Pardon
Op 17-09-13 14:11, Ferrous Cranus schreef: Yes you are doing it. I'm not trolling but trying to solve a specific question and i have provided code i wrote to do that and explained the reason of why i want it to work like this. No you haven't. You have given no explanation at all for why you

Re: statsmodels.api

2013-09-17 Thread Josef Pktd
On Tuesday, September 17, 2013 9:06:59 AM UTC-4, Oscar Benjamin wrote: On 17 September 2013 13:13, Davide Dalmasso wrote: You are right... there is a problem with scipy intallation because this error arise... from scipy.interpolate import interp1d Traceback (most recent

Re: Having both if() and for() statements in one liner

2013-09-17 Thread Heiko Wundram
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 17.09.2013 15:21, schrieb Ferrous Cranus: ... there must be written on soem way. You've already given yourself the answer in the initial post. The Python way to write this is: if person == George: for times in range(5): ... Why not

Re: better and user friendly IDE recommended?

2013-09-17 Thread rusi
On Wednesday, September 11, 2013 7:44:04 PM UTC+5:30, mnishpsyched wrote: Hey i am a programmer but new to python. Can anyone guide me in knowing which is a better IDE used to develop web related apps that connect to DB using python? Just saw this http://www.youtube.com/watch?v=1-dUkyn_fZA

Re: statsmodels.api

2013-09-17 Thread Oscar Benjamin
On 17 September 2013 14:35, Josef Pktd josef.p...@gmail.com wrote: (As an aside, this is all much simpler if you're using Ubuntu or some other Linux distro rather than Windows.) scientific python on a stick https://code.google.com/p/winpython/wiki/PackageIndex_33 Thanks, I've just installed

Re: Having both if() and for() statements in one liner

2013-09-17 Thread Tim Chase
On 2013-09-17 16:21, Ferrous Cranus wrote: I just want to say tot he program that that only run the for statement if and only if person=='George' I dont see nay reason as to why this fails perhaps like: for times in range(0, 5) if person=='George': but that fails too... there must

Re: Weird ttk behaviour

2013-09-17 Thread Rotwang
On 17/09/2013 12:32, Chris Angelico wrote: [...] If reloading and doing it again makes things different, what happens if you simply trigger your code twice without reloading? I've no idea if it'll help, it just seems like an attack vector on the problem, so to speak. Thanks for the

Re: Weird ttk behaviour

2013-09-17 Thread Chris Angelico
On Wed, Sep 18, 2013 at 12:25 AM, Rotwang sg...@hotmail.co.uk wrote: In fact, if I replace tkderp with this: # begin tkderp.py import tkinter as tk _root = tk.Tk() _root.withdraw() # end tkderp.py then simply importing tkderp before tkderp2 is enough to make the latter work properly

Re: Having both if() and for() statements in one liner

2013-09-17 Thread Joel Goldstick
On Tue, Sep 17, 2013 at 10:17 AM, Tim Chase python.l...@tim.thechases.comwrote: On 2013-09-17 16:21, Ferrous Cranus wrote: I just want to say tot he program that that only run the for statement if and only if person=='George' I dont see nay reason as to why this fails perhaps like:

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Grant Edwards
On 2013-09-17, Heiko Wundram modeln...@modelnine.org wrote: Am 17.09.2013 01:41, schrieb Steven D'Aprano: I cannot fathom for the life of me a legitimate reason for your website to use a fake IP address and hostname when sending email. In addition to that: it's amazing that Nikos thinks TCP

Re: statsmodels.api

2013-09-17 Thread Josef Perktold
Oscar Benjamin oscar.j.benjamin at gmail.com writes: On 17 September 2013 14:35, Josef Pktd josef.pktd at gmail.com wrote: (As an aside, this is all much simpler if you're using Ubuntu or some other Linux distro rather than Windows.) scientific python on a stick

Re: Python GUI?

2013-09-17 Thread rusi
On Thursday, September 12, 2013 10:21:49 PM UTC+5:30, Benjamin Kaplan wrote: The main difference between wx and qt is that qt looks native on every platform while wx *is* native on every platform (it uses native controls wherever possible). This means that wx integrates into the OS better,

Re: statsmodels.api

2013-09-17 Thread Davide Dalmasso
Oscar you are right! The problem was Numpy! I re-installed it using an executable that I downloaded from: http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy I don't remember if previously I installed it using another source. However the problem now is disappeared! Many thanks! Davide --

Re: Having both if() and for() statements in one liner

2013-09-17 Thread Chris Angelico
On Tue, Sep 17, 2013 at 11:00 PM, Roy Smith r...@panix.com wrote: They just discovered a huge newline vein in Montana and they're mining the things like crazy. There's no shortage of them so feel free to use as many as you like. They even get recycled. Can they keep up with the considerable

Python Developers

2013-09-17 Thread Kelly Lurz
List - I am currently searching for W-2 candidates for several Python Developer positions in Mountain View, CA for a high-profile client. The positions are contract-to-perm at a starting rate of $80 an hour. Below is some additional information. Thank you for sending to your members if you

Re: Having both if() and for() statements in one liner

2013-09-17 Thread Joel Goldstick
On Tue, Sep 17, 2013 at 11:04 AM, Chris Angelico ros...@gmail.com wrote: On Tue, Sep 17, 2013 at 11:00 PM, Roy Smith r...@panix.com wrote: They just discovered a huge newline vein in Montana and they're mining the things like crazy. There's no shortage of them so feel free to use as many

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Ferrous Cranus
On 17/9/2013 1:46 μμ, Heiko Wundram wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 17.09.2013 01:41, schrieb Steven D'Aprano: I cannot fathom for the life of me a legitimate reason for your website to use a fake IP address and hostname when sending email. In addition to that: it's

Re: How do I calculate a mean with python?

2013-09-17 Thread Travis Griggs
On Sep 16, 2013, at 4:33 PM, William Bryant gogobe...@gmail.com wrote: Hey I am new to python so go easy, but I wanted to know how to make a program that calculates the maen. List = [15, 6, 6, 7, 8, 9, 40] def mean(): global themean, thesum for i in List: thecount =

Re: Is this a bug in Python 3.3?

2013-09-17 Thread Terry Reedy
On 9/17/2013 7:22 AM, Aseem Bansal wrote: While using IDLE I used the license() function to see the license information. In it there was a list of all the versions and from which version they are derived is written. The 2.7 list ends with 2.7. The 3.x does not even include 2.7. The list

Re: Stripping characters from windows clipboard with win32clipboard from excel

2013-09-17 Thread stephen . boulet
On Thursday, September 12, 2013 6:01:20 PM UTC-5, stephen...@gmail.com wrote: I have an excel file. When I select cells, copy from excel, and then use win32clipboard to get the contents of the clipboard, I have a 131071 character string. When I save the file as a text file, and use the

Re: statsmodels.api

2013-09-17 Thread Josef Perktold
Oscar Benjamin oscar.j.benjamin at gmail.com writes: On 17 September 2013 15:52, Josef Perktold josef.pktd at gmail.com wrote: On the other hand, python-xy comes with MingW, and I never had any problems compiling pandas and statsmodels for any version combination of python and numpy

Re: statsmodels.api

2013-09-17 Thread Oscar Benjamin
On 17 September 2013 15:52, Josef Perktold josef.p...@gmail.com wrote: On the other hand, python-xy comes with MingW, and I never had any problems compiling pandas and statsmodels for any version combination of python and numpy that I tested (although 32 bit only so far, I never set up the

Re: Weird ttk behaviour

2013-09-17 Thread Rotwang
On 17/09/2013 15:35, Chris Angelico wrote: On Wed, Sep 18, 2013 at 12:25 AM, Rotwang sg...@hotmail.co.uk wrote: In fact, if I replace tkderp with this: # begin tkderp.py import tkinter as tk _root = tk.Tk() _root.withdraw() # end tkderp.py then simply importing tkderp before tkderp2 is

Re: Python GUI?

2013-09-17 Thread Benjamin Kaplan
On Tue, Sep 17, 2013 at 7:55 AM, rusi rustompm...@gmail.com wrote: On Thursday, September 12, 2013 10:21:49 PM UTC+5:30, Benjamin Kaplan wrote: The main difference between wx and qt is that qt looks native on every platform while wx *is* native on every platform (it uses native controls

Re: Weird ttk behaviour

2013-09-17 Thread Chris Angelico
On Wed, Sep 18, 2013 at 2:11 AM, Rotwang sg...@hotmail.co.uk wrote: I don't know tkinter well enough either, but the fact that it behaves differently on Linux and Windows suggests to me that at least one version is bugging out. Do you think this is worth raising on bugs.python.org? Possibly,

Re: Python GUI?

2013-09-17 Thread rusi
On Tuesday, September 17, 2013 9:49:28 PM UTC+5:30, Benjamin Kaplan wrote: On Tue, Sep 17, 2013 at 7:55 AM, rusi wrote: On Thursday, September 12, 2013 10:21:49 PM UTC+5:30, Benjamin Kaplan wrote: The main difference between wx and qt is that qt looks native on every platform

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Denis McMahon
On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus wrote: So cant this be done in python or not? or is a mtetr of configuring the MTA? conf file? Python can not control data that is added to the message after it has left the python program. If you want to retain maximum possible control of

Suds and Complex Sequences

2013-09-17 Thread Greg Lindstrom
Hello Everyone - I am trying to use Suds, the very fine library allowing me to use SOAP, to query a service over the net. Part of the data structure defined be the WSDL calls for a sequence of SubscriberDataTypes (this application is used to test an insurance companys' rating service).

Re: Python GUI?

2013-09-17 Thread Benjamin Kaplan
On Tue, Sep 17, 2013 at 9:51 AM, rusi rustompm...@gmail.com wrote: On Tuesday, September 17, 2013 9:49:28 PM UTC+5:30, Benjamin Kaplan wrote: On Tue, Sep 17, 2013 at 7:55 AM, rusi wrote: On Thursday, September 12, 2013 10:21:49 PM UTC+5:30, Benjamin Kaplan wrote: The main difference

Re: Having both if() and for() statements in one liner

2013-09-17 Thread Dave Angel
On 17/9/2013 09:21, Ferrous Cranus wrote: I just want to say tot he program that that only run the for statement if and only if person=='George' I dont see nay reason as to why this fails perhaps like: for times in range(0, 5) if person=='George': but that fails too... there must be

Re: Suds and Complex Sequences

2013-09-17 Thread John Gordon
In mailman.86.1379440291.18130.python-l...@python.org Greg Lindstrom gslindst...@gmail.com writes: --089e0122976c27f48b04e697f887 Content-Type: text/plain; charset=ISO-8859-1 Hello Everyone - I am trying to use Suds, the very fine library allowing me to use SOAP, to query a service over

Re: How do I calculate a mean with python?

2013-09-17 Thread William Bryant
'''#*''' #* Name:Mode-Median-Mean Calculator *# #**# #* Purpose: To calculate the mode, median and mean

Re: How do I calculate a mean with python?

2013-09-17 Thread William Bryant
Ok I think I've fixed it thanks I read everything. '''**''' #* Name:Mode-Median-Mean Calculator *# #**# #*

Re: How do I calculate a mean with python?

2013-09-17 Thread William Bryant
Sorry guys, I didn't read anything u said. Because I just figured it out on my own :) I'll read it now. But u can check out my program I have done so far (It works but I think it needs some tidying up.) :) Thanks! -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I calculate a mean with python?

2013-09-17 Thread Joel Goldstick
On Tue, Sep 17, 2013 at 4:10 PM, William Bryant gogobe...@gmail.com wrote: Ok I think I've fixed it thanks I read everything. '''**''' #* Name:Mode-Median-Mean Calculator *# #* *# #* Purpose: To

Re: How do I calculate a mean with python?

2013-09-17 Thread MRAB
On 17/09/2013 21:10, William Bryant wrote: Ok I think I've fixed it thanks I read everything. [snip] def HMNs(): global TheStr, user_inputHMNs, List_input, List user_inputHMNs = input(You picked string. This program cannot calculate the mean or median, but it can calculate the

BDD behave support for vim

2013-09-17 Thread Matěj Cepl
Hi, I know that vim has native support for cucumber (the original BDD framework for Ruby). I have also found https://github.com/veloce/vim-behat for BDD with PHP (frightening idea!), but I haven't found a module supporting BDD with vim and Python. Especially I envy to our Ruby friends

Re: How do I calculate a mean with python?

2013-09-17 Thread William Bryant
Thanks to all and @Joel Goldstick, I am learning python through youtube. They explained Global and Local variables to me. :) Thanks for that critisism, it really helps. I am 13 years old and I am looking forward to studing programming in University! :DD --

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Chris Angelico
On Wed, Sep 18, 2013 at 7:42 AM, Ferrous Cranus nikos.gr...@gmail.com wrote: So the foreign MTA tests for real time connectivity with the local MTA and it tries to detect a working host and ip address. No, the local MTA connects to the foreign MTA. ChrisA --

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Ferrous Cranus
On 17/9/2013 7:30 μμ, Denis McMahon wrote: On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus wrote: So cant this be done in python or not? or is a mtetr of configuring the MTA? conf file? Python can not control data that is added to the message after it has left the python program. If you

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread William Ray Wing
On Sep 17, 2013, at 5:42 PM, Ferrous Cranus nikos.gr...@gmail.com wrote: On 17/9/2013 7:30 μμ, Denis McMahon wrote: On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus wrote: So cant this be done in python or not? or is a mtetr of configuring the MTA? conf file? Python can not control

Re: How do I calculate a mean with python?

2013-09-17 Thread Joel Goldstick
On Tue, Sep 17, 2013 at 5:31 PM, William Bryant gogobe...@gmail.com wrote: Thanks to all and @Joel Goldstick, I am learning python through youtube. They explained Global and Local variables to me. :) Thanks for that critisism, it really helps. I am 13 years old and I am looking forward to

Re: statsmodels.api

2013-09-17 Thread Josef Perktold
Josef Perktold josef.pktd at gmail.com writes: Oscar Benjamin oscar.j.benjamin at gmail.com writes: On 17 September 2013 15:52, Josef Perktold josef.pktd at gmail.com wrote: On the other hand, python-xy comes with MingW, and I never had any problems compiling pandas and

scipy 11 and scipy 12

2013-09-17 Thread Susan Lubbers
Our group is a python 2.7 which is installed in a shared area. We have scipy 11 installed in site-packages. How would I install scipy 12 so that I used the shared install of python but scipy 12 instead of 11? -- https://mail.python.org/mailman/listinfo/python-list

Simple security between prototype iPhone app and SimpleHTTPServer REST service?

2013-09-17 Thread Travis Griggs
I'm prototyping a simple data collection service. I've implemented a simple REST API implemented with python 3x stock HTTPServer. And a simple iPhone app that submits data via a json/POST. And it all works just great when my iPhone is on the same network as the server. But now I want to go the

*.csv to *.txt after adding columns

2013-09-17 Thread Bryan Britten
Hey, gang, I've got a problem here that I'm sure a handful of you will know how to solve. I've got about 6 *.csv files that I am trying to open; change the header names (to get rid of spaces); add two new columns, which are just the results of a string.split() command; drop the column I just

Re: How do I calculate a mean with python?

2013-09-17 Thread Bryan Britten
William - I'm also self-teaching myself Python and get stuck quite often, so I understand both the thrill of programming and the frustration. Given your young age and presumably very little exposure to other programming languages, I would highly recommend you check out

Re: Having both if() and for() statements in one liner

2013-09-17 Thread Steven D'Aprano
On Tue, 17 Sep 2013 18:54:51 +, Dave Angel wrote: for times in range(0, 5 if person==George else 0): Oh that is evil. Truly evil. Thank you, I will treasure that piece of code forever. -- Steven -- https://mail.python.org/mailman/listinfo/python-list

Re: *.csv to *.txt after adding columns

2013-09-17 Thread Dave Angel
On 17/9/2013 21:42, Bryan Britten wrote: Hey, gang, I've got a problem here that I'm sure a handful of you will know how to solve. I've got about 6 *.csv files that I am trying to open; change the header names (to get rid of spaces); add two new columns, which are just the results of a

Re: *.csv to *.txt after adding columns

2013-09-17 Thread Bryan Britten
Dave - I can't print the output because there are close to 1,000,000 records. It would be extremely inefficient and resource intensive to look at every row. Like I said, when I take just one file and run the code over the first few records I get what I'd expect to see. Here's an

linregress and polyfit

2013-09-17 Thread Krishnan
I created an xy pair y = slope*x + intercept then I added some noise to y using numpy.random.normal - call it z I could recover the slope, intercept from (x,y) using linregress BUT cannot calculate the slope, intercept from (x, z) What is puzzling is that for both pairs (x,y) and (x,z) the

Re: scipy 11 and scipy 12

2013-09-17 Thread Steven D'Aprano
On Tue, 17 Sep 2013 20:06:44 -0400, Susan Lubbers wrote: Our group is a python 2.7 which is installed in a shared area. We have scipy 11 installed in site-packages. How would I install scipy 12 so that I used the shared install of python but scipy 12 instead of 11? If you are using Python

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Piet van Oostrum
Ferrous Cranus nikos.gr...@gmail.com writes: So cant this be done in python or not? or is a mtetr of configuring the MTA? conf file? You could write a python program that uses Gmail's web interface. But it is tricky, and if Gmail would change its inyterface you get stuck, and have to do it

Re: Qt connect and first connect or unicode

2013-09-17 Thread Mohsen Pahlevanzadeh
On Tue, 2013-09-17 at 12:32 +0200, Vincent Vande Vyvre wrote: Le 17/09/2013 11:05, Steven D'Aprano a écrit : On Tue, 17 Sep 2013 08:42:35 +0430, Mohsen Pahlevanzadeh wrote: Dear all, Unfortunately, i confused and need help... the following code is:

Re: linregress and polyfit

2013-09-17 Thread Josef Pktd
On Tuesday, September 17, 2013 10:34:39 PM UTC-4, Krishnan wrote: I created an xy pair y = slope*x + intercept then I added some noise to y using numpy.random.normal - call it z I could recover the slope, intercept from (x,y) using linregress BUT cannot calculate

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Denis McMahon
On Wed, 18 Sep 2013 00:42:22 +0300, Ferrous Cranus wrote: So the foreign MTA tests for real time connectivity with the local MTA and it tries to detect a working host and ip address. No. I strongly suggest that you stop trying to write software that transmits data across tcp/ip networks

QFrame and disable maximum attribute

2013-09-17 Thread Mohsen Pahlevanzadeh
Dear all, I need to disbale maximum attribute , and want to fix size of my QFrame, i set : sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) i attached my ui file , you can : pyuic4 -x myfile.ui -i output.py then see my attribute. Question: How can i disable for

Re: Having both if() and for() statements in one liner

2013-09-17 Thread Joshua Landau
On 18 September 2013 03:10, Steven D'Aprano st...@pearwood.info wrote: On Tue, 17 Sep 2013 18:54:51 +, Dave Angel wrote: for times in range(0, 5 if person==George else 0): Oh that is evil. Truly evil. Thank you, I will treasure that piece of code forever. range(person == simon and 5)

[issue19038] Fix sort order in Misc/ACKS.

2013-09-17 Thread Georg Brandl
Georg Brandl added the comment: Please do not change the ordering of Å -- it is correct after Z, at least in Swedish, Danish and Norwegian. If you want to sort German umlauts correctly, in lists of names they are treated as [aou]+e, so Löwis goes before Lowe. As for Aahz, he appears by that

[issue19038] Fix sort order in Misc/ACKS.

2013-09-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19038 ___

[issue19038] Fix sort order in Misc/ACKS.

2013-09-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19038 ___

[issue19039] sphinx search, result sorting

2013-09-17 Thread Thomas Guettler
New submission from Thomas Guettler: If you search for printf in the docs you get this result: http://docs.python.org/3.3/search.html?q=printfcheck_keywords=yesarea=default Please have a look at the first results. I guess most people don't want to see docs about PyOS_snprintf Most people

[issue18873] Encoding detected in non-comment lines

2013-09-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset f16855d6d4e1 by Serhiy Storchaka in branch '2.7': Remove the use of non-existing re.ASCII. http://hg.python.org/cpython/rev/f16855d6d4e1 -- ___ Python tracker rep...@bugs.python.org

[issue18873] Encoding detected in non-comment lines

2013-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks, David. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18873 ___ ___ Python-bugs-list mailing list

[issue4080] unittest: display time used by each test case

2013-09-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4080 ___ ___

  1   2   >