[issue46877] unittest.doModuleCleanups() does not exist

2022-02-27 Thread Martin Fischer
New submission from Martin Fischer : The unittest documentation[1] describes unittest.doModuleCleanups(). That function however doesn't exist since it's only in the unittest.case module and not re-exported in the unittest module (unlike addModuleCleanup). So I think either the doc

[issue46877] [doc] unittest.doModuleCleanups() does not exist

2022-02-28 Thread Martin Fischer
Change by Martin Fischer : -- title: unittest.doModuleCleanups() does not exist -> [doc] unittest.doModuleCleanups() does not exist ___ Python tracker <https://bugs.python.org/issu

[issue46879] [doc] incorrect sphinx object names

2022-02-28 Thread Martin Fischer
New submission from Martin Fischer : API members documented in sphinx have an object name, which allow the documentation to be linked from other projects. Sphinx calculates the object name by prefixing the current module name to the directive argument, e.g: .. module:: foo .. function

[issue46879] [doc] incorrect sphinx object names

2022-02-28 Thread Martin Fischer
Change by Martin Fischer : -- keywords: +patch pull_requests: +29739 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31615 ___ Python tracker <https://bugs.python.org/issu

[issue46884] [doc] msilib.rst uses data directive to document modules

2022-02-28 Thread Martin Fischer
New submission from Martin Fischer : As per [1] the py:data directive describes data in a module. It should not be used for submodules, that's what the module directive is for. A side-effect that this is causing is that msilib.schema, msilib.sequence and msilib.text do not show up i

[issue46884] [doc] msilib.rst uses data directive to document modules

2022-02-28 Thread Martin Fischer
Change by Martin Fischer : -- keywords: +patch pull_requests: +29744 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31620 ___ Python tracker <https://bugs.python.org/issu

[issue46884] [doc] msilib.rst uses data directive to document modules

2022-02-28 Thread Martin Fischer
Martin Fischer added the comment: ([2] was meant to be an online link: https://docs.python.org/3.9/py-modindex.html#cap-m) -- ___ Python tracker <https://bugs.python.org/issue46

[issue46880] zipfile library doesn't extract windows zip files properly on linux

2022-02-28 Thread Martin Fischer
Martin Fischer added the comment: Can you attach such a .zip file so that others can reproduce the bug? -- nosy: +push-f ___ Python tracker <https://bugs.python.org/issue46

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-07 Thread Martin Panter
Martin Panter added the comment: The ctypes overflow is probably the same as described in Issue 28169 and Issue 15119 -- nosy: +martin.panter ___ Python tracker <https://bugs.python.org/issue46

[issue1181] Redefine clear() for os.environ to use unsetenv() if possible

2007-09-19 Thread Martin Horcicka
New submission from Martin Horcicka: This patch makes os.environ.clear() to have the same effect as: for name in os.environ.keys(): del os.environ[name] I believe that most people expect the effects to be the same anyway. The practical benefit is a simpler redefinition of the whole

[issue1208] Match object should be guaranteed to always be true

2007-09-26 Thread Martin Horcicka
New submission from Martin Horcicka: Many people expect the match object from the re module to always be true. They use it this way: if regexp.match(string): do_something() Some people do not expect it and use it differently: if regexp.match(string) is not None: do_something() Even

[issue10363] Embedded python, handle (memory) leak

2011-10-28 Thread Martin Dunschen
Martin Dunschen added the comment: Hello Antoine Unloading would not be necessary if the DLL is just the python interpreter, but if you build a DLL with python embedded that does quite a bit more than some python interpreting (in my case complex C/C++ numerical calculations) unloading the DLL

[issue10278] add time.wallclock() method

2011-11-25 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue10278> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13482] _tkinter.TclError: invalid command name "tixDirSelectBox"

2011-11-26 Thread Martin Unzner
New submission from Martin Unzner : Hi all, while executing the following piece of code: import tkinter import tkinter.tix if __name__=='__main__': root = tkinter.Tk() dirlist = tkinter.tix.DirSelectBox(root) dirlist.pack() root.mainloop() the following erro

[issue13482] _tkinter.TclError: invalid command name "tixDirSelectBox"

2011-11-26 Thread Martin Unzner
Martin Unzner added the comment: Sorry, I just found the programming example in the documentary. Works now. -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue13592] repr(regex) doesn't include actual regex

2011-12-13 Thread Martin Häcker
New submission from Martin Häcker : When calling repr() on a compiled regex pattern like this: > import re > repr(re.compile('foo')) you don't get the pattern of the regex out of the compiled form. Also all my research has shown no getter to allow this. I noticed t

[issue13599] Compiled regexes don't show all attributes in dir()

2011-12-14 Thread Martin Häcker
New submission from Martin Häcker : When looking at a regex with dir() you don't get all available attributes - which is inconvenient as some very important ones (like .pattern) are not visible. To demonstrate: > import re > re.compile('foo').pattern '

[issue13599] Compiled regexes don't show all attributes in dir()

2011-12-14 Thread Martin Häcker
Martin Häcker added the comment: Indeed, I'm on version % python --version Python 2.7.1 Sorry. -- status: pending -> closed ___ Python tracker <http://bugs.python.org

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-20 Thread Martin Pool
Martin Pool added the comment: > I'm not sure why having a locale set to C or something invalid should be > considered a Python bug. Programs like bzr that hit these problems can tell their users, either in the docs or an error message, "change your locale to a UTF-8 one&

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-20 Thread Martin Pool
Martin Pool added the comment: On 21 December 2011 11:01, STINNER Victor wrote: > > Again: please read the discussion (in closed issues) explaing why we removed > it (and which problems it introduced). There's a lot of history, so I'm not sure exactly which problems you&#x

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-20 Thread Martin Pool
Martin Pool added the comment: On 21 December 2011 11:26, STINNER Victor wrote: > I never checked which locale is used by default for programs called by cron. > So I checked: on Fedora 16, programs start with a very few environment > variables, and LANG and LC_ALL are not set. Yo

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-20 Thread Martin Pool
Martin Pool added the comment: Thanks for the example. Like you say, realistically, all data exchanged with other programs and with the system needs to be in the same encoding. (User document content may be in something else.) On modern systems, this problem is solved by making the standard

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-20 Thread Martin Pool
Martin Pool added the comment: On 21 December 2011 12:16, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > So, you're complaining about something which works, kind of: > > $ touch héhé > $ LANG=C python3 -c "import os; print(os.listdir())" &g

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread Martin Pool
Martin Pool added the comment: On 21 December 2011 12:41, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> The standard encoding is UTF-8. > > How so? I don't know of any Linux or Unix spec which says so. If you get > the Linux heads to standardiz

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread Martin Pool
Martin Pool added the comment: On 22 December 2011 11:21, STINNER Victor wrote: > This discussion is becoming very long, I didn't remember the original > purpose. The proposal is that in some cases where Python currently assumes filenames are ascii on Linux, it ought to instead

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread Martin Pool
Martin Pool added the comment: On 22 December 2011 12:32, STINNER Victor wrote: > > STINNER Victor added the comment: > > On 22/12/2011 02:16, Martin Pool wrote: >> The proposal is that in some cases where Python currently assumes >> filenames are ascii on Linux, it

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread Martin Pool
Martin Pool added the comment: On 22 December 2011 13:15, STINNER Victor wrote: > You cannot pass directly "h\xe9.txt", but if you know the "correct" file > system encoding, you can encode it explicitly using str.encode("utf-8"). My recollection was

[issue12922] StringIO and seek()

2011-12-21 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue12922> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-23 Thread Martin Pool
Martin Pool added the comment: Terry, that's fine. Thanks to everyone who contributed to the discussion. -- ___ Python tracker <http://bugs.python.org/is

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

2012-01-11 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue4806> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11944] Function call with * and generator hide exception raised by generator.

2012-01-11 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue11944> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2012-01-11 Thread Martin Panter
Martin Panter added the comment: I haven’t tried to understand what the patches do, but Issue 5218 looks like a very similar problem with a patch including a test case. -- ___ Python tracker <http://bugs.python.org/issue4

[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message

2012-01-11 Thread Martin Panter
Martin Panter added the comment: See also Issue 4806 -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue5218> ___ ___ Python-bugs-list mailin

[issue12206] Documentation Std. Library 15.7.5 "LogRecord objects": Parameters: level(currently wrong) -> levelno (correct)

2011-05-29 Thread Martin Ponweiser
New submission from Martin Ponweiser : I hope the title is self-explanatory. -- assignee: docs@python components: Documentation messages: 137178 nosy: docs@python, mponweiser priority: normal severity: normal status: open title: Documentation Std. Library 15.7.5 "LogRecord ob

[issue12206] Documentation Std. Library 15.7.5 "LogRecord objects": Parameters: level(currently wrong) -> levelno (correct)

2011-05-30 Thread Martin Ponweiser
Martin Ponweiser added the comment: You are right, I should have looked closer -- sorry to all involved. Nevertheless this caused some confusion here. I guess mentioning the inconsistency in the documentation is out of the question. On Mon, May 30, 2011 at 10:10 AM, Petri Lehtinen wrote

[issue12360] Doc Typo

2011-06-18 Thread Martin Marcher
New submission from Martin Marcher : Slight typo in the docs. I don't quite know how to work with mercurial. Hope it'll just work to merge the bitbucket link. Typo is here: http://docs.python.org/py3k/library/asyncore.html#asyncore.dispatcher.handle_accepted (but also present in

[issue12360] Doc Typo

2011-06-18 Thread Martin Marcher
Martin Marcher added the comment: Fix repo link :( -- hgrepos: +31 ___ Python tracker <http://bugs.python.org/issue12360> ___ ___ Python-bugs-list mailin

[issue12360] Doc Typo

2011-06-18 Thread Martin Marcher
Changes by Martin Marcher : -- keywords: +patch Added file: http://bugs.python.org/file22405/2d9bc44963f6.diff ___ Python tracker <http://bugs.python.org/issue12

[issue4111] Add Systemtap/DTrace probes

2011-06-18 Thread Martin Marcher
Changes by Martin Marcher : -- nosy: +serverhorror ___ Python tracker <http://bugs.python.org/issue4111> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11397] os.path.realpath() may produce incorrect results

2011-08-19 Thread Martin Panter
Martin Panter added the comment: Another infinite loop that isn't caught in Python 3.2.1: With the symbolic link link => link/inside a readlink("link") call will keep looping. Anyhow, the proposed solution in issue11397_py32_2.patch does not account for paths with mu

[issue12791] Yield" leaks exception being handled as garbage

2011-08-19 Thread Martin Panter
New submission from Martin Panter : See attached "leaky_generator.py" demo. Python doesn't appear to delete the exception variable if an exception is thrown back into it (via "throw", "close" or by deleting it). The result is a reference cycle that needs gar

[issue10951] gcc 4.6 warnings

2011-08-21 Thread Martin Pool
Martin Pool added the comment: this fixes the pickle warnings, and cleans up some (I'm pretty sure) dead code in there. the pickle tests all pass. -- keywords: +patch nosy: +poolie Added file: http://bugs.python.org/file22980/20110822-1150-python-warnings

[issue10951] gcc 4.6 warnings

2011-08-21 Thread Martin Pool
Martin Pool added the comment: This fixes every compiler warning so that Python build with -Werror on Ubuntu Oneiric alpha (gcc 4.6.1-7ubuntu1). * PyMem_Resize is a macro that mutates its first argument; the return value shouldn't be used. * Some variables in sre are (appar

[issue1215] Python hang when catching a segfault

2011-08-21 Thread Martin Pool
Martin Pool added the comment: The documentation for this can now point to the faulthandler module (in Python 3). -- nosy: +poolie ___ Python tracker <http://bugs.python.org/issue1

[issue1215] documentation doesn't say that you can't handle C segfaults from python

2011-08-21 Thread Martin Pool
Changes by Martin Pool : -- title: Python hang when catching a segfault -> documentation doesn't say that you can't handle C segfaults from python ___ Python tracker <http://bugs.pyth

[issue1215] documentation doesn't say that you can't handle C segfaults from python

2011-08-21 Thread Martin Pool
Martin Pool added the comment: This patch tries to improve the documentation a bit more to address the issue that confused tebeka and to advertise faulthandler. Could someone review or apply it? -- keywords: +patch Added file: http://bugs.python.org/file22989/20110822-1525-signal

[issue10713] re module doesn't describe string boundaries for \b

2011-08-21 Thread Martin Pool
Martin Pool added the comment: > Note, 366 above confirms it's never true for an empty string. The documentation states that \B "is just the opposite of \b" yet re.match(r'\b', '') returns None and so does \B so \B isn't the opposite of \b in al

[issue10951] gcc 4.6 warnings

2011-08-21 Thread Martin Pool
Martin Pool added the comment: My patch above fixes all the messages so that you get a clean build with the current makefile. -Wuninitialized and 'offset outside constant string' would be worth fixing but I can't reproduce them in Python. I'm personally not so keen on f

[issue7584] datetime.rfcformat() for Date and Time on the Internet

2011-08-21 Thread Martin Pool
Martin Pool added the comment: Z is well established as meaning "UTC time" <http://en.wikipedia.org/wiki/Coordinated_Universal_Time#Time_zones> so shouldn't be used for "zone not known." rfc 3393 is clear that it's equivalent to +00:00. So the questio

[issue12860] http client attempts to send a readable object twice

2011-08-30 Thread Lang Martin
New submission from Lang Martin : on line 765 of client/http.py, the client loops over the read method, sending it's content to the web server. It appears as though the send method should return at this point; instead it falls through and attempts to send the data object through

[issue1215] documentation doesn't say that you can't handle C segfaults from python

2011-08-30 Thread Martin Pool
Martin Pool added the comment: On 31 August 2011 07:56, STINNER Victor wrote: > > STINNER Victor added the comment: > >> def handler(signal, stackframe): >>     print "OUCH" >>     stdout.flush() >>     _exit(1) > > What do you want to do

[issue9952] Martin Rinehart wants to stay in touch on LinkedIn

2010-09-26 Thread Martin Rinehart
New submission from Martin Rinehart : LinkedIn I'd like to add you to my professional network on LinkedIn. - Martin Rinehart Martin Rinehart Student at Strayer Online Greater New York City Area Confirm that you know Martin Rinehart https://www.linkedin.com/e/-3qcne3-gejswd

[issue9015] array.array.tofile cannot write arrays of sizes > 4GB, even compiled for amd64

2010-11-03 Thread Martin Spacek
Martin Spacek added the comment: NumPy is addressing this with a workaround in its ndarray, calling fwrite multiple times in reasonably sized chunks. See http://projects.scipy.org/numpy/ticket/1660 -- nosy: +mspacek type: -> crash ___ Pyt

[issue9015] f.write(s) for s > 2GB hangs in win64 (and win32?)

2010-11-04 Thread Martin Spacek
Martin Spacek added the comment: It turns out this isn't just a problem with array.array. It's a problem with Python's file.write() as well. Here's my test code: # file.write() test: FOURGBMINUS = 2**32 - 16 s = '0123456789012345' # 16 bytes longs = ''.

[issue9015] f.write(s) for s > 2GB hangs in win64 (and win32?)

2010-11-04 Thread Martin Spacek
Martin Spacek added the comment: I suppose someone should confirm this problem on Py > 2.6? -- components: +Extension Modules, Windows ___ Python tracker <http://bugs.python.org/iss

[issue9611] FileIO not 64-bit safe under Windows

2010-11-04 Thread Martin Spacek
Martin Spacek added the comment: We've got a near duplicate Issue9015. This thread seems more considered though :) Note that writing more than 2**32-1 bytes at once results in a hung process with 100% CPU in 64-bit Windows, which has to be killed with Task Manager. So I think that qual

[issue10363] Embedded python, handle (memory) leak

2010-11-08 Thread Martin Dunschen
New submission from Martin Dunschen : I found a number of 'handle leaks' in the core code to embed python into a C/C++ application on windows. To reproduce: The simplest possible embedded application only calls: #include void entry() { Py_Initialize(); Py_Finalize(); } I

[issue10363] Embedded python, handle (memory) leak

2010-11-09 Thread Martin Dunschen
Martin Dunschen added the comment: Here my suggested changes in plain text (I generated these as patches from a diff to the current code): thread.c: 353a354,359 > void PyThread_fini() > { > // should assert here that nkeys == 0 > PyThread_free_lock(keymutex); > }

[issue10363] Embedded python, handle (memory) leak

2010-11-11 Thread Martin Dunschen
Martin Dunschen added the comment: I have identified 5 cases where objects of type PyThread_type_lock are allocated but never freed again: import.c: import_lock pystate.c: head_mutex thread.c: key_mutex ceval.c: interpreter_lock zliblock.c: zlib_lock This leads to a

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2011-02-25 Thread Georges Martin
New submission from Georges Martin : Both httplib.HTTPMessage and email.message.Message classes[1] implements methods for RFC822 headers parsing. Unfortunately, they have different implementations and they do not provide the same level of functionality. One example that is bugging me is that

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2011-02-25 Thread Georges Martin
Georges Martin added the comment: Hello, David. According to issue4773, httplib.HTTPMessage in Python 3.x is using email.message.Message underneath, so my issue is only with 2.6 (I've not checked 2.7). Georges -- ___ Python tracker

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2011-02-25 Thread Georges Martin
Georges Martin added the comment: No problem. I thought important that the issue and a workaround were documented somehow... :-) -- ___ Python tracker <http://bugs.python.org/issue11

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-11-23 Thread Martin Budaj
New submission from Martin Budaj : The method Sniffer._guess_quote_and_delimiter() in the module csv.py contains a bug in a regexp which checks for quotes around the last item of the line (example: a,b,"c,d"\n). the pattern '(?P>[^\w\n"\'])(?P ?)(?P["\

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-11-24 Thread Martin Budaj
Martin Budaj added the comment: Units test and two patches for 2.7 are included. p1.patch fixes testEnd case reported yesterday After running unittest it seems that also other case is broken (testAl -- if there is just one data item on the line, enclosed in quotes). Patch p2 fixes it, but

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-12-04 Thread Martin Budaj
Martin Budaj added the comment: I'm not sure about what the intended behavior for testAl should be, however I think that the file should be recognized as having one column of data and no delimiter (there is a test for this case in csv.py) and not raise an exception. I attach patc

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-12-14 Thread Martin Budaj
Martin Budaj added the comment: > What do you mean by "there is a test for this case in csv.py"? I meant test in regex on line 217 in python 2.7 and the following code (line 258ff): # there is *no* delimiter, it's a single column of quoted data delim = '' skipi

[issue10759] HTMLParser.unescape() cannot handle HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-22 Thread Martin Potthast
New submission from Martin Potthast : The title says it all; try the minimal example. -- components: Library (Lib) files: parser-fail.py messages: 124506 nosy: Martin.Potthast priority: normal severity: normal status: open title: HTMLParser.unescape() cannot handle HTML entities with

[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-22 Thread Martin Potthast
Changes by Martin Potthast : -- title: HTMLParser.unescape() cannot handle HTML entities with incorrect syntax (e.g. &#hearts;) -> HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts;) ___ Python tra

[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-22 Thread Martin Potthast
Martin Potthast added the comment: I'd suggest to better verify the input and return such strings unchanged. -- type: -> behavior ___ Python tracker <http://bugs.python.org

[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-22 Thread Martin Potthast
Martin Potthast added the comment: Agreed. Here's a patch for HTMLParser. That was easy enough. With regard to tests, there seems to be already one called test_malformatted_charref in test_htmlparser.py. However, the test tests the whole parser and not only HTMLParser.unescape(). A

[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-22 Thread Martin Potthast
Martin Potthast added the comment: Why not simply remove the additional check in line 168 and leave the responsibility to check the validity of its input to the unescape function (be it explicitly or, like now, lazily). That way, the code changes are minimal, the existing test covers the

[issue2824] zipfile to handle duplicate files in archive

2008-05-13 Thread Martin McNickle
Martin McNickle <[EMAIL PROTECTED]> added the comment: The mechanism for throwing an error has been written, however for the case of a duplicated filename, it appears to have been deliberatly not been used by the original author.: def _writecheck(self, zinfo): ""&

[issue2868] Problem with urllib and urllib2 in urlopen?

2008-05-17 Thread Martin McNickle
Martin McNickle <[EMAIL PROTECTED]> added the comment: I verified the behaviour but this is a problem with that particular site, not with urllib/urllib2. Should be closed. -- nosy: +BitTorment __ Tracker <[EMAIL PROTECTED]> <http://

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2008-06-15 Thread Martin Wilck
Martin Wilck <[EMAIL PROTECTED]> added the comment: I am not in my office. I'll be back on June 30, 2008. In urgent cases, please contact: Peter Pols <[EMAIL PROTECTED]> or Gerhard Wichert <[EMAIL PROTECTED]> Best regards Martin Wilck Added file: http://bugs.pytho

[issue3234] subprocess.py strips last character when raising an AttributeError

2008-06-29 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: I try to get working pipe emulation using Popen. I try to pass StringIO object to p1.stdin of the first process and I got the following: File "/usr/lib/python2.5/subprocess.py", line 587, in __init__ errread,

[issue3235] Improve subprocess module usage

2008-06-29 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: Although I do appreciate that you try to improve python it is not clear to me from http://docs.python.org/lib/module-subprocess.html: 1. Why the old functions have been deprecated 2. I can pipe together two processes. But how can

[issue3235] Improve subprocess module usage

2008-06-29 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: Please link to http://www.python.org/dev/peps/pep-0324/ from the docs webpage at least. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3235] Improve subprocess module usage

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: Georg, but would you please improve the docs explaining what communicate really does? The syntax is nice but I don't see how can I use poll() described in the same above to use that. Providing Examples section would be the best.

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-02 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: Hi, although the issues libraries to be created with -fpic are known I still do believe ./config could do something here: building 'crypt' extension gcc -shared -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: Hi, when building on Solaris 2.6 with gcc I get the following error: building '_ctypes' extension gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/.

[issue3266] Python-2.5.2/Modules/mmapmodule.c:915: error: `O_RDWR' undeclared

2008-07-02 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: Some typo in the sources showing up on Solaris 2.6 only? building 'mmap' extension gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/./Include -I. -IInc

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: # ar tv /usr/lib/libcrypt.a rw-rw-r-- 0/1 1296 Jul 16 05:57 1997 crypt.o rw-rw-r-- 0/1 4996 Jul 16 05:57 1997 cryptio.o rw-rw-r-- 0/1 1508 Jul 16 05:57 1997 des_encrypt.o rw-rw-r-- 0/1 5356 Jul 16 05:58 1997 des_crypt.o # ls -l

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: A Goggle search gives between many others: http://gcc.gnu.org/ml/gcc/2000-09/msg00054.html http://www.ravenbrook.com/project/mps/master/design/vmso/ http://developers.sun.com/solaris/articles/read_mmap.html Added file: http://bugs.pyth

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: http://unix.derkeiler.com/Newsgroups/comp.unix.solaris/2004-07/0256.html http://source.winehq.org/source/libs/wine/mmap.c I will stop posting URLs. ;-) ___ Python tracker <[EMAIL PROTECTE

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: # ar x /usr/lib/libcrypt.a;nm -g des_crypt.o U ___errno 033c T _des_crypt 0274 T _des_encrypt U _des_encrypt1 01b0 T _des_setkey U _mutex_lock U _mutex_unlock U _thr_getsp

[issue3266] Python-2.5.2/Modules/mmapmodule.c:915: error: `O_RDWR' undeclared

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: So adding these two lines helped: # diff /usr/scratch/Python-2.5.2/Modules/mmapmodule.c.ori /usr/scratch/Python-2.5.2/Modules/mmapmodule.c 36a37 > #include 38a40 > #include # ___ Python tra

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: Thanks, but I can only help with testing. :( ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-03 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: Could it be the name clashing problem between -lcrypt and -lcrypto? bash-3.00# ar x /usr/lib/libcrypt.a;nm -g des_crypt.o U ___errno 033c T _des_crypt 0274 T _des_encrypt U _des_encrypt1 01b0 T _des_

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-03 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: You say "did always work"? http://mail.python.org/pipermail/python-list/2002-December/177479.html Maybe the reason why in ruby they forced to -shared flag because it was possible to link only with the shared library? I

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-03 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: Confirming the enabling line 216 like below helped. Thanks. Maybe change "Resolution"? 204 # Socket module helper for SSL support; you must comment out the other 205 # socket line above, and possibly edit the SSL v

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2008-08-14 Thread Martin Wilck
Martin Wilck <[EMAIL PROTECTED]> added the comment: I am not in my office. I'll be back on August 25, 2008. In urgent cases, please contact: Peter Pols <[EMAIL PROTECTED]> or Gerhard Wichert <[EMAIL PROTECTED]> Best regards Martin Wilck Added file: http://bu

[issue3942] Usability issue from not being able to use defined start and end code block markers

2008-09-22 Thread Martin Meredith
New submission from Martin Meredith <[EMAIL PROTECTED]>: Recently, a blind user posted on Stack Overflow asking whether there was something that would allow them to use braces within python. They have a point, with only tabs being show in the editor, it can be very confusing for a blin

[issue4094] "Future statements" Doc from 2.6 refers to 2.5

2008-10-09 Thread Martin Marcher
New submission from Martin Marcher <[EMAIL PROTECTED]>: http://docs.python.org/reference/simple_stmts.html#future-statements says this: """ The features recognized by Python 2.5 are absolute_import, division, generators, nested_scopes and with_statement. generators

[issue7721] Code in xrange documentation does not work

2010-01-16 Thread Martin Manns
New submission from Martin Manns : In the Python 2.6.4 documentation "2. Built-in Functions" at http://docs.python.org/library/functions.html, the section about the xrange function (paragraph "CPython implementation detail") contains the following code: islice(count(start

[issue7721] Code in xrange documentation does not work

2010-01-16 Thread Martin Manns
Martin Manns added the comment: The new snippet does not work for me: >>> list(irange(-12, 20, 4)) [-12, -8, -4, 0, 4] I have attached code that seems to work. It is more than a snipped though. -- Added file: http://bugs.python.org/file15922/

[issue7721] Code in xrange documentation does not work

2010-01-16 Thread Martin Manns
Martin Manns added the comment: The new snippet works better. >>> list(irange(-12, 20, 4)) [-12, -8, -4, 0, 4, 8, 12, 16] However, it does not like large or negative slices: >>> list(irange(-2**65,2**65,2**61)) Traceback (most recent call last): File "", line

[issue7721] Code in xrange documentation does not work

2010-01-16 Thread Martin Manns
Martin Manns added the comment: Great solution! Thank you -- ___ Python tracker <http://bugs.python.org/issue7721> ___ ___ Python-bugs-list mailing list Unsub

[issue7721] Code in xrange documentation does not work

2010-02-20 Thread Martin Manns
Martin Manns added the comment: So could we replace "If a larger range is needed, an alternate version can be crafted using the itertools module: islice(count(start, step), (stop-start+step-1)//step)." by "If a larger range is needed, an alternate version can be crafted using

[issue8157] test_doctest.py fails with unexpected results in doctest.testfile

2010-03-16 Thread Martin Ducár
New submission from Martin Ducár : During python regrtest.py i have found that doctest test module does not count with expected output when using testfile test_doctest.txt. Example output of the test: - File "/us

[issue8356] SyntaxError: integer assignment with leading zeros (only 8 and 9)

2010-04-09 Thread Martin Zimmermann
New submission from Martin Zimmermann : try this: x = (05, 06, 07) y = (08, 09, 019) you will get SyntaxError: invalid token. (also in python 2.5.2) -- components: Interpreter Core messages: 102706 nosy: posativ severity: normal status: open title: SyntaxError: integer assignment with

<    1   2   3   4   5   6   7   8   9   10   >