Re: [Q] How to specify options for 'setup.py install' by environment variable?

2012-06-09 Thread Ned Deily
In article , Makoto Kuwata wrote: > On Sun, Jun 10, 2012 at 11:55 AM, Ned Deily wrote: > > In article > > , > >  Makoto Kuwata wrote: > >> "setup.py install" command supports options such as --prefix, > >> --install-scripts, and so on. > >> For example: > >> > >>   $ python setup.py install --

Re: Compare 2 times

2012-06-09 Thread garabik-news-2005-05
t_texas wrote: > On Jun 6, 7:50 am, loial wrote: >> I have a requirement to test the creation time of a file with the >> current time and raise a message if the file is  more than 15 minutes >> old. >> >> Platform is Unix. >> >> I have looked at using os.path.getctime for the file creation time a

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-09 Thread rusi
On Jun 9, 10:07 pm, Dietmar Schwertberger wrote: > > And you can than go in the code editor to that function and change the > > code to do whatever you want. > > Having to go there is already more work than I would expect. > I would expect to go there e.g. by a double-click. > > This is just a min

Re: Nexus Programming Language

2012-06-09 Thread rusi
On Jun 10, 7:46 am, Adam Campbell wrote: > The Nexus programming language version 0.5.0 has been released. It is > an "object-oriented, dynamically-typed, reflective programming > language", drawing from Lua and Ruby.www.nexuslang.org What does nexus have that python doesn't? Yeah I know this kin

Re: [Q] How to specify options for 'setup.py install' by environment variable?

2012-06-09 Thread Makoto Kuwata
On Sun, Jun 10, 2012 at 11:55 AM, Ned Deily wrote: > In article > , >  Makoto Kuwata wrote: > >> Hi, >> >> "setup.py install" command supports options such as --prefix, >> --install-scripts, and so on. >> For example: >> >>   $ python setup.py install --prefix=$PWD/local --install-scripts=$PWD/bi

compiling py 2.7.3 with openssl

2012-06-09 Thread V N
RHEL 5.3 x86_64 / Python 2.7.3 compiled as shown below ==> PYTHON=Python-2.7.3 tar xjf bin/$PYTHON.tar.bz2 cd $PYTHON PYHOME=/usr/local/$PYTHON; export PYHOME LDFLAGS="-L/usr/local/lib64"; export LDFLAGS CPPFLAGS="-I/usr/local/include/ncurses -I/usr/local/include/readline

Re: [Q] How to specify options for 'setup.py install' by environment variable?

2012-06-09 Thread Ned Deily
In article , Makoto Kuwata wrote: > Hi, > > "setup.py install" command supports options such as --prefix, > --install-scripts, and so on. > For example: > > $ python setup.py install --prefix=$PWD/local --install-scripts=$PWD/bin > > Question: is it possible to specify these options by env

Nexus Programming Language

2012-06-09 Thread Adam Campbell
The Nexus programming language version 0.5.0 has been released. It is an "object-oriented, dynamically-typed, reflective programming language", drawing from Lua and Ruby. www.nexuslang.org -- http://mail.python.org/mailman/listinfo/python-list

[Q] How to specify options for 'setup.py install' by environment variable?

2012-06-09 Thread Makoto Kuwata
Hi, "setup.py install" command supports options such as --prefix, --install-scripts, and so on. For example: $ python setup.py install --prefix=$PWD/local --install-scripts=$PWD/bin Question: is it possible to specify these options by environment variable? I want to specify --prefix or --insta

Re: which one do you prefer? python with C# or java?

2012-06-09 Thread Paul Rubin
Yesterday Paid writes: > I'm planning to learn one more language with my python. > Someone recommended to do Lisp or Clojure, but I don't think it's a > good idea(do you?) Why do you want to do that? First of all, why not stick with learning one language at a time? Get familiar with one before

Re: which one do you prefer? python with C# or java?

2012-06-09 Thread Tim Johnson
* Yesterday Paid [120609 14:52]: > I'm planning to learn one more language with my python. > Someone recommended to do Lisp or Clojure, but I don't think it's a > good idea(do you?) > So, I consider C# with ironpython or Java with Jython. > It's a hard choice...I like Visual studio(because my firs

Re: which one do you prefer? python with C# or java?

2012-06-09 Thread Devin Jeanpierre
On Sat, Jun 9, 2012 at 7:04 PM, becky_lewis wrote: > Lisp and Clojure are functional languages. Sorry, pet peeve. Lisps are a class of languages that are only united by their common syntax and their use of syntax transformations (macros). Most lisps are not really functional at all, not any mores

Re: mode for file created by open

2012-06-09 Thread Cameron Simpson
On 09Jun2012 19:03, Terry Reedy wrote: | > So I would guess it wouldn't be difficult to add the creation mode argument. | | On posix system, probably not. On windows, just ignore it, unless 'root' | can be mapped to 'admin'. Oh please NO! Either implement it correctly, or raise a ValueError if

Re: which one do you prefer? python with C# or java?

2012-06-09 Thread becky_lewis
Lisp and Clojure are functional languages. Learning one of those (or a similar language) will help by providing you with a fairly different perspective on how to approach programming problems. Personally I think learning Lisp or Clojure is good advice. However, if you're really adamant about going

Re: mode for file created by open

2012-06-09 Thread Terry Reedy
On 6/9/2012 6:25 PM, Neal Becker wrote: Terry Reedy wrote: The original open builtin was a thin wrapper around old C's stdio.open. Open no longer has that constraint. After more discussion here, someone could open a tracker issue with a specific proposal. Keep in mind that 'mode' is already a p

Re: mode for file created by open

2012-06-09 Thread Cameron Simpson
On 09Jun2012 18:25, Neal Becker wrote: | I haven't seen the current code - I'd guess it just uses posix open. | So I would guess it wouldn't be difficult to add the creation mode argument. | How about call it cr_mode? What shall it contain on Windows? What shall it contain on Jython? -- Cameron

Re: mode for file created by open

2012-06-09 Thread Cameron Simpson
On 09Jun2012 07:42, Neal Becker wrote: | Cameron Simpson wrote: | Doesn't anyone else think it would be a good addition to open to specify a file | creation mode? Like posix open? Avoid all these nasty workarounds? -1 open() is cross platform. os.open() is platform specific, generally POSIX.

which one do you prefer? python with C# or java?

2012-06-09 Thread Yesterday Paid
I'm planning to learn one more language with my python. Someone recommended to do Lisp or Clojure, but I don't think it's a good idea(do you?) So, I consider C# with ironpython or Java with Jython. It's a hard choice...I like Visual studio(because my first lang is VB6 so I'm familiar with that) but

Re: mode for file created by open

2012-06-09 Thread Neal Becker
Terry Reedy wrote: > On 6/9/2012 10:08 AM, Devin Jeanpierre wrote: >> On Sat, Jun 9, 2012 at 7:42 AM, Neal Becker wrote: >>> Doesn't anyone else think it would be a good addition to open to specify a >>> file >>> creation mode? Like posix open? Avoid all these nasty workarounds? >> >> I do, alt

Re: mode for file created by open

2012-06-09 Thread Terry Reedy
On 6/9/2012 10:08 AM, Devin Jeanpierre wrote: On Sat, Jun 9, 2012 at 7:42 AM, Neal Becker wrote: Doesn't anyone else think it would be a good addition to open to specify a file creation mode? Like posix open? Avoid all these nasty workarounds? I do, although I'm hesitant, because this only

Re: Installing MySQLdb via FTP?

2012-06-09 Thread Tim Johnson
* Tim Johnson [120609 07:30]: > > > > http://mysql-python.hg.sourceforge.net/hgweb/mysql-python/MySQLdb-2.0/file/566baac88764/src > > > > It definitely is. The C extension part is the '_mysql' module, here it > > is /usr/lib64/python2.7/site-packages/_mysql.so. MySQLdb (of which > > _mysql is a

Re: Strange Problem with pythonw.exe

2012-06-09 Thread Terry Reedy
On 6/9/2012 10:23 AM, a...@vorsicht-bissig.de wrote: Hello subscribers, I've recently encountered a strange problem with Python for Windows. I'm using Windows 7 Pro 64 Bit and Python 3.2.3 64 Bit (also tried 32 bit). The Problem is, that pythonw.exe does not work at all! Therefore no IDLE for me

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-09 Thread Chris Angelico
On Sun, Jun 10, 2012 at 3:07 AM, Dietmar Schwertberger wrote: > None of these were such that I could propagate it as GUI development > tool for non-programmers / casual users. > Sure, some are good for designing the GUI, but at the point where > the user code is to be added, most people would be l

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-09 Thread Dietmar Schwertberger
Am 09.06.2012 17:34, schrieb CM: You can do this for wxPython with Boa Constructor easily. You can bind an event handler for a wx.EVT_BUTTON to, e.g., "Button1" with Boa and it will add this code for you to the bottom of your code: def OnButton1Button(self,evt): evt.Skip() And you can th

Re: mode for file created by open

2012-06-09 Thread Chris Angelico
On Sun, Jun 10, 2012 at 12:08 AM, Devin Jeanpierre wrote: > I do, although I'm hesitant, because this only applies when mode == > 'w', and open has a large and growing list of parameters. True, but keyword arguments don't cost much complexity. open(file, mode='r', buffering=-1, encoding=None, er

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-09 Thread Chris Angelico
On Sat, Jun 9, 2012 at 11:25 PM, Dietmar Schwertberger wrote: > ... for many purposes only simple GUIs are required > and it should be possible to create these without studying manuals > (on toolkit and GUI editor). > A typical simple GUI would e.g. be for a measurement / data aquisition > program

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-09 Thread CM
> I think that something in the style of Visual BASIC (version 6) is required > for either wxPython or PyQt/PySide (or both). > In the Visual BASIC editor you can e.g. add a GUI element > and directly go to the code editor to fill methods (e.g. an OnClick > method). You can do this for wxPython wi

Re: Installing MySQLdb via FTP?

2012-06-09 Thread Tim Johnson
* Corey Richardson [120608 11:39]: > On Fri, 8 Jun 2012 09:55:23 -0800 > Tim Johnson wrote: > > > See the thread titled "Python libraries portable?" you will note > > that Corey Richardson makes the statement that MySQLdb is a C > > extension. I accepted that statement, but upon looking a

Strange Problem with pythonw.exe

2012-06-09 Thread asa
Hello subscribers, I've recently encountered a strange problem with Python for Windows. I'm using Windows 7 Pro 64 Bit and Python 3.2.3 64 Bit (also tried 32 bit). The Problem is, that pythonw.exe does not work at all! Therefore no IDLE for me... But python.exe runs just fine. I ran Process Mon

Re: mode for file created by open

2012-06-09 Thread Devin Jeanpierre
On Sat, Jun 9, 2012 at 7:42 AM, Neal Becker wrote: > Doesn't anyone else think it would be a good addition to open to specify a > file > creation mode?  Like posix open?  Avoid all these nasty workarounds? I do, although I'm hesitant, because this only applies when mode == 'w', and open has a la

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-09 Thread Dietmar Schwertberger
Am 08.06.2012 17:11, schrieb CM: I'm curious about your point but I don't really understand it. Could you try again without using any scare-quoted words? Maybe given an example of creating a small text editor application with a GUI builder/ IDE in this Pythonic way you are hoping for. Before

Re: next alpha sequence value from var pointing to array

2012-06-09 Thread jdmorgan
Newline was the issue indeed. Thanks for you help Peter. Cheers, Derek -- http://mail.python.org/mailman/listinfo/python-list

Re: mode for file created by open

2012-06-09 Thread Neal Becker
Cameron Simpson wrote: > On 08Jun2012 14:36, Neal Becker wrote: > | If a new file is created by open ('xxx', 'w') > | > | How can I control the file permission bits? Is my only choice to use chmod > | after opening, or use os.open? > | > | Wouldn't this be a good thing to have as a keyword for

Re: Passing ints to a function

2012-06-09 Thread Chris Angelico
On Sat, Jun 9, 2012 at 6:29 PM, Jussi Piitulainen wrote: > The point is that the function itself can be passed as an argument to > the auxiliary function ... And unlike in Javascript, a bound method is fully callable too. Chris Angelico -- http://mail.python.org/mailman/listinfo/python-list

Re: Passing ints to a function

2012-06-09 Thread Jussi Piitulainen
stayvoid writes: > > You want to unpack the list: > > > > function(*a)  # like function(a[0], a[1], a[2], ...) > > Awesome! I forgot about this. Here's something you could have thought of for yourself even when you didn't remember that Python does have special built-in support for applying a fun