[ANN] HtmlToWord 0.2.7

2013-03-23 Thread tom Tom
HtmlToWord 0.2.7 has been released and can be found here: https://pypi.python.org/pypi/HtmlToWord/ Whats new in 0.2? --- * Various bugfixes (Now handles weird markup better) * PEP8 cleanup * More tests What is HtmlToWord? ---

Re: how does the % work?

2013-03-23 Thread Rick Johnson
On Friday, March 22, 2013 11:29:48 PM UTC-5, Tim Roberts wrote: You are using Python 3. In Python 3, print is a function that returns None. So, the error is exactly correct. Wait a second... if he is in-fact using Python 3, then why did the call to a non-existent function named raw_input

Re: how does the % work?

2013-03-23 Thread Steven D'Aprano
On Fri, 22 Mar 2013 21:29:48 -0700, Tim Roberts wrote: leonardo selmi l.se...@icloud.com wrote: i wrote this example : name = raw_input(What is your name?) quest = raw_input(What is your quest?) color = raw_input(What is your favorite color?) print Ah, so your name is %s, your quest is %s,

Re: how does the % work?

2013-03-23 Thread Rick Johnson
On Saturday, March 23, 2013 2:38:23 AM UTC-5, Steven D'Aprano wrote: On Fri, 22 Mar 2013 21:29:48 -0700, Tim Roberts wrote: print('''Ah, so your name is %s, your quest is %s, and your favorite color is %s.''') % (name, quest, color) The difference between those two statements may not

Soappy: Fault SOAP-ENV:Client: session_lifetime_syntax_incorrect

2013-03-23 Thread Tamer Higazi
Hi people! I try to access the service of my provider through SOAP, with the credentials I received from my provider once before. Hier ist der 33 lines of code: from SOAPpy import WSDL from SOAPpy.Errors import HTTPError as SoapHTTPError from SOAPpy.Types import faultType import hashlib class

Re: monty python

2013-03-23 Thread jmfauth
On 20 mar, 22:02, Tim Delaney tim.dela...@aptare.com wrote: On 21 March 2013 06:40, jmfauth wxjmfa...@gmail.com wrote: [snip usual rant from jmf] It has been acknowledged as a real regression, but he keeps hijacking every thread where strings are mentioned to harp on about it. He

Re: monty python

2013-03-23 Thread jmfauth
On 21 mar, 04:12, rusi rustompm...@gmail.com wrote: On Mar 21, 12:40 am, jmfauth wxjmfa...@gmail.com wrote: Courageous people can try to do something with the unicode collation algorithm (see unicode.org). Some time ago, for the fun, I wrote something (not perfect) with a reduced

Re: monty python

2013-03-23 Thread Chris Angelico
On Sat, Mar 23, 2013 at 8:23 PM, jmfauth wxjmfa...@gmail.com wrote: One aspect of Unicode (note the capitalized U). [chomp yet another trivial microbenchmark] --- In French, depending of the word, a leading h, behaves as a vowel or as a consonant. (From this - this typical mistake) Huh?

Re: monty python

2013-03-23 Thread Chris Angelico
On Sat, Mar 23, 2013 at 8:45 PM, Chris Angelico ros...@gmail.com wrote: On Sat, Mar 23, 2013 at 8:23 PM, jmfauth wxjmfa...@gmail.com wrote: One aspect of Unicode (note the capitalized U). [chomp yet another trivial microbenchmark] --- In French, depending of the word, a leading h, behaves

Re: Communication between C++ server and Python app

2013-03-23 Thread premiumtelco
I normally wouldn’t be able to find such great content as this on other sites. You have done a great job with each unique point made on this topic. Thank you for your hard work. - premium rate numbers Click Here premiumtelco -- View this message in context:

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-23 Thread Colin J. Williams
On 22/03/2013 6:11 PM, Ethan Furman wrote: On 03/22/2013 02:57 PM, Colin J. Williams wrote: Below is an extract from some code to run on Python 2.7.3, 3.2.3 and 3.3.0 to compare speeds, both between versions and machines: if __name__ == '__main__': # Text string for initial test - Modify

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-23 Thread Peter Otten
Colin J. Williams wrote: No, the same program ran against each of the three versions. I assume that 3.3 behaves differently. Please show some cooperation -- post actual code that shows the behaviour. Cut and paste instead of paraphrasing. Make it as small as you can. In your case that

Re: LiClipse

2013-03-23 Thread Fabio Zadrozny
On Sat, Mar 23, 2013 at 12:38 AM, rusi rustompm...@gmail.com wrote: On Mar 23, 7:58 am, Fabio Zadrozny fabi...@gmail.com wrote: Hello there, As I've proposed it, let me try to explain it a bit better (if you have doubts, I should probably rephrase the proposal). There are 2 main

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-23 Thread Colin J. Williams
On 22/03/2013 6:11 PM, Ethan Furman wrote: On 03/22/2013 02:57 PM, Colin J. Williams wrote: Below is an extract from some code to run on Python 2.7.3, 3.2.3 and 3.3.0 to compare speeds, both between versions and machines: if __name__ == '__main__': # Text string for initial test - Modify

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-23 Thread Chris Angelico
On Sat, Mar 23, 2013 at 11:27 PM, Colin J. Williams c...@ncf.ca wrote: It seems that a change was made in the program between the 3.3 run and the other runs. Each produces the same heading now. Yep, this is why the simple testcase is so valuable :) Check out http://sscce.org/ (which Steven

Re: SOAPpy.Types.faultType: Cannot use object of type stdClass as array

2013-03-23 Thread Tamer Higazi
Hi Chris! thanks But I am about of going nuts I did everything according their sample: http://kasapi.kasserver.com/dokumentation/?open=soap and wanted to accomplish it in python! If I pass a dict, I get the error telling me, this nonsense. What should I do?! I even tried it in

Re: SOAPpy.Types.faultType: Cannot use object of type stdClass as array

2013-03-23 Thread Dave Angel
On 03/23/2013 09:33 AM, Tamer Higazi wrote: Hi Chris! thanks But I am about of going nuts I did everything according their sample: http://kasapi.kasserver.com/dokumentation/?open=soap and wanted to accomplish it in python! Isn't there an API on Python SOAPpy published somewhere?

how to install indico software?

2013-03-23 Thread Avnesh Shakya
please tell me someone, how to install indico software? I have link-- http://indico-software.org/wiki/Admin/Installation0.98 but i have problem, i have no sites-available folder inside apache, i m using window 7, please help me.. Thanks in advance --

Re: how to install indico software?

2013-03-23 Thread Mark Lawrence
On 23/03/2013 14:15, Avnesh Shakya wrote: please tell me someone, how to install indico software? I have link-- http://indico-software.org/wiki/Admin/Installation0.98 but i have problem, i have no sites-available folder inside apache, i m using window 7, please help me.. Thanks in advance

Re: how to install indico software?

2013-03-23 Thread Dave Angel
On 03/23/2013 10:38 AM, Mark Lawrence wrote: On 23/03/2013 14:15, Avnesh Shakya wrote: please tell me someone, how to install indico software? I have link-- http://indico-software.org/wiki/Admin/Installation0.98 http://indico-software.org/wiki/Releases/Indico0.99 is the link pointed to by:

Re: SOAPpy.Types.faultType: Cannot use object of type stdClass as array

2013-03-23 Thread Chris Angelico
On Sun, Mar 24, 2013 at 12:33 AM, Tamer Higazi th9...@googlemail.com wrote: Hi Chris! thanks But I am about of going nuts I did everything according their sample: http://kasapi.kasserver.com/dokumentation/?open=soap Since I'm not fluent in German, I'm relying on Google Translate to

Re: LiClipse

2013-03-23 Thread Wanderer
On Saturday, March 23, 2013 7:11:10 AM UTC-4, Fabio Zadrozny wrote: On Sat, Mar 23, 2013 at 12:38 AM, rusi rusto...@gmail.com wrote: On Mar 23, 7:58 am, Fabio Zadrozny fabi...@gmail.com wrote: Hello there, As I've proposed it, let me try to explain it a bit better (if you

[no subject]

2013-03-23 Thread Yann Manuel
Dear Mr/Mrs, I'm reading this book called dive into python 3, and the author does not describe everything, but he gives a link to a blog: (http://adam.gomaa.us/blog/2008/aug/11/t ... y-builtin/). The blog is gone and i cant find it. Does anyone knows where i can find the information of this

Re:

2013-03-23 Thread Chris Angelico
On Sun, Mar 24, 2013 at 2:22 AM, Yann Manuel yaniman...@hotmail.nl wrote: Dear Mr/Mrs, I'm reading this book called dive into python 3, and the author does not describe everything, but he gives a link to a blog: (http://adam.gomaa.us/blog/2008/aug/11/t ... y-builtin/). The blog is gone and

Re: LiClipse

2013-03-23 Thread Fabio Zadrozny
On Sat, Mar 23, 2013 at 12:07 PM, Wanderer wande...@dialup4less.com wrote: On Saturday, March 23, 2013 7:11:10 AM UTC-4, Fabio Zadrozny wrote: On Sat, Mar 23, 2013 at 12:38 AM, rusi rusto...@gmail.com wrote: On Mar 23, 7:58 am, Fabio Zadrozny fabi...@gmail.com wrote: Hello

Re: how does the % work?

2013-03-23 Thread Michael Torrie
On 03/23/2013 01:38 AM, Steven D'Aprano wrote: Just to add confusion, the two lines are exactly the same in Python 2, where Print is not a function! Perhaps this is a good reason use the slightly more complicated but easier to get right format method. print ({0}, {1}, {2}.format(1,2,3)) And

Required arguments in argparse: at least one of a group

2013-03-23 Thread Marco
Is there the possibility using the argparse module to group two or more arguments in order to have at least one of them required? For instance, I would like to have not an error only in the following cases: python finder.py --file myfile --dir mydir python finder.py --pattern mypattern

Re: monty python

2013-03-23 Thread Mark Lawrence
On 23/03/2013 09:23, jmfauth wrote: On 21 mar, 04:12, rusi rustompm...@gmail.com wrote: On Mar 21, 12:40 am, jmfauth wxjmfa...@gmail.com wrote: Courageous people can try to do something with the unicode collation algorithm (see unicode.org). Some time ago, for the fun, I wrote

Welcome PythonScript: Python to Javascript translator in 350 lines of Python

2013-03-23 Thread Amirouche Boubekki
Héllo, I'm happy to announce the immediate avaibility of PythonScript a Python - Javascript translator written in Python. So far it works... Break it online @ http://apppyjs.appspot.com How it works ? Similarly to PyPy, it use a restricted version of Python called PythonJS. Along side this

Re: monty python

2013-03-23 Thread Mark Lawrence
On 23/03/2013 09:24, jmfauth wrote: On 20 mar, 22:02, Tim Delaney tim.dela...@aptare.com wrote: On 21 March 2013 06:40, jmfauth wxjmfa...@gmail.com wrote: [snip usual rant from jmf] It has been acknowledged as a real regression, but he keeps hijacking every thread where strings

Re: Required arguments in argparse: at least one of a group

2013-03-23 Thread Rob Day
I don't know about argparse, but if you use docopt (http://docopt.org/) then this is easy to do with something like: Usage: finder.py --file myfile --dir mydir finder.py --pattern mypattern --dir mydir finder.py --file myfile --pattern mypattern --dir mydir On 23 March 2013 16:04, Marco

Re: how does the % work?

2013-03-23 Thread leonardo
thank you all! Il 23/03/2013 8.38, Steven D'Aprano ha scritto: On Fri, 22 Mar 2013 21:29:48 -0700, Tim Roberts wrote: leonardo selmi l.se...@icloud.com wrote: i wrote this example : name = raw_input(What is your name?) quest = raw_input(What is your quest?) color = raw_input(What is your

Re: LiClipse

2013-03-23 Thread rusi
On Mar 23, 4:11 pm, Fabio Zadrozny fabi...@gmail.com wrote: On Sat, Mar 23, 2013 at 12:38 AM, rusi rustompm...@gmail.com wrote: ie Eclipse-4 claims to have made plugin development (for new custom languages) easier. What is the relation of liclipse to eclipse 3-4 plugin architecture?

Re: LiClipse

2013-03-23 Thread Fabio Zadrozny
On Sat, Mar 23, 2013 at 2:27 PM, rusi rustompm...@gmail.com wrote: On Mar 23, 4:11 pm, Fabio Zadrozny fabi...@gmail.com wrote: On Sat, Mar 23, 2013 at 12:38 AM, rusi rustompm...@gmail.com wrote: ie Eclipse-4 claims to have made plugin development (for new custom languages) easier.

Re:

2013-03-23 Thread Joel Goldstick
On Sat, Mar 23, 2013 at 11:33 AM, Chris Angelico ros...@gmail.com wrote: On Sun, Mar 24, 2013 at 2:22 AM, Yann Manuel yaniman...@hotmail.nl wrote: Dear Mr/Mrs, I'm reading this book called dive into python 3, and the author does not describe everything, but he gives a link to a blog:

Re: SOAPpy.Types.faultType: Cannot use object of type stdClass as array

2013-03-23 Thread Tamer Higazi
Chris! I did what you said before in several ways. The last way was putting the user and password directly into the dict as parameter ALWAYS ends up telling me, that I cannot use object of standard type class as ARRAY I did it this time with suds. So packaging issue is now out of scope, and

Re: SOAPpy.Types.faultType: Cannot use object of type stdClass as array

2013-03-23 Thread Chris Angelico
On Sun, Mar 24, 2013 at 6:38 AM, Tamer Higazi th9...@googlemail.com wrote: Chris! I did what you said before in several ways. The last way was putting the user and password directly into the dict as parameter ALWAYS ends up telling me, that I cannot use object of standard type class as

Re: how does the % work?

2013-03-23 Thread Steven D'Aprano
On Sat, 23 Mar 2013 09:57:48 -0600, Michael Torrie wrote: On 03/23/2013 01:38 AM, Steven D'Aprano wrote: Just to add confusion, the two lines are exactly the same in Python 2, where Print is not a function! Perhaps this is a good reason use the slightly more complicated but easier to get

addressof object with id()

2013-03-23 Thread Fabian von Romberg
Hi, I have a single questions regarding id() built-in function. example 1: var1 = some string var2 = some string if use the id() function on both, it returns exactly the same address. example 2: data = some string var1 = data var2 = data if use the id() function on var1 and var2, it

Re: addressof object with id()

2013-03-23 Thread Dave Angel
On 03/23/2013 08:37 PM, Fabian von Romberg wrote: Hi, I have a single questions regarding id() built-in function. example 1: var1 = some string var2 = some string if use the id() function on both, it returns exactly the same address. example 2: data = some string var1 = data var2 = data

Re: addressof object with id()

2013-03-23 Thread Chris Angelico
On Sun, Mar 24, 2013 at 11:49 AM, Dave Angel da...@davea.name wrote: You can assume that if the id's are equal, the objects are equal. But you can't assume the inverse or the converse. To be more specific: If the ids are equal, the objects are identical. Doesn't mean they'll compare equal -

Re: addressof object with id()

2013-03-23 Thread Roy Smith
In article mailman.3657.1364085583.2939.python-l...@python.org, Fabian von Romberg fromberg...@hotmail.com wrote: Hi, I have a single questions regarding id() built-in function. example 1: var1 = some string var2 = some string if use the id() function on both, it returns exactly

Re: addressof object with id()

2013-03-23 Thread Roy Smith
In article mailman.3659.1364086613.2939.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Sun, Mar 24, 2013 at 11:49 AM, Dave Angel da...@davea.name wrote: You can assume that if the id's are equal, the objects are equal. But you can't assume the inverse or the converse.

Re: addressof object with id()

2013-03-23 Thread Chris Angelico
On Sun, Mar 24, 2013 at 12:00 PM, Roy Smith r...@panix.com wrote: I had thought interning only affected string literals, but apparently it works for all strings! This works too: a = b + ar b = ba + r id(a) 3810152 id(b) 3810152 but, again, none of this is guaranteed. No, what that

Re: addressof object with id()

2013-03-23 Thread Steven D'Aprano
On Sat, 23 Mar 2013 19:37:35 -0500, Fabian von Romberg wrote: Hi, I have a single questions regarding id() built-in function. example 1: var1 = some string var2 = some string if use the id() function on both, it returns exactly the same address. The id() function does not return an

Re: addressof object with id()

2013-03-23 Thread Steven D'Aprano
On Sat, 23 Mar 2013 21:00:07 -0400, Roy Smith wrote: In article mailman.3657.1364085583.2939.python-l...@python.org, Fabian von Romberg fromberg...@hotmail.com wrote: Hi, I have a single questions regarding id() built-in function. example 1: var1 = some string var2 = some string

Re: addressof object with id()

2013-03-23 Thread Steven D'Aprano
On Sun, 24 Mar 2013 11:56:50 +1100, Chris Angelico wrote: On Sun, Mar 24, 2013 at 11:49 AM, Dave Angel da...@davea.name wrote: You can assume that if the id's are equal, the objects are equal. But you can't assume the inverse or the converse. To be more specific: If the ids are equal, the

Re: addressof object with id()

2013-03-23 Thread Roy Smith
In article 514e5e71$0$30001$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: As far as I know, there is no Python implementation that automatically interns strings which are not valid identifiers. some string is not a valid identifier, due to

Re: addressof object with id()

2013-03-23 Thread Roy Smith
In article 514e5f1f$0$30001$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Those who don't do serious floating point work hate NANs This kind of thing doesn't just come up in floating point work. SQL folks have much the same issue with NULL.

Re: addressof object with id()

2013-03-23 Thread Chris Angelico
On Sun, Mar 24, 2013 at 1:19 PM, Roy Smith r...@panix.com wrote: In article 514e5f1f$0$30001$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Those who don't do serious floating point work hate NANs This kind of thing doesn't just come up in

Re: addressof object with id()

2013-03-23 Thread rusi
On Mar 24, 8:33 am, Chris Angelico ros...@gmail.com wrote: On Sun, Mar 24, 2013 at 1:19 PM, Roy Smith r...@panix.com wrote: In article 514e5f1f$0$30001$c3e8da3$54964...@news.astraweb.com,  Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Those who don't do serious floating point

Separate Rows in reader

2013-03-23 Thread Jiewei Huang
Hi all, Currently create a simple text-based database of information about people I have a csv file which consist of 3 rows , row 1 2 and 3 is as such: Name AddressTelephone Birthday John Konon Ministry of Moon Walks 4567882 27-Feb Stacy Kisha Ministry of Man

Re: Separate Rows in reader

2013-03-23 Thread Dave Angel
On 03/24/2013 01:20 AM, Jiewei Huang wrote: Hi all, Currently create a simple text-based database of information about people I have a csv file which consist of 3 rows , row 1 2 and 3 is as such: Name AddressTelephone Birthday John Konon Ministry of Moon Walks 4567882

[issue17505] email.header.Header.__unicode__ does not decode header

2013-03-23 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: Thanks for pointing out the make_header(decode_header(...)) idiom, which I was indeed not aware of. It solves the problem perfectly. I agree that it is a doc bug. While make_header is documented on the same place as decode_header and Header itself, it is not

[issue17522] Add api PyGILState_Check

2013-03-23 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Sure, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17522 ___ ___ Python-bugs-list mailing

[issue17525] os.getcwd() fails on cifs share

2013-03-23 Thread Charles-François Natali
Charles-François Natali added the comment: os.getcwd() just calls the libc getcwd(3), so Python's not the problem here. it's likely an issue with the CIFS implementation (I guess you're using fuse?). Could you post the output of: $ strace python -c import os; os.getcwd()) upon failure? Even

[issue17527] PATCH as valid request method in wsgiref.validator

2013-03-23 Thread Luca Sbardella
New submission from Luca Sbardella: http://tools.ietf.org/html/rfc5789 -- components: Library (Lib) files: validate.patch keywords: patch messages: 185031 nosy: lsbardel priority: normal severity: normal status: open title: PATCH as valid request method in wsgiref.validator type:

[issue17527] PATCH as valid request method in wsgiref.validator

2013-03-23 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- nosy: +pje ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17527 ___ ___ Python-bugs-list

[issue17522] Add api PyGILState_Check

2013-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: A small detail: you should add a versionadded tag in the function doc. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17522 ___

[issue17522] Add api PyGILState_Check

2013-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e92d1567ad7 by Kristján Valur Jónsson in branch 'default': Issue #17522: Add the PyGILState_Check() API. http://hg.python.org/cpython/rev/2e92d1567ad7 -- nosy: +python-dev ___ Python tracker

[issue17522] Add api PyGILState_Check

2013-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 772d57aac162 by Kristján Valur Jónsson in branch 'default': Issue #17522: Minor documentation fix http://hg.python.org/cpython/rev/772d57aac162 -- ___ Python tracker rep...@bugs.python.org

[issue17522] Add api PyGILState_Check

2013-03-23 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Thanks, Antoine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17522 ___ ___ Python-bugs-list mailing

[issue17528] Implement dumps/loads for lru_cache

2013-03-23 Thread Francesco Frassinelli
New submission from Francesco Frassinelli: Hi, I propose to change the public API of functools.lru_cache in order to make the cache persistent when the program is restarted. It could be implemented using two different functions (dumps/loads), where the cached is exported into a classical

[issue17508] logging.config.ConvertingDict issue with MemoryHandler

2013-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f6747a0ffc4 by Vinay Sajip in branch '2.7': Updated Misc/NEWS with #17508. http://hg.python.org/cpython/rev/5f6747a0ffc4 New changeset 5f7185cae787 by Vinay Sajip in branch '3.2': Updated Misc/NEWS with #17508.

[issue17521] fileConfig() disables any previously-used named loggers, even when getLogger() is called again.

2013-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 533b4a1d2b23 by Vinay Sajip in branch '2.7': Issue #17521: Corrected non-enabling of logger following two calls to fileConfig(). http://hg.python.org/cpython/rev/533b4a1d2b23 New changeset 49d54e4d95df by Vinay Sajip in branch '3.2': Issue #17521:

[issue4969] mimetypes on Windows should read MIME database from registry (w/patch)

2013-03-23 Thread Frank Hamand
Frank Hamand added the comment: From msg172531 in issue10551: You see, MIME\Database\Content Type in the Windows registry is a mime type - file extension mapping, *not the other way around*. But read_windows_registry() tries to use it as a file extension - mime type mapping, and bad things

[issue17529] fix os.senfile() documentation regarding the type of file descriptor

2013-03-23 Thread Charles-François Natali
New submission from Charles-François Natali: os.sendfile() documentation states: On Solaris, out may be the file descriptor of a regular file or the file descriptor of a socket. On all other platforms, out must be the file descriptor of an open socket. This isn't true for Linux anymore

[issue17528] Implement dumps/loads for lru_cache

2013-03-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Library (Lib) nosy: +anacrolix, ezio.melotti, rhettinger versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17528

[issue504219] locale.resetlocale is broken

2013-03-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Adding support for locales that are not recognized is easy and the locale parser could also learn about formats that it doesn't yet understand, so patches are welcome. The main problem here is that setlocale() only understands a very limited set of

[issue17529] fix os.sendfile() documentation regarding the type of file descriptor

2013-03-23 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: -- title: fix os.senfile() documentation regarding the type of file descriptor - fix os.sendfile() documentation regarding the type of file descriptor ___ Python tracker rep...@bugs.python.org

[issue17438] json.load docs should mention that it always return unicode

2013-03-23 Thread Ezio Melotti
Ezio Melotti added the comment: It's documented in the table at http://docs.python.org/2/library/json.html#json.JSONDecoder, but indeed a link to the table should be added in the docs of load/loads (and similarly to the dump/dumps docs too). -- keywords: +easy nosy: +ezio.melotti

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-03-23 Thread Takayuki SHIMIZUKAWA
Takayuki SHIMIZUKAWA added the comment: Hi Steve, This becomes more of an issue since VC++ 2008 Express is no longer available for download (unless you're an MSDN subscriber) Here: http://www.microsoft.com/en-us/download/details.aspx?id=13276 --

[issue16204] PyBuffer_FillInfo returns 'B' buffer, whose behavior has changed w.r.t. 3.1/3.2

2013-03-23 Thread STINNER Victor
STINNER Victor added the comment: @skrah: ping! @piro: can't you modify psycopg2 to add conditional code depending on the Python version? IMO the behaviour change is wanted. http://www.python.org/dev/peps/pep-3118/ -- nosy: +haypo ___ Python

[issue17529] fix os.sendfile() documentation regarding the type of file descriptor

2013-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sounds good to me. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17529 ___ ___ Python-bugs-list

[issue16204] PyBuffer_FillInfo returns 'B' buffer, whose behavior has changed w.r.t. 3.1/3.2

2013-03-23 Thread Stefan Krah
Stefan Krah added the comment: I've corresponded privately with Daniele Varrazzo about the psycopg2 issue already and then forgot about this (the psycopg2 fix is good). Yes, the change was intentional. There's one open issue (#15944) where dabeaz isn't happy about the change, so let's make that

[issue17489] random.Random implements __getstate__() and __reduce__()

2013-03-23 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17489 ___

[issue17100] rotating an ordereddict

2013-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: For the time being, I want to keep the OrderedDict API simple and avoid feature creep into rotation logic. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue17441] Do not cache re.compile

2013-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think we could happily call such code buggy or at least suboptimal. The docs don't even mention that re.compile() actually uses a cache. -- ___ Python tracker rep...@bugs.python.org

[issue17430] missed peephole optimization

2013-03-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti versions: +Python 3.4 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17430 ___

[issue17447] str.identifier shouldn't accept Python keywords

2013-03-23 Thread Ezio Melotti
Ezio Melotti added the comment: IMHO str.isidentifier() should not return False for Python keywords, since it's often used in contexts where Python keywords would otherwise be valid. A keyword arg to exclude keywords could be added though, assuming there are enough use cases. --

[issue17449] dev guide appears not to cover the benchmarking suite

2013-03-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17449 ___

[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-03-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, michael.foord stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17457 ___

[issue17488] subprocess.Popen bufsize=0 parameter behaves differently in Python 3 than in 2

2013-03-23 Thread Georg Brandl
Georg Brandl added the comment: Considering that this behavior has been present in all of Python 3, it does not seem useful to make a backwards incompatible change in bugfix releases. You could change it in 3.4 as a minor API change, but you've indicated that that wouldn't make sense to you.

[issue17479] Fix test discovery for test_io.py

2013-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset fa9e189e30ad by Ezio Melotti in branch '3.3': #17479: test_io now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/fa9e189e30ad New changeset 99a81681237d by Ezio Melotti in branch 'default': #17479:

[issue17479] Fix test discovery for test_io.py

2013-03-23 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: - ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17479

[issue17239] XML vulnerabilities in Python

2013-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Not blocking 2.7.4 as discussed on mailing list. -- priority: release blocker - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17239 ___

[issue16039] imaplib: unlimited readline() from connection

2013-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Not blocking 2.7.4 as discussed on mailing list. -- priority: release blocker - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16039 ___

[issue16037] httplib: header parsing is not delimited

2013-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Not blocking 2.7.4 as discussed on mailing list. -- priority: release blocker - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16037 ___

[issue16041] poplib: unlimited readline() from connection

2013-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Not blocking 2.7.4 as discussed on mailing list. -- priority: release blocker - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___

[issue17180] shutil copy* unsafe on POSIX - they preserve setuid/setgit bits

2013-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Not blocking 2.7.4 as discussed on mailing list. -- priority: release blocker - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17180 ___

[issue16042] smtplib: unlimited readline() from connection

2013-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Not blocking 2.7.4 as discussed on mailing list. -- priority: release blocker - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16042 ___

[issue16040] nntplib: unlimited readline() from connection

2013-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Not blocking 2.7.4 as discussed on mailing list. -- priority: release blocker - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16040 ___

[issue16038] ftplib: unlimited readline() from connection

2013-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Not blocking 2.7.4 as discussed on mailing list. -- priority: release blocker - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Not blocking 2.7.4 as discussed on mailing list. -- priority: release blocker - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16043 ___

[issue17425] Update OpenSSL versions in Windows builds

2013-03-23 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17425 ___ ___

[issue17510] assertEquals deprecated in test_program.py (unittest)

2013-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd7f99e662b7 by Ezio Melotti in branch 'default': #17510: avoid using deprecated assertEquals method in test_program. Patch by Daniel Black. http://hg.python.org/cpython/rev/fd7f99e662b7 -- nosy: +python-dev

[issue17512] backport of the _sysconfigdata.py module (issue 13150) breaks the build on darwin

2013-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Can landed corrected in 2.7.5. -- priority: release blocker - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17512 ___

[issue17510] assertEquals deprecated in test_program.py (unittest)

2013-03-23 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed versions: -Python 3.5 ___ Python tracker

[issue17447] str.identifier shouldn't accept Python keywords

2013-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset a7fe48dfbfe9 by Raymond Hettinger in branch '3.3': Issue 17447: Clarify that str.isidentifier doesn't check for reserved keywords. http://hg.python.org/cpython/rev/a7fe48dfbfe9 -- nosy: +python-dev ___

[issue17447] str.identifier shouldn't accept Python keywords

2013-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've added a clarification to the docs. Closing this report as invalid. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17447

  1   2   >