Announcement: Project to get some CPython C extensions running under IronPython

2007-10-13 Thread Giles Thomas
The great thing about CPython is that it comes with the batteries included. The problem with IronPython is that some of these batteries just don't fit - in particular, most of the the C extensions don't work. We'd like to help fix at least some of this problem, to help people who use

Re: the secret life of zombies

2007-10-13 Thread jsnx
I fixed it myself -- I had to install a signal handler and use nested 'try-expect' stuff. The link points to the new version. -- http://mail.python.org/mailman/listinfo/python-list

Re: Cross-platform GUI development

2007-10-13 Thread David Tremouilles
Hello, I would recommend pyGTK http://www.pygtk.org/ - your app does look the same on all platform (like for Tkinter) (This argurment apply if the same user would like to run the same app on different platform and thus do not want to see something different on each platform...) - easy to install

Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread Juha S.
Hi, I'm writing a small text editor type application with Python 2.5 and Tkinter. I'm using the Tk text widget for input and output, and the problem is that when I try to save its contents to a .txt file, any Scandinavian letters such as äöå ÄÖÅ are saved incorrectly and show up as a mess

Re: raw_input() and utf-8 formatted chars

2007-10-13 Thread Marc 'BlackJack' Rintsch
On Fri, 12 Oct 2007 19:09:46 -0700, 7stud wrote: On Oct 12, 2:43 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: You mean literally!? Then of course I get A\xcc\x88 because that's what I entered. In string literals in source code the backslash has a special meaning but `raw_input()`

Python in HTML Application (HTA)

2007-10-13 Thread Salvatore
Hello, I encounter a display problem in one of my script ... ... def setValue(divid,data): elt = document.getElementById(divid) elt.innerHTML = data def infoSystem(): setValue(info,Please Wait) #update div info c = os.popen(cmdDisk%Server).read()

Re: [Pyro] ConnectionClosedError

2007-10-13 Thread Hendrik van Rooyen
George Sakkis ge...ail.com wrote: Didn't have much luck with this in the Pyro mailing list so I am trying here, just in case. I have a Pyro server running as a daemon process and occasionally (typically after several hours or days of uptime) a ConnectionClosedError is raised when a client

Re: Python in HTML Application (HTA)

2007-10-13 Thread Salvatore
In fact, whatever I do in infoSystem (modifiying style attributes of an object, change cursor appearance...), changes are only reflected at the end of the function call ... Salvatore a écrit : Hello, I encounter a display problem in one of my script ... ... def setValue(divid,data):

Re: Moving objects in Tkinter

2007-10-13 Thread Hendrik van Rooyen
Evjen Halverson wrote: I have tried to make a Tkinter program make a rectangle move down the window, but did not succeed. All it does is make a rectangle trail. What am I doing wrong? You are not deleting the old instances of the rectangle. Look at the delete method of the canvas

Re: Pyro: ActiveState (wind32) to Unix

2007-10-13 Thread Tim Golden
Tim Golden wrote: Sells, Fred wrote: I'm using ActiveState python on a windows box to talk to ACtive Directory. I'm running a Pyro Server on the same box. The client is Linux running std Python 2.4. It works just fine until the server codes calls some win32com.client api; then I

How to modify EVDEV.py to record Keyboard Key RELEASE times?

2007-10-13 Thread Dr. Colombes
I'm using a modified EVDEV.py program (see below) to record inter-keystroke times for Keystroke triples and doubles (t2 - t1, t3 -t1). These times are key PRESS times. How - where can EVDEV.py be modified (without too much trouble) to record Keystroke RELEASE times also ? Thanks

Re: Python module for making Quicktime or mpeg movies from images

2007-10-13 Thread has
On 12 Oct, 20:53, jeremito [EMAIL PROTECTED] wrote: I actually found NodeBox in my googling. This seems to be a stand alone application. I need to be able to convert my images to a movie from my code I wrote myself. Some Mac-specific options: - QuickTime Player is standard on OS X and its

Re: Cross-platform GUI development

2007-10-13 Thread Dave Cook
On 2007-10-13, David Tremouilles [EMAIL PROTECTED] wrote: I would recommend pyGTK http://www.pygtk.org/ Native GTK on OSX is still in its infancy. For early adopters only at this point. See http://www.oreillynet.com/articles/author/2414 That leaves PyQt and WxPython as the only other

Re: Cross-platform GUI development

2007-10-13 Thread David Tremouilles
No issue with pygtk on mac! Actually I develop on this platform everyday. Macport take care of the installation for me http://www.macports.org/ (Fink should do the work too). Of course native GTK on OSX could be nice but definitely not needed at this point in time. David 2007/10/13, Dave Cook

Re: Yet another comparison of Python Web Frameworks

2007-10-13 Thread Daniel Fetchinson
Hello everybody, I just joined this mailing list. Thanks for your comments about gluon. I have posted a short video about it and I am planning to make more over the week-end. http://www.youtube.com/watch?v=VBjja6N6IYk About some of your comments: - the most complex modules (like html

Re: Cross-platform GUI development

2007-10-13 Thread Dave Cook
On 2007-10-13, David Tremouilles [EMAIL PROTECTED] wrote: No issue with pygtk on mac! If running on top of X11 is no problem. Actually I develop on this platform everyday. Macport take care of the installation for me http://www.macports.org/ (Fink should do the work too). In that case I'd

Re: pyserial doesn't recognize virtual serial port

2007-10-13 Thread naveen . sabapathy
Hi Grant, It worked... I had the same suspicion and changed the port names to COM2 and COM4 and it worked. --NS On Oct 12, 8:34 pm, Grant Edwards [EMAIL PROTECTED] wrote: On 2007-10-12, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am trying to use virtual serial ports to

Re: Memory Problems in Windows 2003 Server

2007-10-13 Thread AMD
Hi Brad, I do the reading one line at a time, the problem seems to be with the dictionary I am creating. Andre amdescombes wrote: Hi, I am using Python 2.5.1 I have an application that reads a file and generates a key in a dictionary for each line it reads. I have managed to read a 1GB

Re: Observer implementation question ('Patterns in Python')

2007-10-13 Thread Anders Dahnielson
Thank you, James and Stargaming, for your replies! -- http://mail.python.org/mailman/listinfo/python-list

Re: Last iteration?

2007-10-13 Thread Robin Kåveland
On Oct 12, 12:58 pm, Florian Lindner [EMAIL PROTECTED] wrote: Hello, can I determine somehow if the iteration on a list of values is the last iteration? Example: for i in [1, 2, 3]: if last_iteration: print i*i else: print i that would print 1 2 9 Can this be

Re: Python module for making Quicktime or mpeg movies from images

2007-10-13 Thread Diez B. Roggisch
- The Mac version of Python includes wrappers for a number of Carbon APIs, including QuickTime. One for brave souls only; QT's C APIs are notoriously complex, AMEN. I tried to work with that stuff, and it was close to a totally failure desaster... Diez --

Re: Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread Janne Tuukkanen
Juha S. kirjoitti: problem is that when I try to save its contents to a .txt file, any Scandinavian letters such as äöå ÄÖÅ are saved incorrectly and show up as a mess when I open the .txt file in Windows Notepad. It seems that the characters will only get mixed if the user has typed

how to create a pointer, or is there a better solution ?

2007-10-13 Thread stef mientki
hello, I've a program where users can make modules, by just dumping them in a certain directory, then they will dynamically link into the program if needed. One of the communication channels I use, is a general global file, which should be imported by all user modules. One of the things a user

Re: Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread Juha S.
Thanks for the reply. I made changes to my code according to your example. Now any Scandinavian characters that are outputted by the program are missing in the Tk text box. I'm using a loading function like this to load the data that is to be outputted by the program: def loadWords(self,

Re: how to create a pointer, or is there a better solution ?

2007-10-13 Thread Diez B. Roggisch
stef mientki schrieb: hello, I've a program where users can make modules, by just dumping them in a certain directory, then they will dynamically link into the program if needed. One of the communication channels I use, is a general global file, which should be imported by all user

Re: Cross-platform GUI development

2007-10-13 Thread Kevin Walzer
David Tremouilles wrote: No issue with pygtk on mac! Actually I develop on this platform everyday. Macport take care of the installation for me http://www.macports.org/ (Fink should do the work too). Of course native GTK on OSX could be nice but definitely not needed at this point in time.

Re: Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread Janne Tuukkanen
Sat, 13 Oct 2007 16:13:21 +0300, Juha S. kirjoitti: Thanks for the reply. I made changes to my code according to your example. Now any Scandinavian characters that are outputted by the program are missing in the Tk text box. file = codecs.open(filename, 'r', 'utf-8', 'ignore')

Re: ConnectionClosedError

2007-10-13 Thread George Sakkis
On Oct 13, 4:21 am, Hendrik van Rooyen [EMAIL PROTECTED] wrote: If restarting the server sorts it, why don't you run the server as a subprocess in a higher level script, and exit with an error code if the error strikes? Well as I mentioned the process doesn't exit, it is just unresponsive

a good website for softwares,sports,movies and music ,sex etc.

2007-10-13 Thread panguohua
www.space666.com go and look!!! -- http://mail.python.org/mailman/listinfo/python-list

Re: Error on base64.b64decode() ?!

2007-10-13 Thread Christoph Krammer
On 12 Okt., 17:09, Jean-Paul Calderone [EMAIL PROTECTED] wrote: If you get an incorrect padding error, try appending a = and decoding again. If you get the error again, try appending one more =. If it still doesn't work, then you might be out of luck. This seems to work in some cases, but

Re: Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread Juha S.
Thanks! Opening and saving the file with the iso-8859-1 codec seems to handle the characters correctly. Now the only problem left are the missing newlines in the output file. I tried googling for the iso code for newline and entering it in a Python string as '\x0A' but it doesn't work in the

Re: Yet another comparison of Python Web Frameworks

2007-10-13 Thread Massimo Di Pierro
Hi Daniel, in many respects Gluon is similar to Django and was greatly inspired by Django. Some differences are: Gluon is easier to install - you never need to use the shell, there are no configuration files. Gluon is a web app. You can do all development via a web interface. You can

Re: Yet another comparison of Python Web Frameworks

2007-10-13 Thread Massimo Di Pierro
... I almost forgot ... another difference between Gluon and Django,TG is that in Gluon if you write controllers without view you automatically get generic view that render and BEAUTIFY() the variables returned by the controllers. That means you can develop the logic of your application

email libraries and threads

2007-10-13 Thread rodmc
Hi, I am writing a threaded application, part of which relies on sending messages to users. However I cannot get the smtplib and some other email related libraries to work inside threads (they work ok when not in threads). Is there a problem with using threads and email? If so is there a solution

Re: email libraries and threads

2007-10-13 Thread Diez B. Roggisch
rodmc schrieb: Hi, I am writing a threaded application, part of which relies on sending messages to users. However I cannot get the smtplib and some other email related libraries to work inside threads (they work ok when not in threads). Is there a problem with using threads and email? If

Re: Cross-platform GUI development

2007-10-13 Thread Diez B. Roggisch
David Tremouilles schrieb: No issue with pygtk on mac! Actually I develop on this platform everyday. Macport take care of the installation for me http://www.macports.org/ (Fink should do the work too). Of course native GTK on OSX could be nice but definitely not needed at this point in time.

Trial of Star-P for Python

2007-10-13 Thread n4somethingcompletelydifferent
In browsing their website, I noticed that Interactive Supercomputing has made available a free evaluation copy of Star-P for Python (http:// www.interactivesupercomputing.com/products/starpandpython.php). I know its a fairly new product, but has anyone on here been able to try it out yet, and if

Re: Yet another comparison of Python Web Frameworks

2007-10-13 Thread Daniel Fetchinson
... I almost forgot ... another difference between Gluon and Django,TG is that in Gluon if you write controllers without view you automatically get generic view that render and BEAUTIFY() the variables returned by the controllers. That means you can develop the logic of your application

Re: Declarative properties

2007-10-13 Thread Diez B. Roggisch
Dan Stromberg schrieb: On Thu, 11 Oct 2007 18:42:16 +, Marc 'BlackJack' Rintsch wrote: The baggage of possibly fixing (AKA generalizing) how your attributes are accessed is something you lug around while your deadline looms. Sorry I don't get it. If I want to customize the access to a

Re: test if email

2007-10-13 Thread Bjoern Schliessmann
Martin Marcher wrote: No need to speek of plus addressing or older messaging systems. But don't disallow a plus in the localpart. Many do. Regards, Björn -- BOFH excuse #180: ether leak -- http://mail.python.org/mailman/listinfo/python-list

Re: Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread nickel_and_dime_2death
On Oct 13, 5:22 pm, Juha S. [EMAIL PROTECTED] wrote: Thanks! Opening and saving the file with the iso-8859-1 codec seems to handle the characters correctly. Now the only problem left are the missing newlines in the output file. I tried googling for the iso code for newline and entering it in a

Re: raw_input() and utf-8 formatted chars

2007-10-13 Thread MRAB
On Oct 13, 3:09 am, 7stud [EMAIL PROTECTED] wrote: On Oct 12, 2:43 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: You mean literally!? Then of course I get A\xcc\x88 because that's what I entered. In string literals in source code the backslash has a special meaning but

Re: urllib.ProxyHandler HTTPS issues

2007-10-13 Thread John J. Lee
Devraj [EMAIL PROTECTED] writes: Thanks John. Will investigate sending the CONNECT command to handle proxies. Do you recommend doing this for HTTP proxies as well No. or should I just use the ProxyHandler for HTTP proxies? Yes. John --

Re: how to get the NT event log properties with OnObjectReady() with python

2007-10-13 Thread Roger Upole
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm trying to get a notification from the NT event for any new event using the DispatchWithEvents() function. Everything seems to be working the way I wanted, but I don't know how to get the properties of the event (ie. event type,

Re: Declarative properties

2007-10-13 Thread Bruno Desthuilliers
Stargaming a écrit : On Thu, 11 Oct 2007 18:58:44 +0200, Bruno Desthuilliers wrote: [snip] Your implementation seems particularly broken. You do not return anything from `name()`, Oops, my bad ! Indeed, I forgot the 'return property(**locals())' at the end. And a couple other things too:

unicodedata implementation - categories

2007-10-13 Thread James Abley
Hi, I'm trying to understand how CPython implements unicodedata, with a view to providing an implementation for Jython. This is a background, low priority thing for me, since I last posted to this list about it in February! Python 2.5.1 (r251:54863, May 2 2007, 16:56:35) [GCC 4.1.2 (Ubuntu

Re: Problem of Readability of Python

2007-10-13 Thread Scott David Daniels
Delaney, Timothy (Tim) wrote: Licheng Fang wrote: This is enlightening. Surely I shouldn't have worried too much about performance before doing some measurement. And with that statement you have truly achieved enlightenment. Or to put it another way ... performance tuning without

Re: tarfile...bug?

2007-10-13 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: On Oct 9, 10:33 pm, Anurag [EMAIL PROTECTED] wrote: Have any one faced such problem, I assume it must be common if it can be replicated so easily , or something wrong with my system Also if I use tar.members instead of tar.getmembers() it works so what is the diff.

Question - FM receiver sample - AtttributeError

2007-10-13 Thread noroi
Hi all, I got some problems while running the FM receiver's example codes from the GNURadio tutorial page; the RF front end is set to call the signal input from daughter board, and when the compiler tried to call mothods to set some parameter values(such as gain, set_AGC() and If frequency,

Re: unicodedata implementation - categories

2007-10-13 Thread chris . monsanto
On Oct 13, 4:32 pm, James Abley [EMAIL PROTECTED] wrote: Hi, I'm trying to understand how CPython implements unicodedata, with a view to providing an implementation for Jython. This is a background, low priority thing for me, since I last posted to this list about it in February! Python

Re: Python in HTML Application (HTA)

2007-10-13 Thread M�ta-MCI (MVP)
Hi! I give a solution in the french newsgroup. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Declarative properties

2007-10-13 Thread Bruno Desthuilliers
Dan Stromberg a écrit : On Fri, 12 Oct 2007 09:42:28 +0200, Bruno Desthuilliers wrote: So what? Otherwise you carry *always* the baggage of a public property and a private attribute whether you need this or not. At least for me it would be unnecessary in most cases. That baggage of

Re: Declarative properties

2007-10-13 Thread Bruno Desthuilliers
Dan Stromberg a écrit : (snip) My implementation may or may not be lacking (feel free to improve it - in fact, please do!), Since you ask for it: def makeprop(name): _name = '_' + name def fget(self): return getattr(self, _name, None) def fset(self, val):

Re: The fundamental concept of continuations

2007-10-13 Thread Alex Martelli
Matthias Benkard [EMAIL PROTECTED] wrote: continuations. There used to be a project called Stackless Python that tried to add continuations to Python, but as far as I know, it has always been separate from the official Python interpreter. I don't know whether it's still alive. You may want

Python on imac

2007-10-13 Thread John Velman
I'm considering moving from Linux to imac. I've recently returned to Python (was never very expert) to develop a small gui application. At present I plan to use PyGTK with Pango and Cairo. What surprises may I be in for :-) (Currently using slackware 11.0 on an old (8 years) slow (400mhz)

Re: Saving parameters between Python applications?

2007-10-13 Thread Stodge
os.getppid() isn't cross platform. I don't think it works on Windows. I think I'll just create a simple shell script (BAT or Bash) for each platform as needed. Thanks On Sep 20, 3:17 pm, David [EMAIL PROTECTED] wrote: On 9/16/07, Stodge [EMAIL PROTECTED] wrote: I'm trying to do the

Re: Yet another comparison of Python Web Frameworks

2007-10-13 Thread Ian Bicking
On Oct 6, 8:29 am, Michele Simionato [EMAIL PROTECTED] wrote: Do you (or something else) have something to say about Beaker? I looked at the source code and it seems fine to me, but I have not used it directly, not stressed it. I need a production-level WSGI session middleware and I wonder

Re: Yet another comparison of Python Web Frameworks

2007-10-13 Thread Ian Bicking
On Oct 6, 8:13 am, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: Well... Last year, I had a look at Pylons, then played a bit with wsgi and building my own framework over it. I finally dropped that code and went back to Pylons, which I felt could become far better than my own efforts.

Re: Python on imac

2007-10-13 Thread Adam Atlas
On Oct 13, 7:21 pm, John Velman [EMAIL PROTECTED] wrote: I'm considering moving from Linux to imac. I've recently returned to Python (was never very expert) to develop a small gui application. At present I plan to use PyGTK with Pango and Cairo. What surprises may I be in for :-)

[issue1276] LookupError: unknown encoding: X-MAC-JAPANESE

2007-10-13 Thread jos
New submission from jos : When I compile Python-3.0a1 on Mac OS X with Japanese locale, I've got LookupError like below. == running build_scripts creating build/scripts-3.0 Traceback

[issue1251] ssl module doesn't support non-blocking handshakes

2007-10-13 Thread Bill Janssen
Bill Janssen added the comment: It's my mistake; I was looking at too many patches at the same time. Thanks for the example. Bill __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1251 __

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: - gvanrossum nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1272 __ ___ Python-bugs-list mailing list

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: Couple of nits: - You added a removal of hotshot from setup.py to the patch; but that's been checked in in the mean time. - Why add an 'errors' argument to the function when it's a fatal error to use it? - Using 0 to autodetect the length is scary.

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I found a few problems in your patch. In PyCode_New() the type check for the filename argument is incorrect: --- Objects/codeobject.c(revision 58412) +++ Objects/codeobject.c(working copy) @@ -59,7 +59,7 @@ freevars == NULL ||

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1272 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Guido wrote: Why copy the default encoding before mangling it? With a little extra care you will only have to copy it once. Also, consider not mangling at all, but assuming the encoding comes in a canonical form -- several other functions assume

[issue1276] LookupError: unknown encoding: X-MAC-JAPANESE

2007-10-13 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- keywords: +patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1276 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Christian Heimes
Christian Heimes added the comment: Guido van Rossum wrote: - You added a removal of hotshot from setup.py to the patch; but that's been checked in in the mean time. Oh, the change shouldn't make it into the patch. I guess I forgot a svn revert on setup.py - Why add an 'errors' argument to

[issue1260] PEP 3137: Remove the buffer API from PyUnicode

2007-10-13 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: There was a problem with one of the call of PyArg_ParseTuple in the OS/2 version of listdir() in the posix module. I also clarified the error message of the 't' format unit. __ Tracker [EMAIL PROTECTED]

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: On 10/13/07, Christian Heimes [EMAIL PROTECTED] wrote: Guido van Rossum wrote: - Why add an 'errors' argument to the function when it's a fatal error to use it? I wanted the signature of the method be equal to the other methods PyUnicode_Decode*. I

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: Oh. Hm. I still wish that PyCode_New() could just insist that the filename argument is a PyUnicode instance. Why can't it? Perhaps the caller should be fixed instead? I'll try. I figured out the problem -- it came from marshalled old code objects. If

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Christian Heimes
Christian Heimes added the comment: Guido van Rossum wrote: - Why copy the default encoding before mangling it? With a little extra care you will only have to copy it once. Now I remember why I added the strncpy() call plus encoding[31] = '\0'. I wanted to make sure that the code doesn't

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: Well, you could ensure that by checking that you haven't reached the end of the mangling buffer. That will have the added advantage that when the input is something silly like 32 spaces followed by utf-8 it will be still be mangled correctly. The slight extra

[issue1264] __file__ and co_filename as unicode

2007-10-13 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: - out of date status: open - closed superseder: - Decode __file__ and co_filename to unicode using fs default __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1264 __

[issue1267] Py3K cannot run as ``python -S``

2007-10-13 Thread Guido van Rossum
Changes by Guido van Rossum: -- nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1267 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1268] array unittest problems with UCS4 build

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: Can this be closed now that Travis reverted his patch? -- nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1268 __

[issue1260] PEP 3137: Remove the buffer API from PyUnicode

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: You can check this in. You do have checkin privs right? -- resolution: - accepted __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1260 __

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Guido wrote: I figured out the problem -- it came from marshalled old code objects. If you throw away all .pyc files the problem goes away. You can also get rid of the similar checks for the 'name' argument -- this should just be a PyUnicode too. A

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Remove the PyString type check on 'filename' and 'name' in PyCode_New. Oops. I removed one of the ! the checks by mistake. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1272

[issue1260] PEP 3137: Remove the buffer API from PyUnicode

2007-10-13 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Committed in r58455. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1260 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1260] PEP 3137: Remove the buffer API from PyUnicode

2007-10-13 Thread Guido van Rossum
Changes by Guido van Rossum: -- status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1260 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: Crys, is this OK with you? On 10/13/07, Alexandre Vassalotti [EMAIL PROTECTED] wrote: Alexandre Vassalotti added the comment: Guido wrote: I figured out the problem -- it came from marshalled old code objects. If you throw away all .pyc files the

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-13 Thread Christian Heimes
Christian Heimes added the comment: Guido van Rossum wrote: Guido van Rossum added the comment: Crys, is this OK with you? Alexandre's mangle loop doesn't do the same job as mine. Chars like _ and - aren't removed from the encoding name and the if clauses don't catch for example UTF-8 or