ANN: eGenix pyOpenSSL Distribution 0.13.0-1.0.0j

2012-05-16 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.13.0-1.0.0j An easy-to-install and easy-to-use distribution of the pyOpenSSL Python interface

Wing IDE 4.1.6 released

2012-05-16 Thread Wingware
Hi, Wingware has released version 4.1.6 of Wing IDE, an integrated development environment designed specifically for the Python programming language. Wing IDE is a cross-platform Python IDE that provides a professional code editor with vi, emacs, and other key bindings, auto-completion, call

Re: http://porn-extreme.2304310.n4.nabble.com/

2012-05-16 Thread jimmy970
http://porn-extreme.2304310.n4.nabble.com/ http://porn-extreme.2304310.n4.nabble.com/ -- View this message in context: http://python.6.n6.nabble.com/AMPUTEE-INCEST-MIDGET-2012-tp4708963p4974741.html Sent from the Python - python-list mailing list archive at Nabble.com. --

Re: Looking for video/slides from PyCon 2011...

2012-05-16 Thread Monte Milanuk
On 05/13/2012 09:42 PM, Kushal Kumaran wrote: On Fri, May 11, 2012 at 5:42 AM, Monte Milanukmemila...@gmail.com wrote: ...specifically the two lectures on creating GUI applications with Python + QT http://us.pycon.org/2011/schedule/presentations/207/ Various searches on the 'Net don't seem

ANN: eGenix pyOpenSSL Distribution 0.13.0-1.0.0j

2012-05-16 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.13.0-1.0.0j An easy-to-install and easy-to-use distribution of the pyOpenSSL Python interface

Re: ucs2 and ucs4 python

2012-05-16 Thread zayatzz
On May 15, 7:42 pm, Miki Tebeka miki.teb...@gmail.com wrote: Can someone point me towards a resource or two which will tell me how to do this - im not very good with whole linux/servers stuff. Im using ubuntu linux - if that makes any difference. Did not test, but this is the direction I

Re: ucs2 and ucs4 python

2012-05-16 Thread zayatzz
There is one problem though... when i start script with shebang like #!/opt/bin/python and then try to run the script i get: /opt/bin/python^M: bad interpreter: No such file or directory /opt/bin/python /opt/bin/python2 /opt/bin/python2.7 all start this new version of python, but none of those

Re: ucs2 and ucs4 python

2012-05-16 Thread Stefan Behnel
zayatzz, 16.05.2012 10:22: On May 15, 7:42 pm, Miki Tebeka wrote: Can someone point me towards a resource or two which will tell me how to do this - im not very good with whole linux/servers stuff. Im using ubuntu linux - if that makes any difference. Did not test, but this is the direction

Re: ucs2 and ucs4 python

2012-05-16 Thread Matej Cepl
On 16.5.2012 10:36, zayatzz wrote: /opt/bin/python^M: bad interpreter: No such file or directory Your script has CRLF end-of-lines. Change it to plain Unix LF. Matěj -- http://mail.python.org/mailman/listinfo/python-list

Re: ucs2 and ucs4 python

2012-05-16 Thread Chris Angelico
On Wed, May 16, 2012 at 6:36 PM, zayatzz alan.kesselm...@gmail.com wrote: There is one problem though... when i start script with shebang like #!/opt/bin/python and then try to run the script i get: /opt/bin/python^M: bad interpreter: No such file or directory You have a Windows

Re: ucs2 and ucs4 python

2012-05-16 Thread zayatzz
On May 16, 11:50 am, Matej Cepl mc...@redhat.com wrote: On 16.5.2012 10:36, zayatzz wrote: /opt/bin/python^M: bad interpreter: No such file or directory Your script has CRLF end-of-lines. Change it to plain Unix LF. Matěj Thanks :) but i have no idea what that means or how to achieve

Re: ucs2 and ucs4 python

2012-05-16 Thread Dave Angel
On 05/16/2012 05:20 AM, zayatzz wrote: On May 16, 11:50 am, Matej Cepl mc...@redhat.com wrote: On 16.5.2012 10:36, zayatzz wrote: /opt/bin/python^M: bad interpreter: No such file or directory Your script has CRLF end-of-lines. Change it to plain Unix LF. Matěj Thanks :) but i have no idea

Re: Good data structure for finding date intervals including a given date

2012-05-16 Thread Jean-Daniel
On Sun, May 13, 2012 at 2:29 PM, Alec Taylor alec.tayl...@gmail.com wrote: There is an ordered dict type since Python 3.1[1] and Python 2.7.3[2]. Ordered dict are useful, but they only remember the ordered in which they were added, you can not order them a on key. Thanks for the links. If

what does newP = func(code,p) do?

2012-05-16 Thread e-mail mgbg25171
def execute (code) : p = 0 while p len(code) : func = code[p] p += 1 newP = func(code,p) if newP != None : p = newP I'm trying to work out what this does code is a list of function addresses and numbers What on earth is funct(code,p)

python and xml

2012-05-16 Thread Nibin V M
Hi, I am trying to use cPanel XML-API and every API call return data in XML format. I would like to know how to manipulate the data here. For eg: How can I read the CPU load data from the below output loadavgone0.00/onefive0.00/fivefifteen0.00/fifteen/loadavg!-- whostmgrd -- Thank you, --

Re: python and xml

2012-05-16 Thread Stefan Behnel
Nibin V M, 16.05.2012 16:16: I am trying to use cPanel XML-API and every API call return data in XML format. I would like to know how to manipulate the data here. For eg: How can I read the CPU load data from the below output

Wing IDE 4.1.6 released

2012-05-16 Thread Wingware
Hi, Wingware has released version 4.1.6 of Wing IDE, an integrated development environment designed specifically for the Python programming language. Wing IDE is a cross-platform Python IDE that provides a professional code editor with vi, emacs, and other key bindings, auto-completion, call

Re: python and xml

2012-05-16 Thread Nibin V M
thank you Stefan. but the XML output is assigned to a variable; how to process the variable with XML contents? On Wed, May 16, 2012 at 7:53 PM, Stefan Behnel stefan...@behnel.de wrote: Nibin V M, 16.05.2012 16:16: I am trying to use cPanel XML-API and every API call return data in XML

Re: python and xml

2012-05-16 Thread Stefan Behnel
Hi, please don't top-post (I fixed the citation order below). Nibin V M, 16.05.2012 16:30: On Wed, May 16, 2012 at 7:53 PM, Stefan Behnel wrote: Nibin V M, 16.05.2012 16:16: I am trying to use cPanel XML-API and every API call return data in XML format. I would like to know how to

How to embed python2 into python3?

2012-05-16 Thread ytj
Hello, all: I have two programs, one is written in py3k, the other is written in python 2. I am wondering how to make them work together except port the python 2 code to py3k? Is that possible to expose python2's function to py3k? In other words, I want to embed the Python 2 interpreter into my

Re: what does newP = func(code,p) do?

2012-05-16 Thread Ian Kelly
On Wed, May 16, 2012 at 8:08 AM, e-mail mgbg25171 mgbg25...@blueyonder.co.uk wrote: def execute (code) :     p = 0     while p len(code) :     func = code[p]     p += 1     newP = func(code,p)     if newP != None :     p = newP I'm trying to work out what this

Difference between str.isdigit() and str.isdecimal() in Python 3

2012-05-16 Thread Marco
Hi all, because There should be one-- and preferably only one --obvious way to do it, there should be a difference between the two methods in the subject, but I can't find it: '123'.isdecimal(), '123'.isdigit() (True, True) print('\u0660123') ٠123 '\u0660123'.isdigit(),

what does newP = func(code,p) do?

2012-05-16 Thread e-mail mgbg25171
It's been a long time since I did any Python and I've never done that In C I'm used to storing function ptrs and then having to use some other constructs to call them. To be able to store func and then use func to call itself like that threw me...it's very elegant. Thank you very much for your

Re: Difference between str.isdigit() and str.isdecimal() in Python 3

2012-05-16 Thread Ian Kelly
On Wed, May 16, 2012 at 9:48 AM, Marco marc...@nsgmail.com wrote: Hi all, because There should be one-- and preferably only one --obvious way to do it, there should be a difference between the two methods in the subject, but I can't find it: '123'.isdecimal(), '123'.isdigit() (True, True)

Re: Difference between str.isdigit() and str.isdecimal() in Python 3

2012-05-16 Thread MRAB
On 16/05/2012 16:48, Marco wrote: Hi all, because There should be one-- and preferably only one --obvious way to do it, there should be a difference between the two methods in the subject, but I can't find it: '123'.isdecimal(), '123'.isdigit() (True, True) print('\u0660123') ٠123

Re: Difference between str.isdigit() and str.isdecimal() in Python 3

2012-05-16 Thread Ulrich Eckhardt
Marco wrote: '123'.isdecimal(), '123'.isdigit() (True, True) print('\u0660123') ٠123 '\u0660123'.isdigit(), '\u0660123'.isdecimal() (True, True) print('\u216B') Ⅻ '\u216B'.isdecimal(), '\u216B'.isdigit() (False, False) [chr(a) for a in range(0x2) if chr(a).isdigit()]

Re: Difference between str.isdigit() and str.isdecimal() in Python 3

2012-05-16 Thread Ian Kelly
On Wed, May 16, 2012 at 10:24 AM, Ulrich Eckhardt dooms...@knuut.de wrote: Marco wrote:   '123'.isdecimal(), '123'.isdigit() (True, True)   print('\u0660123') ٠123   '\u0660123'.isdigit(), '\u0660123'.isdecimal() (True, True)   print('\u216B') Ⅻ   '\u216B'.isdecimal(), '\u216B'.isdigit()

Re: How to embed python2 into python3?

2012-05-16 Thread Chris Rebert
On Wed, May 16, 2012 at 7:59 AM, ytj ytj...@gmail.com wrote: Hello, all: I have two programs, one is written in py3k, the other is written in python 2. I am wondering how to make them work together except port the python 2 code to py3k? Porting the Python 3 code to Python 2 is also an

Re: How to embed python2 into python3?

2012-05-16 Thread Ian Kelly
On Wed, May 16, 2012 at 8:59 AM, ytj ytj...@gmail.com wrote: Hello, all: I have two programs, one is written in py3k, the other is written in python 2. I am wondering how to make them work together except port the python 2 code to py3k? Is that possible to expose python2's function to py3k?

Re: Difference between str.isdigit() and str.isdecimal() in Python 3

2012-05-16 Thread Marco
On 05/16/2012 06:24 PM, Ulrich Eckhardt wrote: Marco wrote: '123'.isdecimal(), '123'.isdigit() (True, True) print('\u0660123') ٠123 '\u0660123'.isdigit(), '\u0660123'.isdecimal() (True, True) print('\u216B') Ⅻ '\u216B'.isdecimal(), '\u216B'.isdigit()

Re: Difference between str.isdigit() and str.isdecimal() in Python 3

2012-05-16 Thread jmfauth
On 16 mai, 17:48, Marco marc...@nsgmail.com wrote: Hi all, because There should be one-- and preferably only one --obvious way to do it, there should be a difference between the two methods in the subject, but I can't find it:   '123'.isdecimal(), '123'.isdigit() (True, True)  

Re: which book?

2012-05-16 Thread Ashraf Fouda
I recommend this book :- beginning python from novice to professional On Wed, May 9, 2012 at 4:13 PM, Miki Tebeka miki.teb...@gmail.com wrote: I am going to learn python for some plot issues. which book or sources, do you recommend please? The tutorial is pretty good if you already know how

Re: Difference between str.isdigit() and str.isdecimal() in Python 3

2012-05-16 Thread Thomas 'PointedEars' Lahn
Marco wrote: Hi all, because There should be one-- and preferably only one --obvious way to do it, there should be a difference between the two methods in the subject, but I can't find it: '123'.isdecimal(), '123'.isdigit() (True, True) print('\u0660123') ٠123

cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Ethan Furman
Just hit a snag: In cPython the deterministic garbage collection allows me a particular optimization when retrieving records from a dbf file -- namely, by using weakrefs I can tell if the record is still in memory and active, and if so not hit the disk to get the data; with PyPy (and

Re: Difference between str.isdigit() and str.isdecimal() in Python 3

2012-05-16 Thread Ian Kelly
On Wed, May 16, 2012 at 3:07 PM, Thomas 'PointedEars' Lahn pointede...@web.de wrote: RTFM. $ python3 -c 'print(42.isdecimal.__doc__ + \n); print(42.isdigit.__doc__)' S.isdecimal() - bool Return True if there are only decimal characters in S, False otherwise. S.isdigit() - bool Return

non-pickle persistance for dicts?

2012-05-16 Thread Charles Hixson
I want to persist simple dicts, but due to the security problems with (un)pickle, I'd prefer to not use shelve, and the only way I could see to persist them onto sqlite also invoked pickle. As (un)pickle allows arbitrary system commands to be issued, I'd really rather just use a simple

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Ian Kelly
On Wed, May 16, 2012 at 3:33 PM, Ethan Furman et...@stoneleaf.us wrote: Just hit a snag: In cPython the deterministic garbage collection allows me a particular optimization when retrieving records from a dbf file -- namely, by using weakrefs I can tell if the record is still in memory and

Re: non-pickle persistance for dicts?

2012-05-16 Thread Ian Kelly
On Wed, May 16, 2012 at 3:52 PM, Charles Hixson charleshi...@earthlink.net wrote: I want to persist simple dicts, but due to the security problems with (un)pickle, I'd prefer to not use shelve, and the only way I could see to persist them onto sqlite also invoked pickle. As (un)pickle allows

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Tim Delaney
On 17 May 2012 07:33, Ethan Furman et...@stoneleaf.us wrote: Just hit a snag: In cPython the deterministic garbage collection allows me a particular optimization when retrieving records from a dbf file -- namely, by using weakrefs I can tell if the record is still in memory and active, and

Re: How to call and execute C code in Python?

2012-05-16 Thread Barry Scott
There are many choices rather then raw python C API calls. Boost, PyCXX and ctypes are worth investigating. PyCXX requires you code in C++ but hides lots of the issues of using the Python API from you. It also supports python 2 and 3. Barry - PyCXX maintainer --

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Ethan Furman
Ian Kelly wrote: On Wed, May 16, 2012 at 3:33 PM, Ethan Furman et...@stoneleaf.us wrote: Just hit a snag: In cPython the deterministic garbage collection allows me a particular optimization when retrieving records from a dbf file -- namely, by using weakrefs I can tell if the record is still

Re: non-pickle persistance for dicts?

2012-05-16 Thread Charles Hixson
On 05/16/2012 03:11 PM, Ian Kelly wrote: On Wed, May 16, 2012 at 3:52 PM, Charles Hixson charleshi...@earthlink.net wrote: I want to persist simple dicts, but due to the security problems with (un)pickle, I'd prefer to not use shelve, and the only way I could see to persist them onto

Re: non-pickle persistance for dicts?

2012-05-16 Thread Ian Kelly
On Wed, May 16, 2012 at 4:53 PM, Charles Hixson charleshi...@earthlink.net wrote: On 05/16/2012 03:11 PM, Ian Kelly wrote: On Wed, May 16, 2012 at 3:52 PM, Charles Hixson charleshi...@earthlink.net  wrote: I want to persist simple dicts, but due to the security problems with (un)pickle,

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Ethan Furman
Tim Delaney wrote: On 17 May 2012 07:33, Ethan Furman wrote: Just hit a snag: In cPython the deterministic garbage collection allows me a particular optimization when retrieving records from a dbf file -- namely, by using weakrefs I can tell if the record is still in memory and active, and if

Re: Difference between str.isdigit() and str.isdecimal() in Python 3

2012-05-16 Thread Steven D'Aprano
On Wed, 16 May 2012 17:48:19 +0200, Marco wrote: Hi all, because There should be one-- and preferably only one --obvious way to do it, there should be a difference between the two methods in the subject, but I can't find it: The Fine Manual has more detail, although I admit it isn't

Re: non-pickle persistance for dicts?

2012-05-16 Thread Devin Jeanpierre
On Wed, May 16, 2012 at 6:53 PM, Charles Hixson charleshi...@earthlink.net wrote: Thanks.  It looks like either would do what I need.  Any suggestion as to how to choose between them?  E.g., is AST better supported?  faster?  (I'm tending towards AST purely because it seems more tied to Python,

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Chris Angelico
On Thu, May 17, 2012 at 9:01 AM, Ethan Furman et...@stoneleaf.us wrote: A record is an interesting critter -- it is given life either from the user or from the disk-bound data;  its fields can then change, but those changes are not reflected on disk until .write_record() is called;  I do this

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Tim Delaney
On 17 May 2012 11:13, Chris Angelico ros...@gmail.com wrote: On Thu, May 17, 2012 at 9:01 AM, Ethan Furman et...@stoneleaf.us wrote: A record is an interesting critter -- it is given life either from the user or from the disk-bound data; its fields can then change, but those changes are

Newbie questions on import cmd line run

2012-05-16 Thread gwhite
Hi, I am a newbie running the latest pythonxy (2.7.2.1) spyder and python 2.7.2. I suspect my questions are mostly basic to python, and not specific to Spyder or iPython. Note: Up until now, I mainly used MATLAB, and thus need to de-program myself appropriately. I use Win7-64. I wrote the

bash/shell to python

2012-05-16 Thread Rita
Hello, I currently build a lot of interfaces/wrappers to other applications using bash/shell. One short coming for it is it lacks a good method to handle arguments so I switched to python a while ago to use 'argparse' module. Its a great complement to subprocess module. I was wondering if there

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Ethan Furman
Chris Angelico wrote: On Thu, May 17, 2012 at 9:01 AM, Ethan Furman et...@stoneleaf.us wrote: A record is an interesting critter -- it is given life either from the user or from the disk-bound data; its fields can then change, but those changes are not reflected on disk until .write_record()

Where is the most recent Tkinter information

2012-05-16 Thread Mark R Rivet
It seems like all the info on tkinter is around the 2000 time frame. Is tkinter still being developed/supported? -- http://mail.python.org/mailman/listinfo/python-list

Re: Where is the most recent Tkinter information

2012-05-16 Thread Terry Reedy
On 5/16/2012 11:02 PM, Mark R Rivet wrote: It seems like all the info on tkinter is around the 2000 time frame. Is tkinter still being developed/supported? tkinter is CPython's tk interface. tcl/tk is still being developed at Active State. The Windows release for Py 3.3 will come with 8.5.11,

Re: Are there any instrumentation widgets for wxpython or tkinter?

2012-05-16 Thread Mark R Rivet
On Sat, 12 May 2012 12:40:28 -0700 (PDT), Sverre sverreodeg...@gmail.com wrote: I searched for widgets used for PLC automation or lab instrumentation like gauges, led's etc. in the net, but didn't found anything because of those massive link spam sites. In the case there isn't any solution, with

Python and Tkinter by John E Grayson

2012-05-16 Thread Mark R Rivet
I have a copy of this book and was wondering how relevant the content is considering the publish date is 2000. Are people still using this information? Anyone have any experience with this book? I guess what I mean, is, any of the code in this book deprecated? or does it still contain information

Re: Where is the most recent Tkinter information

2012-05-16 Thread Simon Cropper
On 17/05/12 13:02, Mark R Rivet wrote: It seems like all the info on tkinter is around the 2000 time frame. Is tkinter still being developed/supported? The main page of the python 3.2.3 documentation for tkinter can be found here...

Re: Newbie questions on import cmd line run

2012-05-16 Thread Terry Reedy
On 5/16/2012 9:45 PM, gwhite wrote: Hi, I am a newbie running the latest pythonxy (2.7.2.1) spyder and python 2.7.2. I suspect my questions are mostly basic to python, and not specific to Spyder or iPython. Note: Up until now, I mainly used MATLAB, and thus need to de-program myself

Re: Newbie questions on import cmd line run

2012-05-16 Thread Chris Rebert
On Wed, May 16, 2012 at 6:45 PM, gwhite gwh...@ti.com wrote: Hi, I am a newbie running the latest pythonxy (2.7.2.1) spyder and python 2.7.2.   I suspect my questions are mostly basic to python, and not specific to Spyder or iPython. Note: Up until now, I mainly used MATLAB, and thus need

Algorithms in Python, #n+1

2012-05-16 Thread Antti J Ylikoski
I have continued my research in literature algorithms in Python. The algorithms in Knuth's volumes 1 -- 3 either have been incorporated into Python, or they can be easily implemented with Python. Quite as John Nagle said here. However, the Fascicles in Vol. 4 to my opinion contain nontrivially

Re: Newbie questions on import cmd line run

2012-05-16 Thread Steven D'Aprano
On Wed, 16 May 2012 18:45:39 -0700, gwhite wrote: #! what is supposed to go here? # Filename: newbie00.py Supposed to? Nothing -- it is completely optional. #! (hash-bang) lines currently do nothing on Windows machines, they are just comments. However, on Unix and Linux machines (and

Re: Newbie questions on import cmd line run

2012-05-16 Thread alex23
On May 17, 11:45 am, gwhite gwh...@ti.com wrote: 1.  If running from the system command line, or the Sypder run button, __name__ is __main__ rather than newbie00, as seen above. So, how would I get the file name newbie00.py in these two noted cases? You can get it from the file name:

[issue14825] Interactive Shell vs Executed code

2012-05-16 Thread Marcelo Delgado
New submission from Marcelo Delgado marde...@gmail.com: I have found inconsistency between running this code in the interactive shell and running it from a file: Int. Shell: n**0 ## n is a negative number result: -1 File: n**0 ## n is a negative number result: 1 I am fairly new to Python, so

[issue14825] Interactive Shell vs Executed code

2012-05-16 Thread Marcelo Delgado
Changes by Marcelo Delgado marde...@gmail.com: -- components: +Interpreter Core -Regular Expressions ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14825 ___

[issue14811] decoding_fgets() truncates long lines and fails with a SyntaxError(Non-UTF-8 code starting with...)

2012-05-16 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Function decoding_fgets (Parser/tokenizer.c) reads line in buffer of fixed size 8192 (line truncated to size 8191) and then fails because line is cut in the middle of a multibyte UTF-8 character. It looks like BUFSIZ is much smaller

[issue14825] Interactive Shell vs Executed code

2012-05-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: It sounds like you're seeing the difference between this: n = -7 n ** 0 1 and this: -7 ** 0 -1 This isn't a bug; it's to do with how Python expressions are parsed: in the second case, the expression is grouped as -(7 ** 0) rather

[issue14674] Add link to RFC 4627 from json documentation

2012-05-16 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: Removed file: http://bugs.python.org/file25592/json.rst.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14674 ___

[issue14674] Add link to RFC 4627 from json documentation

2012-05-16 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: Added file: http://bugs.python.org/file25606/json.rst.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14674 ___

[issue14674] Add link to RFC 4627 from json documentation

2012-05-16 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: Removed file: http://bugs.python.org/file25591/json.rst.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14674 ___

[issue14817] pkgutil.extend_path has no tests

2012-05-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This has broken all 3.x buildbots. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14817 ___

[issue14824] reprlib documentation references string module

2012-05-16 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: Patch. Though I ponder whether the expression in question might be equivalent to simply: type(obj).__name__.replace('_', ' ') -- keywords: +patch nosy: +cvrebert Added file: http://bugs.python.org/file25607/reprlib.rst.patch

[issue14826] urllib2.urlopen fails to load URL

2012-05-16 Thread Wichert Akkerman
New submission from Wichert Akkerman wich...@wiggy.net: There appears to be an odd networking issue with how urllib2 sends HTTP requests. Downloading an image from maw.liquifire.com gives an error: $ python -c 'import urllib2 ;

[issue1602] windows console doesn't print or input Unicode

2012-05-16 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Has something incompatible changed between 3.2.2 and 3.2.3 with respect to this bug? I have a program that had an earlier version of the workaround (Michael's original, I think), and it worked fine, then I upgraded from 3.2.2 to 3.2.3

[issue1602] windows console doesn't print or input Unicode

2012-05-16 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Oh, and is this issues going to be fixed for 3.3, so we don't have to use the workaround in the future? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602

[issue11959] smtpd cannot be used without affecting global state

2012-05-16 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Well, other tests manage it even without using a private socket map. Leaving dangling sockets in the socket map could mean your code forgets to close them, for example. This issue is not about getting test_logging to work in a particular

[issue11959] smtpd cannot be used without affecting global state

2012-05-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Given that asyncore's design allows for a socket map to be passed in (at least in part - RDM's comment), ISTM that it should support this consistently, and also that smtpd should support this mode of use. Well, I would argue that asyncore's

[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 981aabe6ea2f by Hynek Schlawack in branch 'default': #14809: Add HTTP status codes from RFC 6585 to http.server and http.client http://hg.python.org/cpython/rev/981aabe6ea2f -- nosy: +python-dev

[issue11959] smtpd cannot be used without affecting global state

2012-05-16 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Well, I would argue that asyncore's design is thoroughly broken, and passing a socket map is a poor kludge to avoid global state; in a sophisticated event loop, the socket map wouldn't be the only piece of state to pass around. I

[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2496602a56e5 by Antoine Pitrou in branch 'default': Issue #14732: The _csv module now uses PEP 3121 module initialization. http://hg.python.org/cpython/rev/2496602a56e5 --

[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for the updated patch, Robin. I have now committed it to the default branch. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue14773] fwalk breaks on dangling symlinks

2012-05-16 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14773 ___

[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-16 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Thank you for your contribution to Python, EungJun! Just two small remarks: - Please sign and submit the contributor form from http://www.python.org/psf/contrib/ . You'll get a nice star next to your name in return. :) - I have fixed the flow

[issue14773] fwalk breaks on dangling symlinks

2012-05-16 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14773 ___ ___ Python-bugs-list

[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Julien Pecqueur
New submission from Julien Pecqueur jpe...@gmail.com: IDLE crash when i type the character ^ (for example writing ê in a comment). I have the crash only on Mac OS X (Mac OS X 64-bit/32-bit Installer (3.2.3) for Mac OS X 10.6 and 10.7). I don't have this crash on Linux. -- components:

[issue14828] itertools.groupby not working as expected

2012-05-16 Thread Jiba
New submission from Jiba jibal...@free.fr: In some situation, itertools.groupby fails to group the objects, and produces several groups with the same key. For example, the following code : from itertools import * class P(object): def __init__(self, key): self.key = key p1 = P(1) p2 =

[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Robin, I forgot: could you please sign and send the contrib form at http://www.python.org/psf/contrib/ ? It is not a copyright assignment, just a piece of paper that formally allows us to license your contribution for distribution with Python.

[issue14780] urllib.request could use the default CA store

2012-05-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Something like this perhaps? For example, yes. Now we need to find a way of testing this... -- nosy: +orsenthil title: SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted - urllib.request could use

[issue14828] itertools.groupby not working as expected

2012-05-16 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: groupby() changes the group when the key changes in the input it iterates. If you want to have p1 and p3 to go to the same group, you need to sort the input by P.key first. This is clearly documented, too: The operation of groupby() is

[issue14816] compilation failed on Ubuntu shared buildbot

2012-05-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed in 1ecd10260649. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14816

[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Here's a patch. I can build win32 and Release|x64. However, the executables immediately exit; this might be related to #14822. -- keywords: +patch Added file: http://bugs.python.org/file25608/vs-9.0.diff

[issue14822] Build unusable when compiled for Win 64-bit release

2012-05-16 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14822 ___ ___ Python-bugs-list

[issue14828] itertools.groupby not working as expected

2012-05-16 Thread Jiba
Jiba jibal...@free.fr added the comment: Ok, I understand. However, in my initial problem, the sequence passed to groupby was a set, e.g. (modifying my previous example) : groupby(set([p1, p2, p3]), lambda p: p.key) If I understand well how groupby() works, the result of a groupby

[issue14828] itertools.groupby not working as expected

2012-05-16 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: You're right, the result over a set would be unpredictable. The point of the itertools module is to be able to a) cope with massive amounts of data and b) be a set of tools instead of complete solutions for all problems. Because of both of the

[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Regarding the VS 2010 build failure, using the cross tools builds python_d.exe: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat msbuild /p:useenv=true pcbuild.sln /p:Configuration=Debug

[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch doesn't apply here, line endings perhaps? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14813 ___

[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Please run IDLE from the command line and send the output when it crashes. (If I knew Mac better I would tell you the precise instructions) -- nosy: +ramchandra.apte ___ Python tracker

[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- assignee: - ronaldoussoren components: +Macintosh nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14827 ___

[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Julien Pecqueur
Julien Pecqueur jpe...@gmail.com added the comment: I'll send the output this evening. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14827 ___

[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Probably line endings. It applies with cygwin's patch: C:\Users\stefan\pydev\cpythonpatch -p1 vs-9.0.diff patching file PC/VS9.0/_bz2.vcproj

[issue14813] Can't build under VS2008 anymore

2012-05-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm uploading a dos version. Still doesn't work. It may be because I'm doing all this in a Linux checkout without the hgeol extension enabled, though. -- ___ Python tracker rep...@bugs.python.org

[issue14827] IDLE crash when typing ^ character on Mac OS X

2012-05-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Do you have a recent version of ActiveState's Tcl/Tk distribution installed? If you do not have this installed you ran into a known issue in Apple's copy of Tcl/Tk, see http://www.python.org/download/mac/tcltk/ for more information.

  1   2   3   >