Python Bootcamp - 2 weeks left, Register Now! (May 17-21, 2010)

2010-05-05 Thread Chander Ganesan
Just a reminder that there are only 2 weeks remaining to register for the Open Technology Group's Python Bootcamp, a 5 day hands-on, intensive, in-depth introduction to Python. This course is confirmed and guaranteed to run. Travel not in the budget? Need to stay home? Now you can - our

Summer Python Training Courses with @dabeaz

2010-05-05 Thread David Beazley
** Upcoming Python Training Courses ** Chicago - Summer 2010 http://www.dabeaz.com/chicago/index.html David Beazley, author of the Python Essential Reference, is pleased to announce the following training courses for Summer 2010. - Python

Re: Sphinx hosting

2010-05-05 Thread James Mills
On Wed, May 5, 2010 at 3:35 PM, Michele Simionato michele.simion...@gmail.com wrote: I am sure it has, but I was talking about just putting in the repository an index.html file and have it published, the wayI hear  it works in BitBucket and GitHub. I'm pretty sure Google Code Hosting doesn't

Re: Fast Efficient way to transfer an object to another list

2010-05-05 Thread Gabriel Genellina
En Fri, 30 Apr 2010 23:16:04 -0300, Jimbo nill...@yahoo.com escribió: Hello I have a relatively simple thing to do; move an object from one to list into another. But I think my solution maybe inefficient slow. Is there a faster better way to move my stock object from one list to another? (IE,

Re: strange interaction between open and cwd

2010-05-05 Thread Nobody
On Wed, 05 May 2010 02:41:09 +0100, Baz Walter wrote: i think the algorithm also can't guarantee the intended result when crossing filesystem boundaries. IIUC, a stat() call on the root directory of a mounted filesystem will give the same inode number as its parent. Nope; it will have the

Re: Teaching Programming

2010-05-05 Thread Dave Angel
alex23 wrote: Ed Keith e_...@yahoo.com wrote: Knuth wanted the generated source to be unreadable, so people would not be tempted to edit the generated code. This is my biggest issue with Knuth's view of literate programming. If the generated source isn't readable, am I just supposed

Re: Django as exemplary design

2010-05-05 Thread Bruno Desthuilliers
TomF a écrit : On 2010-05-04 07:11:08 -0700, alex23 said: (snip) (I also think there's value to be gained in studying _bad_ code, too...) True, although whether that's time well spent is another question. The more bad code (mine or not) I have to maintain (or even just read and

Re: Python debuggers with sys.settrace()

2010-05-05 Thread Carl Banks
On May 2, 11:06 am, Sarah Mount mount.sa...@gmail.com wrote: This is a bit of an odd question, but is there any way for a Python debugger to suppress I/O generated by the program which is being debugged? I guess an obvious thing to do would be to replace core parts of the standard library and

the solution to your current problems........join this: http://www.thevoid1.net/para

2010-05-05 Thread Robin
the solution to your current problemsjoin this: http://www.thevoid1.net/para -- http://mail.python.org/mailman/listinfo/python-list

Re: Teaching Programming

2010-05-05 Thread Ed Keith
--- On Tue, 5/4/10, alex23 wuwe...@gmail.com wrote: From: alex23 wuwe...@gmail.com Subject: Re: Teaching Programming To: python-list@python.org Date: Tuesday, May 4, 2010, 8:47 PM Ed Keith e_...@yahoo.com wrote: Knuth wanted the generated source to be unreadable, so people would not be

how to import subprocess into my 'subprocess.py' file

2010-05-05 Thread hiral
Hi, I am doing following in my 'subprocess.py' file... 1 from __future__ import absolute_import 2 from subprocess import * 3 from subprocess import call as myCall 4 from subprocess import Popen as myPopen 5 6 def getProperCmd(cmd): 7 cmd += 'time' # this is just an example; in

Python Embedding, no correct lib

2010-05-05 Thread moerchendiser2k3
Hi, I have a serious problem with Python. I am currently trying to implement Python into my app. Well this works fine, but get this: I have my own Python interpreter in a subfolder of my app. When I start my app, PYTHONHOME is set, and an environment variable is set to it can find the python DLL

Portable Python

2010-05-05 Thread balzer
Is there any difference in functionality between standard Python pack and portable Python? Why standard Python pack installation requires reboot after installation? Can portable Python used from hard drive folder? -- http://mail.python.org/mailman/listinfo/python-list

Re: strange interaction between open and cwd

2010-05-05 Thread Baz Walter
On 05/05/10 07:24, Nobody wrote: On Wed, 05 May 2010 02:41:09 +0100, Baz Walter wrote: i think the algorithm also can't guarantee the intended result when crossing filesystem boundaries. IIUC, a stat() call on the root directory of a mounted filesystem will give the same inode number as its

Re: how to import subprocess into my 'subprocess.py' file

2010-05-05 Thread Steven D'Aprano
On Wed, 05 May 2010 03:34:06 -0700, hiral wrote: So how can I create a python file (with the same name as standard module name) with custom methods? Don't do this. It will lead to nothing but trouble. Python doesn't support multiple modules with the same name. Unless you create a custom

Movable Python or ActivePython

2010-05-05 Thread balzer
I want Python pack that can run without being installed, mostly for testing programs. As I read, Movable Python can run without being installed. It needs no registry entries and knows the path to all the dlls (system or otherwise) that it uses. Whats about ActivePython

Re: how to import subprocess into my 'subprocess.py' file

2010-05-05 Thread Jean-Michel Pichavant
hiral wrote: Hi, I am doing following in my 'subprocess.py' file... 1 from __future__ import absolute_import 2 from subprocess import * 3 from subprocess import call as myCall 4 from subprocess import Popen as myPopen 5 6 def getProperCmd(cmd): 7 cmd += 'time' # this is just

Create a new process to run python function

2010-05-05 Thread Massi
Hi everyone, in my script (python 2.5 on windows xp) I need to run a simple function in a separate process. In other words I need something similar to the fork function under UNIX. I tried with threads: import os, threading def func(s) : print I'm thread number +s, os.getpid()

Re: Create a new process to run python function

2010-05-05 Thread Joe Riopel
On Wed, May 5, 2010 at 8:56 AM, Massi massi_...@msn.com wrote: but this does not work, since the two threads share the same pid. Can anyone give me a suggestion? Have you looked at os.fork ? http://docs.python.org/library/os.html#os.fork -- http://mail.python.org/mailman/listinfo/python-list

Re: Exclusively lock a file to prevent other processes from reading it?

2010-05-05 Thread python
Chris, Philip, Christian, John and others, Thank you all for your replies. Regards, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: Create a new process to run python function

2010-05-05 Thread Christian Heimes
Joe Riopel wrote: On Wed, May 5, 2010 at 8:56 AM, Massimassi_...@msn.com wrote: but this does not work, since the two threads share the same pid. Can anyone give me a suggestion? Have you looked at os.fork ? http://docs.python.org/library/os.html#os.fork Fork on Windows XP? Have a lot of

find out whther byte two .pyc files contain the same byte code.

2010-05-05 Thread gelonida
Hi, I'd like to know whether the byte code of two .pyc files is identical. I thought, I could just compare the md5sums of thw .pyc files. However this does not work. It seems, that .pyc ontains the time stamp of the source file. the .pyc file changes its contents when I don't change the file's

Re: Sharing a program I wrote

2010-05-05 Thread James Harris
On 5 May, 04:25, Scott scott.freem...@gmail.com wrote: James, Thanks for the comprehensive reply. I would like to post it to comp.lang.python but the main file is 169 lines long and the file for functions is 316 lines long. I'm thinking that is a little long for this format. You're welcome.

Re: Create a new process to run python function

2010-05-05 Thread James Mills
On Wed, May 5, 2010 at 10:56 PM, Massi massi_...@msn.com wrote: in my script (python 2.5 on windows xp) I need to run a simple function in a separate process. In other words I need something similar to the fork function under UNIX. I tried with threads: Use the new multiprocesing package.

abc don't play well with private method

2010-05-05 Thread mouadino
i have a problem here : i want to make a plugin architecture using abstract base class , this is my base class : # -*- coding: utf-8 -*- import abc class BASE_Connector: Mount point for plugins which refer to actions that can be performed. Plugins implementing this reference

Re: Portable Python

2010-05-05 Thread Laszlo Nagy
Is there any difference in functionality between standard Python pack and portable Python? It is not so easy to install third party modules for portable Python... Why standard Python pack installation requires reboot after installation? It is not true for all operating systems. At least

Re: abc don't play well with private method

2010-05-05 Thread Bruno Desthuilliers
mouadino a écrit : i have a problem here : i want to make a plugin architecture using abstract base class , this is my base class : # -*- coding: utf-8 -*- import abc class BASE_Connector: Mount point for plugins which refer to actions that can be performed. Plugins

Re: Generating nested code with context managers

2010-05-05 Thread Dan Goodman
I tried a very similar thing, but not using with statements: http://mail.python.org/pipermail/python-list/2010-March/1239577.html Dan On 04/05/2010 22:36, Terry Reedy wrote: In a current thread, people have claimed that generating properly indented nested blocks is a pain because of the need

Re: Create a new process to run python function

2010-05-05 Thread Benjamin Kaplan
On Wed, May 5, 2010 at 10:33 AM, James Mills prolo...@shortcircuit.net.au wrote: On Wed, May 5, 2010 at 10:56 PM, Massi massi_...@msn.com wrote: in my script (python 2.5 on windows xp) I need to run a simple function in a separate process. In other words I need something similar to the fork

Re: Create a new process to run python function

2010-05-05 Thread Christian Heimes
Am 05.05.2010 17:59, schrieb Benjamin Kaplan: Multiprocessing wasn't added until Python 2.6. http://www.python.org/dev/peps/pep-0371/ In Python 2.5, it was still a 3rd party package. http://pypi.python.org/pypi/processing The project's website appears to be down right now though.

Where is python31.dll?

2010-05-05 Thread Pietro Campesato
Hi, recently I've been wondering how to roll my own portable python 3.1 (since there seems to be no portable app specifically for this version). Thinking you can just copy your install folder (+ python's dll), I've noticed that there seems to be no python31.dll in my systems folder

Re: Teaching Programming

2010-05-05 Thread Terry Reedy
On 5/5/2010 4:50 AM, Dave Angel wrote: alex23 wrote: Ed Keith e_...@yahoo.com wrote: Knuth wanted the generated source to be unreadable, so people would not be tempted to edit the generated code. This is my biggest issue with Knuth's view of literate programming. If the generated source

Re: Movable Python or ActivePython

2010-05-05 Thread Terry Reedy
On 5/5/2010 8:47 AM, balzer wrote: I want Python pack that can run without being installed, mostly for testing programs. As I read, Movable Python can run without being installed. It needs no registry entries and knows the path to all the dlls (system or otherwise) that it uses. Whats about

Re: Movable Python or ActivePython

2010-05-05 Thread Sridhar Ratnakumar
On 2010-05-05, at 5:47 AM, balzer wrote: I want Python pack that can run without being installed, mostly for testing programs. As I read, Movable Python can run without being installed. It needs no registry entries and knows the path to all the dlls (system or otherwise) that it uses.

Re: Where is python31.dll?

2010-05-05 Thread Terry Reedy
On 5/5/2010 1:26 PM, Pietro Campesato wrote: Hi, recently I've been wondering how to roll my own portable python 3.1 (since there seems to be no portable app specifically for this version). Thinking you can just copy your install folder (+ python's dll), I've noticed that there seems to be no

Re: Where is python31.dll?

2010-05-05 Thread Christian Heimes
Am 05.05.2010 19:26, schrieb Pietro Campesato: Hi, recently I've been wondering how to roll my own portable python 3.1 (since there seems to be no portable app specifically for this version). Thinking you can just copy your install folder (+ python's dll), I've noticed that there seems to be no

ActiveState using different MS runtime files than official Python release? (was Re: Movable Python or ActivePython)

2010-05-05 Thread python
In a recent thread (Movable Python or ActivePython), Sridhar Ratnakumar pointed out that the ActiveState Python releases can be downloaded as ZIP files vs. MSI files. (Great idea - thank you ActiveState!) The .MSI installer does require installation, but there is also a .ZIP package which

SQLObject 0.11.6

2010-05-05 Thread Oleg Broytman
Hello! I'm pleased to announce version 0.11.6, a minor bugfix release of 0.11 branch of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be

SQLObject 0.12.4

2010-05-05 Thread Oleg Broytman
Hello! I'm pleased to announce version 0.12.4, a minor bugfix release of branch 0.12 of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be

Re: How to check what is holding reference to object

2010-05-05 Thread Marius Gedminas
On Apr 28, 3:59 pm, Christian Heimes li...@cheimes.de wrote: The trick works only for objects that are tracked by CPython's garbage collector. Simple and non-containerish objects like str, int, unicode and some other types aren't tracked by the gc. Yes they are -- have you ever tried

Re: How to check what is holding reference to object

2010-05-05 Thread Marius Gedminas
On Apr 27, 11:45 pm, Michal M mich.mier...@googlemail.com wrote: I've just found out that one of objects is not destroyed when it should be. This means that something was holding reference to this object or part of it (i.e. method). Is there any way to check what holds that reference? I am

HOLLYWOOD ACTRESS HOLLYWOOD ACTRESS WALLPAPERS SEXY HOLLYWOOD ACTRESS PRETTY HOLLYWOOD ACTRESS CUTE HOLLYWOOD ACTRESS HOLLYWOOD ACTRESS ON http://hollywood6y.blogspot.com/

2010-05-05 Thread saima81
HOLLYWOOD ACTRESS HOLLYWOOD ACTRESS WALLPAPERS SEXY HOLLYWOOD ACTRESS PRETTY HOLLYWOOD ACTRESS CUTE HOLLYWOOD ACTRESS HOLLYWOOD ACTRESS ON http://hollywood6y.blogspot.com/ HOLLYWOOD ACTRESS HOLLYWOOD ACTRESS WALLPAPERS SEXY HOLLYWOOD ACTRESS PRETTY HOLLYWOOD ACTRESS CUTE HOLLYWOOD ACTRESS

Re: Teaching Programming

2010-05-05 Thread Martin P. Hellwig
On 05/04/10 12:59, superpollo wrote: Martin P. Hellwig ha scritto: cut For the corner cases (I can think of a couple) it is good to know you can use ';' most of the time. most but not always as i noted (think about loops or function definition) Well through in some exec magic then, for

Re: Teaching Programming

2010-05-05 Thread superpollo
Martin P. Hellwig ha scritto: On 05/04/10 12:59, superpollo wrote: Martin P. Hellwig ha scritto: cut For the corner cases (I can think of a couple) it is good to know you can use ';' most of the time. most but not always as i noted (think about loops or function definition) Well through

Re: ActiveState using different MS runtime files than official Python release? (was Re: Movable Python or ActivePython)

2010-05-05 Thread Trent Mick
On 10-05-05 12:04 PM, pyt...@bdurham.com wrote: I just took a look at the ActiveStatre 2.6.5.12 release (zip file version) and noticed that this file does not include the MSVCR90.DLL run time file - it includes MFC*.DLL files instead (and a different manifest file as well). Can anyone explain

Re: find out whther byte two .pyc files contain the same byte code.

2010-05-05 Thread Gabriel Genellina
En Wed, 05 May 2010 10:34:34 -0300, gelonida gelon...@gmail.com escribió: I'd like to know whether the byte code of two .pyc files is identical. I thought, I could just compare the md5sums of thw .pyc files. However this does not work. It seems, that .pyc ontains the time stamp of the source

Re: Python Embedding, no correct lib

2010-05-05 Thread Gabriel Genellina
En Wed, 05 May 2010 09:04:06 -0300, moerchendiser2k3 googler.1.webmas...@spamgourmet.com escribió: I have a serious problem with Python. I am currently trying to implement Python into my app. Well this works fine, but get this: I have my own Python interpreter in a subfolder of my app. When

Re: Python Embedding, no correct lib

2010-05-05 Thread moerchendiser2k3
On 6 Mai, 01:30, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Wed, 05 May 2010 09:04:06 -0300, moerchendiser2k3   googler.1.webmas...@spamgourmet.com escribió: I have a serious problem with Python. I am currently trying to implement Python into my app. Well this works fine, but get

Re: strange interaction between open and cwd

2010-05-05 Thread Cameron Simpson
On 05May2010 13:23, Baz Walter baz...@ftml.net wrote: | here's what i get on my system, where '/dev/sda1' and '/dev/sda6' | are mounted at '/boot' and '/home' respectively: | | os.stat('/').st_ino | 2L | os.stat('/usr').st_ino | 212993L | os.stat('/boot').st_ino | 2L | os.stat('/home').st_ino

Re: ActiveState using different MS runtime files than official Python release? (was Re: Movable Python or ActivePython)

2010-05-05 Thread python
Hi Trent, On 10-05-05 12:04 PM, pyt...@bdurham.com wrote: I just took a look at the ActiveStatre 2.6.5.12 release (zip file version) and noticed that this file does not include the MSVCR90.DLL run time file - it includes MFC*.DLL files instead (and a different manifest file as well). Can

Encrypt password within source code.

2010-05-05 Thread Vincent Davis
I can't think of a way to do this, not sure it is possible but I feel as though I might not know what I don't know. I want to share and example of a python script, to run it needs a google username and password. Is there a way for me to encrypt my username and password in the source code? I

Re: Encrypt password within source code.

2010-05-05 Thread Chris Rebert
On Wed, May 5, 2010 at 6:12 PM, Vincent Davis vinc...@vincentdavis.net wrote: I can't think of a way to do this, not sure it is possible but I feel as though I might not know what I don't know. I want to share and example of a python script, to run it needs a google username and password. Is

Re: Encrypt password within source code.

2010-05-05 Thread Tim Chase
On 05/05/2010 08:12 PM, Vincent Davis wrote: I can't think of a way to do this, not sure it is possible but I feel as though I might not know what I don't know. I want to share and example of a python script, to run it needs a google username and password. Is there a way for me to encrypt my

Is there a better way to set a system clock in Python (on a Linux system)

2010-05-05 Thread J
Is there a better way to do this? def SkewTime(): ''' Optional function. We can skew time by 1 hour if we'd like to see real sync changes being enforced ''' TIME_SKEW=1 logging.info('Time Skewing has been selected. Setting clock ahead 1 hour') # Let's get our current

Re: Is there a better way to set a system clock in Python (on a Linux system)

2010-05-05 Thread Chris Rebert
On Wed, May 5, 2010 at 7:47 PM, J dreadpiratej...@gmail.com wrote: Is there a better way to do this? Yes: from datetime import datetime, timedelta def SkewTime():    '''    Optional function. We can skew time by 1 hour if we'd like to see real sync    changes being enforced    '''    

Re: Is there a better way to set a system clock in Python (on a Linux system)

2010-05-05 Thread KDr2
man 2 clock_settime call it with ctypes -- Best Regards, -- KDr2 http://kdr2.net On Thu, May 6, 2010 at 10:47 AM, J dreadpiratej...@gmail.com wrote: Is there a better way to do this? def SkewTime(): ''' Optional function. We can skew time by 1 hour if we'd like to see real

Re: Encrypt password within source code.

2010-05-05 Thread Vincent Davis
Thanks for the replies I though the answer was no. Vincent On Wed, May 5, 2010 at 7:48 PM, Tim Chase python.l...@tim.thechases.comwrote: On 05/05/2010 08:12 PM, Vincent Davis wrote: I can't think of a way to do this, not sure it is possible but I feel as though I might not know what I don't

Looking for a gettext and/or Babel tutorial for Windows

2010-05-05 Thread python
I'm looking for a gettext and/or Babel tutorial for Windows. Any suggestions? Specific topics I'm interested in: 1. Understanding the full life cycle of PO/POT and MO files from their initial creation to their ongoing maintenance (under Windows) 2. Automating the use of pygettext and msgfmt.py

PyCon Australia Early-Bird running out!

2010-05-05 Thread Richard Jones
Registration is open and the Early Bird tickets are running out. Register here: http://pycon-au.org/reg We offer two levels of registration for PyCon Australia 2010: Full (Early Bird) - $165 This is the registration rate for regular attendees. We're offering a limited Early Bird rate for

Re: Where is python31.dll?

2010-05-05 Thread Pietro Campesato
Your windows search command? Which is how I verified the above. I looked at the folder visually. Simply using os.listdir shows there is in fact a python31.dll there: somehow it was an invisible file. This is strange since I've never touched any system folder. Thanks and forgive me if I have

Re: strange interaction between open and cwd

2010-05-05 Thread Nobody
On Wed, 05 May 2010 13:23:03 +0100, Baz Walter wrote: so if several filesystems are mounted in the same parent directory, there is no way to tell which of them is the right one. The only case which would cause a problem here is if you mount the same device on two different subdirectories of

Re: strange interaction between open and cwd

2010-05-05 Thread Nobody
On Thu, 06 May 2010 10:21:45 +1000, Cameron Simpson wrote: Look at the st_rdev field (== the device holding this inode). When that changes, you've crossed a mount mount point. st_dev reports the device on which the inode resides. st_rdev is only meaningul if the inode type is block device

[issue8619] Doc bug for urllib.request._urlopener in Python 3.1+

2010-05-05 Thread sri
sri sriram.thai...@gmail.com added the comment: You missed the code part: urllib._urlopener = AppURLopener() -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8619 ___

[issue8619] Doc bug for urllib.request._urlopener in Python 3.1+

2010-05-05 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in r80775 and r80776 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8619 ___ ___

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: I don't think it's a good idea to display an fatal error at runtime. If nl_langinfo(CODESET) is not available, configure should fail or we should fallback to an hardcoded encoding (ok but which one?). If

[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: The documentation of os.environb and os.getenvb() in my last patch is very short. I'm not inspired. We told me on IRC to not use function annotations because annotation semantic was not decided yet. I will

[issue8617] Non-existent variables documented

2010-05-05 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: site definitely needs more documentation about the per-user site-packages. We need to add a section about that. I am adding Christian to the nosy list, since he added those feature. I can work on a section sometimes next week and propose a

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: manpage for nl_langinfo() doesn't mention any errors that could be raised by it It's more about get_codeset(). This function can fail for different reasons: - nl_langinfo() result is an empty string: If item is not valid, a

[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: MaL Patch looks good. +1 on adding it. Cool. I didn't understood if MvL is +1, but at least he's not -1 on this, and we are at least two at +1 :-) MaL One nit: I'd rename the keymap function to encodekey. Ok, I will also change

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: manpage for nl_langinfo() doesn't mention any errors that could be raised by it It's more about get_codeset(). This function can fail for different

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I think that using ASCII is a safer choice in case of errors. I choosed UTF-8 to keep backward compatibility: PyUnicode_DecodeFSDefaultAndSize() uses utf-8 if Py_FileSystemDefaultEncoding==NULL. If the OS has no

[issue8313] unprintable AssertionError object message in unittest tracebacks

2010-05-05 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Changing traceback._some_str to return unicode rather than str seems like a bad idea. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8313

[issue8313] unprintable AssertionError object message in unittest tracebacks

2010-05-05 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8313 ___ ___ Python-bugs-list mailing list

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: I think that using ASCII is a safer choice in case of errors. I choosed UTF-8 to keep backward compatibility: PyUnicode_DecodeFSDefaultAndSize()

[issue8313] unprintable AssertionError object message in unittest tracebacks

2010-05-05 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I would prefer to try str(...) first and only attempt to convert to unicode and do the backslash replace if the str(...) call fails. -- ___ Python tracker rep...@bugs.python.org

[issue8620] wrong truncation of line in Cmd.cmd

2010-05-05 Thread Mattelaer
New submission from Mattelaer olivier.mattel...@uclouvain.be: When using the Cmd module on a file. it happens that the last line is truncated from the last caracther. The problem is simply that it can happen that the last line doesn't finish by '\n' charcacter. In consequence the line which

[issue8621] Mac OS X

2010-05-05 Thread yig
New submission from yig yo...@yotamgingold.com: Calling uuid.uuid4() while using the multiprocessing module leads to the same exact UUIDs being generating in each process. It is an artifact resulting from the built-in uuid_generate_random() of my underlying platform, Mac OS X 10.6.3. A

[issue8613] Decimal module flags undetermined when a signal is trapped.

2010-05-05 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I agree that the spec is not unambiguous, but consider the Overflow and Underflow passages here: http://speleotrove.com/decimal/daexcep.html == Overflow == In all cases, Inexact and Rounded will also be raised. Raise here of

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Since r80665, a ./configure --with-pydebug seems to give compilation with -O2 (tested on OS X and Linux). Is this intentional? I'm getting, e.g., gcc -c -g -O2 -g -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE

[issue8619] Doc bug for urllib.request._urlopener in Python 3.1+

2010-05-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Why do we have a public API that begins with an '_'? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8619 ___

[issue8613] Decimal module flags undetermined when a signal is trapped.

2010-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Yes, that's a good point. It would be nice for e.g. Inexact = Rounded invariants to be, well, invariant. I agree that the cdecimal behaviour is the correct one. I'm looking for wiggle room here because I don't really want to make a set of

[issue8621] Mac OS X

2010-05-05 Thread yig
yig yo...@yotamgingold.com added the comment: For the record, I filed a bug against the underlying platform. (I wrote a simple program to reproduce this in C and filed a bug report with Apple rdar://7944700. The OpenRadar page for it is here: http://openradar.appspot.com/radar?id=334401 )

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Mark Dickinson wrote: Mark Dickinson dicki...@gmail.com added the comment: Since r80665, a ./configure --with-pydebug seems to give compilation with -O2 (tested on OS X and Linux). Is this intentional? Yes. I've restored the

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg m...@egenix.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8211 ___ ___

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Marc-Andre Lemburg wrote: Marc-Andre Lemburg m...@egenix.com added the comment: Mark Dickinson wrote: Mark Dickinson dicki...@gmail.com added the comment: Since r80665, a ./configure --with-pydebug seems to give compilation with

[issue8619] Doc bug for urllib.request._urlopener in Python 3.1+

2010-05-05 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: That is actually a private attribute of urllib (not urllib2) module present from the very first version. It is intended strictly for overriding purposes not for anything else. During the merge in py3k, it has taken its place in

[issue8313] unprintable AssertionError object message in unittest tracebacks

2010-05-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited: r80777 (trunk) and r80779 (2.6); blocked: r80778 (py3k). Open a new issue if you would like to use something better than ASCII+backslashreplace in unittest (using runner stream encoding?). -- resolution: - fixed

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Yes. I've restored the previous behavior of configure to have AC_PROG_CC determine CFLAGS defaults. Just to be clear, the previous behaviour has *not* been restored. Up until r80665, a '--with-pydebug' build did not include optimization.

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: As the bug is in the underlying platform the best we can do is to warn about this in the documentation, as in the attached patch. BTW. I've updated the title to be slightly more informative. -- keywords: +patch title: Mac OS X

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ah, I understand now: -O2 started appearing in debug builds in r79218, which changed the Makefile to respect CFLAGS. I tested a variety of revision, but failed to test revision in between that and Victor's change... --

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Mark Dickinson wrote: Mark Dickinson dicki...@gmail.com added the comment: Ah, I understand now: -O2 started appearing in debug builds in r79218, which changed the Makefile to respect CFLAGS. I tested a variety of revision, but

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- assignee: barry - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4661 ___ ___

[issue1467619] Header.decode_header eats up spaces

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- assignee: barry - r.david.murray nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1467619 ___

[issue1368247] unicode in email.MIMEText and email/Charset.py

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- assignee: barry - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1368247 ___ ___

[issue1379416] email.Header encode() unicode P2.6

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- assignee: barry - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1379416 ___ ___

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-05-05 Thread yig
yig yo...@yotamgingold.com added the comment: Why not default to not use the Python implementation on darwin instead of the underlying platform's uuid_generate_random(), until it's proven safe? -- ___ Python tracker rep...@bugs.python.org

[issue6521] Contradictory documentation for email.mime.text.MIMEText

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- assignee: barry - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6521 ___ ___

[issue1685453] email package should work better with unicode

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- assignee: barry - r.david.murray nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1685453 ___

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-05-05 Thread yig
yig yo...@yotamgingold.com added the comment: Ahem. Why not use the Python implementation on darwin until its uuid_generate_random() is deemed to be safe? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8621

[issue1555570] email parser incorrectly breaks headers with a CRLF at 8192

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- assignee: barry - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue170 ___ ___

  1   2   3   >