OSCON Call for Proposals (deadline 1/12)

2011-12-17 Thread Aahz
DEADLINE Thursday January 12 OSCON (O'Reilly Open Source Convention), the premier Open Source gathering, will be held in Portland, OR July 16-20. We're looking for people to deliver tutorials and shorter presentations. http://www.oscon.com/oscon2012 http://www.oscon.com/oscon2012/public/cfp/197

calculate difference between two timestamps [newbie]

2011-12-17 Thread nukeymusic
I'm trying to calculate the difference in seconds between two timestamps, but I'm totally stuck: date1=Dec-13-09:47:12 date2=Dec-13-09:47:39 diff=datetime.date(date2)-datetime.date(date1) Traceback (most recent call last): File stdin, line 1, in module TypeError: an integer is required

Re: calculate difference between two timestamps [newbie]

2011-12-17 Thread Dave Angel
On 12/17/2011 05:19 AM, nukeymusic wrote: I'm trying to calculate the difference in seconds between two timestamps, but I'm totally stuck: date1=Dec-13-09:47:12 date2=Dec-13-09:47:39 diff=datetime.date(date2)-datetime.date(date1) Traceback (most recent call last): File stdin, line 1,

Re: calculate difference between two timestamps [newbie]

2011-12-17 Thread Vincent Vande Vyvre
Le 17/12/11 11:19, nukeymusic a crit: I'm trying to calculate the difference in seconds between two timestamps, but I'm totally stuck: date1="Dec-13-09:47:12" date2="Dec-13-09:47:39" diff=datetime.date(date2)-datetime.date(date1)

Re: calculate difference between two timestamps [newbie]

2011-12-17 Thread Vince
On Sat, Dec 17, 2011 at 02:19:44AM -0800, nukeymusic wrote: I'm trying to calculate the difference in seconds between two timestamps, but I'm totally stuck: date1=Dec-13-09:47:12 date2=Dec-13-09:47:39 diff=datetime.date(date2)-datetime.date(date1) Traceback (most recent call last): File

Re: calculate difference between two timestamps [newbie]

2011-12-17 Thread Günther Dietrich
nukeymusic nukeymu...@gmail.com wrote: I'm trying to calculate the difference in seconds between two [...] import datetime date1 = datetime.datetime.strptime(Dec-13-09:47:12, %b-%d-%H:%M:%S) date2 = datetime.datetime.strptime(Dec-13-09:47:39, %b-%d-%H:%M:%S) delta = date2 - date1

Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/

2011-12-17 Thread prabhakaran k
Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Eelco
This is a follow-up discussion on my earlier PEP-suggestion. Ive integrated the insights collected during the previous discussion, and tried to regroup my arguments for a second round of feedback. Thanks to everybody who gave useful feedback the last time. PEP Proposal: Pythonification of the

Re: Help about Xlib Library in Python

2011-12-17 Thread Alexander Kapps
On 16.12.2011 05:55, 阮铮 wrote: Hi, A question about Xlib Library in Python troubled me for several days and I finally found this email list. I hope someone could answer my question. I think it is easy for experienced user. I would like to write a small script to response my mouse click in root

Re: Help about Xlib Library in Python

2011-12-17 Thread 88888 Dihedral
On Saturday, December 17, 2011 11:22:32 PM UTC+8, Alexander Kapps wrote: On 16.12.2011 05:55, 阮铮 wrote: Hi, A question about Xlib Library in Python troubled me for several days and I finally found this email list. I hope someone could answer my question. I think it is easy for

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Steven D'Aprano
On Sat, 17 Dec 2011 06:38:22 -0800, Eelco wrote: One can not state in a single line what the asterisk operator does; Multiplication, exponentiation, sequence packing/unpacking, and varargs. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Roy Smith
In article 4eeccabe$0$29979$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sat, 17 Dec 2011 06:38:22 -0800, Eelco wrote: One can not state in a single line what the asterisk operator does; Multiplication, exponentiation, sequence

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Chris Angelico
On Sun, Dec 18, 2011 at 4:14 AM, Roy Smith r...@panix.com wrote: Import wildcarding? That's not an operator, any more than it is when used in filename globbing. The asterisk _character_ has many meanings beyond those of the operators * and **. ChrisA --

Python install regression test fail

2011-12-17 Thread John Nagle
Here's a result from make, make test of a fresh download of Python 2.7.2 on Linux 2.6.18-1.2239.fc5smp: 350 tests OK. 2 tests failed: test_os test_site 35 tests skipped: test_aepack test_al test_applesingle test_bsddb185 test_bsddb3 test_cd test_cl test_codecmaps_cn

Bug in multiprocessing.reduction?

2011-12-17 Thread Yaşar Arabacı
You can see my all code below, theoritically that code should work I guess. But I keep getting this error: [SUBWARNING/MainProcess] thread for sharing handles raised exception : --- Traceback (most recent call last): File

Re: % is not an operator [was Re: Verbose and flexible args and kwargs syntax]

2011-12-17 Thread Grant Edwards
On 2011-12-16, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Eelco wrote: the actual english usage of the phrase, which omits the negation completely :). (I could care less) No, that's the American usage. That's the _ignorant_ American usage. Americans with a clue use the couldn't

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Eelco
On Dec 17, 6:18 pm, Chris Angelico ros...@gmail.com wrote: On Sun, Dec 18, 2011 at 4:14 AM, Roy Smith r...@panix.com wrote: Import wildcarding? That's not an operator, any more than it is when used in filename globbing. The asterisk _character_ has many meanings beyond those of the

Re: logging issues

2011-12-17 Thread Vinay Sajip
On Dec 13, 5:03 pm, Andrea Crotti andrea.crott...@gmail.com wrote: The set_verbosity seems to do its job, the second is also called and the filters are added but I don't see the output formatted as it should.. Generally speaking, you should only do logging configuration once, as Jean-Michel

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Steven D'Aprano
On Sat, 17 Dec 2011 12:11:04 -0800, Eelco wrote: One can not state in a single line what the asterisk operator does; ... To cut short this line of discussion; I meant the asterisk symbol purely in the context of collection packing/unpacking. Of course it has other uses too. Even that

PyCon US 2012 sprints

2011-12-17 Thread Ricardo Bánffy
Hi folks. Next March I'm planning to attend PyCon US (for the first time) and stay for the sprints. I am not sure how they work, however. Are there any first-timer guide to PyCon sprints? -- Ricardo Bánffy http://www.dieblinkenlights.com http://twitter.com/rbanffy --

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Steven D'Aprano
On Sat, 17 Dec 2011 06:38:22 -0800, Eelco wrote: Type constraints: In case the asterisk is not used to signal unpacking, but rather to signal packing, its semantics is essentially that of a type constraint. Type constraint normally refers to type restrictions on *input*: it is a

Parsing stream of JSON objects incrementally

2011-12-17 Thread Evan Driscoll
I'm interested in writing two programs, A and B, which communicate using JSON. At a high level, A wants to transfer an array to B. However, I would very much like to make it possible for A and B to run in parallel, so my current plan is to have A output and B read a *sequence* of JSON objects. In

Re: AttributeError in with statement (3.2.2)

2011-12-17 Thread Terry Reedy
On 12/16/2011 8:26 PM, Steven D'Aprano wrote: On Fri, 16 Dec 2011 17:05:57 -0500, Terry Reedy wrote: It is am important distinction [unbound versus bound] It is not an important distinction, and I am not confusing the two. So we agree on the distinction but disagree on its importance.

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Chris Angelico
On Sun, Dec 18, 2011 at 11:59 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: The usual test of a weakly-typed language is that 1+1 succeeds (and usually gives 2), as in Perl but not Python. I believe you are confusing weak typing with dynamic typing, a common mistake. I'd go

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Evan Driscoll
On 12/17/2011 20:45, Chris Angelico wrote: I'd go stronger than usually there. If 1+1 results in 11, then that's not weak typing but rather a convenient syntax for stringification - if every object can (or must) provide a to-string method, and concatenating anything to a string causes it to be

Re: root[:]=[root,root]

2011-12-17 Thread Terry Reedy
On 12/16/2011 9:40 PM, YAN HUA wrote: Hi,all. Could anybody tell how this code works? root = [None, None] root[:] = [root, root] root [[...], [...]] root[0] [[...], [...]] root[0][0][1][1][0][0][0][1][1] [[...], [...]] A simpler example: l = [] l.append(l) l [[...]] Python is

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Evan Driscoll
On 12/17/2011 21:03, Evan Driscoll wrote: Personally I'd put Python even weaker on account of things such as '[1,2]*2' and '1 True' being allowed, but on the other hand it doesn't allow 1+1. Not to mention duck typing, which under my definition I'd argue is pretty much the weakest of typing

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Steven D'Aprano
On Sun, 18 Dec 2011 13:45:35 +1100, Chris Angelico wrote: On Sun, Dec 18, 2011 at 11:59 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: The usual test of a weakly-typed language is that 1+1 succeeds (and usually gives 2), as in Perl but not Python. I believe you are confusing

Newman's community structure algorithms

2011-12-17 Thread Shafique, M. (UNU-MERIT)
Hello, I am in need of the python or matlab implementation of following algorithms: Newman, M. E. J. 2006. Modularity and community structure in networks. PNAS 103(23): 8577-8582. Newman, M. E. J. and Leicht, E. A. 2007. Mixture models and exploratory analysis in networks. PNAS 104(23):

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Chris Angelico
On Sun, Dec 18, 2011 at 2:03 PM, Evan Driscoll edrisc...@wisc.edu wrote: Sorry, I just subscribed to the list so am stepping in mid-conversation, Welcome to the list! If you're curious as to what's happened, check the archives: http://mail.python.org/pipermail/python-list/ Something like ML or

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Roy Smith
In article 4eed5eef$0$29979$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: some academic languages may be entire strong; but most real-world languages include elements of both. Most commonly coercing ints to floats. Early Fortran compilers

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Chris Angelico
On Sun, Dec 18, 2011 at 2:59 PM, Roy Smith r...@panix.com wrote: It is possible for 1 + one to be equal to 2 in C or C++.  All it takes is for the string literal to be located at memory location 1.  Not likely, but nothing in the language prevents it. Not quite; 1 + one will be ne, which might

Debugging a difficult refcount issue.

2011-12-17 Thread buck
I'm getting a fatal python error Fatal Python error: GC object already tracked[1]. Using gdb, I've pinpointed the place where the error is detected. It is an empty dictionary which is marked as in-use. This is somewhat helpful since I can reliably find the memory address of the dict, but it

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Evan Driscoll
On 12/17/2011 21:42, Chris Angelico wrote: Welcome to the list! If you're curious as to what's happened, check the archives: http://mail.python.org/pipermail/python-list/ Thanks! Incidentally, is there a good way to respond to the original post in this thread, considering it wasn't delivered to

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread buck
I like the spirit of this. Let's look at your examples. Examples of use: head, tail::tuple = ::sequence def foo(args::list, kwargs::dict): pass foo(::args, ::kwargs) My initial reaction was nonono!, but this is simply because of the ugliness. The double-colon is very visually

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Chris Angelico
On Sun, Dec 18, 2011 at 3:43 PM, Evan Driscoll edrisc...@wisc.edu wrote: On 12/17/2011 21:42, Chris Angelico wrote: Welcome to the list! If you're curious as to what's happened, check the archives: http://mail.python.org/pipermail/python-list/ Thanks! Incidentally, is there a good way to

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Chris Angelico
On Sun, Dec 18, 2011 at 3:52 PM, buck workithar...@gmail.com wrote: The last one looks decorator-ish, but maybe that's proper. The implementation of this would be quite decorator-like: take the normal value of x, pass it through the indicated function, assign that value back to x. Try these

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Evan Driscoll
On 12/17/2011 22:52, buck wrote: Try these on for size. head, @tuple tail = sequence def foo(@list args, @dict kwargs): pass foo(@args, @kwargs) For backward compatibility, we could say that the unary * is identical to @list and unary ** is identical to @dict. I like

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Evan Driscoll
On 12/17/2011 23:33, Evan Driscoll wrote: I do have one more thing to point out, which is that currently the Python vararg syntax is very difficult to Google for. In the first pages of the four searches matching python (function)? (star | asterisk), there was just one relevant hit on

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-17 Thread Steven D'Aprano
On Sat, 17 Dec 2011 23:33:27 -0600, Evan Driscoll wrote: I do have one more thing to point out, which is that currently the Python vararg syntax is very difficult to Google for. You're coming in late to the conversation, but that was literally the second thing pointed out by the original

[issue13618] bytes.decode() UnicodeEncodeError on Apple iOS (16-bit) characters

2011-12-17 Thread Silverback Networks
Silverback Networks silverback...@gmail.com added the comment: I feel like a 'tard now, it was because I was trying to print() it at the same time I decoded it, which is what threw up. Well, sorry about that, next time I'll be a little more careful to separate every step before I go reporting

[issue13620] Support Chrome in webbrowser.py

2011-12-17 Thread Oleg Broytman
New submission from Oleg Broytman p...@phdru.name: Support Google Chrome/Chromium browsers in webbrowser.py. The attached patch is against Python 2.7, but it should be applied cleanly to Python 3+. -- components: Library (Lib) files: webbrowser.py.patch keywords: patch messages:

[issue12809] Missing new setsockopts in Linux (eg: IP_TRANSPARENT)

2011-12-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 59ea1d1a4137 by Charles-François Natali in branch 'default': Issue #12809: Expose IP_TRANSPARENT in the socket module. Patch by Michael http://hg.python.org/cpython/rev/59ea1d1a4137 -- nosy: +python-dev

[issue12809] Missing new setsockopts in Linux (eg: IP_TRANSPARENT)

2011-12-17 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Thanks Michael. I committed a simpler version of your patch. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13453] Tests and network timeouts

2011-12-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: http://www.python.org/dev/buildbot/all/builders/x86%20Gentoo%203.x/builds/1327/steps/test/logs/stdio == ERROR: test_list_active

[issue11231] bytes() constructor is not correctly documented

2011-12-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oooh, I missed the important sentence Accordingly, constructor arguments are interpreted as for bytearray(). The 5 constructors are documented in bytearray doc: http://docs.python.org/dev/library/functions.html#bytearray

[issue13619] Add a new codec: locale, the current locale encoding

2011-12-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Patch version 2: improve the test. Try also the user locale encoding if the C locale uses ISO-8859-1 (should improve the code coverage on FreeBSD, Mac OS X and Solaris). -- Added file:

[issue13610] On Python parsing numbers.

2011-12-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I don't see a good reason to change this. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13610 ___

[issue13619] Add a new codec: locale, the current locale encoding

2011-12-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Unicode nosy: +ezio.melotti, lemburg stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13619

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2011-12-17 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: So it seems unlikely to be the explanation. Victor reproduced in on IRC, and it's indeed an overflow. The problematic code is in readline_file: bigger = self-buf_size 1; if (bigger = 0) { /* overflow */

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2011-12-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Should we fix this (Py_ssize_t, overflow check before computation), as in #11564? Yes. Use Py_ssize_t type for the buf_size attribute, and replace bigger = 0 (test if an overflow occurred) by self-buf_size (PY_SSIZE_T_MAX 1).

[issue13530] Docs for os.lseek neglect to mention what it returns

2011-12-17 Thread Jérémy Anger
Jérémy Anger kidan...@gmail.com added the comment: Here is a patch which add the return value of lseek into the documentation. -- nosy: +kidanger Added file: http://bugs.python.org/file23988/patch ___ Python tracker rep...@bugs.python.org

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2011-12-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ah, I see. It's a bit of a pity not to be able to load files 1GB, especially on a 64-bit build (!). Perhaps cPickle could be made partly 64-bit compatible? Or at least, indeed, do a proper anti-overflow check. --

[issue13530] Docs for os.lseek neglect to mention what it returns

2011-12-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review type: - behavior versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13530 ___

[issue13610] On Python parsing numbers.

2011-12-17 Thread Jean-Michel Fauth
Jean-Michel Fauth wxjmfa...@gmail.com added the comment: I have done a little bit hd/files archeology and found some of my comments. Pointing on number litterals is probably wrong. The fact is that, this happens with practically any expression. And strangely, not all keywords (constructs?) are

[issue13610] On Python parsing numbers.

2011-12-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gvanrossum versions: +Python 3.3 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13610 ___

[issue11231] bytes() constructor is not correctly documented

2011-12-17 Thread brendel
brendel brice.be...@gmail.com added the comment: Here is a patch for the docstring of bytes and bytesarray. -- nosy: +brendel Added file: http://bugs.python.org/file23989/patch ___ Python tracker rep...@bugs.python.org

[issue13619] Add a new codec: locale, the current locale encoding

2011-12-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I tested locale_encoding-2.patch on Linux, FreeBSD and Windows: UTF-8 and ISO-8859-1 locales on Linux and FreeBSD, and the cp1252 ANSI code page on Windows. -- ___ Python tracker

[issue11231] bytes() constructor is not correctly documented

2011-12-17 Thread brendel
Changes by brendel brice.be...@gmail.com: Removed file: http://bugs.python.org/file23989/patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11231 ___ ___

[issue11231] bytes() constructor is not correctly documented

2011-12-17 Thread brendel
Changes by brendel brice.be...@gmail.com: Added file: http://bugs.python.org/file23990/patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11231 ___ ___

[issue13610] On Python parsing numbers.

2011-12-17 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: 999if 888else 888 File eta last command, line 1 999if 888else 888 ^ SyntaxError: invalid token This might be because 888e5 is a valid expression, so the 'e' is parsed as part of the number rather than a separate token.

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
New submission from Boris FELD lothiral...@gmail.com: Hello everyone, I juste tried to launch the stringbench on python3.2 and python3.3 dev versions and some unicode tests run slower in python3.3 than in python3.2. I cc the two raw output of both runs. I also extracted most interesting data

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23992/stringbench_log_cpython3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23993/stringbench.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: collinwinter - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___ ___

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks, this is a known issue. I'm not too worried, since they are fairly artificial. In the cases I've looked at, I don't think anything can be done about that. -- nosy: +loewis ___ Python

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___ ___ Python-bugs-list

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Removed file: http://bugs.python.org/file23993/stringbench.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23994/compare.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___

[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
New submission from Boris FELD lothiral...@gmail.com: Hello everyone, I juste tried to launch the stringbench on python3.2 and python3.3 dev versions and some bytes tests run slower in python3.3 than in python3.2. I cc the two raw output of both runs. I also extracted most interesting data

[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23996/stringbench_log_cpython3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13622 ___

[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23997/compare.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13622 ___

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Sorted and grouped results. replace, find and concat should be easy to fix, format is a little bit more complex, strip and split depends on find performance and require to scan the substring to ensure that the result is canonical

[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Sorted and grouped results. replace, find and concat should be easy to fix, strip and split depend on find performance. replace: - b...text.with.2000.lines...replace(b\n, b ) (*10): -37.668161% find: - (bA*1000).find(bB)

[issue13561] os.listdir documentation should mention surrogateescape

2011-12-17 Thread misdre
misdre misdre+pyt...@gmail.com added the comment: Added a small patch to mention surrogateescape and PEP 383. -- keywords: +patch nosy: +misdre Added file: http://bugs.python.org/file23998/listdir-pep383.patch ___ Python tracker

[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: Forgot to describe my environment: Mac OS X 10.6.8 GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) CPython3.3 revision ea421c534305 CPython3.2 revision 0b86da9d6964 --

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: Forgot to describe my environment: Mac OS X 10.6.8 GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) CPython3.3 revision ea421c534305 CPython3.2 revision 0b86da9d6964 --

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
New submission from Boris FELD lothiral...@gmail.com: Hello everyone, I juste tried to launch the stringbench on python3.2 and python3.3 dev versions and some bytes tests run slower in python3.3 than in python3.2. I cc the two raw output of both runs. I also extracted most interesting data

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file24000/iobench_log_python3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623 ___

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file24001/compare.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623 ___

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Removed file: http://bugs.python.org/file24000/iobench_log_python3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623 ___

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file24002/stringbench_log_cpython3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623 ___

[issue13616] Never ending loop in in update_refs Modules/gcmodule.c

2011-12-17 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: The only way of this thing actually happening is if the GC link list has actually a cycle. Without a testcase to try to reproduce, it can't be debugged. David, can you reproduce this consistently, even if it takes a few hours?. As Amaury

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Grouped results. find (first): - (bA*1000).find(bA): -70% - (bA*1000).rfind(bA) : -70% - (bA*1000).index(bA) : -71% - (bA*1000).rindex(bA) : -68% - (bAB*1000).index(bAB) : -68% - (bAB*1000).rindex(bAB): -67% -

[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Boris.FELD told me that there was a bug in compare.py: all numbers are related to Unicode (see #13621), not bytes. -- ___ Python tracker rep...@bugs.python.org

[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13622 ___

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also the issue #13621 for results on Unicode. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623 ___

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also the issue #13623 for results on bytes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___

[issue13624] UTF-8 encoder performance regression in python3.3

2011-12-17 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: iobench benchmarking tool showed that the UTF-8 encoder is slower in Python 3.3 than Python 3.2. The performance depends on the characters of the input string: * 8x faster (!) for a string of 50.000 ASCII characters * 1.5x

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623 ___ ___

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___ ___

[issue13624] UTF-8 encoder performance regression in python3.3

2011-12-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13624 ___ ___ Python-bugs-list mailing list

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - collinwinter components: +Unicode nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623 ___ ___

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Just a note: performance reports shouldn't be assigned to the benchmarks category, except if the problem is in the benchmarks themselves. -- assignee: collinwinter - components: +Interpreter Core -Benchmarks versions: -Python 3.2

[issue13586] IDLE: Replace selected not working/consistent with find

2011-12-17 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: On Linux using 2.7.1 and 3.2, the Replace dialog does not contain the selected text in the Find field. The find functionality that copies the selected text was introduced in 868ff0dfabd2 on 2002-11-06. Unfortunately it wasn't added to the

[issue10951] gcc 4.6 warnings

2011-12-17 Thread Jérémy Anger
Jérémy Anger kidan...@gmail.com added the comment: I've fixed two more warnings, see my patch. (gcc 4.6.2) -- nosy: +kidanger Added file: http://bugs.python.org/file24004/fix_2warnings.diff ___ Python tracker rep...@bugs.python.org

[issue8231] Unable to run IDLE without write-access to config directory

2011-12-17 Thread Roger Serwy
Changes by Roger Serwy roger.se...@gmail.com: -- components: +IDLE -Library (Lib), Windows nosy: +serwy versions: +Python 2.7, Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8231

[issue13624] UTF-8 encoder performance regression in python3.3

2011-12-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you please provide your exact testing procedure? Standard iobench.py doesn't support testing for separate ASCII, UCS-1 and UCS-2 data, so you must have used some other tool. Exact code, command line parameters, hardware description and

[issue13610] On Python parsing numbers.

2011-12-17 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: -1 I'm with Mark, Georg, and Benjamin on this one. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13610

  1   2   >