Eventlet 0.12

2013-01-25 Thread Sergey Shepelev
Eventlet is a concurrent networking library for Python that allows you to change how you run your code, not how you write it. http://pypi.python.org/pypi/eventlet/0.12.0 This release features important bug fix of zmq bind(PUB) 100% busy CPU in idle. Thanks to Geoff Salmon. Also: * greenio: Fix

Re: Else statement executing when it shouldnt

2013-01-25 Thread Frank Millman
On 23/01/2013 15:35, Jussi Piitulainen wrote: Thomas Boell writes: Using a keyword that has a well-understood meaning in just about every other programming language on the planet *and even in English*, redefining it to mean something completely different, and then making the syntax look like

Re: XML validation / exception.

2013-01-25 Thread dieter
Andrew Robinson andr...@r3dsolutions.com writes: On xml.etree, When I scan in a handwritten XML file, and there are mismatched tags -- it will throw an exception. and the exception will contain a line number of the closing tag which does not have a mate of the same kind. Is there a way to

Re: The best, friendly and easy use Python Editor.

2013-01-25 Thread Mark Lawrence
On 24/01/2013 19:34, Leonard, Arah wrote: It's just a text file after all. True indeed, let's not worry about trivial issues like indentation, mixing tabs and spaces or whatever. Notepad anybody? :) -- Cheers. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: The best, friendly and easy use Python Editor.

2013-01-25 Thread Kirill Pekarov
I think PyCharm is ideal for you. http://www.jetbrains.com/pycharm/ +1 for PyCharm. I used many editors, and PyCharm (IDEA) is just perfect. -- http://mail.python.org/mailman/listinfo/python-list

How to debug pyd File in Vs???

2013-01-25 Thread Junze Liu
Recently, I build a hybrid system with C++ and python. First,I encapsulate a class(I can't guarantee the robustness of this class ) with boost.python which can implement some functions that can not be implemented by C++, I get a .pyd File in result. Second,I embed a python

Re: How to debug pyd File in Vs???

2013-01-25 Thread Neil Hodgson
Junze Liu: Third, use the embed interpreter to execute a .py File.The .py File include the module that in .pyd File I created. Here, the problem comes out! When I start my main project. I can only debug the problems in my main project, when my main project use the python

create object base on text file

2013-01-25 Thread moonhkt
Hi All Python 2.6.x on AIX Data file PrinterA print Production batch1 xx print Production batch2 xx print Production batch3 xxx PrinterB print

Re: create object base on text file

2013-01-25 Thread Dave Angel
On 01/25/2013 07:06 AM, moonhkt wrote: Hi All Python 2.6.x on AIX Data file PrinterA print Production batch1 xx print Production batch2 xx print Production batch3

Re: monolithic apps

2013-01-25 Thread tamnt54
..snipped... 2) Manipulate multiple gui apps while having the same UI as though there was just one main window, and other windows all belong to it. Multiple GUI processes, but some central control to change the user experience into resembling a single GUI app. ...snipped You say this

Re: using split for a string : error

2013-01-25 Thread Neil Cerutti
On 2013-01-25, Oscar Benjamin oscar.j.benja...@gmail.com wrote: On 24 January 2013 11:35, Chris Angelico ros...@gmail.com wrote: It's usually fine to have int() complain about any non-numerics in the string, but I must confess, I do sometimes yearn for atoi() semantics: atoi(123asd) == 123,

Re: monolithic apps

2013-01-25 Thread tamnt54
Glue not just python but whatever is needed to communicate back and forth. lots of data, but whatever could be glue in python of course. The C++ glue and functions would be controlled as python data and communicated between different modules. todd. --

Re: The best, friendly and easy use Python Editor.

2013-01-25 Thread Ritchie Flick
You could try ninja-ide or Sublime Text 2. This message was send from my phone Flick Ritchie On 25 Jan 2013 10:45, Kirill Pekarov kpeka...@gmail.com wrote: I think PyCharm is ideal for you. http://www.jetbrains.com/pycharm/ +1 for PyCharm. I

Re: The best, friendly and easy use Python Editor.

2013-01-25 Thread Miki Tebeka
On Thursday, January 24, 2013 2:34:45 AM UTC-8, mik...@gmail.com wrote: On Thursday, January 24, 2013 9:43:31 AM UTC, Hazard Seventyfour wrote: for all senior can you suggest me the best, friendly and easy use with nice GUI editor for me, and have many a good features such as auto

Re: using split for a string : error

2013-01-25 Thread Hans Mulder
On 25/01/13 15:04:02, Neil Cerutti wrote: On 2013-01-25, Oscar Benjamin oscar.j.benja...@gmail.com wrote: On 24 January 2013 11:35, Chris Angelico ros...@gmail.com wrote: It's usually fine to have int() complain about any non-numerics in the string, but I must confess, I do sometimes yearn

Re: using split for a string : error

2013-01-25 Thread Joel Goldstick
Don't forget to look at csv reader. http://docs.python.org/2/library/csv.html On Fri, Jan 25, 2013 at 9:31 AM, Hans Mulder han...@xs4all.nl wrote: On 25/01/13 15:04:02, Neil Cerutti wrote: On 2013-01-25, Oscar Benjamin oscar.j.benja...@gmail.com wrote: On 24 January 2013 11:35, Chris

Re: using split for a string : error

2013-01-25 Thread Neil Cerutti
On 2013-01-25, Hans Mulder han...@xs4all.nl wrote: Right. atoi is no good even in C. You get much better control using the sprintf family. I think you meant sscanf. Yes, thanks for knocking that huge chunk of rust off of me. ;) -- Neil Cerutti --

Re: create object base on text file

2013-01-25 Thread cxleung
On Friday, January 25, 2013 9:04:31 PM UTC+8, Dave Angel wrote: On 01/25/2013 07:06 AM, moonhkt wrote: Hi All Python 2.6.x on AIX Data file PrinterA print Production batch1 xx print Production batch2

Re: mysql solution

2013-01-25 Thread Ferrous Cranus
Τη Πέμπτη, 24 Ιανουαρίου 2013 10:43:59 μ.μ. UTC+2, ο χρήστης Dennis Lee Bieber έγραψε: On Thu, 24 Jan 2013 03:04:46 -0800 (PST), Ferrous Cranus nikos.gr...@gmail.com declaimed the following in gmane.comp.python.general: # insert new page record in table counters or update it if

Re: Need Pattern For Logging Into A Website

2013-01-25 Thread Steve Petrie
On Thursday, January 24, 2013 8:29:51 PM UTC-5, Tim Daneliuk wrote: I need to write a Python script to do the following: - Connect to a URL and accept any certificate - self-signed or authoritative - Provide login name/password credentials - Fill in some presented fields

Re: The best, friendly and easy use Python Editor.

2013-01-25 Thread Wolfgang Keller
for all senior can you suggest me the best, friendly and easy use with nice GUI editor for me, and have many a good features such as auto complete/auto correct. Depends on what you are used to. If you're used to bare-bones editors such as emacs, vim etc, they can be used for Python. If

Re: Need Pattern For Logging Into A Website

2013-01-25 Thread Tim Daneliuk
On 01/25/2013 10:01 AM, Steve Petrie wrote: On Thursday, January 24, 2013 8:29:51 PM UTC-5, Tim Daneliuk wrote: I need to write a Python script to do the following: - Connect to a URL and accept any certificate - self-signed or authoritative - Provide login name/password credentials

Python GUI able to display a spatial image

2013-01-25 Thread Alex
Hello, does python have capabilities to display a spatial image and read the coordinates from it? If so, what modules or extension do I need to achieve that? I'll appreciate any help. Thanks, Alex -- http://mail.python.org/mailman/listinfo/python-list

RE: The best, friendly and easy use Python Editor.

2013-01-25 Thread Leonard, Arah
It's just a text file after all. True indeed, let's not worry about trivial issues like indentation, mixing tabs and spaces or whatever. Notepad anybody? :) Hey, I didn't say Notepad was the *best* tool for the job, just that Python scripts are merely text files. Though, that said, I

Re: The best, friendly and easy use Python Editor.

2013-01-25 Thread Chris Angelico
On Sat, Jan 26, 2013 at 4:35 AM, Leonard, Arah arah.leon...@bruker-axs.com wrote: It's just a text file after all. True indeed, let's not worry about trivial issues like indentation, mixing tabs and spaces or whatever. Notepad anybody? :) Hey, I didn't say Notepad was the *best* tool

finding abc's

2013-01-25 Thread lars van gemerden
Hi all, i was writing a function to determine the common base class of a number classes: def common_base(classes): if not len(classes): return None common = set(classes.pop().mro()) for cls in classes: common.intersection_update(cls.mro()) while len(common) 1:

Re: The best, friendly and easy use Python Editor.

2013-01-25 Thread Michael Torrie
On 01/24/2013 02:14 PM, Tetsuya wrote: Vim has everything, you just need a bunch of plugins. I code mainly in python and django, and I use these plugins (among others): powerline (status bar indicating git branch, etc..) syntastic (support for pep8, flake8, pyflakes, etc..) ctrlp (fuzzy

Re: The best, friendly and easy use Python Editor.

2013-01-25 Thread Neil Cerutti
On 2013-01-25, Leonard, Arah arah.leon...@bruker-axs.com wrote: Though, that said, I have used Notepad and Wordpad any number of times in the past to edit Python files, all without bringing the universe to an untimely end. Even used DOS Edit once. You use what you have at the time. A good

Re: The best, friendly and easy use Python Editor.

2013-01-25 Thread Dave Angel
On 01/25/2013 12:54 PM, Neil Cerutti wrote: On 2013-01-25, Leonard, Arah arah.leon...@bruker-axs.com wrote: Though, that said, I have used Notepad and Wordpad any number of times in the past to edit Python files, all without bringing the universe to an untimely end. Even used DOS Edit once.

Re: finding abc's

2013-01-25 Thread Ian Kelly
On Fri, Jan 25, 2013 at 10:40 AM, lars van gemerden l...@rational-it.com wrote: Hi all, i was writing a function to determine the common base class of a number classes: [...] and ran common_base(int, float), hoping to get numbers.Number. this did not work because abstract base classes

Re: finding abc's

2013-01-25 Thread Peter Otten
lars van gemerden wrote: Hi all, i was writing a function to determine the common base class of a number classes: def common_base(classes): if not len(classes): return None common = set(classes.pop().mro()) for cls in classes:

Re: Need Pattern For Logging Into A Website

2013-01-25 Thread Michael Torrie
On 01/25/2013 09:18 AM, Tim Daneliuk wrote: On 01/25/2013 10:01 AM, Steve Petrie wrote: On Thursday, January 24, 2013 8:29:51 PM UTC-5, Tim Daneliuk wrote: The mechanize module (http://wwwsearch.sourceforge.net/mechanize/) might be a place to start. I've done something similar with code like

Re: finding abc's

2013-01-25 Thread lars van gemerden
On Friday, January 25, 2013 8:04:32 PM UTC+1, Ian wrote: On Fri, Jan 25, 2013 at 10:40 AM, lars van gemerden l...@rational-it.com wrote: Hi all, i was writing a function to determine the common base class of a number classes: [...] and ran common_base(int, float),

Re: finding abc's

2013-01-25 Thread lars van gemerden
On Friday, January 25, 2013 8:08:18 PM UTC+1, Peter Otten wrote: lars van gemerden wrote: Hi all, i was writing a function to determine the common base class of a number classes: def common_base(classes): if not len(classes): return None

Re: Changing the font size of anOptionMenu widget

2013-01-25 Thread Angel
Den fredagen den 25:e januari 2013 kl. 06:57:00 UTC+1 skrev Rick Johnson: menu = optMenu.nametowidget(optMenu.menuname) That was what I was missing, the '.nametowidget'. It worked like a charm: o1=Tkinter.OptionMenu(t,v3, €, $) o1.config(font=self.font)

Re: The best, friendly and easy use Python Editor.

2013-01-25 Thread Tetsuya
On 01/25/2013 06:47 PM, Michael Torrie wrote: On 01/24/2013 02:14 PM, Tetsuya wrote: Vim has everything, you just need a bunch of plugins. [...] jedi (*awesome* python smart autocompletion) [...] supertab (autocomplete everything with TAB, smartly depending on language and context).

Retrieving an object from a set

2013-01-25 Thread Arnaud Delobelle
Dear Pythoneers, I've got a seemingly simple problem, but for which I cannot find a simple solution. I have a set of objects (say S) containing an object which is equal to a given object (say x). So x in S is true. So there is an object y in S which is equal to x. My problem is how to

Re: Retrieving an object from a set

2013-01-25 Thread Ian Kelly
On Fri, Jan 25, 2013 at 4:14 PM, Arnaud Delobelle arno...@gmail.com wrote: Dear Pythoneers, I've got a seemingly simple problem, but for which I cannot find a simple solution. I have a set of objects (say S) containing an object which is equal to a given object (say x). So x in S is

Re: Retrieving an object from a set

2013-01-25 Thread Ian Kelly
On Fri, Jan 25, 2013 at 4:30 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Fri, Jan 25, 2013 at 4:14 PM, Arnaud Delobelle arno...@gmail.com wrote: Dear Pythoneers, I've got a seemingly simple problem, but for which I cannot find a simple solution. I have a set of objects (say S) containing

Re: Retrieving an object from a set

2013-01-25 Thread MRAB
On 2013-01-25 23:14, Arnaud Delobelle wrote: Dear Pythoneers, I've got a seemingly simple problem, but for which I cannot find a simple solution. I have a set of objects (say S) containing an object which is equal to a given object (say x). So x in S is true. So there is an object y in

Re: Retrieving an object from a set

2013-01-25 Thread Ethan Furman
On 01/25/2013 03:14 PM, Arnaud Delobelle wrote: I've got a seemingly simple problem, but for which I cannot find a simple solution. I have a set of objects (say S) containing an object which is equal to a given object (say x). So x in S is true. So there is an object y in S which is

Re: Retrieving an object from a set

2013-01-25 Thread Dave Angel
On 01/25/2013 06:14 PM, Arnaud Delobelle wrote: Dear Pythoneers, I've got a seemingly simple problem, but for which I cannot find a simple solution. I have a set of objects (say S) containing an object which is equal to a given object (say x). So x in S is true. So there is an object y

Re: Need Pattern For Logging Into A Website

2013-01-25 Thread Tim Daneliuk
On 01/25/2013 01:18 PM, Michael Torrie wrote: On 01/25/2013 09:18 AM, Tim Daneliuk wrote: On 01/25/2013 10:01 AM, Steve Petrie wrote: On Thursday, January 24, 2013 8:29:51 PM UTC-5, Tim Daneliuk wrote: The mechanize module (http://wwwsearch.sourceforge.net/mechanize/) might be a place to

Re: Retrieving an object from a set

2013-01-25 Thread Ian Kelly
On Fri, Jan 25, 2013 at 4:45 PM, MRAB pyt...@mrabarnett.plus.com wrote: You could first limit the search to only those which it could be: S set([y]) A search would be: f = [m for m in S set([y]) if m is y][0] f is y True But in practice he won't have y, only x. So that would have

Re: finding abc's

2013-01-25 Thread lars van gemerden
for future reference, i decided to go with 2 functions: def common_bases(classes): if not len(classes): return None common = set(classes.pop().mro()) for cls in classes: common.intersection_update(cls.mro()) #all subclasses in common return [cls for cls in

Re: Retrieving an object from a set

2013-01-25 Thread MRAB
On 2013-01-26 00:26, Ian Kelly wrote: On Fri, Jan 25, 2013 at 4:45 PM, MRAB pyt...@mrabarnett.plus.com wrote: You could first limit the search to only those which it could be: S set([y]) A search would be: f = [m for m in S set([y]) if m is y][0] f is y True But in practice he

Toontown

2013-01-25 Thread devonfelix79
Hi i am working on tryin to import texture into Toontown. It involves PyDatagrams, Billboard 3d textures and the tt server if anyone could help please post below or aim me at: gamerboy1...@yahoo.com :) Thanks. ps: For those of you that do not know toontown runs on python coding. --

doctests/unittest problem with exception

2013-01-25 Thread Paul
Hello. I converted doctests into DocTestSuite() to use with unittest. And try it under Python 3. And, sure, I get errors with unmatched exceptions details (mismatched name of exception class: a.b.c.MyError instead of MyError). So, I have 2 questions: 1) how to turn on option

Fonts Tinker

2013-01-25 Thread Angel
I am changing the default font for a Tkinter application: class FuelControl(Tkinter.Frame): def __init__(self,master): self.version='0.02' self.font=tkFont.Font(family=Helvetica,size=18) print self.font.actual() . . . and everything looks ok: {'family': 'Nimbus Sans

Re: Fonts Tinker

2013-01-25 Thread Angel
Dammm it should be Tkinter for subject..:D -- http://mail.python.org/mailman/listinfo/python-list

Re: Fonts Tinker

2013-01-25 Thread Paul
class FontSpec: Wrapper for something like 'Arial 10 bold #red' tkf = None # Tk Font spec = # specification tkspec = # specification for Tk family = None size = 0 color = black weight = normal slant = roman underline = 0 overstrike = 0

Re: Retrieving an object from a set

2013-01-25 Thread Steven D'Aprano
Arnaud Delobelle wrote: Dear Pythoneers, I've got a seemingly simple problem, but for which I cannot find a simple solution. I have a set of objects (say S) containing an object which is equal to a given object (say x). So x in S is true. So there is an object y in S which is

Re: Need Pattern For Logging Into A Website

2013-01-25 Thread Michael Torrie
On 01/25/2013 05:15 PM, Tim Daneliuk wrote: Does it handle self-signed SSL certs? No idea. you'd have to try it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Retrieving an object from a set

2013-01-25 Thread Vito De Tullio
MRAB wrote: It turns out that both S {x} and {x} S return {x}, not {y}. curious. $ python Python 2.7.3 (default, Jul 3 2012, 19:58:39) [GCC 4.7.1] on linux2 Type help, copyright, credits or license for more information. x = (1,2,3) y = (1,2,3) s = set([y]) (s set([x])).pop() is y

[issue16957] shutil.which() shouldn't look in working directory on unix-y systems

2013-01-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 99db73ce8374 by Serhiy Storchaka in branch '3.3': Fix pathext test for shutil.which() which was http://hg.python.org/cpython/rev/99db73ce8374 New changeset ab0ff935126c by Serhiy Storchaka in branch 'default': Fix pathext test for shutil.which()

[issue16335] Integer overflow in unicode-escape decoder

2013-01-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc21f8e83062 by Serhiy Storchaka in branch '2.7': Don't run the test for issue #16335 when -M is not specified. http://hg.python.org/cpython/rev/fc21f8e83062 New changeset e3d1b68d34e3 by Serhiy Storchaka in branch '3.2': Increase the memory limit

[issue16335] Integer overflow in unicode-escape decoder

2013-01-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Bigmem test in 2.7 ran even if -M option is not specified and this causes the memory error. But memuse parameter should be increased (I tested with smaller sizes and found that 1 + 4 // len(u'\U0001') is not enough, but 2 + 4 // len(u'\U0001') is

[issue16335] Integer overflow in unicode-escape decoder

2013-01-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Bigmem test in 2.7 ran even if -M option is not specified and this causes the memory error. Ah, yes, that's because you should have used `size` instead of `_testcapi.UINT_MAX` inside the test. -- ___ Python

[issue16335] Integer overflow in unicode-escape decoder

2013-01-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, yes, that's because you should have used `size` instead of `_testcapi.UINT_MAX` inside the test. This test has sense only if size % (_testcapi.UINT_MAX + 1) == 0. -- ___ Python tracker rep...@bugs.python.org

[issue16335] Integer overflow in unicode-escape decoder

2013-01-25 Thread Stefan Krah
Stefan Krah added the comment: The test is fixed here, thanks. The limits appear to be different in 2.7 and 3.4: In 2.7 the bigmem tests are executed with -M x 16G, in 3.4 with -M x = 12G. I don't know if that's deliberate, just mentioning it. --

[issue17020] random.random() generating values = 1.0

2013-01-25 Thread Stefan Krah
Stefan Krah added the comment: It is in the combination with jumpahead(), getstate(), setstate() that you'll experience random() to produce values = 1.0 Let me reiterate what David said: Can you post a self-contained program that exhibits the issue? -- nosy: +skrah

[issue16335] Integer overflow in unicode-escape decoder

2013-01-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Due to PEP 393 Python 3.3+ requires less memory for temporary output buffer. As for difference between and =, the meaning of -M parameter a little differs in 2.7 and 3.x -- in 2.7 some overhead (5MiB) counted up. --

[issue16686] audioop overflow issues

2013-01-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can anyone look at the patch? I want fix this issue before 2.7.4 RC released. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16686 ___

[issue17028] launcher

2013-01-25 Thread Thomas Heller
New submission from Thomas Heller: The python launcher does not parse the shebang if arguments for the Python interpreter are given on the command line. For example: py.exe test.py # uses shebang line py.exe -u test.py # does NOT use shebang line The attached patch fixes this. --

[issue16968] Fix test discovery for test_concurrent_futures.py

2013-01-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: I looked into this a bit. It seems like this is because with the patch, the call to loader.loadTestsFromModule(the_module) inside regrtest comes before the try-finally: http://hg.python.org/cpython/file/fcdb35b114ab/Lib/test/regrtest.py#l1277 whereas with

[issue16968] Fix test discovery for test_concurrent_futures.py

2013-01-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: I confirmed the above by changing regrtest as follows in the patch (moving the decorator from load_tests()), and trying both placements of the loadTestsFromModule() line. One gives the warning and one does not: if test_runner is None: loader =

[issue13454] crash when deleting one pair from tee()

2013-01-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7e14a1af609 by Serhiy Storchaka in branch '3.2': Issue #13454: Fix a crash when deleting an iterator created by itertools.tee() http://hg.python.org/cpython/rev/f7e14a1af609 New changeset eff2a7346243 by Serhiy Storchaka in branch '3.3': Issue

[issue13454] crash when deleting one pair from tee()

2013-01-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13454

[issue16335] Integer overflow in unicode-escape decoder

2013-01-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Serhiy Storchaka added the comment: Ah, yes, that's because you should have used `size` instead of `_testcapi.UINT_MAX` inside the test. This test has sense only if size % (_testcapi.UINT_MAX + 1) == 0. Why so? Does it fail otherwise? --

[issue16335] Integer overflow in unicode-escape decoder

2013-01-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The test passed in any case, but for different size it doesn't check that the bug is fixed. Due to the bug bytes b'\\N{SPACE...xxx'}' decoded as b'\\N{SPACE'}' if the number of x-es divisible by (UINT_MAX + 1). In this case unicode-escape

[issue17029] h2py.py: search the multiarch include dir if it does exist

2013-01-25 Thread Matthias Klose
New submission from Matthias Klose: On MultiArch systems, header files are split into /usr/include and /usr/include/multiarch-tuple. Make sure that h2py finds all headers. Currently the build of IN.py is broken, when running on such a system. -- components: Build files: ma-h2py.diff

[issue17029] h2py.py: search the multiarch include dir if it does exist

2013-01-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5981425cc48e by doko in branch '2.7': - Issue #17029: Let h2py search the multiarch system include directory. http://hg.python.org/cpython/rev/5981425cc48e New changeset 039e17133391 by doko in branch '3.2': - Issue #17029: Let h2py search the

[issue10156] Initialization of globals in unicodeobject.c

2013-01-25 Thread Stefan Krah
Stefan Krah added the comment: Since Rietveld didn't mail me this time: I left some comments on the 2.7 patch. -- versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10156

[issue17030] strange import visibility

2013-01-25 Thread Stephan
New submission from Stephan: $ cat a.py import dbus import b dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) print Hello, World. $ cat b.py import dbus.mainloop.glib $ python a.py Hello, World. $ If I remove the “import b” line, the output is: $ python a.py Traceback (most recent call

[issue15484] CROSS: use _PYTHON_PROJECT_BASE in distutils sysconfig

2013-01-25 Thread Matthias Klose
Matthias Klose added the comment: 2-CROSS-use-_PYTHON_PROJECT_BASE-in-distutils-sysconfig.patch This looks ok to me, just factoring out some code and setting the project base. Even if distutils is frozen, I'll apply this one, based on Eric's comment in

[issue17030] strange import visibility

2013-01-25 Thread R. David Murray
R. David Murray added the comment: I agree that this is not immediately intuitive. What you need to know is that modules are part of the global state. When b imports dbus.mainloop.glib, it affects the global state of the module dbus, causing mainloop.glib to be defined when 'a' references

[issue15484] CROSS: use _PYTHON_PROJECT_BASE in distutils sysconfig

2013-01-25 Thread Matthias Klose
Matthias Klose added the comment: and adding the pybuilddir to PYTHONPATH, so that _sysconfigdata.py is found if it does exist. $(shell test -f pybuilddir.txt echo $(abs_builddir)/`cat pybuilddir.txt`:) -- ___ Python tracker rep...@bugs.python.org

[issue15484] CROSS: use _PYTHON_PROJECT_BASE in distutils sysconfig

2013-01-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset b2e7c85399f5 by doko in branch '3.3': - Issue #15484: Fix _PYTHON_PROJECT_BASE for srcdir != builddir builds; http://hg.python.org/cpython/rev/b2e7c85399f5 New changeset 172fec65c882 by doko in branch 'default': - Issue #15484: Fix

[issue15484] CROSS: use _PYTHON_PROJECT_BASE in distutils sysconfig

2013-01-25 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15484 ___ ___ Python-bugs-list

[issue10156] Initialization of globals in unicodeobject.c

2013-01-25 Thread Stefan Krah
Stefan Krah added the comment: The 2.7 comments also apply to the 3.2 patch. Otherwise the 3.2 patch (without the _sre changes :) looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10156

[issue16292] Cross compilation fixes (general)

2013-01-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c97d2d464ad by doko in branch '3.3': - Issue #16292: Improve a comment for cross building in configure.ac http://hg.python.org/cpython/rev/4c97d2d464ad New changeset 4feff8c8250b by doko in branch 'default': - Issue #16292: Improve a comment for

[issue16292] Cross compilation fixes (general)

2013-01-25 Thread Matthias Klose
Matthias Klose added the comment: updated the comment, the fixes for the duplicate issues are checked in. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16292 ___

[issue17029] h2py.py: search the multiarch include dir if it does exist

2013-01-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17029 ___ ___ Python-bugs-list mailing

[issue17030] strange import visibility

2013-01-25 Thread Stephan
Stephan added the comment: Thanks! I was not aware of this yet. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17030 ___ ___ Python-bugs-list

[issue3718] environment variable MACHDEP and python build system

2013-01-25 Thread Matthias Klose
Matthias Klose added the comment: the change to the configure script looks ok. however you could change the README too. It looks like the changes to the Makefile.pre.in are already applied. -- nosy: +doko ___ Python tracker rep...@bugs.python.org

[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf

2013-01-25 Thread Matthias Klose
Matthias Klose added the comment: in 3.3 and later, the test defaults to no when cross-building. If gcc is used for the cross build, then a compile test is used. it is usually needed to provide some values in a CONFIG_SITE file. See autoconf for the details. closing the issue. --

[issue15483] CROSS: initialise include and library paths in setup.py

2013-01-25 Thread Matthias Klose
Matthias Klose added the comment: I don't think this one is still necessary. can it be closed? -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15483 ___

[issue17031] fix running regen in cross builds

2013-01-25 Thread Matthias Klose
New submission from Matthias Klose: currently regen calls the python interpreter for the host, not the build machine. You can't directly use BUILD_FOR_PYTHON, because this one uses ./python explicitly, so use BUILDPYTHON instead. I'd like to see this for 3.3 and the trunk. --

[issue9290] IDLE and Command line present different behavior for sys.stdin

2013-01-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset def4cd7e0a9f by Serhiy Storchaka in branch '2.7': Issue #9290: In IDLE the sys.std* streams now implement io.TextIOBase http://hg.python.org/cpython/rev/def4cd7e0a9f New changeset 0d26f3aa7a8f by Serhiy Storchaka in branch '3.2': Issue #9290: In

[issue16224] tokenize.untokenize() misbehaves when moved to compatiblity mode

2013-01-25 Thread Thomas Kluyver
Thomas Kluyver added the comment: I think this is a duplicate of #8478. -- nosy: +takluyver ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16224 ___

[issue8478] tokenize.untokenize first token missing failure case

2013-01-25 Thread Thomas Kluyver
Thomas Kluyver added the comment: #16224 appears to be a duplicate. There seem to be several quite major issues with untokenize - see also #12691 - with patches made to fix them. Is there anything I can do to help push these forwards? -- ___

[issue3754] cross-compilation support for python build

2013-01-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 11a18263ceb7 by doko in branch '2.7': - Issue #3754: fix typo in pthread AC_CACHE_VAL. http://hg.python.org/cpython/rev/11a18263ceb7 New changeset e28b30e6eee6 by doko in branch '3.2': - Issue #3754: fix typo in pthread AC_CACHE_VAL.

[issue17032] Misleading error message: global name 'X' is not defined

2013-01-25 Thread Ram Rachum
New submission from Ram Rachum: Every single time I see the error message `global name 'X' is not defined` I say to myself, ah yeah, I mistyped a variable name. But then it occurred to me, why should I have to do this mental translation from global name not defined to I mistyped a variable

[issue17032] Misleading error message: global name 'X' is not defined

2013-01-25 Thread Ezio Melotti
Ezio Melotti added the comment: Maybe we could just drop the 'global'. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17032 ___

[issue17032] Misleading error message: global name 'X' is not defined

2013-01-25 Thread Ramchandra Apte
Ramchandra Apte added the comment: +1 on Ezio's idea. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17032 ___ ___

[issue16292] Cross compilation fixes (general)

2013-01-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: - committed/rejected versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16292 ___

[issue15484] CROSS: use _PYTHON_PROJECT_BASE in distutils sysconfig

2013-01-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: - committed/rejected versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15484 ___

[issue3754] cross-compilation support for python build

2013-01-25 Thread Matthias Klose
Matthias Klose added the comment: about py3k-20121004-CROSS.tgz: - committed 0001-CROSS-fix-typo-in-thread-AC_CACHE_VAL.patch - 0002-CROSS-restore-graminit.-to-source-directory.patch is this necessary? Assuming that you have correct time stamps, this is something which usually is not

[issue3871] cross and native build of python for mingw* hosts

2013-01-25 Thread Matthias Klose
Matthias Klose added the comment: some random comments about py3k-20121004-MINGW.patch: - Modules/_ctypes/libffi_msvc/win32.S Please can you get rid of libffi_msvc and use libffi? afaics, libffi has support for mingw32. - there seem to be chunks which are unrelated to mingw, like: @@

[issue17033] RPM spec file has old config_binsuffix value

2013-01-25 Thread Taavi Burns
New submission from Taavi Burns: Looking at the Misc/RPM/python-X.X.spec files, they seem to be slightly out of date. Near the top of the file is a config_binsuffix configuration setting that is 2.6 for both the 2.7 and 3.3 branches! I suspect that it should be updated with the version and

  1   2   >