DEAP 0.8 released - Distributed Evolutionary Algorithms in Python

2012-04-06 Thread Félix-Antoine Fortin
Hi everyone, We are proud to annouce the release of DEAP 0.8, a library for doing Distributed Evolutionary Algorithms in Python. You can download a copy of this release at the following web page. http://deap.googlecode.com This release includes : - compatibility with Python 3;

Re: Python Gotcha's?

2012-04-06 Thread Steve Howell
On Apr 5, 10:36 pm, rusi rustompm...@gmail.com wrote: On Apr 6, 9:54 am, Steve Howell showel...@yahoo.com wrote: JS, YAML, and HTML are pretty similar to Python with respect to single vs. double, as far as I know/remember/care. [Complete ignoramus here -- writing after a few minutes of

Reading Live Output from a Subprocess

2012-04-06 Thread bunslow
Okay, I've been trying for days to figure this out, posting on forums, Googling, whatever. I have yet to find a solution that has worked for me. (I'm using Python 3.2.2, Ubuntu 11.04.) Everything I've tried has led to buffered output being spat back all at once after the subprocess terminates.

Re: Reading Live Output from a Subprocess

2012-04-06 Thread Chris Rebert
On Thu, Apr 5, 2012 at 11:57 PM, buns...@gmail.com wrote: Okay, I've been trying for days to figure this out, posting on forums, Googling, whatever. I have yet to find a solution that has worked for me. (I'm using Python 3.2.2, Ubuntu 11.04.) Everything I've tried has led to buffered

numpy.genfromtxt with Python3 - howto

2012-04-06 Thread Helmut Jarausch
Hi I have a machine with a non-UTF8 local. I can't figure out how to make numpy.genfromtxt work I pipe some ascii data into the following script but get this bytes to str hell. Many thanks for a hint, Helmut. #!/usr/bin/python3 import numpy as np import io import sys inpstream =

Re: Reading Live Output from a Subprocess

2012-04-06 Thread Nobody
On Thu, 05 Apr 2012 23:57:49 -0700, bunslow wrote: Okay, I've been trying for days to figure this out, posting on forums, Googling, whatever. I have yet to find a solution that has worked for me. (I'm using Python 3.2.2, Ubuntu 11.04.) Everything I've tried has led to buffered output being

Re: Python Gotcha's?

2012-04-06 Thread mwilson
rusi wrote: Are there languages (other than python) in which single and double quotes are equivalent? Kernighan and Plauger's RATFOR (a pre-processor that added some C-like syntax to FORTRAN) did that. Published in their book _Software Tools_. Mel. --

Re: escaping/encoding/formatting in python

2012-04-06 Thread Nobody
On Thu, 05 Apr 2012 22:28:19 -0700, rusi wrote: All this mess would vanish if the string-literal-starter and ender were different. You still need an escape character in order to be able to embed an unbalanced end character. Tcl and PostScript use mirrored string delimiters (braces for Tcl,

Re: Python Gotcha's?

2012-04-06 Thread Roy Smith
In article jlmaid$hum$1...@dont-email.me, mwil...@the-wire.com wrote: rusi wrote: Are there languages (other than python) in which single and double quotes are equivalent? Kernighan and Plauger's RATFOR (a pre-processor that added some C-like syntax to FORTRAN) did that. Published

Re: Python Gotcha's?

2012-04-06 Thread mwilson
Roy Smith wrote: In article jlmaid$hum$1...@dont-email.me, mwil...@the-wire.com wrote: rusi wrote: Are there languages (other than python) in which single and double quotes are equivalent? Kernighan and Plauger's RATFOR (a pre-processor that added some C-like syntax to FORTRAN) did

Re: escaping/encoding/formatting in python

2012-04-06 Thread rusi
On Apr 6, 1:52 pm, Nobody nob...@nowhere.com wrote: On Thu, 05 Apr 2012 22:28:19 -0700, rusi wrote: All this mess would vanish if the string-literal-starter and ender were different. You still need an escape character in order to be able to embed an unbalanced end character. Tcl and

Re: escaping/encoding/formatting in python

2012-04-06 Thread Serhiy Storchaka
06.04.12 08:28, rusi написав(ла): All this mess would vanish if the string-literal-starter and ender were different. [You dont need to escape a open-paren in a lisp sexp] But you need to escape an escape symbol. -- http://mail.python.org/mailman/listinfo/python-list

Re: escaping/encoding/formatting in python

2012-04-06 Thread Serhiy Storchaka
06.04.12 16:22, rusi написав(ла): Yes. I hand it to you that I missed the case of explicitly unbalanced strings. But are not such cases rare? No, unfortunately. }:-( For example code such as: print '' print str(something) print '' could better be written as print '%s' % str(something)

Re: Python Gotcha's?

2012-04-06 Thread Steven D'Aprano
On Thu, 05 Apr 2012 21:28:01 -0700, rusi wrote: Are there languages (other than python) in which single and double quotes are equivalent? Classic REXX, CSS, JavaScript, Lua, Prolog, XPath, YAML, Modula-2, HTML, and (of course) English. There may be others. Other languages like Perl, PHP and

Re: Python Gotcha's?

2012-04-06 Thread Grzegorz Staniak
On 06.04.2012, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wroted: Are there languages (other than python) in which single and double quotes are equivalent? Classic REXX, CSS, JavaScript, Lua, Prolog, XPath, YAML, Modula-2, HTML, and (of course) English. There may be others.

Re: Generating custom Windows installers

2012-04-06 Thread Cesar Covarrubias
I'm still getting my feet wet on the Windows side of things with Python, so I apologize for the noobish question. If i am reading the create_link.py example correctly, that is created when the application itself is invoked, not during installation. Is that correct? If it is, how would I be able

Re: [Savoynet] list settings

2012-04-06 Thread Chris Angelico
On Sat, Apr 7, 2012 at 12:50 AM, Freed freeda...@aol.com wrote: New here.  The list is set so that ‘reply’ goes only to the sender, not the list.  Is that intentional?  Most lists are set so that ‘reply’ goes to the list by default.  Doesn’t look like I can change that for emails that come to

[ANN]: asyncoro: Framework for asynchronous programming with coroutines

2012-04-06 Thread Giridhar Pemmasani
I posted this message earlier to the list, but realized that URLs appear broken with '.' at the end of URL. Sorry for that mistake and this duplicate! asyncoro is a framework for developing concurrent programs with asynchronous event completions and coroutines. Asynchronous completions currently

Re: Python Gotcha's?

2012-04-06 Thread rusi
On Apr 6, 6:55 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Thu, 05 Apr 2012 21:28:01 -0700, rusi wrote: Are there languages (other than python) in which single and double quotes are equivalent? Classic REXX, CSS, JavaScript, Lua, Prolog, XPath, YAML, Modula-2, HTML,

Re: Python Gotcha's?

2012-04-06 Thread André Malo
* Steven D'Aprano wrote: On Thu, 05 Apr 2012 23:08:11 +0200, André Malo wrote: * Steven D'Aprano wrote: For a 21st century programming language or data format to accept only one type of quotation mark as string delimiter is rather like having a 21st century automobile with a hand crank

Re: Python Gotcha's?

2012-04-06 Thread rusi
On Apr 6, 7:18 pm, Grzegorz Staniak gstan...@gmail.com wrote: On 06.04.2012, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wroted: Are there languages (other than python) in which single and double quotes are equivalent? Classic REXX, CSS, JavaScript, Lua, Prolog, XPath, YAML,

Re: Python Gotcha's?

2012-04-06 Thread rusi
On Apr 6, 8:40 pm, André Malo ndpar...@gmail.com wrote: * Steven D'Aprano wrote: On Thu, 05 Apr 2012 23:08:11 +0200, André Malo wrote: * Steven D'Aprano wrote: For a 21st century programming language or data format to accept only one type of quotation mark as string delimiter is rather

Re: Python Gotcha's?

2012-04-06 Thread Grzegorz Staniak
On 06.04.2012, rusi rustompm...@gmail.com wroted: This is the 21st century, not 1960, and if the language designer is worried about the trivially small extra effort of parsing ' as well as then he's almost certainly putting his efforts in the wrong place. Yes, that's what you said

Re: Async IO Server with Blocking DB

2012-04-06 Thread Damjan Georgievski
We are thinking about building a webservice server and considering python event-driven servers i.e. Gevent/Tornado/ Twisted or some combination thereof etc. We are having doubts about the db io part. Even with connection pooling and cache, there is a strong chance that server will block on

Re: Async IO Server with Blocking DB

2012-04-06 Thread Laszlo Nagy
There is asyncmongo! http://pypi.python.org/pypi/asyncmongo/0.1.3 Although I have never tried it. It has support for async I/O for mongodb and tornadoweb. Here is a bit old article about it: http://www.dunnington.net/entry/asynchronous-mongodb-in-tornado-with-asyncmongo I have a related

'string_escape' in python 3

2012-04-06 Thread Nicholas Cole
In Python 2 given the following raw string: s = rHello\x3a this is a test the escaping could be removed by use of the following: s.decode('string_escape') In Python 3, however, the only way I can see to achieve the same result is to convert into a byte stream and then back: bytes(s,

Re: Reading Live Output from a Subprocess

2012-04-06 Thread shi
Maybe this can help you? http://technogems.blogspot.com/2012/01/capture-colored-console-output-in.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading Live Output from a Subprocess

2012-04-06 Thread Dubslow
On Friday, April 6, 2012 3:37:10 AM UTC-5, Nobody wrote: In all probability, this is because the child process (pypy) is buffering its stdout, meaning that the data doesn't get passed to the OS until either the buffer is full or the process terminates. If it doesn't get passed to the OS, then

Re: Reading Live Output from a Subprocess

2012-04-06 Thread Vinay Sajip
On Apr 6, 7:57 am, buns...@gmail.com wrote: I've heard that the Pexpect module works wonders, but the problem is that relies on pty which is available in Unix only. Additionally, because I want this script to be usable by others, any solution should be in the standard library, which means

Possible change to logging.handlers.SysLogHandler

2012-04-06 Thread Vinay Sajip
There is a problem with the way logging.handlers.SysLogHandler works when presented with Unicode messages. According to RFC 5424, Unicode is supposed to be sent encoded as UTF-8 and preceded by a BOM. However, the current handler implementation puts the BOM at the start of the formatted message,

Re: 'string_escape' in python 3

2012-04-06 Thread Terry Reedy
On 4/6/2012 1:52 PM, Nicholas Cole wrote: In Python 2 given the following raw string: s = rHello\x3a this is a test the escaping could be removed by use of the following: s.decode('string_escape') In Python 3, however, the only way I can see to achieve the same result is to convert into

Learning new APIs/classes (beginner question)

2012-04-06 Thread Martin Jones
In a nutshell: My question is: how do experienced coders learn about external/third-party classes/APIs? I'm teaching myself Python through a combination of Hetland's 'Beginning Python', various online tutorials and some past experience coding ASP/VBScript. To start to learn Python I've set myself

Re: Learning new APIs/classes (beginner question)

2012-04-06 Thread Emile van Sebille
On 4/6/2012 1:41 PM Martin Jones said... In a nutshell: My question is: how do experienced coders learn about external/third-party classes/APIs? I'm teaching myself Python through a combination of Hetland's 'Beginning Python', various online tutorials and some past experience coding

Re: 'string_escape' in python 3

2012-04-06 Thread Cameron Simpson
On 06Apr2012 16:57, Terry Reedy tjre...@udel.edu wrote: | On 4/6/2012 1:52 PM, Nicholas Cole wrote: | In Python 2 given the following raw string: | | s = rHello\x3a this is a test | | the escaping could be removed by use of the following: | | s.decode('string_escape') | | In Python 3,

Re: 'string_escape' in python 3

2012-04-06 Thread Terry Reedy
On 4/6/2012 6:05 PM, Cameron Simpson wrote: On 06Apr2012 16:57, Terry Reedytjre...@udel.edu wrote: | On 4/6/2012 1:52 PM, Nicholas Cole wrote: | bytes(s, 'utf-8').decode('unicode_escape') | | This seems very ugly (and slightly 'wrong'). Is there no way to do | this without using bytes?

Re: numpy.genfromtxt with Python3 - howto

2012-04-06 Thread Marc Christiansen
Helmut Jarausch jarau...@skynet.be wrote: I have a machine with a non-UTF8 local. I can't figure out how to make numpy.genfromtxt work [...] #!/usr/bin/python3 import numpy as np import io import sys inpstream = io.open(sys.stdin.fileno(), r, encoding='latin1') data =

Re: 'string_escape' in python 3

2012-04-06 Thread Ian Kelly
On Fri, Apr 6, 2012 at 4:19 PM, Terry Reedy tjre...@udel.edu wrote: I actually thought of that, but assumed that adding enclosing quotes would be safe (or that the OP trusted the string). After sending, I realized that if Nasty Hacker guessed that the string would be so augmented, then it would

Re: 'string_escape' in python 3

2012-04-06 Thread Ian Kelly
On Fri, Apr 6, 2012 at 11:52 AM, Nicholas Cole nicholas.c...@gmail.com wrote: In Python 2 given the following raw string: s = rHello\x3a this is a test the escaping could be removed by use of the following: s.decode('string_escape') In Python 3, however, the only way I can see to achieve

Re: Learning new APIs/classes (beginner question)

2012-04-06 Thread Steven D'Aprano
On Fri, 06 Apr 2012 13:41:23 -0700, Martin Jones wrote: In a nutshell: My question is: how do experienced coders learn about external/third-party classes/APIs? Does it have a tutorial? Do it. Does it have a manual, a wiki, FAQs, or other documentation? Read them. If all else fails, what does

Re: Python Gotcha's?

2012-04-06 Thread Barry W Brown
On Thursday, April 5, 2012 11:28:01 PM UTC-5, rusi wrote: On Apr 5, 4:06 pm, Duncan Booth duncan.bo...@invalid.invalid wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: JSON expects double-quote marks, not single:     v = json.loads({'test':'test'})  fails     v =

Re: xlrd 0.7.6 released!

2012-04-06 Thread Keith Medcalf
Karim kliat...@gmail.com wrote in news:mailman.1309.1333529851.3037.python-l...@python.org: This release manage the '.xlsx' format? http://packages.python.org/openpyxl/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating custom Windows installers

2012-04-06 Thread Mark Hammond
On 7/04/2012 12:57 AM, Cesar Covarrubias wrote: I'm still getting my feet wet on the Windows side of things with Python, so I apologize for the noobish question. If i am reading the create_link.py example correctly, that is created when the application itself is invoked, not during

Re: xlrd 0.7.6 released!

2012-04-06 Thread Karim
Le 07/04/2012 04:07, Keith Medcalf a écrit : Karimkliat...@gmail.com wrote in news:mailman.1309.1333529851.3037.python-l...@python.org: This release manage the '.xlsx' format? http://packages.python.org/openpyxl/ Ah Keith, I just check this is only for xlsx format so I will make 2 code

Re: Cannot connect to IMAP server in Python 3.2

2012-04-06 Thread Keith Medcalf
Steve Howell showel...@yahoo.com wrote in news:ae774035-9db0-469d-aa2a- 02f2d25ff...@qg3g2000pbc.googlegroups.com: Once you are able to import ssl, you should be able to use IMAP4_SSL, but that still doesn't entirely explain to me why you got a timeout error with plain IMAP4 and the proper

Re: Reading Live Output from a Subprocess

2012-04-06 Thread John O'Hagan
On Fri, 6 Apr 2012 12:21:51 -0700 (PDT) Dubslow buns...@gmail.com wrote: On Friday, April 6, 2012 3:37:10 AM UTC-5, Nobody wrote: In all probability, this is because the child process (pypy) is buffering its stdout, meaning that the data doesn't get passed to the OS until either the

Re: escaping/encoding/formatting in python

2012-04-06 Thread Nobody
On Fri, 06 Apr 2012 06:22:13 -0700, rusi wrote: But are not such cases rare? They exist, therefore they have to be supported somehow. For example code such as: print '' print str(something) print '' could better be written as print '%s' % str(something) Not if the text between the

[issue14508] gprof2html is broken

2012-04-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Should also use with statements IMO. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14508 ___

[issue14465] xml.etree.ElementTree: add feature to prettify XML output

2012-04-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You may be able to code it entirely in the Python part of the module (adding a new parameter to Element.write and tostring). -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue14488] Can't install Python2.7.2

2012-04-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can you try with 2.7.3? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14488 ___

[issue13903] New shared-keys dictionary implementation

2012-04-06 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: How about changing the method-cache size in a separate patch? On my machine, reducing the method-cache size from 2**10 to 2**9 results in a very small improvement in performance (with the original dict). That way we don't get a performance

[issue8555] tkinter doesn't see _tkinter

2012-04-06 Thread py.user
py.user bugzilla-mail-...@yandex.ru added the comment: testing new e-mail -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8555 ___ ___

[issue14508] gprof2html is broken

2012-04-06 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Hello. I've attached the new version of the patch. I used with statement in add_escapes and the test was rewritten according to David's suggestion. -- Added file: http://bugs.python.org/file25139/gprof.patch

[issue14236] re: Docstring for \s and \S doesn’t mention Unicode

2012-04-06 Thread py.user
Changes by py.user bugzilla-mail-...@yandex.ru: -- title: re: Docstring for \s and \S don’t mention Unicode - re: Docstring for \s and \S doesn’t mention Unicode ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14236

[issue14502] Document better what happens on releasing an unacquired lock

2012-04-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 068a614e9d97 by Sandro Tosi in branch 'default': Issue #14502: it's RuntimeError on 3.3 http://hg.python.org/cpython/rev/068a614e9d97 -- ___ Python tracker

[issue14082] shutil doesn't copy extended attributes

2012-04-06 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: This ticket has a small catch: There are several namespaces. According to http://en.wikipedia.org/wiki/Xattr#Linux : - user: can be set by anyone - trusted: root only - security: root only - system: even root can’t do that, at least not in my vm

[issue14502] Document better what happens on releasing an unacquired lock

2012-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: On Thu, Apr 5, 2012 at 5:38 PM, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr added the comment: Not sure what you're talking about. The doc patch is about unacquired locks, not locks that someone else

[issue14516] test_tools assumes BUILDDIR=SRCDIR

2012-04-06 Thread Ronald Oussoren
New submission from Ronald Oussoren ronaldousso...@mac.com: When I run make tests I get (amongst others) the following test failure: == FAIL: test_noargs (test.test_tools.ReindentTests)

[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant

2012-04-06 Thread Rik Poggi
Rik Poggi poggi.ri...@gmail.com added the comment: Thanks, I'll wait! In the meanwhile I couldn't help to dig a little deeper and found that the Metadata class is currently logging a warning. Should the commands raise something when there's a warning in strict mode? I was playing with the

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: New patch with explicit mutually exclusive flags and better comments. -- Added file: http://bugs.python.org/file25142/ob_is_gc.patch ___ Python tracker rep...@bugs.python.org

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Thanks for your comments Jim. They made me realize that the patch was incomplete. What is needed are two mutually exclusive flags that override the presence of the tp_del slot. This addresses your 1) point and is the case for

[issue14517] Recompilation of sources with Distutils

2012-04-06 Thread Christophe Benoit
New submission from Christophe Benoit cca.ben...@gmail.com: When using distutils to build a C-extension, I have noticed that my C-sources were recompiled as soon as one source file has been touched; from python 2.6. This was not the case with previous python versions. -- assignee:

[issue10576] Add a progress callback to gcmodule

2012-04-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: You are right, I was thinking more of pyobject attributes. I'll fix this then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10576

[issue14310] Socket duplication for windows

2012-04-06 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- Removed message: http://bugs.python.org/msg157189 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14310 ___

[issue14310] Socket duplication for windows

2012-04-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Not much happening on python-dev. Perhaps this is not so controversial. http://www.mail-archive.com/python-dev@python.org/msg66206.html -- ___ Python tracker rep...@bugs.python.org

[issue14310] Socket duplication for windows

2012-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I have one question: you're simply doing a binary copy of the WSAPROTOCOL_INFO structure. Does it mean sharing wouldn't work between e.g. different MSVC builds of Python (if the structure is different), or between a 32-bit and a 64-bit Python?

[issue14310] Socket duplication for windows

2012-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Comments about the patch: - versionadded should be 3.3, not 3.4 - MultiprocessingFunc would deserve a meaningful, PEP8 name; it should also probably be a classmethod on TestSocketSharing - please use PEP8 for comments (a space after the #) - it

[issue14510] Regular Expression + perform wrong repeat

2012-04-06 Thread YunJian
YunJian tld...@yahoo.com.cn added the comment: Well, maybe I had never understood this though I use RE oftenly, this is the first time I met this and in my mind capture should not perform like this, thank you very much! 发件人: Matthew Barnett

[issue14510] Regular Expression + perform wrong repeat

2012-04-06 Thread YunJian
YunJian tld...@yahoo.com.cn added the comment: If that was caused by capture, I think I should learn and use it from start because it gave a result I didn't want but in the way I want, thank you very much, I will be more careful next time, thank you! 发件人:

[issue14310] Socket duplication for windows

2012-04-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: The binary copy: This is a winsock2 feature. There is no difference in layout between 32 bits and 64 bits. I also don't think there is a difference between SDK versions. However, strangely, there is a difference between unicode

[issue14516] test_tools assumes BUILDDIR=SRCDIR

2012-04-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for catching this. The definition of projectbase and srcdir is not clear to me, I always have to use trial and error to find the right one in my tests. The patch must be applied to all three branches; let me know if I should do it.

[issue14455] plistlib unable to read json and binary plist files

2012-04-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Keep it simple: if a few functions work, there is no need at all to add classes. Before doing more work though I suggest you wait for the feedback of the Mac maintainers. -- nosy: +eric.araujo ___

[issue14455] plistlib unable to read json and binary plist files

2012-04-06 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I (as one of the Mac maintainers) like the new functionality, but would like to see some changes: 1) as others have noted it is odd that binary and json plists can be read but not written 2) there need to be tests, and I'd add two or

[issue10197] subprocess.getoutput fails on win32

2012-04-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think that adding safer wrappers and deprecating things are valuable but different bugs. In the short term, we could apply the proposed small patch to just fix the issue at hand. Can one of the Windows experts weigh in? The patch does this:

[issue14412] Sqlite Integer Fields

2012-04-06 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: What steps can we take to further debug/address this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14412 ___

[issue14477] Rietveld test issue

2012-04-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14477 ___ ___ Python-bugs-list

[issue6225] Fixing several minor bugs in Tkinter.Canvas and one in Misc._configure

2012-04-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6225 ___ ___

[issue14469] Python 3 documentation links

2012-04-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14469 ___ ___

[issue14500] test_importlib fails in refleak mode

2012-04-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1c3bd0cc3eca by Brett Cannon in branch 'default': Issue #14500: Fix importlib.test.import_.test_packages to clean up http://hg.python.org/cpython/rev/1c3bd0cc3eca -- nosy: +python-dev

[issue14500] test_importlib fails in refleak mode

2012-04-06 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14500 ___

[issue14341] sporadic (?) test_urllib2 failures

2012-04-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: If one changes the stacklevel in the DeprecationWarnings in the library to '2' instead of '1' (I believe it should be '2'), then an interesting array of deprecation warnings are issued...including from cookiejar code. Most of them are

[issue13749] socketserver can't stop

2012-04-06 Thread Daniel Swanson
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment: what about this? def __init__(...): ... self.stop = False while True: (do stuff) if self.stop: break def quit(or whatever it's called): self.stop = True That would work without the backwards copatability

[issue2377] Replace __import__ w/ importlib.__import__

2012-04-06 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: OK, -v/PYTHONVERBOSE is as done as it is going to be by me. Next up is (attempting) Windows registry stuff. After that I will push to default with test_trace and test_pydoc skipped so others can help me with those. --

[issue14341] sporadic (?) test_urllib2 failures

2012-04-06 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Running test_http_cookiejar and test_urllib2 in succession always fails here. The same thing occurs when running test_urllib2 twice: $ ./python -m test test_http_cookiejar test_urllib2 [1/2] test_http_cookiejar [2/2] test_urllib2 test

[issue13749] socketserver can't stop

2012-04-06 Thread Daniel Swanson
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment: Or even better: def __init__(...): ... self.stop = False while not self.stop: (do stuff) def quit(or whatever it's called): self.stop = True -- ___ Python tracker

[issue14502] Document better what happens on releasing an unacquired lock

2012-04-06 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: On Fri, Apr 6, 2012 at 5:57 AM, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr added the comment: Not sure what you're talking about. The doc patch is about unacquired locks, not locks that someone else (another

[issue14518] Add bcrypt $2a$ to crypt.py

2012-04-06 Thread Daniel Holth
New submission from Daniel Holth dho...@fastmail.fm: The prefix for bcrypt '$2a$' is supported on many systems and could be added to crypt.py Could the documentation mention the available rounds parameter for most of these newer hashes? And that Unicode strings are automatically converted to

[issue14518] Add bcrypt $2a$ to crypt.py

2012-04-06 Thread Daniel Holth
Changes by Daniel Holth dho...@fastmail.fm: -- components: +Library (Lib) versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14518 ___

[issue14502] Document better what happens on releasing an unacquired lock

2012-04-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It doesn't matter *how* you get to the situation where you are releasing a lock that hasn't been acquired, the point is to document what actually happens when you do the release. And just yesterday I needed to know this, since I have a

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-06 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: I don't think 2 is important. Does the context of the call matter? It is merely a question of whether a finalizer will or will not do something trivial. It would affect how I would write such functions. If I knew that it wouldn't be

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-06 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: On Fri, Apr 6, 2012 at 12:51 PM, Jim Jewett rep...@bugs.python.org wrote: __del__ methods do run, even if an object was collected by the cycle detector. And they can't do any harm that couldn't also be done by a C finalizer. No, if

[issue2377] Replace __import__ w/ importlib.__import__

2012-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: OK, -v/PYTHONVERBOSE is as done as it is going to be by me. Next up is (attempting) Windows registry stuff. After that I will push to default with test_trace and test_pydoc skipped so others can help me with those. Skipped? How so? I think it

[issue14478] Decimal hashing very slow, could be cached

2012-04-06 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: @Jimbofbx: You are correct that a value has to be reserved to indicate that the hash hasn't been (or can't be) computed, but python uses -1 instead of zero. An integer can't return itself because a hash is an unboxed integer; that said,

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Right Daniel, but currently an exception is made for Generator objects. The generator can tell that the finalizer won't do anything and then allow collection regardless. It knows the finalizer and that in its state it will at

[issue14511] _static/opensearch.xml for Python 3.2 docs directs searches to 3.3 docs

2012-04-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Will fix, thanks for the report. -- assignee: docs@python - eric.araujo versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14511

[issue14455] plistlib unable to read json and binary plist files

2012-04-06 Thread d9pouces
d9pouces pyt...@19pouces.net added the comment: I'm working on a class, BinaryPlistParser, which allow to both read and write binary files. I've also added a parameter fmt to writePlist and readPlist, to specify the format ('json', 'xml1' or 'binary1', using XML by default). These constants

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-06 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: Are __del__ and tp_del getting conflated in this conversation? I don't see a __del__ method on generator objects: filfre:$ python3.1 Python 3.1.2 (r312:79147, Dec 9 2011, 20:47:34) [GCC 4.4.3] on linux2 (i for i in range(5)).__del__

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-06 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: typeobject.c: TPSLOT(__del__, tp_del, slot_tp_del, NULL, ), I'm not super-familiar with how typeobjects and slots work, but I imagine that if a type is defined with a __del__ member, then the tp_del slot is automatically filled

[issue14518] Add bcrypt $2a$ to crypt.py

2012-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This requires someone to propose a patch. If you are interested, you can read the Developer's Guide - http://docs.python.org/devguide/ - for more information on how to contribute. -- nosy: +jafo, pitrou stage: - needs patch

[issue14468] Update cloning guidelines in devguide

2012-04-06 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14468 ___ ___

[issue14468] Update cloning guidelines in devguide

2012-04-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I agree, for reasons stated. Having to skip over the wrong instructions made getting started a bit harder for me. I also think TortoiseHG should get more than just a mention. The initial re-creation of the recent DAG for each branch when

  1   2   >