GENOCIDE IN THE TWENTY-FIRST CENTURY IN SYRIA !!!!!!!!!!!!!!

2012-03-12 Thread BV BV
GENOCIDE IN THE TWENTY-FIRST CENTURY IN SYRIA SCHOKING ASSAD REGIME SYRIA http://www.youtube.com/watch?v=5H1NL8aOlsg http://www.youtube.com/watch?v=jZP51eRKy34 http://www.youtube.com/watch?v=e7AY8hSUjVc http://www.youtube.com/watch?v=g3ZPbUcKI-kfeature=related BABY TORTURED TO DEATH

Re: A Plausible Promise of Abundant Educational Resources

2012-03-12 Thread Calvin Kim
Google search for slidespeech returns with a warning, This site may harm your computer. -- http://mail.python.org/mailman/listinfo/python-list

Fwd: Launching A Truly Disjoint Process

2012-03-12 Thread Ami Tavory
-- Forwarded message -- From: Cameron Simpson c...@zip.com.au Date: Mon, Mar 12, 2012 at 1:04 AM Subject: Re: Launching A Truly Disjoint Process To: Dave Angel d...@davea.name Cc: Ami Tavory atav...@gmail.com, python-list@python.org On 11Mar2012 17:34, Dave Angel d...@davea.name

Re: newb __init__ inheritance

2012-03-12 Thread hyperboogie
On Thursday, March 8, 2012 5:25:06 PM UTC+2, hyperboogie wrote: Hello everyone. This is my first post in this group. I started learning python a week ago from the dive into python e- book and thus far all was clear. However today while reading chapter 5 about objects and object orientation

Re: html5lib not thread safe. Is the Python SAX library thread-safe?

2012-03-12 Thread Paul Rubin
John Nagle na...@animats.com writes: But html5lib calls the XML SAX parser. Is that thread-safe? Or is there more trouble down at the bottom? According to http://xmlbench.sourceforge.net/results/features200303/index.html libxml and expat both purport to be thread-safe. I've used the

Re: html5lib not thread safe. Is the Python SAX library thread-safe?

2012-03-12 Thread Stefan Behnel
John Nagle, 11.03.2012 21:30: html5lib is apparently not thread safe. (see http://code.google.com/p/html5lib/issues/detail?id=189;) Looking at the code, I've only found about three problems. They're all the usual cached in a global without locking bug. A few locks would fix that. But

Re: Raise X or Raise X()?

2012-03-12 Thread Jean-Michel Pichavant
bvdp wrote: Which is preferred in a raise: X or X()? I've seen both. In my specific case I'm dumping out of a deep loop: try: for ... for ... for ... if match: raise StopInteration() else ... except StopInteration: print found it I prefer the

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-12 Thread Albert van der Horst
In article 0078bbfb-5dfc-48fc-af1a-69de3cf15...@b1g2000yqb.googlegroups.com, Xah Lee xah...@gmail.com wrote: New Science Discovery: Perl Idiots Remain Idiots After A Decade! A excerpt from the new book =E3=80=88Modern Perl=E3=80=89, just published, = chapter 4 on =E2=80=9COperators=E2=80=9D.

Re: New Science Discovery: Perl Detractors Remain Idiots After A Decade

2012-03-12 Thread Seymour J.
In m0rrtp@spenarnc.xs4all.nl, on 03/12/2012 at 11:27 AM, Albert van der Horst alb...@spenarnc.xs4all.nl said: You're confused. No, s/h/it is just an acephalic troll with delusions of adequacy. left-associativity and right-associativity are computer languages concept and their definitions

Re: Raise X or Raise X()?

2012-03-12 Thread Robert Kern
On 3/12/12 10:37 AM, Jean-Michel Pichavant wrote: bvdp wrote: Which is preferred in a raise: X or X()? I've seen both. In my specific case I'm dumping out of a deep loop: try: for ... for ... for ... if match: raise StopInteration() else ... except StopInteration: print found it I prefer

Re: Raise X or Raise X()?

2012-03-12 Thread James Elford
On 11/03/12 19:04, bvdp wrote: Which is preferred in a raise: X or X()? I've seen both. In my specific case I'm dumping out of a deep loop: try: for ... for ... for ... if match: raise StopInteration() else ... except StopInteration: print

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-12 Thread Kiuhnm
On 3/12/2012 12:27, Albert van der Horst wrote: Interestingly in mathematics associative means that it doesn't matter whether you use (a.b).c or a.(b.c). Using xxx-associativity to indicate that it *does* matter is a bit perverse, but the Perl people are not to blame if they use a term in their

Re: Raise X or Raise X()?

2012-03-12 Thread Chris Angelico
On Tue, Mar 13, 2012 at 12:06 AM, James Elford fil.ora...@gmail.com wrote: I wonder whether you need to use an exception here rather than a yield statement? Or a return statement, if you're not needing multiple responses. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: What's the best way to parse this HTML tag?

2012-03-12 Thread Roy Smith
In article bb1a55fa-3dcf-4480-ae87-be30a1a65...@h9g2000yqe.googlegroups.com, John Salerno johnj...@gmail.com wrote: Well, I had considered exactly that method, but I don't know for sure if the titles and names will always have links like that, so I didn't want to tie my programming to

Re: Raise X or Raise X()?

2012-03-12 Thread Stefan Behnel
Irmen de Jong, 11.03.2012 21:37: On 11-3-2012 20:04, bvdp wrote: Which is preferred in a raise: X or X()? I've seen both. In my specific case I'm dumping out of a deep loop: try: for ... for ... for ... if match: raise StopInteration() else ...

Re: Raise X or Raise X()?

2012-03-12 Thread Steven D'Aprano
On Mon, 12 Mar 2012 14:52:49 +0100, Stefan Behnel wrote: raise X is a special case of the 3-args raise. Effectively it just raises an instance of X which is constructed with an empty argument list. Therefore, raise X() is equivalent, as far as I know. Not completely, although that may be

Re: Raise X or Raise X()?

2012-03-12 Thread Stefan Behnel
Steven D'Aprano, 12.03.2012 16:08: On Mon, 12 Mar 2012 14:52:49 +0100, Stefan Behnel wrote: raise X is a special case of the 3-args raise. Effectively it just raises an instance of X which is constructed with an empty argument list. Therefore, raise X() is equivalent, as far as I know. Not

Re: html5lib not thread safe. Is the Python SAX library thread-safe?

2012-03-12 Thread John Nagle
On 3/12/2012 3:05 AM, Stefan Behnel wrote: John Nagle, 11.03.2012 21:30: html5lib is apparently not thread safe. (see http://code.google.com/p/html5lib/issues/detail?id=189;) Looking at the code, I've only found about three problems. They're all the usual cached in a global without locking

Re: How Python empowers Java?

2012-03-12 Thread Terry Reedy
On 3/12/2012 1:39 AM, Ashish Aggarwal wrote: I am a Java developer but new to Python. I am trying to assess, as what are new capabilities that Python will provide me if I use it with Java. Guys can you please help me? 1. Jython is a Python interpreter (older version) implemented in Java. It

Re: New Science Discovery: Perl Detractors Remain Idiots After A Decade

2012-03-12 Thread Raymond Wiker
Shmuel (Seymour J.) Metz spamt...@library.lspace.org.invalid writes: In m0rrtp@spenarnc.xs4all.nl, on 03/12/2012 at 11:27 AM, Albert van der Horst alb...@spenarnc.xs4all.nl said: You're confused. No, s/h/it is just an acephalic troll with delusions of adequacy. Another way to

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-12 Thread Albert van der Horst
In article 4f5df4b3$0$1375$4fafb...@reader1.news.tin.it, Kiuhnm kiuhnm03.4t.yahoo.it wrote: On 3/12/2012 12:27, Albert van der Horst wrote: Interestingly in mathematics associative means that it doesn't matter whether you use (a.b).c or a.(b.c). Using xxx-associativity to indicate that it

Fast file data retrieval?

2012-03-12 Thread Virgil Stokes
I have a rather large ASCII file that is structured as follows header line 9 nonblank lines with alphanumeric data header line 9 nonblank lines with alphanumeric data ... ... ... header line 9 nonblank lines with alphanumeric data EOF where, a data set contains 10 lines (header + 9 nonblank)

Re: Fast file data retrieval?

2012-03-12 Thread MRAB
On 12/03/2012 19:39, Virgil Stokes wrote: I have a rather large ASCII file that is structured as follows header line 9 nonblank lines with alphanumeric data header line 9 nonblank lines with alphanumeric data ... ... ... header line 9 nonblank lines with alphanumeric data EOF where, a data set

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-12 Thread Kiuhnm
On 3/12/2012 20:00, Albert van der Horst wrote: In article4f5df4b3$0$1375$4fafb...@reader1.news.tin.it, Kiuhnmkiuhnm03.4t.yahoo.it wrote: On 3/12/2012 12:27, Albert van der Horst wrote: Interestingly in mathematics associative means that it doesn't matter whether you use (a.b).c or a.(b.c).

Re: Fast file data retrieval?

2012-03-12 Thread Arnaud Delobelle
On 12 March 2012 19:39, Virgil Stokes v...@it.uu.se wrote: I have a rather large ASCII file that is structured as follows header line 9 nonblank lines with alphanumeric data header line 9 nonblank lines with alphanumeric data ... ... ... header line 9 nonblank lines with alphanumeric

Re: Fast file data retrieval?

2012-03-12 Thread Dan Stromberg
If the ID's are sorted, you could probably rig a binary search using seek. This'll be easier if the records have a constant length, but it's still possible for variable-length, just messier. Otherwise you could stash them all in a dictionary (in memory) or anydbm (on disk) to get indexed access.

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-12 Thread Alec Taylor
On a brand new Windows install now, with a brand new VS8 installed with new YASM and MPIR in c:\usr\src\include and c:\usr\src\lib. But it still isn't working: C:\workingdir\pycryptopython setup.py build_ext -Ic:\usr\src\include -Lc:\usr\src\lib install running build_ext warning: GMP or MPIR

RE: Fast file data retrieval?

2012-03-12 Thread Prasad, Ramit
header line 9 nonblank lines with alphanumeric data header line 9 nonblank lines with alphanumeric data ... ... ... header line 9 nonblank lines with alphanumeric data EOF where, a data set contains 10 lines (header + 9 nonblank) and there can be several thousand data

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-12 Thread Alec Taylor
FYI: When running vcvarsall manually, I get a variety of linker errors, even though I have the SDK and everything else installed: running build_ext building 'Crypto.Random.OSRNG.winrandom' extension C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS-

Re: How to break long method name into more than one line?

2012-03-12 Thread Chris Angelico
On Tue, Mar 13, 2012 at 3:24 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On 12 Mar 2012 00:30:08 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info declaimed the following in gmane.comp.python.general: I expect that naming rule was invented by either people who have heard of

Re: Fast file data retrieval?

2012-03-12 Thread Jon Clements
On Monday, 12 March 2012 20:31:35 UTC, MRAB wrote: On 12/03/2012 19:39, Virgil Stokes wrote: I have a rather large ASCII file that is structured as follows header line 9 nonblank lines with alphanumeric data header line 9 nonblank lines with alphanumeric data ... ... ...

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-12 Thread casevh
On Monday, March 12, 2012 1:38:29 PM UTC-7, Alec Taylor wrote: On a brand new Windows install now, with a brand new VS8 installed with new YASM and MPIR in c:\usr\src\include and c:\usr\src\lib. But it still isn't working: This was a little challenging. I looked through the setup.py to

Re: A Plausible Promise of Abundant Educational Resources

2012-03-12 Thread John Graves
The warning from Google should be fixed by now. A server outside my control had been infected with malware, so I shifted servers, but the warning message remained attached to the domain name. The address http://slidespeech.org leads to http://code.google.com/p/slidespeech/ the source code

Re: A Plausible Promise of Abundant Educational Resources

2012-03-12 Thread John Graves
OK. Do you have an presentation prepared? I've put the one with the photographshttp://dl.dropbox.com/u/12838403/20120311/photo-slide-en.htmonto Dropbox. On Tue, Mar 13, 2012 at 5:06 PM, John Graves jg07...@gmail.com wrote: The warning from Google should be fixed by now. A server outside my

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-12 Thread Alec Taylor
Hmm, I just tried that method, but the output I got was still: C:\workingdir\pycryptopython setup.py install running install running build running build_py running build_ext building 'Crypto.Random.OSRNG.winrandom' extension Traceback (most recent call last): File setup.py, line 452, in module

[issue8739] Update to smtpd.py to RFC 5321

2012-03-12 Thread Juhana Jauhiainen
Juhana Jauhiainen juhana.jauhiai...@gmail.com added the comment: Since Michele has been already working on this I could help with the cleanup once it's separated as a new issue. David: Thanks for your comments. I wasn't sure if I should make a general solution or not and ended up making this

[issue14257] minor error in glossary wording regarding __hash__

2012-03-12 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: I regret to inform you that those changes made the sentence in question ungrammatical. Removing the word method will make it grammatical again (as originally suggested). -- resolution: fixed - status: closed - open

[issue8739] Update to smtpd.py to RFC 5321

2012-03-12 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Patch attached. A few considerations: in case of syntax error, the server responds with MAIL FROM:address [SP mail-parameters ] CRLF according to http://tools.ietf.org/html/rfc5321#section-3.3 (instead of MAIL FROM:address). Note that this

[issue1531415] parsetok.c emits warnings by writing to stderr

2012-03-12 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: This is not the proper workflow for bug tracking. No one is working on this right now is not the same as This bug is invalid. No one worked on this ticket almost *seven years* after I filed it. You are right. Sorry for that. --

[issue14261] Cleanup in smtpd module

2012-03-12 Thread Michele Orrù
New submission from Michele Orrù maker...@gmail.com: This issue is related to 8739 . As pointed in http://bugs.python.org/issue8739#msg155385, « tests are in the form FooTest instead of TestFoo, smtpd imports modules used only in __main__, warnings can be handled the appropriate module,

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-12 Thread Ram Rachum
New submission from Ram Rachum r...@rachum.com: Please allow using decimals as arguments to `timedelta`, so the following code won't raise an exception: Python 3.3.0a1 (default, Mar 4 2012, 17:27:59) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more

[issue10296] ctypes catches BreakPoint error on windows 32

2012-03-12 Thread Patrick
Patrick pjlby...@gmail.com added the comment: This affects me too. -- nosy: +pjlbyrne ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10296 ___ ___

[issue14204] Support for the NPN extension to TLS/SSL

2012-03-12 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/issue14204 ___ ___ Python-bugs-list mailing list

[issue14102] argparse: add ability to create a man page

2012-03-12 Thread Ingo Fischer
Changes by Ingo Fischer fredistdurs...@googlemail.com: -- nosy: +Ingo.Fischer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14102 ___ ___

[issue14249] unicodeobject.c: aliasing warnings

2012-03-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Benjamin Peterson rep...@bugs.python.org wrote: gcc 4.5 doesn't warn for me. Is this a compiler bug in 4.4 or 4.5? That is, are these actual aliasing violations? I see this with 4.4 but also with 4.6 when using -Wstrict-aliasing=2.

[issue1648923] HP-UX: -lcurses missing for readline.so

2012-03-12 Thread GaaL33
GaaL33 ubu...@l3p3t1t.net added the comment: I confirm that there's still a build issue. I've tried to compile python 2.7.2 on HP-UX 11.31. And it crashes with : ld -b build/temp.hp-ux-B.11.31-ia64-2.7/images/Python-2.7.2/Modules/readline.o -L/usr/lib/termcap -L/usr/local/lib

[issue8942] __path__ attribute of modules loaded by zipimporter is untested

2012-03-12 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment: I'm working on it -- nosy: +tati_alchueyr ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8942 ___

[issue1648923] HP-UX: -lcurses missing for readline.so

2012-03-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OK, reopening. I've added 3.2 and 3.3 as I imagine the same problem will exist there. Now we need someone to propose a patch to fix it. -- resolution: out of date - stage: test needed - needs patch status: closed - open

[issue8070] Infinite loop in PyRun_InteractiveLoopFlags() if PyRun_InteractiveOneFlags() raises an error

2012-03-12 Thread Tim Lesher
Tim Lesher tles...@gmail.com added the comment: Corrected const warning in previous patch. -- Added file: http://bugs.python.org/file24794/8070-use-default-encoding-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8070

[issue8010] tkFileDialog.askopenfiles crashes on Windows 7

2012-03-12 Thread Tim Lesher
Changes by Tim Lesher tles...@gmail.com: -- nosy: +tlesher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8010 ___ ___ Python-bugs-list mailing

[issue12919] Control what module is imported first

2012-03-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +carljm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12919 ___ ___ Python-bugs-list mailing

[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()

2012-03-12 Thread Anthony Tuininga
Anthony Tuininga anthony.tuini...@gmail.com added the comment: All, I have trimmed this patch down to the bare minimum required to solve this problem. Please review this as I would dearly love to have this committed. The error received without this patch is MSIError: unknown error 103 This

[issue14243] NamedTemporaryFile unusable under Windows

2012-03-12 Thread Dave Abrahams
Dave Abrahams d...@boostpro.com added the comment: Nick, not to belabor this, but I guess you don't understand the use-case in question very well, or you'd see that delete=False doesn't cover it. The use case is this: I have to write a test for a function that takes a filename as a parameter

[issue14243] NamedTemporaryFile unusable under Windows

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

[issue8942] __path__ attribute of modules loaded by zipimporter is untested

2012-03-12 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment: Improved test so the __path__ of a package loaded from a zip file, using zipimporter, is checked. -- keywords: +patch Added file: http://bugs.python.org/file24796/issue8942_test_for_zipimporter.patch

[issue14260] re.groupindex available for modification and continues to work, having incorrect data inside it

2012-03-12 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: The re module creates the dict purely for the benefit of the user, and as it's a normal dict, it's mutable. An alternative would to use an immutable dict or dict-like object, but Python doesn't have such a class, and it's probably

[issue13842] Cannot pickle Ellipsis or NotImplemented

2012-03-12 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: There is indeed a 5% performance gain from using PyUnicode_FromString instead of the generic Py_BuildValue function. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13842

[issue12342] characters with ord above 65535 fail to display in IDLE

2012-03-12 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12342 ___ ___

[issue13842] Cannot pickle Ellipsis or NotImplemented

2012-03-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5832d3622473 by Łukasz Langa in branch 'default': Fixes #13842: cannot pickle Ellipsis or NotImplemented. http://hg.python.org/cpython/rev/5832d3622473 -- nosy: +python-dev

[issue13842] Cannot pickle Ellipsis or NotImplemented

2012-03-12 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13842 ___

[issue11664] Add patch method to unittest.TestCase

2012-03-12 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: mock is being added to Python 3.3 as unittest.mock - so a helper TestCase.patch should delegate to unittest.mock.patch. -- ___ Python tracker rep...@bugs.python.org

[issue14263] switch_index_if_fails fails on py2

2012-03-12 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: distutils2 pysetup install is not working on py2 because the wrapper tries to pull func.f_name, which does not exist. -- assignee: tarek messages: 155463 nosy: eric.araujo, j1m, tarek priority: critical severity: normal status:

[issue14263] switch_index_if_fails fails on py2

2012-03-12 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14263 ___ ___ Python-bugs-list

[issue14263] switch_index_if_fails fails on py2

2012-03-12 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- components: +Distutils2 nosy: +alexis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14263 ___ ___

[issue14264] can't install zope.event 3.4.0

2012-03-12 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: tarek components: Distutils2 nosy: alexis, eric.araujo, j1m, tarek priority: high severity: normal status: open title: can't install zope.event 3.4.0 type: behavior versions: Python 2.6, Python 2.7

[issue14264] can't install zope.event 3.4.0

2012-03-12 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: it gets 3.4.1 for some reason -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14264 ___

[issue14238] python shouldn't need username in passwd database

2012-03-12 Thread Ali Ikinci
Ali Ikinci a...@ikinci.info added the comment: I have started to work on this. -- nosy: +aikinci ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14238 ___

[issue14264] can't install zope.event 3.4.0

2012-03-12 Thread Jan-Jaap Driessen
Changes by Jan-Jaap Driessen janjaapdriessen+pythonb...@gmail.com: -- nosy: +janjaapdriessen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14264 ___

[issue14263] switch_index_if_fails fails on py2

2012-03-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 32a95541829c by Tarek Ziade in branch 'default': Fixed a function name lookup in distutils2.pypi.wrapper (#14263) http://hg.python.org/distutils2/rev/32a95541829c -- nosy: +python-dev

[issue14265] Fully qualified test name in failure output

2012-03-12 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: Somewhere in the failure message for tests Guido would like to see the fully qualified test name, suitable for copying and pasting into a test runner invocation for running just that test. -- assignee: michael.foord

[issue14265] Fully qualified test name in failure output

2012-03-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: +10 :) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14265 ___

[issue13476] Simple exclusion filter for unittest autodiscovery

2012-03-12 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: This would be nice (more powerful) as a general test method exclusion filter: so run test discovery or fetch the specified test module / class and then exclude individual tests that match the pattern. We're looking to add a general

[issue14264] can't install zope.event 3.4.0

2012-03-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can you increase logging level and paste log messages? -- stage: - test needed versions: +3rd party, Python 3.3 -Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-12 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment: Working on this -- nosy: +tati_alchueyr ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5758 ___

[issue13703] Hash collision security issue

2012-03-12 Thread Jon Vaughan
Jon Vaughan jsvaug...@gmail.com added the comment: FWIW I upgraded to ubuntu pangolin beta over the weekend, which includes 2.7.3rc1, and I'm also experiencing a problem with urandom. File /usr/lib/python2.7/email/utils.py, line 27, in module import random File

[issue14264] Comparison bug in distutils2.version

2012-03-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: More info: The command to reproduce the bug is “pysetup install zope.event (3.4.0)”, which gets zope.event 3.4.1. The bug comes from d2.version.VersionPredicate.match: predicate = VersionPredicate('zope.event (3.4.0)')

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-12 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: reviewing now. -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14234 ___

[issue14204] Support for the NPN extension to TLS/SSL

2012-03-12 Thread Colin Marc
Colin Marc colinm...@gmail.com added the comment: More updates to the patch. -- Added file: http://bugs.python.org/file24797/npn_patch_py3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14204

[issue14266] pyunit script as shorthand for python -m unittest

2012-03-12 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: python -m unittest ... is a pain to type. A pyunit script would be a nice shorthand. (unittest2 has a unit2 script that does this.) -- assignee: michael.foord components: Library (Lib) messages: 155476 nosy: michael.foord

[issue14266] pyunit script as shorthand for python -m unittest

2012-03-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: And it should do discover by default, IMO (like nose does). -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14266 ___

[issue14104] Implement time.monotonic() on Mac OS X

2012-03-12 Thread Nicholas Riley
Nicholas Riley com-python-b...@sabi.net added the comment: Attached is a patch which implements time.monotonic() using mach_absolute_time() / mach_timebase_info(). This was recommended by Apple in their technical QA 1398: https://developer.apple.com/library/mac/#qa/qa1398/ --

[issue14266] pyunit script as shorthand for python -m unittest

2012-03-12 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Right unit2 on its own does discover by default now. (On head, not sure if that's released yet.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14266

[issue14264] Comparison bug in distutils2.version

2012-03-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1e0ca4594a2a by Tarek Ziade in branch 'default': Removed the trailing zero wiping (#14264) http://hg.python.org/distutils2/rev/1e0ca4594a2a -- nosy: +python-dev ___

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-12 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: So after looking at import.c and how it handles stuff, I have decided how I already implemented __import__() triggering __import__() itself is fine. So Antoine can just stay confused by my comment as it is now a moot point. =) --

[issue14267] TimedRotatingFileHandler chooses wrong file name due to daylight saving time spring forward

2012-03-12 Thread Matt Mullins
New submission from Matt Mullins mokom...@gmail.com: As logs were rotated at midnight this morning (at the end of the day 2012-03-11), we detected that the logs were incorrectly renamed to *.log.2012-03-10, causing logs from Saturday to be overwritten. I believe this bug is related to the

[issue14268] _move_file is broken because of a bad mock

2012-03-12 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: the mocked list_installed_files() returns a list of files instead of a list of (path, md5, path) -- assignee: tarek components: Distutils2 messages: 155483 nosy: alexis, eric.araujo, tarek priority: normal severity: normal status:

[issue14260] re.groupindex available for modification and continues to work, having incorrect data inside it

2012-03-12 Thread py.user
py.user port...@yandex.ru added the comment: Matthew Barnett wrote: The re module creates the dict purely for the benefit of the user this dict affects on regex.sub() import re p = re.compile(r'abc(?Pndef)') p.groupindex {'n': 1} p.groupindex['n'] = 2 p.sub(r'\gn', 'abcdef') Traceback

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-12 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Looks like Windows as a PC/import_nt.c:_PyWin_FindRegisteredModule() function used to find modules in the registry. Probably should care about that at some point (I guess). -- ___ Python tracker

[issue14238] python shouldn't need username in passwd database

2012-03-12 Thread Ali Ikinci
Ali Ikinci a...@ikinci.info added the comment: This patch fixes the issue but needs review. It is my first patch ever so be nice :) -- keywords: +patch Added file: http://bugs.python.org/file24800/issue14238.patch ___ Python tracker

[issue14268] _move_file is broken because of a bad mock

2012-03-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c0a9ba08ebe3 by Tarek Ziade in branch 'default': fixed a test mock issue (#14268) http://hg.python.org/distutils2/rev/c0a9ba08ebe3 -- nosy: +python-dev ___ Python tracker

[issue14238] python shouldn't need username in passwd database

2012-03-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks you for your contribution! I hope you’ll find fun bugs to make patches for. Your patch looks too simplistic; in the discussion, we agreed that if the lookup fails, the site module should not add user site directories (see

[issue13394] Patch to increase aifc lib test coverage

2012-03-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fc3a63ed1f67 by Ezio Melotti in branch '3.2': #13394: add more tests for the aifc module. Patch by Oleg Plakhotnyuk. http://hg.python.org/cpython/rev/fc3a63ed1f67 New changeset 512d3ad81fb9 by Ezio Melotti in

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-12 Thread Dan Boswell
New submission from Dan Boswell fruitn...@gmail.com: The current SMTP RFC (5321) states that 'a client MUST issue HELO or EHLO before starting a mail transaction'. The SMTP server should issue '503 Bad sequence of commands' if a client sends MAIL, RCPT or DATA commands before it sends an

[issue13842] Cannot pickle Ellipsis or NotImplemented

2012-03-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5353357382e2 by Łukasz Langa in branch 'default': #13842: check whether PyUnicode_FromString succeeded http://hg.python.org/cpython/rev/5353357382e2 -- ___ Python tracker

[issue14235] test_cmd.py does not correctly call reload()

2012-03-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Ah, right. Will apply your patch. -- assignee: - eric.araujo versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14235 ___

[issue14238] python shouldn't need username in passwd database

2012-03-12 Thread Arkadiusz Miskiewicz Arkadiusz Miskiewicz
Arkadiusz MiskiewiczArkadiusz Miskiewicz ar...@maven.pl added the comment: $ LC_ALL=C sudo -u '#' -g '#' /bin/sh -c 'unset HOME ; python -c ' Traceback (most recent call last): File /usr/share/python2.7/site.py, line 567, in module main() File

[issue14238] python shouldn't need username in passwd database

2012-03-12 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: See also the issue #10496. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14238 ___

[issue14002] distutils2 fails to install a package from PyPI on Python 2.7.2

2012-03-12 Thread Tetsuya Morimoto
Tetsuya Morimoto tetsuya.morim...@gmail.com added the comment: I can reproduce it on Mac OS X. I made a patch which checks the func_name attribute of function before it refers. It works for me. However, I wonder if a function has both func.im_self and func.func_name? Tell me the background

[issue13394] Patch to increase aifc lib test coverage

2012-03-12 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the patches! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13394

[issue14002] distutils2 fails to install a package from PyPI on Python 2.7.2

2012-03-12 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: see Bug 14263 also -- dependencies: +switch_index_if_fails fails on py2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14002 ___

  1   2   >