Re: python 2.6: Need some advise for installing modules on a legacy system

2021-02-26 Thread Thomas Jollans
as Dan suggested, find the source tar.gz (or zip, or whatever) file for the last version that supported python 2.6 on the corresponding project's website or on PyPI and install the packages (and all their dependencies) using the setup.py scripts. If you're on Windows, you'll probably nee

Re: python 2.6: Need some advise for installing modules on a legacy system

2021-02-24 Thread Dan Stromberg
You also could try getting the modules (of suitable versions) you need from their homepage, possibly github, and then use the setup.py to install your packages. pypi usually has a link to a project's homepage. On Wed, Feb 24, 2021 at 6:08 AM Dan Stromberg wrote: > > I don't think pip supports 2

Re: python 2.6: Need some advise for installing modules on a legacy system

2021-02-24 Thread Dan Stromberg
I don't think pip supports 2.x anymore. You might be able to: 1) Look up what versions of your desired modules support Python 2.x on pypi's website 2) Install them on another system that has Python 3.x using pip 3) Copy them to the moribund system 4) Test On Wed, Feb 24, 2021 at 5:15 AM Antoon P

python 2.6: Need some advise for installing modules on a legacy system

2021-02-24 Thread Antoon Pardon
I need to do some development on this legacy system. It only runs python2.6 and there is little hope of installing an other version. How can I best proceed to install modules for working with mysql and ldap? -- Antoon. -- https://mail.python.org/mailman/listinfo/python-list

Re: [Twisted-Python] Twisted 15.4 was the last release to support Python 2.6; or: a HawkOwl Can't Words Situation

2015-12-30 Thread anatoly techtonik
release > notes and it slipped through the cracks. In the NEWS I said: > >> This is the last Twisted release where Python 2.6 is supported, on any >> platform. > > However, I meant that this is the first Twisted release to drop 2.6 support > wholesale, preventi

Twisted 15.4 was the last release to support Python 2.6; or: a HawkOwl Can't Words Situation

2015-12-07 Thread Amber "Hawkie" Brown
Hi everyone! It's been brought to my attention that I misworded something in the release notes and it slipped through the cracks. In the NEWS I said: > This is the last Twisted release where Python 2.6 is supported, on any > platform. However, I meant that this is the first Twisted

Re: Intalling Python 2.6 on Mac OSX 10.9

2014-02-25 Thread Mark Lawrence
On 25/02/2014 18:28, Robert Schmidt wrote: I am trying to install Python 2.6 because Pygame will only run on 2.6. The configure gives only warnings. make frameworkinstall gcc -c -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I

Intalling Python 2.6 on Mac OSX 10.9

2014-02-25 Thread Robert Schmidt
I am trying to install Python 2.6 because Pygame will only run on 2.6. The configure gives only warnings. make frameworkinstall gcc -c -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -DSVNVERSION=\"`LC_

Re: Cannot print greek letters in Python 2.6

2013-11-28 Thread Steven D'Aprano
On Thu, 28 Nov 2013 14:22:01 -0800, mefistofelis wrote: > I have the following script however when the clipboard contents are > greek letters it fails to print them right. I have used all posible > encoding for greek letters including utf8 but to no avail so i just stay > with latin1. > > Can you

Re: Cannot print greek letters in Python 2.6

2013-11-28 Thread Terry Reedy
On 11/28/2013 5:48 PM, Chris Angelico wrote: On Fri, Nov 29, 2013 at 9:22 AM, wrote: I have the following script however when the clipboard contents are greek letters it fails to print them right. I have used all posible encoding for greek letters including utf8 but to no avail so i just stay

Re: Cannot print greek letters in Python 2.6

2013-11-28 Thread Chris Angelico
On Fri, Nov 29, 2013 at 9:22 AM, wrote: > I have the following script however when the clipboard contents are greek > letters it fails to print them right. > I have used all posible encoding for greek letters including utf8 but to no > avail so i just stay with latin1. You need to know what en

Cannot print greek letters in Python 2.6

2013-11-28 Thread mefistofelis
I have the following script however when the clipboard contents are greek letters it fails to print them right. I have used all posible encoding for greek letters including utf8 but to no avail so i just stay with latin1. Can you suggest a solution? Here is the script: import win32clipboard wi

Re: '_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-28 Thread magnus.ly...@gmail.com
On Wednesday, November 27, 2013 9:09:32 PM UTC+1, Ned Batchelder wrote: > I hope you aren't trying to prevent malice this way: you cannot examine > a piece of Python code to prove that it's safe to execute. No worry. Whoever has access to modifying those configuration files can cause a mess in a

Re: '_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread Steven D'Aprano
On Wed, 27 Nov 2013 11:40:52 -0800, magnus.ly...@gmail.com wrote: > What I'm really after, is to check that python expressions embedded in > text files are: - well behaved (no syntax errors etc) - don't > accidentally access anything it shouldn't - I serve them with the values > they need on execu

Re: '_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread Ned Batchelder
On 11/27/13 3:44 PM, Chris Kaynor wrote: On Wed, Nov 27, 2013 at 12:09 PM, Ned Batchelder mailto:n...@nedbatchelder.com>> wrote: * Is there perhaps a better way to achieve what I'm trying to do? What I'm really after, is to check that python expressions embedded in text

Re: '_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread Chris Kaynor
On Wed, Nov 27, 2013 at 12:09 PM, Ned Batchelder wrote: > * Is there perhaps a better way to achieve what I'm trying to do? >> >> What I'm really after, is to check that python expressions embedded in >> text files are: >> - well behaved (no syntax errors etc) >> - don't accidentally access anythi

Re: '_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread Ian Kelly
Find names not starting with ".", i.e a & b in "a.c + b" >> abbr_expr = re.sub(r"\.\w+", "", expr) >> names = compile(abbr_expr, '', 'eval').co_names >> # Python 2.6 returns '_[1]' in co_names

Re: '_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread Ned Batchelder
xample, see: Eval Really Is Dangerous: http://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html In your environment it looks like you have a whitelist of identifiers, so you're probably ok. So, in the case of "a.b + x" I'm really just interested in a and x, not

'_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread magnus.ly...@gmail.com
x27;t accidentally access anything it shouldn't - I serve them with the values they need on execution So, in the case of "a.b + x" I'm really just interested in a and x, not b. So the (almost) whole story is that I do: # Find names not starting with ".", i

Re: optparse question (python 2.6)

2013-09-02 Thread Peter Otten
;: None} $ python2.6 optparse_mutually_exclusive.py --list-optionsets --show-options Usage: optparse_mutually_exclusive.py [options] optparse_mutually_exclusive.py: error: --show-options option requires an argument $ python2.6 optparse_mutually_exclusive.py --show-options foo {'li

Re: optparse question (python 2.6)

2013-09-02 Thread Andy Kannberg
x27; , nargs=2) File "/usr/lib64/python2.6/optparse.py", line 1012, in add_option option = self.option_class(*args, **kwargs) File "/usr/lib64/python2.6/optparse.py", line 577, in __init__ checker(self) File "/usr/lib64/python2.6/optparse.py", line 706, in _c

Re: optparse question (python 2.6)

2013-08-26 Thread Peter Otten
Andy Kannberg wrote: > Hi python-guru's, > > I am new to Python, coming from a long history of Unix/linux shell > programming. > I am creating a Python script (In Python 2.6) which should be able to > read command line options and arguments. > So far, I figured out ho

optparse question (python 2.6)

2013-08-26 Thread Andy Kannberg
Hi python-guru's, I am new to Python, coming from a long history of Unix/linux shell programming. I am creating a Python script (In Python 2.6) which should be able to read command line options and arguments. So far, I figured out how to do that with optparse. I can add options (and argu

Re: [ANN] pyparsing 2.0.1 released - compatible with Python 2.6 and later

2013-07-20 Thread Steven D'Aprano
On Sat, 20 Jul 2013 14:30:14 -0700, Paul McGuire wrote: > Thanks for your continued support and interest in pyparsing! And thank you for pyparsing! Paul, I thought I would mention that over the last week or so on the Python-Dev mailing list, there has been some discussion about adding a parser

[ANN] pyparsing 2.0.1 released - compatible with Python 2.6 and later

2013-07-20 Thread Paul McGuire
In my releasing of Pyparsing 1.5.7/2.0.0 last November, I started to split supported Python versions: 2.x to the Pyparsing 1.5.x track, and 3.x to the Pyparsing 2.x track. Unfortunately, this caused a fair bit of pain for many current users of Python 2.6 and 2.7 (especially those using libs

Re: Altering 2 statements from Python 2.6 => 3.2

2013-03-28 Thread Νίκος Γκρ33κ
I'am just tryign to print the date with proper greek letters as it uses to work with Python v2.6 date gets calculated here: date = ( datetime.utcnow() + timedelta(hours=2) ).strftime( '%y-%m-%d %H:%M:%S' ) I'am not sure but i believe that the decode must be taken out in python 3.x because

Re: Altering 2 statements from Python 2.6 => 3.2

2013-03-27 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 28 Μαρτίου 2013 4:28:04 π.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > On Thu, Mar 28, 2013 at 1:16 PM, Νίκος Γκρ33κ wrote: > > > Τη Πέμπτη, 28 Μαρτίου 2013 12:55:11 π.μ. UTC+2, ο χρήστης Chris Angelico > > έγραψε: > > >> On Thu, Mar 28, 2013 at 7:18 AM, Νίκος Γκρ33κ > >> wrote: >

Re: Altering 2 statements from Python 2.6 => 3.2

2013-03-27 Thread Chris Angelico
On Thu, Mar 28, 2013 at 1:16 PM, Νίκος Γκρ33κ wrote: > Τη Πέμπτη, 28 Μαρτίου 2013 12:55:11 π.μ. UTC+2, ο χρήστης Chris Angelico > έγραψε: >> On Thu, Mar 28, 2013 at 7:18 AM, Νίκος Γκρ33κ wrote: >> >> > date = date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8') >> >> >> >> For a start,

Re: Altering 2 statements from Python 2.6 => 3.2

2013-03-27 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 28 Μαρτίου 2013 12:55:11 π.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > On Thu, Mar 28, 2013 at 7:18 AM, Νίκος Γκρ33κ wrote: > > > date = date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8') > > > > For a start, figure out what you're trying to do. I'm trying to get my > >

Re: Altering 2 statements from Python 2.6 => 3.2

2013-03-27 Thread Chris Angelico
On Thu, Mar 28, 2013 at 7:18 AM, Νίκος Γκρ33κ wrote: > date = date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8') For a start, figure out what you're trying to do. I'm trying to get my head around this line and I'm not getting anywhere. Is 'date' an instance of datetime.date()? And what

Altering 2 statements from Python 2.6 => 3.2

2013-03-27 Thread Νίκος Γκρ33κ
Hello folks, With what do i need to replace: --- print ( "Query Error: ", sys.exc_info()[1].excepinfo()[2] ) - and -- date = date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8') -- in Python3? because in 2.6 used to work but they dont in Pytho 3 thank yo

Re: derived class name in python 2.6/2.7

2013-01-30 Thread Dave Angel
On 01/30/2013 03:05 PM, Sells, Fred wrote: This is simple, but I just cannot find it after quite a bit of searching I have this basic design class A: def __init__(self): print 'I am an instance of ', self.__class__.name class B(A): pass X = B I would like thi

Re: derived class name in python 2.6/2.7

2013-01-30 Thread Oscar Benjamin
On 30 January 2013 20:05, Sells, Fred wrote: > This is simple, but I just cannot find it after quite a bit of searching > > I have this basic design > > class A: > def __init__(self): > print 'I am an instance of ', self.__class__.name Did you mean to use __name__ instead

derived class name in python 2.6/2.7

2013-01-30 Thread Sells, Fred
This is simple, but I just cannot find it after quite a bit of searching I have this basic design class A: def __init__(self): print 'I am an instance of ', self.__class__.name class B(A): pass X = B I would like this to print "I am an instance of B" but I kee

Re: problems trying to build python 2.6 as a shared library

2013-01-18 Thread scubbojj
On Friday, 25 September 2009 04:36:28 UTC-7, Marco Nawijn wrote: > On Sep 25, 1:08 pm, Chris Withers wrote: > > Hi All, > > > > I'm trying to build Python 2.6 as a shared library, so I did: > > > >    ./configure --enable-shared > >    make > &

Re: Float to String "%.7e" - diff between Python-2.6 and Python-2.7

2012-10-30 Thread Dave Angel
On 10/30/2012 10:47 AM, andrew.macke...@3ds.com wrote: > When formatting a float using the exponential format, the rounding is > different in Python-2.6 and Python-2.7. See example below. > Is this intentional? > > Is there any way of forcing the Python-2.6 behavior (for compatibi

Re: Float to String "%.7e" - diff between Python-2.6 and Python-2.7

2012-10-30 Thread Duncan Booth
andrew.macke...@3ds.com wrote: > When formatting a float using the exponential format, the rounding is > different in Python-2.6 and Python-2.7. See example below. Is this > intentional? > > Is there any way of forcing the Python-2.6 behavior (for compatibility > reasons whe

Float to String "%.7e" - diff between Python-2.6 and Python-2.7

2012-10-30 Thread andrew . mackeith
When formatting a float using the exponential format, the rounding is different in Python-2.6 and Python-2.7. See example below. Is this intentional? Is there any way of forcing the Python-2.6 behavior (for compatibility reasons when testing)? >c:\python26\python r:\asiData\abaObjects\li

Re: SciPy for Python 2.6?

2012-09-13 Thread MRAB
On 2012-09-13 16:04, garyr wrote: Is there a version for SciPy/numpy available for Python 2.6? I could only find a version for 2.7 on the SciPy site. A search on the Scipy mailing list archive did not turn up anything. The link to the Scipy-user list signup appeared to be broken. There's

SciPy for Python 2.6?

2012-09-13 Thread garyr
Is there a version for SciPy/numpy available for Python 2.6? I could only find a version for 2.7 on the SciPy site. A search on the Scipy mailing list archive did not turn up anything. The link to the Scipy-user list signup appeared to be broken. -- http://mail.python.org/mailman/listinfo

Re: Python 2.6 and Sqlite3 - Slow

2012-08-28 Thread Pedro Larroy
Try incrementing the variable cursor.arraysize a lot. Pedro. On Tue, Aug 28, 2012 at 11:20 PM, Dennis Lee Bieber wrote: > On Tue, 28 Aug 2012 10:25:35 -0700 (PDT), bruceg113...@gmail.com > declaimed the following in gmane.comp.python.general: > >> >> Doesn't the last paragraph imply that SQLite

Re: Python 2.6 and Sqlite3 - Slow

2012-08-28 Thread bruceg113355
On Tuesday, August 28, 2012 4:27:48 AM UTC-4, Cameron Simpson wrote: > On 27Aug2012 13:41, bruceg113...@gmail.com wrote: > > | When using the database on my C Drive, Sqlite performance is great! (<1S) > > | When using the database on a network, Sqlite performance is terrible! (17S) > > > >

Re: Python 2.6 and Sqlite3 - Slow

2012-08-28 Thread Cameron Simpson
On 27Aug2012 13:41, bruceg113...@gmail.com wrote: | When using the database on my C Drive, Sqlite performance is great! (<1S) | When using the database on a network, Sqlite performance is terrible! (17S) Let me first echo everyone saying not to use SQLite on a network file. | I like your idea

Re: Python 2.6 and Sqlite3 - Slow

2012-08-27 Thread Bryan
bruceg113 wrote: > Thank you for your reply. > Are you saying having a sqlite database file on a > shared LOCAL network drive is problematic? Yes, mostly, I think I am saying that. A "LOCAL network drive" is network drive, and is not a local drive, local as the network may be. We read and write s

Re: Python 2.6 and Sqlite3 - Slow

2012-08-27 Thread ian douglas
>From the sqlite documentation he quoted, it appears that ANY network filesystem, local or otherwise, should be avoided. On Aug 27, 2012 8:13 PM, wrote: > On Monday, August 27, 2012 10:32:47 PM UTC-4, Bryan wrote: > > bruceg113 wrote: > > > > > I selected sqlite for the following reasons: > > > >

Re: Python 2.6 and Sqlite3 - Slow

2012-08-27 Thread bruceg113355
On Monday, August 27, 2012 10:32:47 PM UTC-4, Bryan wrote: > bruceg113 wrote: > > > I selected sqlite for the following reasons: > > > > > > 1) Ships with Python. > > > 2) Familiar with Python. > > > 3) The Sqlite description athttp://www.sqlite.org/whentouse.htmlappears to > > meet my requir

Re: Python 2.6 and Sqlite3 - Slow

2012-08-27 Thread Bryan
bruceg113 wrote: > I selected sqlite for the following reasons: > > 1) Ships with Python. > 2) Familiar with Python. > 3) The Sqlite description athttp://www.sqlite.org/whentouse.htmlappears to > meet my requirements: >     Very low volume and concurrency, small datasets, simple to use. All good

Re: Python 2.6 and Sqlite3 - Slow

2012-08-27 Thread bruceg113355
Demian, I am not a database expert! I selected sqlite for the following reasons: 1) Ships with Python. 2) Familiar with Python. 3) The Sqlite description at http://www.sqlite.org/whentouse.html appears to meet my requirements: Very low volume and concurrency, small datasets, simple to use.

Re: Python 2.6 and Sqlite3 - Slow

2012-08-27 Thread Demian Brecht
Is there a reason that you're using SQLite in a network environment rather than a database server? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 and Sqlite3 - Slow

2012-08-27 Thread bruceg113355
ata display data (via wxPython) Thanks, Bruce On Monday, August 27, 2012 11:50:15 AM UTC-4, Ulrich Eckhardt wrote: > Am 27.08.2012 03:23, schrieb bruceg113...@gmail.com: > > > My program uses Python 2.6 and Sqlite3 and connects to a network > > > database 100 mil

Re: Python 2.6 and Sqlite3 - Slow

2012-08-27 Thread ahsanraza211
On Monday, August 27, 2012 8:50:15 AM UTC-7, Ulrich Eckhardt wrote: > Am 27.08.2012 03:23, schrieb bruceg113...@gmail.com: > > > My program uses Python 2.6 and Sqlite3 and connects to a network > > > database 100 miles away. > > > > Wait, isn't SQLi

Re: Python 2.6 and Sqlite3 - Slow

2012-08-27 Thread Ulrich Eckhardt
Am 27.08.2012 03:23, schrieb bruceg113...@gmail.com: My program uses Python 2.6 and Sqlite3 and connects to a network database 100 miles away. Wait, isn't SQLite completely file-based? In that case, SQLite accesses a file, which in turn is stored on a remote filesystem. This means that

Python 2.6 and Sqlite3 - Slow

2012-08-26 Thread bruceg113355
My program uses Python 2.6 and Sqlite3 and connects to a network database 100 miles away. My program reads approx 60 records (4000 bytes) from a Sqlite database in less than a second. Each time the user requests data, my program can continuously read 60 records in less than a second

Re: Python 2.6 StreamReader.readline()

2012-07-25 Thread wxjmfauth
On Wednesday, July 25, 2012 11:02:01 AM UTC+2, Walter Dörwald wrote: > On 25.07.12 08:09, Ulrich Eckhardt wrote: > > > Am 24.07.2012 17:01, schrieb cpppw...@gmail.com: > >> reader = codecs.getreader(encoding) > >> lines = [] > >> with open(filename, 'rb') as f: > >> lines

Re: Python 2.6 StreamReader.readline()

2012-07-25 Thread Walter Dörwald
On 25.07.12 08:09, Ulrich Eckhardt wrote: Am 24.07.2012 17:01, schrieb cpppw...@gmail.com: reader = codecs.getreader(encoding) lines = [] with open(filename, 'rb') as f: lines = reader(f, 'strict').readlines(keepends=False) where encoding == 'utf-16-be' Everything wo

Re: Python 2.6 StreamReader.readline()

2012-07-24 Thread Ulrich Eckhardt
Am 24.07.2012 17:01, schrieb cpppw...@gmail.com: reader = codecs.getreader(encoding) lines = [] with open(filename, 'rb') as f: lines = reader(f, 'strict').readlines(keepends=False) where encoding == 'utf-16-be' Everything works fine, except that lines[0] is equal to c

Python 2.6 StreamReader.readline()

2012-07-24 Thread cpppwner
Hi, I have a simple question, I'm using something like the following lines in python 2.6.2 reader = codecs.getreader(encoding) lines = [] with open(filename, 'rb') as f: lines = reader(f, 'strict').readlines(keepends=False) where encoding == 'utf-16-be' Everything works f

Re: Python 2.6 on Mac 10.7 doesn't work

2012-07-17 Thread Ned Deily
In article <5005927a$0$6949$e4fe5...@news2.news.xs4all.nl>, Hans Mulder wrote: > On 17/07/12 15:47:05, Naser Nikandish wrote: > > I am trying to install Python 2.6 on Mac OS Lion. Here is what I did: > > > > 1- Download Mac Installer disk image (2.6) (sig) from &

Re: Python 2.6 on Mac 10.7 doesn't work

2012-07-17 Thread Hans Mulder
On 17/07/12 15:47:05, Naser Nikandish wrote: > Hi, > > I am trying to install Python 2.6 on Mac OS Lion. Here is what I did: > > 1- Download Mac Installer disk image (2.6) (sig) from >http://www.python.org/getit/releases/2.6/ > > 2- Install it > > 3- Ru

Python 2.6 on Mac 10.7 doesn't work

2012-07-17 Thread Naser Nikandish
Hi, I am trying to install Python 2.6 on Mac OS Lion. Here is what I did: 1- Download Mac Installer disk image (2.6) (sig) from http://www.python.org/getit/releases/2.6/ 2- Install it 3- Run Python Luncher, go to Python Luncher preferences, and change the interpreter to Library

Re: migrating from python 2.4 to python 2.6

2012-07-09 Thread Mark Lawrence
On 09/07/2012 10:37, Mark Devine wrote: Hi I have a large code base that was written in python 2.4. I want to migrate to python 2.6. Are there any tools that will aid me in this migration? Thanks A Check the what's new for python 2.6. If, and I doubt that there are, any compata

migrating from python 2.4 to python 2.6

2012-07-09 Thread Mark Devine
Hi I have a large code base that was written in python 2.4. I want to migrate to python 2.6. Are there any tools that will aid me in this migration? Thanks A -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils that supports msvc10 and that can be backfitted into Python 2.6

2012-07-01 Thread Mero
On 26/06/2012 23:24, KACVINSKY Tom wrote: > I have need for a distutils that supports msvc10, and which can be > back-fitted into Python 2.6. Is there such a beast? One trick I found was to define an environment variable *VS90COMNTOOLS* that points to the actual VS2010 lo

distutils that supports msvc10 and that can be backfitted into Python 2.6

2012-06-26 Thread KACVINSKY Tom
Hi, I have need for a distutils that supports msvc10, and which can be back-fitted into Python 2.6. Is there such a beast? Thanks in advance, Tom This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or

Need to build Python 2.6 with Microsoft Visual Studio 2010

2012-06-06 Thread Tom Kacvinsky
For reasons beyond my control, I have a need to build Python 2.6 with MSVC 2010 (for x64). Does anyone have any hints as to how I can accomplish this? I see there are instructions for building Python 2.7 with MSVC 2010, but those are using the Python 2.7 source as the base for patching, so they

Re: Korean fonts on Python 2.6 (MacOsX)

2012-05-24 Thread Ulrich Eckhardt
Am 23.05.2012 11:30, schrieb 20_feet_tall: > I have a problem with the visualization of korean fonts on Python. > When I try to type in the characters only squares come out. > I have tried to install the CJK codec, the hangul 1.0 codec but still > no result. What exactly do you mean with "visualiz

Korean fonts on Python 2.6 (MacOsX)

2012-05-23 Thread 20_feet_tall
I have a problem with the visualization of korean fonts on Python. When I try to type in the characters only squares come out. I have tried to install the CJK codec, the hangul 1.0 codec but still no result. Hoep someone can help me out. -- http://mail.python.org/mailman/listinfo/python-list

Re: Install python 2.6 and python 2.7 on Windows

2012-05-23 Thread Mark Lawrence
On 23/05/2012 21:45, Andrew Berg wrote: On 5/23/2012 3:25 PM, Gelonida N wrote: So I just install 2.7 and uncheck this box and I'll keep 2.6 right? Different versions are installed in different locations by default, and if you uncheck that box, the installer will leave file associations alone.

Re: Install python 2.6 and python 2.7 on Windows

2012-05-23 Thread Andrew Berg
On 5/23/2012 3:25 PM, Gelonida N wrote: > So I just install 2.7 and uncheck this box and I'll keep 2.6 right? Different versions are installed in different locations by default, and if you uncheck that box, the installer will leave file associations alone. -- CPython 3.3.0a3 | Windows NT 6.1.7601

Re: install python 2.6 on Ubuntu 12.04

2012-05-23 Thread Christian Heimes
Am 23.05.2012 09:40, schrieb Christian Heimes: > You recall correctly. That's the recommended and correct way to install > Python 2.6 on a recent machine, with one exception. You must compile it > with the option MACHDEP=linux2, otherwise sys.platform will contain the > string

Re: install python 2.6 on Ubuntu 12.04

2012-05-23 Thread Christian Heimes
/python so it won't clobber the > system python. You recall correctly. That's the recommended and correct way to install Python 2.6 on a recent machine, with one exception. You must compile it with the option MACHDEP=linux2, otherwise sys.platform will contain the string "linux3&q

Re: install python 2.6 on Ubuntu 12.04

2012-05-22 Thread Sebastien Douche
On Wed, May 23, 2012 at 1:47 AM, Gelonida N wrote: > What would be the recommended way to install (compile) 2.6 on 12.04? Hi, I manage my own Python interpreters with Pythonbrew (I don't use the global Python): http://pypi.python.org/pypi/pythonbrew/ -- Sebastien Douche Twitter: @sdouche / G

Re: install python 2.6 on Ubuntu 12.04

2012-05-22 Thread Benjamin Kaplan
On Tue, May 22, 2012 at 8:09 PM, Dan Stromberg wrote: > > If the pythons you require are in synaptic (sudo to root and run synaptic), > you probably can just use them. > > If not, then you, for each release, need to: > 1) download a tarball using a browser or whatever > 2) extract the tarball: tar

Re: Install python 2.6 and python 2.7 on Windows

2012-05-22 Thread Andrew Berg
On 5/22/2012 6:44 PM, Gelonida N wrote: > I'd like to install python 2.6 and 2.7 on Windows? > > > In fact I have already 2.6 installed and would like to additionally > install 2.7 > > > > When clicking on .py file I'd like to execute it with python 2.6

Re: install python 2.6 on Ubuntu 12.04

2012-05-22 Thread Dan Stromberg
ild so that I'd get all 7 built automatically with cython and pylint in them. On Tue, May 22, 2012 at 4:47 PM, Gelonida N wrote: > Hi, > > On Ubuntu 12.04 python 2.7 is the default version > > I'd like to install python 2.6 parallel to 2.7 and create a virtualenv for >

install python 2.6 on Ubuntu 12.04

2012-05-22 Thread Gelonida N
Hi, On Ubuntu 12.04 python 2.7 is the default version I'd like to install python 2.6 parallel to 2.7 and create a virtualenv for it. The reason is, that I have to write some code, that will be executed under 2.6 and I want to be sure, that I don't accidentally write code, tha

Install python 2.6 and python 2.7 on Windows

2012-05-22 Thread Gelonida N
I'd like to install python 2.6 and 2.7 on Windows? In fact I have already 2.6 installed and would like to additionally install 2.7 When clicking on .py file I'd like to execute it with python 2.6 If I really wanted to run 2.7 I'd call the code with %SystemDrive%\

pyjamas-desktop running under python 2.6... on wine (!)

2012-04-19 Thread lkcl
i think this is so hilarious and just such a stunning achievement by the wine team that i had to share it with people. the writeup's here: http://appdb.winehq.org/objectManager.php?sClass=version&iId=25765 but, to summarise: * python2.6 runs under wine (the win32 emulator) * so does python-comty

Re: Unittest2 on python 2.6

2012-03-18 Thread Terry Reedy
On 3/18/2012 4:55 PM, Andrea Crotti wrote: On 03/18/2012 03:46 PM, Terry Reedy wrote: 1. If the difference between unittest and unittest2 is strictly a matter of deletions and addition, replace unittest with the union of the two. 2. Put the try/except dance in a compat file. Then everywhere els

Re: Unittest2 on python 2.6

2012-03-18 Thread Andrea Crotti
On 03/18/2012 03:46 PM, Terry Reedy wrote: 1. If the difference between unittest and unittest2 is strictly a matter of deletions and addition, replace unittest with the union of the two. 2. Put the try/except dance in a compat file. Then everywhere else 'from compat import unittest'. This ide

Re: Unittest2 on python 2.6

2012-03-18 Thread Terry Reedy
On 3/18/2012 9:31 AM, Andrea Crotti wrote: Suppose we want to use the unittest from Python 2.7, but also want to support Python 2.6, what is the best way to do it? The solution used now is to have in setup.py if sys.version < '2.7': tests_require.append('unittest2')

Unittest2 on python 2.6

2012-03-18 Thread Andrea Crotti
Suppose we want to use the unittest from Python 2.7, but also want to support Python 2.6, what is the best way to do it? The solution used now is to have in setup.py if sys.version < '2.7': tests_require.append('unittest2') and then in every test file try:

Re: difference between random module in python 2.6 and 3.2?

2012-02-07 Thread Ulrich Eckhardt
Am 06.02.2012 09:45, schrieb Matej Cepl: Also, how could I write a re-implementation of random.choice which would work same on python 2.6 and python 3.2? It is not only matter of unit tests, but I would really welcome if the results on both versions produce the same results. Two approaches

Re: difference between random module in python 2.6 and 3.2?

2012-02-07 Thread Serhiy Storchaka
07.02.12 00:06, Matej Cepl написав(ла): > return seq[int(random.random() * len(seq))] > > doesn't seem like something so terrible (and maintenance intense). :) _choice('abc') returns 'a' with probability P('a') = 1501199875790165/4503599627370496 = 1/3 - 1/13510798882111488 and 'b' with probabi

Re: difference between random module in python 2.6 and 3.2?

2012-02-06 Thread Matej Cepl
On 6.2.2012 20:26, Tim Chase wrote: In an ideal world, the code wouldn't have broken backwards compat. However, given the conditions, if Matej is willing to forgo bug-fixes, it's a reasonable solution. The alternate might be to try moving the recent/fixed version into the old project and updating

Re: difference between random module in python 2.6 and 3.2?

2012-02-06 Thread Tim Chase
On 02/06/12 12:48, Aaron France wrote: On 02/06/2012 09:57 AM, Matej Cepl wrote: Silly, of course, the solution is obvious ... I have just embedded random.choice from 2.6 to my code. Matěj Is the above actually a good idea though? What I understand you're doing is embedding the source from th

Re: difference between random module in python 2.6 and 3.2?

2012-02-06 Thread Aaron France
On 02/06/2012 09:57 AM, Matej Cepl wrote: On 6.2.2012 09:45, Matej Cepl wrote: Also, how could I write a re-implementation of random.choice which would work same on python 2.6 and python 3.2? It is not only matter of unit tests, but I would really welcome if the results on both versions produce

Re: difference between random module in python 2.6 and 3.2?

2012-02-06 Thread Mel Wilson
Steven D'Aprano wrote: > A more explicit note will help, but the basic problem applies: how do you > write deterministic tests given that the random.methods (apart from > random.random itself) can be changed without warning? Biting the bullet would mean supplying your own PRNG, under your control

Re: difference between random module in python 2.6 and 3.2?

2012-02-06 Thread Matej Cepl
On 6.2.2012 09:45, Matej Cepl wrote: Also, how could I write a re-implementation of random.choice which would work same on python 2.6 and python 3.2? It is not only matter of unit tests, but I would really welcome if the results on both versions produce the same results. Silly, of course, the

Re: difference between random module in python 2.6 and 3.2?

2012-02-06 Thread Matej Cepl
on of random.choice which would work same on python 2.6 and python 3.2? It is not only matter of unit tests, but I would really welcome if the results on both versions produce the same results. Could we get some hint in the release notes? Thanks for the help, Matěj -- http://mail.python.org/ma

Re: difference between random module in python 2.6 and 3.2?

2012-02-06 Thread Steven D'Aprano
On Mon, 06 Feb 2012 02:27:14 -0500, Terry Reedy wrote: [...] >> and should be treated as a bug. Raymond made a strong case arguing for >> repeatability, and then approved a bug fix that broke repeatability. I >> doubt that was deliberate. > > It was deliberate that randrange was changed to an eve

Re: difference between random module in python 2.6 and 3.2?

2012-02-05 Thread Terry Reedy
On 2/6/2012 12:56 AM, Steven D'Aprano wrote: On Mon, 06 Feb 2012 00:07:04 -0500, Terry Reedy wrote: On 2/5/2012 11:01 PM, Steven D'Aprano wrote: Reading the docs, I would expect that when using an int as seed, you should get identical results. That is similar to expecting hash to be consist

Re: difference between random module in python 2.6 and 3.2?

2012-02-05 Thread Steven D'Aprano
On Mon, 06 Feb 2012 00:07:04 -0500, Terry Reedy wrote: > On 2/5/2012 11:01 PM, Steven D'Aprano wrote: > >> Reading the docs, I would expect that when using an int as seed, you >> should get identical results. > > That is similar to expecting hash to be consistent from version to > version. No.

Re: difference between random module in python 2.6 and 3.2?

2012-02-05 Thread Terry Reedy
On 2/5/2012 11:01 PM, Steven D'Aprano wrote: Reading the docs, I would expect that when using an int as seed, you should get identical results. That is similar to expecting hash to be consistent from version to version. There is no mention that the PRNG has changed between 2.6 and 3.2; The

Re: difference between random module in python 2.6 and 3.2?

2012-02-05 Thread Steven D'Aprano
On Mon, 06 Feb 2012 02:27:38 +0100, Matej Cepl wrote: > Strange thing is that this unit tests correctly with python3, but fails > with python2. The problem is that apparently python3 random.choice picks > different element of self[k] than the one python2 (at least, both of > them are constant in t

difference between random module in python 2.6 and 3.2?

2012-02-05 Thread Matej Cepl
Hi, I have this working function: def as_xml(self): out = etree.Element("or") for k in sorted(self.keys()): out.append(etree.Element("hostname", attrib={'op': '=', 'value': random.choice(self[k])})) # ... return somehow string representing

Re: [Windows 7, Python 2.6] Can't write to a directory made w/ os.makedirs

2012-01-01 Thread Tim Golden
On 31/12/2011 22:13, OlyDLG wrote: > Hi! I'm working on a script utilizing os.makedirs to make directories > to which I'm then trying to write files created by exe's spawned w/ > subprocess.call; I'm developing in Stani's Python Editor, debugging > using Winpdb. I've gotten to the point where >

[Windows 7, Python 2.6] Can't write to a directory made w/ os.makedirs

2011-12-31 Thread OlyDLG
Hi! I'm working on a script utilizing os.makedirs to make directories to which I'm then trying to write files created by exe's spawned w/ subprocess.call; I'm developing in Stani's Python Editor, debugging using Winpdb. I've gotten to the point where subprocess.Popen._execute_child is raising a W

Re: Python 2.6 OR 3.2

2011-06-13 Thread geremy condra
> them would not even open.  Want to guess?  Yup, the config tools are (some > of them) written in python 2.6-- and they don't run in 2.7.1 nor 3.2  .   :( Just a note, Ubuntu 11.04 has 2.7 preinstalled. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 OR 3.2

2011-06-13 Thread Chris Angelico
On Tue, Jun 14, 2011 at 9:08 AM, SigmundV wrote: > To the OP I'd say: learn Python through 3.2. It's the best way > forward, for the sake of yourself and others. The only way more > modules can become 3k compatible is if more people use 3k. I skipped 3.2 and went straight to 3.3a0 from hg, but th

  1   2   3   4   5   6   7   8   9   >