[issue1215] Python hang when catching a segfault

2007-09-27 Thread Miki Tebeka
New submission from Miki Tebeka: The following code hangs Python: #!/usr/bin/env python import segfault import signal from os import _exit from sys import stdout def handler(signal, stackframe): print "OUCH" stdout.flush() _exit(1) if __name__ == "__main__":

[issue1215] Python hang when catching a segfault

2007-09-28 Thread Miki Tebeka
Miki Tebeka added the comment: Because it hangs Python :) I know, "while 1: pass" also hangs Python, however it'll nice if this behaviour was documented or (IMO better) that Python will raise an InvalidArgument exception on SIGSEGV (like it d

[issue1453] Python does not honor "CFLAGS" environment variable

2007-11-16 Thread Miki Tebeka
Miki Tebeka added the comment: I'll try to be clearer: `./configure --help` states (at the end): Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries

[issue1453] Python does not honor "CFLAGS" environment variable

2007-11-16 Thread Miki Tebeka
New submission from Miki Tebeka: Setting CFLAGS environment variable do not show up in the build process, the gcc flags do not include the CFLAGS flags. -- components: Build messages: 57588 nosy: tebeka severity: normal status: open title: Python does not honor "CFLAGS" e

[issue1453] Python does not honor "CFLAGS" environment variable

2007-11-16 Thread Miki Tebeka
Miki Tebeka added the comment: OK, let's close it then. (However note that in two projects I've checked - vim and pcre the CFLAGS environment variable do get reflected in the build process) Any "standard" way to add custom compilation flags?. __

[issue12402] Overriding code.InteractiveConsole.write does not work

2011-06-24 Thread Miki Tebeka
New submission from Miki Tebeka : Consider the following code: import code class Console(code.InteractiveConsole): def write(self, data): print("DATA: {0}".format(data)) c = Console() c.interact() Then enter "1" at the prompt. The outpu

[issue12402] Overriding code.InteractiveConsole.write does not work

2011-06-24 Thread Miki Tebeka
Miki Tebeka added the comment: I'm trying to read/write data from a socket. Does this mean I need to roll up my own Interpreter? (e.g. no way to override writing to stdout?) Since this is the expected behaviour, will close this one. -- status: closed -&

[issue12403] Allow overriding of writing to stdout in code.InteractiveConsole

2011-06-24 Thread Miki Tebeka
New submission from Miki Tebeka : Currently, code.InteractiveConsole lets your override "write" which is the error stream. Allow overriding of "normal" (stdout) writing as well. This will enable to spawn interpreters into custom stdin/stdout. See twisted.manhole for

[issue12403] Mention sys.displayhook in code module docs and the compile builtin docs

2011-06-25 Thread Miki Tebeka
Miki Tebeka added the comment: Yeah, I though about using dup2 from stdout/stderr to the socket. However this means I can connect only one client at a time. Which was an issue I was trying to avoid. Didn't think about print statements though ... T

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-22 Thread Miki Tebeka
New submission from Miki Tebeka : Currently urllib.request.Request decides if it's a "GET" or "POST" by the presence of data. However sometimes you want to do an "POST" request without data (in my case, it Crucible REST API). Or provide another method. Th

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-22 Thread Miki Tebeka
Changes by Miki Tebeka : -- type: -> feature request ___ Python tracker <http://bugs.python.org/issue12614> ___ ___ Python-bugs-list mailing list Unsubscri

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-22 Thread Miki Tebeka
Changes by Miki Tebeka : -- components: +Library (Lib) ___ Python tracker <http://bugs.python.org/issue12614> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-25 Thread Miki Tebeka
Changes by Miki Tebeka : -- hgrepos: +46 Added file: http://bugs.python.org/file22753/request-method.diff ___ Python tracker <http://bugs.python.org/issue12

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-26 Thread Miki Tebeka
Changes by Miki Tebeka : -- hgrepos: +48 ___ Python tracker <http://bugs.python.org/issue12614> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-26 Thread Miki Tebeka
Changes by Miki Tebeka : -- hgrepos: +49 ___ Python tracker <http://bugs.python.org/issue12614> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-26 Thread Miki Tebeka
Miki Tebeka added the comment: My bad about the hg location, it was a private repo (for some reason this is the bitbucket default). I tried to remove the other repos, but for some reason this doesn't work. The right one is https://bitbucket.org/tebeka/cpython#request-m

[issue6064] Add "daemon" argument to threading.Thread constructor

2011-02-25 Thread Miki Tebeka
Miki Tebeka added the comment: Thank you! On Fri, Feb 25, 2011 at 2:08 PM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > I corrected the patches (they were breaking the property of inheriting daemon > by default) and committed them in r8

[issue11797] 2to3 does not correct "reload"

2011-04-07 Thread Miki Tebeka
New submission from Miki Tebeka : The following code is not changed by 2to3:: import os reload(os) reload has moved to the imp module. -- components: 2to3 (2.x to 3.0 conversion tool) messages: 133223 nosy: tebeka priority: normal severity: normal status: open title: 2to3

[issue11797] 2to3 does not correct "reload"

2011-04-07 Thread Miki Tebeka
Miki Tebeka added the comment: Raymond: Sometimes I store configuration in Python files and would like to reload the configuration. -- ___ Python tracker <http://bugs.python.org/issue11

[issue2736] datetime needs an "epoch" method

2010-12-17 Thread Miki Tebeka
Changes by Miki Tebeka : -- nosy: -tebeka ___ Python tracker <http://bugs.python.org/issue2736> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3548] subprocess.pipe function

2011-01-03 Thread Miki Tebeka
Changes by Miki Tebeka : -- nosy: -tebeka ___ Python tracker <http://bugs.python.org/issue3548> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9527] Add aware local time support to datetime module

2011-01-30 Thread Miki Tebeka
Changes by Miki Tebeka : -- nosy: -tebeka ___ Python tracker <http://bugs.python.org/issue9527> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-20 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: Still hangs for me on the 2.6 trunk on Ubuntu 8.04 -- nosy: +tebeka ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-20 Thread Miki Tebeka
New submission from Miki Tebeka <[EMAIL PROTECTED]>: See gray area in attached screenshot -- assignee: georg.brandl components: Documentation files: doc.png messages: 68479 nosy: georg.brandl, tebeka severity: normal status: open title: "Quick search" box renders too l

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-20 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: Using final version (on Ubuntu 8.04) ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3154> ___

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-20 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: Jesse, I just run "make test", it runs until test_multiprocessing and then hangs there ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-27 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: I see the big search box on http://docs.python.org/dev/. The "gray box" is just me highlighting the problematic area in the picture, not in the actual web site. Sorry I wasn't clear about that. My settings i

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-27 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: Changing the default font in FF to 14 points seems to fix the problem (my default is 22). ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-27 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: When someone reports a problem in a web site, one of the worst answers is "it's a browser bug - we're not going to fix it". I agree this should be moved to a lower priority, but closin

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: Still hangs for me on revision 64665 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3088> ___

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: I just run "make test" and it never moves past test_multiprocessing. Maybe it's my machine which is dual cpu quad core (total of 8 cores)? ___ Python tracker <[EMAIL PROTECTED]&

[issue3345] Patch for CGIHTTPServer.is_cgi function documentation

2008-07-11 Thread Miki Tebeka
New submission from Miki Tebeka <[EMAIL PROTECTED]>: The current documentation is wrong and does not specify the fact that this functions sets "cgi_info" (maybe also rename the function?) -- assignee: georg.brandl components: Documentation files: CGIHTTPServer.py.diff

[issue3088] test_multiprocessing hangs intermittently on POSIX platforms

2008-07-18 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: I confirm this is solved for me in beta 2 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1592] operations on closed shelves fail cryptically

2008-07-25 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: Any reason this is not in trunk yet? -- nosy: +tebeka ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3548] subprocess.pipe function

2008-08-12 Thread Miki Tebeka
New submission from Miki Tebeka <[EMAIL PROTECTED]>: Attached is a patch that add "pipe" command to the "subprocess" module. pipe(["ls"], ["grep", "test_"]) will return the output of "ls | grep test_". -- components: Li

[issue3548] subprocess.pipe function

2008-08-12 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: Not sure about the name, maybe "chain" will be better? ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue3593] subprocess + stdout redirection + wait + svn= hang

2008-08-18 Thread Miki Tebeka
New submission from Miki Tebeka <[EMAIL PROTECTED]>: The attached script hangs on Ubuntu + Python 2.5.2. When make the limit smaller (like 10) or not redirecting stdout, it works. Running the svn command from shell took about 4sec, I gave up on the script after a minute. I tried it bot

[issue4017] IDLE 2.6 broken on OSX (Leopard)

2008-10-05 Thread Miki Tebeka
Changes by Miki Tebeka <[EMAIL PROTECTED]>: -- nosy: +tebeka ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4017> ___ ___ Python

[issue4017] IDLE 2.6 broken on OSX (Leopard)

2008-10-05 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: FWIW, installing MacPorts tcl and tk (8.5.4) didn't help ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue4057] Popen(..., cwd=...) does not set PWD environment variable

2008-10-06 Thread Miki Tebeka
New submission from Miki Tebeka <[EMAIL PROTECTED]>: [21:26] pwd-bug $cat m #!/usr/bin/env python from subprocess import Popen Popen(["./t"], cwd="./p") [21:26] pwd-bug $cat p/t #!/usr/bin/env python from os import environ print environ["PWD"] [21:2

[issue1083] Confusing error message when dividing timedelta using /

2010-03-18 Thread Miki Tebeka
Miki Tebeka added the comment: I see the same problem when "from __future__ import division" on the 2.x series. Seem like the timedelta objects is missing the __truediv__ method. -- nosy: +tebeka versions: +Python 2.7 ___ Python trac

[issue1083] Confusing error message when dividing timedelta using /

2010-03-31 Thread Miki Tebeka
Miki Tebeka added the comment: It's marked on 2.7 due to the following (this is svn 79528) >>> from datetime import timedelta >>> d = timedelta(1) >>> d / 2 datetime.timedelta(0, 43200) >>> d // 2 datetime.timedelta(0, 43200) >>> from __future_

[issue1530] doctest should return error if not all tests passed

2007-11-30 Thread Miki Tebeka
New submission from Miki Tebeka: python -mdoctest mymodule should return an error to the OS when a test fails. See patch. -- components: Library (Lib) files: doctest.py.diff messages: 58020 nosy: tebeka severity: normal status: open title: doctest should return error if not all tests

[issue1530] doctest should return error if not all tests passed

2007-12-10 Thread Miki Tebeka
Miki Tebeka added the comment: Thank you for accepting it :) __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1530> __ ___ Python-bugs-list mailing list Unsubs

[issue1220212] os.kill on windows

2008-01-11 Thread Miki Tebeka
Miki Tebeka added the comment: > Users should substitute their popen and exec calls with subprocess As long as popen and exec are available, users are free to use them (and probably will :) The Popen(...).terminate() works only if I'm the one who started the process. However there a

[issue908316] pdb should hash stdout

2008-02-06 Thread Miki Tebeka
Miki Tebeka added the comment: Looks closed to me, tried `./t.py t.py`, it worked Added file: http://bugs.python.org/file9374/t.py Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/is

[issue2229] Search in 2.6 docs does not work

2008-03-03 Thread Miki Tebeka
New submission from Miki Tebeka: Try searching for anything on http://docs.python.org/dev/search.html No result is shown (at least on FireFox and IE7). -- components: Documentation messages: 63242 nosy: tebeka severity: normal status: open title: Search in 2.6 docs does not work type

[issue2227] time.strptime too strict? should it assume current year?

2008-03-20 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: Here is a patch, hope it'll make it to 2.6 -- keywords: +patch nosy: +tebeka Added file: http://bugs.python.org/file9788/_strptime.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2669] bsddb iterkeys sliently fails when database modified during iteration

2008-04-22 Thread Miki Tebeka
New submission from Miki Tebeka <[EMAIL PROTECTED]>: >>> db = bsddb.btopen("/tmp/n") >>> for i in range(5): db[str(i)] = None >>> db {'1': '', '0': '', '3': '', '2': &#x

[issue2736] datetime needs and "epoch" method

2008-05-01 Thread Miki Tebeka
New submission from Miki Tebeka <[EMAIL PROTECTED]>: If you try to convert datetime objects to seconds since epoch and back it will not work since the microseconds get lost: >>> dt = datetime(2008, 5, 1, 13, 35, 41, 56) >>> seconds = mktime(dt.timetuple()) >>&g

[issue2736] datetime needs and "epoch" method

2008-05-10 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: I think the name is not good, should be "toepoch" or something like that. __ Tracker <[EMAIL PROTECTED]> <http://

[issue4124] Patch for adding "default" to itemgetter and attrgetter

2008-10-14 Thread Miki Tebeka
New submission from Miki Tebeka <[EMAIL PROTECTED]>: This is a patch for adding "default" keyword to itemgetter and attrgetter. This way you can do: >>> f = itemgetter(0, default=1) >>> f([]) 1 >>> f= attrgetter("a", default="b"

[issue4356] Add "key" argument to "bisect" module functions

2008-11-19 Thread Miki Tebeka
New submission from Miki Tebeka <[EMAIL PROTECTED]>: It'd be helpful of the functions in the "bisect" modules will have a "key" argument just like "sort". -- messages: 76060 nosy: tebeka severity: normal status: open title: Add &q

[issue4356] Add "key" argument to "bisect" module functions

2008-11-19 Thread Miki Tebeka
Changes by Miki Tebeka <[EMAIL PROTECTED]>: -- components: +Library (Lib) type: -> feature request versions: +Python 2.7, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue4356] Add "key" argument to "bisect" module functions

2008-11-21 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: I agree you can get around this with defining __cmp__, however same goes to "sort" and it was added anyway. My take on it is that sometimes I need to find something in a big list of objects, and I don't like to do DSU and n

[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X

2008-12-19 Thread Miki Tebeka
Changes by Miki Tebeka : -- nosy: -tebeka ___ Python tracker <http://bugs.python.org/issue4017> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4124] Patch for adding "default" to itemgetter and attrgetter

2009-02-02 Thread Miki Tebeka
Miki Tebeka added the comment: Hmmm, too much time has passed and my 1bit memory has overflowed since :) IIRC it has to do with the fact that not all nodes in BeautifulSoup has a "name" attribute. I wanted to count how may "tr" there were, so len(filter(lambda n: n ==

[issue4124] Patch for adding "default" to itemgetter and attrgetter

2009-02-03 Thread Miki Tebeka
Miki Tebeka added the comment: Can't we find a faster dog for lambda :) Anyway, I agree that we need to see more demand for that before going on. Let's keep this ticket open and see if someone else comes along. ___ Python tracker <http://bu

[issue38222] pathlib Path objects should support __format__

2019-09-18 Thread Miki Tebeka
New submission from Miki Tebeka : Currently pathlib.Path cannot be used with string formatting directives. IMO it should. >>> from pathlib import Path >>> path = Path('/path/to/enlightenment') >>> print(f'path is: {path:>50}') Traceb

[issue38222] pathlib Path objects should support __format__

2019-09-19 Thread Miki Tebeka
Miki Tebeka added the comment: I don't think it violates " Explicit is better than implicit." There's a lot of work done to make pathlib.Path objects work in places where str or bytes is expected (e.g PEP 519), IMO

[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

2021-04-09 Thread Miki Tebeka
Miki Tebeka added the comment: I agree with Raymond, this is not "beginner friendly". I've been using Python for 25 year and teaching it for about 10 and this topic never came up. -- nosy: +tebeka ___ Python tracker <https

[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-16 Thread Miki Tebeka
Miki Tebeka added the comment: I'm +1 on the changes proposed by Raymond. In my teaching experience most developers who will use the built-in statistics package will have highschool level math experience. On the other hand, they'll probably to Wikipedia and the entry there uses

[issue41254] Add to/from string methods to datetime.timedelta

2020-07-08 Thread Miki Tebeka
New submission from Miki Tebeka : I suggest adding datetime.timedelta methods that convert to/from str. The reason is that I have several places where configuration contains various timeouts. I'd like to write '50ms' and not 0.05 which is more human readable. See https://gola

[issue41254] Add to/from string methods to datetime.timedelta

2020-07-09 Thread Miki Tebeka
Miki Tebeka added the comment: I think the lack sub second parts in these formats is a disadvantage. There's a merit in using a standard but IMO it's more natural to write someting like "2s" in a configuration value than "P

[issue13865] distutils documentation says Extension has "optional" argument

2012-01-25 Thread Miki Tebeka
New submission from Miki Tebeka : The Extension documentation says: 2.3.5. Other options There are still some other options which can be used to handle special cases. The optional option is a boolean; if it is true, a build failure in the extension will not abort the build process

[issue13865] distutils documentation says Extension has "optional" argument

2012-01-25 Thread Miki Tebeka
Changes by Miki Tebeka : -- assignee: -> docs@python components: +Documentation nosy: +docs@python versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issu

[issue14214] test_concurrent_futures hangs

2012-03-06 Thread Miki Tebeka
New submission from Miki Tebeka : Running "make test" on 3.3a source tree on Ubuntu 11.10 (64bit) hangs at test_concurrent_futures -- components: Tests messages: 155043 nosy: tebeka priority: normal severity: normal status: open title: test_concurrent_futures hangs versions:

[issue14214] test_concurrent_futures hangs

2012-03-07 Thread Miki Tebeka
Miki Tebeka added the comment: I happended several times. Ran it this morning an got passed it, however other tests failed though: == ERROR: test_anydbm_creation (test.test_dbm.TestCase-dbm.ndbm

[issue14214] test_concurrent_futures hangs

2012-03-09 Thread Miki Tebeka
Miki Tebeka added the comment: Of course now the tests pass and I can't reproduce it. Sorry. You can close the issue or wait to see if someone else has the same problem. -- ___ Python tracker <http://bugs.python.org/is

[issue14384] Add "default" kw argument to operator.itemgetter and operator.attrgetter

2012-03-21 Thread Miki Tebeka
New submission from Miki Tebeka : This way they will behave more like getattr and the dictionary get. If default is not specified, then if the item/attr not found, an execption will be raised, which is the current behavior. However if default is specified, then return it in case when item

[issue14384] Add "default" kw argument to operator.itemgetter and operator.attrgetter

2012-03-22 Thread Miki Tebeka
Miki Tebeka added the comment: python-ideas post at https://groups.google.com/d/msg/python-ideas/lc_hkpKNvAg/ledftgY0mFUJ -- ___ Python tracker <http://bugs.python.org/issue14

[issue3177] Add shutil.open

2012-04-27 Thread Miki Tebeka
Miki Tebeka added the comment: Just to note there's http://pypi.python.org/pypi/desktop/0.4 out there. -- nosy: +tebeka ___ Python tracker <http://bugs.python.org/i

[issue14895] test_warnings.py EnvironmentVariableTests is a bad test

2012-05-23 Thread Miki Tebeka
New submission from Miki Tebeka : EnvironmentVariableTests depends on format of string representation of objects. While working on Jython 2.7 the test failed due to: AssertionError: "[u'ignore::DeprecationWarning']" != "['ignore::DeprecationWarning']"

[issue1228112] code.py use sys.excepthook to display exceptions

2012-08-20 Thread Miki Tebeka
Miki Tebeka added the comment: Seems like #12643 did solve this. Closing. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/iss

[issue19240] iglob should try to use `readdir`

2013-10-12 Thread Miki Tebeka
New submission from Miki Tebeka: Currently glob.iglob calls os.listdir internally. Which means that if there are many files in the directory - a big list of them is created in memory. iglob should try to use readdir and be a "true" iterator, not consuming a lot of memory. See on

[issue22240] argparse support for "python -m module" in help

2014-08-20 Thread Miki Tebeka
New submission from Miki Tebeka: "python -m module -h" starts with usage: __main__.py It should be usage: python -m module -- components: Library (Lib) files: prog.diff keywords: patch messages: 225586 nosy: tebeka priority: normal severity: normal status: open title

[issue22240] argparse support for "python -m module" in help

2014-08-22 Thread Miki Tebeka
Miki Tebeka added the comment: For zip file the help should probably be: usage: python file.zip -- ___ Python tracker <http://bugs.python.org/issue22

[issue22240] argparse support for "python -m module" in help

2014-08-24 Thread Miki Tebeka
Miki Tebeka added the comment: New patch with handling of zip files. -- Added file: http://bugs.python.org/file36453/prog2.diff ___ Python tracker <http://bugs.python.org/issue22

[issue22240] argparse support for "python -m module" in help

2014-08-24 Thread Miki Tebeka
Miki Tebeka added the comment: How can you run a package without -m? -- ___ Python tracker <http://bugs.python.org/issue22240> ___ ___ Python-bugs-list mailin

[issue22240] argparse support for "python -m module" in help

2014-08-24 Thread Miki Tebeka
Miki Tebeka added the comment: Made the test more robust by using sys.executable in the comparison. -- Added file: http://bugs.python.org/file36461/prog3.diff ___ Python tracker <http://bugs.python.org/issue22

[issue22240] argparse support for "python -m module" in help

2014-08-26 Thread Miki Tebeka
Miki Tebeka added the comment: Support for directory invocation as well. -- Added file: http://bugs.python.org/file36476/prog3.diff ___ Python tracker <http://bugs.python.org/issue22

[issue22240] argparse support for "python -m module" in help

2014-09-08 Thread Miki Tebeka
Miki Tebeka added the comment: Anything else I need to solve to get this patch accepted? -- ___ Python tracker <http://bugs.python.org/issue22240> ___ ___ Pytho

[issue22240] argparse support for "python -m module" in help

2014-09-10 Thread Miki Tebeka
Miki Tebeka added the comment: Thanks Paul, will work on that. -- ___ Python tracker <http://bugs.python.org/issue22240> ___ ___ Python-bugs-list mailin

[issue22240] argparse support for "python -m module" in help

2014-09-10 Thread Miki Tebeka
Miki Tebeka added the comment: I don't like changing code just to accommodate testing. Will try to think of a way to solve this. -- ___ Python tracker <http://bugs.python.org/is

[issue17557] test_getgroups of test_posix can fail on OS X 10.8 if more than 16 groups

2014-02-11 Thread Miki Tebeka
Miki Tebeka added the comment: I still see this in 3.4rc1 == FAIL: test_getgroups (test.test_posix.PosixTester) -- Traceback (most recent call last): File

[issue1468223] Hitting CTRL-C while in a loop closes IDLE on cygwin

2009-03-28 Thread Miki Tebeka
Miki Tebeka added the comment: Happily(?) I don't use Windows anymore. Closing it. -- status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue5825] Patch to add "remove" method to tempfile.NamedTemporaryFile

2009-04-23 Thread Miki Tebeka
New submission from Miki Tebeka : Adding "remove" method to NamedTemporaryFile will reduce the need to import os.unlink when creating a NamedTemporaryFile with delete=False. -- components: Library (Lib) files: tempfile.diff keywords: patch messages: 86387 nosy: tebeka severi

[issue6064] Add "daemon" argument to threading.Thread constructor

2009-05-19 Thread Miki Tebeka
New submission from Miki Tebeka : It would be nice if threading.Thread constructor will have a "daemon" argument as well. This way we'll be able to write Thread(target=some_function, daemon=1).start() Instead of currently writing t = Thread(target=some_function)

[issue6064] Add "daemon" argument to threading.Thread constructor

2009-05-20 Thread Miki Tebeka
Miki Tebeka added the comment: Attaching a patch against trunk (at revision 72805). -- keywords: +patch Added file: http://bugs.python.org/file14029/threading.diff ___ Python tracker <http://bugs.python.org/issue6

[issue6080] Itertools objects are missing "send"

2009-05-21 Thread Miki Tebeka
New submission from Miki Tebeka : Some (most?) of the itertools functions "generators" do not supprt "send". >>> from itertools import count >>> n = count(0) >>> n.next() 0 >>> n.send(1) Traceback (most recent call last): File "&

[issue6080] Itertools objects are missing "send"

2009-05-21 Thread Miki Tebeka
Miki Tebeka added the comment: My bad, thought that every iterator is supposed to implement "send". I still think that "count" and "repeat" can support and use it. -- status: open -> closed ___ Python tracker

[issue6064] Add "daemon" argument to threading.Thread constructor

2009-05-21 Thread Miki Tebeka
Miki Tebeka added the comment: I think that self.__daemonic = daemon or self._set_daemon() is wrong, need to thing about it. -- ___ Python tracker <http://bugs.python.org/issue6

[issue6064] Add "daemon" argument to threading.Thread constructor

2009-06-17 Thread Miki Tebeka
Miki Tebeka added the comment: I'm attaching a new diff (svn diff > threading.diff), hope this one's OK. -- Added file: http://bugs.python.org/file14312/threading.diff ___ Python tracker <http://bugs.pyth

[issue6064] Add "daemon" argument to threading.Thread constructor

2009-06-17 Thread Miki Tebeka
Miki Tebeka added the comment: I'm diffing against the 2.7 branch, I guess your comes from the 3.2? Will checkout 3.2 and do it there as well. -- ___ Python tracker <http://bugs.python.org/i

[issue6064] Add "daemon" argument to threading.Thread constructor

2009-06-17 Thread Miki Tebeka
Miki Tebeka added the comment: Attaching a diff against the py3k branch on revision 73468 -- Added file: http://bugs.python.org/file14314/threading3k.diff ___ Python tracker <http://bugs.python.org/issue6

[issue9111] cmd.do_help documentation should mention docstrings

2010-06-28 Thread Miki Tebeka
New submission from Miki Tebeka : cmd.Cmd looks for help either by searching for help_XXX method or by the docstring of do_XXX. The latter is not mentioned in the docs. -- components: Library (Lib) messages: 108883 nosy: tebeka priority: normal severity: normal status: open title

[issue28972] Document all "python -m" utilities

2016-12-14 Thread Miki Tebeka
New submission from Miki Tebeka: Several modules can be invoked with -m and are pretty handy (json.tool, zipfile, tarfile ...). There should be a section in the documentation that groups all of these "python -m" tools together. Something like http://pythonwise.blogspot.nl/2015

[issue28972] Document all "python -m" utilities

2016-12-16 Thread Miki Tebeka
Miki Tebeka added the comment: Eric - sorry I wasn't clear. I'm not talking about the -m behavior in general but on the modules in the standard library that can be used with it. A lot of windows are happy to know about "python -m tarfile" to they can extract tar files w

[issue28972] Document all "python -m" utilities

2016-12-17 Thread Miki Tebeka
Miki Tebeka added the comment: Thanks Guido, however I think my blog is not the right place - it's dog ugly and read by about 7 people on a good day :) I think that adding this to the official docs will add to the "batteries included" motto. I'll try to find a time and

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2014-11-25 Thread Miki Tebeka
Miki Tebeka added the comment: Can we also update iglob [1] as well? [1] https://docs.python.org/2/library/glob.html#glob.iglob -- nosy: +tebeka ___ Python tracker <http://bugs.python.org/issue22

  1   2   >