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__":
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
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
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
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?.
__
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
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 -&
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
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
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
Changes by Miki Tebeka :
--
type: -> feature request
___
Python tracker
<http://bugs.python.org/issue12614>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Miki Tebeka :
--
components: +Library (Lib)
___
Python tracker
<http://bugs.python.org/issue12614>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Miki Tebeka :
--
hgrepos: +46
Added file: http://bugs.python.org/file22753/request-method.diff
___
Python tracker
<http://bugs.python.org/issue12
Changes by Miki Tebeka :
--
hgrepos: +48
___
Python tracker
<http://bugs.python.org/issue12614>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Miki Tebeka :
--
hgrepos: +49
___
Python tracker
<http://bugs.python.org/issue12614>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Changes by Miki Tebeka :
--
nosy: -tebeka
___
Python tracker
<http://bugs.python.org/issue2736>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Miki Tebeka :
--
nosy: -tebeka
___
Python tracker
<http://bugs.python.org/issue3548>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Miki Tebeka :
--
nosy: -tebeka
___
Python tracker
<http://bugs.python.org/issue9527>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Miki Tebeka <[EMAIL PROTECTED]> added the comment:
Using final version (on Ubuntu 8.04)
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3154>
___
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://
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
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
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
Miki Tebeka <[EMAIL PROTECTED]> added the comment:
Still hangs for me on revision 64665
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3088>
___
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]&
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
Miki Tebeka <[EMAIL PROTECTED]> added the comment:
I confirm this is solved for me in beta 2
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Miki Tebeka <[EMAIL PROTECTED]> added the comment:
Any reason this is not in trunk yet?
--
nosy: +tebeka
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
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
Miki Tebeka <[EMAIL PROTECTED]> added the comment:
Not sure about the name, maybe "chain" will be better?
___
Python tracker <[EMAIL PROTECTED]>
<http://
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
Changes by Miki Tebeka <[EMAIL PROTECTED]>:
--
nosy: +tebeka
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4017>
___
___
Python
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.
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
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
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_
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
Miki Tebeka added the comment:
Thank you for accepting it :)
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1530>
__
___
Python-bugs-list mailing list
Unsubs
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
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
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
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.
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':
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
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://
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"
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
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
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
Changes by Miki Tebeka :
--
nosy: -tebeka
___
Python tracker
<http://bugs.python.org/issue4017>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 ==
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
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
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
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
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
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
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
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
Changes by Miki Tebeka :
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python
versions: +Python 2.7
___
Python tracker
<http://bugs.python.org/issu
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:
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
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
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
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
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
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']"
Miki Tebeka added the comment:
Seems like #12643 did solve this. Closing.
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/iss
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
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
Miki Tebeka added the comment:
For zip file the help should probably be:
usage: python file.zip
--
___
Python tracker
<http://bugs.python.org/issue22
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
Miki Tebeka added the comment:
How can you run a package without -m?
--
___
Python tracker
<http://bugs.python.org/issue22240>
___
___
Python-bugs-list mailin
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
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
Miki Tebeka added the comment:
Anything else I need to solve to get this patch accepted?
--
___
Python tracker
<http://bugs.python.org/issue22240>
___
___
Pytho
Miki Tebeka added the comment:
Thanks Paul, will work on that.
--
___
Python tracker
<http://bugs.python.org/issue22240>
___
___
Python-bugs-list mailin
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
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
Miki Tebeka added the comment:
Happily(?) I don't use Windows anymore.
Closing it.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
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
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)
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
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 "&
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
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
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
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
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
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
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
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
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
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
100 matches
Mail list logo