[issue10877] Make Tools (and subdirs) a package (and subpackages)

2011-01-11 Thread Georg Brandl
Georg Brandl added the comment: I don't think this is a good idea. For one thing, it only works in a checkout or source tarball, something that most users aren't going to work with. If we now publish that they can do "import Tools.demo.redemo" and so on, confusion will be great among those w

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2011-01-11 Thread Christoph Gohlke
Changes by Christoph Gohlke : -- nosy: +cgohlke ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue7229] Manual entry for time.daylight can be misleading

2011-01-11 Thread Tomas Kubes
Tomas Kubes added the comment: I am sorry, but as an original initiator of the the issue I find the argumentation of Alexander Belopolsky vastly ridiculous. Are you really seriously convinced that an average person responsible for Python application development and maintenance would be aware

[issue4112] Subprocess: Popen'ed children hang due to open pipes

2011-01-11 Thread Ross Lagerwall
Ross Lagerwall added the comment: This issue has been fixed on 3.2. -- nosy: +rosslagerwall versions: -Python 3.2 ___ Python tracker ___

[issue10556] test_zipimport_support mucks up with modules

2011-01-11 Thread Nick Coghlan
Nick Coghlan added the comment: Even more special: put a test_doctest in first and the attempt to clean up sys.modules in test_zipimport_support leaves things alone so the _ssl module doesn't break (test_doctest just leaves sys.modules alone and doesn't even try to remove all the modules it i

[issue7229] Manual entry for time.daylight can be misleading

2011-01-11 Thread anatoly techtonik
anatoly techtonik added the comment: Classic user developer impedance mismatch. =) I agree that Python should guard its users against crazy standards that creep into standard lib, because nobody had time to think about pythonic API. I propose the following change: http://docs.python.org/libr

[issue1667546] Time zone-capable variant of time.localtime

2011-01-11 Thread anatoly techtonik
anatoly techtonik added the comment: IIUC #9527 is about datetime and this request is about time.localtime, i.e. about making the API more intuitive for users. I don't think this issue should be closed. -- status: pending -> open ___ Python tracker

[issue10556] test_zipimport_support mucks up with modules

2011-01-11 Thread Nick Coghlan
Nick Coghlan added the comment: Fixed for 3.2 in r87925. (I simply dropped the attempt to restore sys.modules to its original state from test_zipimport_support) -- ___ Python tracker _

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

2011-01-11 Thread Glenn Linderman
Glenn Linderman added the comment: I said: I wonder what result you get with the same browser, at the web page http://rishida.net/tools/conversion/ by entering the euro symbol into the Characters entry field, and choosing convert. But I couldn't wait, so I ran a test with € in one of my input

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

2011-01-11 Thread Glenn Linderman
Glenn Linderman added the comment: R. David: Pierre said: BytesFeedParser only uses the ascii codec ; if the header has non ASCII characters (filename in a multipart/form-data), they are replaced by ? : the original file name is lost. So for the moment I leave the text version of FeedParser

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

2011-01-11 Thread Glenn Linderman
Glenn Linderman added the comment: In my previous message I quoted Pierre rightly cautioning about headers containing non-ASCII... and that BytesFeedParser doesn't, so using it to parse headers may be questionable. So I decided to try one... I show the Live HTTP headers below, from a simple

[issue10885] multiprocessing docs

2011-01-11 Thread Ross Lagerwall
New submission from Ross Lagerwall : I think there is a small docs bug: it says that multiprocessing.Semaphore is "a bounded semaphore". Shouldn't it says that it is just "a semaphore". Attached is a patch to fix this. -- components: Library (Lib) files: docupdate.patch keywords: patch

[issue10886] Unhelpful backtrace for multiprocessing.Queue

2011-01-11 Thread Torsten Landschoff
New submission from Torsten Landschoff : When trying to send an object via a Queue that can't be pickled, one gets a quite unhelpful traceback: Traceback (most recent call last): File "/usr/lib/python2.6/multiprocessing/queues.py", line 242, in _feed send(obj) PicklingError: Can't pickle

[issue7229] Manual entry for time.daylight can be misleading

2011-01-11 Thread Tomas Kubes
Tomas Kubes added the comment: Hello, I find this version very clear. Thanks Tomas -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue10887] Add link to development ML

2011-01-11 Thread anatoly techtonik
New submission from anatoly techtonik : Tarek, can you add link to http://groups.google.com/group/the-fellowship-of-the-packaging to distutils dev pages at https://bitbucket.org/tarek/distutils2/wiki/Home ? -- assignee: tarek components: Distutils2 messages: 125998 nosy: eric.araujo, t

[issue10882] Add os.sendfile()

2011-01-11 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Thanks for writing this. Follows my comments. I would focus on trying to provide a unique interface across all platforms. Being sendfile() not a standard POSIX I think we should not worry about providing a strict one-to-one interface. "headers" and "trail

[issue10882] Add os.sendfile()

2011-01-11 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Also, I think it should be optional since when it's NULL, sendfile() > implicitly assumes the current offset (file's tell() return value). > This is true on Linux, at least. Not sure about other platforms but my > best guess is that it should not be manda

[issue10884] pkgutil EggInfoDistribution requirements for .egg-info metadata

2011-01-11 Thread Éric Araujo
Éric Araujo added the comment: Thanks Michael for the report and fix. Would you add a test for that fix? Minor note: I follow docstrings good practices in my commit messages, making sure that the first line makes sense on its own (it’s used in short logs) and wrapping my lines under 80 char

[issue10848] Move test.regrtest from getopt to argparse

2011-01-11 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: -easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10882] Add os.sendfile()

2011-01-11 Thread Ross Lagerwall
Ross Lagerwall added the comment: Just to be clear: There are 3 different interfaces. The basic one with the offset included & no headers/trailers is supported by all the platforms, including Linux. The one with offset as None is only supported by Linux. The one with headers/trailers/flags is

[issue10868] ABCMeta.register() should work as a decorator

2011-01-11 Thread Edoardo Spadolini
Edoardo Spadolini added the comment: Yeah, I should've waited for the test to finish, but come on, "it was just a small change" :( Now I know why you should always test everything at least, sorry about that :) -- ___ Python tracker

[issue10888] os.stat(filepath).st_mode gives wrong 'executable permission' result

2011-01-11 Thread dobbelaj
New submission from dobbelaj : The 'os.stat' method on windows seems to be hardcoded to check the file name extension when computing the 'executable permission flag' (st_mode). (See Modules/posixmodule.c: win32_stat and win32_wstat) Currently, it checks for : '.bat', '.cmd', '.exe', '.com'

[issue9692] UnicodeDecodeError in ElementTree.tostring()

2011-01-11 Thread Ulrich Seidl
Ulrich Seidl added the comment: I would suggest adding an additional except branch to (at least) the following functions of ElementTree.py: * _encode, * _escape_attrib, and * _escape_cdata The except branch could look like: except (UnicodeDecodeError): return text.decode( encoding ).enco

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

2011-01-11 Thread Timothy Farrell
Changes by Timothy Farrell : -- nosy: -tercero12 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1667546] Time zone-capable variant of time.localtime

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Jan 11, 2011 at 5:06 AM, anatoly techtonik wrote: .. > IIUC #9527 is about datetime and this request is about time.localtime, This is correct, but did you notice what I wrote in my last message? """ In order to properly implement #9527 in dateti

[issue10882] Add os.sendfile()

2011-01-11 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I agree then, although I'm not sure there are other functions in the os module (or anywhere else) having a variable number of args depending on the platform. I wanted to try your patch but it does not apply cleanly (python 3.2, revision 87930). --

[issue10882] Add os.sendfile()

2011-01-11 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I agree then, although I'm not sure having a function with a variable number of args depending on the platform is acceptable. I wanted to try your patch but it does not apply cleanly (python 3.2, revision 87930). -- ___

[issue10882] Add os.sendfile()

2011-01-11 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- Removed message: http://bugs.python.org/msg126007 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10556] test_zipimport_support mucks up with modules

2011-01-11 Thread Nick Coghlan
Nick Coghlan added the comment: 2.7 and 3.1 don't appear to exhibit the fault, so closing this one. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue7229] Manual entry for time.daylight can be misleading

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Jan 11, 2011 at 4:55 AM, anatoly techtonik wrote: .. > I propose the following change: .. > http://docs.python.org/library/time.html#time.daylight > -  Nonzero if a DST timezone is defined. > + .. To check if DST is currently active, use `time.loc

[issue9051] Improve pickle format for aware datetime instances

2011-01-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue9118] help() on a property descriptor launches interactive help

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Backported to 3.1 (r87934) and 2.7 (r87935). -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ __

[issue10441] some stdlib modules need to be updated to handle SSL certificate validation

2011-01-11 Thread david
david added the comment: Thank you @loewis. However, I don't see where set_default_verify_path - is defined in the patch you have provided. It would also be nice to do something like this: import ssl ... ssl._FORCE_VERIFICATION = True and even better would be to determine the CA path as @pitr

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New patch needed to address the issue of time.strftime() accepting %Y when year is 1900 and other similar oddities. See msg107402 above. Also a patch for datetime.py is needed. -- stage: patch review -> needs patch versions: +Python 3.3 -Pytho

[issue4112] Subprocess: Popen'ed children hang due to open pipes

2011-01-11 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue5109] array.array constructor very slow when passed an array object.

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Georg, Is it too late to commit this for 3.2? -- nosy: +georg.brandl ___ Python tracker ___ _

[issue10882] Add os.sendfile()

2011-01-11 Thread Ross Lagerwall
Ross Lagerwall added the comment: I've just tried it against r87935 and it applies cleanly. Perhaps you didn't apply the patch correctly (it requires "-p1" since it was a Mercurial diff), try: patch -p1 < sendfile_v2.patch With regards to the different arguments, I don't know if that's acc

[issue9860] Building python outside of source directory fails

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Here is a related bug: $ make patchcheck ./python.exe ../py3k-commit/Tools/scripts/patchcheck.py Getting the list of files that have been added/changed ... need a checkout to get modified files [49399 refs] make: *** [patchcheck] Error 1 -- vers

[issue10889] Fix range slicing and indexing to handle lengths > sys.maxsize

2011-01-11 Thread Nick Coghlan
New submission from Nick Coghlan : Enhancement to range to correctly handle indexing and slicing when len(x) raises OverflowError. Note that this enables correct calculation of the length of such ranges via: def _range_len(x): try: length = len(x)

[issue10888] os.stat(filepath).st_mode gives wrong 'executable permission' result

2011-01-11 Thread Brian Curtin
Brian Curtin added the comment: The "Read & Execute" permission listed on a file's property window doesn't really mean anything. Executables only need read permissions [0] to actually be executed. Additionally, in terms of _stat, Windows does its check by extension [1] but they don't specify

[issue7229] Manual entry for time.daylight can be misleading

2011-01-11 Thread Tomas Kubes
Tomas Kubes added the comment: >>why do you think someone reading about time.daylight actually wants to "check if DST is currently active"? If you are not familiar with the cryptic names of POSIX but live in normal world, time.daylight sounds like a quite probable place where to check if the

[issue7229] Manual entry for time.daylight can be misleading

2011-01-11 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9305] Don't use east/west of UTC in date/time documentation

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I've noticed that the time module docstring handles this issue rather nicely: >>> help('time') ... timezone -- difference in seconds between UTC and local standard time altzone -- difference in seconds between UTC and local DST time We can use s

[issue7229] Manual entry for time.daylight can be misleading

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Jan 11, 2011 at 11:20 AM, Tomas Kubes wrote: .. > You should try to think like a person that does not have any background > knowledge of underlying libraries but > just looks through the time library trying to solve the question - how can I > ch

[issue10885] multiprocessing docs

2011-01-11 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- assignee: -> d...@python components: +Documentation nosy: +d...@python ___ Python tracker ___ ___ Pyth

[issue7229] Manual entry for time.daylight can be misleading

2011-01-11 Thread Tomas Kubes
Tomas Kubes added the comment: > I think you are confusing the purposes of a reference manual with that of a tutorial or an FAQ collection. There is a fine line between them. Even though reference manual should not be a substitute for a tutorial, I still believe it should try to clarify potent

[issue10889] Fix range slicing and indexing to handle lengths > sys.maxsize

2011-01-11 Thread Nick Coghlan
Nick Coghlan added the comment: Having started work on this, the code changes are probably too significant to consider adding it to 3.2 at this late stage. Writing my own slice interpretation support which avoids the ssize_t limit is an interesting exercise :) -- versions: +Python 3.

[issue10875] Update Regular Expression HOWTO

2011-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg125954 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10875] Update Regular Expression HOWTO

2011-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Correction: r87912 and r87913 for 3.x -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue10888] os.stat(filepath).st_mode gives wrong 'executable permission' result

2011-01-11 Thread Jeroen Dobbelaere
Jeroen Dobbelaere added the comment: Some more background: The actual issue was initially detected when observing that the 'tarfile' package produced a tar containing different permissions, depending on the script being executed by 'cygwin python' or 'native python'. When using native python

[issue1397474] timeit execution enviroment

2011-01-11 Thread rurpy the second
rurpy the second added the comment: I find the changes suggested by T Reedy and refined in the patch by E Bendersky an improvement. However, I found the following things confused me when reading it: "...constructor creates a function..." the constructor creates a Timeit instance, not a funct

[issue10889] Fix range slicing and indexing to handle lengths > sys.maxsize

2011-01-11 Thread Nick Coghlan
Nick Coghlan added the comment: Attached patch moves range indexing and slicing over to PyLong and updates the tests accordingly. Georg, I think this really makes the large range story far more usable - if you're OK with it, I would like to check it in this week so it lands in 3.2. -

[issue10888] os.stat(filepath).st_mode gives wrong 'executable permission' result

2011-01-11 Thread Brian Curtin
Brian Curtin added the comment: > The actual issue was initially detected when observing that the > 'tarfile' package produced a tar containing different permissions, > depending on the script being executed by 'cygwin python' or 'native python'. I would expect that. Each of those work in their

[issue10889] Fix range slicing and indexing to handle lengths > sys.maxsize

2011-01-11 Thread Nick Coghlan
Nick Coghlan added the comment: Oh, and to explain my negative comment from earlier: that was my reaction when I realised I also needed to write PyLong versions of _PyEval_SliceIndex and PySlice_GetIndicesEx to make range slicing with large integers work properly. As it turned out, the end re

[issue2650] re.escape should not escape underscore

2011-01-11 Thread yeswanth
Changes by yeswanth : -- nosy: +swamiyeswanth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10889] Fix range slicing and indexing to handle lengths > sys.maxsize

2011-01-11 Thread Georg Brandl
Georg Brandl added the comment: It's a moderate chunk of code, but lots of new tests... I'd say go for it. -- ___ Python tracker ___

[issue5109] array.array constructor very slow when passed an array object.

2011-01-11 Thread Georg Brandl
Georg Brandl added the comment: Should be fine to apply. I trust all the different code paths for different types are tested? -- ___ Python tracker ___

[issue7229] Manual entry for time.daylight can be misleading

2011-01-11 Thread Georg Brandl
Georg Brandl added the comment: It seems to me that the quoted function from bzr def local_time_offset(t=None): """Return offset of local zone from GMT, either at present or at time t.""" # python2.3 localtime() can't take None if t is None: t = time.time() if time.loca

[issue7229] Manual entry for time.daylight can be misleading

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Jan 11, 2011 at 1:56 PM, Georg Brandl wrote: .. > It seems to me that the quoted function from bzr ... > would be very helpful to add to the `time` module docs as an example. The problem with this function is the same as with the doc patches that

[issue10880] do_mkvalue and 'boolean'

2011-01-11 Thread Sergey Shepelev
Sergey Shepelev added the comment: Here's patch against 2.6 --- a/Python/modsupport.c Tue Aug 24 18:19:58 2010 +0200 +++ b/Python/modsupport.c Tue Jan 11 23:50:40 2011 +0300 @@ -459,6 +459,16 @@ return v; } +case '?': +{ +int n; +

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

2011-01-11 Thread Pierre Quentel
Pierre Quentel added the comment: @Glenn "I'm curious what your system (probably Windows since you mention cp-) and browser, and HTTP server is, that you used for that test. Is it possible to capture the data stream for that test? Describe how, and at what stage the data stream was captured

[issue7229] Manual entry for time.daylight can be misleading

2011-01-11 Thread anatoly techtonik
anatoly techtonik added the comment: On Tue, Jan 11, 2011 at 4:52 PM, Alexander Belopolsky wrote: > .. >> http://docs.python.org/library/time.html#time.daylight >> -  Nonzero if a DST timezone is defined. >> + .. To check if DST is currently active, use `time.localtime(t).tm_isdst` > > This is

[issue7229] Manual entry for time.daylight can be misleading

2011-01-11 Thread anatoly techtonik
anatoly techtonik added the comment: On Tue, Jan 11, 2011 at 9:42 PM, Alexander Belopolsky wrote: > >> I have to agree with the OP that the current state of the docs is not as >>clear as it could be. > > In some ways the state of the docs is reflective of the state of the > code.  C/POSIX API

[issue7229] Manual entry for time.daylight can be misleading

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Jan 11, 2011 at 4:15 PM, anatoly techtonik wrote: .. > To summarize: What is wrong with my previous proposal if we remove t > from params? Not much is wrong with it. If it would come in a form of a patch and without typos or mark-up mistakes, I

[issue10882] Add os.sendfile()

2011-01-11 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: The patch as-is did not work on Linux. I had to add entries in pyconfig.h.in and configure files in order to make os.sendfile available. Patch is in attachment. -- Added file: http://bugs.python.org/file20357/sendfile_v2.patch

[issue5109] array.array constructor very slow when passed an array object.

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in revision 87942. @Georg: Yes, I ran coverage and all branches are covered. @Meador: I don't think the old len calculation could handle the case of array object in initial. In any case, I don't find the new code much more complicated than t

[issue5109] array.array constructor very slow when passed an array object.

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed to 2.7 in revision 87944. -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue5109] array.array constructor very slow when passed an array object.

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Reverted backport in r87945. -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-

[issue8957] strptime('%c', ..) fails to parse output of strftime('%c', ..) in non-English locale

2011-01-11 Thread Roumen Petrov
Roumen Petrov added the comment: time.strptime(s, '%c' ) ? -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8957] strptime('%c', ..) fails to parse output of strftime('%c', ..) in non-English locale

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > time.strptime(s, '%c' ) ? Oh my. It certainly took a long time to recognize a silly mistake! Thanks. -- dependencies: -Use locale.nl_langinfo in _strptime resolution: -> invalid ___ Python tracker

[issue5924] When setting complete PYTHONPATH on Python 3.x, paths in the PYTHONPATH are ignored

2011-01-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: Unless you think the code is actually incorrect as it stands, it's certainly worse to change it (in whatever respect) than to leave it. -- ___ Python tracker

[issue8957] strptime('%c', ..) fails to parse output of strftime('%c', ..) in non-English locale

2011-01-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue10888] os.stat(filepath).st_mode gives wrong 'executable permission' result

2011-01-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: Brian: "On native Windows, "Read & Execute" has no real affect on applications". Why do you say that? The FILE_EXECUTE permission certainly has a meaning on Windows, see http://msdn.microsoft.com/en-us/library/gg258116(v=vs.85).aspx I agree that FILE_EXECUT

[issue10441] some stdlib modules need to be updated to handle SSL certificate validation

2011-01-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Thank you @loewis. However, I don't see where > set_default_verify_path - is defined in the patch you have provided. It's not defined in the patch, as it is already committed to Python. -- title: some stdlib modules need to be updated to handle SSL

[issue10882] Add os.sendfile()

2011-01-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I would focus on trying to provide a unique interface across all > platforms. Being sendfile() not a standard POSIX I think we should > not worry about providing a strict one-to-one interface. We absolutely need to expose sendfile as-is. If we want to provid

[issue10225] Fix doctest runable examples in python manual

2011-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Doctest runs on .rst files, which are plain text files, finds and reports errors, and reports no errors when the errors are fixed. See #10875 where is was very helpful. So your last comment puzzles me. In any case, your patch is too big to digest at once. I e

[issue10225] Fix doctest runable examples in python manual

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Jan 11, 2011 at 6:10 PM, Terry J. Reedy wrote: .. > Doctest runs on .rst files, which are plain text files, finds and reports > errors, and reports no errors when the errors are fixed. > See #10875 where is was very helpful. So your last comment

[issue10888] os.stat(filepath).st_mode gives wrong 'executable permission' result

2011-01-11 Thread Brian Curtin
Brian Curtin added the comment: I meant that it doesn't have any effect because it's apparently always set from what I could see, which was poor wording. The TechNet article also made a similar claim. If it is ever not set, then the file clearly can't be executed. --

[issue7057] tkinter doc: more 3.x updates

2011-01-11 Thread Éric Araujo
Éric Araujo added the comment: > I used 'manN' FYI, there is a :file:`man{n}` construct where braces mark up replaceable text, like the var element in HTML. -- nosy: +d...@python, eric.araujo -georg.brandl ___ Python tracker

[issue3693] Obscure array.array error message

2011-01-11 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Extension Modules -Library (Lib) nosy: +alexandre.vassalotti, georg.brandl stage: unit test needed -> needs patch versions: +Python 2.7, Python 3.2 ___ Python tracker ___

[issue9419] RUNSHARED needs LDFLAGS

2011-01-11 Thread Roumen Petrov
Roumen Petrov added the comment: Yes Peter, build outside source tree fail for, fail for me and pass for python developers :). So no idea how to convince them to fix this issue. Next is from my sources for python 2.7 Index: Lib/distutils/tests/test_build_ext.py ==

[issue8957] strptime('%c', ..) fails to parse output of strftime('%c', ..) in non-English locale

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: My tests were wrong but the problem does exist. I am attaching a script that tests strptime(.., '%c') for all locales installed on my system (an unmodified US Mac OS X 10.6.6). The only failing locale that I recognize is Hebrew (he_IL). Eli, what d

[issue8957] strptime(.., '%c') fails to parse output of strftime('%c', ..) in some locales

2011-01-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- title: strptime('%c', ..) fails to parse output of strftime('%c', ..) in non-English locale -> strptime(.., '%c') fails to parse output of strftime('%c', ..) in some locales ___ Python tracker

[issue10885] multiprocessing docs

2011-01-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +asksol, jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2011-01-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +d...@python -georg.brandl stage: -> needs patch type: -> behavior versions: +Python 3.2 ___ Python tracker ___ ___

[issue10799] Improve webbrowser.open doc (and, someday, behavior?)

2011-01-11 Thread Éric Araujo
Éric Araujo added the comment: > I thought of adding 'http://' if not present but that would disable opening > files in a file browser. I think that’s a Windows-specific behavior, not a promise of the *web*browser module. -- nosy: +eric.araujo ___

[issue8957] strptime(.., '%c') fails to parse output of strftime('%c', ..) in some locales

2011-01-11 Thread Roumen Petrov
Roumen Petrov added the comment: - %T is equal for %H:%M:%S - locales with %A and %B are broken on this platform as %c is "Appropriate date and time representation (%c) with abbreviations" -- ___ Python tracker __

[issue9419] RUNSHARED needs LDFLAGS

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > build outside source tree fail for me and pass for python > developers :). So no idea how to convince them to fix this issue. I am collecting out of tree build failures in issue 9860. One issue that is easily reproducible is triggered when there are o

[issue8957] strptime(.., '%c') fails to parse output of strftime('%c', ..) in some locales

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Jan 11, 2011 at 7:26 PM, Roumen Petrov wrote: .. > - locales with %A and %B are broken on this platform as %c is "Appropriate > date and time representation (%c) with abbreviations" According to what standard? POSIX defines it as %c Replaced by

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

2011-01-11 Thread Glenn Linderman
Glenn Linderman added the comment: Pierre said: Since it works the same with 2 browsers and 2 web servers, I'm almost sure it's not dependant on the configuration - but if others can tests on different configurations I'd like to know the result So I showed in my just previous messages (after

[issue9419] RUNSHARED needs LDFLAGS

2011-01-11 Thread Roumen Petrov
Roumen Petrov added the comment: Alexander, I already answer to you case. About the patch it is part of issue3871 ;) -- ___ Python tracker ___ ___

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

2011-01-11 Thread Etienne Robillard
Etienne Robillard added the comment: On 11/01/11 07:36 PM, Glenn Linderman wrote: > Is there a newer standard these browsers are following, that permits UTF-8? > Or even requires it? > > Why is Pierre seeing cp-1252, and I'm seeing UTF-8? I'm running Windows 6.1 > (Build 7600), 64-bit, the s

[issue10225] Fix doctest runable examples in python manual

2011-01-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Terry, I'm unhappy with the changes to the sorting how-to. IMO, it was a not a net win (transforming code that already ran fine in something doctest would swallow). The code snippets now have the visual clutter of the ">>>" and "..." PS1 and PS2 prompts

[issue7662] time.utcoffset()

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am going to close this as superseded by #9527. All these issues, current, #9527, and #1647654 are really about Python's lack of access to the system timezone information and #9527 seem to be the most appropriate solution. My specific concern about pr

[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

2011-01-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- keywords: -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2011-01-11 Thread Glenn Linderman
Glenn Linderman added the comment: Aha! Found a page which links to another page that explains the behavior. The synopsis is that

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

2011-01-11 Thread Glenn Linderman
Glenn Linderman added the comment: I notice the version on this issue is Python 3.3, but it affects 3.2 and 3.1 as well. While I would like to see it fixed for 3.2, perhaps it is too late for that, with rc1 coming up this weekend? Could at least the non-deprecated parse functions be deprecat

[issue10225] Fix doctest runable examples in python manual

2011-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are two reasons I forward ported the changes. 1. Without running doctest on doc examples, they sometimes have errors either originally, after patches to the doc, or after patches to Python. On other issues, I found 4 errors in the json doc (probably ori

[issue10441] some stdlib modules need to be updated to handle SSL certificate validation

2011-01-11 Thread david
david added the comment: and what does it do ? -- title: some stdlib modules need to be updated to handle SSL certificate validation -> some stdlib modules need to be updated to handle SSL certificate validation ___ Python tracker

[issue10889] Fix range slicing and indexing to handle lengths > sys.maxsize

2011-01-11 Thread Nick Coghlan
Nick Coghlan added the comment: Committed as r87948. I added a few large_range tests to those in the patch. I checked that IndexError is raised when appropriate, as well as a specific test for the combination of a large range with a large negative step. -- __

  1   2   >