On Sat, Oct 29, 2016 at 2:59 PM, Cameron Simpson wrote:
> On 28Oct2016 23:02, Adam Jensen wrote:
>>
>> If one were to develop a Python application on multiple machines, what
>> are some good methods for keeping them synchronized? For example, I
>> develop on a FreeBSD machine and a CentOS machine
On 10/28/2016 11:59 PM, Cameron Simpson wrote:
> Sync the virtualenv prerequisites file with your DVCS. Have a tiny
> script to update the local virtualenv prereq file and run its update
> command to honour any new prereqs.
Cool. I didn't mention that I am a python n00b, did I? What/where is the
"
The code is ok, i need to provide the absolute path to umount.
def umount(self):
'''unmounts VirtualDVD'''
#get virtualdvd folder
home = QtCore.QDir.homePath()
vpath = home + "/VirtualDVD"
cmd = 'gksudo umount ' + vpath
subprocess.Popen(str(cmd
On 10/28/2016 11:59 PM, Cameron Simpson wrote:
> Sync the virtualenv prerequisites file with your DVCS. Have a tiny
> script to update the local virtualenv prereq file and run its update
> command to honour any new prereqs.
Cool. I didn't mention that I am a python n00b, did I? What/where is the
"
On 28Oct2016 23:02, Adam Jensen wrote:
If one were to develop a Python application on multiple machines, what
are some good methods for keeping them synchronized? For example, I
develop on a FreeBSD machine and a CentOS machine, each with python2.7
and differing sets of site packages. On each ma
If one were to develop a Python application on multiple machines, what
are some good methods for keeping them synchronized? For example, I
develop on a FreeBSD machine and a CentOS machine, each with python2.7
and differing sets of site packages. On each machine, I can use
virtualenv. But if I 'pip
On Sat, Oct 29, 2016 at 11:13 AM, Steve D'Aprano
wrote:
> On Sat, 29 Oct 2016 02:03 am, Chris Angelico wrote:
>
>> born in those lackadaisical days when "Extended ASCII" was a single
>> thing, because the rest of the world didn't exist
>
> I know you're being sarcastic, but "extended ASCII" *never
On Fri, 28 Oct 2016 05:09 am, BartC wrote:
> And I've seen things like 'import msvcrt', 'import winapi' in Python
> code, and then there's all that stuff with ctypes.
Right. Not everything needs to be a feature of the language itself,
especially if it is operating system dependent and can be dele
On Fri, Oct 28, 2016 at 8:04 PM, Gilmeh Serda
wrote:
>
> You can use forward slash to avoid the messy problem.
There are cases in which you need to use backslash, such as extended
paths and command lines. Python 3's pathlib automatically normalizes a
Windows path to use backslash. Otherwise you c
On Sat, 29 Oct 2016 02:28 am, BartC wrote:
>> By using the name of a Unix system call, one might think so.
>
> Python is cross-platform, isn't it?
The os module isn't. It is specifically designed for OS-specific functions.
There's lots of OS-specific functionality in Python. In general, Python
On Sat, 29 Oct 2016 08:24 am, John Gordon wrote:
> After importing a module, I can access some of its submodules directly
> but others require an explicit import of the submodule.
[...]
> Why the difference?
Ask the author of the package.
Try this experiment: create a package called "imptest" w
On Sat, 29 Oct 2016 02:03 am, Chris Angelico wrote:
> born in those lackadaisical days when "Extended ASCII" was a single
> thing, because the rest of the world didn't exist
I know you're being sarcastic, but "extended ASCII" *never* was a single
thing, even for Americans who ignored the rest of
On Fri, 28 Oct 2016 17:19:17 -0500, Wildman wrote:
> On Fri, 28 Oct 2016 11:05:17 +0300, Demosthenes Koptsis wrote:
>
>> Yes it was pasted wrong...
>>
>> def umount(self):
>> '''unmounts VirtualDVD'''
>> cmd = 'gksudo umount VirtualDVD'
>> proc = subprocess.Popen(
On Fri, 28 Oct 2016 11:05:17 +0300, Demosthenes Koptsis wrote:
> Yes it was pasted wrong...
>
> def umount(self):
> '''unmounts VirtualDVD'''
> cmd = 'gksudo umount VirtualDVD'
> proc = subprocess.Popen(str(cmd), shell=True,
> stdout=subprocess.PIPE).stdout.read()
On Sat, Oct 29, 2016 at 8:24 AM, John Gordon wrote:
> After importing a module, I can access some of its submodules directly
> but others require an explicit import of the submodule.
>
> As an example, see ldap.dn and ldap.modlist:
>
> % python
> Python 2.7.8 (default, Aug 4 2016, 09:29:33)
> [GC
After importing a module, I can access some of its submodules directly
but others require an explicit import of the submodule.
As an example, see ldap.dn and ldap.modlist:
% python
Python 2.7.8 (default, Aug 4 2016, 09:29:33)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-9)] on linux2
Type "help", "copyrig
On Sat, Oct 29, 2016 at 4:50 AM, Terry Reedy wrote:
> On 10/28/2016 11:03 AM, Chris Angelico wrote:
>>
>> On Sat, Oct 29, 2016 at 1:54 AM, Dennis Lee Bieber
>> wrote:
>>>
>>> https://en.wikibooks.org/wiki/QBasic/Advanced_Input
>>> indicates that INKEY$ doesn't even test the keyboard for presses,
On 10/28/2016 11:03 AM, Chris Angelico wrote:
On Sat, Oct 29, 2016 at 1:54 AM, Dennis Lee Bieber
wrote:
https://en.wikibooks.org/wiki/QBasic/Advanced_Input
indicates that INKEY$ doesn't even test the keyboard for presses, but is
only retrieving the next item from the keyboard input /buffer/ (wh
On Fri, Oct 28, 2016 at 2:39 PM, Jens Janzen wrote:
> 1. Download C runtime Libraries from Microsoft
> https://support.microsoft.com/de-de/kb/2999226
> for Windows 7
The more recent update is here [1], but don't use this. Use Windows
Update to get the latest updates.
[1]: https://support.microso
On 28/10/2016 15:28, Grant Edwards wrote:
On 2016-10-27, BartC wrote:
On 27/10/2016 23:31, Chris Angelico wrote:
When you exec to a process, you provide multiple arguments, not a
single combined string.
Really, there could be dozens of arguments? Windows' CreateProcess() (if
that's the sam
On 10/28/2016 06:28 AM, Chris Angelico wrote:
> On Fri, Oct 28, 2016 at 11:12 PM, Terry Reedy wrote:
>> The only specification he has given is reference to the BASIC INKEY$
>> variable. I don't know how consistent this was across different BASICs. I
>> looked in Microsoft's GW-BASIC reference an
On Sat, Oct 29, 2016 at 1:54 AM, Dennis Lee Bieber
wrote:
> https://en.wikibooks.org/wiki/QBasic/Advanced_Input
> indicates that INKEY$ doesn't even test the keyboard for presses, but is
> only retrieving the next item from the keyboard input /buffer/ (which that
> article goes on to mention used
"Peter Otten" <__pete...@web.de> a écrit dans le message de
news:mailman.34.1477663877.31204.python-l...@python.org...
ast wrote:
class T(type):
... def __new__(*args, **kw): return type.__new__(*args)
... def __prepare__(*args, **kw):
... print(kw)
... return {}
...
Am Freitag, 28. Oktober 2016 01:24:18 UTC+2 schrieb Karen Hermann:
> I just downloaded Python 3.5.2 for Windows, which I installed on a Windows 7
> laptop. Disclaimer up front, I am a former lapsed programmer that has been
> away from it and all things Windows since Windows XP. :)I’m back t
On 2016-10-27, BartC wrote:
> On 27/10/2016 23:31, Chris Angelico wrote:
>> When you exec to a process, you provide multiple arguments, not a
>> single combined string.
>
> Really, there could be dozens of arguments? Windows' CreateProcess() (if
> that's the same thing) has ten of which one is t
ast wrote:
> Hi
>
> On python doc here:
>
> https://docs.python.org/3.4/reference/datamodel.html
>
> it is said about __prepare__ metaclass's method:
>
> If the metaclass has a __prepare__ attribute, it is called as
> namespace = metaclass.__prepare__(name, bases, **kwds)
> where the additiona
Am 28.10.16 um 12:30 schrieb Marko Rauhamaa:
Christian Gollwitzer :
Am 28.10.16 um 10:59 schrieb Marko Rauhamaa:
I don't know. How would you implement "less" in Python? How would you
implement "nethack" in Python?
On my system:
Apfelkiste:~ chris$ otool -L /usr/bin/less
/usr/bin/less:
Hi
On python doc here:
https://docs.python.org/3.4/reference/datamodel.html
it is said about __prepare__ metaclass's method:
If the metaclass has a __prepare__ attribute, it is called as
namespace = metaclass.__prepare__(name, bases, **kwds)
where the additional keyword arguments, if any,
On Fri, Oct 28, 2016 at 11:12 PM, Terry Reedy wrote:
> The only specification he has given is reference to the BASIC INKEY$
> variable. I don't know how consistent this was across different BASICs. I
> looked in Microsoft's GW-BASIC reference and it says that it returns '',
> 'x', or '0x'. This
On 10/28/2016 1:05 AM, Michael Torrie wrote:
Sure you can't get a keyboard scancode when you're in terminal.
As you note in your followup, Marko and Bart want to be able to respond,
for instance, to left and right shift, separately and differently.
Ascii terminals only send and receive ascii
On Fri, 28 Oct 2016 09:02 am, BartC wrote:
> I notice that when it comes to reading command-line arguments, then
> Python's sys.argv presents them as a list, not one long string.
Yes, just like the shell presents it to Python. It would be silly for Python
to take the list of strings it receives,
On 28/10/2016 11:35, Marko Rauhamaa wrote:
BartC :
On 28/10/2016 10:22, Christian Gollwitzer wrote:
So "less" in C uses ncurses. You can do the same in Python, "import
curses" - instead of fiddling with terminal escape characters you
leave that to a library, just like less does it.
As I comm
BartC :
> On 28/10/2016 10:22, Christian Gollwitzer wrote:
>> So "less" in C uses ncurses. You can do the same in Python, "import
>> curses" - instead of fiddling with terminal escape characters you
>> leave that to a library, just like less does it.
>
> As I commented further up the thread, I tri
Christian Gollwitzer :
> Am 28.10.16 um 10:59 schrieb Marko Rauhamaa:
>> I don't know. How would you implement "less" in Python? How would you
>> implement "nethack" in Python?
>
> On my system:
>
> Apfelkiste:~ chris$ otool -L /usr/bin/less
> /usr/bin/less:
> /usr/lib/libncurses.5.4.dylib (
On 28/10/2016 10:22, Christian Gollwitzer wrote:
Am 28.10.16 um 10:59 schrieb Marko Rauhamaa:
So "less" in C uses ncurses. You can do the same in Python, "import
curses" - instead of fiddling with terminal escape characters you leave
that to a library, just like less does it.
As I commented
Am 28.10.16 um 10:59 schrieb Marko Rauhamaa:
Christian Gollwitzer :
Am 28.10.16 um 09:33 schrieb Marko Rauhamaa:
I am just not convinced that so many people need to implement
something like readline.
I don't know. How would you implement "less" in Python? How would you
implement "nethack" in
Christian Gollwitzer :
> Am 28.10.16 um 09:33 schrieb Marko Rauhamaa:
> I am just not convinced that so many people need to implement
> something like readline.
I don't know. How would you implement "less" in Python? How would you
implement "nethack" in Python?
Well, Python does offer it all. Yo
I figure it out
umount accepts full path of mounting point.
i changed my function as following and now it works.
def umount(self):
'''unmounts VirtualDVD'''
#get virtualdvd folder
home = QtCore.QDir.homePath()
vpath = home + "/VirtualDVD"
cmd = '
Yes it was pasted wrong...
def umount(self):
'''unmounts VirtualDVD'''
cmd = 'gksudo umount VirtualDVD'
proc = subprocess.Popen(str(cmd), shell=True,
stdout=subprocess.PIPE).stdout.read()
print proc
it fails silently the gksudo runs correctly. I can inpu
Am 28.10.16 um 09:33 schrieb Marko Rauhamaa:
Christian Gollwitzer :
I still believe that it is not a "basic functionality". You need it,
if you want to program a text editor or similar thing, but without
using a real GUI. This is a small niche.
I disagree. It's a very large group of programs.
Christian Gollwitzer :
> I still believe that it is not a "basic functionality". You need it,
> if you want to program a text editor or similar thing, but without
> using a real GUI. This is a small niche.
I disagree. It's a very large group of programs. For example, CPython's
input() function put
41 matches
Mail list logo