Re: How keep Python 3 moving forward

2014-05-25 Thread wxjmfauth
Le dimanche 25 mai 2014 02:27:11 UTC+2, Terry Reedy a écrit : On 5/24/2014 3:49 PM, Marko Rauhamaa wrote: Few people have Python 3 as an objective. What I'm saying is that if Python 3 had something everybody wants and nothing else provides, the people will come, even the legacy

WSGI (was: Re: Python CGI)

2014-05-25 Thread Christian
On 05/20/2014 03:52 AM, Tim Chase wrote: While Burak addressed your (Fast-)CGI issues, once you have a test-script successfully giving you output, you can use the standard-library's getpass.getuser() function to tell who your script is running as. LoadModule wsgi_module modules/mod_wsgi.so

Re: Make Python Compilable, convert to Python source to Go

2014-05-25 Thread wxjmfauth
My opinions about Go. i) go build XXX that creates an exe, one can put on a usb stick and run (distribute) it, is a feature hard to beat. I do not know, if it will be rendered correctly. D:\jm\jmgohello3.exe ASCII abcde xyz Germanäöü ÄÖÜ ß Polishąęźżńł Russian абвгдеж эюя CJK

WSGI (was: Re: Python CGI)

2014-05-25 Thread Chris
On 05/20/2014 03:52 AM, Tim Chase wrote: While Burak addressed your (Fast-)CGI issues, once you have a test-script successfully giving you output, you can use the standard-library's getpass.getuser() function to tell who your script is running as. LoadModule wsgi_module modules/mod_wsgi.so

Re: Make Python Compilable, convert to Python source to Go

2014-05-25 Thread bookaa bookaa
On Sunday, May 25, 2014 12:47:27 PM UTC+8, Chris Angelico wrote: On Sun, May 25, 2014 at 1:06 PM, bookaa wrote: This tool can be called 'Python to GoLang', which translate Python source to Golang source. And then you can compile the Go files to executable binary. (btw: Go is a new

compiled cx_freeze

2014-05-25 Thread Nagy László Zsolt
Anyone knows where to get a compiled cx_freeze that has already has this patch? http://hg.python.org/cpython/rev/7d20e30bd540 https://bitbucket.org/anthony_tuininga/cx_freeze/issue/81/python-34-venv-importlib-attributeerror The installer on the sourceforge site still has this bug. :-( I don't

Re: Make Python Compilable, convert to Python source to Go

2014-05-25 Thread Chris Angelico
On Sun, May 25, 2014 at 6:17 PM, bookaa bookaa rors...@gmail.com wrote: 1) How compatible is your Python-to-Golang converter with all the nuances of Python code? Does it work perfectly on any arbitrary Python script? And, what version of Python is it aimed at? I try to support all Python

Re: How keep Python 3 moving forward - suds Python 3

2014-05-25 Thread Jurko Gospodnetić
Hi Roy. On 24.5.2014. 1:57, Roy Smith wrote: You need 19 projects to transition to Python 3. Of those 19 projects, 17 have no direct dependencies blocking their transition: [...snipped...] suds That's a big list. A few of those we could probably work around or replace with a different

Re: How keep Python 3 moving forward

2014-05-25 Thread Stefan Behnel
Roy Smith, 24.05.2014 01:57: I installed and ran caniusepython3. It tells me: Finding and checking dependencies ... [WARNING] rpclib not found You need 19 projects to transition to Python 3. Of those 19 projects, 17 have no direct dependencies blocking their transition: beanstalkc

Re: Make Python Compilable, convert to Python source to Go

2014-05-25 Thread Stefan Behnel
bookaa bookaa, 25.05.2014 10:17: I think the significance of Python to Go, is it give us opportunity to make Python project run fast. You shouldn't make that your only goal, because you'll have a really hard time achieving it (to put it mildly). Stefan --

Re: WSGI (was: Re: Python CGI)

2014-05-25 Thread alister
On Sun, 25 May 2014 09:06:18 +0200, Chris wrote: On 05/20/2014 03:52 AM, Tim Chase wrote: While Burak addressed your (Fast-)CGI issues, once you have a test-script successfully giving you output, you can use the standard-library's getpass.getuser() function to tell who your script is running

Re: compiled cx_freeze

2014-05-25 Thread Никола Вукосављевић
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25.5.2014 10:11, Nagy László Zsolt wrote: Anyone knows where to get a compiled cx_freeze that has already has this patch? http://hg.python.org/cpython/rev/7d20e30bd540

Re: Make Python Compilable, convert to Python source to Go

2014-05-25 Thread Mark Lawrence
On 25/05/2014 09:17, bookaa bookaa wrote: Maybe I will work on Python 3 later. That's good to know, it'll save me wasting my time looking at it now. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is

Re: Make Python Compilable, convert to Python source to Go

2014-05-25 Thread mm0fmf
On 25/05/2014 11:24, Mark Lawrence wrote: On 25/05/2014 09:17, bookaa bookaa wrote: Maybe I will work on Python 3 later. That's good to know, it'll save me wasting my time looking at it now. OT: Mark, you've been pro-Python3 enough in your recent postings you have forced me to act. I've

Re: Make Python Compilable, convert to Python source to Go

2014-05-25 Thread Mark Lawrence
On 25/05/2014 12:02, mm0fmf wrote: On 25/05/2014 11:24, Mark Lawrence wrote: On 25/05/2014 09:17, bookaa bookaa wrote: Maybe I will work on Python 3 later. That's good to know, it'll save me wasting my time looking at it now. OT: Mark, you've been pro-Python3 enough in your recent

os.stat and time zones

2014-05-25 Thread Nagy László Zsolt
This might be a silly question. Documentation of os.stat: The exact meaning and resolution of the st_atime, st_mtime, and st_ctime attributes depend on the operating system and the file system. For example, on Windows systems using the FAT or FAT32 file systems, st_mtime has 2-second

Re: Numpy Array of Sets

2014-05-25 Thread LJ
Wolfgang, thank you very much for your reply. Following the example in the link, the problem appears: A = [[0]*2]*3 A [[0, 0], [0, 0], [0, 0]] A[0][0] = 5 A [[5, 0], [5, 0], [5, 0]] Now, if I use a numpy array: d=array([[0]*2]*3) d array([[0, 0], [0, 0], [0, 0]]) d[0][0]=5

Loop thru the dictionary with tuples

2014-05-25 Thread Igor Korot
Hi, ALL, I have a following data structure: my_dict[(var1,var2,var3)] = None my_dict[(var4,var5,var6)] = 'abc' What I'm trying to do is this: for (key,value) in my_dict: #Do some stuff but I'm getting an error Too many values to unpack. What am I doing wrong? Thank you. --

RE: compiled cx_freeze

2014-05-25 Thread Joseph L. Casale
Anyone knows where to get a compiled cx_freeze that has already has this patch? http://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_freeze -- https://mail.python.org/mailman/listinfo/python-list

Re: Loop thru the dictionary with tuples

2014-05-25 Thread Paul Rubin
Igor Korot ikoro...@gmail.com writes: for (key,value) in my_dict: #Do some stuff but I'm getting an error Too many values to unpack. Use for (key,value) in mydict.iteritems(): ... otherwise you loop through just the keys, whicn in your dictionary happens to be 3-tuples. So you try

Re: Loop thru the dictionary with tuples

2014-05-25 Thread Tim Chase
On 2014-05-25 05:59, Paul Rubin wrote: Igor Korot ikoro...@gmail.com writes: for (key,value) in my_dict: #Do some stuff but I'm getting an error Too many values to unpack. Use for (key,value) in mydict.iteritems(): ... You can even use for ((k1,k2,k3), value) in

Re: Loop thru the dictionary with tuples

2014-05-25 Thread Roy Smith
In article mailman.10291.1401022510.18130.python-l...@python.org, Igor Korot ikoro...@gmail.com wrote: for (key,value) in my_dict: #Do some stuff but I'm getting an error Too many values to unpack. Several people have already given you the right answer, so I'll just suggest a general

Re: Numpy Array of Sets

2014-05-25 Thread Peter Otten
LJ wrote: Wolfgang, thank you very much for your reply. Following the example in the link, the problem appears: A = [[0]*2]*3 You can see this as a shortcut for value = 0 inner = [value, value] A = [inner, inner, inner] When the value is mutable (like your original set) a modification

Re: compiled cx_freeze

2014-05-25 Thread Nagy László Zsolt
Anyone knows where to get a compiled cx_freeze that has already has this patch? http://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_freeze Unfortunately, this is buggy too. Here is a test output from a compiled console exe created with the above version of cx freeze: Traceback (most recent call

Re: Loop thru the dictionary with tuples

2014-05-25 Thread Ned Batchelder
On 5/25/14 8:55 AM, Igor Korot wrote: Hi, ALL, I have a following data structure: my_dict[(var1,var2,var3)] = None my_dict[(var4,var5,var6)] = 'abc' What I'm trying to do is this: for (key,value) in my_dict: #Do some stuff but I'm getting an error Too many values to unpack. What am I

Re: Loop thru the dictionary with tuples

2014-05-25 Thread Chris Angelico
On Sun, May 25, 2014 at 11:22 PM, Roy Smith r...@panix.com wrote: Hint: in this case, it will happen on the assignment line, so, your next step is to print everything out and see what's going on: for thing in my_dict: print thing (key, value) = thing Aside: I know that you (Roy)

Re: Numpy Array of Sets

2014-05-25 Thread LJ
Thank you for the reply. So, as long as I access and modify the elements of, for example, A=array([[set([])]*4]*3) as (for example): a[0][1] = a[0][1] | set([1,2]) or: a[0][1]=set([1,2]) then I should have no problems? -- https://mail.python.org/mailman/listinfo/python-list

RE: compiled cx_freeze

2014-05-25 Thread Joseph L. Casale
Unfortunately, this is buggy too. Here is a test output from a compiled console exe created with the above version of cx freeze: Let Christoph know, he is very responsive and extremely helpful. -- https://mail.python.org/mailman/listinfo/python-list

Re: Numpy Array of Sets

2014-05-25 Thread Peter Otten
LJ wrote: Thank you for the reply. So, as long as I access and modify the elements of, for example, A=array([[set([])]*4]*3) as (for example): a[0][1] = a[0][1] | set([1,2]) or: a[0][1]=set([1,2]) then I should have no problems? As long as you set (i. e. replace) elements

Re: Numpy Array of Sets

2014-05-25 Thread LJ
Thank you very much! -- https://mail.python.org/mailman/listinfo/python-list

Re: How keep Python 3 moving forward

2014-05-25 Thread Ethan Furman
On 05/24/2014 11:43 PM, wxjmfa...@gmail.com wrote: Python and unicode: a buggy hobbyist toy. Voilà. Nothing either good or bad. I thought this was a moderated list. What exactly are the moderators doing? -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list

Re: How keep Python 3 moving forward

2014-05-25 Thread Chris Angelico
On Mon, May 26, 2014 at 1:21 AM, Ethan Furman et...@stoneleaf.us wrote: On 05/24/2014 11:43 PM, wxjmfa...@gmail.com wrote: Python and unicode: a buggy hobbyist toy. Voilà. Nothing either good or bad. I thought this was a moderated list. What exactly are the moderators doing? It's not a

How to pass variable through scipts

2014-05-25 Thread dimmaim
My code has this structure: class Example(wx.Frame,listmix.ColumnSorterMixin): def __init__(self,parent): wx.Frame.__init__(self,parent) self.InitUI() def InitUI(self): . some other functions and other stuff when a button is clicked this function is called and i

Re: How keep Python 3 moving forward

2014-05-25 Thread Mark Lawrence
On 25/05/2014 16:21, Ethan Furman wrote: On 05/24/2014 11:43 PM, wxjmfa...@gmail.com wrote: Python and unicode: a buggy hobbyist toy. Voilà. Nothing either good or bad. I thought this was a moderated list. What exactly are the moderators doing? -- ~Ethan~ I don't think the list is

testfixtures 3.1.0 Released!

2014-05-25 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 3.1.0. This is a new feature and bug fix release featuring the following changes: - New RoundComparison object for comparing numbers to a given precision - New 'unless' parameter to ShouldRaise, for situations where an exception is

Re: How to pass variable through scipts

2014-05-25 Thread Chris Angelico
On Mon, May 26, 2014 at 2:01 AM, dimm...@gmail.com wrote: i want to pass the variables xx and yy to a different script called application. This script by calling it with import, automatically pop up a window. I need by clicking the button that is linked with OnB definition to pop up the

Shared web hosting where python is *not* a second class citizen

2014-05-25 Thread memilanuk
Right now we have a fairly basic shared hosting plan via bluehost.com, running WordPress for a club web site. I've looked at setting up python on this account, but the default is the version of python that comes with the OS (CentOS 5.x currently). There are some basic instructions on upgrading

Re: Shared web hosting where python is *not* a second class citizen

2014-05-25 Thread Tim Golden
On 25/05/2014 18:25, memilanuk wrote: Right now we have a fairly basic shared hosting plan via bluehost.com, running WordPress for a club web site. I've looked at setting up python on this account, but the default is the version of python that comes with the OS (CentOS 5.x currently). There

Re: Shared web hosting where python is *not* a second class citizen

2014-05-25 Thread Chris “Kwpolska” Warrick
On Sun, May 25, 2014 at 7:25 PM, memilanuk memila...@gmail.com wrote: Right now we have a fairly basic shared hosting plan via bluehost.com, running WordPress for a club web site. I've looked at setting up python on this account, but the default is the version of python that comes with the OS

Re: How keep Python 3 moving forward

2014-05-25 Thread Rustom Mody
On Sunday, May 25, 2014 8:51:18 PM UTC+5:30, Ethan Furman wrote: On 05/24/2014 11:43 PM, jmf wrote: Python and unicode: a buggy hobbyist toy. Voil�. Nothing either good or bad. I thought this was a moderated list. What exactly are the moderators doing? Your unicode is mojibaked

win32serviceutil: ImportError: DLL load failed: The specified module could not be found

2014-05-25 Thread Nagy László Zsolt
import win32service Traceback (most recent call last): File stdin, line 1, in module ImportError: DLL load failed: The specified module could not be found I have no problem loading the same module with Python 2.7. Strange thing is that win32serviceutil.py is part of the pywin32

Re: How keep Python 3 moving forward

2014-05-25 Thread Roy Smith
In article mailman.10285.1401009964.18130.python-l...@python.org, Stefan Behnel stefan...@behnel.de wrote: Ubuntu provides a (partial) Py3 port of boto. As long as the part that's ported includes all the bits of boto we currently need, plus all the bits of boto we haven't yet discovered we

Re: How keep Python 3 moving forward

2014-05-25 Thread Steven D'Aprano
On Sun, 25 May 2014 10:38:42 -0700, Rustom Mody wrote: On Sunday, May 25, 2014 8:51:18 PM UTC+5:30, Ethan Furman wrote: On 05/24/2014 11:43 PM, jmf wrote: Python and unicode: a buggy hobbyist toy. Voil�. Nothing either good or bad. I thought this was a moderated list. What exactly

Re: WSGI

2014-05-25 Thread Chris
On 05/25/2014 12:04 PM, alister wrote: is your apache server running as root? if so it probably should be corrected One is running as chris, the others as apache: [root@t-centos1 ~]# ps -ef|grep httpd root 1199 1 0 08:47 ?00:00:01 /usr/sbin/httpd chris 1293 1199 0 09:47

Re: How keep Python 3 moving forward

2014-05-25 Thread Tim Chase
On 2014-05-25 18:17, Steven D'Aprano wrote: On Sun, 25 May 2014 10:38:42 -0700, Rustom Mody wrote: Your unicode is mojibaked Ethan! Voil�. You are hereby banished to a lonely island with python 1.5 and jmf for company :D Nope, it's you. Ethan's post is fine. He correctly quotes JMF

Re: How keep Python 3 moving forward

2014-05-25 Thread Ethan Furman
On 05/25/2014 10:38 AM, Rustom Mody wrote: Your unicode is mojibaked Ethan! Voil�. You are hereby banished to a lonely island with python 1.5 and jmf for company :D 1.5 I could live with. :( Surely the company would count as cruel and unusual punishment? -- ~Ethan~ --

Re: How keep Python 3 moving forward

2014-05-25 Thread Mark Lawrence
On 25/05/2014 19:34, Ethan Furman wrote: On 05/25/2014 10:38 AM, Rustom Mody wrote: Your unicode is mojibaked Ethan! Voil�. You are hereby banished to a lonely island with python 1.5 and jmf for company :D 1.5 I could live with. :( Surely the company would count as cruel and unusual

Re: How keep Python 3 moving forward

2014-05-25 Thread Ethan Furman
On 05/25/2014 11:56 AM, Tim Chase wrote: Thunderbird does offer the ability to change default character encodings (Edit - Preferences - Display - Formatting tab - Advanced...) for sending and receiving, but you have to go out of your way to change them to something like UTF-8. On the same

Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found

2014-05-25 Thread Terry Reedy
On 5/25/2014 1:40 PM, Nagy László Zsolt wrote: import win32service Traceback (most recent call last): File stdin, line 1, in module ImportError: DLL load failed: The specified module could not be found I have no problem loading the same module with Python 2.7. So the above is with ???

Re: How keep Python 3 moving forward

2014-05-25 Thread Mark Lawrence
On 25/05/2014 23:22, Dennis Lee Bieber wrote: On Sun, 25 May 2014 11:34:59 -0700, Ethan Furman et...@stoneleaf.us declaimed the following: On 05/25/2014 10:38 AM, Rustom Mody wrote: Your unicode is mojibaked Ethan! Voil�. You are hereby banished to a lonely island with python 1.5 and jmf

Re: Shared web hosting where python is *not* a second class citizen

2014-05-25 Thread memilanuk
On 05/25/2014 10:29 AM, Tim Golden wrote: On 25/05/2014 18:25, memilanuk wrote: So I'm left wondering if there is someplace that people here would recommend (for this kind of plan or others) where python isn't a second class citizen. Really not interested (for my current uses) in a VPS. I

Re: How keep Python 3 moving forward

2014-05-25 Thread Chris Angelico
On Mon, May 26, 2014 at 8:22 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sun, 25 May 2014 11:34:59 -0700, Ethan Furman et...@stoneleaf.us declaimed the following: On 05/25/2014 10:38 AM, Rustom Mody wrote: Your unicode is mojibaked Ethan! Voil�. You are hereby banished to a

Re: How keep Python 3 moving forward

2014-05-25 Thread Ethan Furman
On 05/25/2014 03:22 PM, Dennis Lee Bieber wrote: On Sun, 25 May 2014 11:34:59 -0700, Ethan Furman et...@stoneleaf.us declaimed the following: On 05/25/2014 10:38 AM, Rustom Mody wrote: Your unicode is mojibaked Ethan! Voilà. You are hereby banished to a lonely island with python 1.5 and jmf

Re: How keep Python 3 moving forward

2014-05-25 Thread Terry Reedy
On 5/25/2014 6:20 PM, Dennis Lee Bieber wrote: the mailing list and gmane group may have some spam filters in place but no real moderation. They *do* have spam, structure, and source filters. Please do not mis-inform people that they post most anything to python-list without consequence.

confused about the different built-in functions in Python

2014-05-25 Thread Deb Wyatt
I am confused about how various built-in functions are called. Some are called with dot notationeach_item.isalpha()and some are called like 'normal'sum(numlist)How do you know/remember which way to call them?TIA,Deb in WA, USA Free Online Photosharing - Share your photos online with your

Re: How keep Python 3 moving forward

2014-05-25 Thread Gene Heskett
On Sunday 25 May 2014 18:22:11 Dennis Lee Bieber did opine And Gene did reply: On Sun, 25 May 2014 11:34:59 -0700, Ethan Furman et...@stoneleaf.us declaimed the following: On 05/25/2014 10:38 AM, Rustom Mody wrote: Your unicode is mojibaked Ethan! Voilï؟½. You are hereby banished to a

Re: Loop thru the dictionary with tuples

2014-05-25 Thread Dave Angel
Ned Batchelder n...@nedbatchelder.com Wrote in message: On 5/25/14 8:55 AM, Igor Korot wrote: Hi, ALL, I have a following data structure: my_dict[(var1,var2,var3)] = None my_dict[(var4,var5,var6)] = 'abc' What I'm trying to do is this: for (key,value) in my_dict: #Do some stuff

Re: confused about the different built-in functions in Python

2014-05-25 Thread Ned Batchelder
On 5/25/14 7:55 PM, Deb Wyatt wrote: I am confused about how various built-in functions are called. Some are called with dot notation each_item.isalpha() and some are called like 'normal' sum(numlist) How do you know/remember which way to call them? TIA, Deb in WA, USA It can be

Re: Loop thru the dictionary with tuples

2014-05-25 Thread Ned Batchelder
On 5/25/14 10:09 PM, Dave Angel wrote: Ned Batchelder n...@nedbatchelder.com Wrote in message: On 5/25/14 8:55 AM, Igor Korot wrote: Hi, ALL, I have a following data structure: my_dict[(var1,var2,var3)] = None my_dict[(var4,var5,var6)] = 'abc' What I'm trying to do is this: for (key,value)

Re: confused about the different built-in functions in Python

2014-05-25 Thread Cameron Simpson
On 25May2014 15:55, Deb Wyatt codemon...@inbox.com wrote: I am confused about how various built-in functions are called. Some are called with dot notation each_item.isalpha() and some are called like 'normal' sum(numlist) How do you know/remember which way to call them? Documentation.

Re: os.stat and time zones

2014-05-25 Thread Cameron Simpson
On 25May2014 13:47, Nagy László Zsolt gand...@shopzeus.com wrote: This might be a silly question. Documentation of os.stat: The exact meaning and resolution of the st_atime, st_mtime, and st_ctime attributes depend on the operating system and the file system. For example, on Windows systems

Build tools, and Python 3 dependencies (was: How keep Python 3 moving forward)

2014-05-25 Thread Ben Finney
Roy Smith r...@panix.com writes: Stefan Behnel stefan...@behnel.de wrote: And I don't really see why you would consider fabric a dependency that keeps you from switching to Py3. In many cases, you can just keep running it in Py2 as you did before. In theory, that's possible. In

Re: Make Python Compilable, convert to Python source to Go

2014-05-25 Thread Ben Finney
bookaa bookaa rors...@gmail.com writes: Generally, people consider Python as a script language. Count me as one who does not. Python is a general-purpose language. It has high development efficiency True. but run too slowly Which Python implementation are you talking about? Run time is

Re: os.stat and time zones

2014-05-25 Thread Ben Finney
Nagy László Zsolt gand...@shopzeus.com writes: This might be a silly question. Documentation of os.stat: The exact meaning and resolution of the st_atime, st_mtime, and st_ctime attributes depend on the operating system and the file system. For example, on Windows systems using the FAT or

[issue21552] String length overflow in Tkinter

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a little simpler patch. Instead of checking string length in custom converter, it is checked after invocation of PyArg_ParseTuple. Also added bigmem tests. -- Added file: http://bugs.python.org/file35345/tkinter_strlen_overflow_alt.patch

[issue21343] os.path.relpath returns inconsistent types

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why you should check the type? There is no difference between '.' and u'.'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21343 ___

[issue21331] Reversing an encoding with unicode-escape returns a different result

2014-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21331 ___ ___

[issue20197] Support WebP image format detection in imghdr module

2014-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20197 ___ ___

[issue8743] set() operators don't work with collections.Set instances

2014-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching a draft patch with tests. -- Added file: http://bugs.python.org/file35346/fix_set_abc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8743

[issue20197] Support WebP image format detection in imghdr module

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4fd17e28d4bf by Serhiy Storchaka in branch 'default': Issue #20197: Added support for the WebP image type in the imghdr module. http://hg.python.org/cpython/rev/4fd17e28d4bf -- nosy: +python-dev ___

[issue20197] Support WebP image format detection in imghdr module

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Fabrice and Claudiu. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20197

[issue21574] Port image types detections from PIL to the imghdr module

2014-05-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: It would be good to add support of all image types which are supported in PIL to the imghdr module. -- components: Library (Lib) keywords: easy messages: 219078 nosy: Claudiu.Popa, effbot, serhiy.storchaka priority: normal severity: normal stage:

[issue21574] Port image types detections from PIL to the imghdr module

2014-05-25 Thread Claudiu.Popa
Claudiu.Popa added the comment: Sounds good, I'll create a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21574 ___ ___ Python-bugs-list

[issue19925] Add unit test for spwd module

2014-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka type: - enhancement versions: +Python 2.7, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19925

[issue18918] help('FILES') finds no documentation

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3fa76139c908 by Serhiy Storchaka in branch '3.4': Issue #18918: Removed non-existing topic from a list of available topics. http://hg.python.org/cpython/rev/3fa76139c908 New changeset e5bac5b2f38d by Serhiy Storchaka in branch 'default': Issue

[issue18918] help('FILES') finds no documentation

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in Python 3. Thanks Claudiu. But it is not clear why this topic is absent in 2.7. -- nosy: +serhiy.storchaka versions: -Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue19925] Add unit test for spwd module

2014-05-25 Thread Vajrasky Kok
Vajrasky Kok added the comment: Thanks, Serhiy, for the review! Here is the updated patch. -- Added file: http://bugs.python.org/file35347/unittest_for_spwd_v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19925

[issue19385] dbm.dumb should be consistent when the database is closed

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no need to speed up methods which do IO (__getitem__, __setitem__, __delitem__). However method which works only with an index (keys, iterkeys, __contains__, __len__) can be optimized. In the __contains__ method an exception can be raised not only

[issue20766] reference leaks in pdb

2014-05-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: An improved patch with a test case. -- Added file: http://bugs.python.org/file35349/refleak_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20766 ___

[issue21575] list.sort() should show arguments in tutorial

2014-05-25 Thread Jan-Philip Gehrcke
New submission from Jan-Philip Gehrcke: Currently, the tutorial for the list sort method does not show allowed arguments: list.sort() Sort the items of the list in place. (see e.g. https://docs.python.org/3.4/tutorial/datastructures.html) Is there a reason why we do not show the

[issue21565] multiprocessing: use contex-manager protocol for synchronization primitives

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9724eb19f6d0 by Charles-François Natali in branch 'default': Issue #21565: multiprocessing: use contex-manager protocol for synchronization http://hg.python.org/cpython/rev/9724eb19f6d0 -- nosy: +python-dev

[issue19925] Add unit test for spwd module

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset c35274fe5b35 by Serhiy Storchaka in branch '2.7': Issue #19925: Added tests for the spwd module. Original patch by Vajrasky Kok. http://hg.python.org/cpython/rev/c35274fe5b35 New changeset 9bdbe0b08dff by Serhiy Storchaka in branch '3.4': Issue

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-05-25 Thread Andy Maier
Andy Maier added the comment: The pydoc.py of Python 3.4 that supposedly has been fixed has a lot of changes compared to 2.7, but the place where I applied my fix in TextDoc.docclass() is unchanged. So it seems that my fix should be regarded only to be a quick fix, and the real fix would be

[issue19925] Add unit test for spwd module

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed with some changes. geteuid() is used instead getuid(), and checked that os.geteuid exists (see test_shutil). Checked deprecated attributes sp_nam and sp_pwd. Added tests for the calling getspnam() with wrong number of arguments and with bytes (on

[issue21576] Overwritten (custom) uuid inside dictionary

2014-05-25 Thread beta
New submission from beta: Results: Block: 2d = {'Blocks': 3, 'Name': 'Fregatten', 'uuid': 0} same as {'Blocks': 3, 'Name': 'Fregatten', 'uuid': 0} Block: 2e = {'Blocks': 3, 'Name': 'Fregatten', 'uuid': 0} same as {'Blocks': 3, 'Name': 'Fregatten', 'uuid': 0} Block: 2f = {'Blocks': 3, 'Name':

[issue8743] set() operators don't work with collections.Set instances

2014-05-25 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, interesting - I completely missed the comparison operators in my patch and tests. Your version looks good to me, though. That looks like a patch against 2.7 - do you want to add 2.7 3.4 back to the list of target versions for the fix? --

[issue17679] sysconfig generation uses some env variables multiple times

2014-05-25 Thread Florent Rougon
Changes by Florent Rougon frou...@users.sourceforge.net: -- nosy: +frougon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17679 ___ ___

[issue21343] os.path.relpath returns inconsistent types

2014-05-25 Thread Matt Bachmann
Matt Bachmann added the comment: There is a difference! '.' is a bytes string and u'.' is a unicode one! I found this problem because I work on a project that supports both python2 and python3. In python3 I pass in unicode I get back unicode. In python2.7 I pass in unicode and I get back a

[issue21565] multiprocessing: use contex-manager protocol for synchronization primitives

2014-05-25 Thread Charles-François Natali
Charles-François Natali added the comment: Committed (I've added a versionchanged as suggested by Antoine), closing. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue21343] os.path.relpath returns inconsistent types

2014-05-25 Thread Matt Bachmann
Matt Bachmann added the comment: Perhaps this is the bug I should be filing but here is why this comes up for me. I get different output from this function if I pass in two types. On my machine: os.path.relpath(u'test_srcl.txt', u'.') returns u'test_src.txt' os.path.relpath(u'test_srcl.txt',

[issue18381] unittest warnings counter

2014-05-25 Thread Berker Peksag
Berker Peksag added the comment: I get a test failure when I run the test suite with unittest.patch: test_Exit (unittest.test.test_program.Test_TestProgram) ... test test_unittest crashed -- Traceback (most recent call last): File /home/berker/projects/cpython-default/Lib/test/regrtest.py,

[issue21477] Idle: improve idle_test.htest

2014-05-25 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Modifications in htest-25052014.diff 1. ClassBrowser, PathBrowser, EditorWindow no longer close parent when closed 2. Sample code in _color_delegator changed to string, instead of reading from file. 3. String text change for Tooltip. 4. Adds htest for

[issue21343] os.path.relpath returns inconsistent types

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In Python 2 str is coerced to unicode, so most functions should return the same (or compatible) result for str and unicode argument if it contains only 7-bit ASCII characters. Of course there are several obvious exceptions, such as type() or repr(). And

[issue8743] set() operators don't work with collections.Set instances

2014-05-25 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8743 ___

[issue8743] set() operators don't work with collections.Set instances

2014-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Adding tests for non-set iterables as suggested by Serhiy. -- Added file: http://bugs.python.org/file35353/fix_set_abc2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8743

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

2014-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10203 ___ ___

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

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Perhaps it is worth to add a test for negative indices (valid (-1) and invalid ( -length)). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10203

[issue21560] gzip.write changes trailer ISIZE field before type checking - corrupted gz file after trying to write string

2014-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21560 ___ ___

[issue21575] list.sort() should show arguments in tutorial

2014-05-25 Thread Éric Araujo
Éric Araujo added the comment: I assume it is on purpose that the tutorial does not show all methods with all their arguments. It could overwhelm readers with too much information, and would also duplicate the full doc that’s in the reference. A link from this tutorial page to the list

[issue12972] Color prompt + readline

2014-05-25 Thread Damian
Damian added the comment: Just a quick comment that I ran into this again, but turns out that it's not an issue with python. Rather, this is a quirk with how readline works... https://stackoverflow.com/questions/9468435/look-how-to-fix-column-calculation-in-python-readline-if-use-color-prompt

  1   2   >