python datetime

2010-09-14 Thread Von
Hi, How to determine a date is just the 7th day after today ie: today is 14 Sep the 7th day is 14+7 = 21,but assume today is 28 Sep the 7th day is 5 Oct,is there simple way to do this work? I wish I explained clear Bests, -- http://mail.python.org/mailman/listinfo/python-list

Re: python datetime

2010-09-14 Thread Peter Otten
Von wrote: How to determine a date is just the 7th day after today ie: today is 14 Sep the 7th day is 14+7 = 21,but assume today is 28 Sep the 7th day is 5 Oct,is there simple way to do this work? I wish I explained clear The datetime module takes care of this import datetime as dt

Re: python datetime

2010-09-14 Thread Michael Ricordeau
# Determine diff days between two dates import datetime now = datetime.date(2010, 9, 28) next = datetime.date(2010, 10, 5) delta = next - now #delta is datetime.timedelta type. #(You can extract days diff) # Determine date in 7 days import datetime now = datetime.date(2010, 9, 28) delta =

Re: python datetime

2010-09-14 Thread Von
Thank you,the timedelta class is awesome. On Tue, Sep 14, 2010 at 3:50 PM, Michael Ricordeau michael.ricord...@gmail.com wrote: # Determine diff days between two dates import datetime now = datetime.date(2010, 9, 28) next = datetime.date(2010, 10, 5) delta = next - now #delta is

Re: Converting an ugly path to a shell path

2010-09-14 Thread Lawrence D'Oliveiro
In message mailman.705.1284419324.29448.python-l...@python.org, amfr...@web.de wrote: The shell don't understand the special chars so i have to escape them with \ . Is there a function that does this ? You could get the shell (at least if it’s Bash) itself to do this. Try the following

Re: Expected bahaviour of os.chroot and os.getcwd

2010-09-14 Thread Nobody
On Mon, 13 Sep 2010 19:04:53 +0100, r0g wrote: i.e. So do I always have to change directory after changing into a chroot? You don't *have* to change the directory, but not doing so probably defeats the point of performing a chroot(). The reason I ask is because an app I was running inside the

python tkinter Listbox

2010-09-14 Thread Von
Hi all, I am building a simple tool using tkinter,and need multiselection checklist.I find that Listbox with option selectmode=tkinter.MULTIPLE could do this for me. But when I have two Listboxs,I do some selection with one,then do selection with another one,the previous listbox get cleared.I

Re: Converting an ugly path to a shell path

2010-09-14 Thread Nobody
On Tue, 14 Sep 2010 01:07:48 +0200, AmFreak wrote: im using a QFileDialog to let the user select a path that is used later in a command send to the shell like this: retcode = Popen(command + + path, shell=True, stdout = PIPE, stderr = PIPE) The problem that occurs now is when the

help removing pyQt dll from dist created with py2exe

2010-09-14 Thread Carlos Grohmann
Hello all, i've been trying to build an .exe with py2exe. After many tentatives, it worked, but the total space used by the app goes to 30Mb. It is a simple app, that uses wxpython, matplotlib and numpy. I checked the library.zip file and notived that there is a pyQt-related file there: Pyqt -

Re: help removing pyQt dll from dist created with py2exe

2010-09-14 Thread Almar Klein
Hi, Have you tried adding PyQt4, PyQt4.QtGui and PyQt4.QtCore to your list of excludes? (Maybe only PyQt4.QtGui is sufficient.) Almar On 14 September 2010 13:02, Carlos Grohmann carlos.grohm...@gmail.comwrote: Hello all, i've been trying to build an .exe with py2exe. After many

Re: Expected bahaviour of os.chroot and os.getcwd

2010-09-14 Thread r0g
On 14/09/10 11:19, Nobody wrote: On Mon, 13 Sep 2010 19:04:53 +0100, r0g wrote: i.e. So do I always have to change directory after changing into a chroot? You don't *have* to change the directory, but not doing so probably defeats the point of performing a chroot(). snip Thanks for the

Install python-mcrypt on Ubuntu

2010-09-14 Thread lsolesen
I am trying to install python-mcrypt (http://labix.org/python-mcrypt) on Ubuntu, but I cannot get it to work. I have the following python installed: Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 I get the following message when trying to install.

Re: Install python-mcrypt on Ubuntu

2010-09-14 Thread Christian Heimes
Am 14.09.2010 16:14, schrieb lsolesen: I am trying to install python-mcrypt (http://labix.org/python-mcrypt) on Ubuntu, but I cannot get it to work. I have the following python installed: sudo apt-get install python-dev Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: Install python-mcrypt on Ubuntu

2010-09-14 Thread lsolesen
Tried on another machine, but with this error: lsole...@lsolesen-toshiba:~/Desktop/python-mcrypt-1.1$ python setup.py install running install running build running build_ext building 'mcrypt' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall - Wstrict-prototypes -fPIC

help with calling a static method in a private class

2010-09-14 Thread lallous
How can I keep the class private and have the following work: [code] class __internal_class(object): @staticmethod def meth1(s): print meth1:, s @staticmethod def meth2(s): print meth2:, __internal_class.meth1(s) x = __internal_class() x.meth2('sdf')

Re: help with calling a static method in a private class

2010-09-14 Thread Diez B. Roggisch
lallous lall...@lgwm.org writes: How can I keep the class private and have the following work: [code] class __internal_class(object): @staticmethod def meth1(s): print meth1:, s @staticmethod def meth2(s): print meth2:, __internal_class.meth1(s)

Re: Install python-mcrypt on Ubuntu

2010-09-14 Thread Christian Heimes
Am 14.09.2010 16:26, schrieb lsolesen: Tried on another machine, but with this error: lsole...@lsolesen-toshiba:~/Desktop/python-mcrypt-1.1$ python setup.py install running install running build running build_ext building 'mcrypt' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g

Re: Install python-mcrypt on Ubuntu

2010-09-14 Thread Benjamin Kaplan
On Tue, Sep 14, 2010 at 10:26 AM, lsolesen lsole...@gmail.com wrote: mcrypt.c:23:20: error: mcrypt.h: No such file or directory Well, there's your problem. You don't have the mcrypt headers installed. sudo apt-get install libmcrypt-dev -- http://mail.python.org/mailman/listinfo/python-list

Re: help with calling a static method in a private class

2010-09-14 Thread Bruno Desthuilliers
Diez B. Roggisch a écrit : lallous lall...@lgwm.org writes: How can I keep the class private and have the following work: [code] class __internal_class(object): @staticmethod def meth1(s): print meth1:, s @staticmethod def meth2(s): print meth2:,

Re: help removing pyQt dll from dist created with py2exe

2010-09-14 Thread Carlos Grohmann
many thanks Almar. No more pyqt stuff in my dist. cheers carlos On Tue, Sep 14, 2010 at 09:21, Almar Klein almar.kl...@gmail.com wrote: Hi, Have you tried adding PyQt4, PyQt4.QtGui and PyQt4.QtCore to your list of excludes? (Maybe only PyQt4.QtGui is sufficient.)   Almar On 14

String formatting with the format string syntax

2010-09-14 Thread Andre Alexander Bell
Hello, I'm used to write in Python something like s = 'some text that says: %(hello)s' and then have a dictionary like english = { 'hello': 'hello' } and get the formatted output like this: s % english Occasionally I want to extract the field names from the template string. I was used

Re: String formatting with the format string syntax

2010-09-14 Thread Miki
You can use ** syntax: english = {'hello':'hello'} s.format(**english) On Sep 14, 9:59 am, Andre Alexander Bell p...@andre-bell.de wrote: Hello, I'm used to write in Python something like   s = 'some text that says: %(hello)s' and then have a dictionary like   english = { 'hello':

Cross Compiling Python for ARM

2010-09-14 Thread Neil Benn
Hello, I've been working on an embedded ARM system which boots up quick (a beagleboard running a skinnied down version of Angstrom). For this I need to compile a lot of libraries from scratch. One of the things I need is Python; I've cross compiled Python and it works OK when I try to

Re: Cross Compiling Python for ARM

2010-09-14 Thread Thomas Jollans
On Tuesday 14 September 2010, it occurred to Neil Benn to exclaim: # ./python -sh: ./python: not found I'm guessing either there is no file ./python, or /bin/sh is fundamentally broken. -- http://mail.python.org/mailman/listinfo/python-list

Re: String formatting with the format string syntax

2010-09-14 Thread Thomas Jollans
On Tuesday 14 September 2010, it occurred to Miki to exclaim: You can use ** syntax: english = {'hello':'hello'} s.format(**english) No, you can't. This only works with dicts, not with arbitrary mappings, or dict subclasses that try to do some kind of funny stuff. On Sep 14, 9:59 am,

Re: WMI in Python

2010-09-14 Thread bli
On Sep 14, 7:46 am, KING LABS kinglabs...@gmail.com wrote: On Sep 14, 10:39 am, KING LABS kinglabs...@gmail.com wrote: On Sep 13, 8:31 pm, Jerry Hill malaclyp...@gmail.com wrote: On Mon, Sep 13, 2010 at 8:45 AM, KING LABS kinglabs...@gmail.com wrote: Hi All, I am new to

Re: String formatting with the format string syntax

2010-09-14 Thread Benjamin Kaplan
On Tue, Sep 14, 2010 at 3:20 PM, Thomas Jollans tho...@jollybox.de wrote: On Tuesday 14 September 2010, it occurred to Miki to exclaim: You can use ** syntax: english = {'hello':'hello'} s.format(**english) No, you can't. This only works with dicts, not with arbitrary mappings, or dict

Re: Cross Compiling Python for ARM

2010-09-14 Thread David Boddie
On Tuesday 14 September 2010 21:19, Thomas Jollans wrote: On Tuesday 14 September 2010, it occurred to Neil Benn to exclaim: # ./python -sh: ./python: not found I'm guessing either there is no file ./python, or /bin/sh is fundamentally broken. Yes, it may be instructive to use the

Default python compile options

2010-09-14 Thread James Matthews
Hi, I am trying to compile Python 2.7 on Ubuntu and I am wondering what are the default compile options (i.e ./configure ..) for ubuntu. I just want the standard ones that are included with the python2.6 version on ubuntu. Can someone please shed some light? Thanks, James --

python27.exe vs python2.7.exe ...

2010-09-14 Thread Sridhar Ratnakumar
Hi, As you may already know, ActivePython provides versioned Python executables that makes it possible to invoke a particular X.Y version from the command line directly if you have multiple Python versions on PATH. Eg: C:\Python27\python26.exe C:\Python27\python27.exe

Re: scp with paramiko

2010-09-14 Thread Alexander Gattin
Hello, On Wed, Sep 01, 2010 at 09:56:18AM -0700, cerr wrote: I want to download a file from a client using paramiko. I found plenty of ressources using google on how to send a file but none that would describe how to download files from a client. Download files from remote to local? Get

Re: Default python compile options

2010-09-14 Thread James Mills
On Wed, Sep 15, 2010 at 7:25 AM, James Matthews nytrok...@gmail.com wrote: I am trying to compile Python 2.7 on Ubuntu and I am wondering what are the default compile options (i.e ./configure ..) for ubuntu. I just want the standard ones that are included with the python2.6 version on ubuntu.

Re: python27.exe vs python2.7.exe ...

2010-09-14 Thread James Mills
On Wed, Sep 15, 2010 at 7:25 AM, Sridhar Ratnakumar sridh...@activestate.com wrote: Thoughts? I've never been a Windows developer (probably never will be), but I have one thought: Why has ActivePython not been doing this all along ? cheers James -- -- James Mills -- -- Problems are solved by

Re: python27.exe vs python2.7.exe ...

2010-09-14 Thread Trent Mick
On 10-09-14 2:52 PM, James Mills wrote: On Wed, Sep 15, 2010 at 7:25 AM, Sridhar Ratnakumar sridh...@activestate.com wrote: Thoughts? I've never been a Windows developer (probably never will be), but I have one thought: Why has ActivePython not been doing this all along ? Hind sight is

Re: python27.exe vs python2.7.exe ...

2010-09-14 Thread James Mills
On Wed, Sep 15, 2010 at 8:31 AM, Trent Mick tre...@activestate.com wrote: Hind sight is 20/20 is all I can say. :) Perhaps having 1/60 sight is better ? :) When I added support for pythonXY.exe instead of pythonX.Y.exe I was trying to add an out-of-the-box equivalent for what I saw some core

Re: String formatting with the format string syntax

2010-09-14 Thread Andre Alexander Bell
On 09/14/2010 08:20 PM, Miki wrote: You can use ** syntax: english = {'hello':'hello'} s.format(**english) Thanks for your answer. Actually your answer tells me that my example was misleading. Consider the template s = 'A template with {variable1} and {variable2} placeholders.' I'm

webcam in gtalk/xmpp

2010-09-14 Thread Astan Chee
Hi, I was wondering if there is an implementation in any of the xmpp python API (e.g. xmpppy, etc) that implements broadcasting webcam (as well as audio-chat). The documentation on xmpppy doesn't show me how this can be done. Is this even possible? Thanks Astan --

Numpy: Multiplying arrays of matrices

2010-09-14 Thread Gregory Ewing
Suppose I have two N+2 dimensional arrays, representing N-d arrays of 2-d matrices. I want to perform matrix multiplication between corresponding matrices in these arrays. I had thought that dot() might do this, but it appears not, because e.g. applying it to two 3-d arrays gives a 4-d array,

Re: Default python compile options

2010-09-14 Thread James Matthews
Thanks James, I did try the plain old configure but I was missing compression zlib and I wanted to make sure that I wasn't going to be be running in circles having to run ./configure a bunch of times so I decided to ask) James On Tue, Sep 14, 2010 at 2:50 PM, James Mills

Re: Default python compile options

2010-09-14 Thread James Mills
On Wed, Sep 15, 2010 at 10:20 AM, James Matthews nytrok...@gmail.com wrote: Thanks James, I did try the plain old configure but I was missing compression zlib and I wanted to make sure that I wasn't going to be be running in circles having to run ./configure a bunch of times so I decided to

Re: palindrome iteration

2010-09-14 Thread Bearophile
Baba: def i_palindrome(pal): while len(pal)1: if pal[0] == pal[-1]: pal=pal[1:-1] return True print i_palindrome('annab') In normal programming a significant percentage of the time is spent debugging. Experience shows that even short functions may be buggy. If you don't want to

This is Vegas - Get $2400 Free

2010-09-14 Thread http://thisisvegas.com/get/a/179639
This is Vegas - Get $2400 Free http://thisisvegas.com/get/a/179639 Click here to download over 400 Free Games http://thisisvegas.com/get/wd/206052 -- http://mail.python.org/mailman/listinfo/python-list

distutils, cygwin, 'not a regular file'

2010-09-14 Thread Paul Watson
So, what is not a regular file about this? Is there any way to find out which files are being considered irregular? $ uname -a CYGWIN_NT-6.0-WOW64 pwatson 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin $ cat setup.py from distutils.core import setup setup( name='xlsexport',

can not import hashlib

2010-09-14 Thread ch huang
i have a big problem,here is and any can help me? Python 2.6.5 (r265:79063, Apr 1 2010, 05:22:20) [GCC 4.4.3 20100316 (prerelease)] on linux2 Type help, copyright, credits or license for more information. import hashlib Traceback (most recent call last): File stdin, line 1, in module File

Re: Bit fields in python?

2010-09-14 Thread Eli Bendersky
Hi, I'm trying to use the construct library, but encountered a problem. May I know how do I implement the following using the construct library? typedef struct { unsigned short size; . . }CodecInfo; typedef struct { unsigned short size; CodecInfo mastercodec;

Re: can not import hashlib

2010-09-14 Thread Xia, Zhen
Your python is compiled without md5. Maybe your system misses some libraries and you have to re-compile the python. On Wed, 15 Sep 2010 11:03:40 +0800 ch huang justlo...@gmail.com wrote: i have a big problem,here is and any can help me? Python 2.6.5 (r265:79063, Apr 1 2010, 05:22:20)

[issue9815] test_tarfile sometimes ends with error Cannot remove dir

2010-09-14 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: The error went away when I commented out following line. Lib/unittest/case.py(133) self.exception = exc_value.with_traceback(None) I found this by brute force I noticed that test_tar_pipe_open_read_error_v2.py starts

[issue9815] test_tarfile sometimes ends with error Cannot remove dir

2010-09-14 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Here is the patch to fix this issue. (Please forget first patch) E:\python-devpy3k -m test.regrtest test_tarfile [1/1] test_tarfile 1 test OK. [85902 refs] E:\python-devpy3k test_assert_raises.py -- [('foo

[issue9729] Unconnected SSLSocket.{send, recv} raises TypeError: 'member_descriptor' object is not callable

2010-09-14 Thread Andrew Bennetts
Andrew Bennetts s...@users.sourceforge.net added the comment: Here's a conservative fix for Python 2.7. It replaces the attempts to call baseclass.method with direct calls to the decorated object (i.e. replace socket.meth(self, ...) with self._sock.meth(...)). It also corrects a bunch of

[issue9315] The trace module lacks unit tests

2010-09-14 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Note that if you add new directories under /Lib, you need to make the build system aware of them in several places (I don't remember all of them right now, one is in the Makefile). Otherwise they don't get shipped and/or installed, and tests

[issue9213] range purports to implement the Sequence ABC, but is missing index and count methods

2010-09-14 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I am -1 on adding new methods to builtins in bugfix releases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9213 ___

[issue9315] The trace module lacks unit tests

2010-09-14 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yep. But there are other files to edit for the Windows distribution. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9315 ___

[issue9851] multiprocessing socket timeout will break client

2010-09-14 Thread hume
New submission from hume hume...@gmail.com: when use multiprocessing managers, while use socket to communicate between server process and client process, if I used the global socket timeout feature(no matter how large the value is) the client will always say File

[issue9315] The trace module lacks unit tests

2010-09-14 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: It looks like lots of 3.1 buildbots are unhappy with r84783. But the test passes on my local 3.1 checkout. == FAIL: test_trace_list_comprehension

[issue1633863] AIX: configure ignores $CC

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: cc_r does not seems to be able to compile py3k, so it seems to be a bad idea to force it by default. Python should be able to compile with any C89-compliant compiler, so it seems a good idea to open a bug for compile errors instead. In this

[issue9729] Unconnected SSLSocket.{send, recv} raises TypeError: 'member_descriptor' object is not callable

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Nice, thank you. I will look at the patch and commit it if everything's fine. A nicer solution is to simply make socket.socket actually be a simple subclass of _socket.socket rather than the weird decorator it is now. This has already

[issue1926] NNTPS support in nntplib

2010-09-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- dependencies: +nntplib cleanup ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1926 ___ ___

[issue9835] ZipFile unix external attributes incorrect for entry written with writestr

2010-09-14 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This has already been corrected by issue3394, and is at least present in python 2.6. -- nosy: +amaury.forgeotdarc resolution: - out of date status: open - closed superseder: - zipfile.writestr doesn't set external attributes,

[issue6839] zipfile can't extract file

2010-09-14 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I'd prefer if the code no longer checked if the filename in the directory matches the name in the per-file header. The reason of that is that the two don't have to match: it is relatively cheap to rename a file in the zipfile by

[issue9850] obsolete macpath module dangerously broken and should be removed

2010-09-14 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: MacOS9 is already unsupported, except for macpath all traces of OS9 support are gone with the possible exception of distutils (I removed traces of OS9 support code in 3.2 and those got restored when Tarek replaced distutils by the

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-09-14 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: For non-ascii directory name but ascii locale (eg. C locale), we have 3 choices: a- read Makefile as a binary file b- use the PEP 383 c- refuse to compile (a) doesn't seem easy because it looks like distutils use the unicode type

[issue6839] zipfile can't extract file

2010-09-14 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I agree with the change, but the code should be factorized in a function (normalize_filename for example) -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue6006] ffi.c compile failures on AIX 5.3 with xlc

2010-09-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6006 ___ ___ Python-bugs-list mailing list

[issue9729] Unconnected SSLSocket.{send, recv} raises TypeError: 'member_descriptor' object is not callable

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The recvfrom() signature is wrong (it doesn't take an address argument). Here is an updated patch. -- Added file: http://bugs.python.org/file18880/issue9729-2.patch ___ Python tracker

[issue7657] test_ctypes failure on AIX 5.3

2010-09-14 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7657 ___ ___

[issue713169] test_pty fails on HP-UX and AIX when run after test_openpty

2010-09-14 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue713169 ___ ___

[issue8882] socketmodule.c`getsockaddrarg() should not check the length of sun_path

2010-09-14 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8882 ___ ___

[issue5718] Problem compiling ffi part of build on AIX 5.3.

2010-09-14 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5718 ___ ___

[issue1745108] 2.5.1 curses panel segfault in new_panel on aix 5.3

2010-09-14 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1745108 ___ ___

[issue1563807] _ctypes built with GCC on AIX 5.3 fails with ld ffi error

2010-09-14 Thread Sébastien Sablé
Changes by Sébastien Sablé sa...@users.sourceforge.net: -- nosy: +sable ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1563807 ___ ___

[issue9853] Wrong signature for SSLSocket.recvfrom

2010-09-14 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: SSLSocket.recvfrom includes an `addr` argument in its signature, but socket.recvfrom doesn't take such an argument. It should be removed. (obviously, this method is neither tested nor used in the real-world...) In 2.7, this is taken care of by

[issue9315] The trace module lacks unit tests

2010-09-14 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Updated Makefile in r84803 - r84805. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9315 ___

[issue9853] Wrong signature for SSLSocket.recvfrom and SSLSocket.sendto

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed in r84807 (3.x) and r84809 (3.1). -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9853

[issue1552] fromfd() and socketpair() should return wrapped sockets

2010-09-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1552 ___ ___ Python-bugs-list mailing

[issue9855] Complex number slicing neither works nor causes an error on immediate use

2010-09-14 Thread Tom
New submission from Tom t...@littlemonster.co.uk: I hope the title of this makes sense. I've been out of things for a long time. Going through the Python tutorial (http://docs.python.org/tutorial/introduction.html) I departed from the script to try something. It gave neither of the results I

[issue9213] range purports to implement the Sequence ABC, but is missing index and count methods

2010-09-14 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Sounds reasonable to me. I'll close this and the related 9212 (both fixes are already committed to the py3k branch). -- stage: patch review - committed/rejected status: open - closed

[issue9855] Complex number slicing neither works nor causes an error on immediate use

2010-09-14 Thread Tom
Tom t...@littlemonster.co.uk added the comment: Thanks! I'm not surprised that it was something stupidofme like that. Sorry to have troubled you. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9855

[issue1552] fromfd() and socketpair() should return wrapped sockets

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: socketpair() was fixed in 3.x in r84813. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue2292] Missing *-unpacking generalizations

2010-09-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Does yield *it mean yield iter(tuple(it)) or for i in it: yield i ? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292

[issue9854] SocketIO should return None on EWOULDBLOCK

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The problem with RawIOBase.read is fixed in r84814. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9854 ___

[issue9848] setup.py contains needless references to built-in _weakref module

2010-09-14 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Fixed in r84819 for 3.2. No point in backporting since it doesn't hurt anything. Thanks for the report! -- assignee: - brett.cannon nosy: +brett.cannon resolution: - fixed status: open - closed ___

[issue9728] Docs point to FAQ Section 3, but FAQs are not numbered

2010-09-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the investigation! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9728 ___ ___

[issue9854] SocketIO should return None on EWOULDBLOCK

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. The tests are only run for unbuffered objects (buffering=0), since the behaviour of buffered objects is driven by BufferedReader and friends, not by the wrapped SocketIO. -- keywords: +patch nosy: +giampaolo.rodola

[issue9854] SocketIO should return None on EWOULDBLOCK

2010-09-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file18883/sockio_nonblock.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9854 ___

[issue9854] SocketIO should return None on EWOULDBLOCK

2010-09-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file18884/sockio_nonblock.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9854 ___

[issue9857] SkipTest in tearDown is reported an as an error

2010-09-14 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Raising SkipTest when in a tearDown method is reported as an error, rather than a skipped test. Now doing this sounds like a weird use case, but it would be actually useful when you have a worker thread, and the tearDown method collects the

[issue9315] The trace module lacks unit tests

2010-09-14 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: The issue on 3.1 happens when Python is configured --with-computed-gotos. (this is the case on all 3.1 buildbots) But this issue does not happen on 3.x branch. On this branch computed-gotos is the default, but the switch

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2010-09-14 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: This is a regex bug, and it just bit me again :-( Because of this bug, you cannot currently build a bdist_egg (and therefore cannot install with easy_install) http://pypi.python.org/pypi/buildout-versions on windows. The only choice I

[issue9854] SocketIO should return None on EWOULDBLOCK

2010-09-14 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I've never used socket.socket.makefile so I'm not sure, but its documentation says: The socket must be in blocking mode (it can not have a timeout). If the statement is there because EAGAIN/EWOULDBLOCK were originally raised then it

[issue7936] sys.argv contains only scriptname

2010-09-14 Thread Bill Hayes
Bill Hayes bhaye...@yahoo.com added the comment: I found this page while encountering the same problem (only one argument, the scriptname, being passed in from the command line), and wanted to post the following workaround. I'm running Vista and using Python 2.6. In summary I had to have

[issue9854] SocketIO should return None on EWOULDBLOCK

2010-09-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le mardi 14 septembre 2010 à 23:19 +, Giampaolo Rodola' a écrit : I've never used socket.socket.makefile so I'm not sure, but its documentation says: The socket must be in blocking mode (it can not have a timeout). If the statement is

[issue767645] incorrect os.path.supports_unicode_filenames

2010-09-14 Thread Ned Deily
Ned Deily n...@acm.org added the comment: No problems noted with a quick test of posixpath_darwin.patch on 10.6 so looks good. It will get regression tested on more configurations sometime later. -- ___ Python tracker rep...@bugs.python.org

[issue2236] Distutils' mkpath implementation ignoring the mode parameter

2010-09-14 Thread Carlos Henrique Romano
Carlos Henrique Romano chrom...@gmail.com added the comment: Patch updated, now it includes test. -- nosy: +chromano Added file: http://bugs.python.org/file18885/python-distutils_mkpath_filemode-v1.diff ___ Python tracker rep...@bugs.python.org

[issue9851] multiprocessing socket timeout will break client

2010-09-14 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +asksol, jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9851 ___ ___

[issue9808] Implement os.getlogin on Windows

2010-09-14 Thread Jon Anglin
Jon Anglin jang...@fortresgrand.com added the comment: I went ahead and moved the test skip decorator to the class level as suggested by Brian Curtin, see issue9808-new.diff. -- Added file: http://bugs.python.org/file18886/issue9808-new.diff ___

[issue2236] Distutils' mkpath implementation ignoring the mode parameter

2010-09-14 Thread Carlos Henrique Romano
Changes by Carlos Henrique Romano chrom...@gmail.com: Removed file: http://bugs.python.org/file18885/python-distutils_mkpath_filemode-v1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2236 ___