Re: Making wxPython a standard module?

2008-06-12 Thread David C. Ullrich
In article [EMAIL PROTECTED], Andrea Gavana [EMAIL PROTECTED] wrote: Hi Diez All, And on a personal note: I find it *buttugly*. Do you mind explaining why you find it *buttugly*? My guess would be that buttugly is a colloquialism meaning exquisitely lovely. I am asking just out of

Re: regex for balanced parentheses?

2008-06-12 Thread David C. Ullrich
In article [EMAIL PROTECTED], Paul McGuire [EMAIL PROTECTED] wrote: Parsing TeX is definitely not for the faint-of-heart! You might try something like QuotedString('$', escQuote='$$') in pyparsing. (I've not poked at TeX or its ilk since the mid-80's so my TeXpertise is long rusted away.)

Re: re quiz

2008-06-12 Thread David C. Ullrich
In article [EMAIL PROTECTED], Johannes Bauer [EMAIL PROTECTED] wrote: David C. Ullrich schrieb: -- care to tell us what a certain re.sub is, and false in what way? Read the OP. Well, aren't you funny. Maybe you should have referenced the other thread so one can find the OP?

Re: Making wxPython a standard module?

2008-06-12 Thread John Salerno
Andrea Gavana [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Whether the wxPython style is Pythonic or not (whatever Pythonic means), this is a one-degree-above-insignificant issue for me. What I care is the eye pleasing look of my apps and how easy it is to code with a GUI

Re: Simple and safe evaluator

2008-06-12 Thread bvdp
Matimus wrote: On Jun 11, 9:16 pm, George Sakkis [EMAIL PROTECTED] wrote: On Jun 11, 8:15 pm, bvdp [EMAIL PROTECTED] wrote: Matimus wrote: The solution I posted should work and is safe. It may not seem very readable, but it is using Pythons internal parser to parse the passed in string

Re: get keys with the same values

2008-06-12 Thread David C. Ullrich
In article [EMAIL PROTECTED], Nader [EMAIL PROTECTED] wrote: On Jun 12, 1:41 pm, David C. Ullrich [EMAIL PROTECTED] wrote: On Thu, 12 Jun 2008 03:58:53 -0700 (PDT), Nader [EMAIL PROTECTED] wrote: Hello, I have a dictionary and will get all keys which have the same values. d =

Re: get keys with the same values

2008-06-12 Thread David C. Ullrich
In article [EMAIL PROTECTED], Paul McGuire [EMAIL PROTECTED] wrote: On Jun 12, 6:41 am, David C. Ullrich [EMAIL PROTECTED] wrote: On Thu, 12 Jun 2008 03:58:53 -0700 (PDT), Nader [EMAIL PROTECTED] wrote: Hello, I have a dictionary and will get all keys which have the same values.

howto split string with both comma and semicolon delimiters

2008-06-12 Thread dmitrey
hi all, howto split string with both comma and semicolon delimiters? i.e. (for example) get ['a','b','c'] from string a,b;c I have tried s.split(',;') but it don't work Thx, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: Counting things fast - was Re: Summing a 2D list

2008-06-12 Thread Paddy
On Jun 12, 4:14 pm, Gerhard Häring [EMAIL PROTECTED] wrote: Aidan wrote: does this work for you? users = [1,1,1,2,2,3,4,4,4] score = [0,1,5,3,1,2,3,3,2] d = dict() for u,s in zip(users,score): if d.has_key(u): d[u] += s else: d[u] = s for key in d.keys():

Re: howto split string with both comma and semicolon delimiters

2008-06-12 Thread Gary Herron
dmitrey wrote: hi all, howto split string with both comma and semicolon delimiters? i.e. (for example) get ['a','b','c'] from string a,b;c I have tried s.split(',;') but it don't work Thx, D. -- http://mail.python.org/mailman/listinfo/python-list The regular expression module has a split

Re: howto split string with both comma and semicolon delimiters

2008-06-12 Thread Daniel Fetchinson
howto split string with both comma and semicolon delimiters? i.e. (for example) get ['a','b','c'] from string a,b;c I have tried s.split(',;') but it don't work A very pedestrian solution would be: def multisplit( s, seps ): words = [ ] word = '' for char in s: if char

cPickle asymptotic performance?

2008-06-12 Thread Eric Jonas
Hello, I've done some benchmarking while attempting to serialize my (large) graph data structure with cPickle; I'm seeing superlinear performance (plotting it seems to suggest n^2 where n is the number of nodes of my graph), in the duration of the pickle.dump calls and I can't quite figure out

Re: Exception : Unknown Run-Time error : 210

2008-06-12 Thread Sa�a Bistrovi�
Sa¹a Bistroviæ [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sa¹a Bistroviæ Antuna Mihanviæa 13 4 Èakovec Croatia [EMAIL PROTECTED] FPC: Exception : Unknown Run-Time error : 210 Hi, I'm Sa¹a from Croatia. And I have : Windows XP PRO SP3. Pentium II MMX 400MHz. 256

Charset (hopefully for the last time I ask)

2008-06-12 Thread Gandalf
now I understand my problem better so their is a good chance you manage to help me. I have a SQlite database full with ANSI Hebrew text , and program that uses WXpython Now, I use a- 'wx.TextCtrl' item to receive input from the user, and when I try to search the database he don't understand this

Re: cPickle asymptotic performance?

2008-06-12 Thread Hrvoje Niksic
Eric Jonas [EMAIL PROTECTED] writes: I've done some benchmarking while attempting to serialize my (large) graph data structure with cPickle; I'm seeing superlinear performance (plotting it seems to suggest n^2 where n is the number of nodes of my graph), in the duration of the pickle.dump

Mapping None. Why?

2008-06-12 Thread Paddy
Iam wondering why the peculiar behavior of map when the function in given as None: Help on built-in function map in module __builtin__: map(...) map(function, sequence[, sequence, ...]) - list Return a list of the results of applying the function to the items of the argument

Re: howto split string with both comma and semicolon delimiters

2008-06-12 Thread bvdp
dmitrey wrote: hi all, howto split string with both comma and semicolon delimiters? i.e. (for example) get ['a','b','c'] from string a,b;c I have tried s.split(',;') but it don't work Thx, D. Howabout: s = s.replace(;, ,) s = s.split(,) --

Re: Simple and safe evaluator

2008-06-12 Thread George Sakkis
On Jun 12, 1:51 pm, bvdp [EMAIL PROTECTED] wrote: Matimus wrote: On Jun 11, 9:16 pm, George Sakkis [EMAIL PROTECTED] wrote: On Jun 11, 8:15 pm, bvdp [EMAIL PROTECTED] wrote: Matimus wrote: The solution I posted should work and is safe. It may not seem very readable, but it is using

Re: Web Crawler - Python or Perl?

2008-06-12 Thread Chuck Rhode
On Mon, 09 Jun 2008 10:48:03 -0700, disappearedng wrote: I know Python but not Perl, and I am interested in knowing which of these two are a better choice. I'm partial to *Python*, but, the last time I looked, *urllib2* didn't provide a time-out mechanism that worked under all circumstances.

Re: cPickle asymptotic performance?

2008-06-12 Thread Calvin Spealman
If you are getting to the point where your data is large enough to really care about the speed of cPickle, then maybe its time you moved past pickles for your storage format? 2.5 includes sqlite, so you could persist them in a nice, indexed table or something. Just a suggestion. On Jun

Re: get keys with the same values

2008-06-12 Thread Nick Craig-Wood
Paul McGuire [EMAIL PROTECTED] wrote: Instead of all that try/except noise, just use the new defaultdict: from collections import defaultdict d = {'a' : 1, 'b' : 3, 'c' : 2,'d' : 3,'e' : 1,'f' : 4} dd = defaultdict(list) for key, value in d.items(): ... dd[value].append(key)

Re: Simple and safe evaluator

2008-06-12 Thread bvdp
George Sakkis wrote: You probably missed the point in the posted examples. A malicious user doesn't need to modify your program code to have access to far more than you would hope, just devise an appropriate string s and pass it to your safe eval. Oppps, I did miss the point. I was assuming

Re: Mapping None. Why?

2008-06-12 Thread Diez B. Roggisch
Paddy schrieb: Iam wondering why the peculiar behavior of map when the function in given as None: Help on built-in function map in module __builtin__: map(...) map(function, sequence[, sequence, ...]) - list Return a list of the results of applying the function to the items of the

Re: Mapping None. Why?

2008-06-12 Thread Ian Kelly
On Thu, Jun 12, 2008 at 1:05 PM, Paddy [EMAIL PROTECTED] wrote: Iam wondering why the peculiar behavior of map when the function in given as None: Because that's the way it's always been! Seriously, I don't know. I can tell you that it's going away in Python 3.0, though. Ian --

Re: Mapping None. Why?

2008-06-12 Thread Ian Kelly
On Thu, Jun 12, 2008 at 1:32 PM, Diez B. Roggisch [EMAIL PROTECTED] wrote: Because it is undefined what should happen in case of no function given at all - and because there is no identity function in python pre-defined, it could be considered sensible to make None the quivalent of that

Re: Mapping None. Why?

2008-06-12 Thread Robert Kern
Ian Kelly wrote: On Thu, Jun 12, 2008 at 1:05 PM, Paddy [EMAIL PROTECTED] wrote: Iam wondering why the peculiar behavior of map when the function in given as None: Because that's the way it's always been! Seriously, I don't know. I can tell you that it's going away in Python 3.0, though.

Re: time.clock() or Windows bug?

2008-06-12 Thread Theo v. Werkhoven
The carbonbased lifeform Tim Roberts inspired comp.lang.python with: Nick Craig-Wood [EMAIL PROTECTED] wrote: Hmmm, 10,000,000 cycles (40 ms @2.5GHz) is nowhere near the ~90,000 second jump in time.clock() output reported by the OP. I wonder if there could be a different cause? Just wild

Re: Mapping None. Why?

2008-06-12 Thread Diez B. Roggisch
Ian Kelly schrieb: On Thu, Jun 12, 2008 at 1:32 PM, Diez B. Roggisch [EMAIL PROTECTED] wrote: Because it is undefined what should happen in case of no function given at all - and because there is no identity function in python pre-defined, it could be considered sensible to make None the

ANN: eGenix pyOpenSSL Distribution 0.7.0-0.9.8h-1

2008-06-12 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.7.0-0.9.8h-1 An easy to install and use repackaged distribution of the pyOpenSSL Python

Re: Mapping None. Why?

2008-06-12 Thread Terry Reedy
Paddy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | | Iam wondering why the peculiar behavior of map when the function in | given as None: The 'peculiar behavior' is the same as zip (except for padding short iterators versus truncating long iterators. Map was added years before

Re: Mapping None. Why?

2008-06-12 Thread Robert Kern
Paddy wrote: On looking up map on Wikipedia there is no mention of this special behaviour, So my question is why? My question is why you are looking up the semantics of Python functions on Wikipedia instead of the Python documentation. I don't see any particular discussion of map() there at

Re: cPickle asymptotic performance?

2008-06-12 Thread Eric Jonas
On Thu, 2008-06-12 at 20:57 +0200, Hrvoje Niksic wrote: Eric Jonas [EMAIL PROTECTED] writes: I've done some benchmarking while attempting to serialize my (large) graph data structure with cPickle; I'm seeing superlinear performance (plotting it seems to suggest n^2 where n is the number

Python noob's simple config problem

2008-06-12 Thread kj
I'm sure this is a simple, but recurrent, problem for which I can't hit on a totally satisfactory solution. As an example, suppose that I want write a module X that performs some database access. I expect that 99.999% of the time, during the foreseeable future, the database connection

Re: Python noob's simple config problem

2008-06-12 Thread Robin Kåveland Hansen
On Thu, 12 Jun 2008 21:32:34 +, kj wrote: I'm sure this is a simple, but recurrent, problem for which I can't hit on a totally satisfactory solution. As an example, suppose that I want write a module X that performs some database access. I expect that 99.999% of the time, during the

value is in list?

2008-06-12 Thread David Hláčik
Hello , following scenario list_current = [ welcome, search, done, result] list_ldap = [ welcome, hello] result: list_toadd = [ hello] by words said , i want to check if list item from list_ldap exists in list_current if not i want to add it to list_toadd. Thanks! D. --

Re: value is in list?

2008-06-12 Thread Steven Clark
Hello , following scenario list_current = [ welcome, search, done, result] list_ldap = [ welcome, hello] result: list_toadd = [ hello] by words said , i want to check if list item from list_ldap exists in list_current if not i want to add it to list_toadd. Thanks! D. list_toadd =

Re: question about import

2008-06-12 Thread Jonathan Vanasco
On Jun 11, 1:45 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Is it cursed upon? Didn't know that. I didn't either. Until I asked some people how to do it, and was admonished for even suggesting the concept. However, __import__ only gives you the topmost module - in your case myapp. ah, i

Re: Making wxPython a standard module?

2008-06-12 Thread Martin v. Löwis
Just out of curiosity, what are the chances of this happening (sort of like what happened with sqlite)? As a starting point, the author(s) of wxPython would need to contribute it to Python (and then also give the PSF the permission to relicense it). If no such contribution is made, chances are

Re: Exception : Unknown Run-Time error : 210

2008-06-12 Thread John Machin
On Jun 13, 4:31 am, Sa¹a Bistroviæ [EMAIL PROTECTED] wrote: Sa¹a Bistroviæ [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sa¹a Bistroviæ Antuna Mihanviæa 13 4 Èakovec Croatia [EMAIL PROTECTED] FPC: Exception : Unknown Run-Time error : 210 Hi, I'm Sa¹a from

Re: value is in list?

2008-06-12 Thread Christian Heimes
David Hláčik wrote: Hello , following scenario list_current = [ welcome, search, done, result] list_ldap = [ welcome, hello] result: list_toadd = [ hello] by words said , i want to check if list item from list_ldap exists in list_current if not i want to add it to list_toadd.

Wording suggestion for documentation (Data Model)

2008-06-12 Thread Jason R. Coombs
#!python In the documentation for __del__ (under Python Language Reference/Data Model), the following warning is indicated: Warning [Caveat in 2.6]: Due to the precarious circumstances under which __del__() methods are invoked, exceptions that occur during their execution are ignored, and a

Re: howto split string with both comma and semicolon delimiters

2008-06-12 Thread MRAB
On Jun 12, 8:06 pm, bvdp [EMAIL PROTECTED] wrote: dmitrey wrote: hi all, howto split string with both comma and semicolon delimiters? i.e. (for example) get ['a','b','c'] from string a,b;c I have tried s.split(',;') but it don't work Thx, D. Howabout: s = s.replace(;, ,)

Re: Charset (hopefully for the last time I ask)

2008-06-12 Thread MRAB
On Jun 12, 8:04 pm, Gandalf [EMAIL PROTECTED] wrote: now I understand my problem better so their is a good chance you manage to help me. I have a SQlite database full with ANSI Hebrew text , and program that uses WXpython Now, I use a- 'wx.TextCtrl' item to receive input from the user, and

Re: Charset (hopefully for the last time I ask)

2008-06-12 Thread Gandalf
Yes, it is 1255 it's surprising you know that. any way this is the code I tried search=cnrl.GetValue() search= search.decode(cp1255) search=search.encode(utf8) word='' category=1 cur.execute('select * from hebrew_words where word like ?',

Re: Charset (hopefully for the last time I ask)

2008-06-12 Thread Gandalf
OK it did worked! I just should have been encoding to cp1255 search=cnrl.GetValue() search= search.encode(cp1255) cur.execute('select * from hebrew_words where word like ?', ['%'+search+'%']) Thank you! you are the best -- http://mail.python.org/mailman/listinfo/python-list

Notify of change to list

2008-06-12 Thread Alan J. Salmoni
Hello everyone, I searched through groups to find an appropriate answer to this one but could only find these which didn't meet my program's needs:

Setting Focus

2008-06-12 Thread Gandalf
You know these application like ICQ or winamp which stay at the front of the desktop as long as the user doesn't minimize it. I wont to do the same with my application in python. I still didn't manage to make pywinauto to auto set my window frame in focus reliability so I was hoping this will

Re: Notify of change to list

2008-06-12 Thread Paul Hankin
On Jun 13, 12:00 pm, Alan J. Salmoni [EMAIL PROTECTED] wrote: My question is how can my program be notified of a change to a class attribute that is a list? You can't. But you can replace lists inside your class with a list that notifies changes. Something like this: class

Re: Mapping None. Why?

2008-06-12 Thread Paddy
On Jun 12, 8:55 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: And the OP's question was about map not being conforming to the definition on wikipedia - which I don't think it's not. It is not defined what map is to do with None (or NULL or nil or... ) as argument. Diez Oh no! Sorry to give

Re: Plotting Graph Functions using Gnuplot

2008-06-12 Thread arslanburney
No help yet? -- http://mail.python.org/mailman/listinfo/python-list

Re: Mapping None. Why?

2008-06-12 Thread Paddy
On Jun 12, 9:48 pm, Robert Kern [EMAIL PROTECTED] wrote: Paddy wrote: On looking up map on Wikipedia there is no mention of this special behaviour, So my question is why? My question is why you are looking up the semantics of Python functions on Wikipedia instead of the Python

Re: Mapping None. Why?

2008-06-12 Thread Paddy
On Jun 12, 9:36 pm, Terry Reedy [EMAIL PROTECTED] wrote: Paddy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | | Iam wondering why the peculiar behavior of map when the function in | given as None: The 'peculiar behavior' is the same as zip (except for padding short iterators

How to set directory in save as combo box

2008-06-12 Thread gopal mishra
TJG, I am trying to save a file, it is working fine. But if the file is not on the foreground while setting combo box directory, changing the value in the combo box by setLookIn() appear on the foreground window. I am using following functionality to save the file. def

dynamic method question

2008-06-12 Thread Jesse Aldridge
So in the code below, I'm binding some events to a text control in wxPython. The way I've been doing it is demonstrated with the Lame_Event_Widget class. I want to factor out the repeating patterns. Cool_Event_Widget is my attempt at this. It pretty much works, but I have a feeling there's a

Re: My fight with classes :)

2008-06-12 Thread TheSaint
On 17:47, giovedì 12 giugno 2008 Bruno Desthuilliers wrote: For multiple functions, use classes. Well... Closures are poor men's objects, or so they say (or is that the other way round ?-). Well, I'd like to know what could be the reason to design a single-call class instead of a similar

Re: value is in list?

2008-06-12 Thread Paddy
On Jun 12, 11:46 pm, Steven Clark [EMAIL PROTECTED] wrote: Hello , following scenario list_current = [ welcome, search, done, result] list_ldap = [ welcome, hello] result: list_toadd = [ hello] by words said , i want to check if list item from list_ldap exists in list_current

Plotting Graphs + Bestfit lines

2008-06-12 Thread arslanburney
Hello. Ive got two functions here. Somehow the program does not go in to the second function wehn i call it. The bestfit function. Could some1 help me identify the problem. Heres the code: import Gnuplot def bestfit(uinput): if not isinstance(uinput, list): return False else:

best way to create a timer/alarm

2008-06-12 Thread Alexnb
I am wondering what is the best way to create a timer, like an alarm, once it reaches a time, it triggers an event. I have a way of doing this but it seems like it isn't good at all. If it helps at all I am using a Tkinter, but that probably doesn't mean much. The way I was doing it was using a

Re: Please recommend a blog program written using python-cgi

2008-06-12 Thread Royt
On Jun 12, 4:58 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Royt wrote: Hi, I'm a newbie to Python, but I think it won't be too hard to learn. A few days ago I registered Google App Engine, it only support Python 2.5. I want to set my blog on it soon. But it's not easy for me to finish

[issue3026] mmap broken with large files on 64bit system

2008-06-12 Thread Georg Brandl
Changes by Georg Brandl [EMAIL PROTECTED]: -- priority: - critical versions: +Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3026 ___ ___

[issue3013] disutils fails with GNU ld (GNU Binutils) 2.18.50.20080523

2008-06-12 Thread Georg Brandl
Changes by Georg Brandl [EMAIL PROTECTED]: -- resolution: - duplicate status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3013 ___ ___

[issue3086] sys.maxsize not available by using the latest Win32 build

2008-06-12 Thread Tim Golden
Tim Golden [EMAIL PROTECTED] added the comment: Giampaolo Rodola' wrote: New submission from Giampaolo Rodola' [EMAIL PROTECTED]: By using: http://www.python.org/dev/daily-msi/python-2.6.14041.msi C:\C:\python26\python Python 2.6a3 (r26a3:62864, May 9 2008, 14:16:26) [MSC v.1500 32

[issue1676] Fork/exec issues with Tk 8.5/Python 2.5.1 on OS X

2008-06-12 Thread C. E. Ball
Changes by C. E. Ball [EMAIL PROTECTED]: -- nosy: +ceball ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1676 ___ ___ Python-bugs-list mailing list

[issue2848] Remove mimetools usage from the stdlib

2008-06-12 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Wed, Jun 11, 2008 at 11:09 PM, Barry A. Warsaw [EMAIL PROTECTED] wrote: Barry A. Warsaw [EMAIL PROTECTED] added the comment: r64164 in Python 3.0. This doesn't apply cleanly to Python 2.6; could someone please back port it? Why

[issue3086] sys.maxsize not available by using the latest Win32 build

2008-06-12 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: I just checked that sys.maxsize was added May 20, so you just need a newer build. -- nosy: +gpolo status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3086

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: It passes for me on Leopard. Can you post the test running in verbose mode so we can see where it hangs? -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED]

[issue3086] sys.maxsize not available by using the latest Win32 build

2008-06-12 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- resolution: - out of date ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3086 ___ ___

[issue2848] Remove mimetools usage from the stdlib

2008-06-12 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 12, 2008, at 8:57 AM, Benjamin Peterson wrote: Benjamin Peterson [EMAIL PROTECTED] added the comment: On Wed, Jun 11, 2008 at 11:09 PM, Barry A. Warsaw [EMAIL PROTECTED] wrote: Barry

[issue3090] ARCHFLAGS parsing/concatenation in unixccompiler.py breaks when set to a string

2008-06-12 Thread Jesse Noller
New submission from Jesse Noller [EMAIL PROTECTED]: This is on osx 10.5.3, latest gcc tool chain. I have $ARCHFLAGS set to -arch i386 to prevent the OS/X gcc from building PPC code (as I don't want/need it) - if I leave this set as-is, other applications build without error, intel only. If I

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Jesse Noller
Jesse Noller [EMAIL PROTECTED] added the comment: On python-3000 trunk, _multiprocessing doesn't even compile: /Users/jesse/open_source/subversion/python- 3000/Modules/_multiprocessing/semaphore.c: In function ‘semlock_iszero’: /Users/jesse/open_source/subversion/python-

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 12, 2008, at 9:02 AM, Benjamin Peterson wrote: It passes for me on Leopard. Can you post the test running in verbose mode so we can see where it hangs? It never hangs when run

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Jesse Noller
Jesse Noller [EMAIL PROTECTED] added the comment: I did a make clean ./configure make and it started compiling for me again. Sorry for the noise. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3088 ___

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: If it's only failing during the second run of make test, typically there's some implicit dependency on something that is disturbed by running a test that's later in the suite of tests. This could be either the fault of that other test (not

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: I should add this was in the trunk (2.6). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3088 ___ ___

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Paul Melis
Paul Melis [EMAIL PROTECTED] added the comment: I think I'm having a similar lockup on fedora core 4 (smp machine). This is with the py3k branch, freshly svn updated. When running make test TESTOPTS=test_multiprocessing the first of the two test runs always succeeds in something like 10-15

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Paul Melis
Paul Melis [EMAIL PROTECTED] added the comment: After a few more runs with -v and redirecting output to a file it seems the lockup I get is in test_notify_all (test.test_multiprocessing.WithManagerTestCondition) ___ Python tracker [EMAIL PROTECTED]

[issue3091] Can't build datetime or time on py3k (r64171)

2008-06-12 Thread Skip Montanaro
New submission from Skip Montanaro [EMAIL PROTECTED]: I'm fully up-to-date on my py3k branch (r64171). After a make clean I find that I can't build either the time or datetime modules. Here are errors from gcc: building 'time' extension gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall

[issue1819] Speed hack for function calls with named parameters

2008-06-12 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: And here is a patch adding a new test in pybench as suggested by Marc-Andre Lemburg. Added file: http://bugs.python.org/file10600/pybench.patch ___ Python tracker [EMAIL PROTECTED]

[issue2917] merge pickle and cPickle in 3.0

2008-06-12 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Okay, I fixed _pickle's integers unpickling on 64bit platforms. Here is the patch. Added file: http://bugs.python.org/file10601/fix_pickle_int64.diff ___ Python tracker [EMAIL PROTECTED]

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Jesse Noller
Jesse Noller [EMAIL PROTECTED] added the comment: It's taking me longer to get to this than I planned, any help is appreciated. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3088 ___

[issue2234] cygwinccompiler.py fails for latest MinGW releases.

2008-06-12 Thread Jason Tishler
Jason Tishler [EMAIL PROTECTED] added the comment: I tested the regular expression in #3: (\d+\.\d+(\.(\d+))?([ab](\d+))?) and it worked for both '2.18.50.20080523' '1.2.3a'. Additionally, it worked for the following test cases that I tried: 2.18.50a.20080523 2.18.50a 20080523 2.18.50

[issue3066] FD leak in urllib2

2008-06-12 Thread Bohdan Vlasyuk
Bohdan Vlasyuk [EMAIL PROTECTED] added the comment: The list is not the problem. The problem is the other reference, from socket._fileobject object at 0xf7d42c34. Also note that the workaround (u.fp.recv = None) removes the second reference. This is fine (at least in CPython), because the

[issue3091] Can't build datetime or time on py3k (r64171)

2008-06-12 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Where does the strftime.c come from? It is not in the Python sources -- is this a Mac-specific thing? -- nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3091

[issue3092] Wrong unicode size detection in pybench

2008-06-12 Thread Antoine Pitrou
New submission from Antoine Pitrou [EMAIL PROTECTED]: In py3k, pybench wrongly detects UCS2 builds as UCS4. Patch attached. -- components: Demos and Tools files: pybench_ucs.patch keywords: patch messages: 68076 nosy: pitrou severity: normal status: open title: Wrong unicode size

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Jesse Noller
Jesse Noller [EMAIL PROTECTED] added the comment: I can get an intermittent (1 every 15 or so runs) lock in: test_get (__main__.WithProcessesTestQueue) ... Executed like this: ./python Lib/test/test_multiprocessing.py When I control-c it the stack looks like this: ...snip File

[issue3093] Namespace polution from multiprocessing

2008-06-12 Thread Adam Olsen
New submission from Adam Olsen [EMAIL PROTECTED]: All these in multiprocessing.h are lacking suitable py/_py/Py/_Py/PY/_PY prefixes: PyObject *mp_SetError(PyObject *Type, int num); extern PyObject *pickle_dumps; extern PyObject *pickle_loads; extern PyObject *pickle_protocol; extern PyObject

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Jesse Noller
Changes by Jesse Noller [EMAIL PROTECTED]: -- nosy: +roudkerk ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3088 ___ ___ Python-bugs-list mailing list

[issue3093] Namespace polution from multiprocessing

2008-06-12 Thread Jesse Noller
Changes by Jesse Noller [EMAIL PROTECTED]: -- nosy: +jnoller, roudkerk ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3093 ___ ___ Python-bugs-list

[issue3094] By default, HTTPSConnection should send header Host: somehost instead of Host: somehost:443

2008-06-12 Thread Steven Wong
New submission from Steven Wong [EMAIL PROTECTED]: Communicating over HTTPS at the default port of 443: import httplib conn = httplib.HTTPSConnection(my-secure-domain.com) conn.request(GET, /) res = conn.getresponse() In the current implementation, the Host header sent in the request is:

[issue3093] Namespace polution from multiprocessing

2008-06-12 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Is this really that much of an issue? multiprocessing lives in it's own directory and isn't part of the Python public API. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED]

[issue3095] multiprocessing initializes flags dict unsafely

2008-06-12 Thread Adam Olsen
New submission from Adam Olsen [EMAIL PROTECTED]: multiprocessing.c currently has code like this: temp = PyDict_New(); if (!temp) return; if (PyModule_AddObject(module, flags, temp) 0) return; PyModule_AddObject consumes the reference to

[issue3092] Wrong unicode size detection in pybench

2008-06-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: On 2008-06-12 21:50, Antoine Pitrou wrote: New submission from Antoine Pitrou [EMAIL PROTECTED]: In py3k, pybench wrongly detects UCS2 builds as UCS4. Patch attached. Why is that ? Doesn't chr(10) raise an exception in UCS2 builds

[issue3095] multiprocessing initializes flags dict unsafely

2008-06-12 Thread Jesse Noller
Changes by Jesse Noller [EMAIL PROTECTED]: -- nosy: +jnoller, roudkerk ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3095 ___ ___ Python-bugs-list

[issue2849] Remove usage of rfc822 from the stdlib

2008-06-12 Thread Humberto Diogenes
Humberto Diogenes [EMAIL PROTECTED] added the comment: [msg68060] Why does it need to be in 2.6? mimetools is still there. I guess you're right, it doesn't. So, does it make sense to backport this too? ___ Python tracker [EMAIL PROTECTED]

[issue3091] Can't build datetime or time on py3k (r64171)

2008-06-12 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Georg Georg Brandl [EMAIL PROTECTED] added the comment: Georg Where does the strftime.c come from? It is not in the Python Georg sources -- is this a Mac-specific thing? Whoops. My bad. Modified sandbox. Please reject. Skip

[issue2234] cygwinccompiler.py fails for latest MinGW releases.

2008-06-12 Thread Will Brown
Will Brown [EMAIL PROTECTED] added the comment: Maybe I have a problem with my test code... import re def test_re(out_string): result = re.search('(\d+\.\d+(\.(\d+))?([ab](\d+))?)', out_string) print '--- msg00622 ---' print result.group(1) print

[issue3091] Can't build datetime or time on py3k (r64171)

2008-06-12 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: My bad. Sorry for the noise. mods in my sandbox... -- resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3091

[issue3092] Wrong unicode size detection in pybench

2008-06-12 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Le jeudi 12 juin 2008 à 20:26 +, Marc-Andre Lemburg a écrit : Doesn't chr(10) raise an exception in UCS2 builds ? No, it returns a 2-character string. Note that sys.maxunicode is not available in Python 2.1 which is why I chose

[issue1778443] robotparser.py fixes

2008-06-12 Thread Aristotelis Mikropoulos
Aristotelis Mikropoulos [EMAIL PROTECTED] added the comment: So, finally, will this patch be applied? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1778443 ___

[issue3092] Wrong unicode size detection in pybench

2008-06-12 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: No, it returns a 2-character string. Which hopefully is the proper surrogate sequence :) -- nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3092

<    1   2   3   >