GOZERBOT 1.0 RELEASED

2012-01-19 Thread Bart Thate
I am proud ! Version 1.0 of GOZERBOT is here in the world. 7 years of evolutionary code development. The eagle has landed, the egg is layed See http://gozerbot.org - WELCOME TO GOZERBOT — GOZERBOT v1.0.1 FINAL documentation WELCOME TO GOZERBOT¶. I am pleased to present to you version 1.0 of

Re: Please don't use setuptools, the rotten .egg install system.

2012-01-19 Thread Lele Gaifax
John Nagle na...@animats.com writes: egg files are usually more trouble than they're worth. I find it really funny you say so, just after another thread where you proved yourself unable to come up with a working Python environment lacking an already packaged RPM of version 2.7... I know egg

Re: Installing Python on CentOS 6 - a big pain

2012-01-19 Thread Chris Angelico
On Thu, Jan 19, 2012 at 3:36 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: With all the tools installed, it's a matter of a few minutes effort to build from scratch: run ./configure run make run sudo make altinstall As a total n00b who'd never used make before, it took me

Re: First python project : Tuner

2012-01-19 Thread Jérôme
Tue, 17 Jan 2012 15:16:01 +0100 Jérôme a écrit: Hi all. Like others before me, I'd like to show you my first python attempt, in the hope in can get advices on how to improve my coding. Hi. Thank you for your useful advices. - I tried to clarify the dependencies of my program by adding

Re: sys.argv as a list of bytes

2012-01-19 Thread jmfauth
In short: if you need to write system scripts on Unix, and you need them to work reliably, you need to stick with Python 2.x. I think, understanding the coding of the characters helps a bit. I can not figure out how the example below could not be done on other systems. D:\tmpchcp Page de

Re: Installing Python on CentOS 6 - a big pain

2012-01-19 Thread Steven D'Aprano
On Thu, 19 Jan 2012 20:43:23 +1100, Chris Angelico wrote: On Thu, Jan 19, 2012 at 3:36 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: With all the tools installed, it's a matter of a few minutes effort to build from scratch: [...] Now, granted, this was Debian and I can't

Re: Installing Python on CentOS 6 - a big pain

2012-01-19 Thread Chris Angelico
On Thu, Jan 19, 2012 at 9:47 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I daresay any decent package manager would be able to provide the complete tool chain for building Python from source. But I have no idea what tools are needed -- gcc and make, obviously, but what else?

Re: Installing Python on CentOS 6 - a big pain

2012-01-19 Thread Noah Hall
On Thu, Jan 19, 2012 at 10:47 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Thu, 19 Jan 2012 20:43:23 +1100, Chris Angelico wrote: On Thu, Jan 19, 2012 at 3:36 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: With all the tools installed, it's a matter of a

Re: Installing Python on CentOS 6 - a big pain

2012-01-19 Thread Christian Heimes
Am 19.01.2012 12:05, schrieb Chris Angelico: What I do is apt-get the most obvious things (g++/gcc and make, in this case), then run configure and see if it bombs, then run make and see if it bombs, and whenever there's a command not found, attempt to apt-get that command as a package name. It

Re: Installing Python on CentOS 6 - a big pain

2012-01-19 Thread Chris Angelico
On Thu, Jan 19, 2012 at 10:16 PM, Christian Heimes li...@cheimes.de wrote: Much easier: $ apt-get build-dep python In the specific case where that's available, it's fine. I've not gotten into the habit of trusting it, though, largely because a lot of what I compile _isn't_ in the package

multiversion flag and auto requiring import hook

2012-01-19 Thread Andrea Crotti
I'm using the multiversion flag in setuptools (-m) to be able to run many different projects, without modifying the global environment. Then thanks to pkg_resources magic and setuptools I can get automatically everything loaded. Now the problem is that we want to be able to run tests. The best

Re: multiversion flag and auto requiring import hook

2012-01-19 Thread Andrea Crotti
... Actually the main problem which I've been banging my head quite a few days alreays is this: --8---cut here---start-8--- ERROR: Failure: AttributeError ('module' object has no attribute 'walk')

Re: unzip function?

2012-01-19 Thread Devin Jeanpierre
On Wed, Jan 18, 2012 at 6:20 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 18 Jan 2012 11:20:00 -0500, Devin Jeanpierre wrote: Nobody likes to be told to brush their teeth, eat their vegetables or clean their room. Then they grow up and learn that life is full of

Re: First python project : Tuner

2012-01-19 Thread Rick Johnson
On Jan 19, 4:44 am, Jérôme jer...@jolimont.fr wrote: - Most importantly, new 2.1 version comes with an absolutely pure french-free   english-only screenshot, for your convenience. Thanks for this update. However, i need to stress that while the English language is fundamental to writing Python

Re: Please don't use setuptools, the rotten .egg install system.

2012-01-19 Thread John Nagle
On 1/19/2012 12:56 AM, Lele Gaifax wrote: John Naglena...@animats.com writes: egg files are usually more trouble than they're worth. I find it really funny you say so, just after another thread where you proved yourself unable to come up with a working Python environment lacking an already

importing and nose

2012-01-19 Thread Andrea Crotti
I'm writing some code to analyse pstats statistics, and I'm trying to have some working unit tests. Suppose I have in the test directory another directory 'profiling', which contains 'x.py', and 'b.py'. Now running the following code in a script works perfectly, class

Re: Please don't use setuptools, the rotten .egg install system.

2012-01-19 Thread Andrea Crotti
On 01/19/2012 05:05 PM, John Nagle wrote: I can do it, I just have better things to do than system administration. The fact that Python doesn't just work is part of why it's losing market share. Maybe in your home is losing market (if you're so sure post some sources). If it can be

Re: importing and nose

2012-01-19 Thread Peter Otten
Andrea Crotti wrote: I'm writing some code to analyse pstats statistics, and I'm trying to have some working unit tests. Suppose I have in the test directory another directory 'profiling', which contains 'x.py', and 'b.py'. Now running the following code in a script works perfectly, I

Re: importing and nose

2012-01-19 Thread Andrea Crotti
On 01/19/2012 05:36 PM, Peter Otten wrote: I don't believe you. Quite sure it does: [andrea@precision test]$ cat simple.py import profile from os import path import sys prof_path = path.join(path.dirname(__file__), 'profiling') sys.path.append(prof_path) import x profile.run('x.f1()')

Re: importing and nose

2012-01-19 Thread Peter Otten
Andrea Crotti wrote: On 01/19/2012 05:36 PM, Peter Otten wrote: I don't believe you. Quite sure it does: [andrea@precision test]$ cat simple.py import profile from os import path import sys prof_path = path.join(path.dirname(__file__), 'profiling') sys.path.append(prof_path)

Re: += does not work correct all alogn

2012-01-19 Thread Olive
On Wed, 18 Jan 2012 09:52:55 + (GMT) Wilfried Falk w_h_f...@yahoo.de wrote: Hello Pythons,   attached to this email is a pdf-file which shows, that  += does not work well all along. Mybe somebody of you is able to explain my observations in this respect. I will be glad about an answer.

verify the return value of a function

2012-01-19 Thread Jabba Laci
Hi, In a unit test, I want to verify that a function returns a cookielib.LWPCookieJar object. What is the correct way of doing that? 1) First I tried to figure out its type with type(return_value) but it is type 'instance' 2) return_value.__class__ .__name__ gives 'LWPCookieJar', which is

Re: verify the return value of a function

2012-01-19 Thread Chris Rebert
On Thu, Jan 19, 2012 at 12:45 PM, Jabba Laci jabba.l...@gmail.com wrote: Hi, In a unit test, I want to verify that a function returns a cookielib.LWPCookieJar object. What is the correct way of doing that? snip 3) isinstance(return_value, cookielib.LWPCookieJar) seems to be the best way,

[issue13804] Python library structure creates hard to read code when using higher order functions

2012-01-19 Thread Martin Häcker
Martin Häcker spamfaen...@gmx.de added the comment: Jup - oh the joys of writing code in a bugtracker :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13804 ___

[issue13823] xml.etree.ElementTree.ElementTree.write - argument checking

2012-01-19 Thread patrick vrijlandt
New submission from patrick vrijlandt patrick.vrijla...@gmail.com: (1) The docs say: xml_declaration controls if an XML declaration should be added to the file. Use False for never, True for always, None for only if not US-ASCII or UTF-8 or Unicode (default is None). The method also accepts

[issue11948] Tutorial/Modules - small fix to better clarify the modules search path

2012-01-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d01208ba482f by Sandro Tosi in branch '2.7': Issue #11948: clarify modules search path http://hg.python.org/cpython/rev/d01208ba482f New changeset 6d663db63705 by Sandro Tosi in branch '3.2': Issue #11948: clarify

[issue11948] Tutorial/Modules - small fix to better clarify the modules search path

2012-01-19 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Thanks Terry for the ping, I've just committed it - thanks again to everyone for the help/suggestions. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___

[issue13824] argparse.FileType opens a file without excepting resposibility for closing it

2012-01-19 Thread David Layton
New submission from David Layton dmlay...@gmail.com: argparse.FileType.__call__ opens the specified file and returns it. This is well documented as an anit-idiom in http://docs.python.org/howto/doanddont.html#exceptions. ...a serious problem — due to implementation details in CPython, the

[issue13817] deadlock in subprocess while running several threads using Popen

2012-01-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13817 ___ ___ Python-bugs-list mailing

[issue13813] sysconfig.py and distutils/util.py redundancy

2012-01-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Background on the distutils freeze? Right now I don’t have the time and I’m going to be offline until the end of the month. You can look for Tarek Ziadé’s blog posts after PyCon 2010, or wait until I come back and put the links on a wiki page

[issue13703] Hash collision security issue

2012-01-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Even Lib/packaging/create.py change is related to fixing tests. The test can be changed differently, but I like the idea of having always the same output in packaging (e.g. it is more readable for the user if files are sorted). See #13712

[issue9631] Python 2.7 installation issue for Linux gcc-4.1.0-3 (Fedora Core 5?)

2012-01-19 Thread mike
mike mikaelpetters...@gmail.com added the comment: Hi, I downloaded source and did the following instructions. We use Red Hat Enterprise Linux Server release 5.5. ./configure --prefix=/home/mike/python_rh_32 make make install I also changed the line in site.py from: s =

[issue13763] Potentially hard to understand wording in devguide

2012-01-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for commenting. Please commit your wording, or this alternate version: “``hg`` is the name of the Mercurial command-line program, and is often used as an abbreviation for Mercurial.” (Just to avoid repetition and to add “command-line”.)

[issue13703] Hash collision security issue

2012-01-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I tried the collision counting with a low number of collisions: less than 15 collisions --- Fail at startup. 5 collisions (32 buckets, 21 used=65.6%): hash=ceb3152f = f 10 collisions (32 buckets, 21

[issue13817] deadlock in subprocess while running several threads using Popen

2012-01-19 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Here's the backtrace: #0 0x003bfb20c9b1 in sem_wait () from /lib64/libpthread.so.0 #1 0x0051a7c3 in PyThread_acquire_lock (lock=0x17db0750, waitflag=1) at Python/thread_pthread.h:321 #2 0x0051a9b4 in

[issue13825] Datetime failing while reading active directory time attribute

2012-01-19 Thread Chris Gill
New submission from Chris Gill chrisfg...@gmail.com: I believe I am having a similar issue to this: http://bugs.python.org/issue7150 I am in the middle of programming a quick script and now I cannot seem to get beyond this issue; as it is printing up the expiration times from the AD user

[issue13817] deadlock in subprocess while running several threads using Popen

2012-01-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think you forgot to attach the patch :) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13817 ___

[issue13826] Having a shlex example in the subprocess.Popen docs is confusing

2012-01-19 Thread Julian Berman
New submission from Julian Berman julian+python@grayvines.com: The example at http://docs.python.org/dev/library/subprocess.html#popen-constructor seems a bit misplaced, as it seems to suggest that one should use the shlex module. Most of the other examples in the module seem to use a

[issue13703] Hash collision security issue

2012-01-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: ... So I expect something similar in applications: no change in the applications, but a lot of hacks/tricks in tests. Tests usually check output of an application given a certain input. If those fail with the

[issue13703] Hash collision security issue

2012-01-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Please note, that you'd have to extend the randomization to all other Python data types as well in order to reach the same level of security as the collision counting approach. You also have to extend the collision counting to sets, by the

[issue13826] Having a shlex example in the subprocess.Popen docs is confusing

2012-01-19 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13826 ___ ___

[issue13826] Having a shlex example in the subprocess.Popen docs is confusing

2012-01-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It is not particularly intuitive what goes in to a Popen non-shell argument list, unless you are an experienced programmer. The real purpose of the note is to convey a lot of information about how tokenization works in a short example,

[issue13703] Hash collision security issue

2012-01-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Please note, that you'd have to extend the randomization to all other Python data types as well in order to reach the same level of security as the collision

[issue13703] Hash collision security issue

2012-01-19 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com added the comment: Django's tests will *not* be run with HASHEED=0, if they're broken with hash randomization then they are likely broken on random.choice([32-bit, 64-bit, pypy, jython, ironpython]) and we strive to run on all those platforms. If our tests

[issue13826] Having a shlex example in the subprocess.Popen docs is confusing

2012-01-19 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Maybe we can add a very small example before the whole note to show just how to use Popen in simple situation, and so the shlex part below will add more details for more advanced cases. -- nosy: +sandro.tosi versions: -Python 2.6,

[issue13817] deadlock in subprocess while running several threads using Popen

2012-01-19 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Here's the patch. It's probably possible to add a test for this, however I don't have access to my development machine, so I can't write it now. -- Added file: http://bugs.python.org/file24275/reinit_tls.diff

[issue13752] add a str.casefold() method

2012-01-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13752 ___ ___

[issue13703] Hash collision security issue

2012-01-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: I tried the collision counting with a low number of collisions: ... no false positives with a limit of 50 collisions ... Thanks for running those tests. Looks like a limit lower than 1000 would already do just fine.

[issue13703] Hash collision security issue

2012-01-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: [Reposting, since roundup removed part of the Python output] M.-A. Lemburg wrote: Note that the integer attack also applies to other number types in Python: -- (hash(3), hash(3.0), hash(3+0j) (3, 3, 3) See Tim's post I referenced

[issue13478] No documentation for timeit.default_timer

2012-01-19 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: I propose these 2 patches: I'm not exactly proud of - 'in a platform specific manner' in the first hunk - the second hunk I know that there should be a better way to express it, but since I can't get to it I'd just ask for suggestions :)

[issue13478] No documentation for timeit.default_timer

2012-01-19 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: Added file: http://bugs.python.org/file24277/issue13478-py32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13478 ___

[issue13827] Unexecuted import changes namespace

2012-01-19 Thread Michael Hipp
New submission from Michael Hipp mich...@redmule.com: A local *unexecuted* import appears to be changing the namespace. Attached files are ready to run. # over.py SOMETHING = overridden # main.py OVERRIDE = False SOMETHING = original def main(): #global SOMETHING # uncomment and it

[issue13827] Unexecuted import changes namespace

2012-01-19 Thread Michael Hipp
Michael Hipp mich...@redmule.com added the comment: Add'l over.py file -- Added file: http://bugs.python.org/file24279/over.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13827 ___

[issue13827] Unexecuted import changes namespace

2012-01-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Not a bug. Basically, import is an explicit assignment statement. -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13827] Unexecuted import changes namespace

2012-01-19 Thread Michael Hipp
Michael Hipp mich...@redmule.com added the comment: Even an *unexecuted* import assignment statement? -- resolution: invalid - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13827

[issue13827] Unexecuted import changes namespace

2012-01-19 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: hippmr: the problem is that by importing SOMETHING inside that function you're creating a *local variable* called SOMETHING. If the override isn't executed, and SOMETHING isn't global, then that local variable doesn't exist - which is

[issue13827] Unexecuted import changes namespace

2012-01-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: OVERRIDE = False SOMETHING = original def main(): ... if OVERRIDE: ... SOMETHING = None ... print SOMETHING ... main() Traceback (most recent call last): File stdin, line 1, in module File stdin, line 4, in main

[issue13827] Unexecuted import changes namespace

2012-01-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: -None resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13827

[issue11551] test_dummy_thread.py test coverage improvement

2012-01-19 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hi Denver, do you have the time to address the review on rietveld and propose a new patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11551

[issue13825] Datetime failing while reading active directory time attribute

2012-01-19 Thread scape
scape chrisfg...@gmail.com added the comment: I dug a little deeper using an error trap and found some of the problematic accounts in AD have their attribute set to a wildly long number and not 0 (as are others when 'never' is specified.) i'll dig further, it also does not seem to be an issue

[issue11948] Tutorial/Modules - small fix to better clarify the modules search path

2012-01-19 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: FYI: unless importlib took undue liberties (unlikely), frozen modules also precede path-based modules. See the implicit additions to sys.meta_path in Lib/importlib/_bootstrap.py. Whether or not to include a mention of frozen modules in

[issue13828] Further improve casefold documentation

2012-01-19 Thread Jim Jewett
New submission from Jim Jewett jimjjew...@gmail.com: http://hg.python.org/cpython/rev/0b5ce36a7a24 changeset:   74515:0b5ce36a7a24 +   Casefolding is similar to lowercasing but more aggressive because it is +   intended to remove all case distinctions in a string. For example, the German

[issue13828] Further improve casefold documentation

2012-01-19 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: Frankly, I do think that sample code is too long, but correctness matters ... perhaps a better solution would be to add either a method or a unicodedata function that does the work, then the extra note could just say Note that most

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-01-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for the updated patch! Two comments: - I see no tests for map01 and altchars being passed as an str, is this supported by the patch or am I reading it wrong? - apparently b16decode is not tackled, is it deliberate? Thanks again.

[issue13703] Hash collision security issue

2012-01-19 Thread Frank Sievertsen
Frank Sievertsen pyt...@sievertsen.de added the comment: The suffix only introduces a constant change in all hash values output, so even if you don't know the suffix, you can still generate data sets with collisions by just having the prefix. That's true. But without the suffix, I can pretty

[issue13829] exception error

2012-01-19 Thread Dan kamp
New submission from Dan kamp roont...@gmail.com: Get this error when trying to run Moviegrabber on a mac running v2.7. Crash report below. Process: Python [2444] Path: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/C ontents/MacOS/Python

[issue13826] Having a shlex example in the subprocess.Popen docs is confusing

2012-01-19 Thread Julian Berman
Julian Berman julian+python@grayvines.com added the comment: Sounds reasonable to me. I'll take a look at adding one unless someone manages to beat me to it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13826

[issue13830] codecs error handler is called with a UnicodeDecodeError with the same args

2012-01-19 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc amaur...@gmail.com: The script below shows that the error handler is always called with the same error object. The 'start', 'end', and 'reason' properties are correctly updated, but the 'args' is always the same and holds the values used for the first

[issue13831] get method of multiprocessing.pool.Async should return full traceback

2012-01-19 Thread Faheem Mitha
New submission from Faheem Mitha fah...@faheem.info: The documentation in http://docs.python.org/library/multiprocessing.html#module-multiprocessing.pool says class multiprocessing.pool.AsyncResult¶ The class of the result returned by Pool.apply_async() and Pool.map_async(). get([timeout])

[issue13832] tokenization assuming ASCII whitespace; missing multiline case

2012-01-19 Thread Jim Jewett
New submission from Jim Jewett jimjjew...@gmail.com: Parser/parsetok.c was recently changed (e.g. http://hg.python.org/cpython/rev/2bd7f40108b4 ) to raise an error if multiple statements were found in a single-statement compile call. It sensibly ignores trailing whitespace and comments.

[issue11948] Tutorial/Modules - small fix to better clarify the modules search path

2012-01-19 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Definitely out-of-scope for the tutorial. I consider this akin to monkey patching imported modules. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11948

[issue13605] document argparse's nargs=REMAINDER

2012-01-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 35665f6f3674 by Sandro Tosi in branch '2.7': Issue #13605: add documentation for nargs=argparse.REMAINDER http://hg.python.org/cpython/rev/35665f6f3674 New changeset 6f3d55f5a31e by Sandro Tosi in branch '3.2':

[issue13605] document argparse's nargs=REMAINDER

2012-01-19 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- nosy: +sandro.tosi resolution: - fixed stage: needs patch - committed/rejected status: open - closed versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue13605] document argparse's nargs=REMAINDER

2012-01-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1b481e76cd16 by Sandro Tosi in branch '2.7': Issue #13605: more meaningful example + fixes http://hg.python.org/cpython/rev/1b481e76cd16 New changeset d6e53d1f46eb by Sandro Tosi in branch '3.2': Issue #13605: more

[issue13832] tokenization assuming ASCII whitespace; missing multiline case

2012-01-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13832 ___ ___ Python-bugs-list

[issue13020] structseq.c: refleak

2012-01-19 Thread Torsten Landschoff
Torsten Landschoff t.landsch...@gmx.net added the comment: +1 for the patch. All the error paths above the change do Py_DECREF(arg); return NULL; arg is initialized with PySequence_Fast, which returns a new reference. Hard to create a test case for this... -- nosy: +torsten

[issue13833] No documentation for PyStructSequence

2012-01-19 Thread Torsten Landschoff
New submission from Torsten Landschoff t.landsch...@gmx.net: While writing a C extension I wanted to create a namedtuple like object as os.statvfs and friends do. I was unable to find a simple way to do this from C and was wondering how the posixmodule does it. It turned out that there is a

[issue13832] tokenization assuming ASCII whitespace; missing multiline case

2012-01-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 00c4efbf57c3 by Benjamin Peterson in branch 'default': check after comments, too (#13832) http://hg.python.org/cpython/rev/00c4efbf57c3 -- nosy: +python-dev ___ Python

[issue13832] tokenization assuming ASCII whitespace; missing multiline case

2012-01-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: The tokenizer doesn't consider unicode spaces, either. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13832

[issue13763] Potentially hard to understand wording in devguide

2012-01-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 081106c142ec by Terry Jan Reedy in branch 'default': #13763 Clarify 'hg' usage. http://hg.python.org/devguide/rev/081106c142ec -- nosy: +python-dev ___ Python tracker

[issue13763] Potentially hard to understand wording in devguide

2012-01-19 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I do not much like sentences starting with lowercase, so I combined our sentences. The result is good enough, I think. Closing. -- assignee: - terry.reedy resolution: - fixed stage: patch review - committed/rejected status: open -

[issue13703] Hash collision security issue

2012-01-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Frank Sievertsen wrote: Frank Sievertsen pyt...@sievertsen.de added the comment: The suffix only introduces a constant change in all hash values output, so even if you don't know the suffix, you can still generate data sets with

[issue13811] In str.format, if invalid fill and alignment are specified, the text of the ValueError message is misleading.

2012-01-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5c33ebb50702 by Eric V. Smith in branch 'default': Improve exception text. Closes issue 13811. http://hg.python.org/cpython/rev/5c33ebb50702 -- nosy: +python-dev resolution: - fixed stage: needs patch -

[issue13703] Hash collision security issue

2012-01-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Since the hash function is known, it doesn't make things much harder. Without suffix you just need hash('') to find out what the prefix is. With suffix, two values are enough. With my patch, hash('') always return zero. I don't

[issue13828] Further improve casefold documentation

2012-01-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: It's a bit unfriendly to launch into discussion of compatiblity caseless matching when the new reader probably has no idea what compatibility-equivalence is. -- ___ Python tracker

[issue10278] add time.wallclock() method

2012-01-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8502a9236c2e by Victor Stinner in branch 'default': Issue #10278: Be more explicit in tests than wallclock() is monotonic (cannot http://hg.python.org/cpython/rev/8502a9236c2e --

[issue13405] Add DTrace probes

2012-01-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file24281/5458412752d5.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___

[issue13405] Add DTrace probes

2012-01-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file24282/f86bb02fd8f4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___

[issue13405] Add DTrace probes

2012-01-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file24283/f86bb02fd8f4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___

[issue13405] Add DTrace probes

2012-01-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file23920/f73be85b9a7e.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___

[issue13807] logging.Handler.handlerError() may raise AttributeError in traceback.print_exception()

2012-01-19 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: - vinay.sajip nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13807 ___

[issue13405] Add DTrace probes

2012-01-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file23921/43d1a819a63d.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___

[issue13405] Add DTrace probes

2012-01-19 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Code ready for commit. Please, review. After the first commit, I will try to make it compatible with MacOS and FreeBSD. Current target is Solaris and derivatives (OpenIndiana, for instance) Stan Cox, if you want systemtap compatibility at this

[issue13405] Add DTrace probes

2012-01-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I'm -1 on this patch for essentially the same reasons as Charles-François. It introduces a lot of code (and hacks!) in critical pathways of the interpreter. Someone would have to be constantly maintaining and testing it. In return, what

[issue12949] Documentation of PyCode_New() lacks kwonlyargcount argument

2012-01-19 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- keywords: +easy stage: - needs patch versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12949 ___

[issue13405] Add DTrace probes

2012-01-19 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: NOTE to myself: In OpenIndiana we could have this error: dtrace: failed to compile script ./Include/phelper.d: Preprocessor not found In that case, we must install the C preprocessor: pfexec pkg install cpp I confirm that current 3.3 patch

[issue12949] Documentation of PyCode_New() lacks kwonlyargcount argument

2012-01-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b22a35c14a91 by Meador Inge in branch '3.2': Issue #12949: Document the kwonlyargcount argument for the PyCode_New C API function. http://hg.python.org/cpython/rev/b22a35c14a91 New changeset 218b167ff521 by Meador

[issue13806] Audioop decompression frames size check fix

2012-01-19 Thread Oleg Plakhotnyuk
Changes by Oleg Plakhotnyuk oleg...@gmail.com: Removed file: http://bugs.python.org/file24260/audioop_size_check.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13806 ___

[issue12949] Documentation of PyCode_New() lacks kwonlyargcount argument

2012-01-19 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Fixed. Thanks for the report Stefan. -- nosy: +meador.inge resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13405] Add DTrace probes

2012-01-19 Thread Glyph Lefkowitz
Glyph Lefkowitz gl...@twistedmatrix.com added the comment: Charles-François: Also, I must admit I'm quite skeptical about the real benefit of explicit probes for user-land, especially for CPython which isn't used for performance-critical systems... I beg to differ. CPython is totally used on

  1   2   >