Re: Problem with python 3.2 and circular imports

2011-03-06 Thread Frank Millman
Rafael Durán Castañeda rafadurancastan...@gmail.com wrote... Thank you for your answer Frank, I think I've found the problem. I was calling modules from inside subpackages, and I need to use them from outside, so I have package in PYTHONPATH. is that correct? But now I have another question:

Re: having both dynamic and static variables

2011-03-06 Thread Steven D'Aprano
On Sat, 05 Mar 2011 20:33:49 -0800, Westley Martínez wrote: On Sat, 2011-03-05 at 18:37 -0800, John Nagle wrote: It's worth having some syntax for constants. I'd suggest using let: +1 on syntax for constants. -0 for let. I'd prefer something more explicit, like const. I'm against

Re: I'm happy with Python 2.5

2011-03-06 Thread Steven D'Aprano
On Thu, 03 Mar 2011 11:43:12 -0700, Ian Kelly wrote: On Sun, Feb 27, 2011 at 7:15 AM, n00m n...@narod.ru wrote: http://www.spoj.pl/problems/TMUL/ Python's print a * b gets Time Limit Exceeded. If speed is the only thing you care about, then you can forget about fretting over whether 2.5

c++ data types in python script

2011-03-06 Thread Arthur Mc Coy
Hi people, I've used SWIG module to embed python inside c++ app. I pass a list of objects (with lots of different properties of types string, float, custom types like URL, Software and finally of list of strings). Now I'm in python. URL and Software has str() method that converts their value to

Re: What do I need to know in order to write a web application in python?

2011-03-06 Thread ErichCart ErichCart
QT Designer looks very nice. I hope I can use it with PySide. I would rather use PySide than PyQT, because PyQT is not under LGPL license. -- http://mail.python.org/mailman/listinfo/python-list

Re: c++ data types in python script

2011-03-06 Thread Arthur Mc Coy
Great! The solution is to use self.benchmarks = list(object.benchmarks). Now I'm battling with time_t type. C++ time_t converts to python int but it causes memore leaks due to destructor absence. I'm trying to figure it out. If anyone know, please share your thoughts. Be happy :) Arthur --

下载 below Download, in python.org site menu

2011-03-06 Thread Alex Willmer
On the English version of http://python.org I'm seeing 下载 as a menu item between Download and Community. AFAICT it's Simplified Chinese for 'download'. Is it's appearance intentional, or a leak through from a translation of the entire page? Regards, Alex PS Tested with 10.0.648.114 (75702) and

Re: 下载 below Download, in python.org site menu

2011-03-06 Thread Martin v. Loewis
Am 06.03.2011 12:18, schrieb Alex Willmer: On the English version of http://python.org I'm seeing 下载 as a menu item between Download and Community. AFAICT it's Simplified Chinese for 'download'. Is it's appearance intentional, or a leak through from a translation of the entire page? It's

Re: I'm happy with Python 2.5

2011-03-06 Thread Tom Zych
Steven D'Aprano wrote: On Thu, 03 Mar 2011 11:43:12 -0700, Ian Kelly wrote: If speed is the only thing you care about, then you can forget about fretting over whether 2.5 or 3.1 is faster. You're using the wrong language to begin with. Surely that depends on whether you care about execution

Re: Extending dict (dict's) to allow for multidimensional dictionary

2011-03-06 Thread Ravi
That's a very nice suggestion. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Absolutely Insane Problem with Gmail

2011-03-06 Thread Victor Subervi
On Sat, Mar 5, 2011 at 11:11 PM, Littlefield, Tyler ty...@tysdomain.comwrote: ourEmail = ' myemaila...@gmail.com' ourEmail = ' q...@xxx.com' You redefine this twice. Right. The second definition, of course, overwrites the first. That is deliberate. I simply comment out the second when

Re: What do I need to know in order to write a web application in python?

2011-03-06 Thread John Pinner
On Mar 5, 7:42 pm, geremy condra debat...@gmail.com wrote: On Sat, Mar 5, 2011 at 3:49 AM, ErichCart ErichCart erichc...@gmail.com wrote: Visual Python seems to be exactly what I want. But it doesn't seem very popular. Perhaps it means that there are not many people who will be able to

How Translate This PHP

2011-03-06 Thread Victor Subervi
Hi; How do I translate this PHP code? if($ok){ echo returnValue=1; }else{ echo returnValue=0; } In other words, when the email successfully sends, send back both the name of the variable and its value. TIA, Beno -- http://mail.python.org/mailman/listinfo/python-list

Re: How Translate This PHP

2011-03-06 Thread Noah Hall
On Sun, Mar 6, 2011 at 2:45 PM, Victor Subervi victorsube...@gmail.com wrote: Hi; How do I translate this PHP code? if($ok){     echo returnValue=1; }else{     echo returnValue=0; } From the code provided - if ok: print 'returnValue=1' else: print 'returnValue=0' --

Re: How Translate This PHP

2011-03-06 Thread Victor Subervi
On Sun, Mar 6, 2011 at 10:53 AM, Noah Hall enali...@gmail.com wrote: On Sun, Mar 6, 2011 at 2:45 PM, Victor Subervi victorsube...@gmail.com wrote: Hi; How do I translate this PHP code? if($ok){ echo returnValue=1; }else{ echo returnValue=0; } From the code provided -

Re: How Translate This PHP

2011-03-06 Thread Littlefield, Tyler
How do I translate this PHP code? if($ok){ echo returnValue=1; }else{ echo returnValue=0; } print(return value = +str(ok)); -- http://mail.python.org/mailman/listinfo/python-list

Re: How Translate This PHP

2011-03-06 Thread Noah Hall
On Sun, Mar 6, 2011 at 3:11 PM, Victor Subervi victorsube...@gmail.com wrote: Ah. I thought I had to return something! Well, based on what you asked, you would've, but based on the code, all it was doing is printing returnValue - value Of course, a better way of doing it would be to use

python data types in c++ code

2011-03-06 Thread Arthur Mc Coy
Hi all, Ok, I managed to work with c++ data types in python and can store serialize c++ objects to store in json. Now the task is backward. I wrote a c++ code to get the list of objects using again python interface. The list of objects is returned. PyList. But I can't see how to convert

Re: ImSim: Image Similarity

2011-03-06 Thread n00m
Obviously if we'd use it in practice (in a web-museum ?) all pic's matrices should be precalculated only once and stored in a table with fourty fields v00 ... v93 like: --- pic_title v00v01v02... v93

Re: I'm happy with Python 2.5

2011-03-06 Thread Michael Torrie
On 02/27/2011 06:57 AM, n00m wrote: Steve, see a list of accepted langs there, in bottom dropdown: http://www.spoj.pl/submit/ There *was* Python 2.6. Then admins shifted back to 2.5. People vote by their legs. rr, is that you? -- http://mail.python.org/mailman/listinfo/python-list

Re: python data types in c++ code

2011-03-06 Thread Stefan Behnel
Arthur Mc Coy, 06.03.2011 17:40: Ok, I managed to work with c++ data types in python and can store serialize c++ objects to store in json. Now the task is backward. I wrote a c++ code to get the list of objects using again python interface. The list of objects is returned. PyList. But I can't

Re: python data types in c++ code

2011-03-06 Thread Arthur Mc Coy
Ok people, I do: for (Py_ssize_t i = 0; i PyList_Size(py_list); ++i) { PuObject* obj = PyList_GetItem(py_list, i); if (obj != NULL) { // howto get obj properties of different types (map, list, string, int, bool) ? } } Very clear code. The question

Re: python data types in c++ code

2011-03-06 Thread Arthur Mc Coy
Stefan, great suggestion !! I will definitely bookmark this page and consider later. But my project dictate me use SWIG. I'm almost near the happy subend. Very curios on question I asked in previous message. Dear all, I love you too much :) Arthur --

Re: python data types in c++ code

2011-03-06 Thread Arthur Mc Coy
Stephan, you are lead developer over there :))) It's marketing, however very nice solution.. I will propose my bosses to rediscover their world assumptions. You know, they are still using SVN, they are very loosely coupled to the past. I have to wash their brains... Meantime still battling with

Re: python data types in c++ code

2011-03-06 Thread Arthur Mc Coy
In short, the answer is to use PyObject dictionary ? -- http://mail.python.org/mailman/listinfo/python-list

Re: What do I need to know in order to write a web application in python?

2011-03-06 Thread Dan Stromberg
On Fri, Mar 4, 2011 at 6:07 PM, Paul Rubin no.email@nospam.invalid wrote: ErichCart ErichCart erichc...@gmail.com writes: By real-time, I mean that I want it to be similar to the way instant online chess works. Something like here: instantchess.com, but for RISK. If you want to do that

Re: python data types in c++ code

2011-03-06 Thread Stefan Behnel
Arthur Mc Coy, 06.03.2011 19:07: Stephan, you are lead developer over there :))) It's marketing, Let's say, as a core developer of Cython, I'm well aware of it's virtues, and I can tell you that my suggestion is actually well backed by the user feedback we get. You will find some of it on

Re: ImSim: Image Similarity

2011-03-06 Thread John Bokma
n00m n...@narod.ru writes: http://www.nga.gov/search/index.shtm http://deyoung.famsf.org/search-collections etc Seems they all offer search only by keywords and this kind. What about to submit e.g. roses2.jpg (copy) and to find its original? Assume we don't know its author neither its title

Re: I'm happy with Python 2.5

2011-03-06 Thread Dan Stromberg
On Thu, Mar 3, 2011 at 10:43 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Sun, Feb 27, 2011 at 7:15 AM, n00m n...@narod.ru wrote: http://www.spoj.pl/problems/TMUL/ Python's print a * b gets Time Limit Exceeded. If speed is the only thing you care about, then you can forget about

new to python, trying to choose a book.

2011-03-06 Thread sogeking99
hey. been looking into book for learning python(or what ever resource really) two books are frequently recommended, learn python the hard way and think python. i have also been recommended dive into python by one person, who said it was fantastic. but another person said it was dated and even when

Re: I'm happy with Python 2.5

2011-03-06 Thread geremy condra
On Sun, Feb 27, 2011 at 6:27 AM, Tom Zych freethin...@pobox.com wrote: n00m wrote: Am I turmoiling your wishful thinking? You may nourish it till the end of time. Let us cease to nourish those fabled ones who dwell under bridges. +1 QOTW. Geremy Condra --

Re: ImSim: Image Similarity

2011-03-06 Thread n00m
On Mar 6, 8:55 pm, John Bokma j...@castleamber.com wrote: n00m n...@narod.ru writes: http://www.nga.gov/search/index.shtm http://deyoung.famsf.org/search-collections etc Seems they all offer search only by keywords and this kind. What about to submit e.g. roses2.jpg (copy) and to find its

Re: I'm happy with Python 2.5

2011-03-06 Thread n00m
On Mar 6, 7:25 pm, Michael Torrie torr...@gmail.com wrote: On 02/27/2011 06:57 AM, n00m wrote: Steve, see a list of accepted langs there, in bottom dropdown: http://www.spoj.pl/submit/There *was* Python 2.6. Then admins shifted back to 2.5. People vote by their legs. rr, is that you? Are

Re: ImSim: Image Similarity

2011-03-06 Thread n00m
On Mar 6, 10:17 pm, n00m n...@narod.ru wrote: On Mar 6, 8:55 pm, John Bokma j...@castleamber.com wrote: n00m n...@narod.ru writes: http://www.nga.gov/search/index.shtm http://deyoung.famsf.org/search-collections etc Seems they all offer search only by keywords and this kind.

Re: I'm happy with Python 2.5

2011-03-06 Thread n00m
PS The winner (just a schoolboy) of IOI 2009 lives in my town, not very far from my house. I'm proud to have such a neibour. His account on spoj: http://www.spoj.pl/users/tourist/ Of course he's also registered on many other online judge systems, incl. www.topcoder.com --

Re: having both dynamic and static variables

2011-03-06 Thread Westley Martínez
On Sun, 2011-03-06 at 07:58 +, Steven D'Aprano wrote: On Sat, 05 Mar 2011 20:33:49 -0800, Westley Martínez wrote: On Sat, 2011-03-05 at 18:37 -0800, John Nagle wrote: It's worth having some syntax for constants. I'd suggest using let: +1 on syntax for constants. -0 for let.

Re: ImSim: Image Similarity

2011-03-06 Thread John Bokma
n00m n...@narod.ru writes: On Mar 6, 10:17 pm, n00m n...@narod.ru wrote: On Mar 6, 8:55 pm, John Bokma j...@castleamber.com wrote: n00m n...@narod.ru writes: http://www.nga.gov/search/index.shtm http://deyoung.famsf.org/search-collections etc Seems they all offer search only by

Re: new to python, trying to choose a book.

2011-03-06 Thread Westley Martínez
On Sun, 2011-03-06 at 11:21 -0800, sogeking99 wrote: hey. been looking into book for learning python(or what ever resource really) two books are frequently recommended, learn python the hard way and think python. i have also been recommended dive into python by one person, who said it was

Re: new to python, trying to choose a book.

2011-03-06 Thread Brandon LaRocque
I'd suggest Zed Shaw's amazing Learn Python The Hard Way [1] (which isn't as hard as it sounds) - and it's free over the web (but, I believe - you can buy a copy). I dislike Pilgrim's Dive Into Python, but that's just me (though I thoroughly recommend Dive Into HTML5 to anyone interested in HTML5)

Re: ImSim: Image Similarity

2011-03-06 Thread n00m
As for proper quoting: I read/post to this group via my web-browser. And for me everything looks OK. I don't even quite understand what exactly do you mean by your remark. I'm not a facebookie/forumish/twitterish thing. Btw I don't know what is the twitter. I don't need it, neither to know nor to

Re: Fun with 'str' and 'bytes'

2011-03-06 Thread Nicholas Devenish
On 04/03/2011 16:40, nn wrote: As far as I know, that is pretty much it. Also see: http://bugs.python.org/issue3982 That is a depressing bug report, and really comes across as people who don't use networking commenting on the requirements of people who write networking code. It's good to

Re: What is the best book to learn Python from Perl and C++ background

2011-03-06 Thread Nicholas Devenish
On 04/03/2011 17:49, Ignoramus20691 wrote: I bought a Hello World! book for my 9 year old son. The book teached programming for kids and it does it in Python. I do not know any Python, but I am very comfortable with C++ and perl. I wrote a little over 100k lines of perl. I want to learn Python

Re: my computer is allergic to pickles

2011-03-06 Thread Bob Fnord
Miki Tebeka miki.teb...@gmail.com wrote: I'm using python to do some log file analysis and I need to store on disk a very large dict with tuples of strings as keys and lists of strings and numbers as values. I recommend that you'll use the shelve module. It stores data on disk and is

Re: ImSim: Image Similarity

2011-03-06 Thread John Bokma
n00m n...@narod.ru writes: As for proper quoting: I read/post to this group via my web-browser. And for me everything looks OK. I don't even quite understand what exactly do you mean by your remark. I'm not a facebookie/forumish/twitterish thing. Exactly. It's Usenet, something I've been

Cluto like library for Python

2011-03-06 Thread Ravi
I like Cluto as a data clustering software a lot. But its library binding is available only in C. Is there any python library which is similar to Cluto? -- http://mail.python.org/mailman/listinfo/python-list

Re: having both dynamic and static variables

2011-03-06 Thread Gregory Ewing
John Nagle wrote: let allows the usual optimizations - constant folding, hoisting out of loops, compile time arithmetic, unboxing, etc. Only if the compiler knows the value of the constant, which it won't if it's defined in a different module. -- Greg --

Re: 下载 below Download, in python.org site menu

2011-03-06 Thread Terry Reedy
On 3/6/2011 6:42 AM, Martin v. Loewis wrote: Am 06.03.2011 12:18, schrieb Alex Willmer: On the English version of http://python.org I'm seeing 下载 as a menu item between Download and Community. AFAICT it's Simplified Chinese for 'download'. Is it's appearance intentional, or a leak through from

Re: Fun with 'str' and 'bytes'

2011-03-06 Thread Terry Reedy
On 3/6/2011 4:55 PM, Nicholas Devenish wrote: On 04/03/2011 16:40, nn wrote: As far as I know, that is pretty much it. Also see: http://bugs.python.org/issue3982 That is a depressing bug report, and really comes across as people who don't use networking commenting on the requirements of

Re: 下载 below Download, in python.org site menu

2011-03-06 Thread Martin v. Loewis
It's intentional. Notice that it goes to a different URL than the English download link. Which is a synonym for the English download link (/getit is /download at present) Perhaps a translated page is planned? No, translation is not the motivation at all. Chinese readers will know when to

Re: Cluto like library for Python

2011-03-06 Thread Miki Tebeka
You have several option for interfacing with C libraries: Cython, swig, boost-python, ctypes ... You can find several machine learning packages mentioned at http://web.media.mit.edu/~stefie10/technical/pythonml.html, I have no experience with any of them so I can't recommend any. HTH -- Miki

Re: my computer is allergic to pickles

2011-03-06 Thread Miki Tebeka
Or, which situations does shelve suit better and which does marshal suit better? shelve ease of use and the fact it uses the disk to store objects makes it a good choice if you have a lot of object, each with a unique string key (and a tuple of strings can be converted to and from a string).

Re: python data types in c++ code

2011-03-06 Thread Miki Tebeka
// howto get obj properties of different types (map, list, string, int, bool) ? Python's C API is very well documented. You can use http://docs.python.org/c-api/object.html?highlight=pyobject#PyObject_GetAttr to get attributes or

paypal payment cheap wholesale soccer jersey baseball jerseys basketball jerseys NFL NBA MLB NHL jersey

2011-03-06 Thread DG Shoes Paypal wholesaler
paypal payment cheap wholesale soccer jersey baseball jerseys basketball jerseys NFL NBA MLB NHL jersey free shipping AAA quality clothes cheap wholesale . NFL jersey wholesale NFL NBA MLB NHL soccer soccer jerseys nike brand,MLB jerseys china supplier MLB jerseys china wholesaler. wholesale MLB

PyWeek 12 (April 2011) is registration is open!

2011-03-06 Thread Richard Jones
The 12th Python Game Programming Challenge (PyWeek) is almost upon us. It'll run from the 3rd to the 10th of April. Registration for teams and individuals is now open on the website: http://pyweek.org/ The PyWeek challenge: - Invites entrants to write a game in one week from scratch either

Re: my computer is allergic to pickles

2011-03-06 Thread Bob Fnord
GSO gso...@yahoo.co.uk wrote: On 5 March 2011 02:14, MRAB pyt...@mrabarnett.plus.com wrote: ... Any comments, suggestions? You obviously can't feed your computer pickles then. How about a tasty tidbit of XML? Served up in a main dish of DOM, or serially if preferred? Well, right

Re: having both dynamic and static variables

2011-03-06 Thread Steven D'Aprano
On Sun, 06 Mar 2011 12:59:55 -0800, Westley Martínez wrote: I'm confused. Can someone tell me if we're talking about constant as in 'fixed in memory' or as in 'you can't reassign' or both? Python already has fixed in memory constants. They are immutable objects like strings, ints, floats,

Re: python data types in c++ code

2011-03-06 Thread Dan Stromberg
On Sun, Mar 6, 2011 at 10:07 AM, Arthur Mc Coy 1984docmc...@gmail.comwrote: You know, they are still using SVN, they are very loosely coupled to the past. Cython's very nice if you don't plan to do more than C/C++ with Python. SWIG might be better if you intend to do more VHLL's than Python

Re: questions about multiprocessing

2011-03-06 Thread Vincent Ren
I've got some new problems and I tried to search on Google but got no useful information. I want to download some images with multiprocessing.pool In my class named Renren, I defined two methods: def getPotrait(self, url): # get the current potraits of a friend on Renren.com

Re: What do I need to know in order to write a web application in python?

2011-03-06 Thread Grant Edwards
On 2011-03-05, ErichCart ErichCart erichc...@gmail.com wrote: Visual Python seems to be exactly what I want. But it doesn't seem very popular. Perhaps it means that there are not many people who will be able to help if I have problems with it. Also judging by the amount of ads at

Re: I'm happy with Python 2.5

2011-03-06 Thread alex23
On Feb 27, 11:57 pm, n00m n...@narod.ru wrote: http://www.spoj.pl/ There's your problem. I'd say most Python 3.x adopters are using it for something other than working out whose performance dick is the longest. -- http://mail.python.org/mailman/listinfo/python-list

Re: I'm happy with Python 2.5

2011-03-06 Thread Steven D'Aprano
On Sun, 06 Mar 2011 20:28:19 -0800, alex23 wrote: On Feb 27, 11:57 pm, n00m n...@narod.ru wrote: http://www.spoj.pl/ There's your problem. I'd say most Python 3.x adopters are using it for something other than working out whose performance dick is the longest. In fairness, the Python Dev

PAYPAL WHOLESALE all BRAND(UGG BOOTS, SHOES, CLOTHES, HANDBAG, WATCH, JEANS, JERSEY, T-SHIRT, SHIRTS, HOODY, EYEGLASS, CAP, SHAWL, WALLT) and so on http://www.24hours-online.com/.

2011-03-06 Thread amy
PAYPAL payment wholesale SHOES(UGG BOOTS, Timberland boots ,Munich shoes,NIKE,ADIDAS,LV,GUCCI,CHANEL,PRADA,POLO,DG,DIOR AND SO ON) http://www.24hours-online.com/ PAYPAL payment wholesale CLOTHING and jeans(Franklin Marshall,Moncler eiderdown,Nike,ADIDAS,AF,DG,ED

AW: import python module from C++ code

2011-03-06 Thread Markus Schaber
Hi, von Arthur Mc Coy: Still need the answer to the question: howto embed given python file (which contains python class and its members) into the c++ application ? There is no straight way of embedding a Python module into a c++ application. You will have to embed the python interpreter,

Re: Extending dict (dict's) to allow for multidimensional dictionary

2011-03-06 Thread Javier
Looks a good idea. I use this kind of recursive dicts to represent tree like datastruct in python. Like: car[ford][taurus][price]=... car[toyota][corolla][mpg]=... car[toyota][corolla][price]=... It would be good if it could be combined with class2dict (converting dict elemnets into

Re: I'm happy with Python 2.5

2011-03-06 Thread n00m
http://www.spoj.pl/forum/viewtopic.php?f=20t=8264 That's all what I meant to say in here. User numerix (German?) knows ropes of Python miles far better than e.g. me. -- http://mail.python.org/mailman/listinfo/python-list

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

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

[issue7689] Pickling of classes with a metaclass and copy_reg

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

[issue11400] Remove reference to pre 1.5 assignment behavior

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in f7e04a9566c4. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11400

[issue11337] Nothing refers to footnote [1] on page 6. Simple Statements in Language Reference

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in 949a099a87ca. The detection of unused footnotes would be a docutils thing, not a Sphinx thing. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11338] No list of Python hg repositories

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Does this need any more action? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11338 ___

[issue11392] Turtle - better explain 'chaos' demo

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Applied in e6d9a8e38cc8. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11392

[issue11405] Wrong reference to string module in tutorial/inputoutput.rst

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in 59e464a1bbf0. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11405

[issue11373] Fix 2 new typos in the docs

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed the built-in spelling in 13bc0511b3d3. I did not do the other change; having two-level relative clauses is not really readable. -- nosy: +georg.brandl resolution: - fixed status: open - closed

[issue11412] Section numbers in the Library Reference have a trailing period

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This looks fine to me -- isn't it a mere stylistic issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11412 ___

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-03-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11223 ___ ___ Python-bugs-list mailing

[issue11227] [DOC] asyncore - use 'Host' header in HTTP example

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in b630a135a86c. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11227

[issue11239] regexp-howto - add missing } to metachars

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in 3ec0a764ab5c. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11239

[issue11395] print(s) fails on Windows with long strings

2011-03-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I did some tests: os.write(1, b'X'*length) does always fail with length = 63842. It does sometimes fail with length 35000. The maximum looks completly random: as written in Microsoft documentation, The maximum size of the buffer

[issue11292] Curses - add A_REVERSE to attributes table

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in d9292abe80da. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11292

[issue11294] Locale - update uniform ERA_*_FMT doc

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in 6f861f98a3c5. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11294

[issue11239] regexp-howto - add missing } to metachars

2011-03-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Actually '}' is not a metachar, the metachars should be only |()[{.+*?^$\. re.match('^a+(}+)b+$', '}bbb') _sre.SRE_Match object at 0xb77aa860 re.match('^a+(}+)b+$', '}bbb').group(1) '}' -- nosy: +ezio.melotti

[issue11239] regexp-howto - add missing } to metachars

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Since ] was in the list, I've added } as well. (It's never a bad idea to quote ] and } unconditionally.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11239

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Why the cygwin changes? Are they related? Also, is the change in Python/getargs.c necessary? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11410

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review type: - feature request versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11410 ___

[issue11185] test_wait4 error on AIX

2011-03-06 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: If test_wait3 and test_fork1 pass, then yes, it's probably an issue with AIX's wait4. See http://fixunix.com/aix/84872-sigchld-recursion.html: Replace the wait4() call with a waitpid() call... like this: for(n=0;waitpid(-1,

[issue11413] Idle doesn't start

2011-03-06 Thread Chris
New submission from Chris ceonnbo...@yahoo.com: Hi, I just installed Python 3.1.1 via link in the book Python Programming for the absolute beginner third edition. But Idle won't start. When I try to open Idle the Windows hourglass just flash briefly but nothing happens after that. No error

[issue11411] Fix typo in Makefile

2011-03-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks fine, please commit. -- assignee: - twouters nosy: +pitrou stage: - commit review versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-06 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: Generator listdir() could be useful if I have a directory with several millions of files and I what to process just a hundred. -- nosy: +nvetoshkin ___ Python tracker

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2011-03-06 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: I think the patch isn't entirely correct. It uses PyIter_Check for detecting the case when an *iterable* raises TypeError, but that function actually checks for an *iterator*. The check on the tp_iter member mentioned by Amaury Forgeot

[issue5800] make wsgiref.headers.Headers accept empty constructor

2011-03-06 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: Here's the single-file patch against the revision. -- Added file: http://bugs.python.org/file21016/issue5800.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5800

[issue5800] make wsgiref.headers.Headers accept empty constructor

2011-03-06 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: Removed file: http://bugs.python.org/file19681/test_wsgiref.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5800 ___

[issue5800] make wsgiref.headers.Headers accept empty constructor

2011-03-06 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: Removed file: http://bugs.python.org/file19797/headers.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5800 ___

[issue5800] make wsgiref.headers.Headers accept empty constructor

2011-03-06 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: Removed file: http://bugs.python.org/file19804/wsgiref.rst.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5800 ___

[issue11387] Tkinter, callback functions

2011-03-06 Thread Nikolay Fomichev
Nikolay Fomichev morphsa...@gmail.com added the comment: Here it is... import sys if sys.version_info[0] == 3: import tkinter as tk from tkinter import messagebox from tkinter import filedialog else: import Tkinter as tk import tkMessageBox as messagebox import

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-03-06 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: Above-mentioned fix was commited in rev 62994662676a -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10924 ___

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-03-06 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: Above-mentioned fix was committed in 0586c699d467 and 62994662676a -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10924 ___

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-03-06 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: -- Removed message: http://bugs.python.org/msg130171 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10924 ___

[issue11387] Tkinter, callback functions

2011-03-06 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I have a different problem here on Mac, but I can manage to reproduce your issue if I apply the following patch: Index: Lib/tkinter/__init__.py === --- Lib/tkinter/__init__.py

[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2011-03-06 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Does the attached patch work for you ? -- keywords: +patch Added file: http://bugs.python.org/file21017/patch11290.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11290

[issue4350] Remove dead code from Tkinter.py

2011-03-06 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: If we consider the meaning of dead code as that used in compilers, then I meant out of date code. If you want to add support for tk::ButtonEnter then I believe you should open a new issue and raise your points there. Anyway, have you read

  1   2   >