ANN: Pylint bug day, 2nd edition

2010-03-23 Thread Alexandre Fayolle
Hi everyone we'll hold the next `pylint bugs day`_ on april 16th 2010 (friday). If some of you want to come and work with us in our `Paris office`_, you'll be much welcome. Else you can still join us on jabber / irc: * jabber: chat room pub...@jabber.logilab.org * irc: #public on

Re: Castrated traceback in sys.exc_info()

2010-03-23 Thread Gabriel Genellina
En Mon, 22 Mar 2010 15:20:39 -0300, Pascal Chambon chambon.pas...@wanadoo.fr escribió: Allright, here is more concretely the problem : ERROR:root:An error Traceback (most recent call last): File C:/Users/Pakal/Desktop/aaa.py, line 7, in c return d() File C:/Users/Pakal/Desktop/aaa.py,

Re: GC is very expensive: am I doing something wrong?

2010-03-23 Thread Steven D'Aprano
On Mon, 22 Mar 2010 22:05:40 -0700, Paul Rubin wrote: Antoine Pitrou solip...@pitrou.net writes: Orders of magnitude worse, in any case, sounds very exaggerated. The worst case can lose orders of magnitude if a lot of values hash to the same bucket. Well, perhaps one order of magnitude.

Re: Problem with sys.path when embedding Python3 in C

2010-03-23 Thread Gabriel Genellina
En Mon, 22 Mar 2010 18:19:49 -0300, Krister Svanlund krister.svanl...@gmail.com escribió: Hi, I've recently begun experimenting with embedding python and i got a small problem. The following line here is the ugly-hack I had to do to make it work, nothing else I know of makes it possible to

Re: individually updating unicodedata db?

2010-03-23 Thread Gabriel Genellina
En Mon, 22 Mar 2010 21:19:04 -0300, Vlastimil Brom vlastimil.b...@gmail.com escribió: I guess, I am stuck here, as I use the precompiled version supplied in the windows installer and can't compile python from source to obtain the needed unicodedata.pyd. You can recompile Python from source,

Re: logging: local functions == loss of lineno

2010-03-23 Thread Vinay Sajip
On Mar 20, 8:36 am, Peter Otten __pete...@web.de wrote: Jean-Michel Pichavant wrote: You are still accessing the private attribute of the  modulelogging. Just reading it is a significantly more conservative approach than setting it to an object with an unusual notion of equality ;) My

Re: StringChain -- a data structure for managing large sequences of chunks of bytes

2010-03-23 Thread Zooko O'Whielacronx
My apologies; I left out the heading on the last of the four structures in the benchmark results. Here are those results again with the missing heading (Stringy) inserted: Regards, Zooko - Hide quoted text - On Sun, Mar 21, 2010 at 11:09 PM, Zooko O'Whielacronx zoo...@gmail.com wrote: impl:

Re: GC is very expensive: am I doing something wrong?

2010-03-23 Thread Paul Rubin
Steven D'Aprano ste...@remove.this.cybersource.com.au writes: Well, perhaps one order of magnitude. for i in xrange(100): ... n = 32*i+1 ... assert hash(2**n) == hash(2) Try with much more than 100 items (you might want to construct the entries a little more intricately to avoid such

Re: GC is very expensive: am I doing something wrong?

2010-03-23 Thread Peter Otten
Steven D'Aprano wrote: On Mon, 22 Mar 2010 22:05:40 -0700, Paul Rubin wrote: Antoine Pitrou solip...@pitrou.net writes: Orders of magnitude worse, in any case, sounds very exaggerated. The worst case can lose orders of magnitude if a lot of values hash to the same bucket. Well,

Re: How to automate accessor definition?

2010-03-23 Thread Bruno Desthuilliers
John Posner a écrit : On 3/22/2010 11:44 AM, Bruno Desthuilliers wrote: snip Another (better IMHO) solution is to use a plain property, and store the computed value as an implementation attribute : @property def foo(self): cached = self.__dict__.get('_foo_cache') if cached is None:

Re: Problem with sys.path when embedding Python3 in C

2010-03-23 Thread Krister Svanlund
On Tue, Mar 23, 2010 at 8:07 AM, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Mon, 22 Mar 2010 18:19:49 -0300, Krister Svanlund krister.svanl...@gmail.com escribió: Hi, I've recently begun experimenting with embedding python and i got a small problem. The following line here is the

Re: GC is very expensive: am I doing something wrong?

2010-03-23 Thread Stefan Behnel
Paul Rubin, 23.03.2010 06:05: Antoine Pitrou writes: Orders of magnitude worse, in any case, sounds very exaggerated. The worst case can lose orders of magnitude if a lot of values hash to the same bucket. While this is theoretically true, and it's good to be aware of this possibility,

Re: GC is very expensive: am I doing something wrong?

2010-03-23 Thread Paul Rubin
Stefan Behnel stefan...@behnel.de writes: While this is theoretically true, and it's good to be aware of this possibility, common string hash functions make it so rare in practice that a hash table will almost always outperform a trie for exact lookups. If it happens, it will either show up

How to find the best solution ?

2010-03-23 Thread Johny
I have a text and would like to split the text into smaller parts, say into 100 characters each. But if the 100th character is not a blank ( but word) this must be less than 100 character.That means the word itself can not be split. These smaller parts must contains only whole( not split) words.

Re: How to find the best solution ?

2010-03-23 Thread Tim Golden
On 23/03/2010 10:48, Johny wrote: I have a text and would like to split the text into smaller parts, say into 100 characters each. But if the 100th character is not a blank ( but word) this must be less than 100 character.That means the word itself can not be split. These smaller parts must

Some silly code for Easter holiday

2010-03-23 Thread Alf P. Steinbach
This program simulates some colored balls moving around, changing color according to certain rules. I think the most interesting is perhaps to not look at this code but just try to run it and figure out the color changing rules from observing the effect (extra mystery: why I wrote this). Sort

Re: short-circuiting any/all ?

2010-03-23 Thread Jean-Michel Pichavant
kj wrote: Arguably, Knuth's premature optimization is the root of all evil applies even to readability (e.g. what's the point of making code optimally readable if one is going to change it completely next day?) The guy who will change it will have to read it. The only waste would be if the

Re: ANN: Pylint bug day, 2nd edition

2010-03-23 Thread Alexandre Fayolle
On Monday 22 March 2010 18:38:07 Alexandre Fayolle wrote: .. _pylint bugs day: https://www.logilab.net/elo/blogentry/18781 Correct link is : http://www.logilab.org/blogentry/18781 Sorry for the inconvenience. -- Alexandre Fayolle LOGILAB, Paris (France)

Re: SOAP 1.2 Python client ?

2010-03-23 Thread BlueBird
On 5 mar, 13:19, lbolla lbo...@gmail.com wrote: On Mar 5, 10:01 am, BlueBird p...@freehackers.org wrote: On 3 mar, 20:35, Stefan Behnel stefan...@behnel.de wrote: BlueBird, 03.03.2010 17:32: I am looking for aSOAP1.2 python client. To my surprise, it seems that this does not

jobs in usa for foreigners jobs in usa hotels jobs in usa for uk citizens usa jobs usa jobs in afghanistan usa jobs application manager usa jobs for non us citizens on http://jobsinusa-

2010-03-23 Thread saima81
jobs in usa for foreigners jobs in usa hotels jobs in usa for uk citizens usa jobs usa jobs in afghanistan usa jobs application manager usa jobs for non us citizens on http://jobsinusa-net.blogspot.com/ jobs in usa for foreigners jobs in usa hotels jobs in usa for uk citizens usa jobs usa jobs in

Re: individually updating unicodedata db?

2010-03-23 Thread Vlastimil Brom
2010/3/23 Gabriel Genellina gagsl-...@yahoo.com.ar: En Mon, 22 Mar 2010 21:19:04 -0300, Vlastimil Brom vlastimil.b...@gmail.com escribió: I guess, I am stuck here, as I use the precompiled version supplied in the windows installer and can't compile python from source to obtain the needed

Re: RELEASED Python 2.6.5

2010-03-23 Thread peter
Thank you everyone for all the work that went into this update, but there may be a small problem with the Windows x86 installer. I've built and used python 2.6.5 on linux without any apparent problems, but the Windows x86 binary installer stops after compiling a few python source files. I've

Re: device identification

2010-03-23 Thread Omer Ihsan
On Mar 23, 9:22 am, Tim Roberts t...@probo.com wrote: Omer Ihsan omrih...@gmail.com wrote: i have installed pyusb now and run the sample usbenum.pyi have 3 usb ports on my PC but the results show 6 outputs to dev.filename..they are numbers like 001 or 005 etc and they changed when i

Re: RELEASED Python 2.6.5

2010-03-23 Thread Allan Davis
I just downloaded the installer and tested it on my win xp machine. The installer worked fine. -- Allan Davis Member of NetBeans Dream Team http://wiki.netbeans.org/NetBeansDreamTeam Lead Developer, nbPython

Re: GC is very expensive: am I doing something wrong?

2010-03-23 Thread Antoine Pitrou
Le Tue, 23 Mar 2010 02:57:56 -0700, Paul Rubin a écrit : It is unlikely to happen by accident. You might care that it can happen on purpose. See: http://www.cs.rice.edu/~scrosby/hash/ that I cited in another post. The article shows some sample attacks on Python cgi's. Certainly

Python is cool!!

2010-03-23 Thread Jose Manuel
I have been learning Python, and it is amazing I am using the tutorial that comes with the official distribution. At the end my goal is to develop applied mathematic in engineering applications to be published on the Web, specially on app. oriented to simulations and control systems, I was

using message loop for hotkey capturing

2010-03-23 Thread Alex Hall
Hi all, but mainly Tim Golden: Tim, I am using your wonderful message loop for keyboard input, the one on your site that you pointed me to a few months ago. It has been working perfectly as long as I had only one dictionary of keys mapping to one dictionary of functions, but now I want two of

Re: Python is cool!!

2010-03-23 Thread Tim Golden
On 23/03/2010 16:55, Jose Manuel wrote: I have been learning Python, and it is amazing I am using the tutorial that comes with the official distribution. At the end my goal is to develop applied mathematic in engineering applications to be published on the Web, specially on app. oriented

Re: using message loop for hotkey capturing

2010-03-23 Thread Tim Golden
On 23/03/2010 17:01, Alex Hall wrote: Hi all, but mainly Tim Golden: Tim, I am using your wonderful message loop for keyboard input, the one on your site that you pointed me to a few months ago. It has been working perfectly as long as I had only one dictionary of keys mapping to one dictionary

Re: Castrated traceback in sys.exc_info()

2010-03-23 Thread Vinay Sajip
On Mar 23, 6:12 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Mon, 22 Mar 2010 15:20:39 -0300, Pascal Chambon   chambon.pas...@wanadoo.fr escribi�: Allright, here is more concretely the problem : ERROR:root:An error Traceback (most recent call last):   File

Re: using message loop for hotkey capturing

2010-03-23 Thread Alex Hall
Sorry about that, it is fixed now. On 3/23/10, Tim Golden m...@timgolden.me.uk wrote: On 23/03/2010 17:01, Alex Hall wrote: Hi all, but mainly Tim Golden: Tim, I am using your wonderful message loop for keyboard input, the one on your site that you pointed me to a few months ago. It has been

Re: How to find the best solution ?

2010-03-23 Thread Tim Chase
Johny wrote: I have a text and would like to split the text into smaller parts, say into 100 characters each. But if the 100th character is not a blank ( but word) this must be less than 100 character.That means the word itself can not be split. These smaller parts must contains only whole(

Unicode blues in Python3

2010-03-23 Thread nn
I know that unicode is the way to go in Python 3.1, but it is getting in my way right now in my Unix scripts. How do I write a chr(253) to a file? #nntst2.py import sys,codecs mychar=chr(253) print(sys.stdout.encoding) print(mychar) ./nntst2.py ISO8859-1 ý ./nntst2.py nnout2 Traceback (most

Re: using message loop for hotkey capturing

2010-03-23 Thread MRAB
Alex Hall wrote: Hi all, but mainly Tim Golden: Tim, I am using your wonderful message loop for keyboard input, the one on your site that you pointed me to a few months ago. It has been working perfectly as long as I had only one dictionary of keys mapping to one dictionary of functions, but now

Re: Unicode blues in Python3

2010-03-23 Thread Rami Chowdhury
On Tuesday 23 March 2010 10:33:33 nn wrote: I know that unicode is the way to go in Python 3.1, but it is getting in my way right now in my Unix scripts. How do I write a chr(253) to a file? #nntst2.py import sys,codecs mychar=chr(253) print(sys.stdout.encoding) print(mychar) The

Re: using message loop for hotkey capturing

2010-03-23 Thread Alex Hall
On 3/23/10, MRAB pyt...@mrabarnett.plus.com wrote: Alex Hall wrote: Hi all, but mainly Tim Golden: Tim, I am using your wonderful message loop for keyboard input, the one on your site that you pointed me to a few months ago. It has been working perfectly as long as I had only one dictionary

Re: Unicode blues in Python3

2010-03-23 Thread nn
Rami Chowdhury wrote: On Tuesday 23 March 2010 10:33:33 nn wrote: I know that unicode is the way to go in Python 3.1, but it is getting in my way right now in my Unix scripts. How do I write a chr(253) to a file? #nntst2.py import sys,codecs mychar=chr(253)

Re: Unicode blues in Python3

2010-03-23 Thread Gary Herron
nn wrote: I know that unicode is the way to go in Python 3.1, but it is getting in my way right now in my Unix scripts. How do I write a chr(253) to a file? Python3 make a distinction between bytes and string(i.e., unicode) types, and you are still thinking in the Python2 mode that does

Re: Unicode blues in Python3

2010-03-23 Thread nn
Gary Herron wrote: nn wrote: I know that unicode is the way to go in Python 3.1, but it is getting in my way right now in my Unix scripts. How do I write a chr(253) to a file? Python3 make a distinction between bytes and string(i.e., unicode) types, and you are still thinking in the

DRUNK MOM AND BOY... HOT CLIP.....

2010-03-23 Thread MARRY
DRUNK MOM AND BOY... HOT CLIP. http://123sex4u.blogspot.com/ http://123sex4u.blogspot.com/ http://123sex4u.blogspot.com/ http://123sex4u.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: using message loop for hotkey capturing

2010-03-23 Thread MRAB
Alex Hall wrote: On 3/23/10, MRAB pyt...@mrabarnett.plus.com wrote: [snip] Incidentally, you might want to change: if(not action_to_take): to: if action_to_take is None: in case any of the values happen to be 0 (if not now, then possibly at some time in the future). Sorry, could

Miracles of the devil and beat of the revolution of religious reform

2010-03-23 Thread مؤمن مصلح
Follow what god revealed to the Almighty Peace be upon you Those who wish to familiarized themselves after you click on the link please wait a little until it opens the link Miracles of the devil and beat of the revolution of religious reform

Re: Unicode blues in Python3

2010-03-23 Thread Stefan Behnel
nn, 23.03.2010 19:46: Actually what I want is to write a particular byte to standard output, and I want this to work regardless of where that output gets sent to. I am aware that I could do open('nnout','w',encoding='latin1').write(mychar) but I am porting a python2 program and don't want to

Re: Python is cool!!

2010-03-23 Thread geremy condra
On Tue, Mar 23, 2010 at 1:07 PM, Tim Golden m...@timgolden.me.uk wrote: On 23/03/2010 16:55, Jose Manuel wrote: I have been learning Python, and it is amazing I am using the tutorial that comes with the official distribution. At the end my goal is to develop applied mathematic in

Re: Python is cool!!

2010-03-23 Thread Tim Golden
On 23/03/2010 20:04, geremy condra wrote: On Tue, Mar 23, 2010 at 1:07 PM, Tim Goldenm...@timgolden.me.uk wrote: On 23/03/2010 16:55, Jose Manuel wrote: Would it be easy to integrate Python in Web pages with HTML? I have read many info on Internet saying it is, and I hope so You

Re: Unicode blues in Python3

2010-03-23 Thread nn
Stefan Behnel wrote: nn, 23.03.2010 19:46: Actually what I want is to write a particular byte to standard output, and I want this to work regardless of where that output gets sent to. I am aware that I could do open('nnout','w',encoding='latin1').write(mychar) but I am porting a

Re: Python is cool!!

2010-03-23 Thread Michael Torrie
Jose Manuel wrote: Would it be easy to integrate Python in Web pages with HTML? I have read many info on Internet saying it is, and I hope so Django is, among several other similar projects and frameworks, very popular for generating web apps in Python. I have only used Django and it

Re: Castrated traceback in sys.exc_info()

2010-03-23 Thread Pascal Chambon
Gabriel Genellina a écrit : En Mon, 22 Mar 2010 15:20:39 -0300, Pascal Chambon chambon.pas...@wanadoo.fr escribió: Allright, here is more concretely the problem : ERROR:root:An error Traceback (most recent call last): File C:/Users/Pakal/Desktop/aaa.py, line 7, in c return d() File

Re: Python is cool!!

2010-03-23 Thread Patrick Maupin
On Mar 23, 3:12 pm, Tim Golden m...@timgolden.me.uk wrote: I can't say I thought *very* hard before sending that but... The OP asked for integrate Python in Web Pages with HTML which I understood -- perhaps wrongly -- to mean: run Python in the browser. The only two ways I'm aware of doing

Re: Python is cool!!

2010-03-23 Thread Shashwat Anand
There is a project PyWhip (renamed as PyKata) which aims for the same purpose. Google AppEmgine + Django does the trick for that. May be you can take an inspiration or two from there especially because all code is open to/for you. ~l0nwlf On Wed, Mar 24, 2010 at 2:54 AM, Patrick Maupin

Pythonic way to trim and keep leading and trailing whitespace

2010-03-23 Thread python
I'm looking for a pythonic way to trim and keep leading whitespace in a string. Use case: I have a bunch of text strings with various amounts of leading and trailing whitespace (spaces and tabs). I want to grab the leading and trailing whitespace, save it, surround the remaining text with html

Re: Python is cool!!

2010-03-23 Thread Patrick Maupin
On Tue, Mar 23, 2010 at 4:50 PM, Shashwat Anand anand.shash...@gmail.com wrote: There is a project PyWhip (renamed as PyKata) which aims for the same purpose. Google AppEmgine + Django does the trick for that. May be you can take an inspiration or two from there especially because all code is

Posting to https

2010-03-23 Thread dpawlows
I am trying to obtain data on a https site, but everytime I try to access the data that is behind the logon screen, I get the logon page instead. I was able to successfully do a test problem: import sys, urllib2, urllib zipcode = 48103 url =

Re: Pythonic way to trim and keep leading and trailing whitespace

2010-03-23 Thread Emile van Sebille
On 3/23/2010 3:09 PM pyt...@bdurham.com said... I'm looking for a pythonic way to trim and keep leading whitespace in a string. Use case: I have a bunch of text strings with various amounts of leading and trailing whitespace (spaces and tabs). I want to grab the leading and trailing whitespace,

Re: Pythonic way to trim and keep leading and trailing whitespace

2010-03-23 Thread Daniel Chiquito
As far as I know, I don't think there is anything that strips it and returns the material that was stripped. Regex's would be your best bet. Daniel On Tue, Mar 23, 2010 at 6:09 PM, pyt...@bdurham.com wrote: I'm looking for a pythonic way to trim and keep leading whitespace in a string. Use

Re: Unicode blues in Python3

2010-03-23 Thread Martin v. Loewis
nn wrote: Stefan Behnel wrote: nn, 23.03.2010 19:46: Actually what I want is to write a particular byte to standard output, and I want this to work regardless of where that output gets sent to. I am aware that I could do open('nnout','w',encoding='latin1').write(mychar) but I am porting a

Re: Castrated traceback in sys.exc_info()

2010-03-23 Thread Vinay Sajip
On Mar 23, 8:49 pm, Pascal Chambon chambon.pas...@wanadoo.fr wrote: Should I open an issue for this evolution of exceptiuon handling, or should we content ourselves of this hacking of frame stck ? Possibly worth raising an issue (not logging-related), but perhaps it's worth seeing if this has

Re: Pythonic way to trim and keep leading and trailing whitespace

2010-03-23 Thread python
Emile, target = 'spam and eggs ' stripped = target.strip() replaced = target.replace(stripped,html%s/html % stripped) Brilliant! That's just the type of clever solution I was looking for. Thank you! Malcolm - Original message - From: Emile van Sebille em...@fenx.com To:

Re: Pythonic way to trim and keep leading and trailing whitespace

2010-03-23 Thread Shashwat Anand
regex is not goto that you should always avoid using it. It have its own use-case, here regex solution is intuitive although @emile have done this for you via string manpulation. On Wed, Mar 24, 2010 at 4:09 AM, Daniel Chiquito daniel.chiqu...@gmail.comwrote: As far as I know, I don't think

Re: Pythonic way to trim and keep leading and trailing whitespace

2010-03-23 Thread Tim Chase
pyt...@bdurham.com wrote: I'm looking for a pythonic way to trim and keep leading whitespace in a string. Use case: I have a bunch of text strings with various amounts of leading and trailing whitespace (spaces and tabs). I want to grab the leading and trailing whitespace, save it, surround the

Re: Pythonic way to trim and keep leading and trailing whitespace

2010-03-23 Thread Martin P. Hellwig
On 03/23/10 23:38, Tim Chase wrote: cut Just in case you're okay with a regexp solution, you can use s = \t\tabc def import re r = re.compile(r'^(\s*)(.*?)(\s*)$') m = re.match(s) m.groups() ('\t\t', 'abc def', ' ') leading, text, trailing = m.groups() cut Ahhh regex, the hammer,

Advice Criticism on Python App

2010-03-23 Thread Jimbo
I have made a Python App(really script) that will check a stocks current values from a website save that data to a SQLite 3 database. I am looking for any suggestions criticisms on what I should do better or anything at all but mainly in these areas: [QUOTE] - Correct Python Layout of code -

Re: Advice Criticism on Python App

2010-03-23 Thread Chris Rebert
On Tue, Mar 23, 2010 at 5:05 PM, Jimbo nill...@yahoo.com wrote: I have made a Python App(really script) that will check a stocks current values from a website save that data to a SQLite 3 database. I am looking for any suggestions criticisms on what I should do better or anything at all but

Re: Advice Criticism on Python App

2010-03-23 Thread MRAB
Jimbo wrote: I have made a Python App(really script) that will check a stocks current values from a website save that data to a SQLite 3 database. I am looking for any suggestions criticisms on what I should do better or anything at all but mainly in these areas: [QUOTE] - Correct Python

Hello,everybody,the good shoping place,the new year approaching, click in. Let's facelift bar! ===== HTTP://loveshopping.us ====

2010-03-23 Thread marrylin
Hello,everybody,the good shoping place,the new year approaching, click in. Let's facelift bar! = HTTP://loveshopping.us Air jordan(1-24)shoes $33 UGG BOOT $50 Nike shox(R4,NZ,OZ,TL1,TL2,TL3) $35 Handbags(Coach lv fendi dg) $35 Tshirts (Polo ,ed hardy,lacoste) $16 Jean(True

Re: GC is very expensive: am I doing something wrong?

2010-03-23 Thread Paul Rubin
Antoine Pitrou solip...@pitrou.net writes: See: http://www.cs.rice.edu/~scrosby/hash/ ... Certainly interesting in a purely academic point of view, but in real life if you want to cause a denial of service by overwhelming a server, there are far more obvious options than trying to guess the

'gcc' failed with exit status 1

2010-03-23 Thread JR
Hello All, I was hoping I could get some help with this issue with getting Cython to work. Earlier I had an issue that said unable to find vcvarsall.bat and it turns out there is an active bug report that covers that issue (I have a 64 bit windows system). I still hadn't installed 3.1.2, so I did

Re: Unicode blues in Python3

2010-03-23 Thread Steven D'Aprano
On Tue, 23 Mar 2010 11:46:33 -0700, nn wrote: Actually what I want is to write a particular byte to standard output, and I want this to work regardless of where that output gets sent to. What do you mean work? Do you mean display a particular glyph or something else? In bash: $ echo -e

[issue8196] sqlit3.paramstyle reported as 'qmark'

2010-03-23 Thread Gerhard Häring
Gerhard Häring g...@ghaering.de added the comment: I said qmark vs numeric. I. e. vs: execute(UPDATE authors set name = :1, email = :2, comment = :3 WHERE id = :4, (form.name, form.email, form.text, form.id)) The sqlite3 module will always support both paramstyles qmark and named, simply

[issue8207] test_pep277 fails on OS X

2010-03-23 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Also this failure on py3k: == ERROR: test_normalize (test.test_pep277.UnicodeFileTests) -- Traceback (most recent

[issue1544339] _ctypes fails to build on Solaris x86 32-bit (Sun compiler)

2010-03-23 Thread Nick
Nick nick_bo...@fastmail.fm added the comment: Martin, the patch is for libffi included in ctypes 1.0.2. This is python 2.4 (required for plone/zope) so python 2.5/2.6 etc is not a possibility. ctypes 1.0.2 compiles with this patch but then core dumps anyway during tests so false hope. It

[issue8207] test_pep277 fails on OS X

2010-03-23 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: This patch should fix it... HFS Plus uses a variant of Normal Form D in which U+2000 through U+2FFF, U+F900 through U+FAFF, and U+2F800 through U+2FAFF are not decomposed. rant I believed there was only one Unicode... But obviously

[issue8209] OptionParser keyword arg 'epilog' not mentioned in the docs

2010-03-23 Thread Senthil Kumaran
New submission from Senthil Kumaran orsent...@gmail.com: I was looking for some option in optparse module which will allow me to add custom help text after the generated help. Realized that OptionParser class has a keyword argument 'epilog' for the same purpose. But this is not been explained

[issue8209] OptionParser keyword arg 'epilog' not mentioned in the docs

2010-03-23 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in revision 79329. -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8209 ___

[issue8207] test_pep277 fails on OS X

2010-03-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Florent Xicluna wrote: Florent Xicluna florent.xicl...@gmail.com added the comment: This patch should fix it... HFS Plus uses a variant of Normal Form D in which U+2000 through U+2FFF, U+F900 through U+FAFF, and U+2F800 through

[issue8207] test_pep277 fails on OS X

2010-03-23 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Actually, the file system in question is what Apple calls a HFSX case-sensitive (see http://developer.apple.com/mac/library/technotes/tn/tn1150.html#HFSX). On a typical OS X system, you could encounter any combination of HFS+ case-insensitive, HFSX

[issue8209] OptionParser keyword arg 'epilog' not mentioned in the docs

2010-03-23 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: merged into release26-maint branch - 79331 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8209 ___

[issue8207] test_pep277 fails on OS X

2010-03-23 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Could you provide a reference link for this quote ? I put the link in the patch: http://developer.apple.com/mac/library/qa/qa2001/qa1173.html -- ___ Python tracker rep...@bugs.python.org

[issue8207] test_pep277 fails on OS X

2010-03-23 Thread Ned Deily
Ned Deily n...@acm.org added the comment: With the patch for trunk, the test no longer fails on the given file system. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8207 ___

[issue6352] Compiler warning in unicodeobject.c

2010-03-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Apparently this was never backported to 3.1. done: r79335 (py3k). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6352 ___

[issue7668] test_httpservers fails with non-ascii path

2010-03-23 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Fixed with r79297 -- priority: - normal resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7880] sysconfig does not like symlinks

2010-03-23 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7880 ___ ___

[issue8133] test_imp fails on OS X; filename normalization issue.

2010-03-23 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8133 ___ ___

[issue8205] test_multiprocessing failure

2010-03-23 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Fixed with r79310. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8205

[issue8158] documentation of 'optparse' module incomplete

2010-03-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Senthil documented epilog in issue 8209. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8158 ___

[issue8209] OptionParser keyword arg 'epilog' not mentioned in the docs

2010-03-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: See also issue 8158. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8209 ___

[issue8210] rev 78820 causes problems on Solaris (Python 2.6)

2010-03-23 Thread Attila Nagy
New submission from Attila Nagy nagy.att...@yahoo.com: The check-in http://svn.python.org/view?view=revrevision=78820 causes problems on Solaris (SXCE 125, ksh, Studio 12). configure output: [...] checking for --with-pydebug... no ./configure: test: unknown operator == test on Solaris does

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-03-23 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: configure.in uses AC_PROG_CC, extract of the autoconf manual: (http://www.delorie.com/gnu/docs/autoconf/autoconf_64.html) If using the GNU C compiler, set shell variable GCC to `yes'. If output variable CFLAGS was not already

[issue4999] multiprocessing.Queue does not order objects

2010-03-23 Thread Stefan Praszalowicz
Stefan Praszalowicz deubeul...@gmail.com added the comment: I just got surprised by this, and I agree that updating the doc would be nice, because as of now, it states quite explicitly that the Queue and JoinableQueue types are multi-producer, multi-consumer FIFO queues. -- nosy:

[issue8212] A tp_dealloc of a subclassed class cannot resurrect an object

2010-03-23 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson krist...@ccpgames.com: The tp_dealloc of a type can chose to resurrect an object. the subtype_dealloc() in typeobject.c does this when it calls the tp_del() member and it has increased the refcount. The problem is, that if you subclass a custom C

[issue8210] rev 78820 causes problems on Solaris (Python 2.6)

2010-03-23 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +benjamin.peterson priority: - normal stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8210 ___

[issue8188] Unified hash for numeric types.

2010-03-23 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Another update, partly to address comments raised by Guido on Rietveld. I'll upload these changes to Rietveld later today. - rename sys._hash_info to sys.hash_info and make it public rather than private (it still needs docs somewhere) -

[issue8202] sys.argv[0] and python -m package

2010-03-23 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I realised today that this behaviour is actually the case for any execution of a module inside a package with -m (i.e. any __init__ modules execute before sys.argv and __main__ are fully configured). As I recall, I used a bit of a hack to get

[issue7279] decimal.py: == and != comparisons involving NaNs

2010-03-23 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Re-opening to address a couple of points that came out of the python-dev discussion: (1) As Stefan pointed out on python-dev, equality and inequality comparisons involving signaling nans should signal (order comparisons already do). IEEE

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-23 Thread Noam Yorav-Raphael
New submission from Noam Yorav-Raphael noamr...@gmail.com: Hello, Python 3.1 ignored the PYTHONUNBUFFERED environment variable and the '-u' switch (which do the same thing): stdout remains buffered even when the flag is raised. To reproduce, run: python3 -u -c 'import time, sys;

[issue8212] A tp_dealloc of a subclassed class cannot resurrect an object

2010-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Indeed. The io module has had to circumvent this and uses the following snippet when resurrecting an instance of a subclass of one of its types (see iobase_dealloc() in Modules/_io/iobase.c): /* When called from a heap type's dealloc,

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: -u is not ignored, but use line buffering: see issue #4705 and commit r68977. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8213

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8213 ___ ___

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: In the current state of affaires this is more of a documentation issue. Python 3 doesn't support totally unbuffered text I/O (and standard streams are open in text mode). What `-u` and PYTHONUNBUFFERED do is that the binary layer of standard

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - georg.brandl components: +Documentation -IO nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8213 ___

  1   2   >