Re: Communication between C++ server and Python app

2012-04-29 Thread Cameron Simpson
On 29Apr2012 11:42, Chris Angelico ros...@gmail.com wrote: | On Sun, Apr 29, 2012 at 10:45 AM, kenk marcin.maksym...@googlemail.com wrote: | I've got a server process written in C++ running on Unix machine. | On the same box I'd like to run multiple Python scripts that will | communicate with

Re: Learn Technical Writing from Unix Man in 10 Days

2012-04-29 Thread Cameron Simpson
On 29Apr2012 02:49, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: | On Sat, 28 Apr 2012 14:55:42 -0700, Xah Lee wrote: | Learn Technical Writing from Unix Man in 10 Days | | Quote from man apt-get: | | remove | remove is identical to install except that packages

Re: confusing doc: mutable and hashable

2012-04-29 Thread Arnaud Delobelle
(sent from my phone) On Apr 28, 2012 7:36 PM, Chris Rebert c...@rebertia.com wrote: Correct. Pedantically, you can define __hash__() on mutable objects; it's just not very useful or sensible, so people generally don't. I find it's fine to define __hash__ on mutable objects as long as __eq__

Re: Learn Technical Writing from Unix Man in 10 Days

2012-04-29 Thread John O'Hagan
On Sat, 28 Apr 2012 14:55:42 -0700 (PDT) Xah Lee xah...@gmail.com wrote: Learn Technical Writing from Unix Man in 10 Days Quote from man apt-get: remove remove is identical to install except that packages are removed instead of installed. Translation:

Re: confusing doc: mutable and hashable

2012-04-29 Thread John O'Hagan
On Sat, 28 Apr 2012 11:35:12 -0700 Chris Rebert c...@rebertia.com wrote: [...] Correct. Pedantically, you can define __hash__() on mutable objects; it's just not very useful or sensible, so people generally don't. As http://docs.python.org/reference/datamodel.html#object.__hash__ states

algorithm does python use to compare two strings

2012-04-29 Thread J. Mwebaze
I am just wondering which specific algorithm does python use to compare two strings. Could it be the Longest common subsequence is the most u Regards -- *Mob UG: +256 (0) 70 1735800 | NL +31 (0) 6 852 841 38 | Gtalk: jmwebaze | skype: mwebazej | URL: www.astro.rug.nl/~jmwebaze /* Life runs

Re: Learn Technical Writing from Unix Man in 10 Days

2012-04-29 Thread Alan Mackenzie
Hello, Xah. In comp.emacs Xah Lee xah...@gmail.com wrote: Learn Technical Writing from Unix Man in 10 Days Quote from man apt-get: remove remove is identical to install except that packages are removed instead of installed. Translation: kicking kicking is

Minor issue with sqlite3 and datetime

2012-04-29 Thread Frank Millman
Hi all I could not find a mailing list for sqlite3 - hope it is ok to post here. My problem actually originates with a different problem relating to MS Sql Server. Python's datetime.datetime object uses a precision of microseconds. Sql Server's DATETIME type only uses a precision of

Re: algorithm does python use to compare two strings

2012-04-29 Thread Terry Reedy
On 4/29/2012 3:59 AM, J. Mwebaze wrote: I am just wondering which specific algorithm does python use to compare two strings. 'Python' does not use algorithms, implementations do. CPython may check id and or hash before doing a character-by-char comparison (or perhaps multiple chars at a

Re: confusing doc: mutable and hashable

2012-04-29 Thread Terry Reedy
On 4/29/2012 3:57 AM, John O'Hagan wrote: How do function objects fit into this scheme? They have __hash__, __eq__, seem to work as dict keys and are mutable. Is it because their hash value doesn't change? I suspect functions use the default equality and hash based on id, which does not

Re: Communication between C++ server and Python app

2012-04-29 Thread Tamer Higazi
Take the twisted library. I used to write myself a socket server and client. Socket is fast, but you need on the other hand to know how big the dataset might be, that will be serialized and deserialized as well. Tamer Am 29.04.2012 08:24, schrieb Cameron Simpson: On 29Apr2012 11:42, Chris

Re: Communication between C++ server and Python app

2012-04-29 Thread Chris Angelico
On Sun, Apr 29, 2012 at 4:24 PM, Cameron Simpson c...@zip.com.au wrote: On 29Apr2012 11:42, Chris Angelico ros...@gmail.com wrote: | Personally, I would recommend a TCP socket, because that allows the | flexibility of splitting across multiple computers. And the pain of ensuring security, if

Re: why () is () and [] is [] work in other way?

2012-04-29 Thread Kiuhnm
On 4/28/2012 16:18, Adam Skutt wrote: On Apr 28, 7:26 am, Kiuhnmkiuhnm03.4t.yahoo.it wrote: On 4/27/2012 19:15, Adam Skutt wrote: On Apr 27, 11:01 am, Kiuhnmkiuhnm03.4t.yahoo.itwrote: The abstraction is this: - There are primitives and objects. - Primitives are not objects. The converse

Re: Learn Technical Writing from Unix Man in 10 Days

2012-04-29 Thread Kiuhnm
On 4/28/2012 23:55, Xah Lee wrote: Learn Technical Writing from Unix Man in 10 Days Quote from man apt-get: remove remove is identical to install except that packages are removed instead of installed. Translation: kicking kicking is identical to kissing

Help with how to combine two csv files

2012-04-29 Thread Sammy Danso
Hello Experts, I am new to python and I have been trying to merge two csv files, and upon several hours of unsuccessful attempts, I have decided to seek for help.   the format of the file is as follows. file A has  columns a, b, c and values 1,2,3 for several rows. File B also has columns

Re: Help with how to combine two csv files

2012-04-29 Thread Chris Angelico
On Mon, Apr 30, 2012 at 1:49 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:        What do you want done if one file has fewer records than the other? The OP did state that the files had the same number of rows. I'd say this issue is outside the scope of the question. ChrisA --

Re: syntax for code blocks

2012-04-29 Thread Peter Pearson
On Fri, 27 Apr 2012 13:24:35 +0200, Kiuhnm kiuhnm03.4t.yahoo.it wrote: I'd like to change the syntax of my module 'codeblocks' to make it more pythonic. Current Syntax: with res func(arg1) 'x, y': print(x, y) with res func(arg1) block_name 'x, y':

Re: syntax for code blocks

2012-04-29 Thread Temia Eszteri
Current Syntax: with res func(arg1) 'x, y': print(x, y) with res func(arg1) block_name 'x, y': print(x, y) New Syntax: with res == func(arg1) .taking_block (x, y): print(x, y) with res == func(arg1) .taking_block (x, y) as

Re: algorithm does python use to compare two strings

2012-04-29 Thread Terry Reedy
On 4/29/2012 6:05 AM, Terry Reedy wrote: On 4/29/2012 3:59 AM, J. Mwebaze wrote: I am just wondering which specific algorithm does python use to compare two strings. 'Python' does not use algorithms, implementations do. CPython may check id and or hash before doing a character-by-char

Re: Python interface of Stanford Parser

2012-04-29 Thread ac27037
Dear Stefan, Because I am a very new beginner of python, even I don't know how to install the package. I just copied the whole directory to the Lib dictionary. I need steps to follow. Could you please help me? My system is Windows xp, thank you! Sincerely, Vinco -- View this message in

convert integer to string

2012-04-29 Thread Andres Soto
I have already import string from string import * but I can not still convert an integer to string str(42) Traceback (most recent call last):   File pyshell#20, line 1, in module     str(42) TypeError: 'module' object is not callable   What is it wrong? Thank you   Prof. Dr. Andrés Soto DES

Re: algorithm does python use to compare two strings

2012-04-29 Thread Robert Kern
On 4/29/12 5:34 PM, Terry Reedy wrote: On 4/29/2012 6:05 AM, Terry Reedy wrote: On 4/29/2012 3:59 AM, J. Mwebaze wrote: I am just wondering which specific algorithm does python use to compare two strings. 'Python' does not use algorithms, implementations do. CPython may check id and or hash

Re: CPython thread starvation

2012-04-29 Thread John Nagle
On 4/28/2012 1:04 PM, Paul Rubin wrote: Roy Smithr...@panix.com writes: I agree that application-level name cacheing is wrong, but sometimes doing it the wrong way just makes sense. I could whip up a simple cacheing wrapper around getaddrinfo() in 5 minutes. Depending on the environment

Re: convert integer to string

2012-04-29 Thread MRAB
On 29/04/2012 18:18, Andres Soto wrote: I have already import string from string import * but I can not still convert an integer to string str(42) Traceback (most recent call last): File pyshell#20, line 1, in module str(42) TypeError: 'module' object is not callable What is it wrong?

Re: convert integer to string

2012-04-29 Thread Chris Rebert
On Sun, Apr 29, 2012 at 10:18 AM, Andres Soto soto_and...@yahoo.com wrote: I have already import string from string import * but I can not still convert an integer to string There is no need to import the `string` module to do that. Most of the `string` module is deprecated. `str` is the

Re: CPython thread starvation

2012-04-29 Thread Roy Smith
In article 7xipgj8vxh@ruckus.brouhaha.com, Paul Rubin no.email@nospam.invalid wrote: Roy Smith r...@panix.com writes: I agree that application-level name cacheing is wrong, but sometimes doing it the wrong way just makes sense. I could whip up a simple cacheing wrapper around

Re: Communication between C++ server and Python app

2012-04-29 Thread Marcin Maksymiuk
Failr point - I should do that in original question. The C++ server runs on Unix (Mac OS X as a matter of fact) and, as I'm the one who develops it, can use whthever technology is suitable. Currently it uses STL, Boost and Qt libraries. The server is responsible for providing connectivity to

Re: why () is () and [] is [] work in other way?

2012-04-29 Thread John Nagle
On 4/28/2012 4:47 AM, Kiuhnm wrote: On 4/27/2012 17:39, Adam Skutt wrote: On Apr 27, 8:07 am, Kiuhnmkiuhnm03.4t.yahoo.it wrote: Useful... maybe, conceptually sound... no. Conceptually, NaN is the class of all elements which are not numbers, therefore NaN = NaN. NaN isn't really the class of

numpy (matrix solver) - python vs. matlab

2012-04-29 Thread someone
Hi, Notice cross-post, I hope you bear over with me for doing that (and I imagine that some of you also like python in the matlab-group like myself)... -- Python vs. Matlab: -- Python: from numpy import

Re: numpy (matrix solver) - python vs. matlab

2012-04-29 Thread Kiuhnm
On 4/30/2012 0:17, someone wrote: Hi, Notice cross-post, I hope you bear over with me for doing that (and I imagine that some of you also like python in the matlab-group like myself)... -- Python vs. Matlab: --

Re: Communication between C++ server and Python app

2012-04-29 Thread Cameron Simpson
On 29Apr2012 21:08, Chris Angelico ros...@gmail.com wrote: | On Sun, Apr 29, 2012 at 4:24 PM, Cameron Simpson c...@zip.com.au wrote: | On 29Apr2012 11:42, Chris Angelico ros...@gmail.com wrote: | | Personally, I would recommend a TCP socket, because that allows the | | flexibility of splitting

Re: numpy (matrix solver) - python vs. matlab

2012-04-29 Thread someone
On 04/30/2012 12:39 AM, Kiuhnm wrote: So Matlab at least warns about Matrix is close to singular or badly scaled, which python (and I guess most other languages) does not... A is not just close to singular: it's singular! Ok. When do you define it to be singular, btw? Which is the most

Re: numpy (matrix solver) - python vs. matlab

2012-04-29 Thread Nasser M. Abbasi
On 04/29/2012 05:17 PM, someone wrote: I would also kindly ask about how to avoid this problem in the future, I mean, this maybe means that I have to check the condition number at all times before doing anything at all ? How to do that? I hope you'll check the condition number all the time.

Re: numpy (matrix solver) - python vs. matlab

2012-04-29 Thread Paul Rubin
someone newsbo...@gmail.com writes: A is not just close to singular: it's singular! Ok. When do you define it to be singular, btw? Singular means the determinant is zero, i.e. the rows or columns are not linearly independent. Let's give names to the three rows: a = [1 2 3]; b = [11 12 13];

Re: numpy (matrix solver) - python vs. matlab

2012-04-29 Thread someone
On 04/30/2012 02:38 AM, Nasser M. Abbasi wrote: On 04/29/2012 05:17 PM, someone wrote: I would also kindly ask about how to avoid this problem in the future, I mean, this maybe means that I have to check the condition number at all times before doing anything at all ? How to do that? I hope

Re: numpy (matrix solver) - python vs. matlab

2012-04-29 Thread Nasser M. Abbasi
On 04/29/2012 07:59 PM, someone wrote: Also, as was said, do not use INV(A) directly to solve equations. In Matlab I used x=A\b. good. I used inv(A) in python. Should I use some kind of pseudo-inverse or what do you suggest? I do not use python much myself, but a quick google showed

Re: numpy (matrix solver) - python vs. matlab

2012-04-29 Thread Nasser M. Abbasi
On 04/29/2012 07:17 PM, someone wrote: Ok. When do you define it to be singular, btw? There are things you can see right away about a matrix A being singular without doing any computation. By just looking at it. For example, If you see a column (or row) being a linear combination of

Re: Learn Technical Writing from Unix Man in 10 Days

2012-04-29 Thread Jason Earl
On Sat, Apr 28 2012, Steven D'Aprano wrote: On Sat, 28 Apr 2012 14:55:42 -0700, Xah Lee wrote: Learn Technical Writing from Unix Man in 10 Days Quote from man apt-get: remove remove is identical to install except that packages are removed instead of installed.

Re: syntax for code blocks

2012-04-29 Thread Serhiy Storchaka
29.04.12 19:05, Peter Pearson написав(ла): Hey, guys, am I the only one here who can't even guess what this code does? When did Python become so obscure? This isn't Python at all. It's Ruby. -- http://mail.python.org/mailman/listinfo/python-list

Re: syntax for code blocks

2012-04-29 Thread Ben Finney
Peter Pearson ppearson@nowhere.invalid writes: On Fri, 27 Apr 2012 13:24:35 +0200, Kiuhnm kiuhnm03.4t.yahoo.it wrote: I'd like to change the syntax of my module 'codeblocks' to make it more pythonic. The “chained callable” style isn't very Pythonic, IMO. Even worse is the penchant for ‘foo

Re: Learn Technical Writing from Unix Man in 10 Days

2012-04-29 Thread Chris Angelico
On Mon, Apr 30, 2012 at 12:43 PM, Jason Earl je...@notengoamigos.org wrote: It is considerably worse than that.  If you look at what the documentation for apt-get actually says, instead of just the badly mangled version that Xah shares you would realize that the post was basically a bald-face

Re: Learn Technical Writing from Unix Man in 10 Days

2012-04-29 Thread Xah Lee
On Apr 29, 7:43 pm, Jason Earl je...@notengoamigos.org wrote: On Sat, Apr 28 2012, Steven D'Aprano wrote: On Sat, 28 Apr 2012 14:55:42 -0700, Xah Lee wrote: Learn Technical Writing from Unix Man in 10 Days Quote from man apt-get:     remove         remove is identical to install

Re: Learn Technical Writing from Unix Man in 10 Days

2012-04-29 Thread Temia Eszteri
jason, are you trolling me, or me you? ? Xah Depends on what you classify as trolling these days. In all honesty, the original concept of trolling seems to have become a lost art, with only a few people even knowing what the act actually was anymore, and in its absence everyone seems to draw

Re: Learn Technical Writing from Unix Man in 10 Days

2012-04-29 Thread Chris Angelico
On Mon, Apr 30, 2012 at 2:50 PM, Xah Lee xah...@gmail.com wrote: jason, are you trolling me, or me you? Am I Turing dreaming I am a machine, or a machine dreaming I am Turing? Personally, I've never Turred. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

[issue1739648] zipfile.testzip() using progressive file reads

2012-04-29 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I'm not sure about new tests, but the changes in the docstring and old tests look necessary. -- Added file: http://bugs.python.org/file25402/testzip-patch4.patch ___ Python tracker

[issue14315] zipfile.ZipFile() unable to open zip File

2012-04-29 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Anyone can look at the patch? This same problem reported in http://bugs.python.org/msg73317 . -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14315

[issue14657] Avoid two importlib copies

2012-04-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Uploaded new bootstrapping patch that handles the fully explicit import machinery. I also tweaked a couple of things so it plays nicely in terms of building an initial version with the checked in importlib.h. Specifically: pythonrun still

[issue14236] re: Docstring for \s and \S doesn’t mention Unicode

2012-04-29 Thread py.user
py.user bugzilla-mail-...@yandex.ru added the comment: \S is equivalent to [^\s] like \d with \D -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14236 ___

[issue14558] Documentation for unittest.main does not describe some keyword arguments.

2012-04-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Here's a patch. -- assignee: docs@python - ezio.melotti keywords: +patch stage: needs patch - commit review Added file: http://bugs.python.org/file25404/issue14558.diff ___ Python tracker

[issue14519] In re's examples the example with scanf() contains wrong analog for %x, %X specifiers

2012-04-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b26471a2a115 by Ezio Melotti in branch '2.7': #14519: fix the regex used in the scanf example. http://hg.python.org/cpython/rev/b26471a2a115 New changeset e317d651ccf8 by Ezio Melotti in branch '3.2': #14519: fix

[issue14519] In re's examples the example with scanf() contains wrong analog for %x, %X specifiers

2012-04-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the report and the suggestions! -- assignee: docs@python - ezio.melotti resolution: - fixed stage: needs patch - committed/rejected status: open - closed type: - enhancement

[issue14691] a code example not highlighted in http://docs.python.org/dev/library/stdtypes.html#memoryview

2012-04-29 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: A code example is not highlighted in the 3.3 docs for memoryview (http://docs.python.org/dev/library/stdtypes.html#memoryview) Only 3.3 is affected by this bug as the code example is for a feature in 3.3. -- assignee:

[issue14428] Implementation of the PEP 418

2012-04-29 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: test_process_time_threads is failing on one of the buildbots: == FAIL: test_process_time_threads (test.test_time.TimeTestCase)

[issue14690] Use monotonic time for sched, trace and subprocess modules

2012-04-29 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: LGTM. Juste one nitpick: why do you sometimes import the clock source as get_time() and others _time()? _time() looks fine to me. -- ___ Python tracker rep...@bugs.python.org

[issue12947] Examples in library/doctest.html lack the flags

2012-04-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Is there a way to add a :keep-doctest-flags: options to literal blocks? -- stage: test needed - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org

[issue6759] zipfile.ZipExtFile.read() is missing universal newline support

2012-04-29 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Support lines in zipfile looks contradictory and buggy. This complicates the code and makes the behavior of zipfile.ZipExtFile incompatible with the interface of other file-like objects. For example, the behavior of the read, read1 and

[issue11352] Update cgi module doc

2012-04-29 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: What is the reason for this one to languish for over a year now? Lack of proper patch? It’s marked “high priority”, so let’s get moving. -- nosy: +hynek, sandro.tosi ___ Python tracker

[issue14692] json.joads parse_constant callback not working anymore

2012-04-29 Thread Jakob Simon-Gaarde
New submission from Jakob Simon-Gaarde jako...@gmail.com: Hi It seems like the parse_constant keyword parameter for registering a callback function is no longer called in Python 2.7. http://docs.python.org/library/json.html#json.load I am using Python 2.7.3 on Ubuntu 12.04 I have created and

[issue14236] re: Docstring for \s and \S doesn’t mention Unicode

2012-04-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Good point. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14236 ___ ___ Python-bugs-list

[issue14236] re: Docstring for \s and \S doesn’t mention Unicode

2012-04-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 23d5b457dc71 by Ezio Melotti in branch '3.2': #14236: fix docs for \S. http://hg.python.org/cpython/rev/23d5b457dc71 New changeset 9165774a8055 by Ezio Melotti in branch 'default': #14236: merge with 3.2.

[issue14692] json.joads parse_constant callback not working anymore

2012-04-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14692 ___

[issue14671] isinstance(obj, object) returns True for _old style_ class instances

2012-04-29 Thread Q
Q abon...@gmail.com added the comment: thanks, that's rather convenient -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14671 ___ ___

[issue14692] json.joads parse_constant callback not working anymore

2012-04-29 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: This behavior was changed in changeset f686aced02a3 three year ago. If this change is intentional, then you need edit documentation. -- nosy: +storchaka ___ Python tracker

[issue14692] json.joads parse_constant callback not working anymore

2012-04-29 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Hi Jakob, parse_constant has been changed as of d95e5add3ca4 to be called only on -Infinity, Infinity, NaN: ``parse_constant``, if specified, will be called with one of the following strings: -Infinity, Infinity, NaN. This

[issue14692] json.joads parse_constant callback not working anymore

2012-04-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file25406/json_parse_constant_doc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14692

[issue14315] zipfile.ZipFile() unable to open zip File

2012-04-29 Thread Yuval Greenfield
Yuval Greenfield ubershme...@gmail.com added the comment: If we're modifying zipfile, please consider adding the reviewed patch for ZipFile.remove at http://bugs.python.org/issue6818 -- nosy: +ubershmekel ___ Python tracker rep...@bugs.python.org

[issue10376] ZipFile unzip is unbuffered

2012-04-29 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Actually reading from the zip file is buffered (at least 4 KiB of uncompressed data at a time). Can you give tests, scripts and data, which show the problem? -- ___ Python tracker

[issue14671] isinstance(obj, object) returns True for _old style_ class instances

2012-04-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14671 ___ ___

[issue14692] json.joads parse_constant callback not working anymore

2012-04-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The original changeset is at [0], and the commit message just says even more decoder optimizations. The official website[1] and the RFC[2] don't list any constant, so I guess the definition of what a constant is is not well defined. [0]:

[issue8767] Configure: Cannot disable unicode

2012-04-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8767 ___ ___ Python-bugs-list

[issue14643] Security page out of date

2012-04-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14643 ___ ___

[issue14313] zipfile should raise an exception for unsupported compression methods

2012-04-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file25407/zipfile_unsupported_compression.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14313

[issue14672] Windows installer: add desktop shortcut(s)

2012-04-29 Thread Daniel Swanson
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment: Never mind. I think I used the start menu to do it myself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14672 ___

[issue14693] hashlib fallback modules should be built even if openssl *is* available at build time

2012-04-29 Thread Dov Feldstern
New submission from Dov Feldstern dfeldst...@nds.com: Python has its own implementations of various hash functions, that can be used as fallbacks when openssl is not available. However, if openssl *is* available at build time, then these fallbacks don't get built. It would be nice if they

[issue4653] Patch to fix typos in C code

2012-04-29 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: -mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4653 ___ ___

[issue14693] hashlib fallback modules should be built even if openssl *is* available at build time

2012-04-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: that message requests that a bug be opened about this, but I wasn't able to find it? Probably because no-one opened an issue. build onto portable or shared storage, and run on multiple machines, even if openssl happens not to be available

[issue6759] zipfile.ZipExtFile.read() is missing universal newline support

2012-04-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Deprecate universal newline support in zipfile. zipfile.ZipExtFile should always work with non-modified bytes, and who need the text, let wraps zipfile.ZipExtFile with io.TextIOWrapper. This would be fine with me. -- nosy: +pitrou

[issue14693] hashlib fallback modules should be built even if openssl *is* available at build time

2012-04-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14693 ___ ___ Python-bugs-list

[issue14417] dict RuntimeError workaround

2012-04-29 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I could check it in, but I probably would mess up something (which branches are affected?). Let me know if you want me to. The priorities after that would be: 1) update docs (the warning about RuntimeError needs to be moderated) 2) convert

[issue14521] math.copysign(1., float('nan')) returns -1.

2012-04-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c468511fc887 by Mark Dickinson in branch 'default': Issue #14521: Make result of float('nan') and float('-nan') more consistent across platforms. Further, don't rely on Py_HUGE_VAL for float('inf').

[issue14521] math.copysign(1., float('nan')) returns -1.

2012-04-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Now fixed. -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14521 ___

[issue14417] dict RuntimeError workaround

2012-04-29 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Actually my patch doesn't even apply cleanly. I suspect the dict refactoring for shared keys interfered. Someone please help! -- ___ Python tracker rep...@bugs.python.org

[issue6759] zipfile.ZipExtFile.read() is missing universal newline support

2012-04-29 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: This would be fine with me. It may be worth to deprecate PEP 278? Oh, only ten years have passed since 2.3, but it seems it was so long ago. -- ___ Python tracker rep...@bugs.python.org

[issue6759] zipfile.ZipExtFile.read() is missing universal newline support

2012-04-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It may be worth to deprecate PEP 278? Oh, only ten years have passed since 2.3, but it seems it was so long ago. Well, I don't know if PEPs ever get deprecated. In this case, PEP 3116 is probably the superseder. --

[issue14691] a code example not highlighted in http://docs.python.org/dev/library/stdtypes.html#memoryview

2012-04-29 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Is it a sphinx version problem? I could not figure out why that particular code is not highlighted. The syntax looks correct. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org

[issue11352] Update cgi module doc

2012-04-29 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- assignee: docs@python - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11352 ___

[issue14462] In re's named group the name cannot contain unicode characters

2012-04-29 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: It doesn't work in regex, but it probably should. IMHO, if it's a valid identifier, then it should be allowed. -- ___ Python tracker rep...@bugs.python.org

[issue14693] hashlib fallback modules should be built even if openssl *is* available at build time

2012-04-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, the modules are always compiled when in debug mode. Here is a patch to always compile them. -- keywords: +patch Added file: http://bugs.python.org/file25408/hashlibfallbacks.patch ___ Python

[issue14157] time.strptime without a year fails on Feb 29

2012-04-29 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- keywords: +needs review stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14157 ___

[issue14082] shutil doesn't copy extended attributes

2012-04-29 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14082 ___ ___ Python-bugs-list

[issue14662] shutil.move broken in 2.7.3 on OSX (chflags fails)

2012-04-29 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- components: +Library (Lib) -None stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14662 ___

[issue9009] Improve quality of Python/dtoa.c

2012-04-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Dropping this due to lack of time; unless anyone else wants to pick it up, it should probably be closed as won't fix. -- assignee: mark.dickinson - priority: normal - low ___ Python tracker

[issue14521] math.copysign(1., float('nan')) returns -1.

2012-04-29 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14521 ___ ___

[issue11012] Add log1p(), exp1m(), gamma(), and lgamma() to cmath

2012-04-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Unassigning. I'm not planning to work on this in the forseeable future, though I'd be happy to review patches. -- assignee: mark.dickinson - ___ Python tracker rep...@bugs.python.org

[issue10433] Document unique behavior of 'getgroups' on OSX

2012-04-29 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: This one LGTM, still applies cleanly against current tip and is languishing for a way to long time. Commit close? -- nosy: +hynek versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue14610] configure script hangs on pthread verification and PTHREAD_SCOPE_SYSTEM verification on Ubuntu

2012-04-29 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I'm closing as invalid. If you decide to fill a bug report to your distribution (or directly to the libc in this case), it'd be interesting to post a link to the bug report here. Thanks. -- resolution: - invalid stage: -

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2012-04-29 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Anybody working on this one? I’d give it a shot otherwise. Go ahead. You could - should? - probably use the new os.fwalk() to walk directories in a safe maner. -- ___ Python tracker

[issue14694] Option to show leading zeros for bin/hex/oct

2012-04-29 Thread endolith
New submission from endolith endol...@gmail.com: Suggestion: Add an option to bin/hex/oct functions to format binary output with a minimum fixed width, including leading zeros. Also might be useful for hex and oct. Currently, bin(18) produces '0b10010' with this change, something like

[issue14694] Option to show leading zeros for bin/hex/oct

2012-04-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: -1. str.format already does this quite effectively; I don't see a real need to complicate the bin, hex and oct signatures. '{:016b}'.format(324) '000101000100' '{:016o}'.format(324) '0504' '{:016x}'.format(324)

[issue14694] Option to show leading zeros for bin/hex/oct

2012-04-29 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14694 ___ ___

  1   2   >