ANN: RPQueue 0.21

2013-09-20 Thread Josiah Carlson
Hello everyone, For those of you who didn't know, if you are interested in a Redis-backed time and/or fifo-queue with priorities, retries, etc., to be used with Python, one exists and is mature: it's called RPQueue, and it seeks to simplify your life of task execution. The recent changelog

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

2013-09-20 Thread Antoon Pardon
Op 20-09-13 05:56, Jake Angulo schreef: Up Robert Kern's reply! I was waiting for smtplib http://docs.python.org/2/library/smtplib to be mentioned... finally! Instead people simply answer philosophically. I dont want to judge whether OP is a troll or not - but i found a lot of arrogant

Can i run my python program under andriod?

2013-09-20 Thread Mohsen Pahlevanzadeh
Dear all, I need to binary with distutils, and run it under android OS, Do you have any experience? yours, Mohsen -- https://mail.python.org/mailman/listinfo/python-list

Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-20 Thread William Bryant
On Friday, September 20, 2013 11:09:03 AM UTC+12, Ian wrote: On Thu, Sep 19, 2013 at 1:22 PM, William Bryant gogobe...@gmail.com wrote: It was the other functions above it. Thanks. but I tried to do the while loop - I don't think I did it right, I am novice in python and I am 13 years

ANN: RPQueue 0.21

2013-09-20 Thread Josiah Carlson
Hello everyone, For those of you who didn't know, if you are interested in a Redis-backed time and/or fifo-queue with priorities, retries, etc., to be used with Python, one exists and is mature: it's called RPQueue, and it seeks to simplify your life of task execution. The recent changelog

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

2013-09-20 Thread Robert Kern
On 2013-09-20 04:56, Jake Angulo wrote: Up Robert Kern's reply! I was waiting for smtplib http://docs.python.org/2/library/smtplib to be mentioned... finally! Instead people simply answer philosophically. I dont want to judge whether OP is a troll or not - but i found a lot of arrogant

Re: Missing py2exe, needed 4 a gcode generator to engrave text in fancy ttf fonts in steel

2013-09-20 Thread Chris Angelico
On Fri, Sep 20, 2013 at 3:14 PM, Gene Heskett ghesk...@wdtv.com wrote: Can someone take a look at http://www.scorchworks.com/Fengrave/fengrave_setup.html#linux_fengrave Then this is what I get: gene@coyote:~/src/F-Engrave-1.22_src$ python py2exe_setup.py Traceback (most recent call last):

What minimum should a person know before saying I know Python

2013-09-20 Thread Aseem Bansal
I started Python 4 months ago. Largely self-study with use of Python documentation, stackoverflow and google. I was thinking what is the minimum that I must know before I can say that I know Python? I come from a C background which is comparatively smaller. But as Python is comparatively much

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

2013-09-20 Thread feedthetroll
Hi Jake! Am Freitag, 20. September 2013 05:56:57 UTC+2 schrieb Jake Angulo: ... I was waiting for smtplib to be mentioned... finally!  Instead people simply answer philosophically.  I dont want to judge whether OP is a troll or not - As you do not seem to know the histrory of this topic I will

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread rusi
On Friday, September 20, 2013 3:28:00 PM UTC+5:30, Aseem Bansal wrote: I started Python 4 months ago. Largely self-study with use of Python documentation, stackoverflow and google. I was thinking what is the minimum that I must know before I can say that I know Python? I come from a C

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread Tim Chase
On 2013-09-20 02:58, Aseem Bansal wrote: I started Python 4 months ago. Largely self-study with use of Python documentation, stackoverflow and google. I was thinking what is the minimum that I must know before I can say that I know Python? It's a fuzzy line. A good while back, there was a

Making it a MultiThread!

2013-09-20 Thread stas poritskiy
Hello All! I have a general question, i was posting here earlier while trying to troubleshoot a few things while developing an application, i was able to hit all of my goals, and make things work! Thank you all who contributed to my research, and again, sorry for poor formatting of the

I want to print entry and exit message for functions , i have bunch of such function . How can i do it in decorator.

2013-09-20 Thread bab mis
def fun: print entry . . print exit -- https://mail.python.org/mailman/listinfo/python-list

Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-20 Thread William Ray Wing
On Sep 20, 2013, at 3:01 AM, William Bryant gogobe...@gmail.com wrote: [byte] Thanks a lot! I have one more question, is there any way I can make my program work on android tablets and ipads? Because I'd like to use it in school because we are learning statistics and we are allowed our

Re: Missing py2exe, needed 4 a gcode generator to engrave text in fancy ttf fonts in steel

2013-09-20 Thread Gene Heskett
On Friday 20 September 2013 08:48:44 Chris Angelico did opine: On Fri, Sep 20, 2013 at 3:14 PM, Gene Heskett ghesk...@wdtv.com wrote: Can someone take a look at http://www.scorchworks.com/Fengrave/fengrave_setup.html#linux_fengrav e Then this is what I get:

Re: I want to print entry and exit message for functions , i have bunch of such function . How can i do it in decorator.

2013-09-20 Thread Peter Otten
bab mis wrote: def fun: print entry . . print exit def log(f): ... def g(*args, **kw): ... print enter, f.__name__ ... try: ... return f(*args, **kw) ... finally: ... print exit, f.__name__ ...

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread Robert Kern
On 2013-09-20 12:43, rusi wrote: On Friday, September 20, 2013 3:28:00 PM UTC+5:30, Aseem Bansal wrote: I started Python 4 months ago. Largely self-study with use of Python documentation, stackoverflow and google. I was thinking what is the minimum that I must know before I can say that I

Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-20 Thread Duncan Booth
William Bryant gogobe...@gmail.com wrote: Thanks a lot! I have one more question, is there any way I can make my program work on android tablets and ipads? Because I'd like to use it in school because we are learning statistics and we are allowed our devices in school. You can install

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread Chris Angelico
On Fri, Sep 20, 2013 at 7:58 PM, Aseem Bansal asmbans...@gmail.com wrote: I started Python 4 months ago. Largely self-study with use of Python documentation, stackoverflow and google. I was thinking what is the minimum that I must know before I can say that I know Python? I come from a C

lambda - strange behavior

2013-09-20 Thread Kasper Guldmann
I was playing around with lambda functions, but I cannot seem to fully grasp them. I was running the script below in Python 2.7.5, and it doesn't do what I want it to. Are lambda functions really supposed to work that way. How do I make it work as I intend? f = [] for n in range(5): f.append(

Antispam measures circumventing

2013-09-20 Thread Jugurtha Hadjar
Hello, # I posted this on the tutor list, but my message wasn't displayed I shared some assembly code (microcontrollers) and I had a comment wit my e-mail address for contact purposes. Supposing my name is John Doe and the e-mail is john@hotmail.com, my e-mail was written like this:

Re: Antispam measures circumventing

2013-09-20 Thread Vlastimil Brom
2013/9/20 Jugurtha Hadjar jugurtha.had...@gmail.com: Hello, # I posted this on the tutor list, but my message wasn't displayed I shared some assembly code (microcontrollers) and I had a comment wit my e-mail address for contact purposes. Supposing my name is John Doe and the e-mail is

Re: lambda - strange behavior

2013-09-20 Thread Chris Angelico
On Sat, Sep 21, 2013 at 1:21 AM, Kasper Guldmann gm...@kalleguld.dk wrote: f = [] for n in range(5): f.append( lambda x: x*n ) You're leaving n as a free variable here. The lambda function will happily look to an enclosing scope, so this doesn't work. But there is a neat trick you can do:

Re: Antispam measures circumventing

2013-09-20 Thread Chris Angelico
On Sat, Sep 21, 2013 at 1:04 AM, Jugurtha Hadjar jugurtha.had...@gmail.com wrote: Supposing my name is John Doe and the e-mail is john@hotmail.com, my e-mail was written like this: removemejohn.dospames...@removemehotmail.com' With a note saying to remove the capital letters. Now, I

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread rusi
On Friday, September 20, 2013 7:09:13 PM UTC+5:30, Robert Kern wrote: On 2013-09-20 12:43, rusi wrote: Stroustrup says he is still learning C++ and I know kids who have no qualms saying they know programming language L (for various values of L) after hardly an hour or two of mostly

dynamic function parameters for **kwargs

2013-09-20 Thread bab mis
Hi , I have a function as below: def func(**kwargs): ... ... args=a='b',c='d' i want to call func(args) so that my function call will take a var as an parameter. it fails with an error typeError: fun() takes exactly 0 arguments (1 given) . Is there any other way to get the

Re: lambda - strange behavior

2013-09-20 Thread Rotwang
On 20/09/2013 16:21, Kasper Guldmann wrote: I was playing around with lambda functions, but I cannot seem to fully grasp them. I was running the script below in Python 2.7.5, and it doesn't do what I want it to. Are lambda functions really supposed to work that way. How do I make it work as I

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread Chris Angelico
On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal asmbans...@gmail.com wrote: I hope that cleared some confusion about what I wanted to ask. I wanted to gauge myself to find if I am progressing or not. Well, based on my definition, that's easy to answer. Have you solved problems using Python? If

Re: lambda - strange behavior

2013-09-20 Thread rusi
On Friday, September 20, 2013 8:51:20 PM UTC+5:30, Kasper Guldmann wrote: I was playing around with lambda functions, but I cannot seem to fully grasp them. I was running the script below in Python 2.7.5, and it doesn't do what I want it to. Are lambda functions really supposed to work that

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread Aseem Bansal
By C being smaller than Python I did not mean the scope of C is lesser than Python. I simply meant that the standard libraries are less in number compared to Python. By knowing Python I didn't imply an expert-level understanding. Minimum that so someone cannot say Hey, you said you knew Python

Re: Antispam measures circumventing

2013-09-20 Thread Chris Angelico
On Sat, Sep 21, 2013 at 2:23 AM, Jussi Piitulainen jpiit...@ling.helsinki.fi wrote: (Put .invalid at the end, maybe. But I wish spam was against the law, effectively.) Against what law, exactly? In what jurisdiction will you seek to charge spammers? And who will track them down? ChrisA --

Re: lambda - strange behavior

2013-09-20 Thread Jussi Piitulainen
Kasper Guldmann writes: I was playing around with lambda functions, but I cannot seem to fully grasp them. I was running the script below in Python 2.7.5, and it doesn't do what I want it to. Are lambda functions really supposed to work that way. How do I make it work as I intend? f = []

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread Mark Janssen
I started Python 4 months ago. Largely self-study with use of Python documentation, stackoverflow and google. I was thinking what is the minimum that I must know before I can say that I know Python? Interesting. I would say that you must know the keywords, how to make a Class, how to write

Re: Antispam measures circumventing

2013-09-20 Thread Jussi Piitulainen
Jugurtha Hadjar writes: Supposing my name is John Doe and the e-mail is john@hotmail.com, my e-mail was written like this: removemejohn.dospames...@removemehotmail.com' With a note saying to remove the capital letters. Now, I wrote this : for character in my_string: ... if

Re: dynamic function parameters for **kwargs

2013-09-20 Thread stas poritskiy
On Friday, September 20, 2013 10:51:46 AM UTC-5, bab mis wrote: Hi , I have a function as below: def func(**kwargs): ... ... args=a='b',c='d' i want to call func(args) so that my function call will take a var as an parameter. it fails

Re: Antispam measures circumventing

2013-09-20 Thread Jugurtha Hadjar
Chris, Vlastimil, great insights gentlemen! Thanks Chris Angelico wrote: Instead of matching the ones that are the same as their uppercase version, why not instead keep the ones that are the same as their lowercase? That's why I started off doing, and then lost track a bit. It didn't cross

Re: dynamic function parameters for **kwargs

2013-09-20 Thread Rotwang
On 20/09/2013 16:51, bab mis wrote: Hi , I have a function as below: def func(**kwargs): ... ... args=a='b',c='d' i want to call func(args) so that my function call will take a var as an parameter. it fails with an error typeError: fun() takes exactly 0 arguments (1 given) .

Re: Making it a MultiThread!

2013-09-20 Thread stas poritskiy
On Friday, September 20, 2013 7:56:16 AM UTC-5, stas poritskiy wrote: Hello All! I have a general question, i was posting here earlier while trying to troubleshoot a few things while developing an application, i was able to hit all of my goals, and make things work! Thank you all

Re: Antispam measures circumventing

2013-09-20 Thread Chris Angelico
On Sat, Sep 21, 2013 at 2:23 AM, Jussi Piitulainen jpiit...@ling.helsinki.fi wrote: Something meaningful: make it john.doe...@hotmail.com with a note to remove the female deer for john@hotmail.com, or remove the drop of golden sun for john@hotmail.com. This method can be quite

matplotlib question: OverflowError: Allocated too many blocks

2013-09-20 Thread Ray
hi, i'm using matplotlib to generate chart from audio wave file, and I had a problem with it. test code as: from scipy.io import wavfile import matplotlib.pyplot as plt rate, x = wavfile.read('test2.wav') plt.plot(x) plt.savefig('test2.png') the len of x= 19531840 (as len(x) ) matplotlib give

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread Jugurtha Hadjar
I think it is a philosophical question. It's like saying I know maths, which is a ridiculous phrase I was surprised to hear, let alone surprised to hear often. Can someone know everything there is to know about something ? I doubt it. The point, at least for me, isn't to know everything ..

building an online judge to evaluate Python programs

2013-09-20 Thread Jabba Laci
Hi, In our school I have an introductory Python course. I have collected a large list of exercises for the students and I would like them to be able to test their solutions with an online judge ( http://en.wikipedia.org/wiki/Online_judge ). At the moment I have a very simple web application that

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread Aseem Bansal
On Friday, September 20, 2013 10:04:32 PM UTC+5:30, Chris Angelico wrote: On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal asmbans...@gmail.com wrote: I hope that cleared some confusion about what I wanted to ask. I wanted to gauge myself to find if I am progressing or not. Well, based on my

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread Aseem Bansal
I understand that being able to solve problems and knowing when to use something is the final measure of knowing something properly. But I wanted to find something quantitative that I can use to measure myself. Like the interview questions that Tim Chase posted. Measuring myself based on the

pyGTK Help Needed Please

2013-09-20 Thread bingefeller
Hi folks, I'm trying to run a program called Nicotine+ on my Mac which is running 10.8.5. Nicotine+ requires GTK2, pyGTK2 and Python to run. I believe I have all of these installed via Macports (please see here - http://pastebin.com/nwmrpp2Y ) When I try to run Nicotine+ I get this message:

Re: Python GUI?

2013-09-20 Thread Metallicow
On Wednesday, September 11, 2013 3:55:59 PM UTC-5, Eamonn Rea wrote: There are a few known GUI toolkits out there, and the main ones from what I can tell are: Tkinter -- Simple to use, but limited PyQT -- You have a GUI designer, so I'm not going to count that PyGTK -- Gnome

Re: building an online judge to evaluate Python programs

2013-09-20 Thread Aseem Bansal
However, it can only be used with programs that produce an output Just interested, what else are you thinking of checking? -- https://mail.python.org/mailman/listinfo/python-list

Re: building an online judge to evaluate Python programs

2013-09-20 Thread Jabba Laci
Let's take this simple exercise: Write a function that receives a list and decides whether the list is sorted or not. Here the output of the function is either True or False, so I cannot test it with my current method. Laszlo On Fri, Sep 20, 2013 at 7:57 PM, Aseem Bansal asmbans...@gmail.com

Re: Antispam measures circumventing

2013-09-20 Thread Joel Goldstick
On Fri, Sep 20, 2013 at 12:45 PM, Jugurtha Hadjar jugurtha.had...@gmail.com wrote: Chris, Vlastimil, great insights gentlemen! Thanks Chris Angelico wrote: Instead of matching the ones that are the same as their uppercase version, why not instead keep the ones that are the same as their

Re: building an online judge to evaluate Python programs

2013-09-20 Thread John Gordon
In mailman.196.1379702349.18130.python-l...@python.org Jabba Laci jabba.l...@gmail.com writes: Let's take this simple exercise: Write a function that receives a list and decides whether the list is sorted or not. Here the output of the function is either True or False, so I cannot test it

Re: Python GUI?

2013-09-20 Thread Michael Torrie
On 09/20/2013 12:34 PM, Metallicow wrote: I prefer wx over qt for these reasons. Robin works for qt now. *Funny isn't it...* Basically, To change qt(PySide) you need to pretty much need to be employed by qt, not the case with wx(is not a *For profit*, but you can donate.). In my opinion, in

Re: Python GUI?

2013-09-20 Thread Metallicow
Sorry about that, nokia is/was. qt was developed(IIRC) for phones. Someone made money. And a lot of it. wx is a more or less a free project. I don't use a phone anymore. If I had a touch screen phone and was a developer, I still wouldn't use one. I have my many reasons why... --

Re: building an online judge to evaluate Python programs

2013-09-20 Thread Jabba Laci
That last seems to me to be the biggie. Several times in the past few years, people in this mailing list have tried to build a safe sandbox. And each one was a big failure, for a hacker of sufficient interest. Some of them were spectacular failures. If you have to be safe from your user,

Re: building an online judge to evaluate Python programs

2013-09-20 Thread John Gordon
In mailman.195.1379698177.18130.python-l...@python.org Jabba Laci jabba.l...@gmail.com writes: There are several questions: * What is someone sends an infinite loop? There should be a time limit. You could run the judge as a background process, and kill it after ten seconds if it hasn't

Iterate through a list of tuples for processing

2013-09-20 Thread Shyam Parimal Katti
I have a list of tuples where the number of rows in the list and the number of columns in tuples of the list will not be constant. i.e. list = [(a1,b1, …z1), (a2,b2, …, z2),…. ,(am,bm, … , zm )]. It can be compared to the SQL results, as the number of columns change in the sql, the number of

Print statement not printing as it suppose to

2013-09-20 Thread Sam
hi everybody i am just starting to learn python, i was writing a simple i/o program but my print statement is acting weird. here is my code i want to know why it prints this way. thank you car=int(input(Lamborghini tune-up:)) rent=int(input('\nManhatan apartment: '))

Re: Print statement not printing as it suppose to

2013-09-20 Thread Tim Delaney
On 21 September 2013 07:57, Sam anasdah...@gmail.com wrote: hi everybody i am just starting to learn python, i was writing a simple i/o program but my print statement is acting weird. here is my code i want to know why it prints this way. thank you print(\nThe total amount required is ,

Re: Print statement not printing as it suppose to

2013-09-20 Thread Emiliano Carlos de Moraes Firmino
Remove both brackets in last line, You are creating a tuple in last statement not making a function call. 2013/9/20 Sam anasdah...@gmail.com hi everybody i am just starting to learn python, i was writing a simple i/o program but my print statement is acting weird. here is my code i want to

Re: Print statement not printing as it suppose to

2013-09-20 Thread John Gordon
In 05bbf1a3-6480-48ee-8984-2482b90c7...@googlegroups.com Sam anasdah...@gmail.com writes: print(\nThe total amount required is , total ) OUTPUT ('\nThe total amount required is ', 3534) In older versions of python (like the one you are using), 'print' is a statement instead of a function.

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread Terry Reedy
On 9/20/2013 5:58 AM, Aseem Bansal wrote: I started Python 4 months ago. Largely self-study with use of Python documentation, stackoverflow and google. I was thinking what is the minimum that I must know before I can say that I know Python? I come from a C background which is comparatively

Re: building an online judge to evaluate Python programs

2013-09-20 Thread Terry Reedy
On 9/20/2013 4:04 PM, Jabba Laci wrote: That last seems to me to be the biggie. Several times in the past few years, people in this mailing list have tried to build a safe sandbox. And each one was a big failure, for a hacker of sufficient interest. Some of them were spectacular failures. If

Re: building an online judge to evaluate Python programs

2013-09-20 Thread Jabba Laci
I just found Docker ( http://docs.docker.io/en/latest/faq/ ). It seems sandboxing could be done with this easily. Laszlo On Fri, Sep 20, 2013 at 10:08 PM, John Gordon gor...@panix.com wrote: In mailman.195.1379698177.18130.python-l...@python.org Jabba Laci jabba.l...@gmail.com writes: There

Re: building an online judge to evaluate Python programs

2013-09-20 Thread Ned Batchelder
On 9/20/13 6:26 PM, Jabba Laci wrote: I just found Docker ( http://docs.docker.io/en/latest/faq/ ). It seems sandboxing could be done with this easily. At edX, I wrote CodeJail (https://github.com/edx/codejail) to use AppArmor to run Python securely. For grading Python programs, we use a

Re: Python GUI?

2013-09-20 Thread Michael Torrie
On 09/20/2013 01:58 PM, Metallicow wrote: Sorry about that, nokia is/was. qt was developed(IIRC) for phones. Someone made money. And a lot of it. wx is a more or less a free project. I don't use a phone anymore. If I had a touch screen phone and was a developer, I still wouldn't use one. I

Re: Iterate through a list of tuples for processing

2013-09-20 Thread Vlastimil Brom
2013/9/20 Shyam Parimal Katti spk...@nyu.edu: I have a list of tuples where the number of rows in the list and the number of columns in tuples of the list will not be constant. i.e. ... i.e. list_value = [(‘name1’, 1234, ‘address1’ ), (‘name2’, 5678, ‘address2’), (‘name3’, 1011,

Re: building an online judge to evaluate Python programs

2013-09-20 Thread Dave Angel
On 20/9/2013 13:28, Jabba Laci wrote: Hi, In our school I have an introductory Python course. I have collected a large list of exercises for the students and I would like them to be able to test their solutions with an online judge ( http://en.wikipedia.org/wiki/Online_judge ). At the

Re: Python GUI?

2013-09-20 Thread Robert Kern
On 2013-09-20 19:34, Metallicow wrote: I prefer wx over qt for these reasons. Robin works for qt now. *Funny isn't it...* Lying about someone's employment is not very funny. Robin does not work for Qt or even Digia, the nearest thing to a corporate owner of Qt these days.

Re: mutlifile inheritance problem

2013-09-20 Thread Peter Cacioppi
On Thursday, March 21, 2002 2:03:23 PM UTC-7, Marc wrote: I have classes defined in different files and would like to inherit from a class in file A.py for a class in file B.py but am running into problems. I'm using Python 1.5.2 on Windows NT Here's a specific example:

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread Chris Angelico
On Sat, Sep 21, 2013 at 3:40 AM, Aseem Bansal asmbans...@gmail.com wrote: On Friday, September 20, 2013 10:04:32 PM UTC+5:30, Chris Angelico wrote: On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal asmbans...@gmail.com wrote: I hope that cleared some confusion about what I wanted to ask. I wanted

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread Roy Smith
In article mailman.192.1379694881.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal asmbans...@gmail.com wrote: I hope that cleared some confusion about what I wanted to ask. I wanted to gauge myself to find if I am

Re: Print statement not printing as it suppose to

2013-09-20 Thread Chris Angelico
On Sat, Sep 21, 2013 at 7:57 AM, Sam anasdah...@gmail.com wrote: car=int(input(Lamborghini tune-up:)) print(\nThe total amount required is , total ) OUTPUT ('\nThe total amount required is ', 3534) As others have said, this output indicates that you're running under a Python 2.x interpreter.

Re: What minimum should a person know before saying I know Python

2013-09-20 Thread Chris Angelico
On Sat, Sep 21, 2013 at 12:31 PM, Roy Smith r...@panix.com wrote: In article mailman.192.1379694881.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal asmbans...@gmail.com wrote: I hope that cleared some confusion about what I

Re: mutlifile inheritance problem

2013-09-20 Thread Chris Angelico
On Sat, Sep 21, 2013 at 10:17 AM, Peter Cacioppi peter.cacio...@gmail.com wrote: It's too bad, I really lean on reload(). It appears to be incompatible with inheritance more than one level deep. Python's really not designed for reload of this nature. You can easily make a nasty mess of things.

Re: pyGTK Help Needed Please

2013-09-20 Thread Michael Torrie
On 09/20/2013 12:30 PM, bingefel...@gmail.com wrote: Hi folks, I'm trying to run a program called Nicotine+ on my Mac which is running 10.8.5. Nicotine+ requires GTK2, pyGTK2 and Python to run. I believe I have all of these installed via Macports (please see here -

Re: Print statement not printing as it suppose to

2013-09-20 Thread Dave Angel
On 20/9/2013 17:57, Sam wrote: print(\nThe total amount required is , total ) ('\nThe total amount required is ', 3534) === the problem is obviously on the last print statement that is supposed to print the outut Others have pointed out the version discrepancy. But I'll also ask what

[issue19048] itertools.tee doesn't have a __sizeof__ method

2013-09-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Antoine: in (my experience of) memory analysis, the size of a single object is mostly irrelevant. If you need to know how much memory something consumes, you typically want to know the memory of a set of objects. So this is the case that really must be

[issue18990] Return root element from ElementTree.XMLPullParser.close() to match ElementTree.XMLParser

2013-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: It's the docs for XMLPullParser.close that need to be updated. On 20 September 2013 15:59, Stefan Behnel rep...@bugs.python.org wrote: Stefan Behnel added the comment: I'm not entirely happy about the docs anyway. Most people just want to loop over

[issue18990] Return root element from ElementTree.XMLPullParser.close() to match ElementTree.XMLParser

2013-09-20 Thread Stefan Behnel
Stefan Behnel added the comment: Ah, right - I forgot that it currently only implements a part of the parser API in ElementTree. Adding Returns the toplevel document element. behind the current sentence would do, I guess. That will need updating once the XMLPullParser implements support for

[issue19044] getaddrinfo raises near-useless exception

2013-09-20 Thread Balazs
Balazs added the comment: Hi, this is the platform: Linux cloudbackupbr 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux /bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24,

[issue11632] difflib.unified_diff loses context

2013-09-20 Thread Benoît D Vages
Benoît D Vages added the comment: An other exemple if necessary (python 2.6 / 2.7) Got same behavior than mal using his script and my files. Seems to occur when the chunk of lines between 2 differences is repeated many times in the file -- nosy: +folder4ben Added file:

[issue19049] itertools.tee uses int for indices

2013-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are disadvantages in the changing int to Py_ssize_t. Converting Py_ssize_t to/from Python int is a little harder than converting C int or long. This change (as any other change) has a risk of introduce new bugs (as you can see on example of your

[issue19056] Windows 7, script exec not working without explicit cal of python.exe

2013-09-20 Thread Thierry Seunevel
New submission from Thierry Seunevel: Executing a script from the command prompt works if Python.exe called explicitly, doesn't work if script name only. Example : python.exe script.py is ok script.py gives the following : Traceback (most recent call last): File D:\soft\python\lib\site.py,

[issue19049] itertools.tee uses int for indices

2013-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I suggest just add (yet one) explicit comment. int index; /* 0 = index = LINKCELLS */ Ok, I think a comment is good enough here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19049

[issue19045] Make on Solaris 11 x64 with OracleStudio12.3 failed

2013-09-20 Thread Borut Podlipnik
Borut Podlipnik added the comment: Using c compiler instead of c++ compiler, solved the problem: setenv CC cc setenv CXX cc setenv LD_LIBRARY_PATH /opt/solarisstudio12.3/lib:/usr/lib # ./configure --without-gcc --with-cxx-main=CC --prefix=/opt/python # make # make test However, make test

[issue11220] Sometimes library raises URLError when trying POST with httpS

2013-09-20 Thread mrDoctorWho0 .
mrDoctorWho0 . added the comment: Trying to use POST-request to https://vk.com and sometimes library raise an error. File library/vkApi.py, line 31, in post response = self.Opener.open(request) File /usr/lib/python2.7/urllib2.py, line 404, in open response = self._open(req, data)

[issue11220] Sometimes library raises URLError when trying POST with httpS

2013-09-20 Thread mrDoctorWho0 .
mrDoctorWho0 . added the comment: oops! wrong place! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11220 ___ ___ Python-bugs-list mailing list

[issue11220] Sometimes library raises URLError when trying POST with httpS

2013-09-20 Thread mrDoctorWho0 .
Changes by mrDoctorWho0 . mrdoctor...@gmail.com: Removed file: http://bugs.python.org/file31824/code.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11220 ___

[issue19057] Sometimes urllib2 raises URLError when trying POST with httpS

2013-09-20 Thread mrDoctorWho0 .
New submission from mrDoctorWho0 .: Trying to use POST-request to https://vk.com and sometimes library raise an error. File library/vkApi.py, line 31, in post response = self.Opener.open(request) File /usr/lib/python2.7/urllib2.py, line 404, in open response = self._open(req, data)

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2013-09-20 Thread Christopher Benson
Changes by Christopher Benson chris.benson...@gmail.com: -- nosy: +ChrisBenson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6792 ___ ___

[issue11220] https sslv3 error 14077417: illegal parameter

2013-09-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: -mrDoctorWho0.. title: Sometimes library raises URLError when trying POST with httpS - https sslv3 error 14077417: illegal parameter versions: +Python 2.6, Python 3.1 -Python 2.7

[issue11220] https sslv3 error 14077417: illegal parameter

2013-09-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- Removed message: http://bugs.python.org/msg198139 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11220 ___

[issue11220] https sslv3 error 14077417: illegal parameter

2013-09-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- Removed message: http://bugs.python.org/msg198140 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11220 ___

[issue19009] Enhance HTTPResponse.readline() performance

2013-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After adding read1() and peek() what stop us from inheriting HTTPResponse from BufferedIOBase? I suggest split _read1_or_peek_chunked() by two parts. First part calculates n bounded by chunk_left (it can read the next chunk size and close a connection if

[issue19051] Unify buffered readers

2013-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: If you want this, I think it should be somehow folded into existing classes (for example BufferedIOBase). Yet another implementation of readline() isn't really a good idea. -- ___ Python tracker

[issue18756] os.urandom() fails under high load

2013-09-20 Thread Adam Bielański
Changes by Adam Bielański abg...@gmail.com: -- nosy: +Adam.Bielański ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18756 ___ ___ Python-bugs-list

[issue18003] lzma module very slow with line-oriented reading.

2013-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue19051. Even preliminary Python implementation noticeable speed up the reading of short lines. $ ./python -m timeit -s import lzma, io f=lzma.LZMAFile('words.xz', 'r') for line in f: pass Unpatched: 1.44 sec per loop Patched: 1.06 sec per loop

[issue18990] Return root element from ElementTree.XMLPullParser.close() to match ElementTree.XMLParser

2013-09-20 Thread Eli Bendersky
Eli Bendersky added the comment: Hi Nick, I disagree with this change. The way the APIs are currently defined, XMLParser and XMLPullParser are different animals. XMLParser can be considered to only have one front in the API - feed() and close(). You feed() until the document is done and then

[issue18003] lzma module very slow with line-oriented reading.

2013-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: With C implementation it should be as fast as with BufferedReader. So why not simply use BufferedReader? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18003

[issue19057] Sometimes urllib2 raises URLError when trying POST with httpS

2013-09-20 Thread R. David Murray
R. David Murray added the comment: I would guess that if you did a network trace you'd find out there really was a packet that did not arrive (a timeout). Note that detecting this is complicated by the fact that ssl is involved. (I don't know the details, but I remember someone saying that

[issue19009] Enhance HTTPResponse.readline() performance

2013-09-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ok, I have refactored this a bit. A separate new function now takes care of the reading of chunk-header and tail. This simplifies the other functions. I'm not sure what you mean by inheriting from the buffered class. Do we gain anything by doing

  1   2   >