¡@

Home 

python Programming Glossary: can't

What is a metaclass in Python?

http://stackoverflow.com/questions/100003/what-is-a-metaclass-in-python

the name Foo by using what is in __metaclass__ . If Python can't find __metaclass__ it will look for a __metaclass__ in Bar the.. in Bar the parent class and try to do the same. If Python can't find __metaclass__ in any parent it will look for a __metaclass__.. at the MODULE level and try to do the same. Then if it can't find any __metaclass__ at all it will use type to create the..

Remove items from a list while iterating in Python

http://stackoverflow.com/questions/1207406/remove-items-from-a-list-while-iterating-in-python

What should I use in place of code_to_remove_tup I can't figure out how to remove the item in this fashion. python iteration..

Differences between isinstance() and type() in python

http://stackoverflow.com/questions/1549801/differences-between-isinstance-and-type-in-python

of strings and maybe other scalar types i.e. ones you can't loop on one way all containers lists sets dicts ... in another..

Python 'self' explained

http://stackoverflow.com/questions/2709821/python-self-explained

to the specific object created from that class but I can't see why it explicitly needs to be added to every function as..

Is there a simple, elegant way to define Singletons in Python? [closed]

http://stackoverflow.com/questions/31875/is-there-a-simple-elegant-way-to-define-singletons-in-python

private classes or private constructors in python so you can't protect against multiple instantiations other than just via..

*args and **kwargs? [duplicate]

http://stackoverflow.com/questions/3394835/args-and-kwargs

task this would helpful. I am sure there is but I can't get an understanding of it. Maybe I think to enter lists and..

What kinds of patterns could I enforce on the code to make it easier to translate to another programming language?

http://stackoverflow.com/questions/3455456/what-kinds-of-patterns-could-i-enforce-on-the-code-to-make-it-easier-to-translat

percentage conversion rates or it is likely that you can't complete the manual part of the translation activity. Another..

Converting string into datetime

http://stackoverflow.com/questions/466345/converting-string-into-datetime

appreciated. Edit This is going through Django's ORM so I can't use SQL to do the conversion on insert. python django datetime..

How to install pip on windows?

http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows

your proxy might be a Microsoft NTLM proxy. Free software can't cope. The only solution is to install a free software friendly.. a C compiler such as mingw or Visual C but if you can't be bothered check Christoph's site again http www.lfd.uci.edu..

Generator Expressions vs. List Comprehension

http://stackoverflow.com/questions/47789/generator-expressions-vs-list-comprehension

support indexing or slicing print 5 6 gen # generators can't be added to lists Basically use a generator expression if all..

Python, Unicode, and the Windows console

http://stackoverflow.com/questions/5419/python-unicode-and-the-windows-console

Windows console I get a UnicodeEncodeError 'charmap' codec can't encode character .... error. I assume this is because the Windows..

Python rounding error with float numbers

http://stackoverflow.com/questions/5997027/python-rounding-error-with-float-numbers

range 0 n 1 a int 100 float i 100 if i a print i a And I can't see any pattern in the numbers for which this rounding error.. python share improve this question Any number that can't be built from exact powers of two can't be represented exactly.. Any number that can't be built from exact powers of two can't be represented exactly as a floating point number it needs to..

Static class variables in Python

http://stackoverflow.com/questions/68645/static-class-variables-in-python

Java but not so different from C# where a static member can't be accessed using a reference to an instance. See what the Python..

Python: How do I pass a variable by reference?

http://stackoverflow.com/questions/986006/python-how-do-i-pass-a-variable-by-reference

If you pass an immutable object to a method you still can't rebind the outer reference and you can't even mutate the object... method you still can't rebind the outer reference and you can't even mutate the object. Okay this is a little confusing. Let's..

Why can't you add attributes to object in python? [duplicate]

http://stackoverflow.com/questions/1285269/why-cant-you-add-attributes-to-object-in-python

duplicate This question already has an answer here Can't set attributes of object class 5 answers Written in..

Can't set attributes of object class

http://stackoverflow.com/questions/1529002/cant-set-attributes-of-object-class

set attributes of object class So I was playing around with..

Can't start foreman in Heroku Tutorial using Python

http://stackoverflow.com/questions/15399637/cant-start-foreman-in-heroku-tutorial-using-python

start foreman in Heroku Tutorial using Python I have been attempting..

Can't pickle <type 'instancemethod'> when using python's multiprocessing Pool.map()

http://stackoverflow.com/questions/1816958/cant-pickle-type-instancemethod-when-using-pythons-multiprocessing-pool-ma

pickle type 'instancemethod' when using python's multiprocessing.. doesn't work. The error message it gives is PicklingError Can't pickle type 'instancemethod' attribute lookup __builtin__.instancemethod..

Inherit docstrings in Python class inheritance

http://stackoverflow.com/questions/2025562/inherit-docstrings-in-python-class-inheritance

self func source if source is None raise NameError Can't find ' s' in parents self.name func.__doc__ source.__doc__ return..

What is the Python egg cache (PYTHON_EGG_CACHE)?

http://stackoverflow.com/questions/2192323/what-is-the-python-egg-cache-python-egg-cache

a python script was presented with the following message Can't extract file s to egg cache The following error occurred while..

Python version 2.6 required, which was not found in the registry

http://stackoverflow.com/questions/3008509/python-version-2-6-required-which-was-not-found-in-the-registry

version 2.6 required which was not found in the registry Can't download any python Windows modules and install. I wanted to..

Cannot redirect output when I run Python script on Windows using just script's name

http://stackoverflow.com/questions/3018848/cannot-redirect-output-when-i-run-python-script-on-windows-using-just-scripts-n

seen people talking about this bug python Bugs 1012692 Can't pipe input to a python program . But that was long time ago...

Multiprocessing: using Pool.map on a function defined in a class

http://stackoverflow.com/questions/3288595/multiprocessing-using-pool-map-on-a-function-defined-in-a-class

pool.py line 225 in _handle_tasks put task PicklingError Can't pickle type 'function' attribute lookup __builtin__.function..

Python, safe, sandbox [duplicate]

http://stackoverflow.com/questions/3688708/python-safe-sandbox

you python sandbox safe share improve this question Can't be done. Running arbitrary untrusted scripts and staying safe..

Can I prevent modifying an object in Python?

http://stackoverflow.com/questions/3711657/can-i-prevent-modifying-an-object-in-python

value if self.__dict__.has_key name raise self.ConstError Can't change const. s name if not name.isupper raise self.ConstCaseError..

Selenium: FirefoxProfile exception Can't load the profile

http://stackoverflow.com/questions/6682009/selenium-firefoxprofile-exception-cant-load-the-profile

FirefoxProfile exception Can't load the profile In previous question we found solution for.. 87 in _wait_until_connectable raise WebDriverException Can't load the profile. Profile Dir s self.profile.path selenium.common.exceptions.WebDriverException.. selenium.common.exceptions.WebDriverException Can't load the profile. Profile Dir tmp webdriver py profilecopy What..

Creating a singleton in python

http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python

this pattern... What is the point of the _sealed attribute Can't call methods of the same name on base classes using super because..

Can't subtract offset-naive and offset-aware datetimes

http://stackoverflow.com/questions/796008/cant-subtract-offset-naive-and-offset-aware-datetimes

subtract offset naive and offset aware datetimes I have a timezone..

Python multiprocessing pickling error

http://stackoverflow.com/questions/8804830/python-multiprocessing-pickling-error

pool.py line 313 in _handle_tasks put task PicklingError Can't pickle type 'function' attribute lookup __builtin__.function.. pool.py line 315 in _handle_tasks put task PicklingError Can't pickle type 'function' attribute lookup __builtin__.function..

Python strftime - date without leading 0?

http://stackoverflow.com/questions/904928/python-strftime-date-without-leading-0

first 0 of the date if it's before the 10th ie. so 01 is 1 Can't find a thingy for that Thanks python padding strftime share..