Re: Beware, my computer was infected.

2012-02-20 Thread Jugurtha Hadjar
On 16/02/2012 01:34, Jugurtha Hadjar wrote: Hello gentlemen, I'm writing these words to give you a heads up. My computer has recently been infected with 1.exe, and I am doing what I can to contain it. It spreads via mail and I fear it will send SPAM to lists I am subscribed to. If you

Re: Beware, my computer was infected.

2012-02-20 Thread Jerry Zhang
By the way, i like 1.exe, can i have it? 在 2012年2月18日 上午6:01,Jugurtha Hadjar jugurtha.had...@gmail.com写道: On 16/02/2012 01:34, Jugurtha Hadjar wrote: Hello gentlemen, I'm writing these words to give you a heads up. My computer has recently been infected with 1.exe, and I am doing what I

Re: #line in python

2012-02-20 Thread Duncan Booth
Ross Boylan r...@biostat.ucsf.edu wrote: As an extension or alternate, could there be a decorator like @source_line(lineno, filename) for classes and methods that could do the conversion on the fly? I don't know if there's a way to go from the function (or class) object the decorator

Re: logging with logging.config.fileConfig

2012-02-20 Thread Jean-Michel Pichavant
MRAB wrote: On 19/02/2012 20:23, Herman wrote: I tried to use file to config my logger and I got a weird situation that each message is outputted twice... Here is my scenario: python: 2.6 file abc_logging.conf: [snip] [logger_abc] level=DEBUG handlers=consoleHandler qualname=abc Add this

Re: [OT]: Smartphones and Python?

2012-02-20 Thread Jean-Michel Pichavant
Michael Torrie wrote: I do not understand what you are saying, or at least why you are saying this. But I don't understand most of your posts. It's a bot. Add it to your kill file. JM -- http://mail.python.org/mailman/listinfo/python-list

PyKota, Python: AttributeError: 'module' object has no attribute '_quote'

2012-02-20 Thread JohannesTU
Hello everyone, I'm new to linux/suse, but I was given the task to install the print accounting software PyKota. Before that I never even touched a linux system, so I don't have any basic knowlegde at all! Up to now I was able to solve all problems with the help of google, but now I'm stuck. My

Re: #line in python (dirty tricks)

2012-02-20 Thread Ross Boylan
Duncan Booth wrote Ross Boylan ross at biostat.ucsf.edu wrote: As an extension or alternate, could there be a decorator like @source_line(lineno, filename) for classes and methods that could do the conversion on the

HTTP logging

2012-02-20 Thread Jason Friedman
I am logging to HTTP: logger.addHandler(logging.handlers.HTTPHandler(host, url)) Works great, except if my HTTP server happens to be unavailable: socket.error: [Errno 111] Connection refused Other than wrapping all my logger.log() calls in try/except blocks, is there a way to skip logging to

Re: HTTP logging

2012-02-20 Thread Arnaud Delobelle
On 20 February 2012 16:03, Jason Friedman ja...@powerpull.net wrote: I am logging to HTTP: logger.addHandler(logging.handlers.HTTPHandler(host, url)) Works great, except if my HTTP server happens to be unavailable: socket.error: [Errno 111] Connection refused Other than wrapping all my

Re: HTTP logging

2012-02-20 Thread Jean-Michel Pichavant
Arnaud Delobelle wrote: On 20 February 2012 16:03, Jason Friedman ja...@powerpull.net wrote: I am logging to HTTP: logger.addHandler(logging.handlers.HTTPHandler(host, url)) Works great, except if my HTTP server happens to be unavailable: socket.error: [Errno 111] Connection refused

Re: PyKota, Python: AttributeError: 'module' object has no attribute '_quote'

2012-02-20 Thread Peter Otten
JohannesTU wrote: Hello everyone, I'm new to linux/suse, but I was given the task to install the print accounting software PyKota. Before that I never even touched a linux system, so I don't have any basic knowlegde at all! Up to now I was able to solve all problems with the help of

paper submission and versioning system - advice?

2012-02-20 Thread Brian Blais
Hello, I'd like to find a web-based system to help a committee I'm on, where we receive proposals from different faculty. I wrote something in python, from scratch, a number of years ago because there wasn't anything available then but it is showing its age and I figured that someone has

Re: HTTP logging

2012-02-20 Thread Vinay Sajip
On Feb 20, 5:07 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: However, I looked into the code and find out an (undocumented ?) attribute of the logging module : raiseException which value is set to 1 by default (python 2.5.2 logging.__version__ '0.5.0.2' ). When set to 1,

Re: paper submission and versioning system - advice?

2012-02-20 Thread Andrea Crotti
On 02/20/2012 05:45 PM, Brian Blais wrote: Hello, I'd like to find a web-based system to help a committee I'm on, where we receive proposals from different faculty. I wrote something in python, from scratch, a number of years ago because there wasn't anything available then but it is

Re: #line in python (dirty tricks)

2012-02-20 Thread Duncan Booth
Ross Boylan r...@biostat.ucsf.edu wrote: No [easy] way to go from bytecodes back to AST, but I see no reason why you can't create a new code object with your filename and line numbers and then create a new function using your modified code object. Could you elaborate? I don't understand

Re: HTTP logging

2012-02-20 Thread Vinay Sajip
On Feb 20, 5:47 pm, Vinay Sajip vinay_sa...@yahoo.co.uk wrote: I will reinstate it in the reference API docs, but the answer to Jason's problem is to either subclass HTTPHandler and override handleError to suppress the error, or set logging.raiseExceptions to True (in which case all logging

Re: paper submission and versioning system - advice?

2012-02-20 Thread Terry Reedy
On 2/20/2012 1:47 PM, Andrea Crotti wrote: On 02/20/2012 05:45 PM, Brian Blais wrote: I'd like to find a web-based system to help a committee I'm on, where we receive proposals from different faculty. I wrote something in python, from scratch, a number of years ago because there wasn't anything

netCDF4 variable manipulation

2012-02-20 Thread Sheldon
Hi, I'm trying to read a netCDF4 variable from a file (no problem) and then scale it before writing over the original variable in the file. I'm using python 2.7 and the latest netCDF4 module. It's not that I keep getting an error message but I want to do this without using for loops and all the

Re: [semi OT]: Smartphones and Python?

2012-02-20 Thread Dan Stromberg
On Wed, Feb 15, 2012 at 3:36 PM, Paul Rubin no.email@nospam.invalid wrote: Martin Schöön martin.sch...@gmail.com writes: A very quick internet search indicated that this should be no big deal if I go for an Android-based phone. What about the alternatives? It works pretty well with Maemo,

Re: netCDF4 variable manipulation

2012-02-20 Thread Dave Angel
On 02/20/2012 03:37 PM, Sheldon wrote: Hi, I'm trying to read a netCDF4 variable from a file (no problem) and then scale it before writing over the original variable in the file. I'm using python 2.7 and the latest netCDF4 module. It's not that I keep getting an error message but I want to do

Re: netCDF4 variable manipulation

2012-02-20 Thread Steven D'Aprano
On Mon, 20 Feb 2012 12:37:22 -0800, Sheldon wrote: Hi, I'm trying to read a netCDF4 variable from a file (no problem) and then scale it before writing over the original variable in the file. I'm using python 2.7 and the latest netCDF4 module. It's not that I keep getting an error message

Re: Numeric root-finding in Python

2012-02-20 Thread David Monaghan
On Sun, 12 Feb 2012 10:20:17 -0500, inq1ltd inq1...@inqvista.com wrote: I don't know the first thing about this math problem however, if I were to code this I might try ; except ZeroDivisionError: assert w = -1 rather than; except ZeroDivisionError: assert w == -1

Re: Numeric root-finding in Python

2012-02-20 Thread Mark Lawrence
On 21/02/2012 01:33, David Monaghan wrote: On Sun, 12 Feb 2012 10:20:17 -0500, inq1ltdinq1...@inqvista.com wrote: I don't know the first thing about this math problem however, if I were to code this I might try ; except ZeroDivisionError: assert w = -1 rather than; except

Re: paper submission and versioning system - advice?

2012-02-20 Thread alex23
On Feb 21, 3:45 am, Brian Blais bbl...@gmail.com wrote: Essentially I need users to be able to start a proposal, with some basic information, and then be able to add files to it. Other users will be allowed to add files as well, but I'd like to limit deletions to the committee members. It

Python Game Programming Challenge (PyWeek) #14 is coming!

2012-02-20 Thread Richard Jones
The 14th Python Game Programming Challenge (PyWeek) is coming. It'll run from the 22nd to the 29th of April. http://pyweek.org/14/ New user registration is NOT YET OPEN. It will open one month before the challenge starts. The PyWeek challenge: - Invites entrants to write a game in one week

Should I acquire lock for logging.Handler.flush()?

2012-02-20 Thread Fayaz Yusuf Khan
I'm writing a custom logging Handler that sends emails through AWS Simple Email Service using the boto library. As there's a quota cap on how many (200) emails I can send within 24hrs, I think I need to buffer my log messages from the emit() calls (Or is that a bad idea?). And I was reading the

[issue14062] UTF-8 Email Subject problem

2012-02-20 Thread Michal Sladek
New submission from Michal Sladek mic...@sladkovi.eu: Hello! I think there is a problem when adding UTF-8 subject to email message. I wrote following function (its code is based on examples I found in offical docs) which should send an email with UTF-8 subject, UTF-8 plain text body and

[issue14047] UTF-8 Email Header

2012-02-20 Thread Michal Sladek
Michal Sladek mic...@sladkovi.eu added the comment: Hello Martin! Thanks for your kind words and for giving me hints how to fill the bug report properly. I hope this time it will be accepted (ID 14062). Best regards Michal Dne 19. února 2012 19:59 Martin v. Löwis rep...@bugs.python.org

[issue14034] first example in argparse doc is too complicated

2012-02-20 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: I chose to go the way of a howto. I find argparse complex enough to deserve one. note: I have checked each example on the 3 releases that possess the module (2.7, 3.2, and 3.3), and the differences in output are very small. --

[issue14050] Tutorial, list.sort() and items comparability

2012-02-20 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: An an aside, shouldn't that be in-place instead of in place (http://en.wikipedia.org/wiki/In-place)? -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org

[issue13605] document argparse's nargs=REMAINDER

2012-02-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Blocks not introduced by :: are *NOT* code blocks. If they happen to begin with , they are recognized as doctest blocks and colorized as doctests. Doctest blocks shouldn't be indented. (The indent is a blockquote in this case.) --

[issue9253] argparse: optional subparsers

2012-02-20 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: The implementation looks along the right track. Now it just needs some tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9253

[issue14027] Add pysetup script for Windows

2012-02-20 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I don’t understand the notions of standard vs. custom. Does standard mean setuptools? #12394 is not quite ready yet, so nothing is set in stone, but if possible I’d prefer to generate pysetup.exe. Let’s move the sub-discussion there.

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2012-02-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10112 ___ ___ Python-bugs-list mailing

[issue13605] document argparse's nargs=REMAINDER

2012-02-20 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: (this is only concerning the latest commit) Not sure if I should open a new issue, but why is there a print function at all, given that: print(parser.parse_args('--foo B cmd --arg1 XX ZZ'.split())) Namespace(args=['--arg1', 'XX',

[issue13846] Add time.monotonic() function

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Boost has a monotonic time implementation (steady_clock) for OS X: http://svn.boost.org/svn/boost/trunk/boost/chrono/detail/inlined/mac/chrono.hpp -- nosy: +ned.deily, pitrou ___ Python tracker

[issue14058] test_sys has started failing

2012-02-20 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Yep, works now. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14058 ___

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Vinay Sajip
New submission from Vinay Sajip vinay_sa...@yahoo.co.uk: == FAIL: test_insensitive (importlib.test.source.test_case_sensitivity.CaseSensitivityTest) --

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Also fails on 10.7 standard unix (non-framework) build on case-insensitive HFS+ fils system. -- assignee: ronaldoussoren - brett.cannon nosy: +ned.deily ___ Python tracker rep...@bugs.python.org

[issue12428] functools test coverage

2012-02-20 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Just noticed one minor nit with the patch: the pure Python version of functools.partial should support func as a keyword argument that is passed to the underlying object. The trick is to declare a positional only argument like this: def

[issue12428] functools test coverage

2012-02-20 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Also, the closure based implementation should be decorated with @staticmethod (see http://bugs.python.org/issue11704) and the tests updated accordingly. -- ___ Python tracker rep...@bugs.python.org

[issue14064] collections module imported twice in urllib/parse.py

2012-02-20 Thread Bithin A
New submission from Bithin A bithin2...@gmail.com: In urllib/parse.py the collections module is imported twice which is against the PEP8-- Style Guide for Python Code. -- components: Library (Lib) files: multiple_imports.patch keywords: patch messages: 153780 nosy: Bithin.A priority:

[issue14064] collections module imported twice in urllib/parse.py

2012-02-20 Thread Bithin A
Changes by Bithin A bithin2...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14064 ___ ___ Python-bugs-list

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-20 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: (2.7.2 doesn’t include neither Antoine’s changeset nor mine, right?) Correct; it dates back to June last year, before issue 13193 was filed. Can you reproduce the “include buildout.cfg” bug too? Yes, that problem is present in 2.7.2,

[issue14052] importlib mixes up '.' and os.getcwd()

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There was the following sporadic buildbot failure: == FAIL: test_package___file__ (test.test_imp.PEP3147Tests)

[issue14064] collections module imported twice in urllib/parse.py

2012-02-20 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This is perfectly fine the way it is. PEP 8 has nothing to say about it. -- nosy: +benjamin.peterson resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14064] collections module imported twice in urllib/parse.py

2012-02-20 Thread Bithin A
Changes by Bithin A bithin2...@gmail.com: Removed file: http://bugs.python.org/file24577/multiple_imports.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14064 ___

[issue14062] UTF-8 Email Subject problem

2012-02-20 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14062 ___ ___ Python-bugs-list

[issue14065] Element should support cyclic GC

2012-02-20 Thread Martin v . Löwis
New submission from Martin v. Löwis mar...@v.loewis.de: The C implementation of xml.etree.ElementTree.Element needs to support cyclic GC. The attached script demonstrates the lack to support that: in 3.2, the script passes; in 3.3 (7697223df6df) it fails with an AssertionError as the cycle

[issue14065] Element should support cyclic GC

2012-02-20 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/issue14065 ___ ___ Python-bugs-list mailing list

[issue14065] Element should support cyclic GC

2012-02-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Library (Lib) nosy: +flox stage: - needs patch type: - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14065

[issue14059] Implement multiprocessing.Barrier

2012-02-20 Thread sbt
sbt shibt...@gmail.com added the comment: Here is an initial implementation. Differences from threading.Barrier: - I have not implemented reset(). - wait() returns 0 or -1. One thread returns 0, the remainder return -1. This is different to threading.Barrier where each of the N threads

[issue14059] Implement multiprocessing.Barrier

2012-02-20 Thread sbt
sbt shibt...@gmail.com added the comment: barrier_tests.py contains minor modifications of the unit tests for threading.Barrier. (The two tests using reset() are commented out.) The implementation passes for me on Linux and Windows. -- Added file:

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +francismb type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13447 ___

[issue14053] Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

2012-02-20 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: Nice feedback ! One question : An alternative approach that solves all three of these problems is to check whether we have any patches applied (using hg qapplied), and if this is the case, then add --rev qbase to the hg

[issue14057] Speedup sysconfig startup

2012-02-20 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14057 ___ ___ Python-bugs-list

[issue14052] importlib mixes up '.' and os.getcwd()

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: [...] And I can't reproduce, even when using --randseed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14052 ___

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Antoine, do you think this may have been triggered by your latest patch? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14063

[issue14052] importlib mixes up '.' and os.getcwd()

2012-02-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: The test suite does use importlib for some imports as finders from importlib for some packages stick around. I brought this up a way back but people thought it was actually a good idea to let importlib handle imports to stress test it. Anyway,

[issue14052] importlib mixes up '.' and os.getcwd()

2012-02-20 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14052 ___

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Antoine, do you think this may have been triggered by your latest patch? I don't know, perhaps Vinay can bisect to find the offending commit? (I don't have a Mac) -- ___ Python tracker

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I have a Mac, but I'm heading out the door; I will see if I can diagnose it and fix it tonight or tomorrow (unless someone beats me to it). -- ___ Python tracker rep...@bugs.python.org

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

2012-02-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c760bd844222 by Antoine Pitrou in branch 'default': Issue #13641: Decoding functions in the base64 module now accept ASCII-only unicode strings. http://hg.python.org/cpython/rev/c760bd844222 -- nosy:

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

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've committed issue13641-alternative-v1.patch. I really think practicality beats purity here and, furthermore, there's no associated danger (non-ASCII data is rejected both as bytes and str). -- ___

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

2012-02-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13641 ___

[issue14040] Deprecate some of the module file formats

2012-02-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 42f61304f77d by Antoine Pitrou in branch 'default': Issue #14040: Remove rarely used file name suffixes for C extensions (under POSIX mainly). http://hg.python.org/cpython/rev/42f61304f77d -- nosy:

[issue14053] Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

2012-02-20 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Shouldn't be --rev qparent ? Yes, that's right. I seem to confuse qbase and qparent often... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14053

[issue14040] Deprecate some of the module file formats

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've now committed the suffix removal patch with a what's new entry. Thanks! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue13703] Hash collision security issue

2012-02-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f4b7ecf8a5f8 by Georg Brandl in branch '3.1': Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime) http://hg.python.org/cpython/rev/f4b7ecf8a5f8 -- nosy: +python-dev

[issue14066] Crash in imputil.imp.find_module when a *directory* exists with the given name due to double-close of FILE*

2012-02-20 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: $ mkdir some_directory_ending_with_a.py $ python -c import imputil; imputil.imp.find_module('some_directory_ending_with_a') *** glibc detected *** python: double free or corruption (!prev): 0x01589bf0 *** Aborted What's happening

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The first bad revision is: changeset: 75048:bbaab666e6c7 parent: 75045:5b4b70bd2b6f user:Antoine Pitrou solip...@pitrou.net date:Mon Feb 20 01:48:16 2012 +0100 summary: Issue #14043: Speed up importlib's _FileFinder by at least

[issue14066] Crash in imputil.imp.find_module when a *directory* exists with the given name due to double-close of FILE*

2012-02-20 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Duplicate of issue 7732 -- resolution: - duplicate status: open - closed superseder: - imp.find_module crashes Python if there exists a directory named __init__.py ___ Python tracker

[issue13703] Hash collision security issue

2012-02-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4a31f6b11e7a by Georg Brandl in branch '3.2': Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime) http://hg.python.org/cpython/rev/4a31f6b11e7a --

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can you please try this patch? -- assignee: brett.cannon - keywords: +patch Added file: http://bugs.python.org/file24581/impcasing.patch ___ Python tracker rep...@bugs.python.org

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: With impcasing.patch applied, test_importlib passes on OS X (10.7 with case-insensitive fs). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14063

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3297dcdad196 by Antoine Pitrou in branch 'default': Issue #14063: fix test_importlib failure under OS X case-insensitive filesystems http://hg.python.org/cpython/rev/3297dcdad196 -- nosy: +python-dev

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, thanks for testing! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14063

[issue14060] Implement a CSP-style channel

2012-02-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I think zero-sized queues are exactly the right answer here. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14060 ___

[issue14053] Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

2012-02-20 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: The patch is updated. Notice about: [...]Ideally, it should distinguish between this and other errors by checking the subprocess's stderr, so that if a different error occurs, we can still print out the error message. […] that

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This is an experimental patch that limits the frequency of stat() calls in _FileFinder.find_module(). It speeds up finding modules by 2x here, but unfortunately breaks some tests (which expect modules to appear immediately when created).

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2012-02-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The patch is fairly incomplete: it assumes that the compiler supports __attribute__((visibility())), but it really needs to check for that. Also, there is no chance that this can go into Python 2.7; retargetting for 3.3. --

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2012-02-20 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/issue10112 ___

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-20 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: +1 while working on #issue14053 I missed the test for the scripts (in this case some kind of mocking is needed). -- ___ Python tracker rep...@bugs.python.org

[issue13405] Add DTrace probes

2012-02-20 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: jcea: BTW, will you be at PyCon US this year? if so, can we sprint on getting the DTrace and SystemTap hooks into CPython in some form acceptable to the rest of the CPython maintainers? -- ___

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file24584/imptime.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14067 ___

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file24583/imptime.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14067 ___

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14067 ___ ___ Python-bugs-list

[issue14053] Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

2012-02-20 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Hmm... it looks like mq_changed_files() duplicates a chunk of logic from the existing changed_files() code. You can get rid of this redundancy by replacing mq_changed_files() with a function that checks for applied MQ patches; let's call it

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: The patch uses the time module which is not a built-in, so it breaks bootstrapping by directly importing a module, and an extension at that. At best you could switch to a modified _FileFinder after importlib is initially running and able to

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch uses the time module which is not a built-in, so it breaks bootstrapping by directly importing a module, and an extension at that. At best you could switch to a modified _FileFinder after importlib is initially running and able to

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: On Mon, Feb 20, 2012 at 18:06, Antoine Pitrou rep...@bugs.python.orgwrote: Antoine Pitrou pit...@free.fr added the comment: The patch uses the time module which is not a built-in, so it breaks bootstrapping by directly importing a module,

[issue13703] Hash collision security issue

2012-02-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ed76dc34b39d by Georg Brandl in branch 'default': Merge 3.2: Issue #13703 plus some related test suite fixes. http://hg.python.org/cpython/rev/ed76dc34b39d -- ___ Python

[issue14053] Make patchcheck work with MQ

2012-02-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: Make Tools/scripts/patchcheck.py compatible with mercurial mqueues. - Make patchcheck work with MQ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14053

[issue14062] UTF-8 Email Subject problem

2012-02-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14062 ___ ___ Python-bugs-list

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m pushing this higher on my todo list then. I’ll certainly upload a patch for review here with the basic machinery, then commit it, and then we’ll be able to add tests for the tools we like. -- assignee: - eric.araujo

[issue14034] Add argparse howto

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Nice. I’ll find time to review later; Steven, do you have objections on the idea of adding an argparse howto? Do you want to review it yourself? -- nosy: +bethard title: first example in argparse doc is too complicated - Add argparse

[issue14047] UTF-8 Email Header

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I had written a message which read much like Martin’s and wanted to reopen this report, but apparently my flaky connection did not let it go through and now it’s lost. My apologies for not understanding your report for what it was, and thanks

[issue14050] Tutorial, list.sort() and items comparability

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Nope, the expression would be hyphenated only when used as an adjective: - “This sorts the sequence in place” vs. ‑ “Performs an in-place rearrangement by birthdate” -- ___ Python tracker

[issue14053] Make patchcheck work with MQ

2012-02-20 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: Updated. Interesting: I saw that repetition but due “[…] Ideally, it should distinguish between this and other errors by checking the subprocess's stderr, so that if a different error occurs, we can still print out the error message.

[issue1521950] shlex.split() does not tokenize like the shell

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This time you should have received an email from Rietveld, I made sure that your ID was expanded to an email address. I like all the suggestions you made in reply to my comments. -- ___ Python

  1   2   >