Re: Web hosting when you need to install your own modules (was Re: Interact with SQL Database using Python 2.4 or lower)

2011-08-29 Thread Stephen Hansen
On 8/28/11 10:52 PM, Chris Angelico wrote: * DNS record changes required a support ticket (this was shared web hosting, so I didn't have control over the BIND files - that's what they said, anyway) Ouch: I never let a webhost near my domain names. I was burned somewhere around that a long time

Re: Why I need the parameter when the call doesn't use it?

2011-08-29 Thread Ben Finney
John Gordon gor...@panix.com writes: In 66a3f64c-d35e-40c7-be69-ddf708e37...@glegroupsg2000goo.googlegroups.com Niklas Rosencrantz nikla...@gmail.com writes: What's the story of using these parameters that are called self? self is a reference to the class object, and it allows the method

Re: Checking Signature of Function Parameter

2011-08-29 Thread Nobody
On Sun, 28 Aug 2011 14:20:11 -0700, Travis Parks wrote: More importantly, I want to make sure that predicate is callable, accepting a thing, returning a bool. The callable part is do-able, the rest isn't. The predicate may accept an arbitrary set of arguments via the *args and/or **kwargs

Re: killing a script

2011-08-29 Thread Nobody
On Sun, 28 Aug 2011 18:15:56 -0700, Russ P. wrote: Is there a simple way to ensure that the first Control-C will kill the whole darn thing, i.e, the top-level script? Thanks. You might try using subprocess.Popen() or subprocess.call() rather than os.system(). os.system() calls the platform's

mohammedimran

2011-08-29 Thread mohammed imran
http://123maza.com/65/fun564/ -- http://mail.python.org/mailman/listinfo/python-list

Re: killing a script

2011-08-29 Thread Thomas Jollans
On 2011-08-29 05:08, Russ P. wrote: Yes, but if I am not mistaken, that will require me to put a line or two after each os.system call. That's almost like whack-a-mole at the code level rather than the Control-C level. OK, not a huge deal for one script, but I was hoping for something simpler.

Re: Unpickle error -- object has no attribute ....

2011-08-29 Thread Peter Otten
luvspython wrote: I have an application that needs to keep a history of the values of several attributes of each of many instances of many classes. The history-keeping logic is in a helper class, HistoryKeeper, that's inherited by classes like Vehicle in the example below. Pickling an

Calling Script from Command line not working

2011-08-29 Thread Sathish S
Hi Ppl, We created a DLL using cygwin and have written a class based python module for the same. We have created a sample script for the class based python module, that creates an object of the class and calls various methods in the class. This Test script works fine while I run it from IDLE.

Get reference to parent class from subclass?

2011-08-29 Thread John O'Hagan
class P(): pass class C(P): pass Can I get P from C? IOW, can I get a reference to the object P from the object C? This should be obvious one way or the other, but I haven't been able to find the answer. Regards, John -- http://mail.python.org/mailman/listinfo/python-list

Re: Get reference to parent class from subclass?

2011-08-29 Thread johnohagan
On Sun, 28 Aug 2011 14:00:24 +1000 John O'Hagan resea...@johnohagan.com wrote: class P(): pass class C(P): pass Can I get P from C? Never mind, it's __bases__ (not found in dir(C)) Regards, John -- http://mail.python.org/mailman/listinfo/python-list

Re: Interact with SQL Database using Python 2.4 or lower

2011-08-29 Thread python
Personally, I'm a major fan of Webfaction -- from price to plans to what's supported to actual effectiveness of their tech support. +1 Malcolm -- http://mail.python.org/mailman/listinfo/python-list

A tale of yak shaving

2011-08-29 Thread Steven D'Aprano
This is not exactly fresh (it was written back in March), but it's the first time I saw it and I thought I'd share. Barry Warsaw, one of the lead Python developers, describes one of his most ... interesting ... debugging experiences.

Returning a value from exec or a better solution

2011-08-29 Thread Jack Trades
I'm writing a Scheme interpreter and I need to be able to create and return a Python function from a string. This is a port of another Scheme interpreter I wrote in Scheme. What I'm trying to do looked like this: (define (scheme-syntax expr) (hash-table-set! global-syntax (car expr) (eval

Re: is there any principle when writing python function

2011-08-29 Thread Neil Cerutti
On 2011-08-26, Chris Angelico ros...@gmail.com wrote: On Sat, Aug 27, 2011 at 1:48 AM, Tobiah tob...@teranews.com wrote: While I understand and agree with that basic tenet, I think that the capitalized 'ONLY' is too strong. ?I do split out code into function for readability, even when the

Re: Checking Signature of Function Parameter

2011-08-29 Thread Dan Stromberg
On Sun, Aug 28, 2011 at 2:20 PM, Travis Parks jehugalea...@gmail.comwrote: There are some things I want to make sure of. 1) I want to make sure that source is iterable. 2) More importantly, I want to make sure that predicate is callable, accepting a thing, returning a bool. You can check a

Re: Some problems refer to install 3rd party package of Python on mac OS 10.6.8

2011-08-29 Thread Gee Chen
On Aug 29, 9:14 am, Chris Rebert c...@rebertia.com wrote: On Sun, Aug 28, 2011 at 5:35 PM, Gee Chen cnche...@gmail.com wrote: -- the Python environment on my mac is: Python 2.6.4 (r264:75706, Aug 28 2011, 22:29:24) [GCC 4.2.1 (Apple Inc. build 5664)] on

Re: Unpickle error -- object has no attribute ....

2011-08-29 Thread luvspython
On Aug 29, 5:02 am, Peter Otten __pete...@web.de wrote: luvspython wrote: I have an application that needs to keep a history of the values of several attributes of each of many instances of many classes.  The history-keeping logic is in a helper class, HistoryKeeper, that's inherited by

Re: Checking Signature of Function Parameter

2011-08-29 Thread Travis Parks
On Aug 29, 2:30 am, Nobody nob...@nowhere.com wrote: On Sun, 28 Aug 2011 14:20:11 -0700, Travis Parks wrote: More importantly, I want to make sure that predicate is callable, accepting a thing, returning a bool. The callable part is do-able, the rest isn't. The predicate may accept an

Re: Returning a value from exec or a better solution

2011-08-29 Thread Rob Williscroft
Jack Trades wrote in news:CAG5udOg=GtFGPmTB=1ojnvnrpdyucxdokn1wjqmomv9gx0+...@mail.gmail.com in gmane.comp.python.general: ... I wanted to allow the user to manually return the function from the string, like this: a = exec( def double(x): return x * 2 double ) However it seems that

Re: Checking Signature of Function Parameter

2011-08-29 Thread Ian Kelly
On Mon, Aug 29, 2011 at 10:45 AM, Travis Parks jehugalea...@gmail.com wrote: I wanted to allow for calls like this: extend(range(0, 1000)).map(lambda x: x * x).where(lambda x: x % 2 == 0).first(lambda x: x % 7 == 0) It allows me to compose method calls similarly to LINQ in C#. I think this

Re: Button Label change on EVT_BUTTON in wxpython!!!

2011-08-29 Thread Rob Williscroft
Ven wrote in news:aa1212bb-35e5-4bf9-b8ad-7a3c083749c2 @x2g2000yql.googlegroups.com in gmane.comp.python.general: So, here is what I did/want: self.run_button=wx.Button(self.panel,ID_RUN_BUTTON,label='Install') self.Bind(wx.EVT_BUTTON, self.OnRun,id=ID_RUN_BUTTON) def OnRun(self,evt):

Help me understand this logging config

2011-08-29 Thread Roy Smith
I'm using django 1.3 and python 2.6. My logging config is: LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'verbose': { 'format': '%(asctime)s: %(name)s %(levelname)s % (funcName)s %(message)s' } }, 'handlers':

Re: Checking Signature of Function Parameter

2011-08-29 Thread Travis Parks
On Aug 29, 1:42 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Mon, Aug 29, 2011 at 10:45 AM, Travis Parks jehugalea...@gmail.com wrote: I wanted to allow for calls like this: extend(range(0, 1000)).map(lambda x: x * x).where(lambda x: x % 2 == 0).first(lambda x: x % 7 == 0) It allows me

Re: is there any principle when writing python function

2011-08-29 Thread Chris Angelico
On Tue, Aug 30, 2011 at 12:52 AM, Neil Cerutti ne...@norwich.edu wrote: I would split the function only when both halves (caller and callee) can be given short and useful names - if you can't explain what a block of code does in a few words, it's probably a poor choice for splitting out into a

Help parsing a text file

2011-08-29 Thread William Gill
I haven't done much with Python for a couple years, bouncing around between other languages and scripts as needs suggest, so I have some minor difficulty keeping Python functionality Python functionality in my head, but I can overcome that as the cobwebs clear. Though I do seem to keep

Re: Unpickle error -- object has no attribute ....

2011-08-29 Thread Chris Angelico
On Tue, Aug 30, 2011 at 2:22 AM, luvspython srehtva...@gmail.com wrote: I can figure out most things, though perhaps very slowly and painfully, if I can trace through code.  I use WingIDE (love it), but the execution of the C code is of course hidden, which helped stymie on this problem.  Is

Re: Help parsing a text file

2011-08-29 Thread Philip Semanchuk
On Aug 29, 2011, at 2:21 PM, William Gill wrote: I haven't done much with Python for a couple years, bouncing around between other languages and scripts as needs suggest, so I have some minor difficulty keeping Python functionality Python functionality in my head, but I can overcome that

Re: is there any principle when writing python function

2011-08-29 Thread Neil Cerutti
On 2011-08-29, Chris Angelico ros...@gmail.com wrote: In my house, I'm dad. In my chorus, I'm Neil. In town I'm Neil Cerutti, and in the global scope I have to use a meaningless unique identifier. Hopefully no Python namespace ever gets that big. Chorus? Does that imply that you sing? Neat

Re: Help parsing a text file

2011-08-29 Thread William Gill
On 8/29/2011 2:31 PM, Philip Semanchuk wrote: If the syntax really is close to XML, would it be all that difficult to convert it to proper XML? Then you have nice libraries like ElementTree to use for parsing. Possibly, but I would still need the same search algorithms to find the opening

Re: is there any principle when writing python function

2011-08-29 Thread Chris Angelico
On Tue, Aug 30, 2011 at 4:40 AM, Neil Cerutti ne...@norwich.edu wrote: Wait... not all Python programmers sing? I do, and there seems to be more than coincidental overlap between musos and coders. The problem with that scenario is that, in real life, there's more than one Cerutti.Neil, and

Instituições que utilizam Python.

2011-08-29 Thread Bruno Andrade
Olá, boa tarde! Eu, estou entrando em contato com vocês, pois eu gostaria de saber quais instituições brasileiras usam regularmente Python para o desenvolvimento de suas atividades. Essas instituições podem ser usuários de sistemas desenvolvidos usando a linguagem Python, ou podem ser

Re: killing a script

2011-08-29 Thread Jason Swails
On Sun, Aug 28, 2011 at 10:41 PM, Russ P. russ.paie...@gmail.com wrote: You could look at the return value of os.system, which may tell you the exit status of the process. Thanks for the suggestion. Yeah, I guess I could do that, but it seems that there should be a simpler way to just

Re: Help parsing a text file

2011-08-29 Thread Thomas Jollans
On 29/08/11 20:21, William Gill wrote: I haven't done much with Python for a couple years, bouncing around between other languages and scripts as needs suggest, so I have some minor difficulty keeping Python functionality Python functionality in my head, but I can overcome that as the cobwebs

Re: killing a script

2011-08-29 Thread Russ P.
On Aug 28, 8:16 pm, Chris Rebert c...@rebertia.com wrote: On Sun, Aug 28, 2011 at 8:08 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 7:51 pm, Chris Angelico ros...@gmail.com wrote: On Mon, Aug 29, 2011 at 12:41 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 6:52 pm, MRAB

Re: Returning a value from exec or a better solution

2011-08-29 Thread Jack Trades
On Mon, Aug 29, 2011 at 12:30 PM, Rob Williscroft r...@rtw.me.uk wrote: Jack Trades wrote in ... I wanted to allow the user to manually return the function from the string, like this: a = exec( def double(x): return x * 2 double ) However it seems that exec does not return

For some value of “sing” (was: is there any principle when writing python function)

2011-08-29 Thread Ben Finney
Neil Cerutti ne...@norwich.edu writes: On 2011-08-29, Chris Angelico ros...@gmail.com wrote: Chorus? Does that imply that you sing? Neat :) Wait... not all Python programmers sing? All Python programmers sing. Some of them should not. -- \ “To

Re: Instituições que utilizam Python.

2011-08-29 Thread Tim Delaney
2011/8/30 Bruno Andrade brunoandrade...@hotmail.com Olá, boa tarde! Eu, estou entrando em contato com vocês, pois eu gostaria de saber quais instituições brasileiras usam regularmente Python para o desenvolvimento de suas atividades. Essas instituições podem ser usuários de sistemas

Re: Returning a value from exec or a better solution

2011-08-29 Thread Arnaud Delobelle
On 29 August 2011 23:14, Jack Trades jacktradespub...@gmail.com wrote: On Mon, Aug 29, 2011 at 12:30 PM, Rob Williscroft r...@rtw.me.uk wrote: Jack Trades wrote in ... I wanted to allow the user to manually return the function from the string, like this: a = exec( def double(x):  

Re: killing a script

2011-08-29 Thread Arnaud Delobelle
On 29 August 2011 04:08, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 7:51 pm, Chris Angelico ros...@gmail.com wrote: On Mon, Aug 29, 2011 at 12:41 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 6:52 pm, MRAB pyt...@mrabarnett.plus.com wrote: You could look at the return value of

Re: Checking Signature of Function Parameter

2011-08-29 Thread Ethan Furman
Travis Parks wrote: I wrote a post a few days ago about how I know the syntax and libraries fairly well, but I don't have the philosophy. I haven't seen a lot of tricks and I am never sure what is the norm in Python. I am sure if an experienced Python programmer looked at my code, they'd

Re: Returning a value from exec or a better solution

2011-08-29 Thread Jack Trades
On Mon, Aug 29, 2011 at 5:50 PM, Arnaud Delobelle arno...@gmail.com wrote: Hi Jack, Here is a possible solution for your problem (Python 3): class CapturingDict(dict): ... def __setitem__(self, key, val): ... self.key, self.val = key, val ... dict.__setitem__(self,

Re: A tale of yak shaving

2011-08-29 Thread Seebs
On 2011-08-29, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: This is not exactly fresh (it was written back in March), but it's the first time I saw it and I thought I'd share. Barry Warsaw, one of the lead Python developers, describes one of his most ... interesting ... debugging

Re: killing a script

2011-08-29 Thread Steven D'Aprano
On Tue, 30 Aug 2011 08:53 am Arnaud Delobelle wrote: [...] Yes, but if I am not mistaken, that will require me to put a line or two after each os.system call. That's almost like whack-a-mole at the code level rather than the Control-C level. OK, not a huge deal for one script, but I was

[issue12754] Add alternative random number generators

2011-08-29 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12754 ___ ___

[issue12841] Incorrect tarfile.py extraction

2011-08-29 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Yes, it should be fixed in all affected branches. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12841 ___

[issue12841] Incorrect tarfile.py extraction

2011-08-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The patch looks ok. Can you push it Lars? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12841 ___

[issue12850] [PATCH] stm.atomic

2011-08-29 Thread Armin Rigo
New submission from Armin Rigo ar...@users.sourceforge.net: Here is (attached) a minimal patch to the core trunk CPython to allow extension modules to take over control of acquiring and releasing the GIL, as proposed here: http://mail.python.org/pipermail/python-dev/2011-August/113248.html

[issue12850] [PATCH] stm.atomic

2011-08-29 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12850 ___ ___

[issue12754] Add alternative random number generators

2011-08-29 Thread douglas bagnall
douglas bagnall doug...@paradise.net.nz added the comment: I am no kind of crypto expert, but from what I read, there are no known attacks on chacha8 or salsa20/12 better than brute-forcing the key, and distinguishing the stream from random or deducing state would be considered an attack.

[issue12850] [PATCH] stm.atomic

2011-08-29 Thread Armin Rigo
Armin Rigo ar...@users.sourceforge.net added the comment: NB. I know that my stmmodule.c contains a gcc-ism: it uses a __thread global variable. I plan to fix this in future versions :-) -- ___ Python tracker rep...@bugs.python.org

[issue12851] ctypes: getbuffer() never provides strides

2011-08-29 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: PyCData_NewGetBuffer() must provide strides information if requested, e.g. in response to a PyBUF_FULL_RO request. -- assignee: skrah components: Extension Modules messages: 143135 nosy: skrah priority: normal severity: normal

[issue12850] [PATCH] stm.atomic

2011-08-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Rather than exposing the function pointers directly to the linker, I'd be happier with a function based API, with the pointer storage then being made static inside ceval.c. /* Each function returns the old func, or NULL on failure */

[issue12850] [PATCH] stm.atomic

2011-08-29 Thread Armin Rigo
Armin Rigo ar...@users.sourceforge.net added the comment: I suppose I'm fine either way, but do you have a reason for not exposing the variables to the linker? Some Windows-ism were such exposed variables are slower to access than static ones, maybe? The point is that they are kind of

[issue12742] Add support for CESU-8 encoding

2011-08-29 Thread Adal Chiriliuc
Adal Chiriliuc adal.chiril...@gmail.com added the comment: It's an internal web API at the place I work for. To be able to use it from Python in some form, I did an workaround in which I just stripped everything outside BMP: # replace characters outside BMP with 'REPLACEMENT CHARACTER'

[issue6715] xz compressor support

2011-08-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing

[issue12742] Add support for CESU-8 encoding

2011-08-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I'm going to reject this. If people need it, they can always implement it using the codecs module. -- resolution: - rejected stage: - committed/rejected status: open - closed ___ Python

[issue12852] test_posix.test_fdlistdir() segfault on OpenBSD

2011-08-29 Thread Remi Pointel
New submission from Remi Pointel pyt...@xiri.fr: Hi, During the regress tests on OpenBSD, test_posix.test_fdlistdir() segfault. Details: $ ./python ./Tools/scripts/run_tests.py test_posix /home/remi/dev/cpython_test/python -W default -bb -E -m test -r -w -j 0 -u

[issue12852] test_posix.test_fdlistdir() segfault on OpenBSD

2011-08-29 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Does it always segfault? Try: ./python -c 'import os; print(os.fdlistdir(os.open(/tmp, os.O_RDONLY)))' with various values for /tmp. From what I can see, the code for fdlistdir is basically the same as os.listdir(). If possible, try

[issue12850] [PATCH] stm.atomic

2011-08-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12850 ___ ___ Python-bugs-list mailing

[issue12852] test_posix.test_fdlistdir() segfault on OpenBSD

2011-08-29 Thread Remi Pointel
Remi Pointel pyt...@xiri.fr added the comment: Hi, thanks for your response. Yes it always segfault: $ ./python -c 'import os; print(os.fdlistdir(os.open(/tmp, os.O_RDONLY)))' zsh: segmentation fault (core dumped) ./python -c 'import os; print(os.fdlistdir(os.open(/tmp, os.O_RDONLY)))' $

[issue12852] test_posix.test_fdlistdir() segfault on OpenBSD

2011-08-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: It looks like a kernel bug !? Are you able to write a C script reproducing the problem? If not, I can try to write it. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org

[issue12852] test_posix.test_fdlistdir() segfault on OpenBSD

2011-08-29 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: It looks like a kernel bug !? That's what I thought given that it appears to be working on all the other platforms. -- ___ Python tracker rep...@bugs.python.org

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2011-08-29 Thread Jean-Michel Fauth
Jean-Michel Fauth wxjmfa...@gmail.com added the comment: Œ, œ or even are historically ligatures or ligatured forms. In the French typography, they are single plain letters and they belong the group of the 42 letters used in the French typography. Typographically speaking, using oe instead of œ

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2011-08-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Œ, œ or even are historically ligatures or ligatured forms. In the French typography, they are single plain letters and they belong the group of the 42 letters used in the French typography. Typographically speaking, using oe instead of œ is

[issue12852] test_posix.test_fdlistdir() segfault on OpenBSD

2011-08-29 Thread Remi Pointel
Remi Pointel pyt...@xiri.fr added the comment: Hi, I tested with this program in C: #include stdio.h #include dirent.h #include fcntl.h #include stdlib.h int main(void) { DIR *d; struct dirent *dp; int dfd; if ((d = fdopendir((dfd = open(/tmp, O_RDONLY == NULL) {

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2011-08-29 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: Antoine Pitrou rep...@bugs.python.org wrote on Mon, 29 Aug 2011 13:21:06 -: It's not only typographically speaking, it's really a spelling error, even in hand-written text :-) Sure, and so too is omitting an accent mark or

[issue8323] buffer objects are picklable but result is not unpicklable

2011-08-29 Thread sbt
sbt shibt...@gmail.com added the comment: Buffer objects *are* picklable with protocol 2 (but not with earlier protocols). Unfortunately, the result is not unpicklable. This is not a problem with multiprocessing. (buffer seems to inherit __reduce__ and __reduce_ex__ from object.) Python

[issue9253] argparse: optional subparsers

2011-08-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: test needed - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9253 ___

[issue3871] cross and native build of python for mingw32 with packaging

2011-08-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: if you recall there was some discussion that it was acceptable to use distutils but *only* for python 2.N There was discussion, yes, but it was not decided to change our decision on the freeze: msg121097 just as an aside: have all python 3.N

[issue12801] C realpath not used by os.path.realpath

2011-08-29 Thread jan matejek
Changes by jan matejek jmate...@suse.cz: -- nosy: +matejcik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12801 ___ ___ Python-bugs-list mailing

[issue3871] cross and native build of python for mingw32 with packaging

2011-08-29 Thread Zooko O'Whielacronx
Changes by Zooko O'Whielacronx zo...@zooko.com: -- nosy: -zooko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___ ___ Python-bugs-list

[issue11913] sdist refuses README.rst

2011-08-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: distribute is not a project of python-dev, please use their bug tracker. For distutils, I explained why we can’t change it and proposed a doc change; nobody commented on that. For distutils2, I’m waiting for a reply from Tarek to this question:

[issue2636] Adding a new regex module (compatible with re)

2011-08-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Library (Lib) title: Regexp 2.7 (modifications to current re 2.2.2) - Adding a new regex module (compatible with re) versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue12801] C realpath not used by os.path.realpath

2011-08-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, if we use two different paths based on the libc version, it might not be a good idea, since behaviour can be different in some cases. It would be nice to know if some modern platforms have a non-compliant realpath(). --

[issue10946] bdist doesn’t pass --skip-build on to subcommands

2011-08-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The fix was actually very simple. I have committed it to my 3.2 repo and will push later. -- stage: test needed - commit review Added file: http://bugs.python.org/file23061/fix-bdist-skip-build.diff

[issue10886] Unhelpful backtrace for multiprocessing.Queue

2011-08-29 Thread sbt
sbt shibt...@gmail.com added the comment: mp_queue_pickle_in_main_thread.patch (against the default branch) fixes the problem by doing the pickling in Queue.put(). It is version of a patch for Issue 8037 (although I believe the behaviour complained about in Issue 8037 is not an actual bug).

[issue12836] ctypes.cast() creates circular reference in original object

2011-08-29 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I can confirm that the same behaviour occur in Python 3.3, and this appears to be by design. There's a specific line in the cast() function in in Modules/_ctypes.c: rc = PyDict_SetItem(result-b_objects, index, src); This adds the source

[issue12785] list_distinfo_file is wrong

2011-08-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The tests using build_ext now pass \o/ I would love for someone with Windows and a 3.3 clone to test this patch (and if it does not fix, try with the two lines mentioned in msg142773 removed). --

[issue12833] raw_input misbehaves when readline is imported

2011-08-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Still, this behavior is surprising and undesirable. I would suggest adding a note to the docs for the readline module +1. -- assignee: - docs@python components: +Documentation -IO, Interpreter Core nosy: +docs@python stage: test needed

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2011-08-29 Thread sbt
sbt shibt...@gmail.com added the comment: Modifying an object which is already on a traditional queue can also change what is received by the other thread (depending on timing). So Queue.Queue's put() is not atomic either. Therefore I do not believe this behaviour is a bug. However the

[issue12852] test_posix.test_fdlistdir() segfault on OpenBSD

2011-08-29 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: I'm not sure what the status of Python and OpenBSD support is but I just tried the latest stable version of OpenBSD (4.9) in VirtualBox and it won't compile fully. It segfaults while trying to run setup.py (I think). I see you're

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2011-08-29 Thread sbt
sbt shibt...@gmail.com added the comment: I meant Issue 6721 (Locks in python standard library should be sanitized on fork) not 6271. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8037

[issue10886] Unhelpful backtrace for multiprocessing.Queue

2011-08-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This shouldn't be a problem in Python 3.3, where the Connection classes are reimplemented in pure Python. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10886

[issue12853] global name 'r' is not defined in upload.py

2011-08-29 Thread Russell Owen
New submission from Russell Owen reo...@users.sourceforge.net: When using distutils to upload code to PyPI I get the following message (but the upload is successful): {{{ Traceback (most recent call last): File setup.py, line 60, in module zip_safe = False, # icons (e.g. as used by

[issue12801] C realpath not used by os.path.realpath

2011-08-29 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Well, if we use two different paths based on the libc version, it might not be a good idea, since behaviour can be different in some cases. Indeed. It would be nice to know if some modern platforms have a non-compliant

[issue12801] C realpath not used by os.path.realpath

2011-08-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Alas, it doesn't seem to hold for OpenBSD: http://old.nabble.com/Make-realpath(3)-conform-to-SUSv4-td32031895.html A patch supporting NULL was committed two months ago, which means we probably can't push this forward. I've been quite

[issue12801] C realpath not used by os.path.realpath

2011-08-29 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: I've been quite disappointed by POSIX lately... POSIX the standard, or the implementers?? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12801

[issue12853] global name 'r' is not defined in upload.py

2011-08-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - tarek components: +Distutils nosy: +eric.araujo, tarek stage: - needs patch versions: +Python 3.2, Python 3.3 -Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue11564] pickle not 64-bit ready

2011-08-29 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Tested the latest patch with -M11G. All tests pass. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11564 ___

[issue12801] C realpath not used by os.path.realpath

2011-08-29 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: POSIX the standard, or the implementers?? Both :-) For those wondering why we can't use PATH_MAX (ignoring the buffer overallocation), here's why:

[issue12854] PyOS_Readline usage in tokenizer ignores sys.stdin/sys.stdout

2011-08-29 Thread Albert Zeyer
New submission from Albert Zeyer alb...@googlemail.com: In Parser/tokenizer.c, there is `PyOS_Readline(stdin, stdout, tok-prompt)`. This ignores any `sys.stdin` / `sys.stdout` overwrites. The usage should be like in Python/bltinmodule.c in builtin_raw_input. -- messages: 143168 nosy:

[issue12769] String with NUL characters truncated by ctypes when assigning to a char array

2011-08-29 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: This behaviour also occurs in 3.3, where this does appear to be a bug. In Modules/_ctypes/cfield.c, the setting code does a strlen(), which is in fact questioned in a comment. In function s_set(): size = strlen(data); /* XXX Why not

[issue12769] String with NUL characters truncated by ctypes when assigning to a char array

2011-08-29 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Seems related: #8161 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12769 ___ ___

[issue9041] raised exception is misleading

2011-08-29 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: While the patch might improve over the current situation, doesn't it potentially mask other errors which might be raised by PyFloat_AsDouble()? Why not just x = PyFloat_AsDouble(value); if (PyErr_Occurred()) return NULL; which would

[issue12841] Incorrect tarfile.py extraction

2011-08-29 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Yes, I can do that as soon as I've managed to wrap my head around using Mercurial and the new way of developing Python. I have been away from Python programming for quite some time and haven't adapted my workflow yet. --

[issue6715] xz compressor support

2011-08-29 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- hgrepos: +64 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list

[issue6715] xz compressor support

2011-08-29 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: Added file: http://bugs.python.org/file23063/f3cf187208ea.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

[issue6715] xz compressor support

2011-08-29 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Attached is a patch (f3cf187208ea.diff) containing my work so far on reimplementing the lzma module. So far I've just done the LZMACompressor and LZMADecompressor classes, but I'm hoping to implement LZMAFile this weekend. --

[issue6721] Locks in python standard library should be sanitized on fork

2011-08-29 Thread sbt
sbt shibt...@gmail.com added the comment: multiprocessing.util already has register_after_fork() which it uses for cleaning up certain things when a new process (launched by multiprocessing) is starting. This is very similar to the proposed atfork mechanism. Multiprocessing assumes that it

[issue12841] Incorrect tarfile.py extraction

2011-08-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: You can get a lot of information on this guide: http://docs.python.org/devguide/setup.html#getting-set-up You can also ask on IRC (#python-dev on Freenode), or by email on the python-dev mailing list. It was really hard for me to

  1   2   >