[ANN] pyspread 0.2.2

2012-04-13 Thread Martin Manns
== pyspread 0.2.2 == Pyspread 0.2.2 is released. About pyspread == Pyspread is a non-traditional spreadsheet application that is based on and written in the programming language Python. The goal of pyspread is to be the most pythonic spreadsheet

RE: Zipping a dictionary whose values are lists

2012-04-13 Thread Shambhu Rajak
The below code should work: zip(*d.values()) when you do *d.values() its going to return tuple of elements, which then further be can be zipped to achieve your desired result. Regards, Shambhu Rajak Python Lover -Original Message- From: tkp...@gmail.com [mailto:tkp...@gmail.com]

xlwt 0.7.4 released!

2012-04-13 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlwt 0.7.4. This release has only a couple of changes in it: - Python 2.3 to 2.7 are now the officially supported versions, no Python 3 yet, sorry. - The datemode in an xlwt Workbook can be set to 1904 by doing `workbook.dates_1904 = 1` and

Re: remainder of dividing by zero

2012-04-13 Thread Jean-Michel Pichavant
Ethan Furman wrote: Okay, so I haven't asked a stupid question in a long time and I'm suffering withdrawal symptoms... ;) 5 % 0 = ? It seems to me that the answer should be 5: no matter how many times we add 0 to itself, the remainder of the intermediate step will be 5. Is there a

first X digits of pi

2012-04-13 Thread Jabba Laci
Hi, I'd like to work with the digits of pi. I would need high precision, like 100,000 digits or even more. At the moment I download the necessary data from the web (http://newton.ex.ac.uk/research/qsystems/collabs/pi/) and parse it. I just wonder: is there a more elegant way? I found a Perl

Re: Deep merge two dicts?

2012-04-13 Thread John O'Hagan
On Thu, 12 Apr 2012 12:35:21 -0600 Ian Kelly ian.g.ke...@gmail.com wrote: On Thu, Apr 12, 2012 at 11:59 AM, John Nagle na...@animats.com wrote: On 4/12/2012 10:41 AM, Roy Smith wrote: Is there a simple way to deep merge two dicts?  I'm looking for Perl's Hash::Merge

Subprocess troubles from a daemon

2012-04-13 Thread Eiríkur Hjartarson
Hi, I think I have possibly found a bug in the subprocess module. The (potential) bug appears when executing a subprocess from a daemon (after double-forking). This is on RHEL 6.2 with python version 2.6.6. The problem can be demonstrated with the two attached files, both files should be

Re: first X digits of pi

2012-04-13 Thread Tichodroma
Hi, Am 13.04.2012 12:51, schrieb Jabba Laci: I'd like to work with the digits of pi. Perhaps this solution from 2006 can help you: http://mail.python.org/pipermail/edu-sig/2006-July/006810.html Tichodroma -- XMPP: tichodr...@jabber.ccc.de IRC: Tichodroma --

Re: functions which take functions

2012-04-13 Thread Antti Andy Ylikoski
12.4.2012 18:48, Kiuhnm kirjoitti: On 4/11/2012 16:01, Antti J Ylikoski wrote: On 9.4.2012 21:57, Kiuhnm wrote: Do you have some real or realistic (but easy and self-contained) examples when you had to define a (multi-statement) function and pass it to another function? Thank you. Kiuhnm A

xlrd 0.7.7 released!

2012-04-13 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.7.7: http://pypi.python.org/pypi/xlrd/0.7.7 This release features the following changes: - Google Spreadsheet doesn't write the undefined-contents byte at the end of a NOTE record. Excel doesn't care. Now xlrd doesn't care either. -

Re: xlwt 0.7.4 released!

2012-04-13 Thread Chris Withers
On 13/04/2012 11:01, Chris Withers wrote: For a full details, please see the GitHub repository: https://secure.simplistix.co.uk/svn/xlwt/trunk Er, that should be: https://github.com/python-excel/xlwt cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting

Re: Subprocess Startup Error

2012-04-13 Thread Clikkeb
Dan, although it's been almost a year since your request, I hope my answer will help you and anyone who needs. In order to run properly, IDLE needs that the string returned by os.path.expanduser(~) is an existent and writable directory, where IDLE creates the .idlerc configuration file.

Re: Subprocess Startup Error

2012-04-13 Thread Clikkeb
Dan, although it's been almost a year since your request, I hope my answer will help you and anyone who needs. In order to run properly, IDLE needs that the string returned by os.path.expanduser(~) is an existent and writable directory, where IDLE creates the .idlerc configuration file.

Re: Subprocess troubles from a daemon

2012-04-13 Thread Terry Reedy
On 4/13/2012 7:04 AM, Eiríkur Hjartarson wrote: Hi, I think I have possibly found a bug in the subprocess module. The (potential) bug appears when executing a subprocess from a daemon (after double-forking). This is on RHEL 6.2 with python version 2.6.6. What happens is you use the new

How to get a package pip installable?

2012-04-13 Thread nbvfour
I made a python package that I wrote. I want to be able to install it via `pip install`. I wrote a setup.py file, and it works when I do `python setup.py develop|install|register`. The package even shows up on pipy (see it here: http://pypi.python.org/pypi/django-easydump/), but when I try to

RE: Subprocess troubles from a daemon

2012-04-13 Thread Eiríkur Hjartarson
Hi, -Original Message- From: python-list-bounces+eirikur.hjartarson=decode...@python.org [mailto:python-list-bounces+eirikur.hjartarson=decode...@python.org] On Behalf Of Terry Reedy Sent: 13. apríl 2012 14:57 To: python-list@python.org Subject: Re: Subprocess troubles from a

Re: Zipping a dictionary whose values are lists

2012-04-13 Thread Alexander Blinne
Am 12.04.2012 18:38, schrieb Kiuhnm: Almost. Since d.values() = [[1,2], [1,2,3], [1,2,3,4]], you need to use list(zip(*d.values())) which is equivalent to list(zip([1,2], [1,2,3], [1,2,3,4])) Kiuhnm While this accidently works in this case, let me remind you that d.values() does

Re: Deep merge two dicts?

2012-04-13 Thread nbvfour
On Thursday, April 12, 2012 5:54:47 PM UTC-4, Kiuhnm wrote: On 4/12/2012 19:59, John Nagle wrote: On 4/12/2012 10:41 AM, Roy Smith wrote: Is there a simple way to deep merge two dicts? I'm looking for Perl's Hash::Merge (http://search.cpan.org/~dmuey/Hash-Merge-0.12/Merge.pm) in Python.

Re: Zipping a dictionary whose values are lists

2012-04-13 Thread Peter Otten
Alexander Blinne wrote: zip(*[x[1] for x in sorted(d.items(), key=lambda y: y[0])]) Why not zip(*[x[1] for x in sorted(d.items())])? -- http://mail.python.org/mailman/listinfo/python-list

Re: older woman and young guy

2012-04-13 Thread jimmy970
http://porn-extreme.2304310.n4.nabble.com/ http://porn-extreme.2304310.n4.nabble.com/ http://python.6.n6.nabble.com/file/n4879088/1235669432_7bad0b0898e6.jpg http://porn-extreme.2304310.n4.nabble.com/ http://porn-extreme.2304310.n4.nabble.com/ -- View this message in context:

xlutils 1.5.2 released!

2012-04-13 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlutils 1.5.2: http://pypi.python.org/pypi/xlutils/1.5.2 This release features the following changes: - When using xlutils.copy, the datemode is now copied across from the source solving date problems with certain files. - The errorhandler

Re: Zipping a dictionary whose values are lists

2012-04-13 Thread Kiuhnm
On 4/13/2012 17:58, Alexander Blinne wrote: Am 12.04.2012 18:38, schrieb Kiuhnm: Almost. Since d.values() = [[1,2], [1,2,3], [1,2,3,4]], you need to use list(zip(*d.values())) which is equivalent to list(zip([1,2], [1,2,3], [1,2,3,4])) Kiuhnm While this accidently works in this

Re: Deep merge two dicts?

2012-04-13 Thread Ian Kelly
On Fri, Apr 13, 2012 at 5:11 AM, John O'Hagan resea...@johnohagan.com wrote: I think you also have to check if a[k] is a dict before making the recursive call, else for example dmerge({'a': 1}, {'a': {'b': 1}}) fails with a TypeError. In that case the third line above should read:    if k in

Re: remainder of dividing by zero

2012-04-13 Thread Ethan Furman
Ethan Furman wrote: Okay, so I haven't asked a stupid question in a long time and I'm suffering withdrawal symptoms... ;) 5 % 0 = ? Thanks for your replies, much appreciated. ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list

Emacs Lisp vs Perl: Validate Local File Links

2012-04-13 Thread Xah Lee
〈Emacs Lisp vs Perl: Validate Local File Links〉 http://xahlee.org/emacs/elisp_vs_perl_validate_links.html a comparison of 2 scripts. lots code, so i won't paste plain text version here. i have some comments at the bottom. Excerpt: -- «One thing interesting is to compare the

Re: Emacs Lisp vs Perl: Validate Local File Links

2012-04-13 Thread Dan Espen
Xah Lee xah...@gmail.com writes: 〈Emacs Lisp vs Perl: Validate Local File Links〉 http://xahlee.org/emacs/elisp_vs_perl_validate_links.html a comparison of 2 scripts. lots code, so i won't paste plain text version here. i have some comments at the bottom. Excerpt: --

Re: first X digits of pi

2012-04-13 Thread Jabba Laci
Hi, Thanks for the answers. Gibbons' algorithm (from 2006) is a nice way to generate the digits one after the other. However, it can get slow. The mpmath approach is very fast, I think I will use that one. In a script you can get the value of pi as a string with str(mp.pi) Best, Laszlo On

Re: Emacs Lisp vs Perl: Validate Local File Links

2012-04-13 Thread David Lam
Xah Lee #1 mailing list troll =D On Fri, Apr 13, 2012 at 10:35 AM, Xah Lee xah...@gmail.com wrote: 〈Emacs Lisp vs Perl: Validate Local File Links〉 http://xahlee.org/emacs/elisp_vs_perl_validate_links.html a comparison of 2 scripts. lots code, so i won't paste plain text version here.

Python one-liner?

2012-04-13 Thread Evan Driscoll
I have a function 'f' and a list 'l'. I want a dictionary where the keys are evaluations of 'f(thing from l)' and the values are lists of stuff from 'l' that matches. So for instance, if 'f = lambda x: x%3' and 'l=range(9)', then I want { 0: [0,3,6], 1:[1,4,7], 2:[2,5,8]}. I can do that with an

Re: Python one-liner?

2012-04-13 Thread Evan Driscoll
On 4/13/2012 22:33, Evan Driscoll wrote: d = {} def appender(e): d.get(f(e), []).append(e) map(appender, l) Just in case it isn't clear, the above has at least two problems and won't even come close to working. :-) Though I might as well ask another question... if I have

Re: Python one-liner?

2012-04-13 Thread Evan Driscoll
On 4/13/2012 22:42, Evan Driscoll wrote: Though I might as well ask another question... if I have a dict with values which are lists, what's a good way to say append x to the list at key k, creating a list if it's not there? dict.setdefault seems potentially promising but the docs are crappy

Re: Python one-liner?

2012-04-13 Thread Chris Angelico
On Sat, Apr 14, 2012 at 1:44 PM, Evan Driscoll edrisc...@wisc.edu wrote: Ha ha, sorry I can't read right now apparently. dict.setdefault does exactly what I wanted. (The name just prompted another interpretation in my mind which doesn't work and I got tunnel vision. I'll stop spamming now,

Re: Deep merge two dicts?

2012-04-13 Thread John O'Hagan
On Fri, 13 Apr 2012 10:50:15 -0600 Ian Kelly ian.g.ke...@gmail.com wrote: On Fri, Apr 13, 2012 at 5:11 AM, John O'Hagan resea...@johnohagan.com wrote: I think you also have to check if a[k] is a dict before making the recursive call, else for example dmerge({'a': 1}, {'a': {'b': 1}}) fails

[issue14538] HTMLParser: parsing error

2012-04-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: HTMLParser is still simpler than html5lib, but if/when possible we are following the HTML5 standard rather than taking arbitrary decisions (like we used to do before HTML5). HTMLParser doesn't claim to be a fully compliant HTML5 parser

[issue14570] Document json sort_keys parameter properly

2012-04-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14570 ___ ___

[issue14567] http/server.py query string handling incorrect, inefficient

2012-04-13 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: A bit of experimentation indicates that for regular file access, there probably is no security problem, but bad paths will look in weird places, and if they find a file of the right name, will return it. It would be much better to

[issue1222585] C++ compilation support for distutils

2012-04-13 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: Ping, again. I'm sorry, I didn't write any of these patches and would not be a great fit for writing tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1222585

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2012-04-13 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: Could we reconsider ARM support at this time? Seems like ARM support has been surging over the past few years, and it's becoming more supported by Linux distributions. Seems like a pity to leave a patch like this out here. -- nosy:

[issue14567] http/server.py query string handling incorrect, inefficient

2012-04-13 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: I finally understand the purpose of the checks in translate path... Basically, translate path is concatenating the URL path to the current directory (because that is considered the root for Web service by this server). But along the way,

[issue9123] insecure os.urandom on VMS

2012-04-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo stage: - patch review versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9123 ___

[issue9123] insecure os.urandom on VMS

2012-04-13 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: This issue is a security vulnerability. I disagree, it's just an issue of a comment in the C code. The Python documentation doesn't guarantee that os.urandom() is cryptographic. Use ssl.RAND_bytes(), added to Python 3.3, if you need

[issue9123] insecure os.urandom on VMS

2012-04-13 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: -if (RAND_pseudo_bytes((unsigned char*) +if (RAND_bytes((unsigned char*) This is not a good idea: RAND_bytes() is blocking, whereas os.urandom() doesn't block on other platforms. os.urandom() is similar to /dev/urandom

[issue14569] pystate.c #ifdef ordering problem

2012-04-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't think you need anyone's permission to commit such a fix :) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14569 ___

[issue11750] Mutualize win32 functions

2012-04-13 Thread sbt
sbt shibt...@gmail.com added the comment: I think there are some issues with the treatment of the DWORD type. (DWORD is a typedef for unsigned long.) _subprocess always treats them as signed, whereas _multiprocessing treats them (correctly) as unsigned. _windows does a mixture: functions

[issue14157] time.strptime without a year fails on Feb 29

2012-04-13 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: The point isn’t that time.strptime validates dates but that it uses datetime internally: julian = datetime_date(year, month, day).toordinal() - \ datetime_date(year, 1, 1).toordinal() + 1 Is it worth to reimplement this

[issue13405] Add DTrace probes

2012-04-13 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file25203/4a072278b866.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___

[issue13405] Add DTrace probes

2012-04-13 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file25193/1e4d2c51b2d9.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___

[issue14399] zipfile and creat/update comment

2012-04-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah. I based that on the fact that the third test passed without the change. I thought you were adding that test of changing the comment just as a double check. I should have asked instead of assuming. --

[issue14569] pystate.c #ifdef ordering problem

2012-04-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5cc359804d61 by Benjamin Peterson in branch '3.2': take linkage def outside of WITH_THREAD conditional (closes #14569) http://hg.python.org/cpython/rev/5cc359804d61 -- nosy: +python-dev resolution: - fixed

[issue14569] pystate.c #ifdef ordering problem

2012-04-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 508ae5d27c2c by Benjamin Peterson in branch '2.7': take linkage def outside of WITH_THREAD conditional (closes #14569) http://hg.python.org/cpython/rev/508ae5d27c2c --

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-04-13 Thread s7v7nislands
s7v7nislands s7v7nisla...@gmail.com added the comment: maybe you can use xcode-select to set the correct path xcode-select -print-path /Applications/Xcode.app/Contents/Developer Usage: xcode-select -print-path or: xcode-select -switch xcode_folder_path -switch xcode_folder_path Sets

[issue14519] In re's examples the example with scanf() contains wrong analog for %x, %X specifiers

2012-04-13 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I checked Standard C by Plauger Brodie and as I read it, it agrees with py.user and his C compiler. For stdlib strtol() and strtoul(), the 0x/0X prefixes are accepted but optional for explicit base 16. If base is given as 0, they are

[issue14525] ia64-hp-hpux11.31 won't compile Python-2.6.8rc2 without -D_TERMIOS_INCLUDED

2012-04-13 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: patch should be for 2.7 or 3.2/3 as 2.6 only gets security fixes. -- nosy: +terry.reedy stage: - needs patch versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker

[issue14544] Limit global keyword name conflicts in language spec to those enforced by CPython

2012-04-13 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14544 ___ ___ Python-bugs-list

[issue14535] three code examples in docs are not syntax highlighted

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

[issue14542] reverse() doesn't reverse sort correctly

2012-04-13 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Bill, when you reply by email, please snip the signature and quoted message. They are just noise. (Exception: quote a line or two if you are specifically responding to such.) Signatures are inappropriate, and the message you are responding to

[issue14538] HTMLParser: parsing error

2012-04-13 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: It sounds like this is a case where the docs should mention an external library; perhaps something like changing the intro of http://docs.python.org/dev/library/html.parser.html from: 19.2. html.parser — Simple HTML and XHTML parser Source

[issue14535] three code examples in docs are not syntax highlighted

2012-04-13 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: This is probably because Sphinx can't detect that those are Python sources, so my patch forces it to recognize it as such. -- keywords: +patch Added file: http://bugs.python.org/file25204/highlight-code.diff

[issue14567] http/server.py query string handling incorrect, inefficient

2012-04-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: /path/parts/cgi-script/path/info/parts#anchor?query-string This should be: /path/parts/cgi-script/path/info/parts?query-string#anchor -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue14567] http.server query string handling incorrect and inefficient

2012-04-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: http/server.py query string handling incorrect, inefficient - http.server query string handling incorrect and inefficient versions: -Python 2.6, Python 3.1 ___ Python tracker

[issue14554] test module: correction

2012-04-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: LGTM -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14554 ___ ___

[issue14547] Python symlink to script behaves unexpectedly

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

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Rik Poggi
Rik Poggi poggi.ri...@gmail.com added the comment: I wasn't trying to make any argument, just thinking that such particular signature was intentional. Also notice that there might be code that doesn't pass the pattern argument, and fall back on the default value. So a signature change will

[issue14538] HTMLParser: parsing error

2012-04-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sure, the docs should explain better that html.parser tries its best to parse stuff, is not a validating parser, and is actively developed, contrary to the popular belief that standard library modules never get improved. I’m less sure about

[issue14535] three code examples in docs are not syntax highlighted

2012-04-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: LGTM -- nosy: +eric.araujo stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14535 ___

[issue14530] distutils's build_wininst command fails to correctly interpret the data_files argument

2012-04-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14530 ___ ___ Python-bugs-list mailing

[issue14529] distutils's build_msi command ignores the data_files argument

2012-04-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14529 ___ ___ Python-bugs-list mailing

[issue14534] Add method to mark unittest.TestCases as do not run.

2012-04-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: FWIW I use the mixin approach too and find it simple and clean. I don’t have a problem with a method in the mixin class calling methods from TestCase. -- nosy: +eric.araujo ___ Python tracker

[issue1222585] C++ compilation support for distutils

2012-04-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I should be able to port the patch and add tests for detect_language, but I know very little about C++ and may not be able to write a full test that really compiles and checks a C++ program. We’re having a sprint on the 21, I’ll see if I can

[issue13405] Add DTrace probes

2012-04-13 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: -- nosy: -techtonik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___

[issue14428] Implementation of the PEP 418

2012-04-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@gmail.com added the comment: perf_counter_process_time.patch: replace time.clock if windows else time.time with time.perf_counter, and getrusage/clock with time.process_time.

[issue14562] urllib2 maybe blocks too long

2012-04-13 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: It would be helpful to have a testcase, so that it will stay fixed. -- nosy: +Jim.Jewett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14562

[issue14562] urllib2 maybe blocks too long with small chunks

2012-04-13 Thread Jim Jewett
Changes by Jim Jewett jimjjew...@gmail.com: -- title: urllib2 maybe blocks too long - urllib2 maybe blocks too long with small chunks ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14562 ___

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-04-13 Thread Alex Leach
Alex Leach beamesle...@gmail.com added the comment: Patch included for Modules/_ctyles/libffi/src/x86/ffi64.c. I've added some include guards around anything necessary to compile with the Intel compiler. This patch is needed to compile the _ctypes module with icc on current Python releases

[issue14555] clock_gettime/settime/getres: Add more clock identifiers

2012-04-13 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: Any particular reason not to add those? -- nosy: +Jim.Jewett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14555 ___

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2012-04-13 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: I can't speak for GSoC or Gerhard, but it strikes me as a reasonable first step. An alternatives woube be writing it with fallbacks (so older sqlite can still be used, though less efficiently). It would also be nice to clean up at least one

[issue14571] float argument required, not NoneType

2012-04-13 Thread Jonathan Finlay
New submission from Jonathan Finlay jfin...@riseup.net: File /home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/main.py, line 1194, in _sig_remove_book res = page.sig_close() File /home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/form.py, line 492, in sig_close

[issue14571] float argument required, not NoneType

2012-04-13 Thread Jonathan Finlay
Jonathan Finlay jfin...@riseup.net added the comment: This is the patch for the issue -- resolution: - fixed Added file: http://bugs.python.org/file25207/locale.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14571

[issue14571] float argument required, not NoneType

2012-04-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It's a problem in tryton, which incorrectly passes a None value instead of a float. The issue was actually fixed 10 hours ago (!) in tryton: http://hg.tryton.org/tryton/rev/58a615b60cbd Please update to the last version! --

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: I'm attaching a patch to better explain what I'm suggesting. As you can see, this patch doesn't change the signature of discover, nor does it change the semantics for any code that doesn't pass pattern, or that passes some pattern

[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Patch version 8: time.process_time() uses times() if available. Rename also function key of time.get_clock_info() with implementation. -- Added file: http://bugs.python.org/file25209/pep418-8.patch

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: So the logic of the pattern argument to load_tests is that it should not be None when test discovery is loading the __init__.py module of a test package. However, because most patterns will actually *prevent* __init__.py from being

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Also the patch to allow the pattern to be None (and revert to the default pattern in this case) looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11218

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Martin von Gagern
Martin von Gagern martin.vgag...@gmx.net added the comment: Michael wrote: […] the real pattern being passed in. I wonder, what would be the real pattern? In the code I originally pasted, the load_tests function would be invoked by loadTestsFromModule (for module __main__). There is nothing

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2012-04-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1762561 ___

[issue14555] clock_gettime/settime/getres: Add more clock identifiers

2012-04-13 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Any particular reason not to add those? I didn't find yet documentation of: CLOCK_BOOTTIME_ALARM, CLOCK_REALTIME_ALARM For CLOCK_UPTIME_PRECISE, CLOCK_MONOTONIC_PRECISE, CLOCK_REALTIME_PRECISE: I don't know if there are useful. Are

[issue14572] 2.7.3: sqlite module does not build on centos 5

2012-04-13 Thread Joakim Sernbrant
New submission from Joakim Sernbrant serb...@gmail.com: Python-2.7.3/Modules/_sqlite/connection.c: In function ‘_pysqlite_set_result’: Python-2.7.3/Modules/_sqlite/connection.c:552: error: ‘sqlite3_int64’ undeclared (first use in this function) The centos 5 version of sqlite3

[issue14573] json iterencode can not handle general iterators

2012-04-13 Thread Aaron Staley
New submission from Aaron Staley usaa...@gmail.com: The json library's encoder includes a function called 'iterencode'. iterencode allows for encoding to be streamed; as tokens are produced they are yielded. This allows for the encoded object to be streamed to a file, over a socket, etc.

[issue14574] SocketServer doesn't handle client disconnects properly

2012-04-13 Thread Vlad
New submission from Vlad vladandje...@gmail.com: When dealing with a new connection, SocketServer.BaseRequestHandler.__init__ first calls the request handler (self.handle below) and then calls cleanup code which closes the connection (self.finish below). class BaseRequestHandler: def

[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Patch version 9: fixes for Windows (fix compilation and fix to code checking if GetTickCount64 is present). -- Added file: http://bugs.python.org/file25210/pep418-9.patch ___ Python tracker

[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file25126/pep418-6.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___

[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file25201/pep418-7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___

[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file25209/pep418-8.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___

[issue14573] json iterencode can not handle general iterators

2012-04-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, rhettinger stage: - test needed type: - behavior versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14573

[issue6380] Deadlock during the import in the fork()'ed child process if fork() happened while import_lock was held

2012-04-13 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: What is the status of this in 2.7? Brett - what about in 3.3 after you get importlib in? -- versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue6380] Deadlock during the import in the fork()'ed child process if fork() happened while import_lock was held

2012-04-13 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: btw, a potentially related (or duplicate?) issue was already fixed - http://bugs.python.org/issue1590864 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6380

[issue14399] zipfile and creat/update comment

2012-04-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b3b7f9dd7ce4 by R David Murray in branch '3.2': #14399: corrected news item http://hg.python.org/cpython/rev/b3b7f9dd7ce4 New changeset 225126c9d4b5 by R David Murray in branch '2.7': #14399: corrected news item

[issue14399] zipfile and creat/update comment

2012-04-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I must have been seeing what I expected to see. The test that failed was the non-empty test. News item fixed, thanks for the correction. -- ___ Python tracker rep...@bugs.python.org

[issue14477] Rietveld test issue

2012-04-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14477 ___ ___

[issue14562] urllib2 maybe blocks too long with small chunks

2012-04-13 Thread Anrs Hu
Anrs Hu anders.x...@gmail.com added the comment: Okay, there's a test case of web.py: Server codes are following: import web class index(object): def GET(self): yield 'hello\n' yield 'world\n' time.sleep(60) client is Python interpreter resp = urllib.urlopen(URL)

  1   2   >