sqlparse 0.1.12

2014-09-22 Thread Andi Albrecht
I'm happy to announce sqlparse 0.1.12. This is a bug fix release. Bug Fixes * Fix handling of NULL keywords in aliased identifiers. * Fix SerializerUnicode to split unquoted newlines (issue131, by Michael Schuller). * Fix handling of modulo operators without spaces (by gavinwahl). Enhancements

ANN: psutil 2.1.2 released

2014-09-22 Thread Giampaolo Rodola'
Hi there folks, I'm pleased to announce the 2.1.2 release of psutil: https://github.com/giampaolo/psutil About = psutil (python system and process utilities) is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, network) in

ANN: Lea 1.3.1 released

2014-09-22 Thread Pierre Denis
Lea, discrete probability distributions in Python = I have the pleasure to announce the release of Lea 1.3.1. NEW: Lea now runs on Python 3 (and still on Python 2.x) ! Lea is a Python package that allows you to define and play with

pytest-xdist-1.11: restarting crash nodes, fixture cache fix

2014-09-22 Thread holger krekel
I just released pytest-xdist-1.11, the distributed testing plugin for pytest. It introduces automatic restarting of crashed nodes, courtesy of a complete PR from Floris Bruynooghe. This also works well together with pytest-timeout by the same author: When one or more test functions hang or

Flake8 Development Has Moved

2014-09-22 Thread Ian Cordasco
Hi all, Flake8 - a linting and style tool that combines pep8, pyflakes, and mccabe - has moved its development off of BitBucket to GitLab. The transition from Mercurial to Git was discussed and took place last weekend. For further information please read this blog post:

devpi-{server-2.1,web-2.2}: upload history, deploy status, groups

2014-09-22 Thread holger krekel
devpi-{server-2.1,web-2.2}: upload history, deploy status, groups == With devpi-server-2.1 and devpi-web-2.2 you'll get a host of fixes and improvements as well as some major new features for the private pypi system: - upload

[RELEASE] Python 3.4.2rc1 is now available

2014-09-22 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm chuffed to announce the availability of Python 3.4.2rc1. Python 3.4.2 has many bugfixes and other small improvements over 3.4.1. One new feature for Mac OS X users: the OS X installers are now distributed as

Re: program to generate data helpful in finding duplicate large files

2014-09-22 Thread bizcor
thanks for the responses. i'm having quite a good time learning python. On Thu, Sep 18, 2014 at 11:45 AM, Chris Kaynor ckay...@zindagigames.com wrote: Additionally, you may want to specify binary mode by using open(file_path, 'rb') to ensure platform-independence ('r' uses Universal

Re: ssl.SSLError: [SSL: BAD_WRITE_RETRY] bad write retry (_ssl.c:1636)

2014-09-22 Thread dieter
Nikolaus Rath nikol...@rath.org writes: Can someone explain help me understand what this exception means? [...] File /usr/local/lib/python3.4/dist-packages/dugong-3.2-py3.4.egg/dugong/__init__.py, line 584, in _co_send len_ = self._sock.send(buf) File /usr/lib/python3.4/ssl.py,

Re: SOAPpy: Expected to find node type 'Element' with name 'CountriesFetchingRequest'; Found node type 'Element' with name 'FetchCountries'

2014-09-22 Thread dieter
vek.m1...@gmail.com writes: I'm messing with SOAP, trying to write a small library to handle stuff I buy from Aramex (shipper). I'm learning XML/SOAP and I'm familiar with RPC from C (Stevens) but no other relevant experience. If this is incredibly dumb just ignore it since I'll probably

Python advice

2014-09-22 Thread ngangsia akumbo
I have learned python for some time now. I am developing apps using django. I need some advice. I want to be able to write big programs using python. I have not been able to do that as of now. I need a way forward on what more free ebooks i can get mt hands on so i can accomplish my goals. I

Re: Python advice

2014-09-22 Thread ngangsia akumbo
PRESENTLY I AM READING A BOOK MASTERING PYTHON ALGORITHMS. IT MAKES MUCH SENSE -- https://mail.python.org/mailman/listinfo/python-list

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread vek . m1234
One thing I noticed with that code was the size of your function, and excessive comments. It reminds me of my bubble_sort.c program in school/college - everything plonked into 'main'. Try writing it like this: 1. #!/usr/bin/python or #!/usr/bin/env python The leading #! is read by the kernel

Re: Python advice

2014-09-22 Thread vek . m1234
1. Python Essential Reference, Python Standard Library by Example/Dive into Python 2. C (K.N.King), C++(Eckel), Python, Make, GCC, Lex/Yacc/Bison, Some HTML/CSS/XML/Javascript/XLTS+Python 3. I don't like Java much - never tried it. -- https://mail.python.org/mailman/listinfo/python-list

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Chris Angelico
On Mon, Sep 22, 2014 at 7:00 PM, vek.m1...@gmail.com wrote: One thing I noticed with that code was the size of your function, and excessive comments. It reminds me of my bubble_sort.c program in school/college - everything plonked into 'main'. Try writing it like this: I'd like to see

Re: pgs4a fails to build

2014-09-22 Thread Mark Lawrence
On 22/09/2014 03:00, aws Al-Aisafa wrote: Yes I've followed and installed everything Please provide some context when you reply and to whom you are replying, thank you. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

face detection

2014-09-22 Thread narayan naik
good evening sir, I am doing my M.Tech project on face detection,I am confused with the face detection algorithm,can you please tell me the simple and best algorithm. -- https://mail.python.org/mailman/listinfo/python-list

Re: Class Inheritance from different module

2014-09-22 Thread Jean-Michel Pichavant
class User(Inheritance from API): def __init__(self, ID): steamapi.core.APIConnection(api_key = KEY) super( Inheritance SteamUser (ID)) # creates the user using the API [...] So that in my code when I need to create a new user, I just call 'usr = User(XXX)' instead of calling

How to not enable a user to close the root tkinter window

2014-09-22 Thread Nicholas Cannon
I have a project I am working on(https://github.com/nicodasiko/Article-Grab) which grabs info from the internet then displays it on the screen. It is a multithreaded program so as the function that retrieves the data from the internet there is also another function running in parallel which

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread vek . m1234
1. It's feedback not a mathematical proof. 2. I hope the OP tries what I suggested - it's all entirely optional. @OP I have no idea what that program does because it's well commented. You aren't using variable and function names to good effect and are resorting to excessive comments.

Re: How to not enable a user to close the root tkinter window

2014-09-22 Thread Chris Angelico
On Mon, Sep 22, 2014 at 9:43 PM, Nicholas Cannon nicholascann...@gmail.com wrote: Or can I safely stop the running threads and make them drop everything error free? This would be what I'd recommend. If someone wants to close your program, s/he should be allowed to - imagine if internet traffic

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread vek . m1234
https://github.com/Veek/Python/blob/master/IRC/Hexchat/fake_ctcp.py that's not too bad as far as readability is concerned and it's bereft of all comments {:p -- https://mail.python.org/mailman/listinfo/python-list

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Chris Angelico
On Mon, Sep 22, 2014 at 9:47 PM, vek.m1...@gmail.com wrote: 1. It's feedback not a mathematical proof. 2. I hope the OP tries what I suggested - it's all entirely optional. Doesn't change the fact that you need to justify your recommendations, at least when they're not obvious. You're

Re: Class Inheritance from different module

2014-09-22 Thread Jean-Michel Pichavant
- Original Message - From: Jean-Michel Pichavant jeanmic...@sequans.com To: Juan Christian juan0christ...@gmail.com Cc: Python python-list@python.org Sent: Monday, 22 September, 2014 1:37:41 PM Subject: Re: Class Inheritance from different module class User(Inheritance from

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Chris Angelico
On Mon, Sep 22, 2014 at 10:00 PM, vek.m1...@gmail.com wrote: https://github.com/Veek/Python/blob/master/IRC/Hexchat/fake_ctcp.py that's not too bad as far as readability is concerned and it's bereft of all comments {:p Sure, I can work out what it's doing without comments. Doesn't mean

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Larry Martell
On Mon, Sep 22, 2014 at 8:23 AM, Chris Angelico ros...@gmail.com wrote: So, comments would definitely help. In some cases, would help a lot. This is me: http://xkcd.com/1421/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Nicholas Cannon
Ok I'm confused. Do I need to do better comments? I know the text is not that great but that is my next obstacle I am going to tackle. I mostly need to know where I am going wrong such as what is expectable readable code and what is not and how to fix this. This is good feedback thanks to all

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Nicholas Cannon
Also I have just been coding for about and hour and a half and added a lot more code to it but it is not fully finished yet so it is not on github yet. -- https://mail.python.org/mailman/listinfo/python-list

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Chris Angelico
On Mon, Sep 22, 2014 at 11:02 PM, Larry Martell larry.mart...@gmail.com wrote: On Mon, Sep 22, 2014 at 8:23 AM, Chris Angelico ros...@gmail.com wrote: So, comments would definitely help. In some cases, would help a lot. This is me: http://xkcd.com/1421/ Also me. I have apologized to my

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Chris Angelico
On Mon, Sep 22, 2014 at 11:17 PM, Nicholas Cannon nicholascann...@gmail.com wrote: Ok I'm confused. Do I need to do better comments? I know the text is not that great but that is my next obstacle I am going to tackle. I mostly need to know where I am going wrong such as what is expectable

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread vek . m1234
@Chris, Hi, I don't like your style of posting - please kill file me. @Everybody else - I don't like Chris and his style of posting (overuse of the 'troll' word and perceived aggression). I shall be ignoring him for a year (barring an emergency). Good communication demands that I announce this.

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread C Smith
I wouldn't take it personally, just defend your position. I think that is what he is looking for. We are all adults here (maybe?). You guys should be able to work it out. A tangential skill to programming is being able to give and take criticism well, even if you think it crosses the line. On

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Chris Angelico
On Mon, Sep 22, 2014 at 11:48 PM, C Smith illusiontechniq...@gmail.com wrote: I wouldn't take it personally, just defend your position. I think that is what he is looking for. We are all adults here (maybe?). You guys should be able to work it out. A tangential skill to programming is being

[RELEASE] Python 3.4.2rc1 is now available

2014-09-22 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm chuffed to announce the availability of Python 3.4.2rc1. Python 3.4.2 has many bugfixes and other small improvements over 3.4.1. One new feature for Mac OS X users: the OS X installers are now distributed as

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Jean-Michel Pichavant
- Original Message - From: Chris Angelico ros...@gmail.com Cc: python-list@python.org Sent: Saturday, 20 September, 2014 4:58:44 PM Subject: Re: Love to get some feedback on my first python app!!! [snip] #search API rawData =

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Joel Goldstick
On Mon, Sep 22, 2014 at 10:32 AM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: - Original Message - From: Chris Angelico ros...@gmail.com Cc: python-list@python.org Sent: Saturday, 20 September, 2014 4:58:44 PM Subject: Re: Love to get some feedback on my first python app!!!

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Chris Angelico
On Tue, Sep 23, 2014 at 12:32 AM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: For instance: cells = ['a', 'b' 'c'] # print the first cell print cell[1] A bug that is easily spotted thanks to the comment. It's all about implementation versus intentions. Also note that comment

Re: [python-committers] [RELEASE] Python 3.4.2rc1 is now available

2014-09-22 Thread Victor Stinner
Someone broke test_pydoc. Example: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.4/builds/481/steps/test/logs/stdio Victor 2014-09-22 16:15 GMT+02:00 Larry Hastings la...@hastings.org: On behalf of the Python development community and the Python 3.4 release team, I'm

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread vek . m1234
@CSmith Hi, I'm sorry, I wish I could acquiesce but I think it's better for me to stay clear. There's criticism, and there's name calling ('dim' 'troll'). Reiterating what I said earlier, if the OP wants clarification he can ask for it. -- https://mail.python.org/mailman/listinfo/python-list

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread alister
On Mon, 22 Sep 2014 16:32:27 +0200, Jean-Michel Pichavant wrote: - Original Message - From: Chris Angelico ros...@gmail.com Cc: python-list@python.org Sent: Saturday, 20 September, 2014 4:58:44 PM Subject: Re: Love to get some feedback on my first python app!!! [snip] #search

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Jean-Michel Pichavant
- Original Message - From: Chris Angelico ros...@gmail.com Cc: python-list@python.org Sent: Monday, 22 September, 2014 4:50:15 PM Subject: Re: Love to get some feedback on my first python app!!! On Tue, Sep 23, 2014 at 12:32 AM, Jean-Michel Pichavant jeanmic...@sequans.com wrote:

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Chris Angelico
On Tue, Sep 23, 2014 at 1:52 AM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: The code I posted had many bugs but one could not be fixed without the comment. Or at least there's an obvious discrepancy between the comment and the code that should catch the reader's attention. The

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Mark Lawrence
On 22/09/2014 12:47, vek.m1...@gmail.com wrote: 1. It's feedback not a mathematical proof. What is? 2. I hope the OP tries what I suggested - it's all entirely optional. Which is? @OP I have no idea what that program does because it's well commented. You aren't using variable and

Re: face detection

2014-09-22 Thread Denis McMahon
On Mon, 22 Sep 2014 15:29:58 +0530, narayan naik wrote: good evening sir, I am doing my M.Tech project on face detection,I am confused with the face detection algorithm,can you please tell me the simple and best algorithm.

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Chris Angelico
On Tue, Sep 23, 2014 at 2:10 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: Google groups rides again? Yeah. And now someone from Google Groups has killfiled me. So it's up to you to request/recommend alternatives, s/he won't see me saying so. ChrisA --

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Mark Lawrence
On 22/09/2014 14:35, vek.m1...@gmail.com wrote: @Chris, Hi, I don't like your style of posting - please kill file me. @Everybody else - I don't like Chris and his style of posting (overuse of the 'troll' word and perceived aggression). I shall be ignoring him for a year (barring an

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Mark Lawrence
On 22/09/2014 14:48, C Smith wrote: I wouldn't take it personally, just defend your position. I think that is what he is looking for. We are all adults here (maybe?). You guys should be able to work it out. A tangential skill to programming is being able to give and take criticism well, even if

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Chris Angelico
On Tue, Sep 23, 2014 at 2:17 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: And ignore Chris at your peril, he knows a fair bit about Python. Sure he gets things wrong, but the only person who never gets things wrong is the person who never does anything. Thanks :) I don't mind being

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Mark Lawrence
On 22/09/2014 13:00, vek.m1...@gmail.com wrote: https://github.com/Veek/Python/blob/master/IRC/Hexchat/fake_ctcp.py that's not too bad as far as readability is concerned and it's bereft of all comments {:p Definitely googlegroups rides again. -- My fellow Pythonistas, ask not what our

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Mark Lawrence
On 22/09/2014 14:17, Nicholas Cannon wrote: Ok I'm confused. Do I need to do better comments? I know the text is not that great but that is my next obstacle I am going to tackle. I mostly need to know where I am going wrong such as what is expectable readable code and what is not and how to

Comparison

2014-09-22 Thread LJ
Hi All, Quick question here. In the code I am working on I am apparently doing a lot of dictionary lookups and those are taking a lot of time. I looked at the possibility of changing the structure and I found about the numpy structured arrays. The concrete question is: what would be the

Re: Comparison

2014-09-22 Thread Chris Angelico
On Tue, Sep 23, 2014 at 2:57 AM, LJ luisjoseno...@gmail.com wrote: Quick question here. In the code I am working on I am apparently doing a lot of dictionary lookups and those are taking a lot of time. I looked at the possibility of changing the structure and I found about the numpy

Re: Comparison

2014-09-22 Thread LJ
On Monday, September 22, 2014 1:12:23 PM UTC-4, Chris Angelico wrote: On Tue, Sep 23, 2014 at 2:57 AM, LJ luisjoseno...@gmail.com wrote: Quick question here. In the code I am working on I am apparently doing a lot of dictionary lookups and those are taking a lot of time. I looked at

Re: Comparison

2014-09-22 Thread Chris Angelico
On Tue, Sep 23, 2014 at 3:38 AM, LJ luisjoseno...@gmail.com wrote: At some point in my algorithm I am looping through some subset of nodes and through the labels in each node and I perform some joining checks with the labels of each node in another subset of nodes. To clarify I check for a

Pyrolite, lightweight pickle and pyro client library, seeking a bit of testing help

2014-09-22 Thread Irmen de Jong
Hi, I've developed Pyrolite (https://github.com/irmen/Pyrolite), a lightweight client library for Java and .NET to gain access to Python servers running Pyro. As such it also contains a complete pickle and unpickle implementation in these languages. Quite recently I got a pull request to fix a

Re: Pyrolite, lightweight pickle and pyro client library, seeking a bit of testing help

2014-09-22 Thread Chris Angelico
On Tue, Sep 23, 2014 at 3:47 AM, Irmen de Jong irmen.nos...@xs4all.nl wrote: I've developed Pyrolite (https://github.com/irmen/Pyrolite), a lightweight client library for Java and .NET to gain access to Python servers running Pyro. As such it also contains a complete pickle and unpickle

Re:Python advice

2014-09-22 Thread Dave Angel
ngangsia akumbo ngang...@gmail.com Wrote in message: I have learned python for some time now. I am developing apps using django. I need some advice. I want to be able to write big programs using python. I have not been able to do that as of now. Define'big'. I could write a 25 line

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Chris Kaynor
On Mon, Sep 22, 2014 at 8:52 AM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Anyway it's seems we agree anyway because your example perfectly illustrate what I was trying to demonstrate: print(cells[2]) is very easy to understand, most of people would say 'no need of any comment'. I

Re: Pyrolite, lightweight pickle and pyro client library, seeking a bit of testing help

2014-09-22 Thread Irmen de Jong
On 22-9-2014 19:53, Chris Angelico wrote: On Tue, Sep 23, 2014 at 3:47 AM, Irmen de Jong irmen.nos...@xs4all.nl wrote: I've developed Pyrolite (https://github.com/irmen/Pyrolite), a lightweight client library for Java and .NET to gain access to Python servers running Pyro. As such it also

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Chris Angelico
On Tue, Sep 23, 2014 at 4:24 AM, Chris Kaynor ckay...@zindagigames.com wrote: On Mon, Sep 22, 2014 at 8:52 AM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Anyway it's seems we agree anyway because your example perfectly illustrate what I was trying to demonstrate: print(cells[2]) is

Re: Pyrolite, lightweight pickle and pyro client library, seeking a bit of testing help

2014-09-22 Thread Chris Angelico
On Tue, Sep 23, 2014 at 4:23 AM, Irmen de Jong irmen.nos...@xs4all.nl wrote: This is why Pyro has been using a different (and safe) serializer by default for a while now. You have to plow through the usual security warnings in the docs and make a conscious effort in your code to enable the

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread Jean-Michel Pichavant
Original Message - From: Chris Angelico ros...@gmail.com Cc: python-list@python.org Sent: Monday, 22 September, 2014 6:04:43 PM Subject: Re: Love to get some feedback on my first python app!!! On Tue, Sep 23, 2014 at 1:52 AM, Jean-Michel Pichavant jeanmic...@sequans.com wrote:

Re: face detection

2014-09-22 Thread Gary Herron
On 09/22/2014 02:59 AM, narayan naik wrote: good evening sir, I am doing my M.Tech project on face detection,I am confused with the face detection algorithm,can you please tell me the simple and best algorithm. No, sorry, but this newsgroup is about Python (a

Re: Python advice

2014-09-22 Thread Chris Kaynor
On Mon, Sep 22, 2014 at 11:03 AM, Dave Angel da...@davea.name wrote: I need a way forward on what more free ebooks i can get mt hands on so i can accomplish my goals. I need some advice. should i go on to learn other languages like java or c++ cos i want to be able to using all these

Re: program to generate data helpful in finding duplicate large files

2014-09-22 Thread random832
On Thu, Sep 18, 2014, at 14:45, Chris Kaynor wrote: Additionally, you may want to specify binary mode by using open(file_path, 'rb') to ensure platform-independence ('r' uses Universal newlines, which means on Windows, Python will convert \r\n to \n while reading the file). Additionally, some

Re: Python advice

2014-09-22 Thread Ian Kelly
On Mon, Sep 22, 2014 at 1:00 PM, Chris Kaynor ckay...@zindagigames.com wrote: Python is pretty good base-line language. It is really good as a glue language to piece together other components, or for IO-bound or user-bound code, but will not preform well enough for many other applications such

Re: program to generate data helpful in finding duplicate large files

2014-09-22 Thread Chris Kaynor
I went and looked up the PEPs regarding universal new-lines, and it seems it would be platform-independent - all of \r\n, \r, and \n will always be converted to \n in Python, unless explicitly modified on the file object (or Universal newlines are disabled). It still stands that for platform

Re: Python advice

2014-09-22 Thread Chris Kaynor
On Mon, Sep 22, 2014 at 12:39 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Mon, Sep 22, 2014 at 1:00 PM, Chris Kaynor ckay...@zindagigames.com wrote: Python is pretty good base-line language. It is really good as a glue language to piece together other components, or for IO-bound or

Re: [python-committers] [RELEASE] Python 3.4.2rc1 is now available

2014-09-22 Thread Larry Hastings
On 09/22/2014 03:58 PM, Victor Stinner wrote: Someone broke test_pydoc. Example: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.4/builds/481/steps/test/logs/stdio I broke it while making the release. Known bug, happened before, for 3.4.1rc1.

Re: program to generate data helpful in finding duplicate large files

2014-09-22 Thread Terry Reedy
On 9/22/2014 3:34 PM, random...@fastmail.us wrote: On Thu, Sep 18, 2014, at 14:45, Chris Kaynor wrote: Additionally, you may want to specify binary mode by using open(file_path, 'rb') to ensure platform-independence ('r' uses Universal newlines, which means on Windows, Python will convert \r\n

Re: Python advice

2014-09-22 Thread Chris Angelico
On Tue, Sep 23, 2014 at 5:00 AM, Chris Kaynor ckay...@zindagigames.com wrote: As a rule-of-thumb I'd recommend sticking to one or two high-level languages until you are reasonably comfortable with them, then possibly branching to other languages. As you've already started with Python, I'd

Re: very lightweight gui for win32 + python 3.4

2014-09-22 Thread Tim Roberts
Wolfgang Keller felip...@gmx.net wrote: wxPython and Qt are well known but they are not exactly lightweight. wxPython not lightweight? It's just a wrapper of win32. That's not really accurate. wxWidgets does expose the Win32 APIs, but the wrapping is not all that transparent. And wxPython

Re: Love to get some feedback on my first python app!!!

2014-09-22 Thread alex23
On 23/09/2014 4:25 AM, Chris Angelico wrote: On Tue, Sep 23, 2014 at 4:24 AM, Chris Kaynor ckay...@zindagigames.com wrote: But the thing that requires the comment is the 2, not the print or the cells. And that comes to a more common issue: any number other than 0 or 1 in code most likely needs

Re: How to not enable a user to close the root tkinter window

2014-09-22 Thread Nicholas Cannon
The git hub has not actually been updated yet I am working on somethine else then committing the update. How would I stop the threads though. I'am using the Thread from threading function. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to not enable a user to close the root tkinter window

2014-09-22 Thread Chris Angelico
On Tue, Sep 23, 2014 at 3:49 PM, Nicholas Cannon nicholascann...@gmail.com wrote: The git hub has not actually been updated yet I am working on somethine else then committing the update. How would I stop the threads though. I'am using the Thread from threading function. Ah, okay. (Side

[issue22458] Add fractions benchmark

2014-09-22 Thread Stefan Behnel
New submission from Stefan Behnel: Fractions are great for all sorts of exact computations (including money/currency calculations), but are quite slow due to the need for normalisation at instantiation time. I adapted the existing telco benchmark to use Fraction instead of Decimal to make

[issue22457] load_tests not invoked in root __init__.py when start=package root

2014-09-22 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ezio.melotti, michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22457 ___ ___

[issue22458] Add fractions benchmark

2014-09-22 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22458 ___ ___

[issue22278] urljoin duplicate slashes

2014-09-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: I addressed Antoine's comments with the patch and committed it. Thank you! -- assignee: - orsenthil resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue22118] urljoin fails with messy relative URLs

2014-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 901e4e52b20a by Senthil Kumaran in branch 'default': Issue #22278: Fix urljoin problem with relative urls, a regression observed https://hg.python.org/cpython/rev/901e4e52b20a -- ___ Python tracker

[issue22278] urljoin duplicate slashes

2014-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 901e4e52b20a by Senthil Kumaran in branch 'default': Issue #22278: Fix urljoin problem with relative urls, a regression observed https://hg.python.org/cpython/rev/901e4e52b20a -- nosy: +python-dev ___

[issue22458] Add fractions benchmark

2014-09-22 Thread Stefan Behnel
Stefan Behnel added the comment: I just thought that it might also be nice to have a direct comparison with Decimal, so here's an updated benchmark that has an option --use-decimal to run the same code with Decimal instead of Fraction. Decimal is about 66x faster with Py3.4 on my side (due to

[issue22459] str.strip() documentation: wrong example

2014-09-22 Thread SebKL
New submission from SebKL: The following example is wrong: https://docs.python.org/3.4/library/stdtypes.html?highlight=split#str.split '1,2,3'.split(',', maxsplit=1) ['1', '2 3'] Is actually returning (note the missing , ): '1,2,3'.split(',', maxsplit=1) ['1', '2,3'] -- assignee:

[issue22459] str.strip() documentation: wrong example

2014-09-22 Thread Raúl Cumplido
Raúl Cumplido added the comment: As it is a simple one I will try to submit a patch today or tomorrow. This will be my first contribution to Python. -- nosy: +raulcd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22459

[issue12006] strptime should implement %V or %u directive from libc

2014-09-22 Thread Alex Willmer
Alex Willmer added the comment: Alexander, http://bugs.python.org/file36417/12006_3.5_complete.patch updates the previous patches and is ready for review. Unit tests pass as of today. Regards, Alex W. -- nosy: +Alex.Willmer ___ Python tracker

[issue22460] idle editor: replace all in selection

2014-09-22 Thread bagrat lazaryan
New submission from bagrat lazaryan: say, for renaming a variable in a block of code, or in a function, or renaming a method name in a class, etc. nothing fancy here, a button in the replace dialog will do. i think the proposed functionality is needed much more often than the currently

[issue22433] Argparse considers unknown optional arguments with spaces as a known positional argument

2014-09-22 Thread Денис Кореневский
Денис Кореневский added the comment: There is an standard way to solve this ambiguity. There is a special marker '--' used to force argument parsing function treat all arguments given in command after this marker as positional arguments. It was invented specially for tasks where you need to

[issue22445] Memoryviews require more strict contiguous checks then necessary

2014-09-22 Thread Stefan Krah
Stefan Krah added the comment: Since the functions in abstract.c have been committed by Travis Oliphant: Could there have been a reason why the {shape=[1], strides=[-5]} case was considered but the general case was not? Or is it generally accepted among the numpy devs that not considering the

[issue22445] Memoryviews require more strict contiguous checks then necessary

2014-09-22 Thread Sebastian Berg
Sebastian Berg added the comment: Yeah, the code does much the same as the old numpy code (at least most of the same funny little things, though I seem to remember the old numpy code had something yet a bit weirder, would have to check). To be honest, I do not know. It isn't implausible that

[issue22458] Add fractions benchmark

2014-09-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Where are Fractions used in the real world? -- nosy: +pitrou, skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22458 ___

[issue22458] Add fractions benchmark

2014-09-22 Thread Stefan Behnel
Stefan Behnel added the comment: As I said, where ever exact calculations are needed. I use them for currency calculations, for example, as they inherently avoid rounding errors during the calculations regardless of the relative size of values. They are basically like Decimal but with

[issue22458] Add fractions benchmark

2014-09-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 22/09/2014 14:51, Stefan Behnel a écrit : I use them for currency calculations, for example, as they inherently avoid rounding errors during the calculations regardless of the relative size of values. Do other people use them for that purpose, or are

[issue22461] Test failure: Lib/test/test_pydoc.py line 851, topic?key=def

2014-09-22 Thread Larry Hastings
New submission from Larry Hastings: I get a test failure in the regression test suite. This appears to be the important bit: Traceback (most recent call last): File /tmp/Python-3.4.2rc1/Lib/test/test_pydoc.py, line 851, in test_url_requests self.assertEqual(result, title,

[issue22461] Test failure: Lib/test/test_pydoc.py line 851, topic?key=def

2014-09-22 Thread Georg Brandl
Georg Brandl added the comment: I have no idea about that code, and I can't reproduce the failure. (Could the buildbots?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22461 ___

[issue22458] Add fractions benchmark

2014-09-22 Thread Stefan Behnel
Stefan Behnel added the comment: I admit that I keep meeting developers who are not aware of their merits, simply because many other programming languages don't have them available. Specifically, many developers with a Java background firmly believe that BigDecimal is the only way to do money

[issue22461] Test failure: Lib/test/test_pydoc.py line 851, topic?key=def

2014-09-22 Thread R. David Murray
R. David Murray added the comment: I can't reproduce it either, and none of the failing stable buildbots show this error. Unfortunately we can only look at tip since we can't see your tag yet. But I doubt that's the issue...the last commit to pydoc or its tests was on the 17th, and was a

[issue22461] Test failure: Lib/test/test_pydoc.py line 851, topic?key=def

2014-09-22 Thread Larry Hastings
Larry Hastings added the comment: FWIW, 3.4.2rc1 is based on 7af0315bdfe0. (The release process creates a couple additional changesets.) The failure is on my laptop, Ubuntu 14.04 x64. -- ___ Python tracker rep...@bugs.python.org

[issue22461] Test failure: Lib/test/test_pydoc.py line 851, topic?key=def

2014-09-22 Thread R. David Murray
R. David Murray added the comment: No failure running test_pydoc for me on gentoo linux with that changeset. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22461 ___

[issue22278] urljoin duplicate slashes

2014-09-22 Thread Demian Brecht
Demian Brecht added the comment: Heh, I'd finally gotten a few minutes to address the comments... And it's already taken care of ;) Thanks Senthil. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22278

[issue12006] strptime should implement %V or %u directive from libc

2014-09-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I find this footnote somewhat confusing: (8) Similar to %U and %W, %V is only used in calculations when the day of the week and the ISO year (%G) are specified when used with the strptime method. The existing footnote (7) is much clearer: (7) When

  1   2   >