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
dependent
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://bu
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 "P2S" w
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://golang.org/pkg/time
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 this is an
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}')
Traceback (most recent
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 come up wi
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 without
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:
Can we also update iglob [1] as well?
[1] https://docs.python.org/2/library/glob.html#glob.iglob
--
nosy: +tebeka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22524
Miki Tebeka added the comment:
Thanks Paul, will work on that.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22240
___
___
Python-bugs-list
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 rep...@bugs.python.org
http://bugs.python.org/issue22240
Miki Tebeka added the comment:
Anything else I need to solve to get this patch accepted?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22240
Miki Tebeka added the comment:
Support for directory invocation as well.
--
Added file: http://bugs.python.org/file36476/prog3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22240
Miki Tebeka added the comment:
New patch with handling of zip files.
--
Added file: http://bugs.python.org/file36453/prog2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22240
Miki Tebeka added the comment:
How can you run a package without -m?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22240
___
___
Python-bugs
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 rep...@bugs.python.org
http://bugs.python.org/issue22240
Miki Tebeka added the comment:
For zip file the help should probably be:
usage: python file.zip
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22240
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: argparse
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
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 one possible
Miki Tebeka added the comment:
Seems like #12643 did solve this. Closing.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1228112
New submission from Miki Tebeka miki.teb...@gmail.com:
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']
Attached is a patch
Miki Tebeka miki.teb...@gmail.com added the comment:
Just to note there's http://pypi.python.org/pypi/desktop/0.4 out there.
--
nosy: +tebeka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3177
Miki Tebeka miki.teb...@gmail.com added the comment:
python-ideas post at
https://groups.google.com/d/msg/python-ideas/lc_hkpKNvAg/ledftgY0mFUJ
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14384
New submission from Miki Tebeka miki.teb...@gmail.com:
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
Miki Tebeka miki.teb...@gmail.com 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 rep...@bugs.python.org
http
Miki Tebeka miki.teb...@gmail.com 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
New submission from Miki Tebeka miki.teb...@gmail.com:
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
New submission from Miki Tebeka miki.teb...@gmail.com:
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
Changes by Miki Tebeka miki.teb...@gmail.com:
--
assignee: - docs@python
components: +Documentation
nosy: +docs@python
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13865
Changes by Miki Tebeka miki.teb...@gmail.com:
--
hgrepos: +48
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12614
___
___
Python-bugs-list mailing
Changes by Miki Tebeka miki.teb...@gmail.com:
--
hgrepos: +49
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12614
___
___
Python-bugs-list mailing
Miki Tebeka miki.teb...@gmail.com 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
Changes by Miki Tebeka miki.teb...@gmail.com:
--
hgrepos: +46
Added file: http://bugs.python.org/file22753/request-method.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12614
New submission from Miki Tebeka miki.teb...@gmail.com:
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. The
attached patched
Changes by Miki Tebeka miki.teb...@gmail.com:
--
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12614
___
___
Python-bugs
Changes by Miki Tebeka miki.teb...@gmail.com:
--
components: +Library (Lib)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12614
___
___
Python
Miki Tebeka miki.teb...@gmail.com 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 ...
Thanks
New submission from Miki Tebeka miki.teb...@gmail.com:
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 output
Miki Tebeka miki.teb...@gmail.com 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 - open
New submission from Miki Tebeka miki.teb...@gmail.com:
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 example
New submission from Miki Tebeka miki.teb...@gmail.com:
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
Miki Tebeka miki.teb...@gmail.com added the comment:
Raymond: Sometimes I store configuration in Python files and would like to
reload the configuration.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11797
Miki Tebeka miki.teb...@gmail.com added the comment:
Thank you!
On Fri, Feb 25, 2011 at 2:08 PM, Antoine Pitrou rep...@bugs.python.org wrote:
Antoine Pitrou pit...@free.fr added the comment:
I corrected the patches (they were breaking the property of inheriting daemon
by default
Changes by Miki Tebeka miki.teb...@gmail.com:
--
nosy: -tebeka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9527
___
___
Python-bugs-list
Changes by Miki Tebeka miki.teb...@gmail.com:
--
nosy: -tebeka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3548
___
___
Python-bugs-list
Changes by Miki Tebeka miki.teb...@gmail.com:
--
nosy: -tebeka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2736
___
___
Python-bugs-list
New submission from Miki Tebeka miki.teb...@gmail.com:
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
Miki Tebeka miki.teb...@gmail.com 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__ import division
d / 2
Traceback (most
Miki Tebeka miki.teb...@gmail.com 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
Miki Tebeka miki.teb...@gmail.com 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 rep...@bugs.python.org
http
Miki Tebeka miki.teb...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue6064
Miki Tebeka miki.teb...@gmail.com added the comment:
Attaching a diff against the py3k branch on revision 73468
--
Added file: http://bugs.python.org/file14314/threading3k.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
New submission from Miki Tebeka miki.teb...@gmail.com:
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 stdin, line 1, in module
AttributeError: 'itertools.count
Miki Tebeka miki.teb...@gmail.com 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 rep...@bugs.python.org
Miki Tebeka miki.teb...@gmail.com added the comment:
I think that
self.__daemonic = daemon or self._set_daemon()
is wrong, need to thing about it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6064
Miki Tebeka miki.teb...@gmail.com added the comment:
Attaching a patch against trunk (at revision 72805).
--
keywords: +patch
Added file: http://bugs.python.org/file14029/threading.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
New submission from Miki Tebeka miki.teb...@gmail.com:
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
New submission from Miki Tebeka miki.teb...@gmail.com:
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
Miki Tebeka miki.teb...@gmail.com added the comment:
Happily(?) I don't use Windows anymore.
Closing it.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1468223
Miki Tebeka miki.teb...@gmail.com 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 rep
Miki Tebeka miki.teb...@gmail.com 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 == tr
Changes by Miki Tebeka miki.teb...@gmail.com:
--
nosy: -tebeka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4017
___
___
Python-bugs-list
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 not add __cmp__
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 key argument to bisect module functions
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.python.org/issue4356
Changes by Miki Tebeka [EMAIL PROTECTED]:
--
nosy: +tebeka
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4017
___
___
Python-bugs-list mailing list
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 both with svn
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: Library (Lib)
files: pipe.patch
keywords: patch
messages: 71062
nosy: tebeka
Miki Tebeka [EMAIL PROTECTED] added the comment:
Not sure about the name, maybe chain will be better?
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3548
Miki Tebeka [EMAIL PROTECTED] added the comment:
Any reason this is not in trunk yet?
--
nosy: +tebeka
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1592
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
keywords: patch
Miki Tebeka [EMAIL PROTECTED] added the comment:
Still hangs for me on revision 64665
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3088
___
___
Python-bugs
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]
http://bugs.python.org/issue3088
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 is FF3 on Untuntu 8.04
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.python.org/issue3154
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.python.org/issue3088
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 long on FireFox 3
Miki Tebeka [EMAIL PROTECTED] added the comment:
Using final version (on Ubuntu 8.04)
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3154
___
___
Python-bugs
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://bugs.python.org/issue3088
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://bugs.python.org/issue2736
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())
datetime.fromtimestamp(seconds) == dt
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': '', '4': ''}
for k in db.iterkeys():
print k
del db[k]
0
The Python dict object raises a RuntimeError when
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.python.org/issue2227
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 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/issue908316
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 are cases
Miki Tebeka added the comment:
Thank you for accepting it :)
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1530
__
___
Python-bugs-list mailing list
Unsubscribe:
http
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
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 environment
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?.
__
Tracker [EMAIL
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 does for SIGKILL
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__:
from sys import argv
94 matches
Mail list logo