ANN: SciPy 2009 early registration extended to July 22nd

2009-07-18 Thread Jarrod Millman
The early registration deadline for SciPy 2009 has been extended until Wednesday, July 22, 2009. Please register ( http://conference.scipy.org/to_register ) by this date to take advantage of the reduced early registration rate. Since we just announced the conference schedule, I was asked to

[ANN] Booleano v1.0a1

2009-07-18 Thread Gustavo Narea
I am proud to announce the first alpha release of Booleano, an interpreter of boolean expressions, a library to define and run filters available as text (e.g., in a natural language) or in Python code. In order to handle text-based filters, Booleano ships with a fully- featured parser whose

Re: turtle dump

2009-07-18 Thread Peter Otten
Terry Reedy wrote: alex23 wrote: The help in iPython says the same, but also mentions that it's a dynamically generated function, so it may not be picking up the docstring that way. turtle.ScrolledCanvas.postscript is similarly terse, but you can find more info in turtle.Canvas.postscript:

Re: ANN: psyco V2

2009-07-18 Thread Christian Tismer
It is just being transferred Von meinem iTouch gesendet On Jul 18, 2009, at 7:03, est electronix...@gmail.com wrote: On Jul 17, 10:48 am, Christian Tismer tis...@stackless.com wrote: Announcing Psyco V2 source release -- This is the long awaited announcement

how two join and arrange two files together

2009-07-18 Thread amrita
Hi, I have two files having entries like:-- fileA 8 ALA H = 7.85 N = 123.95 CA = 54.67 HA = 2.98 C = 179.39 15 ALA H = 8.05 N = 119.31 CA = 52.18 HA = 4.52 C = 177.18 23 ALA H = 8.78 N = 120.16 CA = 55.84 HA = 4.14 C = 179.93 and fileB ChainA: ALA8-67.217297 -37.131330 ChainA: ALA21

Python import Error

2009-07-18 Thread Kalyan Chakravarthy
Hi All, I am using* Python 2.6, MySQL 4.0* , I have successfully Instaled MySQLdb (*MySQL-python-1.2.3c1.win32-py2.6*) in my system. I tested through command prompt with import MySQLdb , its not shwing any errors (means its instaled successfully), I set Eneceranment variable for

Re: how two join and arrange two files together

2009-07-18 Thread Chris Rebert
On Sat, Jul 18, 2009 at 12:09 AM, amr...@iisermohali.ac.in wrote: Hi, I have two files having entries like:-- fileA 8  ALA H = 7.85 N = 123.95 CA = 54.67 HA = 2.98 C = 179.39 15 ALA H = 8.05 N = 119.31 CA = 52.18 HA = 4.52 C = 177.18 23 ALA H = 8.78 N = 120.16 CA = 55.84 HA = 4.14 C =

Re: how two join and arrange two files together

2009-07-18 Thread amrita
I tried to join these two files together using command... from itertools import izip from os.path import exists def parafiles(*files): vec = (open(f) for f in files if exists(f)) data = izip(*vec) [f.close() for f in vec] return data for data in

Re: how two join and arrange two files together

2009-07-18 Thread Peter Otten
amr...@iisermohali.ac.in wrote: I tried to join these two files together using command... from itertools import izip from os.path import exists def parafiles(*files): vec = (open(f) for f in files if exists(f)) data = izip(*vec) [f.close() for f in vec] return data

Re: how two join and arrange two files together

2009-07-18 Thread amrita
I want to join column of two different data file but i want that the entries will match (example i mentioned in my first mail, the position of ALA eill match) if its not matching then it will get printed as such. amr...@iisermohali.ac.in wrote: I tried to join these two files together using

Re: missing 'xor' Boolean operator

2009-07-18 Thread Mark Dickinson
On Jul 17, 12:06 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: I was saying that using boolean operators with object instead of boolean values is error prone, I agree with this to some extent. After all, Python conditional expressions were eventually introduced in response to buggy

difference in printing to screen Mac / Windows

2009-07-18 Thread Mark Bakker
Hello list I notice a difference between running the following script on my Mac and on a PC: from time import sleep for i in range(10): print i, sleep(2) On my PC this prints a number every 2 seconds. This is the behavior I want. On my Mac Python waits 10*2 = 20 seconds, and then prints

Re: how two join and arrange two files together

2009-07-18 Thread Peter Otten
amr...@iisermohali.ac.in wrote: Can you make an effort to express clearly what you want, preferrably with a simple and unambiguous example? I want to join column of two different data file but i want that the entries will match (example i mentioned in my first mail, the position of ALA eill

Re: difference in printing to screen Mac / Windows

2009-07-18 Thread Tim Chase
I notice a difference between running the following script on my Mac and on a PC: from time import sleep for i in range(10): print i, sleep(2) On my PC this prints a number every 2 seconds. This is the behavior I want. On my Mac Python waits 10*2 = 20 seconds, and then prints 0 1 2 3 4 5

Python graphics / imaging library

2009-07-18 Thread Peter Chant
Chaps, what's the most appropriate (maintained) graphics library to use? PIL seems to have last been updated in 2006 http://www.pythonware.com/products/pil/ and GD seems to be even older. Don't want to go down a dead end. Pete -- http://www.petezilla.co.uk --

Re: Python graphics / imaging library

2009-07-18 Thread Michiel Overtoom
Peter Chant wrote: what's the most appropriate (maintained) graphics library to use? PIL seems to have last been updated in 2006 http://www.pythonware.com/products/pil/ and GD seems to be even older. Don't want to go down a dead end. Contrary to organic material, software doesn't rot when

Re: Python graphics / imaging library

2009-07-18 Thread Peter Chant
Michiel Overtoom wrote: Peter Chant wrote: what's the most appropriate (maintained) graphics library to use? PIL seems to have last been updated in 2006 http://www.pythonware.com/products/pil/ and GD seems to be even older. Don't want to go down a dead end. Contrary to organic

Auto Send URL

2009-07-18 Thread Victor Subervi
Hi; I am trying to script code that automatically sends a Web site visitor to an URL. Specifically, when they enter a value in a search box, I have that form sent to a script that writes an URL acceptable to Google, then I want to send the visitor off without him having to click another button.

Re: Python graphics / imaging library

2009-07-18 Thread Benjamin Kaplan
On Sat, Jul 18, 2009 at 7:50 AM, Peter Chant rempete...@cappetezilla.italsco.uk wrote: Michiel Overtoom wrote: Peter Chant wrote: what's the most appropriate (maintained) graphics library to use? PIL seems to have last been updated in 2006 http://www.pythonware.com/products/pil/

Re: Python graphics / imaging library

2009-07-18 Thread Peter Chant
Peter Chant wrote: No, it does not. However, if PIL was updated last in 2006. Python in 2009 has gone to version 3.1. If PIL is compatible with 3.1 then I'm fine. But I don't want to have to stick with Python 2.5 as the rest of the world moves on. BTW, this was not a critisism of PIL

Re: Python graphics / imaging library

2009-07-18 Thread Michiel Overtoom
Peter Chant wrote: what do people generally use now? I can only speak for myself... I use PIL ;-) Greetings, -- http://mail.python.org/mailman/listinfo/python-list

Re: Python graphics / imaging library

2009-07-18 Thread Max Erickson
Peter Chant rempete...@cappetezilla.italsco.uk wrote: No, it does not. However, if PIL was updated last in 2006. Python in 2009 has gone to version 3.1. If PIL is compatible with 3.1 then I'm fine. But I don't want to have to stick with Python 2.5 as the rest of the world moves on.

Re: Beginners question

2009-07-18 Thread Rhodri James
On Sat, 18 Jul 2009 03:03:32 +0100, gabrielmonnerat gabrielmonne...@gmail.com wrote: Ronn Ross wrote: How do you define a global variable in a class. I tried this with do success: class ClassName: global_var = 1 def some_methos(): print global_var This doesn't work.

Re: Python import Error

2009-07-18 Thread David Stanek
On Sat, Jul 18, 2009 at 3:14 AM, Kalyan Chakravarthykalyanchakravar...@hyit.com wrote: Hi All,    I am using Python 2.6, MySQL 4.0 , I have successfully Instaled MySQLdb (MySQL-python-1.2.3c1.win32-py2.6) in my system. I tested through command prompt with import MySQLdb , its

Unpack Expects the Wrong Number of Bytes

2009-07-18 Thread Timothy Crone
Hello, I have noticed that for certain format strings, struct.unpack expects the wrong number of bytes. For example, this works fine header = 4si4s4si2h2i3h4s data = list(unpack(header,f.read(42))) however, this header = 4si4s4si2h2i3h4si data = list(unpack(header,f.read(46))) returns the

Re: setup.py not found

2009-07-18 Thread Aahz
In article 3be2bdce-680d-4b32-ad0c-ef46caf55...@f10g2000vbf.googlegroups.com, larry.mart...@gmail.com larry.mart...@gmail.com wrote: I'm trying to install a package (cx_Oracle) on a mac running 10.5.7. I've done this on other platforms, but never on a mac. I followed the instructions given, but

Re: Unpack Expects the Wrong Number of Bytes

2009-07-18 Thread John Machin
On Jul 19, 12:34 am, Timothy Crone tjcr...@gmail.com wrote: Hello, I have noticed that for certain format strings, struct.unpack expects the wrong number of bytes. [snip] header = si data = list(unpack(header,f.read(5))) throws struct.error: unpack requires a string argument of length 8

Re: Try... except....Try again?

2009-07-18 Thread MRAB
Xavier Ho wrote: Darn it. On Sat, Jul 18, 2009 at 8:55 AM, Dave Angel da...@ieee.org mailto:da...@ieee.org wrote: You don't need a counter. len() will tell you the size of the list of primes. Does len() go through and count by itself, or does it actually keep track of the size

Re: Unpack Expects the Wrong Number of Bytes

2009-07-18 Thread Ross Ridge
Timothy Crone tjcr...@gmail.com wrote: header = s data = list(unpack(header,f.read(1))) however this: header = si data = list(unpack(header,f.read(5))) throws struct.error: unpack requires a string argument of length 8 So unpack expects 7 additional bytes when an integer is added to the

Re: invoke method on many instances

2009-07-18 Thread Alan G Isaac
On Fri, 17 Jul 2009 05:19:50 +, Alan G Isaac wrote: def apply2(itr, methodname, *args, **kwargs): f = operator.methodcaller(methodname, *args, **kwargs) for item in itr: f(item) On 7/17/2009 3:45 AM Steven D'Aprano apparently wrote: for obj in objects: getattr(obj,

Re: A Bug By Any Other Name ...

2009-07-18 Thread Tom Kermode
Maybe the IDE is the best place to warn you of something like that. You could have an IDE where you specify which language you're more familiar with and then have it display warnings likely to be relevant to you. People could collaborate to add support for gradually more niche languages. Python

Re: Python graphics / imaging library

2009-07-18 Thread Peter Chant
Max Erickson wrote: More recent months contain updates to the status of 1.1.7, it is headed towards a release. Preliminary tarballs and binaries are available on effbot.org: http://effbot.org/downloads/#imaging http://effbot.org/downloads/#pil Excellent. From a very brief look it seems

Re: Python graphics / imaging library

2009-07-18 Thread Marcus Wanner
On 7/18/2009 11:41 AM, Peter Chant wrote: Max Erickson wrote: More recent months contain updates to the status of 1.1.7, it is headed towards a release. Preliminary tarballs and binaries are available on effbot.org: http://effbot.org/downloads/#imaging http://effbot.org/downloads/#pil

Rus Python script interactively

2009-07-18 Thread Gnarlodious
In an interactive session (I am using iPython), what is the most elegant way to run a Python script from Terminal? Right now I am saying: import subprocess subprocess.call(python /path/to/scriptname.py, shell=True) But I am calling a shell process and I'd rather not. The script just runs, no

Re: Rus Python script interactively

2009-07-18 Thread Diez B. Roggisch
Gnarlodious schrieb: In an interactive session (I am using iPython), what is the most elegant way to run a Python script from Terminal? Right now I am saying: import subprocess subprocess.call(python /path/to/scriptname.py, shell=True) But I am calling a shell process and I'd rather not. The

Re: Rus Python script interactively

2009-07-18 Thread Lie Ryan
Gnarlodious wrote: In an interactive session (I am using iPython), what is the most elegant way to run a Python script from Terminal? Right now I am saying: import subprocess subprocess.call(python /path/to/scriptname.py, shell=True) But I am calling a shell process and I'd rather not.

Re: Rus Python script interactively

2009-07-18 Thread Marcus Wanner
On 7/18/2009 12:32 PM, Gnarlodious wrote: In an interactive session (I am using iPython), what is the most elegant way to run a Python script from Terminal? Right now I am saying: import subprocess subprocess.call(python /path/to/scriptname.py, shell=True) But I am calling a shell process and

Re: Rus Python script interactively

2009-07-18 Thread Peter Otten
Gnarlodious wrote: In an interactive session (I am using iPython), what is the most elegant way to run a Python script from Terminal? Right now I am saying: import subprocess subprocess.call(python /path/to/scriptname.py, shell=True) But I am calling a shell process and I'd rather not.

python command running old version

2009-07-18 Thread Tim Edwards
My brain is running in n00b mode this morning...must find coffee. I upgraded python this morning and entering python from the command line runs the old version. Just looked and it appears the old version is in /usr/bin while the new one is in /usr/local/bin/ Besides changing the path order, how

Re: python command running old version

2009-07-18 Thread Chris Rebert
On Sat, Jul 18, 2009 at 10:25 AM, Tim Edwardstimphoto...@gmail.com wrote: My brain is running in n00b mode this morning...must find coffee. I upgraded python this morning and entering python from the command line runs the old version. Which OS? How did you install it? Cheers, Chris --

Re: Auto Send URL

2009-07-18 Thread Chris Rebert
On Fri, Jul 17, 2009 at 6:02 AM, Victor Subervivictorsube...@gmail.com wrote: Hi; I am trying to script code that automatically sends a Web site visitor to an URL. Specifically, when they enter a value in a search box, I have that form sent to a script that writes an URL acceptable to Google,

Re: python command running old version

2009-07-18 Thread Christian Heimes
Tim Edwards wrote: Besides changing the path order, how do I ensure it runs the new version? I'm sure I'll bang my head on the desk in shame as soon as I'm reminded. hash -r Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: python command running old version

2009-07-18 Thread Tim Edwards
Which OS? How did you install it? Sorry (see I need that coffee) Installed on redhat from source -- http://mail.python.org/mailman/listinfo/python-list

Re: python command running old version

2009-07-18 Thread Tim Edwards
Besides changing the path order, how do I ensure it runs the new version? I'm sure I'll bang my head on the desk in shame as soon as I'm reminded. hash -r Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: python command running old version

2009-07-18 Thread Lie Ryan
Tim Edwards wrote: Which OS? How did you install it? Sorry (see I need that coffee) Installed on redhat from source You should consult the distro's (i.e. RedHat's) documentation/mailing list about changing the default python interpreter. In most cases, you will need to make sure all

Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-18 Thread akhil1988
Thanks Nobody-38, it solved my problem immediately. --Thanks Again, Akhil Nobody-38 wrote: On Thu, 16 Jul 2009 20:26:39 -0700, akhil1988 wrote: Well, you were write: unintentionally I removed strip(). But the problem does not ends here: I get this error now: File ./temp.py, line

Re: UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

2009-07-18 Thread akhil1988
Thanks David, it solved my problem immediately. I will follow your advise from next time but honestly I am new to python with not much knowledge about text formats. And the main portion of my project was not to deal with these, so I just wanted to get this solved as I was already struck at this

Re: python command running old version

2009-07-18 Thread Tim Edwards
You should consult the distro's (i.e. RedHat's) documentation/mailing list about changing the default python interpreter. In most cases, you will need to make sure all python-related packages are compatible with the new python version. In popular distros, there should be a script that will do

Re: multiprocessing and freezing on Windows

2009-07-18 Thread SK
Thanks Gabriel. Posted as: http://bugs.python.org/issue6461 The multiprocessing author has tentatively confirmed the bug. -- http://mail.python.org/mailman/listinfo/python-list

How to receive a data file of unknown length using a python socket?

2009-07-18 Thread twgray
I am attempting to send a jpeg image file created on an embedded device over a wifi socket to a Python client running on a Linux pc (Ubuntu). All works well, except I don't know, on the pc client side, what the file size is? The following is a snippet: [code] f = open(frame.jpg,mode =

Re: How to receive a data file of unknown length using a python socket?

2009-07-18 Thread Irmen de Jong
twgray wrote: I am attempting to send a jpeg image file created on an embedded device over a wifi socket to a Python client running on a Linux pc (Ubuntu). All works well, except I don't know, on the pc client side, what the file size is? You don't. Sockets are just endless streams of

Re: Rus Python script interactively

2009-07-18 Thread Gnarlodious
Thanks for all the suggestions! The last solution is the one I was ooking for, I am really starting to like iPython. Learning all kinds of new tricks!. -- Gnarlie -- http://mail.python.org/mailman/listinfo/python-list

Re: How to receive a data file of unknown length using a python socket?

2009-07-18 Thread Tycho Andersen
On Sat, Jul 18, 2009 at 4:43 PM, Irmen de Jongirmen.nos...@xs4all.nl wrote: twgray wrote: I am attempting to send a jpeg image file created on an embedded device over a wifi socket to a Python client running on a Linux pc (Ubuntu).  All works well, except I don't know, on the pc client side,

Re: How to receive a data file of unknown length using a python socket?

2009-07-18 Thread twgray
On Jul 18, 4:43 pm, Irmen de Jong irmen.nos...@xs4all.nl wrote: twgray wrote: I am attempting to send a jpeg image file created on an embedded device over a wifi socket to a Python client running on a Linux pc (Ubuntu).  All works well, except I don't know, on the pc client side, what the

Re: invoke method on many instances

2009-07-18 Thread Terry Reedy
Alan G Isaac wrote: On Fri, 17 Jul 2009 05:19:50 +, Alan G Isaac wrote: def apply2(itr, methodname, *args, **kwargs): f = operator.methodcaller(methodname, *args, **kwargs) for item in itr: f(item) On 7/17/2009 3:45 AM Steven D'Aprano apparently wrote: for obj in

uniicode and executing a process with subprocess.call, or os.system

2009-07-18 Thread Rick King
Hello, I want to copy files using subprocess.call or os.system where the file names are non-ascii, e.g. Serbian(latin), c's and s's with hacheks,etc. Windows stores all the file names in unicode so they are displayed ok in explorer, and I can read them into my program with listdir(u'.'), etc.

Re: uniicode and executing a process with subprocess.call, or os.system

2009-07-18 Thread MRAB
Rick King wrote: Hello, I want to copy files using subprocess.call or os.system where the file names are non-ascii, e.g. Serbian(latin), c's and s's with hacheks,etc. Windows stores all the file names in unicode so they are displayed ok in explorer, and I can read them into my program with

Re: uniicode and executing a process with subprocess.call, or os.system

2009-07-18 Thread Chris Rebert
On Sat, Jul 18, 2009 at 3:30 PM, Rick Kingrickbk...@comcast.net wrote: Hello, I want to copy files using subprocess.call or os.system where the file names are non-ascii, e.g. Serbian(latin), c's and s's with hacheks,etc. Windows stores all the file names in unicode so they are displayed ok in

Re: How to receive a data file of unknown length using a python socket?

2009-07-18 Thread John Machin
On Jul 19, 8:04 am, twgray twgray2...@gmail.com wrote: send a 4 byte address from the embedded device, how do I convert that, in Python, to a 4 byte, or long, number? struct.unpack() is your friend. Presuming the embedded device is little-endian, you do: the_int = struct.unpack('I',

Newbie question - running a command and looking at output

2009-07-18 Thread Dave
I'm trying to run a command (arch -k) and check if the value returned is 'sun4v' or not. kir...@t2:[~] $ arch -k sun4v In fact, I want to do 3 three things 1) Check if the system is Solaris. 2) If it is Solaris, check if 'arch -k' prints 'sun4v' 3) If both 1 and 2 are true, copy a file.

Re: python command running old version

2009-07-18 Thread Aahz
In article mailman.3369.1247937914.8015.python-l...@python.org, Tim Edwards timphoto...@gmail.com wrote: I upgraded python this morning and entering python from the command line runs the old version. Just looked and it appears the old version is in /usr/bin while the new one is in

Re: How to receive a data file of unknown length using a python socket?

2009-07-18 Thread Nobody
On Sat, 18 Jul 2009 14:33:48 -0700, twgray wrote: It appears to be locking up in 'data=self.s.recv(MAXPACKETLEN)' on the final packet, which will always be less than MAXPACKETLEN. I guess my question is, how do I detect end of data on the client side? recv() should return zero when the

Re: Newbie question - running a command and looking at output

2009-07-18 Thread Dave
Dave wrote: I'm trying to run a command (arch -k) and check if the value returned is 'sun4v' or not. kir...@t2:[~] $ arch -k sun4v In fact, I want to do 3 three things 1) Check if the system is Solaris. 2) If it is Solaris, check if 'arch -k' prints 'sun4v' 3) If both 1 and 2 are true, copy

Re: How to receive a data file of unknown length using a python socket?

2009-07-18 Thread MRAB
Nobody wrote: On Sat, 18 Jul 2009 14:33:48 -0700, twgray wrote: It appears to be locking up in 'data=self.s.recv(MAXPACKETLEN)' on the final packet, which will always be less than MAXPACKETLEN. I guess my question is, how do I detect end of data on the client side? recv() should return

Re: How to receive a data file of unknown length using a python socket?

2009-07-18 Thread MRAB
twgray wrote: On Jul 18, 4:43 pm, Irmen de Jong irmen.nos...@xs4all.nl wrote: twgray wrote: I am attempting to send a jpeg image file created on an embedded device over a wifi socket to a Python client running on a Linux pc (Ubuntu). All works well, except I don't know, on the pc client side,

Re: How to receive a data file of unknown length using a python socket?

2009-07-18 Thread John Machin
On Jul 19, 7:43 am, Irmen de Jong irmen.nos...@xs4all.nl wrote: twgray wrote: I am attempting to send a jpeg image file created on an embedded device over a wifi socket to a Python client running on a Linux pc (Ubuntu).  All works well, except I don't know, on the pc client side, what the

Re: How to receive a data file of unknown length using a python socket?

2009-07-18 Thread twgray
On Jul 18, 7:33 pm, MRAB pyt...@mrabarnett.plus.com wrote: Nobody wrote: On Sat, 18 Jul 2009 14:33:48 -0700, twgray wrote: It appears to be locking up in  'data=self.s.recv(MAXPACKETLEN)' on the final packet, which will always be less than MAXPACKETLEN. I guess my question is, how do I

Re: How to receive a data file of unknown length using a python socket?

2009-07-18 Thread Aahz
In article mailman.3382.1247958334.8015.python-l...@python.org, MRAB pyt...@mrabarnett.plus.com wrote: If you send the length as 4 bytes then you'll have to decide whether it's big-endian or little-endian. An alternative is to send the length as characters, terminated by, say, '\n' or chr(0).

[issue6512] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

2009-07-18 Thread Winfried Plappert
New submission from Winfried Plappert winfried.plapp...@gmx.de: When running the attached program, it will fail with above message on Control-2 only! All other control keys work happily. The same program under MS-Windows seems to work (I am under Linux, so I can't switch easily). My version

[issue6512] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

2009-07-18 Thread Winfried Plappert
Changes by Winfried Plappert winfried.plapp...@gmx.de: Removed file: http://bugs.python.org/file14517/tkpy_70.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6512 ___

[issue6512] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

2009-07-18 Thread Winfried Plappert
Changes by Winfried Plappert winfried.plapp...@gmx.de: Added file: http://bugs.python.org/file14518/tkpy_70.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6512 ___

[issue6512] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

2009-07-18 Thread Winfried Plappert
Changes by Winfried Plappert winfried.plapp...@gmx.de: Removed file: http://bugs.python.org/file14518/tkpy_70.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6512 ___

[issue6512] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

2009-07-18 Thread Winfried Plappert
Changes by Winfried Plappert winfried.plapp...@gmx.de: Added file: http://bugs.python.org/file14519/tkpy_70.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6512 ___

[issue6512] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

2009-07-18 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Can you paste the full traceback? I tried to run the script on Windows and nothing happened when I pressed Ctrl+[0..9]. -- nosy: +ezio.melotti priority: - low type: - behavior ___ Python

[issue6513] Standard Library, Warnings, 28.5.4, example fails

2009-07-18 Thread Jason Tiller
New submission from Jason Tiller ja...@sonos.org: The example provided in section 28.5.4 (warnings) of the Standard Library documentation fails. This example assumes that the context manager instance ('w' in warnings.catch_warnings(record=True) as w) supplies a list of objects, each of which

[issue6509] re.py - compiled byte-object regular expr encounter unexpected str-object

2009-07-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6509 ___

[issue6512] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

2009-07-18 Thread Winfried Plappert
Winfried Plappert winfried.plapp...@gmx.de added the comment: As I said, it does work on Windows, but NOT on Linux! Her is the full traceback: wplap...@lin-wpl:~/sudoku/version3.0/tk_test/python3$ python3 tkpy_70.py key_control_num 1 (# I pressed Control-1) Traceback (most recent call last):

[issue6513] Standard Library, Warnings, 28.5.4, example fails

2009-07-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r74074. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6513 ___

[issue6505] Minor typos in tutorial (i/o chapter)

2009-07-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r74075. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6505 ___

[issue6502] documentation error: missing comma between kwonlyargcount nlocals

2009-07-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r74076. -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6502 ___

[issue6512] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

2009-07-18 Thread Winfried Plappert
Winfried Plappert winfried.plapp...@gmx.de added the comment: Is it possible that this issue is related to issue6144? BTW: I have to handcomile my python 3.1 :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6512

[issue6512] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

2009-07-18 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The same problems (ctrl+space and ctrl+2) were reported in #1028. Closing this as duplicate. -- resolution: - duplicate stage: - committed/rejected status: open - closed ___ Python tracker

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-07-18 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: More users reported this problem in #6144 and #6512. -- nosy: +ezio.melotti priority: - normal type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1028

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-07-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- superseder: - [IDLE] UnicodeDecodeError when invoking force-open-completions ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1028 ___

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-07-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- superseder: [IDLE] UnicodeDecodeError when invoking force-open-completions - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1028 ___

[issue6144] [IDLE] UnicodeDecodeError when invoking force-open-completions

2009-07-18 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This was already reported in #1028. Closing as duplicate. -- nosy: +ezio.melotti resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Tkinter binding involving Control-spacebar raises unicode

[issue6512] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

2009-07-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- superseder: - Tkinter binding involving Control-spacebar raises unicode error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6512 ___

[issue6489] Documentation of ElementTree.Element.getiterator implies element will always be included

2009-07-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r74077. -- assignee: effbot - georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6489

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-18 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I thought zlib was a builtin module? Why isn't it available? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6499 ___

[issue6504] infinite recursion from calling builtins.open()

2009-07-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: First, the second bug isn't a bug since that restriction has been lifted in Python 3. The original issue occurs because open() for text modes imports the locale module. This is kind of nasty, because calling open() is well within what a

[issue6507] Enhance dis.dis to autocompile codestrings

2009-07-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: As I explained on python-ideas, 'single' should not be tried. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6507 ___

[issue6512] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

2009-07-18 Thread Winfried Plappert
Winfried Plappert winfried.plapp...@gmx.de added the comment: I have verified that the problem goes away when you switch from tcl/tk8.4 to tcl/tk8.5 . Luckily my Ubuntu 9.04 has the 8.5-version available for install. Thanks for the quick help! -- ___

[issue6509] re.py - compiled byte-object regular expr encounter unexpected str-object

2009-07-18 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- priority: normal - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6509 ___ ___

[issue6504] infinite recursion from calling builtins.open()

2009-07-18 Thread kai zhu
kai zhu kaizhu...@gmail.com added the comment: current hack-around, then is to pre-import locale, which is verified to work: # beg test.py class importer(object): def find_module(self, mname, path = None): open(foo.txt) import sys, locale; sys.meta_path.append(importer) import collections #

[issue6497] Support for digital Cinema/film DPX and Kodak Cineon image file formats in imghdr module

2009-07-18 Thread Walter Arrighetti
Walter Arrighetti riemann.ch...@gmail.com added the comment: DPX and Kodak Cineon are the two professional raster image formats used in digital cinema/film post-production facilities to professionally store video frames, usually using RGB, YUV or XYZ colour-spaces with 10,12,16 or 32 bits per

[issue6512] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

2009-07-18 Thread Winfried Plappert
Winfried Plappert winfried.plapp...@gmx.de added the comment: wplap...@lin-wpl:~/sudoku/version3.0/tk_test/python3$ python3 Python 3.1 (r31:73572, Jul 18 2009, 11:13:40) [GCC 4.3.3] on linux2 Type help, copyright, credits or license for more information. import tkinter

[issue6507] Enhance dis.dis to autocompile codestrings

2009-07-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: As per Georg's suggestion, a better approach would look like: from dis import dis def dis_str(source): try: c = compile(source, '', 'eval') except SyntaxError: c = compile(source, '', 'exec') return dis(c) --

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2009-07-18 Thread Tomalak
Tomalak m8r-t1tu...@mailinator.com added the comment: @devon: Thanks for pointing linking back here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5752 ___

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-07-18 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Now that Python 3.1 is released, can we talk about integrating this into the 3.1.1 release? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-18 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I don't know why it's not installed here, but I didn't remove it intentionally. here is a Linux machine with Ubuntu 8.04.3 (hardy) LTS. One reason might be that I just have a limited number of program installed and zlib is probably a

  1   2   >