On Monday, 9 April 2012 20:24:54 UTC-7, CM wrote:
Shot in the dark here: has any who reads this group been successful
with getting Python to programmatically post an image to Facebook?
I've tried using fbconsole[1] and facepy[2], both of which apparently
work fine for their authors and
Does Jython 2.5 honour the PYTHONSTARTUP environment variable? According
to my testing, it doesn't.
There used to be a page describing the differences between Jython and
CPython here:
http://www.jython.org/docs/differences.html
but it appears to have been eaten by the 404 Monster.
INFO: Can't locate Tcl/Tk libs and/or headers
install Tcl/Tk library
--
http://mail.python.org/mailman/listinfo/python-list
In article jr4pcc$fl3$1...@dont-email.me,
Kevin Walzer k...@codebykevin.com wrote:
On 6/11/12 8:01 AM, Wolfgang Keller wrote:
Tkinter is imho honestly the very best argument if you want to make
potential new users turn their backs away from Python for good. Just
show them one GUI implemented
Hello,
I have an application that would benefit from collaborative
working. Over time users construct a data environment which is a
number of files in JSON format contained in a few directories (in the
future I'll probably place these in a zip so the environment is
contained within a
On 6/22/2012 8:58 AM duncan smith said...
Hello,
I have an application that would benefit from collaborative working.
Over time users construct a data environment which is a number of
files in JSON format contained in a few directories
You don't say what your target platform is, but on linux
I have an application that would benefit from collaborative
working. Over time users construct a data environment which is a
number of files in JSON format contained in a few directories (in the
future I'll probably place these in a zip so the environment is
contained within a single
Hi all,
There is a comment on posixpath.join saying Ignore the previous parts
if a part is absolute.
Is this defined in the POSIX spec ? If yes, then can someone please
point me to a link where I can read about it ?
Kushal
--
http://fedoraproject.org
http://kushaldas.in
--
On 22/06/12 17:42, Emile van Sebille wrote:
On 6/22/2012 8:58 AM duncan smith said...
Hello,
I have an application that would benefit from collaborative working.
Over time users construct a data environment which is a number of
files in JSON format contained in a few directories
You don't say
Kushal Das kushal...@gmail.com writes:
There is a comment on posixpath.join saying Ignore the previous parts
if a part is absolute.
It means: join(something, abspath) == abspath whenever abspath
is an absolute path.
Is this defined in the POSIX spec ? If yes, then can someone please
point
On 6/22/2012 11:19 AM duncan smith said...
On 22/06/12 17:42, Emile van Sebille wrote:
On 6/22/2012 8:58 AM duncan smith said...
Hello,
I have an application that would benefit from collaborative working.
Over time users construct a data environment which is a number of
files in JSON format
On 21/06/2012 11:50, andrea crotti wrote:
We have a very chaotic database (on MySql) at the moment, with for
I'm trying to use SQLalchemy and it looks absolutely great, but in
general as a policy we don't use external dependencies..
That's a very foolish general policy, a lot of the power of
We have a very chaotic database (on MySql) at the moment, with for
I'm trying to use SQLalchemy and it looks absolutely great, but in
general as a policy we don't use external dependencies..
That's a very foolish general policy, a lot of the power of python is in
the huge array of
On 6/22/2012 11:53 AM, Albert van der Horst wrote:
In article jr4pcc$fl3$1...@dont-email.me,
Kevin Walzer k...@codebykevin.com wrote:
On 6/11/12 8:01 AM, Wolfgang Keller wrote:
Tkinter is imho honestly the very best argument if you want to make
potential new users turn their backs away from
On 21/06/12 02:26:41, Steven D'Aprano wrote:
There used to be a page describing the differences between Jython and
CPython here:
http://www.jython.org/docs/differences.html
but it appears to have been eaten by the 404 Monster.
It has been moved to:
On 22/06/12 21:34, Emile van Sebille wrote:
On 6/22/2012 11:19 AM duncan smith said...
On 22/06/12 17:42, Emile van Sebille wrote:
On 6/22/2012 8:58 AM duncan smith said...
Hello,
I have an application that would benefit from collaborative working.
Over time users construct a data environment
Albert van der Horst於 2012年6月22日星期五UTC+8下午11時53分01秒寫道:
In article jr4pcc$fl3$1...@dont-email.me,
Kevin Walzer k...@codebykevin.com wrote:
On 6/11/12 8:01 AM, Wolfgang Keller wrote:
Tkinter is imho honestly the very best argument if you want to make
potential new users turn their backs away
Try to use http://pycurl.sourceforge.net/
I don't test it, but there is no problem interact with google services.
22.06.12 17:27, davecotef...@gmail.com пишет:
On Monday, 9 April 2012 20:24:54 UTC-7, CM wrote:
Shot in the dark here: has any who reads this group been successful
with getting
On Jun 22, 8:58 pm, duncan smith buzz...@urubu.freeserve.co.uk
wrote:
Hello,
I have an application that would benefit from collaborative
working. Over time users construct a data environment which is a
number of files in JSON format contained in a few directories (in the
future I'll
Serhiy Storchaka storch...@gmail.com added the comment:
We could handle all bytes-compatible objects, using the buffer API.
It is timing unsafe.
How so?
I checked myself, and I see that most likely I was wrong. At least for
bytes and bytearrays it is timing safe.
I don't think that's
New submission from Chris Jerdonek chris.jerdo...@gmail.com:
It would be nice if unittest.TestProgram(), aka unittest.main(), allowed one to
set self.testNames by programmatically passing in a list of test names.
Currently, unittest.main() almost allows this: the constructor sets
New submission from Mark Summerfield m...@qtrac.eu:
Python 3.2.2 (default, Jun 4 2012, 11:15:16)
[GCC 4.4.5] on linux2
Type copyright, credits or license() for more information.
from tkinter import *
help(BooleanVar.get)
Help on function get in module tkinter:
get(self)
Return the value
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Interesting, I need to see what is the reason for that. Possibly, sem_*
primitives used there are so cheap that they don't matter.
--
___
Python tracker rep...@bugs.python.org
New submission from Ronald Oussoren ronaldousso...@mac.com:
I just noticed that test_urllib fails for me because urllib.request.thishost()
fails:
==
ERROR: test_thishost (test.test_urllib.Utility_Tests)
Test the
Christian Heimes li...@cheimes.de added the comment:
The error will be if code works for developer from ASCII word, and then
on the other side of ocean it will no longer work with non-ASCII
strings. You are expected to be familiar with such issues. In any case,
the obvious (and simplest, and
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 55e8cba34b11 by Martin v. Löwis in branch 'default':
Issue #15042: Add PyState_AddModule and PyState_RemoveModule.
http://hg.python.org/cpython/rev/55e8cba34b11
--
nosy: +python-dev
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 55e8cba34b11 by Martin v. Löwis in branch 'default':
Issue #15042: Add PyState_AddModule and PyState_RemoveModule.
http://hg.python.org/cpython/rev/55e8cba34b11
--
nosy: +python-dev
Larry Hastings la...@hastings.org added the comment:
Fifth iteration of my patch. Everything is done, and I really think it's ready
to be checked in.
* The documentation is done, including Misc/NEWS.
* All the code is now 80 columns.
* The docstrings have been double- and triple-checked.
*
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ace45d23628a by Larry Hastings in branch 'default':
Issue #14769: test_capi now has SkipitemTest, which cleverly checks
http://hg.python.org/cpython/rev/ace45d23628a
--
nosy: +python-dev
Changes by Larry Hastings la...@hastings.org:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14769
___
Christian Heimes li...@cheimes.de added the comment:
Thanks!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15081
New submission from Pan Yongzhi fossi...@users.sourceforge.net:
In the py3k docs howtos table of contents,
http://docs.python.org/py3k/howto/index.html, the link to the article Idioms
and Anti-Idioms in Python is gone, but the article is still in the doc. It is
at
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15135
___
___
New submission from Jon Clements jon...@googlemail.com:
I'm not a numeric expert but I was looking at a post on S/O which related to
converting a Fraction to a certain amount of decimal places. I've had a hunt on
the tracker but couldn't find anything relevant, but if I've missed it, I
Ramchandra Apte maniandra...@gmail.com added the comment:
+1
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15136
___
___
Mark Dickinson dicki...@gmail.com added the comment:
I guess my question is - should Decimal do this implicitly for Fraction?
I'd prefer not. All other cases of Decimal construction (from float, from
string, etc.) are lossless with results that don't depend on the current
context;
Jon Clements jon...@googlemail.com added the comment:
Mark - I bow to your superiour knowledge here. However, would not a classmethod
of .from_fraction be welcome?
ie, I could write:
d = D.from_fraction(5, 7)
Then the documents labour the point about what you've mentioned?
Just an idea, but
Jon Clements jon...@googlemail.com added the comment:
Not sure what's going on with my machine today: keep sending things to early.
I meant:
D.from_fraction(F)
where if F is not of type Fraction, then the args are used to construct a
Fraction - so can use an existing or create one.
Mark Dickinson dicki...@gmail.com added the comment:
would not a classmethod of .from_fraction be welcome?
That depends. :-) Certainly a new classmethod seems better to me than
extending the constructor to allow Fractions. I'm not convinced that there's a
real need for this feature,
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +rhettinger, skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15136
___
___
Thom Nichols tmnich...@gmail.com added the comment:
I just ran into this issue, clearly it is old and Python 2.6, but I just
experienced it in a single-process linux app running on a production embedded
system.
root@at91sam9g20ek:~# python
Python 2.6.5 (r265:79063, Sep 28 2011, 11:52:59)
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
I cannot repro. On my ubuntu virtualbox I get:
before:
kristjan@kristjan-VirtualBox:~/cpython$ ./python -m timeit -s from _thread
import allocate_lock allocate_lock()
1000 loops, best of 3: 0.0768 usec per loop
Mark Dickinson dicki...@gmail.com added the comment:
BTW, the StackOverflow question helped me understand the use-case here:
http://stackoverflow.com/q/11154954/270986
The perspective is that of a *Fraction* user who wants to be able to easily see
the Decimal expansion of a Fraction to an
Antoine Pitrou pit...@free.fr added the comment:
64-bit Linux:
./python -m timeit -s from _thread import allocate_lock allocate_lock()
- before: 0.0712 usec per loop
- after: 0.0556 usec per loop
./python -m timeit -s from _thread import allocate_lock;l=allocate_lock()
l.acquire();l.release()
Ronald Oussoren ronaldousso...@mac.com added the comment:
The attached patch (issue1390-version1.txt) is not tested very well at the
moment because I'm running into another problem when building on OSX 10.5, but
should improve the build situation
With this patch:
* Configure will
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
well, I'm thinking for example about threading.Condition, where Lock objects
are being created and erased willy nilly.
Also, locks are normally uncontested. The unconstested case is the one to
optimize for. As such, the test
New submission from Zearin zea...@users.sourceforge.net:
Cleaned up the source of the Standard Library’s `cmd` module.
Attempted to focus on readability by changing things like using booleans
instead of 0/1, newer syntax for string formatting, lining up variable
declarations (judgement
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The output of hg diff would be much appreciated, it's the only way for
reviewers to realize the changes you made.
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Also, locks are normally uncontested. The unconstested case is the
one to optimize for. As such, the test cases are not artificial at
all.
Ok. I don't have any problem with the patch in principle (I didn't read
it in detail). I was just a bit
Zearin zea...@users.sourceforge.net added the comment:
Does `hg diff` produce different output than regular `diff`?
If so, the patch created by regular `diff` is attached.
(I basically did my work without using a local repo, and I have very little
experience with patching. I basically just
R. David Murray rdmur...@bitdance.com added the comment:
I appreciate the work and thought that went into this, but this is not normally
the kind of change that we apply. Any change has a chance of introducing bugs
(see, for example, issue 15109, where a seemingly innocuous change from %
R. David Murray rdmur...@bitdance.com added the comment:
Also as an FYI, triple double quote marks are our standard for docstrings. I
don't believe we normally align assignments, but I don't know if that is
specifically called out in PEP8. I haven't looked at the patch in detail, but
in
Éric Araujo mer...@netwok.org added the comment:
distutils.spawn.find_executable*
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13590
___
___
Éric Araujo mer...@netwok.org added the comment:
_binary_on_path looks unnecessary: distutils.util has a function to do that.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13590
___
Meador Inge mead...@gmail.com added the comment:
At a guess, BITS.M should therefore look like Field type=c_int,
ofs=0:17, bits=1 instead.
Refined guess: it should be Field type=c_short, ofs=2:1, bits=1.
This refined guess seems reasonable. Although, bitfield allocation order for
GCC is
Changes by Meador Inge mead...@gmail.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15119
___
___
Python-bugs-list
Mark Dickinson dicki...@gmail.com added the comment:
Finally, I think proposed allocation seems correct, but I must admit I
am not clever enough to follow why the following part works :-)
Nor am I, any more, though it made sense when I wrote it. I'll see if I can
make that a bit more
Mark Dickinson dicki...@gmail.com added the comment:
this doesn't seem to be right for big-endian machines
Right; I didn't pay too much attention to the big-endian case; definitely
there should be lots of tests there, so that at least the buildbots have a
chance of picking up problems. (Do
New submission from Guido van Rossum gu...@python.org:
This bug is still present in Python 3.3. Some people use urlsafe strings *a
lot*. And they find that the (obvious) implementation in base64.py is way too
slow. In fact, I found myself writing the following a few times in App Engine
Ronald Oussoren ronaldousso...@mac.com added the comment:
Thanks, I'll add it to the patch when I have a working build again.
Looks like I get a failure because pybuilddir.txt is not created, and that's
because ./python.exe setup.py build crashes when distutils.sysconfig tries to
import
Jesús Cea Avión j...@jcea.es added the comment:
This is a feature request, not a bug. Marking for 3.3.
--
nosy: +jcea
versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
New submission from Kristján Valur Jónsson krist...@ccpgames.com:
This patch is based on work previously done locally in python 2.7, see
http://blog.ccpgames.com/kristjan/2012/05/25/optimizing-python-condition-variables-with-telemetry/
The idea is to acquire the signaling Lock() of the
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
Added file: http://bugs.python.org/file26086/queuetest.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15139
___
Jesús Cea Avión j...@jcea.es added the comment:
Guido, would your patch be enough?. Is a 3x improvement enough?. What
improvement could be acceptable?. Implemented in C in binascii module?
--
___
Python tracker rep...@bugs.python.org
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15139
___
___
Python-bugs-list mailing list
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Lock release (the silly saninty check) and acquisition of an uncontested lock.
I was waiting for that other windows lock stuff to go in before doing this,
because I thought they might actually overlap in implementation, which they
Changes by Alexander Belopolsky alexander.belopol...@gmail.com:
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9527
___
Changes by Matt Barr mar...@gmail.com:
--
nosy: +Matt.Barr
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10592
___
___
Python-bugs-list mailing
Antoine Pitrou pit...@free.fr added the comment:
I think this should wait for 3.4. It's a bit too late now.
--
nosy: +pitrou, sbt
stage: - patch review
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15083
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15132
___
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15136
___
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15136
___
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
aw, that's too bad. Since this is not a feature implementat, we have the
entire beta cycle to shake out any possible bugs.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
aw, that's too bad. Since this is not a feature implementat, we have
the entire beta cycle to shake out any possible bugs.
We treat performance improvements as new features, though.
--
___
Python
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 88a5f2730579 by Alexander Belopolsky in branch 'default':
Issue #9527: datetime.astimezone() method will now supply a class
http://hg.python.org/cpython/rev/88a5f2730579
New changeset 336c53c1f547 by Alexander
Guido van Rossum gu...@python.org added the comment:
Why would it be a feature? There is no change in semantics, only in speed. Do
we have a policy that forbids performance enhancements in bugfix releases? (It
doesn't really matter, I'm just curious. Also, if it really was a feature
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset de2a0cb6ba52 by Jesus Cea in branch 'default':
Closes #10142: Support for SEEK_HOLE/SEEK_DATA
http://hg.python.org/cpython/rev/de2a0cb6ba52
--
resolution: - fixed
stage: patch review - committed/rejected
Antoine Pitrou pit...@free.fr added the comment:
Do we have a policy that forbids performance enhancements in bugfix
releases?
Yes, except when it fixes a regression. I don't know where that policy is
codified, but it seems quite ingrained.
It also means the window for getting it in 3.3 is
Jon Clements jon...@googlemail.com added the comment:
The more I think about this - the shades of grey kick in.
D.from_fraction(F or creatable F)
Then it would be 'reasonable to assume' for a F.to_decimal() to exist.
Possibly with an optional context argument.
Then, what happens if I do
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ec95b94ea831 by Alexander Belopolsky in branch 'default':
Issue #7582: Use ISO timestamp in diff.py
http://hg.python.org/cpython/rev/ec95b94ea831
--
nosy: +python-dev
___
Guido van Rossum gu...@python.org added the comment:
Here's a patch. It makes urlsafe_b64{en,de}code about 4x faster on my machine.
The tests in base64_test.py still pass.
--
keywords: +patch
Added file: http://bugs.python.org/file26087/base64.patch
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
hm, still one more day. It will be a pity to wait two more years, perhaps
Georg is feeling lucky :)
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
hhas h...@users.sourceforge.net added the comment:
@Ned: The whole page has been needing updated for years, but no-one's ever
quite managed to complete it. In that light, might I suggest a two-step
approach?
1. Edit the existing text now to remove all the obsolete info (e.g. section
4.1.2.
Mark Dickinson dicki...@gmail.com added the comment:
Raymond, can this patch be applied?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14591
___
Serhiy Storchaka storch...@gmail.com added the comment:
$ ./python -m timeit -s from base64 import urlsafe_b64encode;
url=bytes(range(256)) urlsafe_b64encode(url)
1 loops, best of 3: 73.5 usec per loop
$ ./python -m timeit -s from base64 import b64encode; url=bytes(range(256))
Guido van Rossum gu...@python.org added the comment:
Heh. I'd forgotten about maketrans. Here's a patch that kills the _translate()
helper function completely.
--
Added file: http://bugs.python.org/file26088/base64.patch
___
Python tracker
Serhiy Storchaka storch...@gmail.com added the comment:
You're faster than me.
I think that asserts should be replaced by if/raise.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15138
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset a7237f157625 by Alexander Belopolsky in branch 'default':
Issue #9527: Fixes for platforms without tm_zone
http://hg.python.org/cpython/rev/a7237f157625
--
___
Python
Guido van Rossum gu...@python.org added the comment:
I didn't touch that assert.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15138
___
___
Hynek Schlawack h...@ox.cx added the comment:
Here is my revised patch with Martin's code integrated.
Differences:
- fixed docs
- added some tests, test_on_errors could still use some refactorings though
- renamed _rmtree_safe to _rmtree_safe_fd so we can implement more of them
-
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15121
___
___
Changes by Alexander Belopolsky alexander.belopol...@gmail.com:
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9527
Changes by Alexander Belopolsky alexander.belopol...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7582
Alexander Belopolsky alexander.belopol...@gmail.com added the comment:
Fixed in changeset a7237f157625.
--
resolution: - fixed
status: open - closed
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13556
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15125
___
___
Alexander Belopolsky alexander.belopol...@gmail.com added the comment:
Since no one is able to reproduce this crash, I am going to close this issue.
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5023
anatoly techtonik techto...@gmail.com added the comment:
Reopening for Python 3. Does anybody still use context diffs nowadays?
--
status: closed - open
versions: +Python 3.3 -Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
anatoly techtonik techto...@gmail.com added the comment:
Thanks. I am glad OS TZ support finally issue took off. =)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7582
___
New submission from Antoine Pitrou pit...@free.fr:
In PEP 384, the PyType_Spec struct has a const char *doc that is not present
in the implementation (Include/object.h).
--
assignee: docs@python
components: Documentation
messages: 163449
nosy: docs@python, loewis, pitrou
priority:
1 - 100 of 203 matches
Mail list logo