[ANNOUNCE] PyGObject 2.27.91 (second 2.28 pre-release)

2011-03-01 Thread John Palmieri
I am pleased to announce version 2.27.91 of the Python bindings for GObject. We found some major blockers from the last release so this is a second pre-release for the upcoming 2.28.0 stable release. There is currently one more crasher bug on the blocker list. Once that is fixed and if there

[ANN] Summer School Advanced Scientific Programming in Python in St Andrews, UK

2011-03-01 Thread Tiziano Zito
Advanced Scientific Programming in Python = a Summer School by the G-Node and the School of Psychology, University of St Andrews Scientists spend more and more time writing, maintaining, and debugging software. While techniques for doing this efficiently

Re: Problems with read_eager and Telnet

2011-03-01 Thread Robi
My conclusion being, fgfs cannot answer back quicker than this: 20Hz. I suspect that is by design, so as to not interfere with the simulation itself. Actually it's not quite like that. I talked about it in flightgear-devel mailing list; I was told FGFS default telnet polling frequency is

Re: OT: Code Examples

2011-03-01 Thread Erik de Castro Lopo
Fred Marshall wrote: I'm interested in developing Python-based programs, including an engineering app. ... re-writing from Fortran and C versions. One of the objectives would to be make reasonable use of the available structure (objects, etc.). So, I'd like to read a couple of good,

Re: Problems of Symbol Congestion in Computer Languages

2011-03-01 Thread Dotan Cohen
On Tue, Mar 1, 2011 at 05:30, rusi rustompm...@gmail.com wrote: Had there been more meta keys, it might be nice to have a symbol for each key on the keyboard. I personally have experimented with putting the symbols as regular keys and the numbers as the Shifted versions. It's great for

Re: Problems of Symbol Congestion in Computer Languages

2011-03-01 Thread Dotan Cohen
On Tue, Mar 1, 2011 at 07:04, Xah Lee xah...@gmail.com wrote: hi Russ, there's a programer's dvorak layout i think is bundled with linux. or you can do it with xmodmap on X-11 or AutoHotKey on Windows, or within emacs... On the mac, you can use keyboardMaestro, Quickeys, or just write a os

Re: OT: Code Examples

2011-03-01 Thread Richard Dobson
On 01/03/2011 08:43, Erik de Castro Lopo wrote: Fred Marshall wrote: I'm interested in developing Python-based programs, including an engineering app. ... re-writing from Fortran and C versions. One of the objectives would to be make reasonable use of the available structure (objects, etc.).

Re: question about numpy.polyval

2011-03-01 Thread sirvival
On 28 Feb., 17:15, Robert Kern robert.k...@gmail.com wrote: On 2/28/11 9:34 AM, sirvival wrote: Hi, I have some simulated data of stellar absorption lines. You will want to ask numpy questions on the numpy mailing list:    http://www.scipy.org/Mailing_Lists It would be best if you

Re: OT: Code Examples

2011-03-01 Thread Paul Rubin
Erik de Castro Lopo er...@mega-nerd.com writes: Why Python? I really can't understand the rush of every man and his dog to Python. Are you trolling? Anyway, try googling evil mangler and ask why it wasn't done in Haskell. Same idea. -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Code Examples

2011-03-01 Thread Tom Zych
Erik de Castro Lopo wrote: Why Python? I really can't understand the rush of every man and his dog to Python. Its not that I'm a stick in the mud stuck with C and C++, rather that I used Python for a number of years from 1998 to 2004 and rejected it in favour of strict statically typed

Re: subclass urllib2

2011-03-01 Thread Jean-Michel Pichavant
monkeys paw wrote: I'm trying to subclass urllib2 in order to mask the version attribute. Here's what i'm using: import urllib2 class myURL(urllib2): def __init__(self): urllib2.__init__(self) self.version = 'firefox' I get this Traceback (most recent call last): File

Re: how to properly pass literal strings python code to be executed using python -c

2011-03-01 Thread Jean-Michel Pichavant
jmoons wrote: I need some help figuring out how to execute this python code from python -c I am have trouble formatting python so that it will execute for another app in cmd I understand there maybe other ways to do what I am doing but I am limited by the final execution using cmd python -c so

Re: OT: Code Examples

2011-03-01 Thread Martin De Kauwe
On Mar 1, 3:03 am, Fred Marshall fmarshallxremove_th...@acm.org wrote: I'm interested in developing Python-based programs, including an engineering app. ... re-writing from Fortran and C versions.  One of the objectives would to be make reasonable use of the available structure (objects,

Python 3.2 is excellent, but

2011-03-01 Thread jmfauth
Well, Python (as 3.2) has never reached this level of excellence, but __pycache__, no, not for me. (I feel better now, after I wrote it.) -- http://mail.python.org/mailman/listinfo/python-list

psycopg2 insertion and reading binary data to PostgreSQL database (bytea datatype)

2011-03-01 Thread romap
Hello. This is the full work version. Do yuo have: - Pyton, PostgreSQL, Psycopg2 - PostgreSQL dababase named MyDATABASE with table named phonebook - Table phonebook have this columns: lastname [TEXT datatype] and c2image [BYTEA datatype] - Do you have an jpeg file named sun.jpg on c:/ Open db

Re: Python 3.2 is excellent, but

2011-03-01 Thread Stefan Behnel
jmfauth, 01.03.2011 11:40: __pycache__, no, not for me. This has been discussed before. The 'argument' you presented is usually due to a misunderstanding of how __pycache__ works. Consider reading the PEP. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.2 is excellent, but

2011-03-01 Thread Tom Zych
jmfauth wrote: Well, Python (as 3.2) has never reached this level of excellence, but __pycache__, no, not for me. (I feel better now, after I wrote it.) Could you be more specific? :) -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. --

I cant import my function from compiled cython module.

2011-03-01 Thread Şansal Birbaş
Hi All, I needed to improve the computation speed of my numpy algorithm which works correctly with cython. So I created a .pyx file like belows and then compiled to a .pyd file successfully:

Re: OT: Code Examples

2011-03-01 Thread Nicholas Devenish
On 01/03/2011 09:24, Richard Dobson wrote: But - I am ~still~ caught out by the semantic significance of indenting. Looks OK enough on paper, but doing it interactively is another matter. I still don't fully understand this argument. With Python, I am still doing indentation almost exactly

Re: I cant import my function from compiled cython module.

2011-03-01 Thread Stefan Behnel
Hi, note that the cython-users mailing list, where you cross-posted this, is the right place to ask. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems of Symbol Congestion in Computer Languages

2011-03-01 Thread Mark Thomas
I know someone who was involved in creating a language called A+. It was invented at Morgan Stanley where they used Sun keyboards and had access to many symbols, so the language did have set symbols, math symbols, logic symbols etc. Here's a keyboard map including the language's symbols (the red

Re: backwards-compatibility

2011-03-01 Thread Jason Swails
subpackage1 imports the exceptions module from package1, and I do that like this: from ..exceptions import MyException You'll have to import that using the absolute import. It would be from package1.exceptions import MyException. Ah; I didn't quite see how something in subpackage1

Re: question about numpy.polyval

2011-03-01 Thread sirvival
Hi, found the error I had x for coeff wrong definded. Instead of x = np.arange(num_chunk) it should be x = data_fin[::,0] Now it works. -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding python : can't find encoding error

2011-03-01 Thread swapnil
On Feb 28, 4:57 pm, Mathieu CLERICI mathieu.cler...@gmail.com wrote: Hi, I'm trying to embed python in a c++ program. I have compiled python32.lib with msvc 2010 targetting 32bits, i link it with my program wich is also 32bit. I get an error when calling Py_Initialize() : no codec search

Re: how to properly pass literal strings python code to be executed using python -c

2011-03-01 Thread jmoons
On Feb 28, 3:14 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Mon, 28 Feb 2011 10:59:01 -0800, jmoons wrote: I need some help figuring out how to execute this python code from python -c I am have trouble formatting python so that it will execute for another app in

Re: Problems of Symbol Congestion in Computer Languages

2011-03-01 Thread rusi
On Mar 1, 6:01 pm, Mark Thomas m...@thomaszone.com wrote: I know someone who was involved in creating a language called A+. It was invented at Morgan Stanley where they used Sun keyboards and had access to many symbols, so the language did have set symbols, math symbols, logic symbols etc.

Hello Friends

2011-03-01 Thread Ashraf Ali
It's a suprise.Do you know what the following blog is about.Just visit to know www.hotpics00.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Hello Friends

2011-03-01 Thread Ashraf Ali
It's a suprise.Do you know what the following blog is about.Just visit to know www.hotpics00.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

I am not able to open IDLE in python on Vista.

2011-03-01 Thread Jayneil Dalal
This is the error message I get when I try to run Pyhon on Vista: unable to create user config directory C:\Users\Jayneil\.idlerc Check path and permissions. Exiting! So please help me out!. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Code Examples

2011-03-01 Thread Robert Kern
On 2/28/11 10:03 AM, Fred Marshall wrote: I'm interested in developing Python-based programs, including an engineering app. ... re-writing from Fortran and C versions. One of the objectives would to be make reasonable use of the available structure (objects, etc.). So, I'd like to read a couple

Re: OT: Code Examples

2011-03-01 Thread Erik de Castro Lopo
Paul Rubin wrote: Erik de Castro Lopo er...@mega-nerd.com writes: Why Python? I really can't understand the rush of every man and his dog to Python. Are you trolling? Definitely not. As I said I used Python for a number of years and ditched it in favour of Ocaml and Haskell. The ease of

Re: OT: Code Examples

2011-03-01 Thread Emile van Sebille
On 3/1/2011 12:43 AM Erik de Castro Lopo said... Why Python? For me? Because it's executable pseudocode Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Code Examples

2011-03-01 Thread Erik de Castro Lopo
Paul Rubin wrote: Erik de Castro Lopo er...@mega-nerd.com writes: Why Python? I really can't understand the rush of every man and his dog to Python. Are you trolling? All my responses to this thread are really mean for comp.dsp, not for comp.lang.python. Erik --

Re: I am not able to open IDLE in python on Vista.

2011-03-01 Thread Andrea Crotti
Jayneil Dalal jayneil.da...@gmail.com writes: This is the error message I get when I try to run Pyhon on Vista: unable to create user config directory C:\Users\Jayneil\.idlerc Check path and permissions. Exiting! So please help me out!. Thank you. Best solution would be to avoid

Re: I am not able to open IDLE in python on Vista.

2011-03-01 Thread Werner Thie
Ever tried to run it as Administrator (right click, Run as Administrator...) Werner Am 01.03.2011 17:12, schrieb Jayneil Dalal: This is the error message I get when I try to run Pyhon on Vista: unable to create user config directory C:\Users\Jayneil\.idlerc Check path and permissions.

VipIMAGE 2011 – ECCOMAS Thematic Conference - FIRST ANNOUNCE

2011-03-01 Thread tava...@fe.up.pt
--- International ECCOMAS Thematic Conference VipIMAGE 2011 - III ECCOMAS THEMATIC CONFERENCE ON COMPUTATIONAL VISION AND MEDICAL IMAGE PROCESSING 12-14th October 2011,

Re: OT: Code Examples

2011-03-01 Thread geremy condra
On Tue, Mar 1, 2011 at 9:11 AM, Erik de Castro Lopo er...@mega-nerd.com wrote: Paul Rubin wrote: Erik de Castro Lopo er...@mega-nerd.com writes: Why Python? I really can't understand the rush of every man and his dog to Python. Are you trolling? All my responses to this thread are

Re: OT: Code Examples

2011-03-01 Thread Tom Zych
geremy condra debat...@gmail.com wrote: Ah, so you're looking for an argument. This is abuse, you want room 12A just down the hall. They have comfy chairs there. No one expects it. -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. --

AES Encryption of byte array

2011-03-01 Thread Meszaros, Stacy
Hello all, I am very new to python, using it to write a test application. I need to be able to encrypt part of a byte array (up to 256 bytes where the first 7 bytes remain plain text) using AES 128 bit CBC encryption. I am using Python 2.6, can anyone recommend a toolkit or module? Thanks,

Re: I am not able to open IDLE in python on Vista.

2011-03-01 Thread Tom Zych
Andrea Crotti andrea.crott...@gmail.com wrote: Best solution would be to avoid Windows Vista. s/Vista// There, fixed that for ya. -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list

Re: AES Encryption of byte array

2011-03-01 Thread Tom Zych
On Tue, 01 Mar 2011 14:38 -0500, Meszaros, Stacy st...@sensorswitch.com wrote: I am very new to python, using it to write a test application. I need to be able to encrypt part of a byte array (up to 256 bytes where the first 7 bytes remain plain text) using AES 128 bit CBC encryption. I am

Re: OT: Code Examples

2011-03-01 Thread mblume
Am Mon, 28 Feb 2011 08:03:01 -0800 schrieb Fred Marshall: I'm interested in developing Python-based programs, including an engineering app. ... re-writing from Fortran and C versions. One of the objectives would to be make reasonable use of the available structure (objects, etc.). So, I'd

Did MySQL support ever make it to Python 3.x?

2011-03-01 Thread John Nagle
Is there Python 3.x support for MySQL yet? MySQLdb's page still says Python versions 2.3-2.6 are supported.: https://sourceforge.net/projects/mysql-python/ There's PyMySQL, which is pure Python, but it's at version 0.4. There's good progress there, but it's not being used heavily yet,

Re: WxPython versus Tkinter.

2011-03-01 Thread Gregory Ewing
rantingrick wrote: All we have to do is create an abstraction API that calls wxPython until we can create OUR OWN wxPython from WxWidgets. There seems to be at least one other project around like that: http://dabodev.com/ -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Code Examples

2011-03-01 Thread Chris Jones
On Tue, Mar 01, 2011 at 12:03:02PM EST, Emile van Sebille wrote: On 3/1/2011 12:43 AM Erik de Castro Lopo said... Why Python? For me? Because it's executable pseudocode Not for nothing, Emile.. hey.. you could end up with pseudo bugs and pseudo headaches .. cj --

Re: Problems of Symbol Congestion in Computer Languages

2011-03-01 Thread Chris Jones
On Tue, Mar 01, 2011 at 09:46:19AM EST, rusi wrote: On Mar 1, 6:01 pm, Mark Thomas m...@thomaszone.com wrote: I know someone who was involved in creating a language called A+. It was invented at Morgan Stanley where they used Sun keyboards and had access to many symbols, so the language

Problem compiling Python 3.2 in 32bit on Snow Leopard

2011-03-01 Thread Gregory Ewing
Attempting to compile Python 3.2 in 32-bit mode on MacOSX 10.6.4 I get: Undefined symbols: ___moddi3, referenced from: _PyThread_acquire_lock_timed in libpython3.2m.a(thread.o) _acquire_timed in libpython3.2m.a(_threadmodule.o) ___divdi3, referenced from:

Re: OT: Code Examples

2011-03-01 Thread Dan Stromberg
On Tue, Mar 1, 2011 at 8:51 AM, Erik de Castro Lopo er...@mega-nerd.comwrote: Definitely not. As I said I used Python for a number of years and ditched it in favour of Ocaml and Haskell. These are all 3 intriguing languages. I wish I had time to learn OCaML and Haskell, and I wish one or both

Re: Problem compiling Python 3.2 in 32bit on Snow Leopard

2011-03-01 Thread Ned Deily
In article 8t5vunfca...@mid.individual.net, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Attempting to compile Python 3.2 in 32-bit mode on MacOSX 10.6.4 I get: Undefined symbols: ___moddi3, referenced from: _PyThread_acquire_lock_timed in libpython3.2m.a(thread.o)

Playing WAV file with Python

2011-03-01 Thread VGNU Linux
Hi All, How can I play WAV file in python without OS(like Linux/Windows/MAC) on a device ? On Google I found lot of different solution but related to OS's like winsound, ossaudiodev etc which are not useful. Thanks in advance. Regards, VGNU -- http://mail.python.org/mailman/listinfo/python-list

[issue10516] Add list.clear() and list.copy()

2011-03-01 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Hmm, shouldn't self.__class__(self) be a good default implementation of copy()? I'd expect any sequence to support this way of creation from another sequence, even if it's inefficient. The copy() method isn't being

[issue11140] threading.Lock().release() raises _thread.error, not RuntimeError

2011-03-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hello, Shouldn't this be fixed in _dummy_thread too? Attached patch contains fix + test. Oops, thanks for noticing. (Unfortunately, I was not able to run the tests with my patch: `python3.2 -m test.regrtest test_dummy_thread` tests my

[issue11349] _pickle should implement the module finalisation protocol

2011-03-01 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: We might be able to tapdance our way around the issue by falling back to the old mechanism when dealing with extension modules without traverse/clear/dealloc methods. -- ___ Python tracker

[issue11349] _pickle should implement the module finalisation protocol

2011-03-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Not sure why #812369 is bogged down. The patch simply needs updating for 3.x. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11349

[issue1559549] ImportError needs attributes for module and file name

2011-03-01 Thread Ram Rachum
Changes by Ram Rachum cool...@cool-rr.com: -- nosy: +cool-RR ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___ Python-bugs-list

[issue8927] Handle version incompatibilities in dependencies

2011-03-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Re: title, I don’t know how to phrase it best. What exactly is the behavior you request? I put “handle” as in “do the right thing”, that is, “don’t install the newest version but the one that satisfies all predicates”. I softened “conflicts”

[issue9436] test_sysconfig failure

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

[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

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

[issue8933] Invalid detection of metadata version

2011-03-01 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: I'll get down to it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8933 ___ ___

[issue10900] bz2 module fails to uncompress large files

2011-03-01 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: @Eric.Wolf Could you try with this: # Read in anohter chunk of the file # NOTE: It's possible that an XML tag will be greater than buffsize # This will break in that situation -

[issue11360] In documentation of getopt, advertise argparse instead of optparse

2011-03-01 Thread Daniel Haertle
New submission from Daniel Haertle haer...@uni-bonn.de: At the beginning of http://docs.python.org/dev/library/getopt.html the line A more convenient, flexible, and powerful alternative is the optparse module. routes the user to optparse. Since optparse is deprecated in favor of argparse,

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I'm trashing your mailbox, but http://bugs.python.org/file20949/issue11351-2.patch should do 'total+=blen' not 'total+=len'. Anyway i attach yet a third patch which does some code cleanup in general and is a bit more of my very

[issue11354] argparse: nargs could accept range of options count

2011-03-01 Thread Daniel Haertle
Daniel Haertle haer...@uni-bonn.de added the comment: Hi Wojciech, in your tests, at def test_add_argument10(self): nargs = (0, 1) = optimized to '?' opt = self.add_argument(1, None) self.assertEqual(opt.nargs, argparse.ONE_OR_MORE) you should change

[issue8933] Invalid detection of metadata version

2011-03-01 Thread Filip Gruszczyński
Changes by Filip Gruszczyński grusz...@gmail.com: Removed file: http://bugs.python.org/file20942/8933.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8933 ___

[issue8933] Invalid detection of metadata version

2011-03-01 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Patch with tests. Hope this is enough. -- Added file: http://bugs.python.org/file20956/8933.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8933

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well the third patch has a lot of spurious style changes that make it harder to spot the actual changes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11351

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Aah, unfortunately - what a shame, this beautiful language ... But do i need to re-post the real (ouch!) issue11351-2.patch, i.e. with 'total+=blen' instead of 'total+=len'? Or is it sufficient now with these comments (for

[issue11324] ConfigParser(interpolation=None) doesn't work

2011-03-01 Thread Tobias Brink
Tobias Brink tobias.br...@gmail.com added the comment: I added a test but I am not too familiar with the Python test suite. Please check if the test_init_takes_interpolation_none test is necessary because the test suite also fails without it if my patch is not applied. Feel free to remove

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Maybe Giampaolo' should at least replace these two PyArg_ParseTupleAndKeywords() near (unpatched) line 5942, because doing it like this is messes up (at least) vim(1) group detection, resulting in a lot of bold red mis-brace

[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT)

2011-03-01 Thread Igor
New submission from Igor i...@prettysin.info: Hello! I see some 'skip' in test_os.py @unittest.skip(subprocesses aren't inheriting CTRL+C property) def test_CTRL_C_EVENT(self): I think, problem with calling SetConsoleCtrlHandler(NULL,0) in parent process, rather in child. If call

[issue11358] Please replace the use of pickle in multiprocessing with json.

2011-03-01 Thread david
david db.pub.m...@gmail.com added the comment: On 1 March 2011 18:01, Alex rep...@bugs.python.org wrote: Alex alex.gay...@gmail.com added the comment: Why?  JSON is incapable of representing most Python datastructures that can be pickled (i.e. anything that isn't a list, tuple, dict, int,

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Please try to provide a patch which fixes (as in makes the test pass) this specific issue only. As for other changes such as the code restyling you can open a separate ticket with another patch. --

[issue11359] Please replace the use of pickle in subprocess with json.

2011-03-01 Thread david
david db.pub.m...@gmail.com added the comment: Um this isn't a duplicate this is addressing a different module to multiprocessing. Currently in subprocess you can almost remove the use of pickle with little to no side-effects. -- ___ Python tracker

[issue11359] Please replace the use of pickle in subprocess with json.

2011-03-01 Thread david
david db.pub.m...@gmail.com added the comment: Can you please re-open this bug ? (unless you feel otherwise). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11359 ___

[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT)

2011-03-01 Thread Igor
Changes by Igor i...@prettysin.info: -- keywords: +patch Added file: http://bugs.python.org/file20958/1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11361 ___

[issue11324] ConfigParser(interpolation=None) doesn't work

2011-03-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks, the configparser maintainer will review your patch. Łukasz, you may want to use assertIsNone when you commit. -- keywords: +needs review stage: - patch review ___ Python tracker

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Maybe Giampaolo' should at least replace these two PyArg_ParseTupleAndKeywords() near (unpatched) line 5942, because doing it like this is messes up (at least) vim(1) group detection, resulting in a lot of bold red mis-brace warnings

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: So this is fixed -2.patch supplemented only with PyArg_ParseTupleAndKeywords() fixed in a way that re-enables correct syntax highlighting. -- Added file: http://bugs.python.org/file20959/issue11351-4.patch

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: (GMail imposes a five minute or so delay when used over SMTP, so the timeline sometimes looks unfortunate.) So, finally, -2.patch only fixed with 'blen' for 'len'. Compiles and test ok. Giampaolo Rodola' g.rod...@gmail.com added

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: But, dear Antoine, i don't know *any* editor that is capable to handle the following code correctly: #ifdef __APPLE__ if (!PyArg_ParseTupleAndKeywords(args, kwdict, iiOO|OOi:sendfile, keywords, out, in, _parse_off_t,

[issue11359] Please replace the use of pickle in subprocess with json.

2011-03-01 Thread david
david db.pub.m...@gmail.com added the comment: I don't have 3.3 installed so I cannot test it, but here is a patch for 2.6. I am sure it breaks stuff - are there tests for the subprocess module that would cover the cases that pickle was used for? --- subprocess.py.orig 2011-03-02

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file20943/posixmodule.naive-apple-patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11351 ___

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file20946/issue11351.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11351 ___

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file20949/issue11351-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11351 ___

[issue11358] Please replace the use of pickle in multiprocessing with json.

2011-03-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11358 ___ ___

[issue11359] Please replace the use of pickle in subprocess with json.

2011-03-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Why do you want to replace pickle by json? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11359 ___

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: But, dear Antoine, i don't know *any* editor that is capable to handle the following code correctly: #ifdef __APPLE__ if (!PyArg_ParseTupleAndKeywords(args, kwdict, iiOO|OOi:sendfile, keywords, out, in, _parse_off_t, offset,

[issue11349] _pickle should implement the module finalisation protocol

2011-03-01 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: http://mail.python.org/pipermail/python-dev/2009-October/093057.html 2011/3/1 Antoine Pitrou rep...@bugs.python.org: Antoine Pitrou pit...@free.fr added the comment: Not sure why #812369 is bogged down. The patch simply needs updating

[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT)

2011-03-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gregory.p.smith versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11361 ___

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I agree with that. Antoine Pitrou pit...@free.fr added the comment: If you are asking your editor to simply edit test, it should work fine. -- ___ Python tracker

[issue11359] Please replace the use of pickle in subprocess with json.

2011-03-01 Thread david
david db.pub.m...@gmail.com added the comment: From my reading of the code it may be possible if I execute a command via Popen that the child had output that went to stderror, because stderror is associated with the fd of errpipe_write, and it was not to be 'trusted' (lets say I ran it as

[issue11359] Please replace the use of pickle in subprocess with json.

2011-03-01 Thread david
david db.pub.m...@gmail.com added the comment: Actually I don't think that is possible mmm. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11359 ___

[issue11359] Please replace the use of pickle in subprocess with json.

2011-03-01 Thread david
david db.pub.m...@gmail.com added the comment: As the child will have already have exec'ed there will be no exception raised -- so the parent shouldn't pickle.load from stderror... So unless there is a path where the parent will end up pickle.load ing the exception that case I put before is

[issue11358] Please replace the use of pickle in multiprocessing with json.

2011-03-01 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This would increase the overhead to no purpose, as far as I can see. Ask or Jesse can reopen this if they think it is worth considering. -- nosy: +asksol, jnoller, r.david.murray resolution: - rejected status: open - closed

[issue11358] Please replace the use of pickle in multiprocessing with json.

2011-03-01 Thread david
david db.pub.m...@gmail.com added the comment: Um ok. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11358 ___ ___ Python-bugs-list mailing list

[issue11358] Please replace the use of pickle in multiprocessing with json.

2011-03-01 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: I concur with RDM. We need complex data structures, and switching to JSON represents a non zero amount of work, isn't as fast and pickle works well. If you want to use JSON as a transport, I would do custom subclassing. --

[issue11358] Please replace the use of pickle in multiprocessing with json.

2011-03-01 Thread david
david db.pub.m...@gmail.com added the comment: Fair enough. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11358 ___ ___ Python-bugs-list

[issue11357] Add support for PEP 381 -- Mirror Authenticity

2011-03-01 Thread Alexis Metaireau
Alexis Metaireau ale...@notmyidea.org added the comment: Some nitpicks: In mirrors.get_server_key, the documentation is not up to date with your last changes (raises an error if there is a problem instead of returning None) You do use the name 'package' while talking about distributions or

[issue11357] Add support for PEP 381 -- Mirror Authenticity

2011-03-01 Thread Alexis Metaireau
Alexis Metaireau ale...@notmyidea.org added the comment: Antoine Pitrou on #python-dev made interesting remarks about the validation: 16:19 __ap__ hmm the way the patch does validation is bogus 16:22 __ap__ because it opens the URL a first time, validates it, then opens it a second time with

[issue11357] Add support for PEP 381 -- Mirror Authenticity

2011-03-01 Thread Kelsey
Kelsey kelsey.highto...@gmail.com added the comment: Thanks for the feedback! I agree with the issues raised and will rework the patch to address them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11357

  1   2   >