[issue8998] add crypto routines to stdlib

2010-06-19 Thread geremy condra
geremy condra added the comment: On Sat, Jun 19, 2010 at 7:52 AM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Le samedi 19 juin 2010 à 00:55 +, geremy condra a écrit : >> geremy condra added the comment: >> >> On Fri, Jun 18, 2010 at 6:05 AM, Antoine Pitrou >> wrote:

[issue8996] Add a default role to allow writing bare `len` instead of :func:`len`

2010-06-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: -1 I like how explicit it is now. -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-b

[issue9034] datetime module should use int32_t for date/time components

2010-06-19 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : """ As an aside, I dislike the fact that the datetime module uses a C 'int' for date ordinals, and clearly assumes that it'll be at least 32 bits. int could be as small as 16 bits on some systems (small embedded systems?). But that's another issue.

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2010-06-19 Thread Timothy Farrell
Timothy Farrell added the comment: Yes, they are related but not quite the same. The solution to this problem will likely include a fix to the problem described in issue 8077. -- ___ Python tracker __

[issue9005] Year range in timetuple

2010-06-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Note that a recently closed issue 7150 similarly tightened up datetime operations by making out of range dates raise OverflowError rather than produce non-sensible result. This case is not a clear cut, but now with timezone.utc available in datetime mo

[issue4654] os.path.realpath() get the wrong result

2010-06-19 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue4654] os.path.realpath() get the wrong result

2010-06-19 Thread R. David Murray
R. David Murray added the comment: Somebody long ago made the decision that ~ is only expanded if you call expanduser. I don't think this decision is likely to get changed. -- ___ Python tracker _

[issue4654] os.path.realpath() get the wrong result

2010-06-19 Thread R. David Murray
R. David Murray added the comment: I can confirm this works correctly on 32 bit Linux under 2.6.4. Since it is unlikely the width matters to this issue I'm going to close it. If anyone has a case where it fails we can reopen. -- resolution: -> out of date stage: -> committed/reject

[issue4654] os.path.realpath() get the wrong result

2010-06-19 Thread Shashwat Anand
Shashwat Anand added the comment: By different issue I meant expected but non-useful output. Although it does exactly what it is supposed to do, but expanding tilde (~) to $HOME could have been the default behavior(more user-friendly I should say). Don't know if that is worth it but the scale

[issue9008] CGIHTTPServer support for arbitrary CGI scripts

2010-06-19 Thread Éric Araujo
Éric Araujo added the comment: I’m sorry to have launched this thread. I hadn’t thought that Senthil is doing a lot of good work on HTTP and URI-related modules, and I wanted to express my feeling that this bug would not get fixed without someone proposing a patch. I didn’t want to imply that th

[issue4654] os.path.realpath() get the wrong result

2010-06-19 Thread R. David Murray
R. David Murray added the comment: Your different issue looks like a correct result to me. ~ is not automatically expanded. -- nosy: +r.david.murray ___ Python tracker ___

[issue8524] SSL sockets do not retain the parent socket's attributes

2010-06-19 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: It might be nice to see the version that avoids the dup() and has the duplicate code instead (interesting trade-off ;). Just for the sake of comparison against the forget() proposal. -- ___ Python tracker

[issue8939] Use C type names (PyUnicode etc;) in the C API docs

2010-06-19 Thread Éric Araujo
Éric Araujo added the comment: Shouldn’t “inside a :ctype:`Py_BEGIN_ALLOW_THREADS` block” rather use “:cmacro:”? -- ___ Python tracker ___ __

[issue8524] SSL sockets do not retain the parent socket's attributes

2010-06-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: I have tried refactoring the ssl code in order not to inherit from socket anymore, but it turned out suboptimal because chunks of code from the socket class then have to be duplicated. Therefore, I instead propose a much simpler approach which is to add a for

[issue9005] Year range in timetuple

2010-06-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue9005] Year range in timetuple

2010-06-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- keywords: +patch Added file: http://bugs.python.org/file17722/issue9005.diff ___ Python tracker ___ __

[issue5972] Failing test_signal.py on Redhat 4.1.2-44

2010-06-19 Thread Georg Brandl
Georg Brandl added the comment: Closing for lack of response. -- nosy: +georg.brandl resolution: -> works for me status: open -> closed ___ Python tracker ___ __

[issue5969] setup build with Platform SDK, finding vcvarsall.bat

2010-06-19 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> duplicate status: open -> closed superseder: -> msvc9compiler.py: ValueError: [u'path'] ___ Python tracker ___ __

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-19 Thread Éric Araujo
Éric Araujo added the comment: Guidelines: http://www.python.org/dev/patches/ -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue9026] [argparse] Subcommands not printed in the same order they were added

2010-06-19 Thread Steven Bethard
Steven Bethard added the comment: Yes, please generate patches from the Python repository. Thanks! -- ___ Python tracker ___ ___ Pyth

[issue9018] os.path.normcase(None) does not raise an error on linux and should

2010-06-19 Thread Shashwat Anand
Shashwat Anand added the comment: Following the documentation, os.path.normcase(path) Normalize the case of a pathname. On Unix and Mac OS X, this returns the path unchanged; on case-insensitive filesystems, it converts the path to lowercase. On Windows, it also converts forward slashes to bac

[issue5005] 3.0 sqlite doc: most examples refer to pysqlite2, use 2.x syntax.

2010-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is about the examples in 11.6.1. Module functions and constants. All 3 points are fixed. The indentation issue seems to have been fixed by making the blank line completely blank with no spaces. I would have removed it, but cut and paste now works.

[issue1778410] removeTest() method patch for unittest.TestSuite

2010-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: This is almost three years old but strikes me as being useful. Could somebody with more knowledge than myself review the patch and update the relevant Python versions? Failing that, simply close the issue as not being relevant today. -- nosy: +Breamo

[issue4654] os.path.realpath() get the wrong result

2010-06-19 Thread Shashwat Anand
Shashwat Anand added the comment: No such issue on python 2.6, 2.7, 3.2. >>> print(os.path.realpath('/Users/l0nwlf/Desktop/tmp/../decotest.lnk')) /Users/l0nwlf/Desktop/decotest.lnk I think this issue can be closed. However, I came with a different issue while testing on 2.6, trunk and 3.2. >>>

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-06-19 Thread Devin Cook
Changes by Devin Cook : -- nosy: +devin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue1479626] Uninstall does not clean registry

2010-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: Wouldn't be the first Windows uninstaller to leave junk in the registry and won't be the last. if this is going to be actioned versions need to be updated to Python 2.7, thinking realistically of 2.7.1, and Python 3.2+? -- nosy: +BreamoreBoy

[issue4654] os.path.realpath() get the wrong result

2010-06-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5005] 3.0 sqlite doc: most examples refer to pysqlite2, use 2.x syntax.

2010-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: I'm guessing that this is fixed and hence can be closed as google didn't throw anything obvious at me, am I correct? -- nosy: +BreamoreBoy ___ Python tracker __

[issue4654] os.path.realpath() get the wrong result

2010-06-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8820] IDLE not launching correctly

2010-06-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8820] IDLE not launching correctly

2010-06-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +kbk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue4654] os.path.realpath() get the wrong result

2010-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: An issue with Python 2.3, can this be closed or is it still a problem with Python 2.7 or any of the Python 3 versions? -- nosy: +BreamoreBoy ___ Python tracker

[issue1300] subprocess.list2cmdline doesn't do pipe symbols

2010-06-19 Thread Andrew Moise
Andrew Moise added the comment: Okay, makes sense. It sure would be nice on Windows to have an equivalent of list2cmdline() that works for the shell. I actually don't have immediate access to the code anymore, but I remember having to fool around with list2cmdline in the first place because

[issue9033] cmd module tab misbehavior

2010-06-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9033] cmd module tab misbehavior

2010-06-19 Thread Shashwat Anand
Shashwat Anand added the comment: It seems readline module is not installed on your system. Quoting Ned Deily's comment from issue8365 which will most probably solve your issue: "Issue6877 (and subsequent fixes in Issue8066) allows the Python readline module to be built and linked with the OS

[issue4629] getopt should not accept no_argument that ends with '='

2010-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: I'm not sure why this is still open, would somebody like to comment, see also Issue4650. -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue4883] Compiling python 2.5.2 under Wine on linux.

2010-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: Hi Mark, It'll cost you a couple of pints of Ringwood Old Thumper if you're ever in my neck of the woods. Also blame Terry Reedy if I prove to be a pain in the neck!!! Kindest regards. Mark Lawrence. From: Mark Dickinson To

[issue4883] Compiling python 2.5.2 under Wine on linux.

2010-06-19 Thread Mark Dickinson
Mark Dickinson added the comment: It can be closed. Thanks! -- nosy: +mark.dickinson resolution: -> out of date status: open -> closed ___ Python tracker ___ __

[issue9033] cmd module tab misbehavior

2010-06-19 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your report. Does the readline module work at all? 2.5 is unsupported now; can you test your code with 2.7, the next stable version? -- nosy: +merwok ___ Python tracker _

[issue4919] 2.6.1 build issues on solaris with SunStudio 12

2010-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: Can this be closed as out of date or is it still an issue with Python 2.7 or any of the Python 3 versions? -- nosy: +BreamoreBoy ___ Python tracker

[issue1300] subprocess.list2cmdline doesn't do pipe symbols

2010-06-19 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: It will return the former. To clarify, it's true that there appears to be a problem with Popen(['echo', 'foo|bar'], shell=True). That is being tracked in issue7839. What's invalid is the report that list2cmdline() should be quoting strings with | in th

[issue8820] IDLE not launching correctly

2010-06-19 Thread Joseph
Joseph added the comment: I'm using python version 2.6.5. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome

2010-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: As you Jean-Paul Calderone seem to know what you're talking about could you provide a patch to get this issue going? If not I might even have a go myself, even if I do get shot down in flames. -- nosy: +BreamoreBoy ___

[issue1300] subprocess.list2cmdline doesn't do pipe symbols

2010-06-19 Thread Andrew Moise
Andrew Moise added the comment: Hm, I'm not sure I understand. After r82075, will list2cmdline(['echo', 'foo|bar']) return 'echo foo|bar', or will it return 'echo "foo|bar"'? -- ___ Python tracker ___

[issue5136] Deprecating (and removing) "globalcall", "merge" and "globaleval"

2010-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: >From the recent large thread on c.l.py regarding Python GUIs I understand that >the author of this issue Guilherme Polo has done a massive amount of work on >Tkinter. Would it therefore be possible for him to give an update as to >whether this issue can be c

[issue1300] subprocess.list2cmdline doesn't do pipe symbols

2010-06-19 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: See the commit message for r82075 and the discussion on issue8972 and issue7839. -- ___ Python tracker ___

[issue1300] subprocess.list2cmdline doesn't do pipe symbols

2010-06-19 Thread Andrew Moise
Andrew Moise added the comment: Why is this bug invalid? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue4883] Compiling python 2.5.2 under Wine on linux.

2010-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: Can this be closed as out of date, or is it still relevant to Python 2.7 or any of the Python 3 branches? -- nosy: +BreamoreBoy ___ Python tracker _

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-06-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue8990] array constructor and array.fromstring should accept bytearray.

2010-06-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: On the principle the patch looks good. In practice, it lacks a call to `PyBuffer_Release(&buffer)` in the various error cases (before returning NULL). It also lacks some tests in Lib/test/test_array.py. > In 3.x unicode type was renamed to str and str to byte

[issue9033] cmd module tab misbehavior

2010-06-19 Thread scott riccardelli
New submission from scott riccardelli : noticed that cmd module does not perform completion using TAB on a macintosh properly. instead, the TAB key just places several blank spaces and moves the cursor forward. what it should do is retrieve a list of possibilities for completing a command.

[issue8988] import + coding = failure (3.1.2/win32)

2010-06-19 Thread gonegown
gonegown added the comment: Is there py3k for win32? And how do I know if #8611 comes from the same source? Have no idea how they have organized the python core. I'm new to python (about 2 months) and I don't think I will use it for long. It's just not serious. --

[issue9031] distutils uses invalid "-Wstrict-prototypes" flag when compiling C++ extension module

2010-06-19 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: It's a duplicate of issue #1222585. The patch in that issue will also make distutils not reuse flags Python was built with. -- nosy: +Arfrever ___ Python tracker

[issue1573931] WSGI, cgi.FieldStorage incompatibility

2010-06-19 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: It's not terribly productive to block a fix for this specific issue in the WSGI specification on the big pile of contentious unrelated issues. It would make sense to issue a new WSGI specification with a correction for only this issue. The rest of the W

[issue1573931] WSGI, cgi.FieldStorage incompatibility

2010-06-19 Thread Chris McDonough
Chris McDonough added the comment: Although the current WSGI 1.0 spec (http://www.python.org/dev/peps/pep-0333/) still indicates that implementing the size argument to readline is not required, effectively, it is and has been for several years. Stalling on a WSGI 1.1 spec has caused a spec

[issue9020] 2.7: eval hangs on AIX

2010-06-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Indeed. I think Py_ISALNUM() should check for EOF, to be consistent > with the C isalnum(int c). Ah, that sounds fine. -- ___ Python tracker ___

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-19 Thread R. David Murray
R. David Murray added the comment: Brett's assertion comes from the decision made at the language summit at the last pycon. Which does not negate Raymond's assertion that there may be more important stuff to pythonize. However, Alexander is maintaining datetime, and if he wishes to do the Pyt

[issue9020] 2.7: eval hangs on AIX

2010-06-19 Thread Stefan Krah
Stefan Krah added the comment: Martin v. Löwis wrote: > > Of course, it is dubious why EOF is not tested separately rather than > > passing it to Py_ISALNUM(). Micro-optimization? At least a comment > > should be added. > > No, I think this is an error that EOF is not processed separately. > O

[issue9020] 2.7: eval hangs on AIX

2010-06-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: > What srid seems to be saying is that chars are unsigned on AIX, and > therefore Py_CHARMASK() returns -1. Hence his patch proposal. Ah, ok. I misread some of the messages (and got confused by msg108125, which seems to suggest that chars are signed on AIX).

[issue9029] errors='replace' works in IDLE, fails at Windows command line.

2010-06-19 Thread R. David Murray
R. David Murray added the comment: What you show is not a complete program, nor do you provide the complete traceback or the data causing the problem. The most helpful thing would be a complete small program and data file demonstrating the problem. That said, I'm wondering if your problem i

[issue9020] Specification of Py_CHARMASK

2010-06-19 Thread Stefan Krah
Stefan Krah added the comment: You can simulate this on Linux by compiling with: BASECFLAGS="-funsigned-char" Then: Index: Parser/tokenizer.c === --- Parser/tokenizer.c (revision 81682) +++ Parser/tokenizer.c (working copy) @

[issue9020] 2.7: eval hangs on AIX

2010-06-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Why do you say that? If c is -1, then Py_CHARMASK(c) is 255, which is a > positive integer. What srid seems to be saying is that chars are unsigned on AIX, and therefore Py_CHARMASK() returns -1. Hence his patch proposal. Of course, it is dubious why EOF is

[issue1602] windows console doesn't print utf8 (Py30a2)

2010-06-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: unit test needed -> needs patch versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Pyth

[issue1602] windows console doesn't print utf8 (Py30a2)

2010-06-19 Thread Christoph Burgmer
Christoph Burgmer added the comment: Will this bug be tackled or Python2.7? And is there a way to get hold of the access denied error? Here are my steps to reproduce: I started the console with "cmd /u /k chcp 65001" ___ Akti

[issue9020] 2.7: eval hangs on AIX

2010-06-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Py_CHARMASK should return a non-negative integer. And it does, also on AIX. Do we have proof to the contrary? > tokenizer.c:tok_get around line 1368: > > while (Py_ISALNUM(c) || c == '_') { > c = tok_nextc(tok); > } > > > 1) t

[issue8998] add crypto routines to stdlib

2010-06-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le samedi 19 juin 2010 à 00:55 +, geremy condra a écrit : > geremy condra added the comment: > > On Fri, Jun 18, 2010 at 6:05 AM, Antoine Pitrou > wrote: > > > > Antoine Pitrou added the comment: > > > >> Great, I'm thinking more-or-less the API propose

[issue9020] 2.7: eval hangs on AIX

2010-06-19 Thread Stefan Krah
Stefan Krah added the comment: Py_CHARMASK should return a non-negative integer. As I understand it: tokenizer.c:tok_get around line 1368: while (Py_ISALNUM(c) || c == '_') { c = tok_nextc(tok); } 1) tok_nextc(tok) returns EOF (correct). 2) c is an int. 3) c ==

[issue9009] Improve quality of Python/dtoa.c

2010-06-19 Thread Mark Dickinson
Mark Dickinson added the comment: Patch that does a fairly significant rewrite of strtod; it's still (mostly) based on Gay's code, but there are some significant changes. Some background: strtod, after dealing with easy cases, works roughly as follows: (1) Using floating-point arithmetic,

[issue9009] Improve quality of Python/dtoa.c

2010-06-19 Thread Mark Dickinson
Mark Dickinson added the comment: r82080: Whitespace fixes. r82081: In strtod, simplify the computation of the initial approximation. r82082: Fix typo introduced in r82025 (I think); this was preventing a shortcut from being taken. r82087: Simplify the ratio function. The previous ratio fu

[issue5639] Support TLS SNI extension in ssl module

2010-06-19 Thread Scott Tsai
Changes by Scott Tsai : -- nosy: +scott.tsai ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.