I am building a project requiring high performance and scalability,
entailing:
- Role-based
authenticationhttp://en.wikipedia.org/wiki/Role-based_access_controlwith
API-keyhttp://en.wikipedia.org/wiki/Application_programming_interface_keylicensing
to access data of specific users
- API
Not sure if this is only package-manager specific, but occasionally I come
across a module that sounds interesting, install it (in my case by apt-get),
and then can't find it, because the actual module has a different name from
what it says on the package - unlike the majority, which if they are
On Sat, May 12, 2012 at 8:41 PM, John O'Hagan resea...@johnohagan.com wrote:
Not sure if this is only package-manager specific, but occasionally I come
across a module that sounds interesting, install it (in my case by apt-get),
and then can't find it, because the actual module has a different
On 05/12/12 05:51, Chris Angelico wrote:
On Sat, May 12, 2012 at 8:41 PM, John O'Hagan
resea...@johnohagan.com wrote:
Not sure if this is only package-manager specific, but
occasionally I come across a module that sounds interesting,
install it (in my case by apt-get), and then can't find it,
Hello,
I have a long list of n date intervals that gets added or suppressed
intervals regularly. I am looking for a fast way to find the intervals
containing a given date, without having to check all intervals (less
than O(n)).
Do you know the best way to do this in Python with the stdlib?
A
I really wish gmail picked up the mailing list as a default reply-to address...
-- Forwarded message --
From: Karl Knechtel zahl...@gmail.com
Date: Sat, May 12, 2012 at 8:25 AM
Subject: Re: Newbie naive question ... int() throws ValueError
To: Devin Jeanpierre
On Sat, May 12, 2012 at 8:17 AM, Jean-Daniel
jeandaniel.bro...@gmail.com wrote:
I am looking for a fast way to find the intervals
containing a given date, without having to check all intervals (less
than O(n)).
Since you say intervals in plural here, I assume that they can overlap?
--
On Thu, May 10, 2012 at 9:33 AM, Andreas Tawn andreas.t...@ubisoft.com wrote:
And there's also something like...
return \n.join((: .join((str(k), str(self.__dict__[k]))) for k in
self.__dict__))
which is a nice length, but I lose control of the order of the attributes and
the formatting
On 12/05/2012 13:17, Jean-Daniel wrote:
Hello,
Do you know the best way to do this in Python with the stdlib?
Sorry, not part of the stdlib but search for red black tree here
http://pypi.python.org/pypi. While you're there also take a look at the
blist package.
--
Cheers.
Mark
On 05/12/12 03:30, Alec Taylor wrote:
I am building a project requiring high performance and scalability,
entailing:
Most of the frameworks are sufficiently scalable. Scalability
usually stems from design decisions (architecture and algorithm) and
caching, and you'll usually hit bandwidth or
there is a simple equation,
50/((1+x)**0.9389)+50/((1+x)**1.9389)+1050/((1+x)**2.9389)-1045=0
i input :
from sympy import *
x=Symbol('x')
solve(50/((1+x)**0.9389)+50/((1+x)**1.9389)+1050/((1+x)**2.9389)-1045, x)
Traceback (most recent call last):
File stdin, line 1, in module
File
Devin Jeanpierre wrote:
On Fri, May 11, 2012 at 11:21 PM, Chris Angelico ros...@gmail.com wrote:
There are times when you want to catch all exceptions, though.
Top-level code will often want to replace exception tracebacks with
error messages appropriate to some external caller, or possibly log
Karl Knechtel wrote:
On Thu, May 10, 2012 at 9:33 AM, Andreas Tawn andreas.t...@ubisoft.com wrote:
And there's also something like...
return \n.join((: .join((str(k), str(self.__dict__[k]))) for k in
self.__dict__))
which is a nice length, but I lose control of the order of the attributes
Since you say intervals in plural here, I assume that they can overlap?
Yes,
For instance, there are the following intervals :
[[1, 10],
[4, 7],
[6, 15],
[11, 17]]
asking for the intervals including 5, the returned value should be
[[1, 10],
[4, 7]]
The idea here to make it fast is to have
On 5/12/2012 9:30 AM, contro opinion wrote:
there is a simple equation,
50/((1+x)**0.9389)+50/((1+x)**1.9389)+1050/((1+x)**2.9389)-1045=0
i input :
from sympy import *
x=Symbol('x')
solve(50/((1+x)**0.9389)+50/((1+x)**1.9389)+1050/((1+x)**2.9389)-1045, x)
Traceback (most recent call last):
Probably boost ITL (Interval Template Library) would serve as a good example.
I
noticed recently someone created an interface for python.
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, May 12, 2012 at 8:27 AM, Karl Knechtel zahl...@gmail.com wrote:
I really wish gmail picked up the mailing list as a default reply-to
address...
There is some labs thing that makes reply to all the default if you
click the button on the top-right. Unfortunately, that applies for
On Sun, May 13, 2012 at 4:25 AM, Devin Jeanpierre
jeanpierr...@gmail.com wrote:
What having to try-it-and-see does is give me extra steps to know what
it does. Instead of only reading the documentation, now I have to both
read the documentation *and* try it out in the interactive interpreter
I created a csv file called python test file.csv. It is stored on my Desktop
directory. When I try to open it using the command open ('Desktop python test
file.csv') I get the following error: No such file or directory. The same
thing happens if I use open ('python test file.csv'). What I am I
Import csv
Lookup usage in the python docs
On 13/05/2012 9:22 AM, Brian Heese bhe...@optonline.net wrote:
I created a csv file called python test file.csv. It is stored on my
Desktop directory. When I try to open it using the command open ('Desktop
python test file.csv') I get the following
On 05/12/2012 06:50 PM, Brian Heese wrote:
I created a csv file called python test file.csv. It is stored on my Desktop
directory. When I try to open it using the command open ('Desktop python
test file.csv') I get the following error: No such file or directory. The
same thing happens if I
On 12/05/2012 23:50, Brian Heese wrote:
I created a csv file called python test file.csv. It is stored on my
Desktop directory. When I try to open it using the command open
('Desktop python test file.csv') I get the following error: No such
file or directory. The same thing happens if I use
STINNER Victor victor.stin...@gmail.com added the comment:
If the commit makes Python 3.3 faster than Python 3.2, it is an
optimisation that should be documented in the What's New in Python 3.3
document.
--
___
Python tracker rep...@bugs.python.org
New submission from Yugang LIU liu...@yahoo.cn:
Hi,
I parse html source with htmlparser. I catch a tag, br, issue.
my code :
div
br
/div
parse result:
begin tag: div
begin tag: br
end tag: div
So I can't find end tag of 'br'. I know it is invalid text, 'br', it set
htmlparser parameter,
New submission from Chris Jerdonek chris.jerdo...@gmail.com:
pkgutil.walk_packages(paths) seems to return incorrect results when the name of
a subpackage of a path in paths matches the name of a package in the standard
library. It both excludes modules it should include, and includes modules
alon horev alo...@gmail.com added the comment:
how does one get his patch reviewed? (it's been 6 months)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7317
___
Daniel Urban urban.dani...@gmail.com added the comment:
Here is my first attempt at creating a pure Python version of the
operator.build_class function (in my previous patch) as types.new_class.
The three added functions (two private and one public) correspond to the
following functions in my
New submission from Xavier de Gaye xdeg...@gmail.com:
When a breakpoint is set anywhere (in which case the global system's
trace function is set), interrupting the debuggee causes Pdb to stop
into its own code. See the following pdb session run with python on
the current head of the default
George-Cristian Bîrzan gcbir...@gmail.com added the comment:
As promissed the patch. It doesn't break any tests, and it passes the ones I
added. I have a pybench one as well, which even though trivial, does point to
the fact that there is a degradation in performance, but not sure it's worth
Gennadiy Zlobin gennad.zlo...@gmail.com added the comment:
I confirm this behavior in 2.7 and 3.2 versions. In my 3.3.0a3+ it actually
outputs nothing.
Also note that if you rename logging to logging2, you actually get
foo temp
logging2 temp
--
nosy: +gennad
versions: +Python 3.3
New submission from Xavier de Gaye xdeg...@gmail.com:
In the following test run with python on the current head of the
default branch, Pdb stops at line 3 where there is no breakpoint after
two breakpoints have been set on the same function (setting two bps on
the same location is useful, for
Sandro Tosi sandro.t...@gmail.com added the comment:
I agree with Raymond that last paragraph should be removed; +1 for the
remaining part
--
nosy: +sandro.tosi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14187
Charles-François Natali neolo...@free.fr added the comment:
It would be nice if the documentation of fwalk() explained why you would
want to use it over walk().
How does the attached patch look?
--
Added file: http://bugs.python.org/file25550/fwalk-doc.diff
anatoly techtonik techto...@gmail.com added the comment:
I still need requires example - here.
http://docs.python.org/distutils/setupscript.html#relationships-between-distributions-and-packages
- after Dependencies.. paragraph. =)
setup(...,
requires=[somepackage (1.0, !=1.5)],
Charles-François Natali neolo...@free.fr added the comment:
I'm not sure we really need to check for a dangling symlink in case of
FileNotFoundError: whether it's a dangling symlink, or the file disappeared
in-between-, skipping it is OK.
--
___
New submission from Antoine Pitrou pit...@free.fr:
setup.py should use packaging, not distutils.
--
components: Build
messages: 160475
nosy: eric.araujo, pitrou, tarek
priority: normal
severity: normal
status: open
title: use packaging in setup.py
type: enhancement
versions: Python 3.3
Éric Araujo mer...@netwok.org added the comment:
I’d rather wait for a more stable version, so 3.4.
--
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14790
Martin v. Löwis mar...@v.loewis.de added the comment:
I'd rather not wait. If packaging is not able to reliably build Python itself,
we shouldn't release Python 3.3 until it is (or withdraw packaging from the
standard library altogether).
--
nosy: +loewis
Changes by Martin v. Löwis mar...@v.loewis.de:
--
versions: +Python 3.3 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14790
___
___
Changes by Martin v. Löwis mar...@v.loewis.de:
--
priority: normal - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14790
___
___
New submission from Antoine Pitrou pit...@free.fr:
setup.py adds prefix/lib to the list of directories where libraries are
looked for, but not prefix/lib64. Patch attached.
--
components: Build
files: setup_lib64.patch
keywords: patch
messages: 160478
nosy: dmalcolm, pitrou
priority:
Antoine Pitrou pit...@free.fr added the comment:
I'd rather not wait. If packaging is not able to reliably build Python
itself, we shouldn't release Python 3.3 until it is (or withdraw
packaging from the standard library altogether).
Indeed, this is exactly the reason I entered this
Antoine Pitrou pit...@free.fr added the comment:
Nice idea. I don't see any obvious problem with the patch, except that the test
should reuse test.script_helper.assert_python_ok().
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Ezio Melotti ezio.melo...@gmail.com added the comment:
The HTML you pasted looks valid to me -- the br element doesn't have an end tag
and the HTML 4.01 standard explicitly says Start tag: required, End tag:
forbidden [0].
Why do you think this is a problem?
[0]:
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14790
___
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
I currently think that sys.libdir should be only basename of libdir (e.g. lib
or lib64) to allow to easily use it with something else than sys.prefix.
--
___
Python
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
It would be better to fix issue #1294959 and use os.path.join(sys.prefix,
sys.libdir).
IIRC some mips architectures need /usr/lib32, while x32 architecture needs
/usr/libx32.
--
nosy: +Arfrever
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 85824b819bcb by Antoine Pitrou in branch 'default':
Issue #14082: shutil.copy2() now copies extended attributes, if possible.
http://hg.python.org/cpython/rev/85824b819bcb
--
nosy: +python-dev
Antoine Pitrou pit...@free.fr added the comment:
Pushed now. Hopefully the buildbots won't moan.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14784
___
Thomas Kluyver tak...@gmail.com added the comment:
Here's a patch that makes UTF8_STRING the default type for clipboard_get and
selection_get when running in X11.
--
keywords: +patch
Added file: http://bugs.python.org/file25552/x11-clipboard-utf8.patch
Antoine Pitrou pit...@free.fr added the comment:
Looks like we have our first buildbot failure:
==
FAIL: test_copyxattr (test.test_shutil.TestShutil)
--
Hynek Schlawack h...@ox.cx added the comment:
But if it is a dangling symlink, you want to add it to nondirs while missing
files could be skipped, no? You can't skip dangling symlinks if you want to
implement rmtree. The normal walk() doesn't too.
--
New submission from Xavier de Gaye xdeg...@gmail.com:
Setting a breakpoint on a function from within that functions makes
pdb to stop at the following line (where no breakpoint is set) after a
continue command. In the following test pdb stops at line 3 where
there is no breakpoint.
===
Benjamin Peterson benja...@python.org added the comment:
2012/5/12 Charles-François Natali rep...@bugs.python.org:
Charles-François Natali neolo...@free.fr added the comment:
It would be nice if the documentation of fwalk() explained why you would
want to use it over walk().
How does the
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment:
What's the start menu?
hahaha
I think that this issue is pointless, it takes 3 clicks to make a desktop
shortcut (if have a lot of programs on your computer, maybe 4) any Windows user
should know how to do it.
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8f22e5be18c8 by Stefan Krah in branch 'default':
Issue #14779: Do not use get_config_var('SIZEOF_VOID_P') on OS X 64-/32-bit
http://hg.python.org/cpython/rev/8f22e5be18c8
--
nosy: +python-dev
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 7bf8ac742d2f by Brett Cannon in branch 'default':
Issue #13959: Introduce importlib.find_loader().
http://hg.python.org/cpython/rev/7bf8ac742d2f
--
___
Python tracker
Stefan Krah stefan-use...@bytereef.org added the comment:
Apparently the AS/400 had 128 bit pointers and IBM's System i still has them:
http://comments.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/651
http://www-01.ibm.com/support/docview.wss?uid=swg27019425
So I'll leave the
Brett Cannon br...@python.org added the comment:
I have importlib.find_loader() coded up, but getting rid of find_module() is
going to be a pain thanks to pkgutil, multiprocessing.forking, modulefinder,
and idlelib.EditorWindow.
--
___
Python
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
assignee: docs@python
components: Documentation
files: grammar.diff
keywords: patch
nosy: docs@python, tshepang
priority: normal
severity: normal
status: open
title: broken grammar in Built-in Types doc
versions: Python 3.2, Python
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 10e8b97d0fd7 by Antoine Pitrou in branch 'default':
Make the reference counting of dictkeys objects participate in refleak hunting
http://hg.python.org/cpython/rev/10e8b97d0fd7
--
Antoine Pitrou pit...@free.fr added the comment:
Hynek's patch (communicated over IRC, committed in 8d85f9920878) seems to have
fixed the failure.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14082
Tom Pinckney thomaspinckn...@gmail.com added the comment:
I took a stab at updating the docs based on the current profiler source. See
attached patch for a first draft.
This is my first doc patch so would appreciate any feedback on style and
substance of my changes.
I tried to document more
Changes by Stefan Krah stefan-use...@bytereef.org:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14779
Hynek Schlawack h...@ox.cx added the comment:
So I've changed the patch to ignore everything missing except for dangling
links (which throw unfortunately the same exception).
Just to stress it once more: a fwalk that _ignores_ dangling symlinks is
worthless for rmtree. And wasn't rmtree the
New submission from Paul Upchurch pau...@gmail.com:
To reproduce the error:
Python 3.2.2 (default, Sep 5 2011, 22:09:30)
[GCC 4.6.1] on linux2
Type help, copyright, credits or license for more information.
slice(0,9,None).indices(126)
Traceback (most recent call last):
File
Hynek Schlawack h...@ox.cx added the comment:
This seems to have been fixed as of 3.2.3 (as shipped with Ubuntu Precise):
Python 3.2.3 (default, Apr 12 2012, 19:08:59)
[GCC 4.6.3] on linux2
Type help, copyright, credits or license for more information.
slice(0,9,None).indices(126)
Paul Upchurch pau...@gmail.com added the comment:
Sorry. I didn't realize there was a 3.2.3 out. I'll close it as fixed.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14794
STINNER Victor victor.stin...@gmail.com added the comment:
To prepare a deeper change, here is a first simple patch. Change how the size
of the _PyUnicodeWriter buffer is handled:
* overallocate by 100% (instead of 25%) and allocate at least 100 characters
* don't overallocate when possible
Changes by STINNER Victor victor.stin...@gmail.com:
Added file: http://bugs.python.org/file25558/benchmark.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14744
___
Julien Courteau courteaujul...@gmail.com added the comment:
Here is the last proposition of Eric done at the last Montreal Sprint (May 12):
--no-byte-compile- No *.pyc and *.pyo
--byte-compile=b - Only *.pyc
--byte-compile=b,o - *.pyc and *.pyo (with docstrings)
--byte-compile=b,oo -
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
I'd like to see this enhancement as well. It seems that not even a TextWrapper
is capable of a simple indent (because TextWrapper methods operate on
paragraphs rather than lines).
--
nosy: +cjerdonek
Éric Araujo mer...@netwok.org added the comment:
This seems to have been fixed as of 3.2.3 (as shipped with Ubuntu Precise)
Just a note: you can’t really trust the behavior of Python shipped by Debian or
derivative systems because doko (the Debian Python maintainer) backports
changes to
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Should the function work for strings with non-Unix line endings?
http://docs.python.org/dev/py3k/reference/lexical_analysis.html#physical-lines
For example, should indent(abc\r\n, ) return the same string, and should
\r\n get indented
75 matches
Mail list logo