Ladies and gentlemen, you are about to hear a very frightening speech. This speech is an explanation of the plans now being laid to throw the United States into a third world war.

2010-07-03 Thread nanothermite911fbibustards
Ladies and gentlemen, you are about to hear a very frightening speech. This speech is an explanation of the plans now being laid to throw the United States into a third world war. A CHRISTIAN VIEW OF THE HOLOCAUST Ladies and gentlemen, you are about to hear a very frightening speech. This

The eastern European Jews, who form 92 per cent of the world's population of those people who call themselves Jews, were originally Khazars.

2010-07-03 Thread small Pox
The eastern European Jews, who form 92 per cent of the world's population of those people who call themselves Jews, were originally Khazars. Now, what are the facts about the Jews? The Jews -- I call them Jews to you, because they are known as Jews. I don't call them Jews. I refer to them

SCHOLARLY TESTIMONIAL VIDEO : Joseph Moshe (MOSSAD Microbiologist) Swine flu vaccine 1

2010-07-03 Thread small Pox
Joseph Moshe (MOSSAD Microbiologist) Swine flu vaccine 1 http://www.youtube.com/watch?v=9ranNpzlXIo Part 1 Today, the MSM are not talking about this case any more. Yesterday, they wanted us to believe that Joseph Moshe was a nutcase and a terrorist, arrested for threatening to bomb the White

Re: delegation pattern via descriptor

2010-07-03 Thread kedra marbun
if we limit our discussion to py: why __{get|set|delete}__ don't receive the 'name' 'class' from __{getattribute|{set|del}attr}__ 'name' is the name that is searched 'class' is the class whose __dict__ has 'name' bound to descriptor delegator delegator are terms from delegation pattern (oop)

Re: delegation pattern via descriptor

2010-07-03 Thread Mark Lawrence
On 02/07/2010 14:28, kedra marbun wrote: hello, friendliest prog lang community on earth ;) Flattery will get you everywhere. [snip] wow, it's almost time for brazil to beat the dutch, sorry Guido ;) if fifa['wc']['2010'].winner is not brazil: raise SystemError Have you run this and get

Re: delegation pattern via descriptor

2010-07-03 Thread Thomas Jollans
On 07/03/2010 10:59 AM, kedra marbun wrote: if we limit our discussion to py: why __{get|set|delete}__ don't receive the 'name' 'class' from __{getattribute|{set|del}attr}__ 'name' is the name that is searched 'class' is the class whose __dict__ has 'name' bound to descriptor

loading configuration files that are themselves python

2010-07-03 Thread Matthew Vernon
Hi, Is there a more idiomatic way of loading in a configuration file that's python code than: _temp=__import__(path,fromlist='cachestrs') cachestrs=_temp.cachestrs ? I mean, that's pretty ugly...Plain import doesn't work in this case because 'path' is a variable defined elsewhere TIA, Matthew

Re: loading configuration files that are themselves python

2010-07-03 Thread Peter Otten
Matthew Vernon wrote: Is there a more idiomatic way of loading in a configuration file that's python code than: _temp=__import__(path,fromlist='cachestrs') cachestrs=_temp.cachestrs ? I mean, that's pretty ugly...Plain import doesn't work in this case because 'path' is a variable

Re: Sorting dicts inside dicts

2010-07-03 Thread Eli Bendersky
On Sat, Jul 3, 2010 at 03:34, MRAB pyt...@mrabarnett.plus.com wrote: abhijeet thatte wrote: Hi, I have a huge dict structure like below: /*{'module':{'reg_dict_0':{'name':'abc','reg_addr':'2004'},'reg_dict_1':{'name':'xyz','reg_addr':'2002'},'reg_dict_2':{'name':'pqr','reg_addr':'2008'}}*/

Join July Global Python meetings via VOIP - Free SW HW Culture Mtgs - BerkeleyTIP

2010-07-03 Thread giovanni_re
Watch some videos. Mark your calendar. Invite your friends. Join in on IRC or Voice. Join the mailing list, say Hi. :) = 1) 2010.7 Videos: Building the Python Community, Steve Holden, PyCon 2010 How Python, TurboGears, and MongoDB are Transforming SourceForge.net, Rick Copeland, PyCon

Re: loading configuration files that are themselves python

2010-07-03 Thread Bruno Desthuilliers
Matthew Vernon a écrit : Hi, Is there a more idiomatic way of loading in a configuration file that's python code than: _temp=__import__(path,fromlist='cachestrs') cachestrs=_temp.cachestrs ? I mean, that's pretty ugly...Plain import doesn't work in this case because 'path' is a

Re: loading configuration files that are themselves python

2010-07-03 Thread Matthew Vernon
Peter Otten __pete...@web.de writes: Matthew Vernon wrote: Is there a more idiomatic way of loading in a configuration file that's python code than: _temp=__import__(path,fromlist='cachestrs') cachestrs=_temp.cachestrs ? I mean, that's pretty ugly...Plain import doesn't work in

Re: delegation pattern via descriptor

2010-07-03 Thread Bruno Desthuilliers
kedra marbun a écrit : if we limit our discussion to py: why __{get|set|delete}__ don't receive the 'name' 'class' from __{getattribute|{set|del}attr}__ 'name' is the name that is searched While it would have been technically possible, I fail to imagine any use case for this. --

Re: The real problem with Python 3 - no business case for conversion (was I strongly dislike Python 3)

2010-07-03 Thread Nobody
On Fri, 02 Jul 2010 12:07:33 -0700, John Nagle wrote: I think one point which needs to be emphasized more is what does python 3 bring to people. The what's new in python 3 page gives the impression that python 3 is about removing cruft. That's a very poor argument to push people to switch.

Re: The real problem with Python 3 - no business case for conversion

2010-07-03 Thread D'Arcy J.M. Cain
On Fri, 02 Jul 2010 22:40:34 -0700 John Nagle na...@animats.com wrote: Not according to Vex's published package list: http://www.vex.net/info/tech/pkglist/ As it says on that page it may not be up to date. Look at the generated list link. I guess I should update the static page

Re: The real problem with Python 3 - no business case for conversion

2010-07-03 Thread D'Arcy J.M. Cain
On Fri, 02 Jul 2010 22:40:34 -0700 John Nagle na...@animats.com wrote: Not according to Vex's published package list: http://www.vex.net/info/tech/pkglist/ Hold on. That *is* the generated list and Python 3.1 is on it. We have both 2.6 and 3.1. The 3.1 version is listed right

Re: The real problem with Python 3 - no business case for conversion

2010-07-03 Thread Steven D'Aprano
On Sat, 03 Jul 2010 08:46:57 -0400, D'Arcy J.M. Cain wrote: On Fri, 02 Jul 2010 22:40:34 -0700 John Nagle na...@animats.com wrote: Not according to Vex's published package list: http://www.vex.net/info/tech/pkglist/ Hold on. That *is* the generated list and Python 3.1 is on

subprocess query

2010-07-03 Thread Sudheer
Hi, What's wrong with the following code. The program waits indefenitely at 'output = p2.stdout.read()' from subprocess import * p1=Popen(['tr', 'a-z', 'A-Z'],stdin=PIPE,stdout=PIPE) p2=Popen(['tr','A-Z', 'a-z'],stdin=p1.stdout,stdout=PIPE) p1.stdin.write(hello) p1.stdin.close() output =

Re: subprocess query

2010-07-03 Thread Chris Rebert
On Sat, Jul 3, 2010 at 7:33 AM, Sudheer inbox1.sudh...@gmail.com wrote: Hi,  What's wrong with the following code. The program waits indefenitely at  'output = p2.stdout.read()' from subprocess import * p1=Popen(['tr', 'a-z', 'A-Z'],stdin=PIPE,stdout=PIPE) p2=Popen(['tr','A-Z',

Re: The real problem with Python 3 - no business case for conversion

2010-07-03 Thread Alf P. Steinbach /Usenet
* Steven D'Aprano, on 03.07.2010 16:24: On Sat, 03 Jul 2010 08:46:57 -0400, D'Arcy J.M. Cain wrote: On Fri, 02 Jul 2010 22:40:34 -0700 John Naglena...@animats.com wrote: Not according to Vex's published package list: http://www.vex.net/info/tech/pkglist/ Hold on. That *is*

Re: Crash in PyThread_acquire_lock

2010-07-03 Thread Antoine Pitrou
Hello, 'thelock-locked' is for sure still locked, but I can't identify the problem. Its just waiting, but it gets a 'EXC_BAD_ACCESS'. The line of the crash in PyThread_acquire_lock is the following one: while ( thelock-locked ) { status = pthread_cond_wait(thelock-lock_released,

Re: The real problem with Python 3 - no business case for conversion

2010-07-03 Thread Aahz
In article mailman.192.1278160797.1673.python-l...@python.org, D'Arcy J.M. Cain da...@druid.net wrote: On Fri, 02 Jul 2010 22:40:34 -0700 John Nagle na...@animats.com wrote: vex.net isn't exactly a major hosting service. OK, I'll give you that. It is on the backbone of the net at 151 Front

Re: drag drop in a python GUI application

2010-07-03 Thread John Posner
On 7/2/2010 11:20 AM, Michael Torrie wrote: On 07/01/2010 08:57 AM, Alan wrote: I know drag drop is not possible with TK. Is this a Python Tk limitation or a Tk limitation in general? Google suggests that Tk itself supports some form of dnd. Which widget could I use for my python

Re: The real problem with Python 3 - no business case for conversion

2010-07-03 Thread D'Arcy J.M. Cain
On 03 Jul 2010 14:24:49 GMT Steven D'Aprano st...@remove-this-cybersource.com.au wrote: Pfft! Facts! You can prove anything you like with facts! Argumentum ad Dragnet? -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a

Re: The real problem with Python 3 - no business case for conversion

2010-07-03 Thread John Nagle
On 7/3/2010 5:46 AM, D'Arcy J.M. Cain wrote: On Fri, 02 Jul 2010 22:40:34 -0700 John Naglena...@animats.com wrote: Not according to Vex's published package list: http://www.vex.net/info/tech/pkglist/ Hold on. That *is* the generated list and Python 3.1 is on it. We have both

My extension code generator for C++

2010-07-03 Thread Rouslan Korneychuk
It's still in the rough, but I wanted to give an update on my C++ extension generator. It's available at http://github.com/Rouslan/PyExpose The documentation is a little slim right now but there is a comprehensive set of examples in test/test_kompile.py (replace the k with a c. For some

python app development

2010-07-03 Thread mo reina
an anyone recommend a resource (book,tutorial,etc.) that focuses on application development in python? something similar to Practical Django Projects, but for stand alone applications instead of web apps (for now). i'm in a bit of a funny place, i have a decent/good grasp of python syntax and my

Re: My extension code generator for C++

2010-07-03 Thread Thomas Jollans
On 07/03/2010 07:22 PM, Rouslan Korneychuk wrote: It's still in the rough, but I wanted to give an update on my C++ extension generator. It's available at http://github.com/Rouslan/PyExpose Question that pops to mind immediately: How does this differentiate itself from SWIG? ( I can't say I'm

Re: python app development

2010-07-03 Thread Andre Alexander Bell
On 07/03/2010 07:48 PM, mo reina wrote: an anyone recommend a resource (book,tutorial,etc.) that focuses on application development in python? something similar to Practical Django Projects, but for stand alone applications instead of web apps (for now). I think you are referring to GUI

Re: The real problem with Python 3 - no business case for conversion

2010-07-03 Thread D'Arcy J.M. Cain
On Sat, 03 Jul 2010 09:48:09 -0700 John Nagle na...@animats.com wrote: The base Python 3.1 is installed there, but without any modules. We install modules as clients ask for them. No one has yet requested a Python 3 module. On a hosting service, a raw Python with none of those modules

Re: loading configuration files that are themselves python

2010-07-03 Thread Terry Reedy
On 7/3/2010 5:15 AM, Matthew Vernon wrote: Hi, Is there a more idiomatic way of loading in a configuration file that's python code than: _temp=__import__(path,fromlist='cachestrs') cachestrs=_temp.cachestrs ? I mean, that's pretty ugly...Plain import doesn't work in this case because 'path'

RE: drag drop in a python GUI application

2010-07-03 Thread jyoung79
Hi Alan, What OS are you running on? And by 'drag and drop' are you meaning you want to drag and drop on a GUI window, or are you wanting a droplet where you can drop your file/folder on the application icon? Jay -- Hello there, I know drag drop is not possible with TK. Which widget

Re: python app development

2010-07-03 Thread Terry Reedy
On 7/3/2010 1:48 PM, mo reina wrote: an anyone recommend a resource (book,tutorial,etc.) that focuses on application development in python? something similar to Practical Django Projects, but for stand alone applications instead of web apps (for now). i'm in a bit of a funny place, i have a

Re: subprocess query

2010-07-03 Thread Nobody
On Sat, 03 Jul 2010 10:33:49 -0400, Sudheer wrote: What's wrong with the following code. The program waits indefenitely at 'output = p2.stdout.read()' from subprocess import * p1=Popen(['tr', 'a-z', 'A-Z'],stdin=PIPE,stdout=PIPE) p2=Popen(['tr','A-Z',

Re: My extension code generator for C++

2010-07-03 Thread Rouslan Korneychuk
On 07/03/2010 01:54 PM, Thomas Jollans wrote: On 07/03/2010 07:22 PM, Rouslan Korneychuk wrote: It's still in the rough, but I wanted to give an update on my C++ extension generator. It's available at http://github.com/Rouslan/PyExpose Question that pops to mind immediately: How does this

Re: My extension code generator for C++

2010-07-03 Thread Rouslan Korneychuk
I missed one: func=operator[] would also work, I assume? Yes, you can also supply a function if the first parameter accepts the type being wrapped (__rop__ methods will even accept the second parameter taking the wrapped type). -- http://mail.python.org/mailman/listinfo/python-list

IMAP Problems

2010-07-03 Thread Paul Jefferson
Hi, I'm trying to write a simple script which displays the basic details of a person's mailbox. My problem is that it causes all the messages to be marked as read on the server, which is not what I'm after, and I also can't get the imap.sort command to work properly (currently commented out as I

Confusion over etree.ElementTree.Element.getiterator

2010-07-03 Thread Ben Sizer
It seems that getiterator isn't returning the tags I ask for. tree = parse('gdlibs.html') root = tree.getroot() for el in root.getiterator(): ...print el [much output snipped] Element {http://www.w3.org/1999/xhtml}a at d871e8 Element {http://www.w3.org/1999/xhtml}a at d87288 Element

Re: Confusion over etree.ElementTree.Element.getiterator

2010-07-03 Thread Ben Sizer
On Jul 3, 11:12 pm, Ben Sizer kylo...@gmail.com wrote: for el in root.getiterator(): ...        print el [much output snipped] Element {http://www.w3.org/1999/xhtml}a at d871e8 Element {http://www.w3.org/1999/xhtml}a at d87288 Element {http://www.w3.org/1999/xhtml}script at d87300

Re: python app development

2010-07-03 Thread Nathan Rice
Expert Python Programming by Tarek Ziade is a fairly good book, covers a lot of core stuff, though it doesn't really cover gui app development at all. On Sat, Jul 3, 2010 at 1:48 PM, mo reina urban.yoga.journ...@gmail.comwrote: an anyone recommend a resource (book,tutorial,etc.) that focuses on

Watch Russian Spies in REAL TIME !!! - Video Evidence For Icompetento FBI Bustards

2010-07-03 Thread small Pox
Watch Russian Spies in REAL TIME !!! - Video Evidence For Icompetento FBI Bustards Watch Russian Spies in REAL TIME !!! - Video Evidence For Icompetento FBI Bustards http://www.youtube.com/watch?v=0q7yEnMjQ6Ufeature=related http://www.youtube.com/watch?v=a3E2NcC0x20feature=related

Re: IMAP Problems

2010-07-03 Thread MRAB
Paul Jefferson wrote: Hi, I'm trying to write a simple script which displays the basic details of a person's mailbox. My problem is that it causes all the messages to be marked as read on the server, which is not what I'm after, and I also can't get the imap.sort command to work properly

Re: [farther OT] Re: Why Is Escaping Data Considered So Magical?

2010-07-03 Thread Lawrence D'Oliveiro
In message mailman.182.1278126257.1673.python-l...@python.org, Rami Chowdhury wrote: I'm sorry, perhaps you've misunderstood what I was refuting. You posted: macro: #define Descr(v) v, sizeof v As written, this works whatever the type of v: array, struct, whatever. With my

Re: Why Is Escaping Data Considered So Magical?

2010-07-03 Thread Lawrence D'Oliveiro
In message mailman.2121.1277522302.32709.python-l...@python.org, Robert Kern wrote: On 2010-06-25 19:47 , Lawrence D'Oliveiro wrote: In messagemailman.2046.1277445301.32709.python-l...@python.org, Cameron Simpson wrote: On 25Jun2010 15:38, Lawrence D'Oliveiro

Re: Why Is Escaping Data Considered So Magical?

2010-07-03 Thread Lawrence D'Oliveiro
In message mailman.2128.1277537954.32709.python-l...@python.org, Robert Kern wrote: On 2010-06-25 19:49 , Lawrence D'Oliveiro wrote: Why do people consider input sanitization so hard? It's not hard per se; it's just repetitive, prone to the occasional mistake, and, frankly, really boring.

Re: Why are String Formatted Queries Considered So Magical?

2010-07-03 Thread Lawrence D'Oliveiro
In message pan.2010.06.29.09.35.18.594...@nowhere.com, Nobody wrote: On Tue, 29 Jun 2010 12:30:36 +1200, Lawrence D'Oliveiro wrote: Seriously, almost every other kind of library uses a binary API. What makes databases so special that they need a string-command based API? HTML is also

Re: Why are String Formatted Queries Considered So Magical?

2010-07-03 Thread Rami Chowdhury
On Saturday 03 July 2010 19:33:44 Lawrence D'Oliveiro wrote: In message pan.2010.06.29.09.35.18.594...@nowhere.com, Nobody wrote: On Tue, 29 Jun 2010 12:30:36 +1200, Lawrence D'Oliveiro wrote: Seriously, almost every other kind of library uses a binary API. What makes databases so special

Re: delegation pattern via descriptor

2010-07-03 Thread Gregory Ewing
Bruno Desthuilliers wrote: kedra marbun a écrit : if we limit our discussion to py: why __{get|set|delete}__ don't receive the 'name' 'class' from __{getattribute|{set|del}attr}__ 'name' is the name that is searched While it would have been technically possible, I fail to imagine any use

Re: IMAP Problems

2010-07-03 Thread Grant Edwards
I'm trying to write a simple script which displays the basic details of a person's mailbox. My problem is that it causes all the messages to be marked as read on the server, code, mailboxen= server.list() print mailboxen # if it's called INBOX, then… server.select(INBOX) You

Lua is faster than Fortran???

2010-07-03 Thread sturlamolden
I was just looking at Debian's benchmarks. It seems LuaJIT is now (on median) beating Intel Fortran! C (gcc) is running the benchmarks faster by less than a factor of two. Consider that Lua is a dynamically typed scripting language very similar to Python. LuaJIT also runs the benchmarks faster

Re: Lua is faster than Fortran???

2010-07-03 Thread Steven D'Aprano
On Sat, 03 Jul 2010 20:30:30 -0700, sturlamolden wrote: I know it's just a benchmark but this has to count as insanely impressive. Beating Intel Fortran with a dynamic scripting language, how is that even possible? By being clever, using Just In Time compilation as much as possible, and

Re: Lua is faster than Fortran???

2010-07-03 Thread sturlamolden
On 4 Jul, 06:15, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: Need is a bit strong. There are plenty of applications where if your code takes 0.1 millisecond to run instead of 0.001, you won't even notice. Or applications that are limited by the speed of I/O rather than the

How to disable readline when building Python?

2010-07-03 Thread Sridhar Ratnakumar
For licensing reasons, I need to disable readline, except editline on OSX, when building Python. For the life of me, I cannot figure out how this can be done (./configure --help does not show anything relevant); I've tried the following, and readline.so will still be built: - ./configure

[issue9147] dis.show_code() variant that accepts source strings (and returns rather than prints)

2010-07-03 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: Add a new API in the dis module that: 1. Works like show_code() but returns a string rather than printing to stdout 2. Accepts source strings directly, similar to the dis.dis() changes for 3.2 Tentative name: get_code_info() Inspired by

[issue6507] Enhance dis.dis to autocompile codestrings

2010-07-03 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Committed (with some minor modifications) in r82471. Inspired by Yanov Aknin's ssc() tool, I've opened a new RFE (issue 9147) for a similarly enhanced show_code() implementation. -- stage: patch review - committed/rejected status:

[issue9144] Import error for multiprocessing in 2.7rc2 on Windows

2010-07-03 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Here is the problem: there is no module multiprocessing._multiprocessing; _multiprocessing is a global module. However, multiprocessing/__init__.py imports _multiprocessing, providing multiprocessing._multiprocessing as a valid attribute.

[issue9144] Import error for multiprocessing in 2.7rc2 on Windows

2010-07-03 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: Martin's analysis (and the description of the commit he refers to) indicates that the correct fix is Cuiseppe's suggestion to change the relative imports to absolute: from _multiprocessing import ... as the previous code was only working

[issue9144] Import error for multiprocessing in 2.7rc2 on Windows

2010-07-03 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: Here's a patch implementing the suggested change. test_multiprocessing passes. I am just running the full test suite now. -- keywords: +patch Added file: http://bugs.python.org/file17849/mp.diff ___

[issue9147] dis.show_code() variant that accepts source strings (and returns rather than prints)

2010-07-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Yes, please! -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9147 ___

[issue8988] import + coding = failure (3.1.2/win32)

2010-07-03 Thread gonegown
gonegown nomedo...@gmail.com added the comment: @Amaury: Removing #coding lines or replacing them with #coding: utf-8 makes this test case working, at least on 4 computers I have been able to test this. My initial program was consisting of roughly ten files and utf-8 made it work. @haypo:

[issue8988] import + coding = failure (3.1.2/win32)

2010-07-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Here is what I did, on a machine running Windows XP, with python 3.1.1: - I used 7-zip to extract the attached zip file, in the c:\temp directory. - Then I opened a command prompt, here is an exact copy of the session: C:cd \temp\█

[issue9144] Import error for multiprocessing in 2.7rc2 on Windows

2010-07-03 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: Full test suite also looks OK. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9144 ___ ___

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2010-07-03 Thread John Machin
John Machin sjmac...@users.sourceforge.net added the comment: About the E0 80 81 61 problem: my interpretation is that you are correct, the 80 is not valid in the current state (start byte == E0), so no look-ahead, three FFFDs must be issued followed by 0061. I don't really care about issuing

[issue7673] audioop: check that length is a multiple of the size

2010-07-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The new patch looks fine to me. This is rather last minute for 2.7, and I'm very uncomfortable committing anything substantial this close to the release. Still, if it's really a security vulnerability then it would be good to get it in.

[issue7673] audioop: check that length is a multiple of the size

2010-07-03 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- type: crash - security ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7673 ___ ___

[issue7673] audioop: check that length is a multiple of the size

2010-07-03 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7673 ___ ___

[issue7673] audioop: check that length is a multiple of the size

2010-07-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The following error messages looks strange to me: +if (((len / size) 1) != 0) { +PyErr_SetString(AudioopError, not a whole number of frames); +return NULL; +} Perhaps you meant not an even number of frames? --

[issue7673] audioop: check that length is a multiple of the size

2010-07-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Well, that would depend on how you define a 'frame', I guess. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7673 ___

[issue4945] json checks True/False by identity, not boolean value

2010-07-03 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Successfully ran test_json for Python 2.6.5 on Windows Vista. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4945 ___

[issue4945] json checks True/False by identity, not boolean value

2010-07-03 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Successfully ran test_json for Python 2.6.5 on Windows Vista. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4945 ___

[issue9148] os.execve puts process to background on windows

2010-07-03 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: os.execve() is said to replace current process with new program. Unfortunately, when you try to call script that contains os.execve() on windows - that script spawns background process and control is immediately returned to the calling

[issue1576313] os.execvp[e] on win32 fails for current directory

2010-07-03 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: There should be one uniform behavior on all platforms if Python is crossplatoform. As far as I can understand this issue - unix os.execv() requires ./ to be present to execute anything from current directory. On windows it is enough to

[issue9144] Import error for multiprocessing in 2.7rc2 on Windows

2010-07-03 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: the patch looks good to me - unless someone beats me to it, I'm going to commit it shortly to fix 2.7 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9144

[issue9148] os.execve puts process to background on windows

2010-07-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: on Windows, exec() does not really replace the current process. It creates a new process (with a new pid), and exits the current one. Hence the calling program only sees that the script has terminated. I don't see any easy solution on

[issue9144] Import error for multiprocessing in 2.7rc2 on Windows

2010-07-03 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Pushed it in r82489 - worked for me on Linux and OS/X. Please let me know if anything else comes up. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7673] audioop: check that length is a multiple of the size

2010-07-03 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file15823/audioop_check_length.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7673 ___

[issue9149] colorsys.py function rgb_to_hls

2010-07-03 Thread David Hood
New submission from David Hood thoughtfulbl...@gmail.com: colorsys.py function rgb_to_hls will crash on the RGB color (0,2,1) on line 68 with a division by zero error. 68 else: s = (maxc-minc) / (2.0-maxc-minc) -- messages: 109181 nosy: David.Hood priority: normal severity: normal

[issue9148] os.execve puts process to background on windows

2010-07-03 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Does that mean that windows doesn't allow process replacement at all? I remember the time then game NoCD loaders were somehow able to load, patch and execute main program in their address space. --

[issue7673] audioop: check that length is a multiple of the size

2010-07-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is a security vulnerability referenced as CVE-2010-2089. Fixed in 2.7 (r82492), 2.6 (r82494), 3.2 (r82495) and 3.1 (r82496). -- Perhaps you meant not an even number of frames? Hum, no: the input data is a stereo sound

[issue7673] audioop: check that length is a multiple of the size

2010-07-03 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7673 ___

[issue1576313] os.execvp[e] on win32 fails for current directory

2010-07-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The unix model should be followed (requiring an explicit reference to the current directory if it is not already in PATH), rather than the insecure Windows behavior, and this is indeed the current situation. The current behavior is

[issue9147] dis.show_code() variant that accepts source strings (and returns rather than prints)

2010-07-03 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Small correction to my first message: that would be Yaniv Aknin (not Yanov) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9147 ___

[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7989 ___ ___

[issue9147] dis.show_code() variant that accepts source strings (and returns rather than prints)

2010-07-03 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9147 ___ ___ Python-bugs-list

[issue9150] IDLE should not save trailing whitespace after strip trailing whitespace has been used

2010-07-03 Thread Ryan Hodin
New submission from Ryan Hodin ryan201...@ymail.com: I commonly use IDLE to create very large files. this annoys me a little, but it takes up hard disk space and is unnessesary -- components: IDLE messages: 109186 nosy: rhprogrammer priority: normal severity: normal status: open title:

[issue5468] urlencode does not handle bytes and could easily handle alternate encodings

2010-07-03 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed and Committed revision 82510 (py3k) and revision 82511 (release31-maint). This fixes urlencode issue. parse_qs and parse_qsl can have the same capabilities. It will be done subsequently (in another commit or issue) Thanks Dan for

[issue9137] x.update(red=5, blue=6, other=7) doesn't work, where x is a MutableMapping

2010-07-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Just a nitpick: I think the code will be clearer if you switch on args' length rather than catch IndexError: nargs = len(args) if nargs 2: ... self = args[0] other = args[1] if nargs == 2 else () ... --

[issue9094] Make python-m pickletools do something useful

2010-07-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I would like to commit this. Any objections? Changes only affect running pickletools as __main__. Does this need to be documented in pickletools.rst? I noticed that dis.rst does not describe running dis.py from

[issue9094] Make python-m pickletools do something useful

2010-07-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: In 'run self-test suit', I suppose you mean 'suite'. Otherwise, looks ok. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9094 ___

[issue9094] Make python-m pickletools do something useful

2010-07-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in r82514. I don't think this appropriate for 3.1, but will not block it yet if someone thinks it should be merged. -- stage: patch review - committed/rejected status: open - pending

[issue9151] Demo/classes/Dates.py does not work in 3.x

2010-07-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: belopolsky components: Demos and Tools nosy: belopolsky priority: normal severity: normal stage: needs patch status: open title: Demo/classes/Dates.py does not work in 3.x type: behavior versions: Python 3.2

[issue9151] Demo/classes/Dates.py does not work in 3.x

2010-07-03 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: I am attaching a minimal patch to make included test pass. -- keywords: +easy, patch stage: needs patch - patch review Added file: http://bugs.python.org/file17850/issue9151.diff

[issue9149] colorsys.py function rgb_to_hls

2010-07-03 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- components: +Library (Lib) stage: - unit test needed type: crash - behavior versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9149

[issue9093] Tools/README is out of date

2010-07-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Non-existing tools removed by Mark in r82515. There are still tools (see '-' lines above that need a README entry.) -- nosy: +mark.dickinson ___ Python tracker

[issue9093] Tools/README is out of date

2010-07-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Also I believe 2to3 deserves to be mentioned in README. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9093 ___

[issue9093] Tools/README is out of date

2010-07-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9093 ___

[issue9151] Demo/classes/Dates.py does not work in 3.x

2010-07-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in r82517. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9151 ___

[issue9151] Demo/classes/Dates.py does not work in 3.x

2010-07-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed some minor modernization changes in r82521. Given that datetime.py is in the works (see issue7989), I don't think there is any reason to polish this demo further. -- resolution: - accepted status:

[issue9020] 2.7: eval hangs on AIX

2010-07-03 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: 2.7 final works fine on AIX. This issue can be closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9020 ___

[issue9020] 2.7: eval hangs on AIX

2010-07-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: 2.7 final works fine on AIX. This issue can be closed. Ok. Thanks for your reports! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

  1   2   >