[ANN] Leipzig Python User Group - Meeting, June 1, 2010, 08:00pm

2010-05-29 Thread Stefan Schwarzer
=== Leipzig Python User Group === We will meet on Tuesday, June 1, 8:00 pm at the training center of Python Academy in Leipzig, Germany ( http://www.python-academy.com/center/find.html ). This meeting is one week earlier than the usual second Tuesday of each month! Maik Derstappen will give a

ANN: esky 0.7.0

2010-05-29 Thread Ryan Kelly
Hi All, I'm pleased to announce the latest release of esky, an auto-update framework for frozen python apps. New features include: * ability to escalate to root privileges when necessary * better safety guarantees on Windows XP and lower * better support for py2exe with

Re: [ANN] Leipzig Python User Group - Meeting, June 1, 2010, 08:00pm

2010-05-29 Thread Stefan Schwarzer
Hello, On 2010-05-28 22:37, Stefan Schwarzer wrote: === Leipzig Python User Group === We will meet on Tuesday, June 1, 8:00 pm at the training center of Python Academy in Leipzig, Germany ( http://www.python-academy.com/center/find.html ). This meeting is one week earlier than the usual

Re: A Friday Python Programming Pearl: random sampling

2010-05-29 Thread Xavier Ho
On 29 May 2010 06:44, Mark Dickinson dicki...@gmail.com wrote: But I was struck by its beauty and simplicity, and thought it deserved to be better known. Wow, that took me at least 2 minutes to see its beauty as well. Nice find, Mark. Thanks for sharing. (Also, it's nice to see another SOer

Py_single_input and the side-effects...

2010-05-29 Thread moerchendiser2k3
Hi at all, I have a small problem with Py_single_input, that I dont really know what it actually does. I created my own interactive interpreter loop and when I create objects like p = TestObject() this instance is just deleted on Py_Finalize() even I delete the entire console scope long time

Re: Python and Tkinter Programming by John Grayson

2010-05-29 Thread Pradeep B
On Fri, Jan 22, 2010 at 6:48 AM, Ethan Furman et...@stoneleaf.us wrote: Peter wrote: On Jan 15, 9:12 am, Kevin Walzer k...@codebykevin.com wrote: On Jan 15, 6:24 am, Mark Rosemanm...@markroseman.com  wrote:  Peterpeter.milli...@gmail.com  wrote: Besides, the book is mainly about using

Tkinter library reference

2010-05-29 Thread Pradeep B
Do we have a standard reference library for Tkinter available? -- Pradeep -- http://mail.python.org/mailman/listinfo/python-list

Creating a single list

2010-05-29 Thread Astley Le Jasper
This is probably a really silly question but, given the example code at the bottom, how would I get a single list? What I currently get is: ('id', 20, 'integer') ('companyname', 50, 'text') [('focus', 30, 'text'), ('fiesta', 30, 'text'), ('mondeo', 30, 'text'), ('puma', 30, 'text')] ('contact',

Re: Creating a single list

2010-05-29 Thread Xavier Ho
On 29 May 2010 23:24, Astley Le Jasper astley.lejas...@gmail.com wrote: def createlist(): column_title_list = ( (id,20,integer), (companyname,50,text), getproducts(),

Re: Creating a single list

2010-05-29 Thread Xavier Ho
# Insert into the list with slicing syntax. column_title_list[2:3} = getproduct() Sorry, that should have been [2:3]. Typing a bit too fast. -Xav -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Tkinter Programming by John Grayson

2010-05-29 Thread Kevin Walzer
Is printing from GUI still a 'not-happening' thing with Tkinter ? I have just started learning it. Tkinter doesn't wrap native printing API's. There are a few extensions that do it, but they are platform specific and not complete. The usual ways of printing are like this: 1. If you're

Re: Creating a single list

2010-05-29 Thread superpollo
Astley Le Jasper ha scritto: This is probably a really silly question but, given the example code at the bottom, how would I get a single list? What I currently get is: ('id', 20, 'integer') ('companyname', 50, 'text') [('focus', 30, 'text'), ('fiesta', 30, 'text'), ('mondeo', 30, 'text'),

Re: A Friday Python Programming Pearl: random sampling

2010-05-29 Thread Bryan
Mark Dickinson wrote: N.B.  I don't claim any originality for the algorithm; only for the implementation: the algorithm is based on an algorithm attributed to Robert Floyd, and appearing in Jon Bentley's 'Programming Pearls' book Actually it is the sequel, /More Programming Pearls/. (though

Help with Regexp, \b

2010-05-29 Thread andrew cooke
This is a bit embarassing, but I seem to be misunderstanding how \b works in regexps. Please can someone explain why the following fails: from re import compile p = compile(r'\bword\b') m = p.match(' word ') assert m My understanding is that \b matches a space

Re: Help with Regexp, \b

2010-05-29 Thread Shashwat Anand
\b is NOT spaces p = re.compile(r'\sword\s') m = p.match(' word ') assert m m.group(0) ' word ' On Sat, May 29, 2010 at 8:34 PM, andrew cooke and...@acooke.org wrote: This is a bit embarassing, but I seem to be misunderstanding how \b works in regexps. Please can someone explain why

Re: Help with Regexp, \b

2010-05-29 Thread Duncan Booth
andrew cooke and...@acooke.org wrote: Please can someone explain why the following fails: from re import compile p = compile(r'\bword\b') m = p.match(' word ') assert m My understanding is that \b matches a space at the start or end of a word, and that

Re: Help with Regexp, \b

2010-05-29 Thread Shashwat Anand
Also what you are probably looking for is this I guess, p = re.compile(r'\bword\b') m = p.match('word word') assert m m.group(0) 'word' On Sat, May 29, 2010 at 8:44 PM, Shashwat Anand anand.shash...@gmail.comwrote: \b is NOT spaces p = re.compile(r'\sword\s') m = p.match(' word ')

Re: Tkinter library reference

2010-05-29 Thread Godson Gera
Do you mean Tkinter API reference documentation ? If so, this is what I've used years back http://www.nmt.edu/tcc/help/pubs/tkinter.pdf you can also get some info from http://effbot.org/tkinterbook On Sat, May 29, 2010 at 6:41 PM, Pradeep B pradeepb...@gmail.com wrote: Do we have a standard

Re: Help with Regexp, \b

2010-05-29 Thread andrew cooke
On May 29, 11:24 am, Duncan Booth duncan.bo...@invalid.invalid wrote: andrew cooke and...@acooke.org wrote: Please can someone explain why the following fails:         from re import compile         p = compile(r'\bword\b')         m = p.match(' word ')         assert m [...] You

Re: A Friday Python Programming Pearl: random sampling

2010-05-29 Thread Mark Dickinson
On May 29, 3:43 pm, Bryan bryanjugglercryptograp...@yahoo.com wrote: Mark Dickinson wrote: N.B.  I don't claim any originality for the algorithm; only for the implementation: the algorithm is based on an algorithm attributed to Robert Floyd, and appearing in Jon Bentley's 'Programming

Python vs. Fedora and CentOS

2010-05-29 Thread John Nagle
The major Red Hat based Linux distros are still shipping with Python 2.4. As a result, almost all hosting providers are running obsolete versions of Python. The big problem seems to be that cPanel and yum still use older versions of Python, and those programs are more important to distro

xrange issue 7721

2010-05-29 Thread Mark Lawrence
Sorry if this is the wrong ng/ml, but thought I'd better flag this up somewhere. I've had an OverflowError using xrange with Python 2.6.5 on Windows. Googling got me to the subject line. msg97928 gives a code snippet to overcome the limitations of xrange, allowing for negative steps,

Re: Python vs. Fedora and CentOS

2010-05-29 Thread Paul Rubin
John Nagle na...@animats.com writes: The major Red Hat based Linux distros are still shipping with Python 2.4. Fedora 12 ships with Python 2.6, I think. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs. Fedora and CentOS

2010-05-29 Thread Wesley Brooks
I've got Fedora 10 here with 2.5, and 11 at the office with 2.6. On 29 May 2010 19:58, Paul Rubin no.em...@nospam.invalid wrote: John Nagle na...@animats.com writes:   The major Red Hat based Linux distros are still shipping with Python 2.4. Fedora 12 ships with Python 2.6, I think. --

Re: Python vs. Fedora and CentOS

2010-05-29 Thread Philip Semanchuk
On May 29, 2010, at 2:58 PM, Paul Rubin wrote: John Nagle na...@animats.com writes: The major Red Hat based Linux distros are still shipping with Python 2.4. Fedora 12 ships with Python 2.6, I think. Fedora has been shipping with Python 2.6 since F11 release in June of 2009, and

Re: Python vs. Fedora and CentOS

2010-05-29 Thread Mike Fedyk
On Sat, May 29, 2010 at 12:03 PM, Wesley Brooks wesbro...@gmail.com wrote: On 29 May 2010 19:58, Paul Rubin no.em...@nospam.invalid wrote: John Nagle na...@animats.com writes:   The major Red Hat based Linux distros are still shipping with Python 2.4. Fedora 12 ships with Python 2.6, I think.

Re: xrange issue 7721

2010-05-29 Thread Martin Manns
On Sat, 29 May 2010 19:46:28 +0100 Mark Lawrence breamore...@yahoo.co.uk wrote: I've had an OverflowError using xrange with Python 2.6.5 on Windows. Googling got me to the subject line. msg97928 gives a code snippet to overcome the limitations of xrange, allowing for negative steps,

Re: Free chapter about Python and databases (MySQL and SQLite)

2010-05-29 Thread John Bokma
Robinow drobi...@gmail.com writes: Mobile On May 28, 2010, at 10:05 PM, John Bokma j...@castleamber.com wrote: Sebastian Bassi sba...@clubdelarazon.org writes: On Fri, May 28, 2010 at 12:37 AM, John Bokma j...@castleamber.com wrote: Even if it's just a few bucks, it's still money saved

Re: Python vs. Fedora and CentOS

2010-05-29 Thread John Nagle
Philip Semanchuk wrote: On May 29, 2010, at 2:58 PM, Paul Rubin wrote: John Nagle na...@animats.com writes: The major Red Hat based Linux distros are still shipping with Python 2.4. Fedora 12 ships with Python 2.6, I think. Fedora has been shipping with Python 2.6 since F11 release in

Re: dbf files and indexes

2010-05-29 Thread Bryan
Christian Heimes wrote: [D'Arcy J.M. Cain had written:] SELECT * FROM NumberOfPets WHERE name IN (SELECT name FROM CatLovers) OR    name IN (SELECT name FROM DogLovers) ORDER BY name; A good way is to use SQL with JOINs instead of horrible nested selects. Do show us your join that

tkinter function outout to text widget

2010-05-29 Thread Johan Lans
Hi I'm totally new on python and I'm doing an assignement where I'm doing a class that manipulates a text. The program is also supposed to have a GUI, for which I have used tkinter. So far I have entry widgets for file names and buttons, its all working like I want it to. What is missing is a way

PLAY CAR RACE GAMES

2010-05-29 Thread KAJAL AGARWAL
PLAY CAR RACE GAMES:- PLAY CAR RACE GAMES ON MY WEB SITE AND ENJOY UR MIND FRESH AND U CAN DOWN LOAD ALSO MY GAMES VISIT http://andhraonlinegames.blogspot,com -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter function outout to text widget

2010-05-29 Thread Alf P. Steinbach
* Johan Lans, on 29.05.2010 22:51: Hi I'm totally new on python and I'm doing an assignement where I'm doing a class that manipulates a text. The program is also supposed to have a GUI, for which I have used tkinter. So far I have entry widgets for file names and buttons, its all working like I

Re: Python vs. Fedora and CentOS

2010-05-29 Thread D'Arcy J.M. Cain
On Sat, 29 May 2010 11:43:29 -0700 John Nagle na...@animats.com wrote: The major Red Hat based Linux distros are still shipping with Python 2.4. Is anybody trying to do something about this? Other than not running Linux on our hosting server? My ISP (http://www.Vex.Net) runs FreeBSD.

Re: dbf files and indexes

2010-05-29 Thread D'Arcy J.M. Cain
On Sat, 29 May 2010 13:45:37 -0700 (PDT) Bryan bryanjugglercryptograp...@yahoo.com wrote: You're not doing the query optimizer any favors. It can normalize the query to the same thing either way, so we might as well write it to be readable by people. I can read D'Arcy's at a glance. Assuming

Re: xrange issue 7721

2010-05-29 Thread Mark Lawrence
Hi Martin, thanks for the response, please see below. On 29/05/2010 20:12, Martin Manns wrote: On Sat, 29 May 2010 19:46:28 +0100 Mark Lawrencebreamore...@yahoo.co.uk wrote: I've had an OverflowError using xrange with Python 2.6.5 on Windows. Googling got me to the subject line. msg97928

Re: if, continuation and indentation

2010-05-29 Thread john
On May 28, 10:37 am, Colin J. Williams cjwilliam...@gmail.com wrote: On 28-May-10 05:54 AM, Jonathan Hartley wrote: On May 27, 1:57 pm, Jean-Michel Pichavantjeanmic...@sequans.com wrote: HH wrote: I have a question about best practices when it comes to line wrapping/ continuation and

Re: if, continuation and indentation

2010-05-29 Thread Mark Lawrence
On 30/05/2010 01:23, john wrote: On May 28, 10:37 am, Colin J. Williamscjwilliam...@gmail.com wrote: On 28-May-10 05:54 AM, Jonathan Hartley wrote: On May 27, 1:57 pm, Jean-Michel Pichavantjeanmic...@sequans.com wrote: HH wrote: I have a question about best practices when it comes to line

GUI programs

2010-05-29 Thread jyoung79
Just curious if anyone would be willing to share their thoughts about different Python GUI programming modules. I've been doing a bit of research and am trying to find something that: 1. Is portable. Would like to be able to send the module along with the main python file that would be able

Python vs. Fedora and CentOS

2010-05-29 Thread Someone Something
Redhat as always believed in (sorry if this offends anyone): Use legacy stuff that works, we don't really give a flying hoot if the rest of the world has moved on On Sat, May 29, 2010 at 6:55 PM, D'Arcy J.M. Cain da...@druid.net wrote: On Sat, 29 May 2010 11:43:29 -0700 John Nagle

Re: Python vs. Fedora and CentOS

2010-05-29 Thread Benjamin Kaplan
And since they're using legacy stuff that works from 3 years ago (no one upgrades major versions of software in a minor release- hence Win XP SP3 still coming with IE 6), it's no wonder that they're still on 2.4. On Sat, May 29, 2010 at 9:05 PM, Someone Something fordhai...@gmail.com wrote:

Where does make altinstall put stuff?

2010-05-29 Thread John Nagle
I know that one is supposed to use make altinstall to install versions of Python that won't be the primary version. But what directory names does it use for packages and other support files? Is this documented somewhere? I want to make sure that no part of the existing Python installation

Re: if, continuation and indentation

2010-05-29 Thread Nathan Rice
I prefer to just break such things into multiple lines. You're doing that already anyhow, it's not much of a speed hit, and it makes exactly what you're testing explicit. If I break a statement onto multiple lines I only use parenthesis, and that is as a last resort. In my opinion there's

[issue2504] Add gettext.pgettext() and variants support

2010-05-29 Thread Wichert Akkerman
Wichert Akkerman wich...@wiggy.net added the comment: Martin, is there anything we can do to help get this merged? I can really use this as well. My background here is that currently the complete zope i18n support abuses message ids as a workaround, and the result works but is very painful

[issue6715] xz compressor support

2010-05-29 Thread Per Øyvind Karlsen
Per Øyvind Karlsen peroyv...@mandriva.org added the comment: I've ported pyliblzma to py3k now and also implemented the missing functionality I mentioned earlier, for anyone interested in my progress the branch is found at: https://code.launchpad.net/~proyvind/pyliblzma/py3k I need to fix

[issue8840] io.StringIO: truncate+print disabled in 3.1.2

2010-05-29 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: The change was announced in http://docs.python.org/dev/whatsnew/2.7.html, but indeed it wasn't advertised in py3k changes - my apologies, I didn't check it was. I agree that the doc should be clarified on several aspects. * The

[issue8616] Changes to content of Demo/turtle

2010-05-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: OK, I tried again and it worked flawlessly. Maybe I overlooked a stick last time :) Committed in r81593. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8811] fixing sqlite3 docs for py3k

2010-05-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Well, if I try applying your patch to 3.1 it fails. It would be nice to have one that applies flawlessly :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8811

[issue8792] xmlrpclib compatibility issues with Apache XML-RPC library

2010-05-29 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: A few notes: 1. these types are *not* part of the XML-RPC specification, they are Apache extensions 2. these types seem designed to accommodate Java 3. some of these types would be very possible to accommodate e.g. ex:serializable which

[issue5673] Add timeout option to subprocess.Popen

2010-05-29 Thread Filippo Giunchedi
Changes by Filippo Giunchedi fgiunch...@gmail.com: -- nosy: +filippo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5673 ___ ___ Python-bugs-list

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-05-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm imagining (for POSIX platforms) adding some kind of check for signals when the system call returns EINTR. If the signal handler raises an exception, like an interrupt should raise a KeyboardInterrupt, we can just give a different return

[issue8840] truncate() semantics changed in 3.1.2

2010-05-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - d...@python components: +Documentation nosy: +d...@python title: io.StringIO: truncate+print disabled in 3.1.2 - truncate() semantics changed in 3.1.2 versions: +Python 2.6, Python 2.7, Python 3.2

[issue8840] truncate() semantics changed in 3.1.2

2010-05-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: How about reusing the documentation of legacy file objects: “Truncate the file’s size. If the optional size argument is present, the file is truncated to (at most) that size. The size defaults to the current position. The current file position

[issue8840] truncate() semantics changed in 3.1.2

2010-05-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've committed a doc update (a mix of the legacy truncate() doc and Pascal's proposal) in r81594. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8840

[issue8849] python.exe problem with cvxopt

2010-05-29 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Rather than attaching a Word document, can you just enter your information here? -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8849

[issue8852] _socket fails to build on OpenSolaris x64

2010-05-29 Thread David Kirkby
New submission from David Kirkby david.kir...@onetel.net: Using Python 2.6.5, the module _socket is failing to build on OpenSolaris. The problem can be worked around with a hack, but I've not verified if the hack actually results in working code - but at least it compiles. See below. The

[issue8847] crash appending list and namedtuple

2010-05-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I can't reproduce this on either 3.1.2 or py3k trunk. -- nosy: +r.david.murray resolution: - works for me ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8847

[issue8852] _socket fails to build on OpenSolaris x64

2010-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Please verify that HAVE_NETPACKET_PACKET_H does indeed get defined, looking at pyconfig.h. Please inspect config.log to find out why it does get defined. -- nosy: +loewis ___ Python tracker

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-29 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I'm not sure that's a good idea: mightn't this change behaviour for user-defined classes with a __coerce__ method? Maybe it would be better to just special-case ints and longs at the start of complex_richcompare, and then leave everything

[issue8852] _socket fails to build on OpenSolaris x64

2010-05-29 Thread David Kirkby
David Kirkby david.kir...@onetel.net added the comment: I was obviously looking for the wrong file. ./pyconfig.h shows: /* Define to 1 if you have the netpacket/packet.h header file. */ #define HAVE_NETPACKET_PACKET_H 1 the file does indeed exist drkir...@hawk:~$ find /usr/include -name

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-29 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8748 ___ ___ Python-bugs-list

[issue2470] Need fixer for dl (removed) - ctypes module

2010-05-29 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- stage: - needs patch type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2470 ___

[issue8852] _socket fails to build on OpenSolaris x64

2010-05-29 Thread David Kirkby
David Kirkby david.kir...@onetel.net added the comment: Two points I should have stated. 1) http://www.lotuseyes.de/blog/error-installing-plone-on-opensolaris-using-the-unified-installer has a discussion about this issue. It was related to someone trying to install Plone but the problem is

[issue8651] s# and friends can silently truncate buffer length

2010-05-29 Thread Ryan Coyner
Changes by Ryan Coyner rcoy...@gmail.com: -- nosy: +rcoyner ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8651 ___ ___ Python-bugs-list mailing

[issue8650] zlibmodule.c isn't 64-bit clean

2010-05-29 Thread Ryan Coyner
Changes by Ryan Coyner rcoy...@gmail.com: -- nosy: +rcoyner ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8650 ___ ___ Python-bugs-list mailing

[issue8840] truncate() semantics changed in 3.1.2

2010-05-29 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: Good B-) Woudl it be necessary to update the docstrings too ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8840 ___

[issue8853] getaddrinfo should accept port of type long

2010-05-29 Thread AndiDog
New submission from AndiDog andi...@web.de: socket.getaddrinfo(127.0.0.1, 80L) error: Int or String expected I would expect getaddrinfo to convert the port number to an integer. -- components: Library (Lib) messages: 106726 nosy: AndiDog priority: normal severity: normal status: open

[issue8852] _socket fails to build on OpenSolaris x64

2010-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The AF_PACKET support was original meant for Linux. When Solaris now also supports that socket family, and with a similar interface, it might be interesting to port that support to Solaris. If nobody volunteers, it might be easier to

[issue8810] TZ offset description is unclear in docs

2010-05-29 Thread Sean Reifschneider
Sean Reifschneider j...@tummy.com added the comment: In this case, the docs.python.org link you point to seems to be correct, saying that it returns a timedelta. It is the docstring that says it's minutes east of UTC. I've attached a patch which changes this wording to: timedelta() showing

[issue8810] TZ offset description is unclear in docs

2010-05-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m not sure about the “with negative” wording. -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8810 ___

[issue8810] TZ offset description is unclear in docs

2010-05-29 Thread Sean Reifschneider
Sean Reifschneider j...@tummy.com added the comment: Alternately, here is a patch that just takes the docs.python.org description. -- Added file: http://bugs.python.org/file17496/python-utcoffsetdoc2.patch ___ Python tracker rep...@bugs.python.org

[issue8810] TZ offset description is unclear in docs

2010-05-29 Thread Sean Reifschneider
Sean Reifschneider j...@tummy.com added the comment: Then how about: timedelta() showing offset from UTC, negative values indicating West of UTC ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8810

[issue8810] TZ offset description is unclear in docs

2010-05-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: timedelta() showing offset from UTC, negative values indicating West of UTC +1 for the last one. Micro nit: I would not put parentheses when referring to the type (we talk about “a list”, not “a list()”). Micro nit: Some languages use case to

[issue1289118] timedelta multiply and divide by floating point

2010-05-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The patch looks good to me. Please replace the tab characters in datetimemodule.c with spaces, though. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1289118

[issue8810] TZ offset description is unclear in docs

2010-05-29 Thread Sean Reifschneider
Sean Reifschneider j...@tummy.com added the comment: I'm fine without (). I thought the direction was generally initial-capped, but I may be wrong there. Let's go with west. -- ___ Python tracker rep...@bugs.python.org

[issue8470] Let cmd.cmd.intro be unicode friendly

2010-05-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Since 2.7 is nearing the second beta, I’m afraid no new features can be added. Note that classes using cmd in 3.x get Unicode arguments. -- nosy: +merwok ___ Python tracker rep...@bugs.python.org

[issue8470] Let cmd.cmd.intro be unicode friendly

2010-05-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Correction: beta is behind us, it’s nearly rc time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8470 ___

[issue8473] doctest fails if you have inconsistent lineendings

2010-05-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks good to me. Is there’s no disagreement on this being a bug fix rather than a new feature, it could go before the rc. -- components: +Library (Lib) -Extension Modules, Tests nosy: +merwok priority: normal -

[issue8473] doctest fails if you have inconsistent lineendings

2010-05-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8473 ___ ___ Python-bugs-list

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Given the complexities and subtleties of how comparison works in 2.7 I am a little hesitant to commit this change as well. Understood. Given how long we've lived with this behaviour in 2.x with no serious ill effects, it's very tempting

[issue8481] doc: ctypes no need to explicitly allocate writable memory with Structure

2010-05-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: theller - flox nosy: +d...@python, flox -theller priority: normal - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8481 ___

[issue8852] _socket fails to build on OpenSolaris x64

2010-05-29 Thread David Kirkby
David Kirkby david.kir...@onetel.net added the comment: Hi, thank you for the patch. I hope you can keep Python building the same modules on Solaris as Linux, as that would be a real shame if it did not. This module is used in the Sage maths software. I had some difficulty applying your

[issue8481] doc: ctypes no need to explicitly allocate writable memory with Structure

2010-05-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: flox - theller nosy: +theller -flox priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8481 ___

[issue8469] struct - please make sizes explicit

2010-05-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Documentation -Library (Lib) priority: normal - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8469 ___

[issue8469] struct - please make sizes explicit

2010-05-29 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8469 ___ ___ Python-bugs-list

[issue8852] _socket fails to build on OpenSolaris x64

2010-05-29 Thread David Kirkby
David Kirkby david.kir...@onetel.net added the comment: I forget to say I had attached the patch 'socketmodule.c.patch' which allows _socket to build. (I know you can see that if you look, but I thought it useful to write it). I do have some other modules not building on OpenSolaris

[issue7962] Demo/ directory needs to be tested and pruned

2010-05-29 Thread Zack Goldstein
Zack Goldstein gol...@gmail.com added the comment: I've started going through the demos. So far I've gone through cgi and classes. If this is what you're looking for I'll try and go through the rest in the next week or so. Python 3.2a0 /cgi all work /classes Complex.py - fail

[issue7962] Demo/ directory needs to be tested and pruned

2010-05-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Does “tested” in the title of this issue mean “run” or “unit-tested”? Regarding the 2.7 branch, is this still relevant? -- nosy: +merwok ___ Python tracker rep...@bugs.python.org

[issue8501] --dry-run option doesn't work

2010-05-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Tarek, do we change the component to Distutils2? If so, I’m willing to give this a try. -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8501

[issue7962] Demo/ directory needs to be tested and pruned

2010-05-29 Thread Zack Goldstein
Zack Goldstein gol...@gmail.com added the comment: I'm assuming tested means run, and that a good demo is one that works for some nominal input. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7962

[issue8854] msvc9compiler.py: find_vcvarsall() doesn't work with VS2008 on Windows x64

2010-05-29 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg m...@egenix.com: When installing Visual Studio 2008 SP1 on a Windows Vista x64 system, the installer registers the various registry keys under Software\Wow6432Node\Microsoft\VisualStudio\9.0\ rather than Software\Microsoft\VisualStudio\9.0\ This is due

[issue8855] Shelve documentation lacks security warning

2010-05-29 Thread Longpoke
New submission from Longpoke longp...@gmail.com: Loading a shelve can cause arbitrary code to be executed [1] and other black magic (because it's backed by Pickle). Shouldn't there be a big fat warning at the top of the shelve documentation page? Unless you're like me and assume anything to

[issue8470] Let cmd.cmd.intro be unicode friendly

2010-05-29 Thread Shashwat Anand
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8470 ___ ___ Python-bugs-list