Re: use Python to post image to Facebook

2012-06-22 Thread davecotefilm
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

RE: Jython and PYTHONSTARTUP

2012-06-22 Thread Prasad, Ramit
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.

Re: bdist_wininst [was: Custom build of Python]

2012-06-22 Thread 周金宇
INFO: Can't locate Tcl/Tk libs and/or headers install Tcl/Tk library -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-22 Thread Albert van der Horst
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

emded revision control in Python application?

2012-06-22 Thread duncan smith
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

Re: emded revision control in Python application?

2012-06-22 Thread Emile van Sebille
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

RE: emded revision control in Python application?

2012-06-22 Thread Prasad, Ramit
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

A question on os.path.join in POSIX systems

2012-06-22 Thread Kushal Das
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 --

Re: emded revision control in Python application?

2012-06-22 Thread duncan smith
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

Re: A question on os.path.join in POSIX systems

2012-06-22 Thread Dieter Maurer
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

Re: emded revision control in Python application?

2012-06-22 Thread Emile van Sebille
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

Re: using SQLalchemy

2012-06-22 Thread Chris Withers
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

RE: using SQLalchemy

2012-06-22 Thread Prasad, Ramit
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

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-22 Thread Terry Reedy
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

Re: Jython and PYTHONSTARTUP

2012-06-22 Thread Hans Mulder
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:

Re: emded revision control in Python application?

2012-06-22 Thread duncan smith
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

Re: Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-22 Thread 88888 Dihedral
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

Re: use Python to post image to Facebook

2012-06-22 Thread Putilov Roman
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

Re: emded revision control in Python application?

2012-06-22 Thread rusi
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

[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-22 Thread Serhiy Storchaka
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

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-06-22 Thread Chris Jerdonek
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

[issue15133] tkinter.BooleanVar.get() docstring is wrong

2012-06-22 Thread Mark Summerfield
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

[issue15124] _thread.LockType: Optimize lock deletion, acquisition of uncontested lock and release of lock.

2012-06-22 Thread Kristján Valur Jónsson
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

[issue15134] urllib.request.thishost() fails on OSX 10.7

2012-06-22 Thread Ronald Oussoren
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

[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-22 Thread Christian Heimes
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

[issue15081] No documentation for PyState_FindModule()

2012-06-22 Thread Roundup Robot
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

[issue15042] Implemented PyState_AddModule, PyState_RemoveModule

2012-06-22 Thread Roundup Robot
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

[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count

2012-06-22 Thread Larry Hastings
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. *

[issue14769] Add test to automatically detect missing format units in skipitem()

2012-06-22 Thread Roundup Robot
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

[issue14769] Add test to automatically detect missing format units in skipitem()

2012-06-22 Thread Larry Hastings
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 ___

[issue15081] No documentation for PyState_FindModule()

2012-06-22 Thread Christian Heimes
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

[issue15135] HOWTOs doesn't link to Idioms and Anti-Idioms article

2012-06-22 Thread Pan Yongzhi
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

[issue15135] HOWTOs doesn't link to Idioms and Anti-Idioms article

2012-06-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15135 ___ ___

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Jon Clements
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

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: +1 -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15136 ___ ___

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Mark Dickinson
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;

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Jon Clements
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

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Jon Clements
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.

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Mark Dickinson
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,

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +rhettinger, skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15136 ___ ___

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2012-06-22 Thread Thom Nichols
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)

[issue15124] _thread.LockType: Optimize lock deletion, acquisition of uncontested lock and release of lock.

2012-06-22 Thread Kristján Valur Jónsson
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

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Mark Dickinson
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

[issue15124] _thread.LockType: Optimize lock deletion, acquisition of uncontested lock and release of lock.

2012-06-22 Thread Antoine Pitrou
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()

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-06-22 Thread Ronald Oussoren
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

[issue15124] _thread.LockType: Optimize lock deletion, acquisition of uncontested lock and release of lock.

2012-06-22 Thread Kristján Valur Jónsson
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

[issue15137] Cleaned source of `cmd` module

2012-06-22 Thread Zearin
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

[issue15137] Cleaned source of `cmd` module

2012-06-22 Thread Amaury Forgeot d'Arc
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

[issue15124] _thread.LockType: Optimize lock deletion, acquisition of uncontested lock and release of lock.

2012-06-22 Thread Antoine Pitrou
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

[issue15137] Cleaned source of `cmd` module

2012-06-22 Thread Zearin
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

[issue15137] Cleaned source of `cmd` module

2012-06-22 Thread R. David Murray
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 %

[issue15137] Cleaned source of `cmd` module

2012-06-22 Thread R. David Murray
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

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-06-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: distutils.spawn.find_executable* -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13590 ___ ___

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-06-22 Thread Éric Araujo
É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 ___

[issue15119] ctypes mixed-types bitfield layout nonsensical; doesn't match compiler.

2012-06-22 Thread Meador Inge
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

[issue15119] ctypes mixed-types bitfield layout nonsensical; doesn't match compiler.

2012-06-22 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15119 ___ ___ Python-bugs-list

[issue15119] ctypes mixed-types bitfield layout nonsensical; doesn't match compiler.

2012-06-22 Thread Mark Dickinson
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

[issue15119] ctypes mixed-types bitfield layout nonsensical; doesn't match compiler.

2012-06-22 Thread Mark Dickinson
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

[issue15138] base64.urlsafe_b64**code are too slow

2012-06-22 Thread Guido van Rossum
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

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-06-22 Thread Ronald Oussoren
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

[issue15138] base64.urlsafe_b64**code are too slow

2012-06-22 Thread Jesús Cea Avión
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

[issue15139] Speed up threading.Condition wakeup

2012-06-22 Thread Kristján Valur Jónsson
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

[issue15139] Speed up threading.Condition wakeup

2012-06-22 Thread Kristján Valur Jónsson
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 ___

[issue15138] base64.urlsafe_b64**code are too slow

2012-06-22 Thread Jesús Cea Avión
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

[issue15139] Speed up threading.Condition wakeup

2012-06-22 Thread Jesús Cea Avión
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

[issue15124] _thread.LockType: Optimize lock deletion, acquisition of uncontested lock and release of lock.

2012-06-22 Thread Kristján Valur Jónsson
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

[issue9527] Add aware local time support to datetime module

2012-06-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9527 ___

[issue10592] pprint module doesn't work well with OrderedDicts

2012-06-22 Thread Matt Barr
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

[issue15139] Speed up threading.Condition wakeup

2012-06-22 Thread Antoine Pitrou
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

[issue15083] Rewrite ElementTree tests in a cleaner and safer way

2012-06-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15083 ___ ___

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-06-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15132 ___ ___

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15136 ___ ___

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Raymond Hettinger
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 ___

[issue15139] Speed up threading.Condition wakeup

2012-06-22 Thread Kristján Valur Jónsson
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

[issue15139] Speed up threading.Condition wakeup

2012-06-22 Thread Antoine Pitrou
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

[issue9527] Add aware local time support to datetime module

2012-06-22 Thread Roundup Robot
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

[issue15138] base64.urlsafe_b64**code are too slow

2012-06-22 Thread Guido van Rossum
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

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-06-22 Thread Roundup Robot
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

[issue15138] base64.urlsafe_b64**code are too slow

2012-06-22 Thread Antoine Pitrou
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

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Jon Clements
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

[issue7582] Use ISO timestamp in diff.py

2012-06-22 Thread Roundup Robot
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 ___

[issue15138] base64.urlsafe_b64**code are too slow

2012-06-22 Thread Guido van Rossum
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

[issue15139] Speed up threading.Condition wakeup

2012-06-22 Thread Kristján Valur Jónsson
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

[issue15116] remove out-of-date Mac application scripting documentation

2012-06-22 Thread hhas
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.

[issue14591] Value returned by random.random() out of valid range on 64-bit

2012-06-22 Thread Mark Dickinson
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 ___

[issue15138] base64.urlsafe_b64**code are too slow

2012-06-22 Thread Serhiy Storchaka
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))

[issue15138] base64.urlsafe_b64**code are too slow

2012-06-22 Thread Guido van Rossum
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

[issue15138] base64.urlsafe_b64**code are too slow

2012-06-22 Thread Serhiy Storchaka
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

[issue9527] Add aware local time support to datetime module

2012-06-22 Thread Roundup Robot
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

[issue15138] base64.urlsafe_b64**code are too slow

2012-06-22 Thread Guido van Rossum
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 ___ ___

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2012-06-22 Thread Hynek Schlawack
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 -

[issue15121] devguide doesn't document all bug tracker components

2012-06-22 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15121 ___ ___

[issue9527] Add aware local time support to datetime module

2012-06-22 Thread Alexander Belopolsky
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

[issue7582] Use ISO timestamp in diff.py

2012-06-22 Thread Alexander Belopolsky
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

[issue13556] When tzinfo.utcoffset is out-of-bounds, the exception message is misleading

2012-06-22 Thread Alexander Belopolsky
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

[issue15125] argparse: positional arguments containing - in name not handled well

2012-06-22 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15125 ___ ___

[issue5023] Segfault in datetime.time.strftime(%z)

2012-06-22 Thread Alexander Belopolsky
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

[issue8355] diff.py produce unified format by default

2012-06-22 Thread anatoly techtonik
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

[issue7582] Use ISO timestamp in diff.py

2012-06-22 Thread anatoly techtonik
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 ___

[issue15140] PEP 384 inconsistent with implementation

2012-06-22 Thread Antoine Pitrou
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   2   3   >