[issue1431] pth files not loaded at startup

2007-11-13 Thread Gabriel Genellina
Changes by Gabriel Genellina: -- nosy: +gagenellina __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue1134] Parsing a simple script eats all of your memory

2007-11-13 Thread Guido van Rossum
Guido van Rossum added the comment: Is this also broken in the 3.0a1 release? If not, it might be useful to try to find the most recent rev where it's not broken. __ Tracker <[EMAIL PROTECTED]> __

[issue1442] pythonstartup addition of minor error checking

2007-11-13 Thread Joseph Armbruster
New submission from Joseph Armbruster: Trunk revision: 58963 Description: No warning or error is reported it a file pointed to by PYTHONSTARTUP is not readable. Request: To display a warning so that the user may be notified. Note: Errors that may occur in PyRun_SimpleFileExFlags are being c

[issue1417] Weakref not working properly

2007-11-13 Thread Gabriel Genellina
Gabriel Genellina added the comment: I think this methodref function is simpler and much less intrusive -- nosy: +gagenellina Added file: http://bugs.python.org/file8744/methodref.py __ Tracker <[EMAIL PROTECTED]> __

[issue1134] Parsing a simple script eats all of your memory

2007-11-13 Thread Christian Heimes
Christian Heimes added the comment: I've already raised the priority to draw more attention to this bug. So far I'm not able to solve the bug but I've nailed down the issue to a short test case: HANGS: # -*- coding: ascii -*- """ """ The problem manifests itself only in the combination of the

[issue1441] Cycles through ob_type aren't freed

2007-11-13 Thread Adam Olsen
New submission from Adam Olsen: If I create a subclass of 'type' that's also an instance of 'type', then I change __class__ to point to itself, at which point it cannot be freed (as the type object is needed to delete the instance.) I believe this can be solved by resetting __class__ to a known-

[issue1134] Parsing a simple script eats all of your memory

2007-11-13 Thread Viktor Ferenczi
Viktor Ferenczi added the comment: This bug prevents me and many others to do preliminary testing on Py3k, which slows down it's development. This bug is _really_ hurts. I've a completely developed new module for Py3k that cannot be released due to this bug, since it's unit tests are affected by

[issue1134] Parsing a simple script eats all of your memory

2007-11-13 Thread Guido van Rossum
Guido van Rossum added the comment: Amaury, can you have a look at this? I think it's a bug in tok_nextc() in tokenizer.c. -- assignee: nnorwitz -> amaury.forgeotdarc nosy: +amaury.forgeotdarc __ Tracker <[EMAIL PROTECTED]>

[issue1440] Checks for PySys_GetObject("std???") == Py_None

2007-11-13 Thread Christian Heimes
New submission from Christian Heimes: Can you please review the patch. It's not urgent. It adds additional tests for std??? == Py_None to some functions to speed up things or raise more meaningful exceptions when sys.std??? is None. -- assignee: gvanrossum components: Interpreter Core fi

[issue1134] Parsing a simple script eats all of your memory

2007-11-13 Thread Christian Heimes
Christian Heimes added the comment: The issue isn't fixed yet. The script is still eating precious memory. -- nosy: +gvanrossum, tiran priority: high -> urgent __ Tracker <[EMAIL PROTECTED]> _

[issue1342] Crash on Windows if Python runs from a directory with umlauts

2007-11-13 Thread Christian Heimes
Christian Heimes added the comment: I'm setting the priority to normal. The issue isn't resolved but it's not critical for the next alpha release. By the way what's your ETA for the next alpha, Guido? -- priority: high -> normal __ Tracker <[EMAIL PROTECT

[issue1431] pth files not loaded at startup

2007-11-13 Thread Brett Cannon
Brett Cannon added the comment: I have made this a documentation bug as obviously there is some needed clarification in how .pth files are handled. If you have any suggested wording, Giambattista, then please feel free to submit patches against the 2.6 docs (easier to work with since they are in

[issue1431] pth files not loaded at startup

2007-11-13 Thread Giambattista Bloisi
Giambattista Bloisi added the comment: This make sense. I hope I'm not annoying you. But what I did was to read (http://docs.python.org/inst/search-path.html) before reading (http://docs.python.org/dev/library/site.html#module-site) as the latter is referenced by the first via a html link. The

[issue1429] FD leak in SocketServer

2007-11-13 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: Please provide a small test code that manifests the problem. It is always the best way to get quick response. -- nosy: +draghuram __ Tracker <[EMAIL PROTECTED]> ___

[issue1439] proposed 3000 patch for socket.py - "socket GC worries"

2007-11-13 Thread Bill Janssen
New submission from Bill Janssen: This patch essentially makes GC of sockets work again. See http://mail.python.org/pipermail/python-3000/2007-October/ 011058.html and all the threads in http://mail.python.org/pipermail/ python-3000/2007-October/thread.html with subject line "socket GC worries"

[issue1433] marshal roundtripping for unicode

2007-11-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: As Guido says: this is by design. The Unicode type doesn't really support storage of surrogates; so don't use it for that. -- nosy: +loewis resolution: -> wont fix status: open -> closed __ Tracker <[EMAIL PROTECTED]> <

[issue1431] pth files not loaded at startup

2007-11-13 Thread Brett Cannon
Brett Cannon added the comment: For what you meant by recursion, that makes more sense. But as for whether this is correct or not, read the next paragraph in the site docs (http://docs.python.org/dev/library/site.html#module-site). It says "A path configuration file is a file whose name has the

[issue1436] logging.config.fileConfig, NameError: name 'RotatingFileHandler' is not defined

2007-11-13 Thread Vinay Sajip
Changes by Vinay Sajip: -- resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list U

[issue1436] logging.config.fileConfig, NameError: name 'RotatingFileHandler' is not defined

2007-11-13 Thread Vinay Sajip
Vinay Sajip added the comment: This is not a bug: I think you are missing something. In the first example (interactive usage), the lines "import logging" and "import logging.handlers" do not magically introduce RotatingFileHandler into your interactive session's globals. To do this, you would hav

[issue1342] Crash on Windows if Python runs from a directory with umlauts

2007-11-13 Thread Guido van Rossum
Guido van Rossum added the comment: If this doesn't cause any problems on other platforms, go for it. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-l

[issue1436] logging.config.fileConfig, NameError: name 'RotatingFileHandler' is not defined

2007-11-13 Thread Guido van Rossum
Guido van Rossum added the comment: Somebody please propose a patch! -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list

[issue1435] Support for multiple handlers for the "with" statement

2007-11-13 Thread Guido van Rossum
Guido van Rossum added the comment: I don't think the added syntactic complexity is worth the relatively rare use case, especially since there's already an implementation of nested() in the contextlib library. -- nosy: +gvanrossum resolution: -> wont fix status: open -> closed

[issue1434] SocketServer creates non-blocking files

2007-11-13 Thread Guido van Rossum
Guido van Rossum added the comment: Please provide a self-contained example program that behaves correctly in 2.4.3 and fails in 2.4.4 if you want us to investigate this further. How does it behave with 2.5.1? -- nosy: +gvanrossum __ Tracker <[EMAIL PROTE

[issue1433] marshal roundtripping for unicode

2007-11-13 Thread Guido van Rossum
Guido van Rossum added the comment: I think this is unavoidable. Depending on whether you happen to be using a narrow or wide unicode build of Python, \U may be turned into a pair of surrogates anyway. It's not just marshal that's not roundtripping; the utf-8 codec has the same issue (and

[issue1438] Calling base class methods is slow due to __instancecheck__ override in abc.py

2007-11-13 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: -> gvanrossum __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1438] Calling base class methods is slow due to __instancecheck__ override in abc.py

2007-11-13 Thread Guido van Rossum
New submission from Guido van Rossum: [Guido] > > I've noticed that abc.py's __instancecheck__ gets called a lot > > at times when I don't expect it. Can you research this a bit? [Amaury] > In classobject.c, method_call() calls PyObject_IsInstance() on the > first arg when the method is unbound

[issue1415] py3k: pythonw.exe fails because std streams a missing

2007-11-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > As far as I can see print() works if sys.stdout is either None > (discard output ASAP) or a file like object. Even > print(file=syst.stderr) works. Ah, I prefer this. > sys.stdout.write() is going to fail when sys.stdout is None > but that's not my con

[issue1415] py3k: pythonw.exe fails because std streams a missing

2007-11-13 Thread Christian Heimes
Christian Heimes added the comment: As far as I can see print() works if sys.stdout is either None (discard output ASAP) or a file like object. Even print(file=syst.stderr) works. sys.stdout.write() is going to fail when sys.stdout is None but that's not my concern. It's another well documented

[issue1419] ssl module version 1.10 causes TypeError when accepting connection

2007-11-13 Thread Bill Janssen
Bill Janssen added the comment: About the same as two weeks ago... I have a functional patch, or rather, I have a patch that would work if the issues with socket closing are resolved the way I suggested :-). I've been waiting to see what's going to happen with the socket module. Bill On 11/12

[issue1415] py3k: pythonw.exe fails because std streams a missing

2007-11-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Is it the only possibility? On Windows, it is quite common to print to stdout for debugging purposes, then deploy the application with pythonw.exe which suppresses the console. Without any change to the code. Most pygame programs I know work this way, and

[issue1342] Crash on Windows if Python runs from a directory with umlauts

2007-11-13 Thread Christian Heimes
Christian Heimes added the comment: I like to move _PyExc_Init() before _PySys_Init() and set sys.prefix, exec_prefix and executable with PyUnicode_DecodeFSDefault(). Without the changes Python is seg faulting on Windows when the path contains non ASCII chars. With the patch it is failing with a

[issue1415] py3k: pythonw.exe fails because std streams a missing

2007-11-13 Thread Christian Heimes
Christian Heimes added the comment: Since r58962 it doesn't ;) __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1415] py3k: pythonw.exe fails because std streams a missing

2007-11-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: (Sorry, I cannot test just now) What happens if pythonw.exe calls the print() function? Please tell me that it does not throw an exception. __ Tracker <[EMAIL PROTECTED]> __

[issue1415] py3k: pythonw.exe fails because std streams a missing

2007-11-13 Thread Christian Heimes
Christian Heimes added the comment: I consider the bug fixed and closed. Objections? -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1436] logging.config.fileConfig, NameError: name 'RotatingFileHandler' is not defined

2007-11-13 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: -> vsajip nosy: +vsajip priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list m

[issue1435] Support for multiple handlers for the "with" statement

2007-11-13 Thread Christian Heimes
Changes by Christian Heimes: -- components: +Interpreter Core -None priority: -> low type: behavior -> rfe versions: +Python 2.6 __ Tracker <[EMAIL PROTECTED]> __

[issue1436] logging.config.fileConfig, NameError: name 'RotatingFileHandler' is not defined

2007-11-13 Thread Christian Heimes
Christian Heimes added the comment: confirmed The problem is in logging.config._install_handlers(cp, formatters). The code is usin klass = eval(klass, vars(logging)) args = eval(args, vars(logging)) to get the logger class from the logging module. -- nosy: +tiran versions: +Python 2.6,

[issue1437] List member inside a class is shared by all instances of the class

2007-11-13 Thread Christian Heimes
Christian Heimes added the comment: It's a known feature - and a known gotcha for new Python developers. -- nosy: +tiran resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> _

[issue1437] List member inside a class is shared by all instances of the class

2007-11-13 Thread Quentin Gallet-Gilles
Quentin Gallet-Gilles added the comment: That's the expected behavior, actually. The variables 'arr' and 's' are static variables in the class Blah. This is discussed in several places in the doc and the FAQ, e.g. http://www.python.org/doc/faq/programming/#how-do-i-create-static-class-data-and-st

[issue1437] List member inside a class is shared by all instances of the class

2007-11-13 Thread glubglub
New submission from glubglub: In the class below, 'arr' list should be unique for each instance of class Blah. In reality, 'arr' is shared by all instances of 'Blah' class Blah: arr = []# this member should not be # shared across all instances of blah s

[issue1435] Support for multiple handlers for the "with" statement

2007-11-13 Thread Stavros Korokithakis
Stavros Korokithakis added the comment: What this syntax does is similar to the nested context manager in case 12 of PEP343, but with cleaner syntax. __ Tracker <[EMAIL PROTECTED]> __

[issue1435] Support for multiple handlers for the "with" statement

2007-11-13 Thread Stavros Korokithakis
New submission from Stavros Korokithakis: Currently, the new "with" statement does not support multiple handlers. For example, to open two files for input/output you would have to do: with open("filein") as input: with open("fileout") as output: #Do stuff pass This adds unn

[issue1434] SocketServer creates non-blocking files

2007-11-13 Thread Luke-Jr
New submission from Luke-Jr: SocketServer recently started giving my request handler rfiles that don't block: readfile() gives me a timeout exception. This used to work fine. I begin writing this server with 2.4.3, and it is currently running under 2.4.4, so my suspicious is somewhere in betwe

[issue1433] marshal roundtripping for unicode

2007-11-13 Thread Carl Friedrich Bolz
New submission from Carl Friedrich Bolz: Marshal does not round-trip unicode surrogate pairs for wide unicode-builds: marshal.loads(marshal.dumps(u"\ud800\udc00")) == u'\U0001' This is very annoying, because the size of unicode constants differs between when you run a module for the first t

[issue1265] pdb bug with "with" statement

2007-11-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > BTW**2: I've noticed that abc.py's __instancecheck__ gets called a lot > at times when I don't expect it. Can you research this a bit? In classobject.c, method_call() calls PyObject_IsInstance() on the first arg when the method is unbound. This happens

[issue1430] Installing on Vista asks to close Explorer (and Nokia PC Suite)

2007-11-13 Thread David Barlow
Changes by David Barlow: __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python

[issue1431] pth files not loaded at startup

2007-11-13 Thread Giambattista Bloisi
Giambattista Bloisi added the comment: What I meant for recursively was not to scan the full directory tree, but just to scan entries that have been added to the os.path. I think that this was the original intention as http://docs.python.org/inst/search-path.html states: "Any directories added to

[issue1431] pth files not loaded at startup

2007-11-13 Thread Brett Cannon
Brett Cannon added the comment: While I am not sure how I feel about searching every entry on sys.path, I know I don't like the idea of recursing the directory tree. pth files are meant to only be at the top-level of a directory that packages and modules are checked for. -- nosy: +brett