Re: How to run script from interpreter?

2014-05-28 Thread onlyvinish
On Friday, January 19, 2001 1:22:23 AM UTC+5:30, Rolander, Dan wrote: What is the best way to run a python script from within the interpreter? What command should I use? Thanks, Dan try using execfile(filename) -- https://mail.python.org/mailman/listinfo/python-list

ANN: eGenix mxODBC Connect 2.1.0 - Python ODBC Database Interface

2014-05-28 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC Connect Python ODBC Database Interface Version 2.1.0 mxODBC Connect is our commercially supported client-server product

Re: is there a list/group for beginners?

2014-05-28 Thread alister
On Tue, 27 May 2014 13:38:36 -0800, Deb Wyatt wrote: -Original Message- From: john_lada...@sbcglobal.net Sent: Tue, 27 May 2014 11:38:39 -0700 (PDT) To: python-list@python.org Subject: Re: is there a list/group for beginners? Hi, Deb. Ten years ago (or eleven?), I was

Re: python #13

2014-05-28 Thread himanshulkce
Thank you sir -- https://mail.python.org/mailman/listinfo/python-list

how avoid delay while returning from C-python api?

2014-05-28 Thread Lakshmipathi.G
Hi - I have C-Python api like below. It works fine, but the problem is while invoking this method from python script say #cat script.py snip offset=0 size=4 write_object(offset,size) /snip This calls write_this_c() C api and returns quickly to next printf statement. But the return call

IDE for python

2014-05-28 Thread Sameer Rathoud
Hello everyone, I am new to python. I am currently using python 3.3 With python I got IDLE, but I am not very comfortable with this. Please suggest, if we have any free ide for python development. -- https://mail.python.org/mailman/listinfo/python-list

答复: IDE for python

2014-05-28 Thread cheng.li
IPython for interactive testing. Aptana or PyDev + eclipse as IDE -邮件原件- 发件人: Python-list [mailto:python-list-bounces+scrappedprince.li=gmail@python.org] 代表 Sameer Rathoud 发送时间: 2014年5月28日 18:43 收件人: python-list@python.org 主题: IDE for python Hello everyone, I am new to python. I

Re: IDE for python

2014-05-28 Thread Marko Rauhamaa
Sameer Rathoud sameer.rath...@gmail.com: Please suggest, if we have any free ide for python development. emacs Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: how avoid delay while returning from C-python api?

2014-05-28 Thread Ned Batchelder
On 5/28/14 6:22 AM, Lakshmipathi.G wrote: Hi - I have C-Python api like below. It works fine, but the problem is while invoking this method from python script say #cat script.py snip offset=0 size=4 write_object(offset,size) /snip This calls write_this_c() C api and returns quickly to next

Re: IDE for python

2014-05-28 Thread alister
On Wed, 28 May 2014 03:43:29 -0700, Sameer Rathoud wrote: Hello everyone, I am new to python. I am currently using python 3.3 With python I got IDLE, but I am not very comfortable with this. Please suggest, if we have any free ide for python development. there Are plenty I use Geany

Re: IDE for python

2014-05-28 Thread Mihamina Rakotomandimby
On 05/28/2014 01:43 PM, Sameer Rathoud wrote: Please suggest, if we have any free ide for python development. I think major IDEs in the place have their Python integration. Did you make some search and tried each one? With just the information you provided, every existing IDE is OK. - What

Re: how avoid delay while returning from C-python api?

2014-05-28 Thread Lakshmipathi.G
The statement after call printed to stdout and the script waits there for few seconds. So I was assuming something delaying the return value. Just found out there is core-dump segmentation fault (core dumped) python ..Probably fixing core dump should resolve the issue. Thanks! Cheers,

Re: IDE for python

2014-05-28 Thread Chris Angelico
On Wed, May 28, 2014 at 8:43 PM, Sameer Rathoud sameer.rath...@gmail.com wrote: I am currently using python 3.3 With python I got IDLE, but I am not very comfortable with this. Please suggest, if we have any free ide for python development. You don't really need an IDE, generally. A good

Re: IDE for python

2014-05-28 Thread Sameer Rathoud
On Wednesday, May 28, 2014 4:21:22 PM UTC+5:30, Mihamina Rakotomandimby wrote: On 05/28/2014 01:43 PM, Sameer Rathoud wrote: Please suggest, if we have any free ide for python development. I think major IDEs in the place have their Python integration. Did you make some search and

Re: IDE for python

2014-05-28 Thread Chris Angelico
On Wed, May 28, 2014 at 9:31 PM, Sameer Rathoud sameer.rath...@gmail.com wrote: for C++ and C# development I prefer visual studio and for C++ try outs even codeblock is ok For Java I use eclipse. But first time I am trying python. I was trying some UI with python. I have installed

Re: IDE for python

2014-05-28 Thread prashanth B.G
Hi Sameer, Try pycharm, ninja ide, wings ide .. These are light and will help you to get started. Later on you can switch to vim which has many plugins for python. Also feel free to take a look at this link on stackoverflow comparing different features .

Re: IDE for python

2014-05-28 Thread Mark Lawrence
On 28/05/2014 12:31, Sameer Rathoud wrote: On Wednesday, May 28, 2014 4:21:22 PM UTC+5:30, Mihamina Rakotomandimby wrote: On 05/28/2014 01:43 PM, Sameer Rathoud wrote: Please suggest, if we have any free ide for python development. I think major IDEs in the place have their Python

Re: IDE for python

2014-05-28 Thread Greg Schroeder
Please suggest, if we have any free ide for python development. Anything that writes text is fine. I recommend the standard text editor for your OS (Notepad if you use Windows, Textedit on Mac, whatever is on your GNU/Linux distro by default) unless you know exactly what you don't like about

Unable to figure out ' invalid matrix input type -- ', u'1'

2014-05-28 Thread varun7rs
Hello Everyone, I am currently working on Cplex using Python API. I have a problem when I run the code. I keep getting this error about the invalid matrix input but I'm not able to figure out what it is. I would be grateful if any of you could help. My function is as below def

Re: IDE for python

2014-05-28 Thread Chris Angelico
On Wed, May 28, 2014 at 9:46 PM, Greg Schroeder gmschroe...@gmail.com wrote: Please suggest, if we have any free ide for python development. Anything that writes text is fine. I recommend the standard text editor for your OS (Notepad if you use Windows, Textedit on Mac, whatever is on your

Re: IDE for python

2014-05-28 Thread Sameer Rathoud
On Wednesday, May 28, 2014 5:16:41 PM UTC+5:30, Greg Schroeder wrote: Please suggest, if we have any free ide for python development. Anything that writes text is fine. I recommend the standard text editor for your OS (Notepad if you use Windows, Textedit on Mac, whatever is on

Re: IDE for python

2014-05-28 Thread Sameer Rathoud
On Wednesday, May 28, 2014 6:26:46 PM UTC+5:30, Sameer Rathoud wrote: On Wednesday, May 28, 2014 5:16:41 PM UTC+5:30, Greg Schroeder wrote: Please suggest, if we have any free ide for python development. Anything that writes text is fine. I recommend the standard

Re: IDE for python

2014-05-28 Thread Steven D'Aprano
On Wed, 28 May 2014 03:43:29 -0700, Sameer Rathoud wrote: Hello everyone, I am new to python. I am currently using python 3.3 With python I got IDLE, but I am not very comfortable with this. Please suggest, if we have any free ide for python development. What operating system are

Re: IDE for python

2014-05-28 Thread Sameer Rathoud
On Wednesday, May 28, 2014 6:05:08 PM UTC+5:30, Mark Lawrence wrote: On 28/05/2014 12:31, Sameer Rathoud wrote: On Wednesday, May 28, 2014 4:21:22 PM UTC+5:30, Mihamina Rakotomandimby wrote: On 05/28/2014 01:43 PM, Sameer Rathoud wrote: Please suggest, if we have any free ide

Re: IDE for python

2014-05-28 Thread William Ray Wing
On May 28, 2014, at 6:43 AM, Sameer Rathoud sameer.rath...@gmail.com wrote: Hello everyone, I am new to python. I am currently using python 3.3 With python I got IDLE, but I am not very comfortable with this. Please suggest, if we have any free ide for python development. --

Re: IDE for python

2014-05-28 Thread Mark H Harris
On 5/28/14 5:43 AM, Sameer Rathoud wrote: I am currently using python 3.3 With python I got IDLE, but I am not very comfortable with this. Please suggest, if we have any free ide for python development. I tend to agree with Chris Steven on this... a good gnu/linux desktop is the best IDE

Re: Unable to figure out ' invalid matrix input type -- ', u'1'

2014-05-28 Thread Mark Lawrence
On 28/05/2014 13:41, varun...@gmail.com wrote: Hello Everyone, I am currently working on Cplex using Python API. I have a problem when I run the code. I keep getting this error about the invalid matrix input but I'm not able to figure out what it is. I would be grateful if any of you could

Re: IDE for python

2014-05-28 Thread Mark Lawrence
On 28/05/2014 14:01, Sameer Rathoud wrote: I've had to snip umpteen lines that gg has added so *please* use the mailing list https://mail.python.org/mailman/listinfo/python-list or read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line spacing

Re: How to run script from interpreter?

2014-05-28 Thread Terry Reedy
On 5/28/2014 3:44 AM, onlyvin...@gmail.com wrote: On Friday, January 19, 2001 1:22:23 AM UTC+5:30, Rolander, Dan wrote: What is the best way to run a python script from within the interpreter? What command should I use? Thanks, Dan try using execfile(filename) or in 3.x with open(filename)

Re: IDE for python

2014-05-28 Thread Wolfgang Keller
With python I got IDLE, but I am not very comfortable with this. Please suggest, if we have any free ide for python development. There are a lot of IDEs for Python. One classic is WingIDE. Available for free is a 101 edition. Runs on all major operating systems. Implemented itself in Python.

Re: How to run script from interpreter?

2014-05-28 Thread Mark H Harris
On 5/28/14 2:44 AM, onlyvin...@gmail.com wrote: On Friday, January 19, 2001 1:22:23 AM UTC+5:30, Rolander, Dan wrote: What is the best way to run a python script from within the interpreter? What command should I use? try using execfile(filename) What type of script? python? bash?

Re: IDE for python

2014-05-28 Thread Ernest Bonat, Ph.D.
I believe in IDE with a complete project structure development and debugging tool. I have to time for a lot of typing. Mi option is Eclipse IDE with PyDev plugin. Thanks On Wed, May 28, 2014 at 9:24 AM, Wolfgang Keller felip...@gmx.net wrote: With python I got IDLE, but I am not very

need help with this code please fix it or at least tell me what im doing wrong

2014-05-28 Thread funky
import pygame import random import time import sys black = (0, 0, 0) white = (255, 255, 255) red = (255, 0, 0) class Block(pygame.sprite.Sprite): def __init__(self, color, width, height): pygame.sprite.Sprite.__init__(self) self.image = pygame.Surface([width, height])

Re: IDE for python

2014-05-28 Thread Deb Wyatt
On 05/28/2014 01:43 PM, Sameer Rathoud wrote: Please suggest, if we have any free ide for python development. snip But first time I am trying python. I was trying some UI with python. I have installed wingide. But i didn't liked it because for licenses messages even in trial version.

Re: need help with this code please fix it or at least tell me what im doing wrong

2014-05-28 Thread Gary Herron
On 05/28/2014 10:32 AM, funky wrote: 100+ lines of code removed. No way. This is not a paid service, but rather a community of Python users. You can get lots of help here, but you have to put in some work. Please take the time to tell us: What this code should do. What it actually

Re: need help with this code please fix it or at least tell me what im doing wrong

2014-05-28 Thread John Gordon
In 8bc01036-ee9e-4de9-b569-7039dcc05...@googlegroups.com funky benjaminherna...@gmail.com writes: What do you want the program to do? What is it doing instead? Do you get any error messages? Don't just throw code at us and ask us to fix it... -- John Gordon Imagine what it must be

Re: how avoid delay while returning from C-python api?

2014-05-28 Thread Stefan Behnel
Lakshmipathi.G, 28.05.2014 12:22: I have C-Python api like below. It works fine, but the problem is while invoking this method from python script say #cat script.py snip offset=0 size=4 write_object(offset,size) /snip This calls write_this_c() C api and returns quickly to next

Re: need help with this code please fix it or at least tell me what im doing wrong

2014-05-28 Thread Grant Edwards
On 2014-05-28, funky benjaminherna...@gmail.com wrote: [program that apparently doesn't work] I'll fix it for you. My rates are $150/hour with a 4-hour minimum paid up-front. -- Grant Edwards grant.b.edwardsYow! PUNK ROCK!! DISCO at

Re: IDE for python

2014-05-28 Thread Rustom Mody
On Wednesday, May 28, 2014 4:13:29 PM UTC+5:30, Sameer Rathoud wrote: Hello everyone, I am new to python. I am currently using python 3.3 With python I got IDLE, but I am not very comfortable with this. Please suggest, if we have any free ide for python development. Im not going to add

Python 3 is killing Python

2014-05-28 Thread Larry Martell
Somthing I came across in my travels through the ether: https://medium.com/@deliciousrobots/5d2ad703365d/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3 is killing Python

2014-05-28 Thread Johannes Bauer
On 28.05.2014 21:23, Larry Martell wrote: Somthing I came across in my travels through the ether: https://medium.com/@deliciousrobots/5d2ad703365d/ Sub-headline The Python community should fork Python 2. Which could also read Someone else should REALLY fork Py2 because I'm mad about Py3 yet

Re: Python 3 is killing Python

2014-05-28 Thread Marko Rauhamaa
I agree that Py3 made a grave error in breaking backward-compatibility. However, that's the reality and the transition will take place over time, possibly even before IPv6 overtakes IPv4 in popularity. But then, I was never really beholden to third-party libraries and frameworks. Instead, the

Re: Command prompt not shown when running Python script with subprocess on Windows

2014-05-28 Thread Tim Golden
On 28/05/2014 06:08, Tim Golden wrote: On 28/05/2014 00:01, ps16thypresenceisfullnessof...@gmail.com wrote: I want users to be able to enter paths in the XML file exactly the way they would be entered in a Windows shortcut. Since it is possible to make a Windows shortcut for path-to-script.py

Re: Python 3 is killing Python

2014-05-28 Thread Paul Rubin
Larry Martell larry.mart...@gmail.com writes: Somthing I came across in my travels through the ether: [1]https://medium.com/@deliciousrobots/5d2ad703365d/ Python 3 can revive Python https://medium.com/p/2a7af4788b10 long HN comment thread: https://news.ycombinator.com/item?id=7801834 Python

Re: Python 3 is killing Python

2014-05-28 Thread Larry Martell
On Wed, May 28, 2014 at 2:49 PM, Paul Rubin no.email@nospam.invalid wrote: Larry Martell larry.mart...@gmail.com writes: Somthing I came across in my travels through the ether: [1]https://medium.com/@deliciousrobots/5d2ad703365d/ Python 3 can revive Python https://medium.com/p/2a7af4788b10

Re: Python 3 is killing Python

2014-05-28 Thread Chris Angelico
On Thu, May 29, 2014 at 5:58 AM, Larry Martell larry.mart...@gmail.com wrote: No company that I work for is using python 3 - they just have too much of an investment in a python 2 code base to switch. I'm just saying. And that's not a problem. Every whinging blog author seems to forget that

Re: Python 3 is killing Python

2014-05-28 Thread Mark Lawrence
On 28/05/2014 20:58, Larry Martell wrote: On Wed, May 28, 2014 at 2:49 PM, Paul Rubin no.email@nospam.invalid mailto:no.email@nospam.invalid wrote: Larry Martell larry.mart...@gmail.com mailto:larry.mart...@gmail.com writes: Somthing I came across in my travels through the ether:

Re: Command prompt not shown when running Python script with subprocess on Windows

2014-05-28 Thread ps16thypresenceisfullnessofjoy
Thank you for your reply. I think I'll use PyWin32 if it's available on the user's system, and otherwise fall back to using subprocess.Popen, since I want my script to be cross-platform. os.startfile won't work for me because you can't pass arguments to the file being started. (When I first

Re: need help with this code please fix it or at least tell me what im doing wrong

2014-05-28 Thread Ian Kelly
On Wed, May 28, 2014 at 11:32 AM, funky benjaminherna...@gmail.com wrote: while done == False: for event in pygame.event.get(): if event.type == pygame.QUIT: done == True Here is one fairly obvious bug; you used == where you presumably intended to do an assignment. As

Re: Command prompt not shown when running Python script with subprocess on Windows

2014-05-28 Thread ps16thypresenceisfullnessofjoy
Thank you for your replies. I tried what you suggested in your second post and it worked. That was actually a mistake in the app_list.xml file. As you said: app name=LibreOffice Writer%ProgramFiles%\LibreOffice 4\program\swriter.exe C:\Users\Timothy\Documents\myfile.odt/app should instead

passing Python assignment value to shell

2014-05-28 Thread Satish Muthali
Hello Experts, I am trying to extract the available userspace+swap memory and then want to feed this value as an argument to a tool that is executed in the shell. so, this is what I have so far: reecalc = [s.split() for s in os.Popen(free -ht).read().splitlines()] freecalc_total = freecalc[4]

ANN: PyQt v5.3 Released

2014-05-28 Thread Phil Thompson
PyQt5 v5.3 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/download5. PyQt5 is a comprehensive set of bindings for v5 of Digia's Qt cross-platform application framework. It supports Python v3, v2.7 and v2.6. The highlights of this release include support

Re: need help with this code please fix it or at least tell me what im doing wrong

2014-05-28 Thread Mark H Harris
On 5/28/14 12:32 PM, funky wrote: import pygame == a very good place to start import random import time import sys http://www.pygame.org/wiki/tutorials My hourly rate is $295.00 /hour, w/2hour minimum, happy to send you a contract of engagement and a copy of my document of

Re: passing Python assignment value to shell

2014-05-28 Thread John Gordon
In mailman.10422.1401310723.18130.python-l...@python.org Satish Muthali satish.muth...@gmail.com writes: Now I want to feed the value for 'freecalc_total' as an argument to a command executed by the shell. For example: devnull = open(os.devnull, 'w') runCommand =

Python alternative to Google Groups

2014-05-28 Thread Steven Clift
If you are looking for an open source alternative between Google Groups and Mailman, I wanted to share: http://groupserver.org It has recent release and new design. Key is the assumption that any user can publish/reply via email or the web, not just receive email alerts for posting via the

Re: IDE for python

2014-05-28 Thread Ben Finney
Sameer Rathoud sameer.rath...@gmail.com writes: I am new to python. I am currently using python 3.3 Welcome! You're off to a good start, using Python 3 :-) With python I got IDLE, but I am not very comfortable with this. Please suggest, if we have any free ide for python development. What

Re: Python alternative to Google Groups

2014-05-28 Thread Andrew Berg
On 2014.05.28 16:54, Steven Clift wrote: If you are looking for an open source alternative between Google Groups and Mailman, I wanted to share: http://groupserver.org It has recent release and new design. Key is the assumption that any user can publish/reply via email or the web,

Re: Python 3 is killing Python

2014-05-28 Thread Ben Finney
Larry Martell larry.mart...@gmail.com writes: No company that I work for is using python 3 - they just have too much of an investment in a python 2 code base to switch. There are many large companies still using FORTRAN and COBOL because of a large investment in those languages, which are far

Re: Python box (home-use smart router)

2014-05-28 Thread Rhodri James
On Tue, 27 May 2014 08:33:42 +0100, animalize81 animaliz...@gmail.com wrote: Home-use smart router is more and more popular. If Python Software Foundation embeds Python into such router, and develops a framework that has the following features: 1, allow power-down at any time 2, dynamic

Re: IDE for python

2014-05-28 Thread Rhodri James
On Wed, 28 May 2014 14:04:55 +0100, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: My IDE is to have three GUI windows open: * A web browser for searching the Internet. Any browser will do, but I prefer Firefox. * A tabbed editor. I prefer kate (KDE 3 version, not KDE 4), but

Re: Python 3 is killing Python

2014-05-28 Thread Paul Rubin
Ben Finney b...@benfinney.id.au writes: There are many large companies still using FORTRAN and COBOL because of a large investment in those languages, which are far more outdated than Python 2. What's your point? I think some of us see Python 2 as perfectly fine--we've looked into Python 3 and

Re: passing Python assignment value to shell

2014-05-28 Thread Ben Finney
Satish Muthali satish.muth...@gmail.com writes: so, this is what I have so far: Thank you for presenting your code. Please ensure that you post in text only, without transforming the characters from what you typed. Something in your message composition process is currently converting some ‘’

Re: Python alternative to Google Groups

2014-05-28 Thread Ben Finney
Steven Clift s...@publicus.net writes: If you are looking for an open source alternative between Google Groups and Mailman, I wanted to share: http://groupserver.org It has recent release and new design. Thanks. For many of us, an important service is NNTP, offered by GMane and others.

Forking PyPI package

2014-05-28 Thread Wiktor
Hello. There's script pwdhash https://pypi.python.org/pypi/pwdhash.py/0.1.1, which I always* wanted to port to Python 3. (* - well, i.e. 6 months ;-)) I'm using this hashing algorithm quite often for years in my browser (Opera plugin), so I thought that it would be cool to have it as python

Re: Python 3 is killing Python

2014-05-28 Thread Terry Reedy
On 5/28/2014 3:23 PM, Larry Martell wrote: Somthing I came across in my travels through the ether: https://medium.com/@deliciousrobots/5d2ad703365d/ Claim: Python 3 languishes in disuse. Fact: in 2013, there were around 14 million downloads of windows installers for each of 2.7.x and 3.3.x.

Re: IDE for python

2014-05-28 Thread Greg Schroeder
On Wed, 2014-05-28 at 22:55 +1000, Chris Angelico wrote: On Wed, May 28, 2014 at 9:46 PM, Greg Schroeder gmschroe...@gmail.com wrote: Please suggest, if we have any free ide for python development. Anything that writes text is fine. I recommend the standard text editor for your OS

daemon thread cleanup approach

2014-05-28 Thread Carl Banks
Ok, so I have an issue with cleaning up threads upon a unexpected exit. I came up with a solution but I wanted to ask if anyone has any advice or warnings. Basically I am writing a Python library to run certain tasks. All of the calls in the library start worker threads to do the actual work,

Re: Python 3 is killing Python

2014-05-28 Thread Terry Reedy
On 5/28/2014 3:49 PM, Paul Rubin wrote: Larry Martell larry.mart...@gmail.com writes: Somthing I came across in my travels through the ether: [1]https://medium.com/@deliciousrobots/5d2ad703365d/ Python 3 can revive Python https://medium.com/p/2a7af4788b10 This makes the same false claim

Re: Forking PyPI package

2014-05-28 Thread Terry Reedy
On 5/28/2014 8:31 PM, Wiktor wrote: Hello. There's script pwdhash https://pypi.python.org/pypi/pwdhash.py/0.1.1, which I always* wanted to port to Python 3. (* - well, i.e. 6 months ;-)) I'm using this hashing algorithm quite often for years in my browser (Opera plugin), so I thought that

Programmer's text editor, for Python and everything else (was: IDE for python)

2014-05-28 Thread Ben Finney
Greg Schroeder gmschroe...@gmail.com writes: Any gripes against vim with some tweaks? None from me; Vim is a fine programming (and programmable) editor. It is free software, like Python. This is vital for any tool in which one expects to sink an amount of effort. It means no party has

Re: How to run script from interpreter?

2014-05-28 Thread Steven D'Aprano
On Wed, 28 May 2014 11:39:23 -0500, Mark H Harris wrote: On 5/28/14 2:44 AM, onlyvin...@gmail.com wrote: On Friday, January 19, 2001 1:22:23 AM UTC+5:30, Rolander, Dan wrote: What is the best way to run a python script from within the . interpreter?

Re: Python 3 is killing Python

2014-05-28 Thread Steven D'Aprano
On Wed, 28 May 2014 14:58:05 -0500, Larry Martell wrote: On Wed, May 28, 2014 at 2:49 PM, Paul Rubin no.email@nospam.invalid wrote: Larry Martell larry.mart...@gmail.com writes: Somthing I came across in my travels through the ether: [1]https://medium.com/@deliciousrobots/5d2ad703365d/

Re: Python 3 is killing Python

2014-05-28 Thread Stefan Behnel
Terry Reedy, 29.05.2014 02:41: On 5/28/2014 3:23 PM, Larry Martell wrote: Somthing I came across in my travels through the ether: https://medium.com/@deliciousrobots/5d2ad703365d/ Claim: Python 3 languishes in disuse. Fact: in 2013, there were around 14 million downloads of windows

Re: Python 3 is killing Python

2014-05-28 Thread Steven D'Aprano
On Wed, 28 May 2014 20:41:53 -0400, Terry Reedy wrote: Claim: Another great strength of Python 2 was that programs written in it would almost always run on the next version of Python without much alteration. True. True, but only because of the weasel-words almost always, and without much

Re: Python 3 is killing Python

2014-05-28 Thread Paul Rubin
Steven D'Aprano st...@pearwood.info writes: The Python core developers have recent committed to providing security updates for 2.7 until 2020. And Redhat have paid support for 2.7 until 2023. So there's no rush. Perhaps Python 4 will be out by then and the Python 2 holdouts can skip over

Re: passing Python assignment value to shell

2014-05-28 Thread Satish Muthali
Hello Experts, I was able to figure this out after spending time reading the Python help docs. This is what I went about doing: reecalc = [s.split() for s in os.Popen(free -ht).read().splitlines()] freecalc_total = freecalc[4] freecalc_total = freecalc_total[3] freecalc_total =

Re: Python alternative to Google Groups

2014-05-28 Thread Tim Golden
On 28/05/2014 22:54, Steven Clift wrote: If you are looking for an open source alternative between Google Groups and Mailman, I wanted to share: http://groupserver.org It has recent release and new design. Aargh. I hate it when someone does that: posts something so interesting that I

Re: passing Python assignment value to shell

2014-05-28 Thread Cameron Simpson
On 28May2014 21:48, Satish Muthali satish.muth...@gmail.com wrote: This is what I went about doing: reecalc = [s.split() for s in os.Popen(free -ht).read().splitlines()] I think you dropped an f in your cut/paste. Try to be precise. freecalc_total = freecalc[4] freecalc_total =

Re: daemon thread cleanup approach

2014-05-28 Thread Miki Tebeka
Greetings, Ok, so I have an issue with cleaning up threads upon a unexpected exit. What do you mean by unexpected exit? Uncaught exception? SIGTERM? ... Using atexit doesn't work because it's called after the daemon threads are killed. I don't follow. Who is killing the daemon threads?

[issue21197] venv does not create lib64 directory and appropriate symlinks

2014-05-28 Thread Vinay Sajip
Vinay Sajip added the comment: Issue #18807 relates to symlinks not being available, or not being wanted by the user creating the environment. The lib64 symlink is (currently) the only case where we symlink to a directory (in the other cases, such as aliases for the interpreter, we can use

[issue18807] Allow venv to create copies, even when symlinks are supported

2014-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce1b8b2ddf07 by Vinay Sajip in branch '3.4': Issue #18807: If copying (no symlinks) specified for a venv, then the python interpreter aliases (python, python3) are now created by copying rather than symlinking.

[issue18807] Allow venv to create copies, even when symlinks are supported

2014-05-28 Thread Vinay Sajip
Vinay Sajip added the comment: I've made the change - not exactly the same as your patch, which was missing an os.chmod() and doing an unnecessary os.path.join() - but thanks for submitting a patch :-). However, note that on 64-bit Linux systems (actually any POSIX other than OS X) a symlink

[issue21591] exec(a, b, c) not the same as exec a in b, c in nested functions

2014-05-28 Thread Robert Jordens
New submission from Robert Jordens: According to the documentation the exec a in b, c is equivalent to exec(a, b, c). But in the testcase below the tuple form causes a SyntaxError while the statement form works fine. diff -r e770d8c4291c Lib/test/test_compile.py ---

[issue10203] sqlite3.Row doesn't support sequence protocol

2014-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6e2833ae1718 by Serhiy Storchaka in branch '2.7': Issue #10203: sqlite3.Row now truly supports sequence protocol. In particular http://hg.python.org/cpython/rev/6e2833ae1718 New changeset 6af865f1a59d by Serhiy Storchaka in branch '3.4': Issue

[issue10203] sqlite3.Row doesn't support sequence protocol

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Claudiu for your contribution. But please be more careful, your patches contained trailing whitespaces. Thank you Paul for your report. -- resolution: - fixed stage: commit review - resolved status: open - closed

[issue21208] Change default behavior of arguments with type bool when options are specified

2014-05-28 Thread Karl Richter
Karl Richter added the comment: @paul.j3 That's interesting [1]. Documenting argparse.register seems crucial to me (- reopen or file a new request?). After dealing more with the very sophisticated and complex functionality of argparse I'm sure that this is the only use case where such an

[issue5950] Make zipimport work with zipfile containing comments

2014-05-28 Thread Thomas Heller
Thomas Heller added the comment: As for progress, the answer is no as the hope is to eventually replace zipimport with something in pure Python thanks to importlib. Does this mean there is no chance to put this into 3.4 and 3.3, do we really have to wait until 3.5 with it's pure-python

[issue20430] Make argparse.SUPPRESS work as an argument dest

2014-05-28 Thread jzwinck
jzwinck added the comment: Yes, I have a practical need for dest=SUPPRESS. One of the reasons is basically what you said: to implement things analogous to --help. In those cases you want to be able to invoke a function (e.g. via type=myfunc) but not store anything. Or you may need to

[issue21592] Make statistics.median run in linear time

2014-05-28 Thread Thomas Dybdahl Ahle
New submission from Thomas Dybdahl Ahle: The statistics module currently contains the following comment: FIXME: investigate ways to calculate medians without sorting? Quickselect? This is important, because users expect standard library functions to use state of the art implementations, and

[issue21592] Make statistics.median run in linear time

2014-05-28 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +steven.daprano stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21592 ___

[issue5950] Make zipimport work with zipfile containing comments

2014-05-28 Thread Brett Cannon
Brett Cannon added the comment: I actually stopped development of a pure Python zip importer so it won't be in Python 3.5 either (http://bugs.python.org/issue17630). The motivation simply wasn't there if zipimport is going to be sticking around for bootstrapping reasons. This can still get

[issue5950] Make zipimport work with zipfile containing comments

2014-05-28 Thread Peter Otten
Changes by Peter Otten __pete...@web.de: -- nosy: +peter.otten ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5950 ___ ___ Python-bugs-list mailing

[issue3015] tkinter with wantobjects=False has been broken for some time

2014-05-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset c69e8ea3bf10 by Serhiy Storchaka in branch 'default': Issue #3015: _tkinter.create() now creates tkapp object with wantobject=1 by http://hg.python.org/cpython/rev/c69e8ea3bf10 -- ___ Python tracker

[issue3015] tkinter with wantobjects=False has been broken for some time

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Lita Cho, originally reported issue is fixed. I asked Martin (and Guilherme if he is here). Are you agree to close this issue? See issue21585 about extending testing. -- ___ Python tracker rep...@bugs.python.org

[issue21579] Python 3.4: tempfile.close attribute does not work

2014-05-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: OK, O_TMPFILE is not related. But Windows is related. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21579 ___

[issue21593] Clarify re.search documentation first match

2014-05-28 Thread Joshua Landau
New submission from Joshua Landau: The documentation for re.search does not state that it returns the first match. This should be added, or a clarification added if this is implementation-defined. https://docs.python.org/3/library/re.html#re.search --- See also

[issue21592] Make statistics.median run in linear time

2014-05-28 Thread Thomas Dybdahl Ahle
Thomas Dybdahl Ahle added the comment: I have written some proof of concept code here [1], I would appreciate you commenting on it, before I turn it into a patch, as I haven't contributed code to Python before. I have tried to write it as efficiently as possible, but it is of course possible

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-28 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- Removed message: http://bugs.python.org/msg219253 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1683368 ___

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-28 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- Removed message: http://bugs.python.org/msg219255 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1683368 ___

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-28 Thread Guido van Rossum
Guido van Rossum added the comment: If you don't know enough about the base class you shouldn't be subclassing it. In this particular case you should be overriding __init__, not __new__. -- ___ Python tracker rep...@bugs.python.org

  1   2   >